/* Rieng phan mem Hữu Gia: the khach, buoc cham khach, bao cao (dung chung bien mau o style.css) */
.logo img { background: none; box-shadow: none; }
.logo span { font-size: 9px; }

/* Mau tung buoc: lanh (moi) → am dan (net, gap) → xanh (coc, HD); dung = xam/do nhat */
.tt-moi { --c: #1f6fb2; --n: #e6f1fb; }
.tt-dang_tuong_tac { --c: #2f3f8f; --n: #e9edfb; }
.tt-quan_tam { --c: #7b3fb0; --n: #f2e9fb; }
.tt-net { --c: #b8640f; --n: #fff1e3; }
.tt-da_gap { --c: #c0362c; --n: #fbe7e5; }
.tt-dat_coc { --c: #2b8a5e; --n: #e6f5ee; }
.tt-ky_hd { --c: #fff; --n: #2b8a5e; }
.tt-bo { --c: #6b7184; --n: #eef0f4; }
.tt-tai_chinh_yeu { --c: #8a6d3b; --n: #f5efe3; }
.nhan[class*="tt-"] { background: var(--n); color: var(--c); }
.nhan.cho { background: var(--cam); color: #fff; }
.nhan.hen { background: #e6f1fb; color: #1f6fb2; }

/* The khach trong danh sach */
.the-khach { padding: 11px 14px; }
.the-khach .ten-khach { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.the-khach .dong2 { gap: 4px 10px; margin-top: 2px; font-size: 13px; }
.the-khach .dong3 { margin-top: 6px; font-size: 12.5px; }
.the-khach .dong3 button { padding: 6px 12px; }
.pt { display: inline-flex; align-items: center; gap: 3px; }
.pt .ic { width: 14px; height: 14px; }
.cat2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; overflow-wrap: anywhere; }
h2 .dem { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 99px; background: var(--chinh-nhat); color: var(--chinh); font-size: 12.5px; text-align: center; }
.nho-trong { padding: 14px; font-size: 13.5px; }

/* Bo loc */
#tim { margin-bottom: 8px; }
.loc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.loc select { padding: 8px 10px; font-size: 13.5px; }
@media (min-width: 900px) { .loc { grid-template-columns: repeat(4, 1fr); } }
.chips-tt { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px; }
.chips-tt::-webkit-scrollbar { display: none; }
.chips-tt .chip { flex: none; white-space: nowrap; }
.so-chip { opacity: .7; font-weight: 500; margin-left: 2px; }

/* Chi tiet khach */
.nut-lien-he { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.nut-lien-he .nut { flex: 1 1 120px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; padding: 11px 12px; }
.dong-tt { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--vien); }
.dong-tt:last-of-type { border-bottom: 0; }
.dong-tt > span:last-child { text-align: right; overflow-wrap: anywhere; min-width: 0; }
.dong-tt .mo { flex: none; }
.chips.buoc { margin-bottom: 8px; }
.chips.buoc .chip.dung { color: var(--mo); }
.chips.buoc .chip.dung.dang { background: var(--mo); border-color: var(--mo); color: #fff; }
.nho-sel { width: auto; padding: 5px 10px; font-size: 13px; border-radius: 10px; }
.o-chon { display: flex; align-items: center; gap: 8px; color: var(--chu); font-size: 14px; }
.o-chon input { width: auto; }
.dong-thoi-gian { margin-top: 12px; border-left: 2px solid var(--vien); padding-left: 14px; }
.ls { position: relative; padding: 0 0 14px; overflow-wrap: anywhere; }
.ls::before { content: ''; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--chinh); box-shadow: 0 0 0 3px var(--nen); }
.ls-trang_thai::before, .ls-phu_trach::before { background: var(--cam); }
.ls-sua::before, .ls-nhap::before { background: #b9bfd0; }
.ls-sua > div:last-child, .ls-phu_trach > div:last-child, .ls-trang_thai > div:last-child { color: var(--mo); font-size: 13.5px; }

/* Bao cao */
.luoi-bc { display: grid; gap: 0 10px; }
@media (min-width: 900px) { .luoi-bc { grid-template-columns: 1fr 1fr; } }
.so-lon-nho { font-weight: 700; color: var(--chinh); }
.chi-so { margin: 10px 0 8px; gap: 6px; }
.chi-so > div { flex: 1; text-align: center; background: var(--nen); border-radius: 10px; padding: 6px 2px; }
.chi-so b { display: block; font-size: 18px; }
.chi-so span { font-size: 11.5px; color: var(--mo); }
.thanh-tt { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--nen); gap: 1px; }
.thanh-tt i { background: var(--c); }
.thanh-tt i.tt-ky_hd { background: var(--n); }
.thanh-tt i.tt-bo { background: #c4c8d4; }
.chu-tt { margin-top: 6px; font-size: 12px; }
.bang-cuon { overflow-x: auto; padding: 4px 8px; }
table.bang { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.bang th { text-align: right; color: var(--mo); font-weight: 500; padding: 8px 6px; border-bottom: 1px solid var(--vien); white-space: nowrap; }
table.bang td { text-align: right; padding: 7px 6px; border-bottom: 1px solid var(--vien); }
table.bang th:first-child, table.bang td:first-child { text-align: left; }
table.bang tr:last-child td { border-bottom: 0; }

/* Tong quan: o so (stat tile), so voi ky truoc, pheu mot mau, canh bao (icon + chu, khong chi bang mau) */
.luoi-tq { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.luoi-tq.ba { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 900px) { .luoi-tq { grid-template-columns: repeat(4, 1fr); } }
.o-so-tq { background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo); padding: 11px 12px; box-shadow: var(--bong); min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.o-so-tq .nhan-o { font-size: 12.5px; color: var(--mo); }
.o-so-tq b { font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.3px; overflow-wrap: anywhere; }
.luoi-tq.ba .o-so-tq b { font-size: 18px; }
.o-so-tq .phu-o { font-size: 11.5px; color: var(--mo); }
.o-so-tq.chinh { background: var(--grad); border: 0; color: #fff; }
.o-so-tq.chinh .nhan-o, .o-so-tq.chinh .phu-o { color: rgba(255, 255, 255, .8); }
.o-so-tq.nhan-manh { border-color: var(--chinh); box-shadow: 0 0 0 1px var(--chinh) inset, var(--bong); }
.ss { font-size: 12px; font-weight: 600; margin-top: 2px; }
.ss.tot { color: var(--xanh); }
.ss.xau { color: var(--do); }
.ss.trung { color: var(--mo); }
.o-so-tq.chinh .ss { color: rgba(255, 255, 255, .9); }
.pheu-dong { display: grid; grid-template-columns: 96px 1fr 78px; align-items: center; gap: 8px; padding: 4px 0; }
.pheu-ten { font-size: 13px; color: var(--mo); }
.pheu-thanh { height: 14px; background: var(--nen); border-radius: 4px; overflow: hidden; }
.pheu-thanh i { display: block; height: 100%; background: var(--chinh); border-radius: 0 4px 4px 0; }
.pheu-so { text-align: right; font-size: 13.5px; white-space: nowrap; }
.canh-bao { display: flex; gap: 8px; align-items: flex-start; border-radius: 12px; padding: 9px 12px; margin-bottom: 8px; font-size: 13.5px; text-decoration: none; overflow-wrap: anywhere; }
.canh-bao .ic { width: 18px; height: 18px; margin-top: 1px; }
.canh-bao.do { background: var(--do-nhat); color: var(--do); border: 1px solid #efb6b0; }
.canh-bao.cam { background: var(--cam-nhat); color: var(--cam); border: 1px solid #f1d2ad; }
td.ten-cd { max-width: 220px; overflow-wrap: anywhere; }
td.ten-cd .mo { font-size: 11.5px; }
/* The tong ket o Tong quan (Sep 26/10/2026): chi gop Chi phi quang cao + Data moi, gon nhu the tien thu ben Yen Hoang */
.tq-lon { padding: 14px 16px 12px; border-radius: 20px; }
.tq-hai { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; }
.tq-hai > div { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.tq-hai > div + div { border-left: 1px solid rgba(255, 255, 255, .2); padding-left: 14px; }
.tq-hai span:not(.ss) { font-size: 13px; color: rgba(255, 255, 255, .85); }
.tq-hai b { font-size: 25px; font-weight: 800; color: #fff; line-height: 1.2; letter-spacing: -.4px; white-space: nowrap; }
.tq-lon .tq-phu { font-size: 12px; color: rgba(255, 255, 255, .75); margin-top: 8px; }
.tq-lon .ss { display: inline-block; background: rgba(255, 255, 255, .18); color: #fff; border-radius: 99px; padding: 1px 8px; font-size: 11.5px; margin-top: 3px; white-space: nowrap; }
.tq-lon .ss.tot { background: rgba(80, 220, 150, .25); color: #c9ffe2; }
.tq-lon .ss.xau { background: rgba(255, 110, 100, .28); color: #ffd9d5; }
@media (min-width: 700px) { .tq-hai b { font-size: 30px; } }
@media (max-width: 370px) { .tq-hai b { font-size: 21px; } }
.canh-bao.goi-y { background: var(--chinh-nhat); color: var(--chinh); border: 1px solid #c9d2f3; } /* goi y bat thong bao (26/10/2026) */
