body { background: #f4f6f9; }
.card { border: none; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.stat-card h3 { font-weight: 700; }
.stat-positive { color: #198754; }
.stat-negative { color: #dc3545; }
table.table thead { background: #eef1f6; }
.navbar-brand { font-weight: 700; }

/* Màu thanh điều hướng: xanh ngọc đậm — cùng họ với xanh lá của số dương và
   badge "Xong", hợp tông ngành thực phẩm chức năng. Chữ trắng trên nền này đạt
   tương phản 7,9:1 (chuẩn WCAG AAA) nên đọc rõ khi nhìn bảng số cả ngày.
   Đổi màu chỉ cần sửa 2 dòng dưới đây. */
:root { --brand-nav: #0E5C4F; --brand-nav-active: #0B4A40; }
.navbar.bg-brand { background-color: var(--brand-nav) !important; }
.navbar.bg-brand .nav-link:hover,
.navbar.bg-brand .nav-link:focus { background-color: var(--brand-nav-active); border-radius: 6px; }

/* Màu nền ô chọn trạng thái (bảng cũ): Chờ lên đơn=xanh dương, Chờ chuyển hàng=vàng,
   Xong=xanh lá, Hoàn/Huỷ=đỏ. Áp cho nền <select> theo giá trị đang chọn —
   danh sách khi mở popup do trình duyệt/hệ điều hành tự vẽ nên không tô màu
   được (giới hạn của <select> gốc, không phải CSS thiếu sót). */
select.status-select.status-cho_len { background-color: #cfe2ff; color: #084298; border-color: #9ec5fe; }
select.status-select.status-da_len { background-color: #fff3cd; color: #664d03; border-color: #ffe69c; }
select.status-select.status-xong { background-color: #d1e7dd; color: #0f5132; border-color: #a3cfbb; }
select.status-select.status-hoan, select.status-select.status-huy { background-color: #f8d7da; color: #842029; border-color: #f1aeb5; }

option.opt-cho_len { background-color: #cfe2ff; color: #084298; }
option.opt-da_len { background-color: #fff3cd; color: #664d03; }
option.opt-xong { background-color: #d1e7dd; color: #0f5132; }
option.opt-hoan, option.opt-huy { background-color: #f8d7da; color: #842029; }
option.opt-delete { background-color: #f1f3f5; color: #495057; font-style: italic; }

/* Bảng "Đơn hàng của tôi" tháng dashboard nhân viên: nhường phần lớn chiều
   ngang cho bảng đơn hàng (~80%), form nhập đơn thu gọn còn ~20%. Bootstrap
   chỉ chia hết 12 cột nên dùng width trực tiếp cho đúng tỉ lệ 1/5 - 4/5. */
@media (min-width: 992px) {
  .col-lg-form { flex: 0 0 20%; max-width: 20%; }
  .col-lg-table { flex: 0 0 80%; max-width: 80%; }
}

.section-title { font-weight: 700; color: #2b3648; display: flex; align-items: center; gap: .4rem; }

.card-accent-blue { border-top: 4px solid #4f7cff; }
.card-accent-teal { border-top: 4px solid #17b897; }

table.table-hover-row tbody tr:hover { background-color: #eef4ff; }

/* Bảng đơn hàng dạng ô, có đường viền rõ giữa các dòng/cột. LƯU Ý: không
   dùng overflow:hidden trên chính <table> (dù để bo góc đẹp hơn) — nó phá
   vỡ position:sticky của thead bên trong khi cuộn trong .table-responsive,
   khiến dòng tiêu đề không dính lại được như mong đợi. */
table.table-cells { border: 1px solid #dde3ec; border-radius: 8px; }
table.table-cells th, table.table-cells td { border: 1px solid #dde3ec; vertical-align: middle; }
table.table-cells thead th { border-bottom-width: 2px; border-color: #c9d2e0; }

.badge.bg-primary { background-color: #4f7cff !important; }
.badge.bg-success { background-color: #17b897 !important; }
/* Màu trạng thái đơn đi theo tiến trình: Chờ lên đơn = xanh dương, Chờ chuyển
   hàng = tím, Đã gửi = vàng (hàng rời kho, bắt đầu tính tiền), Hoàn/Huỷ = đỏ.
   Vàng và tím chọn dịu hơn màu mặc định của Bootstrap cho hợp tông xanh ngọc;
   tím #6A4BA8 đạt tương phản 6,59:1 với chữ trắng (chuẩn WCAG AA). */
.badge.bg-warning { background-color: #E3A008 !important; }
.badge.bg-tim { background-color: #6A4BA8 !important; color: #fff !important; }

/* Dòng "còn thiếu bao nhiêu hộp" dưới tiến độ KPI: Sale nhìn phần trăm khó hình
   dung, cần con số hộp cụ thể. Nền hổ phách nhạt cho nổi mà không gắt như đỏ —
   đây là việc cần làm, không phải lỗi. */
.kpi-thieu {
  background: #FDF4E7; border: 1px solid #EBCFA6; border-radius: 6px;
  padding: 6px 10px; font-size: 13px; line-height: 1.45; color: #7A4A08;
}
.kpi-thieu strong { color: #B45309; }
.kpi-du {
  background: #E4F1ED; border: 1px solid #BFDDD4; border-radius: 6px;
  padding: 6px 10px; font-size: 13px; color: #0E5C4F;
}

/* Khi 1 ô "Sản phẩm"/"SL" gộp nhiều dòng sản phẩm, tách riêng từng dòng
   bằng đường viền để dễ đối chiếu SL đúng với sản phẩm nào. Dùng "+" (chỉ
   kẻ giữa 2 dòng liền nhau) thay vì :last-child — vì ô Sản phẩm còn có thể
   có thêm badge "Cần kiểm tra" sau cùng, khiến :last-child không khớp
   dòng sản phẩm cuối và kẻ viền không nhất quán giữa các đơn.
   Màu viền phải đủ đậm để còn thấy rõ trên cả dòng zebra-stripe (nền xám
   nhạt của table-striped) — màu quá nhạt trước đây (#eef1f6) gần trùng
   màu nền xám, khiến viền gần như vô hình ở các dòng lẻ. */
.line-row { padding: .45rem .5rem; }
.line-row + .line-row { border-top: 1px solid #adb8c9; }

/* Cột Trạng thái thu gọn lại; Sản phẩm/Địa chỉ rộng hơn; cỡ chữ nhỏ lại để
   bảng "Đơn hàng của tôi" gọn, đọc được nhiều cột hơn trên cùng màn hình. */
.table-compact { font-size: .8rem; }
.table-compact .col-status { width: 100px; }
.table-compact .col-status .form-select,
.table-compact .col-status .btn { font-size: .78rem; padding: .2rem .4rem; }
.table-compact .col-product { width: 260px; }
.table-compact .col-address { width: 220px; }

.col-date { width: 90px; }
.col-workdays { width: 70px; }

/* Giữ cố định dòng tiêu đề khi cuộn bảng dài, để luôn biết cột nào là gì */
.sticky-thead thead th { position: sticky; top: 0; z-index: 2; background: #eef1f6; }

/* ---------------------------------------------- Bảng chấm công theo tháng --
   Bố cục giống bảng tính: dọc là ngày, ngang là Sale. Hàng tên nền xanh lá,
   hàng tổng nền cam, Chủ nhật nền xanh nước biển — giữ đúng quy ước màu mà
   Leader đang dùng trên file Excel để nhìn quen mắt. */
/* Trang chấm công cần từng pixel chiều cao để hiện trọn 31 ngày. */
body:has(.cc-bang) .container-fluid { padding-top: .5rem; padding-bottom: .25rem; }

.cc-thanh-cong-cu {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 30;
  background: #fff; padding: .35rem 0; margin: -.85rem 0 .35rem;
  border-bottom: 1px solid #E5E7EB;
}
.cc-chon-thang { display: flex; gap: .4rem; align-items: center; }
.cc-chon-thang .form-control { width: 160px; }
.cc-chua-luu { color: #B45309; font-size: .85rem; font-weight: 600; }

.cc-khung {
  overflow: auto;
  max-height: calc(100vh - 150px);
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  background: #fff;
}
.cc-bang {
  border-collapse: separate; border-spacing: 0;
  font-size: .82rem; width: max-content; min-width: 100%;
}
.cc-bang th, .cc-bang td {
  border-right: 1px solid #D8DEE6; border-bottom: 1px solid #D8DEE6;
  padding: 0; text-align: center; white-space: nowrap;
}

/* Hàng tên Sale */
.cc-hang-ten th {
  position: sticky; top: 0; z-index: 20;
  background: #2FBF62; color: #052E16;
  font-weight: 700; padding: .25rem .25rem; min-width: 60px; max-width: 86px;
  white-space: normal; line-height: 1.15; font-size: .74rem;
  border-bottom: 1px solid #14532D;
}
/* Hàng tổng cả tháng */
.cc-hang-tong th {
  position: sticky; top: 35px; z-index: 20;
  background: #F5A524; color: #422006;
  font-weight: 700; padding: .15rem .3rem;
  border-bottom: 2px solid #92400E;
}
.cc-hang-tong .cc-tong-lon { background: #EA8C00; color: #fff; }

/* Cột ngày ghim bên trái */
.cc-goc { position: sticky; left: 0; z-index: 25; }
.cc-hang-ten .cc-goc { background: #1F9E4E; color: #fff; z-index: 32; }
.cc-hang-tong .cc-goc { background: #DE9110; color: #422006; z-index: 32; }
.cc-ngay {
  position: sticky; left: 0; z-index: 10;
  background: #F1F5F9; color: #0F172A;
  font-weight: 600; padding: .1rem .4rem; text-align: right;
  border-right: 2px solid #94A3B8;
}
.cc-thu { color: #64748B; font-weight: 500; font-size: .72rem; margin-left: .2rem; }
.cc-ghi-chu { color: #64748B; font-size: .78rem; margin-top: .3rem; }

/* Ô nhập */
.cc-o {
  width: 100%; min-width: 60px; height: 21px;
  border: 0; background: transparent; text-align: center;
  font-size: .82rem; color: #0F172A; padding: 0;
}
.cc-o:focus {
  outline: 2px solid var(--brand-nav, #0E5C4F); outline-offset: -2px;
  background: #E8F3F0;
}
.cc-tong-dong {
  position: sticky; right: 0; z-index: 10;
  background: #FFF7E6; font-weight: 600; color: #7A4A08;
  padding: .1rem .35rem; min-width: 58px;
  border-left: 2px solid #94A3B8;
}
/* Cột tổng ghim bên phải để luôn thấy dù có bao nhiêu Sale đi nữa. */
.cc-hang-ten .cc-cot-tong, .cc-hang-tong .cc-tong-lon {
  position: sticky; right: 0; z-index: 22; border-left: 2px solid #94A3B8;
}

/* Chủ nhật + hôm nay */
.cc-chu-nhat td, .cc-chu-nhat .cc-tong-dong { background: #CFF3FA; }
.cc-chu-nhat .cc-ngay { background: #A9E7F3; color: #06414D; }
.cc-hom-nay td { background: #FFFBEB; }
.cc-hom-nay .cc-ngay { background: #FDE68A; color: #713F12; }
.cc-bang tbody tr:hover td { background: #EEF6F4; }
.cc-bang tbody tr:hover .cc-ngay { background: #DDEAE6; }

.btn-brand { background: var(--brand-nav, #0E5C4F); color: #fff; border: 0; }
.btn-brand:hover { background: #0A473D; color: #fff; }

/* Nút ẩn cột, khu cột đang ẩn và form thêm Sale trên bảng chấm công */
.cc-hang-ten th > span { vertical-align: middle; }
.cc-an-cot {
  border: 0; background: transparent; color: #06381F; opacity: .45;
  font-size: 1rem; line-height: 1; padding: 0 0 0 .3rem; cursor: pointer;
}
.cc-an-cot:hover { opacity: 1; color: #7F1D1D; }
.cc-cot-an {
  display: flex; align-items: center; flex-wrap: wrap; gap: .3rem;
  font-size: .8rem; color: #475569;
}
.cc-mach {
  display: inline-block; width: 19px; height: 19px; line-height: 19px;
  text-align: center; border-radius: 50%; background: #E2E8F0; color: #334155;
  font-size: .8rem; cursor: help; user-select: none;
}
.cc-mach:hover { background: #CBD5E1; }
.cc-chip {
  border: 1px solid #CBD5E1; background: #F8FAFC; border-radius: 999px;
  padding: .1rem .6rem; font-size: .82rem; color: #334155; cursor: pointer;
}
.cc-chip:hover { background: #E2E8F0; border-color: #94A3B8; }

/* Dòng "tạm tính" dưới thẻ Tổng doanh thu — số dự kiến gồm cả đơn còn chờ,
   để nhạt hơn số chốt sổ cho khỏi nhầm hai con số với nhau. */
.stat-tam-tinh {
  margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed #D6DCE5;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .45rem;
  cursor: help;
}
.stat-tam-tinh-nhan { font-size: .78rem; color: #94A3B8; width: 100%; }
.stat-tam-tinh-so { font-size: 1.02rem; font-weight: 600; color: #475569; }
.stat-tam-tinh-don { font-size: .78rem; color: #94A3B8; }
.stat-tam-tinh-so.stat-positive { color: #198754; }
.stat-tam-tinh-so.stat-negative { color: #dc3545; }

/* Cảnh báo đơn kẹt ở tháng đã qua — thay cho dòng tạm tính vốn vô nghĩa
   với tháng cũ (đơn chờ khi gửi sẽ rơi vào tháng gửi, không quay lại). */
.stat-ket {
  margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed #E6C8A0;
  font-size: .8rem; color: #B45309; cursor: help;
}

/* Banner nhắc hạn token Facebook Ads trên trang Tổng quan. Hiện liên tục
   trong lúc token sắp hết hạn và tự biến mất khi token được thay mới. */
.cb-token {
  border-radius: 10px; padding: 14px 18px; margin-bottom: 1rem;
  border: 1px solid; font-size: .93rem;
}
.cb-token p { margin: .35rem 0 0; }
.cb-token-tieu-de { font-weight: 700; font-size: 1.02rem; }
.cb-token-huong-dan { font-size: .86rem; }
.cb-token-huong-dan code {
  background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px;
}
.cb-token-chan { margin-top: .5rem; font-size: .76rem; opacity: .7; }
.cb-token-som { background: #FDF4E7; border-color: #EBCFA6; color: #7A4A08; }
.cb-token-gap { background: #FDECEC; border-color: #F0B4B4; color: #8A1C1C; }
.cb-token-het {
  background: #7F1D1D; border-color: #7F1D1D; color: #FFF;
}
.cb-token-het a, .cb-token-gap a { color: inherit; }
.cb-token-het code { background: rgba(255,255,255,.18); }

/* Nhãn cho dòng chi phí do máy tự ghi (đồng bộ Facebook Ads) — nhìn bảng là
   biết ngay dòng nào máy điền, dòng nào người nhập. */
.nhan-auto {
  display: inline-block; font-size: .68rem; font-weight: 600;
  background: #E4F1ED; color: #0E5C4F; border: 1px solid #B7DCD2;
  padding: 0 6px; border-radius: 999px; vertical-align: middle; cursor: help;
}

/* Thẻ thi đua — ô đầu trong hàng 4 ô của bảng Sale. Hẹp nên bảng xếp hạng
   phải gọn: huy chương, tên, số tiền trên đúng một dòng mỗi người. */
.td-the { border-left: 3px solid #C9A227; }
.td-tong { font-size: .95rem; font-weight: 400; color: #94A3B8; }
.td-ds { border-top: 1px solid #EDF1F4; padding-top: .35rem; }
.td-d {
  display: flex; align-items: baseline; gap: .35rem;
  font-size: .82rem; padding: .1rem .25rem; border-radius: 4px;
}
.td-v { width: 1.2rem; flex-shrink: 0; text-align: center; color: #8A94A6; font-weight: 600; }
.td-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-s { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-minh { background: #FFF8E1; font-weight: 600; color: #7A4A08; }
.td-nhac {
  margin-top: .5rem; padding: .4rem .55rem; border-radius: 6px;
  font-size: .78rem; line-height: 1.45;
}
.td-dan { background: #FFF8E1; border: 1px solid #EBCFA6; color: #7A4A08; }
.td-duoi { background: #E4F1ED; border: 1px solid #B7DCD2; color: #0E5C4F; }

/* Bảng lương theo ngày của Sale — dóng cột cho dễ đọc (16/9/2026) */
.bang-ngay td, .bang-ngay th { vertical-align: middle; }
.bang-ngay .tien { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bang-ngay .giua { text-align: center; font-variant-numeric: tabular-nums; }
.bang-ngay .tn { background: #f4fbf6; }
.bang-ngay .am { color: #c0392b; }
.bang-ngay tbody tr:nth-child(odd of :not(.dong-tong):not(.dong-chot)) { background: #fcfcfd; }
.bang-ngay .dong-tong { background: #eef4ff; }
.bang-ngay .dong-chot { background: #e8f7ee; }
.bang-ngay .dong-hom-nay { background: #fff6da; font-weight: 600; }
.bang-ngay .dong-nghi td { color: #9aa0a6; }
.bang-ngay .ghi-chu { font-size: 11px; font-weight: 400; color: #6c757d; }
.bang-ngay .vien-kpi { display: inline-block; min-width: 58px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.bang-ngay .kpi-du { background: #d7f5e3; color: #1e7e46; }
.bang-ngay .kpi-thieu { background: #ffe9c7; color: #9a5b0c; }

.bang-ngay .nhan { background: #f2f9f4; }

/* Luật trả hoa hồng — hiện ngay dưới ô "Hôm nay cần làm" để Sale không phải
   hỏi lại "sao em bán được mà chưa thấy hoa hồng" (16/9/2026). */
.luat-kpi {
  background: #fff8e1;
  border-left: 4px solid #f0ad4e;
  border-radius: 6px;
  padding: 8px 10px;
  line-height: 1.5;
}

/* KPI tới hôm nay: 2 dòng Thực tế / Tạm tính */
.kpi-2dong { border: 1px solid #e3e8e5; border-radius: 10px; padding: 10px 12px; background: #fff; }
.kpi-2dong-tieu { font-weight: 700; margin-bottom: 6px; }
.kpi-dong { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px;
  padding: 8px 10px; border-radius: 8px; margin-bottom: 6px; border-left: 4px solid; }
.kpi-dong.am { background: #fdecea; border-color: #c0392b; }
.kpi-dong.du { background: #e8f5ee; border-color: #1e7b4f; }
.kpi-dong.tam.am { background: #fff6e0; border-color: #e0a100; }
.kpi-nhan { font-weight: 700; display: flex; flex-direction: column; line-height: 1.2; }
.kpi-nhan small { font-weight: 400; color: #6b7570; }
.kpi-so { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.kpi-dong.am:not(.tam) .kpi-so b { color: #c0392b; }
.kpi-ds { color: #6b7570; font-size: .9rem; }
.kpi-chu { font-size: .8rem; color: #6b7570; }

/* Thẻ Tiến độ KPI tháng: chi tiết Thực tế / Tạm tính */
.kpi-ct { border-left: 4px solid; border-radius: 8px; padding: 6px 9px; margin-top: 8px; font-size: .85rem; line-height: 1.35; }
.kpi-ct.am { background: #fdecea; border-color: #c0392b; }
.kpi-ct.am.tam { background: #fff6e0; border-color: #e0a100; }
.kpi-ct.du { background: #e8f5ee; border-color: #1e7b4f; }
.kpi-ct-dau { display: flex; gap: 6px; align-items: baseline; }
.kpi-ct-dau span { color: #6b7570; }
.kpi-ct-dau .kpi-ct-pt { margin-left: auto; font-weight: 700; color: inherit; font-variant-numeric: tabular-nums; }
.kpi-ct-so { color: #4b5550; font-variant-numeric: tabular-nums; }
.kpi-ct-kq { font-variant-numeric: tabular-nums; }
.kpi-ct.am:not(.tam) .kpi-ct-kq b { color: #c0392b; }
.kpi-ct-kq span { color: #6b7570; }
.bang-luong-ngay summary { cursor: pointer; list-style-position: inside; }

/* Data & số nóng (17/9/2026) */
.ds-hop { border: 2px solid #cfe3d9; }
.ds-luat { background: #eef6f2; border-left: 4px solid #1e7b4f; border-radius: 6px; padding: 7px 10px; margin: 8px 0; font-size: .88rem; }
.ds-bang { font-size: .85rem; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.ds-bang th { font-size: .78rem; vertical-align: bottom; background: #f6f8f7; }
.ds-bang td.ds-ok, .ds-bang th.ds-ok { color: #1e7b4f; }
.ds-bang td.ds-tre { color: #9a6a00; background: #fff8e6; }
.ds-bang td.ds-xau { color: #b3261e; background: #fdf0ee; font-weight: 700; }
.ds-phu { font-size: .72rem; color: #6b7570; font-weight: 400; }
.ds-ct summary { cursor: pointer; margin: 4px 0 8px; }
.ds-vu { border-left: 4px solid #e0a100; background: #fffaf0; border-radius: 6px; padding: 7px 10px; margin-bottom: 6px; font-size: .86rem; }
.ds-vu.xau { border-color: #b3261e; background: #fdf3f1; }
.ds-vu.mat { border-color: #b3261e; background: #fbe9e6; }
.ds-vu-dau { margin-bottom: 2px; }
.ds-vu .so { font-weight: 700; background: #fff; border-radius: 6px; padding: 0 6px; font-variant-numeric: tabular-nums; }
.ds-the { font-size: .72rem; background: #eceff1; border-radius: 10px; padding: 1px 7px; margin-left: 4px; }
.ds-chot { color: #8e1d16; margin-top: 3px; }
.ds-trong { color: #6b7570; font-size: .88rem; padding: 6px 0; }

/* Data sale — ô gọn (17/9/2026) */
.ds-hop { border: 1px solid #dfe7e3; border-radius: 12px; }
.ds-dau { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.ds-luat-gon { font-size: .78rem; color: #1e7b4f; background: #eaf5ef; border-radius: 20px; padding: 2px 10px; }
.ds-o3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.ds-o { background: #f5f8f6; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; line-height: 1.15; }
.ds-so { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #1d2b25; }
.ds-nhan { font-size: .78rem; color: #4b5550; margin-top: 2px; }
.ds-7 { font-size: .7rem; color: #8a948f; margin-top: 2px; }
.ds-o-do { background: #fdeeed; }
.ds-o-do .ds-so { color: #b3261e; }
.ds-ngay { overflow-x: auto; }
.ds-ngay table { border-collapse: collapse; font-size: .78rem; font-variant-numeric: tabular-nums; width: 100%; }
.ds-ngay th, .ds-ngay td { padding: 3px 6px; text-align: center; white-space: nowrap; }
.ds-ngay tr:first-child th { color: #8a948f; font-weight: 500; }
.ds-ngay th:first-child { text-align: left; color: #4b5550; font-weight: 500; }
.ds-ngay td { border-top: 1px solid #eef2f0; }
.ds-ngay .ds-hn { background: #f0f7f3; font-weight: 700; }
.ds-ngay .ds-0 { color: #c2c9c5; }
.ds-ngay .ds-do { color: #b3261e; font-weight: 700; }
.ds-ben-tieu { font-weight: 700; font-size: .85rem; margin: 12px 0 6px; }
.ds-mat { background: #fff6f5; border: 1px solid #f6d5d1; border-radius: 10px; padding: 7px 10px; margin-bottom: 6px; font-size: .84rem; }
.ds-mat-dau { display: flex; justify-content: space-between; gap: 8px; }
.ds-mat-tien { font-weight: 700; color: #b3261e; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-mat-dong { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; color: #5d6762; font-size: .78rem; margin-top: 2px; }
.ds-mat-dong i { font-style: normal; color: #c9a19c; }
.ds-trong { color: #6b7570; font-size: .84rem; padding: 4px 0; }
.ds-luoi { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
@media (max-width: 420px) { .ds-so { font-size: 1.3rem; } }

/* Data & số nóng — 1 ô gọn: chip ngày kiểu lịch + 3 ô số có màu (17/9/2026) */
.ds-hop:has(.ds-gon) { position: relative; overflow: hidden; border: 1px solid #dde8e3; box-shadow: 0 4px 14px rgba(14, 92, 79, .07); }
.ds-hop:has(.ds-gon)::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #0E5C4F, #1fa37a 35%, #f59f00 70%, #e8590c); }
.ds-gon { --ds-xanh: #0E5C4F; --ds-xanh-nhat: #e6f2ed; --ds-do: #c92a2a; --ds-do-nhat: #fff0ef; --ds-vien: #e3ebe7; --ds-chu-phu: #7d8883; }
.ds-gon-dau { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; margin-bottom: 10px; }
.ds-gon-ten { font-weight: 700; font-size: 1.02rem; color: #0E5C4F; white-space: nowrap; }
.ds-gon-luat { font-size: .72rem; line-height: 1.3; color: #8a4b00; background: linear-gradient(90deg, #fff4db, #ffe8cc); border: 1px solid #ffd8a8; border-radius: 12px; padding: 3px 10px; }
.ds-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 1px 6px; margin-bottom: 6px; scroll-snap-type: x proximity; }
.ds-chips::-webkit-scrollbar { display: none; }
.ds-chip { position: relative; flex: 1 0 58px; max-width: 88px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 4px 6px; border-radius: 12px; border: 1px solid var(--ds-vien); background: #fff; color: #33403a; cursor: pointer; font: inherit; line-height: 1.1; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; }
.ds-chip:hover { border-color: #9fd3bf; background: #f3fbf7; transform: translateY(-1px); }
.ds-chip-thu { font-size: .66rem; color: var(--ds-chu-phu); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.ds-chip-ngay { font-size: .86rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ds-chip[aria-pressed="true"] { background: linear-gradient(135deg, #0E5C4F, #1fa37a); border-color: transparent; color: #fff; box-shadow: 0 4px 10px rgba(31, 163, 122, .35); }
.ds-chip[aria-pressed="true"] .ds-chip-thu { color: rgba(255, 255, 255, .85); }
.ds-chip.co-do::after { content: ""; position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--ds-do); box-shadow: 0 0 0 2px #fff; }
.ds-chip.co-do[aria-pressed="true"]::after { background: #ffc9c9; box-shadow: none; }
.ds-chip:focus-visible { outline: 2px solid var(--ds-xanh); outline-offset: 2px; }
.ds-thanh { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ds-cot { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 9px 12px; line-height: 1.15; min-width: 0; border-radius: 12px; border: 1px solid transparent; }
.ds-cot-icon { position: absolute; top: 7px; right: 9px; font-size: 1rem; opacity: .9; }
.ds-cot-so { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ds-cot-nhan { font-size: .76rem; font-weight: 600; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ds-cot-7 { font-size: .68rem; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: .8; }
.ds-cot-data { background: linear-gradient(135deg, #e7f0ff, #f3f7ff); border-color: #d0e1ff; color: #1c4fb8; }
.ds-cot-data .ds-cot-so { color: #1d4ed8; }
.ds-cot-nong { background: linear-gradient(135deg, #fff0e0, #fff8ef); border-color: #ffd8a8; color: #a14a05; }
.ds-cot-nong .ds-cot-so { color: #e8590c; }
.ds-cot-bi { background: linear-gradient(135deg, #e6f7ee, #f3fbf6); border-color: #c3e9d3; color: #1f7a4d; }
.ds-cot-bi .ds-cot-so { color: #2b8a3e; }
.ds-cot-bi.do { background: linear-gradient(135deg, #ffe3e3, #fff5f5); border-color: #ffc9c9; color: var(--ds-do); }
.ds-cot-bi.do .ds-cot-so { color: var(--ds-do); }
.ds-cot-7.ds-do { color: var(--ds-do); font-weight: 700; opacity: 1; }
@media (max-width: 420px) { .ds-thanh { gap: 6px; } .ds-cot { padding: 7px 8px; } .ds-cot-so { font-size: 1.25rem; } .ds-cot-icon { font-size: .85rem; top: 6px; right: 6px; } .ds-chip { flex-basis: 52px; } }
.ds-canh { background: #fff8e8; border-color: #f1dca8; }
.ds-canh .ds-mat-tien { color: #8a6100; }
/* Lý do chốt số của bạn (17/9/2026) */
.ds-mo { opacity: .6; }
.ds-lydo { font-size: .76rem; margin-top: 4px; border-radius: 6px; padding: 2px 8px; display: inline-block; }
.ds-lydo.ok { background: #e6f4ec; color: #1e6b45; }
.ds-lydo.cho { background: #fff4d6; color: #7a5a00; }
.ds-lydo.khong { background: #fde3e0; color: #9b221b; }
.ds-form-lydo { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ds-form-lydo select { width: auto; max-width: 100%; }
.ds-form-lydo input { flex: 1 1 180px; min-width: 0; }

/* Kiểm tra gọi thật (17/9/2026) */
.kg-luoi { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.kg-o { border: 1px solid #dfe7e3; border-radius: 10px; padding: 10px; background: #fff; }
.kg-o.kg-do { border-color: #e9b4ae; background: #fff7f6; }
.kg-o.kg-vang { border-color: #f0dca6; background: #fffcf2; }
.kg-dau { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.kg-dong { font-size: .82rem; margin-top: 3px; }
.kg-chu-do { color: #a8261c; }
.kg-chu-vang { color: #7a5a00; }
.kg-mau-tieu { font-size: .8rem; font-weight: 600; margin-top: 8px; }
.kg-mau { border-top: 1px dashed #e3e8e5; padding-top: 5px; margin-top: 5px; font-size: .82rem; }
.kg-nut { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

/* Ô doanh thu ngày trên Tổng quan (19/9/2026) */
.dt-ngay { border: 1px solid #dfe7e3; border-radius: 12px; }
.dt-o3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.dt-o { background: #f5f8f6; border-radius: 10px; padding: 9px 11px; display: flex; flex-direction: column; line-height: 1.2; }
.dt-o.dt-chinh { background: #e9f4ee; }
.dt-o.dt-vang { background: #fff6e2; }
.dt-o.dt-do { background: #fdeeed; }
.dt-nhan { font-size: .76rem; color: #5d6762; }
.dt-so { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 2px 0; }
.dt-phu { font-size: .72rem; color: #78837d; }
.dt-sale { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dt-chip { font-size: .76rem; background: #eef2f0; border-radius: 20px; padding: 2px 10px; font-variant-numeric: tabular-nums; }

.dt-bang { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
.dt-bang th { font-size: .74rem; color: #6b7570; font-weight: 600; text-align: center; padding: 4px 8px; border-bottom: 1px solid #dfe5e2; white-space: nowrap; }
.dt-bang td { text-align: center; padding: 5px 8px; border-bottom: 1px solid #f0f3f1; white-space: nowrap; }
.dt-bang th:first-child, .dt-bang td:first-child { text-align: left; }
.dt-bang .dt-ti { color: #8a948f; font-size: .72rem; }
.dt-bang .dt-chu-do { color: #b3261e; font-weight: 700; }

/* Lối vào LIST DATA CSKH trên trang Sale (19/9/2026) */
.cskh-loi-vao { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #0d3b66 0%, #11588a 60%, #159fb5 130%);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(12,31,43,.12); }
.cskh-loi-vao:hover { filter: brightness(1.06); color: #fff; }
.cskh-loi-icon { font-size: 26px; background: rgba(255,255,255,.16); border-radius: 12px; width: 48px; height: 48px;
  display: grid; place-items: center; flex: 0 0 48px; }
.cskh-loi-vao, .cskh-loi-vao * { color: #fff !important; }
.cskh-loi-chu b { display: block; font-size: 15px; letter-spacing: .02em; color: #fff !important; }
.cskh-loi-chu span { font-size: 12.5px; color: #eaf4fa !important; }
.cskh-loi-so { display: flex; gap: 16px; margin-left: auto; flex-wrap: wrap; }
.cskh-loi-so span { text-align: center; font-size: 11.5px; color: #eaf4fa !important; display: flex; flex-direction: column; }
.cskh-loi-so b { font-size: 20px; color: #fff; font-variant-numeric: tabular-nums; }
.cskh-loi-so span.do b { color: #ffd4cf !important; }
.cskh-loi-mui { font-size: 22px; opacity: .8; }
@media (max-width: 700px) { .cskh-loi-so { width: 100%; justify-content: space-between; margin-left: 0; } .cskh-loi-mui { display: none; } }
.ds-gon-vu { padding: 7px 10px; }
.ds-gon-vu .ds-mat-dau { font-size: .84rem; }
.ds-gon-vu .ds-form-lydo { margin-top: 4px; }
.ds-gon-vu .ds-form-lydo select, .ds-gon-vu .ds-form-lydo input, .ds-gon-vu .ds-form-lydo button { font-size: .78rem; padding: 2px 8px; }
