.customer-tab-activity {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
}

.customer-tab-activity .activity-header {
  margin-bottom: 16px;
}

.customer-tab-activity .activity-title {
  font-size: 20px;
  font-weight: 600;
  color: #0a4a2f;
}

.customer-tab-activity .activity-subtitle {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

/* --- FILTER SECTION (ngoài card) --- */
.activity-filter {
  display: flex;
  justify-content: flex-end; /* căn phải */
  margin-bottom: 16px;       /* cách card hoạt động */
  margin-top: 4px;
}

.activity-filter .filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* khối chứa icon + input date */
.activity-filter .filter-date {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  padding: 0px 10px;
  min-width: 240px;
  transition: border-color 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.activity-filter .filter-date i {
  color: #555;
  margin-right: 8px;
}

.activity-filter .filter-date input {
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  width: 100%;
  text-align: center;
  color: #333;
  cursor: pointer;
}

/* select */
.activity-filter select {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  background: #fff;
  min-width: 160px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.activity-filter select i {
  margin-left: 2px;
}

/* hover focus */
.activity-filter .filter-date:hover,
.activity-filter select:hover {
  border-color: #888;
}


.customer-tab-activity .activity-day {
  margin-bottom: 24px;
  border-left: 2px solid #e0e0e0;
  padding-left: 20px;
}

.customer-tab-activity .activity-day-header {
  font-weight: 600;
  font-size: 16px;
  color: #0a4a2f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}

.customer-tab-activity .activity-day.collapsed .activity-list {
  display: none;
}

.customer-tab-activity .activity-item {
  position: relative;
  margin-bottom: 14px;
}

.customer-tab-activity .timeline-dot {
  z-index: 1;
  position: absolute;
  left: -7px;
  top: 14px;
  width: 16px;
  height: 22px;
  border-radius: 10px;
  border: 3px solid #4caf50;
  background-color: transparent;
  box-sizing: border-box;
}

.customer-tab-activity .timeline-dot.blue {
  border-color: #0d6efd;
  background-color: #ffffff;
}

.customer-tab-activity .timeline-dot.orange {
  border-color: #ff9800;
  background-color: #ffffff;
}

.customer-tab-activity .timeline-dot.green {
  border-color: #4caf50;
  background-color: #ffffff;
}

.customer-tab-activity .timeline-dot.purple {
  border-color: #8e44ad;
  background-color: #ffffff;
}

.customer-tab-activity .activity-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f9fafb;
  border: 1px solid #000000;
  border-radius: 8px;
  padding: 12px;
  position: relative;
}

.customer-tab-activity .activity-box:hover {
  background: #eef5ff;
}

.customer-tab-activity .activity-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f0ff;
  font-size: 16px;
}

.customer-tab-activity .activity-icon.blue {
  background: #e3f2fd;
  color: #1565c0;
}

.customer-tab-activity .activity-icon.orange {
  background: #fff3e0;
  color: #ef6c00;
}

.customer-tab-activity .activity-icon.green {
  background: #e8f5e9;
  color: #2e7d32;
}

.customer-tab-activity .activity-icon.purple {
  background: #f3e5f5;
  color: #6a1b9a;
}

.customer-tab-activity .activity-content p {
  margin: 0;
  font-size: 14px;
}

.customer-tab-activity .activity-content small {
  color: #777;
  font-size: 12px;
}

.customer-tab-activity .activity-action {
  margin-left: auto;
  color: #aaa;
  cursor: pointer;
  font-size: 14px;
}

.customer-tab-activity .activity-action:hover {
  color: #e53935;
}

.activities-container .day-title {
  color: #000000;
}

.activities-container .cs-icon-circle {
  font-size: 12px;
  color: #2EB82E;
  width: 15px;
}

.activities-container .day-count {
  color: #9E9E9E;
}

/* icon toggle bên phải */
.customer-tab-activity .header-toggle {
  color: #777;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.customer-tab-activity .header-toggle:hover {
  color: #000;
}


.header-toggle-icon {
  transition: transform 0.25s ease;
}

.header-toggle-icon.rotated {
  transform: rotate(-180deg);
}

.customer-tab-activity .cs-icon-circle {
  color: #2EB82E; /* mặc định xanh */
  transition: color 0.25s ease;
}

.customer-tab-activity .cs-icon-circle.active {
  color: #E53935; /* đỏ khi mở */
}
