.customer-sidebar {
  position: sticky;
  top: 0;
  overflow-y: auto; /* nếu nội dung dài quá thì cuộn */
}

.customer-box-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* Không giãn đều toàn dòng */
  gap: 20px; /* tạo khoảng cách giữa các box */
  margin-top: 20px;
}

.customer-box {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 0 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  width: calc(50% - 10px); /* Hai box mỗi hàng, trừ khoảng gap */
  min-width: 420px; /* Giới hạn để tránh bị bóp */
}

.input-group-addon {
  border-right: none;
  padding-right: 0px;
}
.input-keyword-addon {
  border-left: none;
}
.bg-filter-customer {
  background-color: #fff !important;
}

.customer-report p.text-muted {
  font-size: 14px;
}
#filterModal .filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 25px; /* hàng cách 20px, cột cách 25px */
}

#filterModal .filter-item {
  flex: 1 1 calc(33.33% - 25px);
  min-width: 250px;
}

#filterModal .filter-item label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

#filterModal .filter-item .form-control,
#filterModal .filter-item .input-group {
  width: 100%;
}

#filterModal .modal .modal-body {
  padding: 25px 30px;
}

/* Nút áp dụng căn giữa */
#filterModal .filter-actions {
  text-align: center;
  margin-top: 25px;
}
.customer-detail {
  min-height: 100vh; /* Chiều cao full màn hình */
  background-color: #f7f8fa;
}
.customer-detail .col-md-3,
.customer-detail .col-md-9 {
  padding: 0px;
}
/* Giới hạn trong phần customer-detail */
.customer-detail .custom-underline-tabs {
  display: flex;
  justify-content: center; /* căn giữa tổng thể */
  gap: 30px; /* khoảng cách giữa các tab */
  border-bottom: 1px solid #e9ecef;
  flex-wrap: wrap; /* đảm bảo không tràn dòng */
  background-color: #fff;
  padding-top: 10px;
}

.customer-detail .custom-underline-tabs > li {
  flex: 0 0 auto; /* fit-content */
  list-style: none;
}

.customer-detail .custom-underline-tabs > li > a {
  display: inline-block;
  padding: 10px 0;
  font-size: 14px;
  color: #555;
  border: none !important;
  background: none !important;
  position: relative;
  transition: color 0.2s ease;
}

.customer-detail .custom-underline-tabs > li.active > a,
.customer-detail .custom-underline-tabs > li > a:hover {
  color: #1a1aff;
}

.customer-detail .custom-underline-tabs > li.active > a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #1a1aff;
  border-radius: 3px;
  transition: width 0.2s ease-in-out;
}
.avatar-container {
  position: relative;
}

.avatar-wrapper {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #1a1aff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.avatar-wrapper img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

/* Nút ở góc phải trên */
.avatar-action-btn {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background 0.2s ease;
}

.avatar-action-btn:hover {
  background: #f0f2f5;
}

/* --- WRAPPER CHUNG --- */
.tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

/* --- TAG CƠ BẢN --- */
.tag-item,
.tag-item-removable {
  display: inline-flex;
  align-items: center;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.4;
  padding: 5px 10px;
  background-color: #f6f7f8;
  color: #1a1f2c;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.tag-item:hover,
.tag-item-removable:hover {
  background-color: #ebedef;
}

/* --- TAG CÓ NÚT XOÁ --- */
.tag-item-removable .tag-text {
  margin-right: 8px;
}

.tag-item-removable .tag-remove {
  font-size: 12px;
  font-weight: bold;
  color: #6c757d;
  background-color: #d8dce1;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tag-item-removable .tag-remove:hover {
  background-color: #b0b7bd;
  color: #fff;
}

.customer-label-success {
  background-color:#d4f8d4;
  border: solid 1px #3ca63c;
  color: #3ca63c;
}

.customer-label-muted {
  background-color:#d0d0d0;
  border: solid 1px #545454;
  color: #545454;
}

.activity-customer {
  display: inline-block;
  width: 15px;
  height: 15px;
}
.level-1 { background-color: #d4f8d4; }
.level-2 { background-color: #8ee88e; }
.level-3 { background-color: #3ca63c; }
.level-4 { background-color: #f0f0f0; border: 1px solid #eee; }

.week-heatmap-container {
  margin-top: 10px;
}

.week-heatmap {
  margin-bottom: 10px;
}

/* Phần order item */
.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.order-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #eee;
}

.order-info {
  flex: 1;
  margin-left: 10px;
}

.order-qty {
  font-size: 13px;
}
.customer-contact ul {
  padding: 0;
  margin: 0;
}

.customer-contact li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
  padding: 8px 0;
  color: #1a1f2c;
  font-size: 12px;
}

.customer-contact li:last-child {
  border-bottom: none;
}

.customer-contact i {
  width: 24px;
  color: #5c6b7a;
  margin-right: 8px;
}

.customer-contact .label-text {
  flex: 1;
  color: #5c6b7a;
  text-align: start;
}

.customer-contact .value-text {
  color: #132238;
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}

/* Tiêu đề thông tin */
.info-label {
  font-size: 14px;
  color: #6c757d; /* màu xám nhạt cho label */
  margin-bottom: 2px;
  display: block;
}

/* Nội dung thông tin */
.info-value {
  font-size: 16px;
  color: #1a1f2c; /* màu chữ đậm hơn cho nội dung */
  margin-bottom: 12px;
  display: block;
  line-height: 1.4;
}
/* Select chỉ có border bottom */
.select-underline {
  border: none;
  border-bottom: 2px solid #ccc;
  border-radius: 0;
  box-shadow: none;
  background-color: transparent;
  padding-left: 0;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

/* Khi focus: border đậm màu xanh */
.select-underline:focus {
  border-color: #337ab7; /* Bootstrap primary */
  outline: none;
  box-shadow: none;
}

/* Nhãn (label) cho gọn gàng */
.form-group > label {
  color: #333;
  font-weight: 600;
  margin-bottom: 6px;
}
.stats-overview {
  margin-bottom: 15px;
}

.stats-overview .col-xs-6 {
  padding: 10px; /* tạo khoảng giữa các cột */
}

.stat-box {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 15px 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.stat-box h3 {
  margin: 0;
  font-weight: bold;
}

.stat-box p {
  margin: 5px 0 0;
  font-size: 13px;
}
.border-bottom {
  border: none;
  border-bottom: solid 1px #c9cacc;
  margin-bottom: 15px;
}
.journey {
  text-align: center;
}

.journey svg {
  margin: 0 auto;
  display: block;
}

.journey .jouney-note {
  margin-top: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  float: left;
}

.journey .dot {
  width: 10px;
  height: 10px;
  background: #3ca65a;
  border-radius: 50%;
}
.customer-mini-table {
  border: none;
  width: 100%;
  background-color: #fff;
  font-size: 13px;
}

.customer-mini-table > thead > tr > th {
  border-bottom: 2px solid #e9ecef;
  font-weight: 600;
  color: #6c757d;
  padding: 10px 0;
}

.customer-mini-table > tbody > tr > td {
  border-top: none;
  border-bottom: 1px solid #f1f3f5;
  padding: 10px 0;
  vertical-align: middle;
}

.customer-mini-table > tbody > tr:hover {
  background-color: #f8f9fa;
}
.event-badge {
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
}
.referral-badge {
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 13px;
  line-height: 1.4;
}
.time-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #777;
}

.platforms {
  margin-top: 10px;
}

.platform-row {
  margin-bottom: 20px;
}

.platform-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.activity-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 5px;
}

.line {
  display: flex;
  gap: 2px;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.segment {
  flex: 1;
  border-radius: 4px;
  transition: background 0.2s ease;
}
