/* Nhập chi phí đầu vào — giao diện 22/11/2026 (bản cũ: zz_ban_cu_truoc_giao_dien_moi/public/style.css)
   Nguyên tắc: công cụ kế toán — yên, rõ, số liệu dễ đọc. Mực navy + xanh ngọc "khớp"; vàng = cần xem; đỏ gạch = lỗi/trùng.
   Không tải font/thư viện ngoài (dữ liệu khách là bí mật). */
:root {
  --muc: #142C4A;          /* mực navy: thanh bên */
  --navy: #1F3A5F; --navy-2: #2B4C77; --navy-nhat: #EAF0F7;
  --ngoc: #0E7C7B; --ngoc-2: #0B6766; --ngoc-nen: #E2F3F1; --ngoc-vien: #A9DAD4;
  --chu: #17202E; --phu: #5A6577; --mo: #8B95A7;
  --vien: #E1E6EE; --vien-2: #CDD5E1;
  --nen: #F2F4F7; --the: #FFFFFF; --the-2: #F8FAFC;
  --xanh: #2E7D4F; --xanh-nen: #E6F4EC; --xanh-chu: #2A7444;
  --vang: #8F5F00; --vang-nen: #FFF4D9; --vang-vien: #F1D28A;
  --do: #A23A35; --do-nen: #FBECEA; --do-vien: #EBC6C2;
  --xam-nen: #EEF1F5;
  --sk: #3A62A8;           /* chuỗi biểu đồ: sổ khách (đã kiểm CVD) */
  --ai: #14A39A;           /* chuỗi biểu đồ: máy đọc */
  --bo: 12px; --bo-nho: 8px;
  --bong: 0 1px 2px rgba(16, 33, 58, .05), 0 6px 18px -12px rgba(16, 33, 58, .16);
  --bong-cao: 0 18px 48px -16px rgba(16, 33, 58, .35);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --nhanh: 160ms cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--nen); color: var(--chu); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--ngoc); outline-offset: 2px; border-radius: 4px; }
.an { display: none !important; }
.so { font-variant-numeric: tabular-nums; }
.phai { text-align: right; }
.mo { color: var(--phu); }
.nho { font-size: 12.5px; }
.dam { font-weight: 600; }
.ma-chu { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .1px; color: var(--navy); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- dang nhap ---------- */
.dn-nen { min-height: 100%; display: grid; place-items: center; padding: 24px;
  background: linear-gradient(160deg, #E6EDF5 0%, var(--nen) 55%); }
.dn { width: 100%; max-width: 392px; background: #fff; border: 1px solid var(--vien); border-radius: 16px; padding: 32px 28px; box-shadow: var(--bong-cao); }
.dn h1 { font-size: 22px; margin: 18px 0 4px; font-weight: 650; letter-spacing: -.2px; }
.dn p { margin: 0 0 18px; color: var(--phu); }
.dn label { display: block; font-size: 12.5px; color: var(--phu); margin: 12px 0 4px; }
.dn .nut { width: 100%; margin-top: 20px; height: 42px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: .1px; }
.logo i { width: 32px; height: 32px; border-radius: 9px; background: var(--navy); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 15px; flex: none;
  box-shadow: inset 0 -2px 0 var(--ngoc); }

/* ---------- khung app ---------- */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100%; }
.ben { background: var(--muc); color: #D6E0EC; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 40; }
.ben .logo { color: #fff; padding: 18px 18px 12px; }
.ben .logo i { background: rgba(255,255,255,.1); }
.ben .logo small { display: block; font-weight: 400; font-size: 11.5px; color: #93A8C2; }
.menu { padding: 4px 10px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; }
.menu a { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: #BFCDDD; font-size: 13.5px; transition: background var(--nhanh), color var(--nhanh); }
.menu a:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.menu a.dang { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.menu a.dang::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ai); }
.menu a svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.menu a .dem { margin-left: auto; background: #F3C350; color: #3B2C00; border-radius: 99px; padding: 0 7px; font-size: 11.5px; font-weight: 700; line-height: 18px; }
.menu .nhom { font-size: 11.5px; color: #7890AD; padding: 16px 10px 4px; }
.ben .chan { margin-top: auto; padding: 14px 18px; font-size: 12px; color: #93A8C2; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px; }
.ben .chan .avt { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; font-weight: 650; flex: none; }
.ben .chan b { color: #fff; font-weight: 600; display: block; }
.ben .chan button { background: none; border: 0; color: #BFCDDD; padding: 0; text-decoration: underline; font-size: 12px; margin-left: auto; }

.chinh { min-width: 0; display: flex; flex-direction: column; }
.tren { min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 10px 26px; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--vien); position: sticky; top: 0; z-index: 30; }
.tren .tieu { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex-wrap: wrap; }
.tren h1 { font-size: 18px; margin: 0; font-weight: 650; letter-spacing: -.2px; white-space: nowrap; }
.tren .phu-de { color: var(--phu); font-size: 13px; }
.tren .day { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tim-nhanh { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 11px; border: 1px solid var(--vien-2); border-radius: 9px; background: var(--the-2); color: var(--phu); font-size: 13px; min-width: 220px; transition: border-color var(--nhanh), background var(--nhanh); }
.tim-nhanh:hover { border-color: var(--navy-2); background: #fff; }
.tim-nhanh svg { width: 16px; height: 16px; flex: none; }
.tim-nhanh kbd { margin-left: auto; }
.song { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--phu); white-space: nowrap; }
.song i { width: 7px; height: 7px; border-radius: 50%; background: var(--ai); box-shadow: 0 0 0 3px rgba(20,163,154,.18); }
.song.tat i { background: var(--mo); box-shadow: none; }
.noi { padding: 22px 26px 48px; max-width: 1680px; width: 100%; }
.noi.vao > * { animation: vao .22s ease-out both; }
@keyframes vao { from { opacity: 0; transform: translateY(4px); } }

/* ---------- thanh phan ---------- */
.the { background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo); box-shadow: var(--bong); min-width: 0; }
.the > .dau { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--vien); flex-wrap: wrap; }
.the > .dau h2 { font-size: 14.5px; margin: 0; font-weight: 650; letter-spacing: -.1px; }
.the > .dau .mo { font-size: 12.5px; }
.the > .dau .day { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.the > .than { padding: 14px 18px; }
.luoi { display: grid; gap: 16px; }
.luoi-2 { grid-template-columns: 1fr 1fr; }
.luoi-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mb { margin-bottom: 16px; }

.nut { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--bo-nho);
  border: 1px solid var(--navy); background: var(--navy); color: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: background var(--nhanh), border-color var(--nhanh), transform var(--nhanh); }
.nut:hover { background: var(--navy-2); text-decoration: none; }
.nut:active:not(:disabled) { transform: translateY(1px); }
.nut:disabled { opacity: .45; cursor: default; }
.nut.phu { background: #fff; color: var(--chu); border-color: var(--vien-2); }
.nut.phu:hover { background: var(--the-2); border-color: var(--navy-2); }
.nut.xanh { background: var(--ngoc); border-color: var(--ngoc); }
.nut.xanh:hover { background: var(--ngoc-2); }
.nut.do { background: #fff; color: var(--do); border-color: var(--do-vien); }
.nut.do:hover { background: var(--do-nen); }
.nut.nho { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.nut.icon { width: 34px; padding: 0; }
.nut svg { width: 16px; height: 16px; }
kbd { font: 600 10.5px/1 var(--font); background: rgba(0,0,0,.05); border: 1px solid rgba(0,0,0,.1); border-bottom-width: 2px; border-radius: 4px; padding: 2px 5px; color: inherit; opacity: .85; white-space: nowrap; }
.nut kbd { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); }
.nut.phu kbd, .nut.do kbd { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.1); }

.o { height: 34px; border: 1px solid var(--vien-2); border-radius: var(--bo-nho); padding: 0 10px; background: #fff; min-width: 0; width: 100%; transition: border-color var(--nhanh), box-shadow var(--nhanh); }
.o:hover:not(:disabled) { border-color: #B5C1D1; }
.o:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(43, 76, 119, .14); }
.o:disabled { background: var(--the-2); color: var(--phu); }
select.o { padding-right: 6px; }
.truong label { display: block; font-size: 12px; color: var(--phu); margin-bottom: 4px; }
.loc { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 12px 18px; border-bottom: 1px solid var(--vien); }
.loc .truong { min-width: 140px; }
.loc .truong.rong { flex: 1; min-width: 220px; }

/* nhan trang thai */
.tt { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tt::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.tt.tu-khop { background: var(--xanh-nen); color: var(--xanh-chu); }
.tt.cho-duyet { background: var(--vang-nen); color: var(--vang); }
.tt.da-duyet { background: var(--xanh); color: #fff; }
.tt.da-duyet::before { background: #fff; }
.tt.trung, .tt.loai-bo, .tt.loi-doc { background: var(--do-nen); color: var(--do); }
.tt.cho-doc { background: var(--xam-nen); color: #475467; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; background: var(--vang-nen); color: #775000; border: 1px solid var(--vang-vien); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chip.xam { background: var(--xam-nen); color: #475467; border-color: var(--vien); }
.chip.do { background: var(--do-nen); color: var(--do); border-color: var(--do-vien); }
.chip.xanh { background: var(--xanh-nen); color: var(--xanh-chu); border-color: #BFE2CC; }
.chip.ngoc { background: var(--ngoc-nen); color: var(--ngoc-2); border-color: var(--ngoc-vien); }
a.chip:hover { text-decoration: none; filter: brightness(.97); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.huy-hieu { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: var(--do-nen); color: var(--do); }

/* bang */
.bang-boc { overflow: auto; }
table.bang { width: 100%; border-collapse: collapse; font-size: 13px; }
.bang th { text-align: left; font-weight: 600; color: var(--phu); font-size: 12px; background: var(--the-2); padding: 9px 12px; border-bottom: 1px solid var(--vien); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.bang td { padding: 9px 12px; border-bottom: 1px solid #EDF0F4; vertical-align: middle; }
.bang tr:last-child td { border-bottom: 0; }
.bang tbody tr.bam { cursor: pointer; transition: background var(--nhanh); }
.bang tbody tr.bam:hover td { background: #F5F8FB; }
.bang .so, .bang .phai { text-align: right; font-variant-numeric: tabular-nums; }
.bang td.ma { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12.5px; color: var(--navy); white-space: nowrap; }
.bang th.sap { cursor: pointer; user-select: none; }
.bang th.sap:hover { color: var(--chu); }
.bang th.sap i { font-style: normal; display: inline-block; width: 10px; margin-left: 3px; color: var(--mo); }
.bang th.sap.dang { color: var(--chu); }
.bang th.sap.dang i { color: var(--ngoc); }
.trong { padding: 40px 16px; text-align: center; color: var(--phu); }
.trong b { display: block; color: var(--chu); font-size: 15px; margin-bottom: 4px; }

/* xuong (khung cho khi dang tai) */
.xuong { background: linear-gradient(90deg, #E9EDF2 0%, #F4F6F9 40%, #E9EDF2 80%); background-size: 300% 100%; animation: song-sang 1.3s linear infinite; border-radius: 8px; }
@keyframes song-sang { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.xuong-trang { display: grid; gap: 16px; }
.xuong-trang .h1 { height: 96px; border-radius: var(--bo); }
.xuong-trang .h2 { height: 300px; border-radius: var(--bo); }
.xuong-trang .hang { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }

/* ---------- tong quan ---------- */
.dai-kpi { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 16px; overflow: hidden; }
.dai-kpi > a, .dai-kpi > div { display: block; padding: 16px 18px 15px; color: inherit; border-left: 1px solid var(--vien); position: relative; transition: background var(--nhanh); min-width: 0; }
.dai-kpi > :first-child { border-left: 0; }
.dai-kpi > a:hover { background: var(--the-2); text-decoration: none; }
.dai-kpi > a:hover .gt { color: var(--navy-2); }
.dai-kpi .nhan { font-size: 12.5px; color: var(--phu); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.dai-kpi .gt { font-size: 28px; font-weight: 650; letter-spacing: -.6px; margin-top: 2px; font-variant-numeric: tabular-nums; line-height: 1.25; }
.dai-kpi .gt small { font-size: 14px; font-weight: 500; color: var(--phu); margin-left: 3px; letter-spacing: 0; }
.dai-kpi .duoi { font-size: 12px; color: var(--phu); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dai-kpi .cham { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.vach { height: 5px; background: var(--xam-nen); border-radius: 99px; overflow: hidden; margin-top: 8px; display: flex; }
.vach i { display: block; height: 100%; }
.dai { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--xam-nen); gap: 2px; }
.dai i { display: block; height: 100%; }
.chu-giai { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--phu); }
.chu-giai span { display: inline-flex; align-items: center; gap: 6px; }
.chu-giai i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chu-giai b { color: var(--chu); }
.thanh-ngang { display: grid; grid-template-columns: minmax(120px, 38%) 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.thanh-ngang .ten { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thanh-ngang .ray { height: 8px; background: var(--xam-nen); border-radius: 99px; overflow: hidden; }
.thanh-ngang .ray i { display: block; height: 100%; background: var(--navy); border-radius: 99px; }
.thanh-ngang .gt { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 92px; text-align: right; }
.noi-bat { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.noi-bat b { font-size: 30px; letter-spacing: -.6px; font-weight: 650; }
.chinh-xac { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.vong { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; }
.vong span { width: 74px; height: 74px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px; }

.tq-hang { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.phan-doan { display: inline-flex; background: var(--xam-nen); border-radius: 9px; padding: 3px; gap: 2px; }
.phan-doan button { border: 0; background: transparent; padding: 4px 11px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--phu); white-space: nowrap; transition: background var(--nhanh), color var(--nhanh); }
.phan-doan button.dang { background: #fff; color: var(--chu); box-shadow: 0 1px 2px rgba(16,33,58,.12); }
.bieu-do { position: relative; }
.bieu-do svg { display: block; width: 100%; overflow: visible; }
.bieu-do .truc { font-size: 11px; fill: var(--mo); font-variant-numeric: tabular-nums; }
.bieu-do .luoi-bd { stroke: #E8ECF1; stroke-width: 1; }
.bieu-do .day-bd { stroke: #C9D1DC; stroke-width: 1; }
.bieu-do .ten-ky { font-size: 12px; fill: var(--phu); font-weight: 600; }
.bieu-do .vung { fill: transparent; cursor: pointer; }
.bieu-do .vung:hover, .bieu-do .vung.dang { fill: rgba(43,76,119,.06); }
.bieu-do rect.cot { transition: opacity var(--nhanh); }
.bieu-do.mo-dan rect.cot { opacity: .35; }
.bieu-do.mo-dan rect.cot.dang { opacity: 1; }
.bieu-do .moc { transform-origin: bottom; transform-box: fill-box; }
.bieu-do.chay .moc { animation: moc .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes moc { from { transform: scaleY(0); } }
.goi-y-bd { position: absolute; z-index: 20; pointer-events: none; background: #fff; border: 1px solid var(--vien); border-radius: 10px; box-shadow: var(--bong-cao); padding: 10px 12px; font-size: 12.5px; min-width: 210px; transform: translate(-50%, 0); opacity: 0; transition: opacity 120ms; }
.goi-y-bd.hien { opacity: 1; }
.goi-y-bd b.tieu { display: block; font-size: 13px; margin-bottom: 6px; }
.goi-y-bd .dong-gy { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; padding: 2px 0; }
.goi-y-bd .dong-gy i { width: 10px; height: 10px; border-radius: 3px; }
.goi-y-bd .dong-gy span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.goi-y-bd .meo { color: var(--mo); margin-top: 6px; font-size: 11.5px; }
.chu-giai-bd { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--phu); }
.chu-giai-bd span { display: inline-flex; align-items: center; gap: 6px; }
.chu-giai-bd i { width: 10px; height: 10px; border-radius: 3px; }

/* thanh ngang bam duoc (NCC / diem / nhom) */
.cot-ngang { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; cursor: pointer; color: inherit; transition: background var(--nhanh); }
.cot-ngang:hover { background: var(--the-2); text-decoration: none; }
.cot-ngang:hover .ten { color: var(--navy-2); text-decoration: underline; text-underline-offset: 2px; }
.cot-ngang .ten { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cot-ngang .gt { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.cot-ngang .gt small { font-weight: 400; color: var(--mo); margin-left: 6px; }
.cot-ngang .ray { grid-column: 1 / -1; height: 6px; background: var(--xam-nen); border-radius: 99px; overflow: hidden; }
.cot-ngang .ray i { display: block; height: 100%; border-radius: 99px; background: var(--sk); transition: width .4s cubic-bezier(.2,.7,.2,1); }
.cot-ngang.ai .ray i { background: var(--ai); }
.them-nua { margin-top: 6px; font-size: 12.5px; }

/* diem can chu y */
.chu-y { display: flex; flex-direction: column; }
.chu-y .muc { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 18px; border-bottom: 1px solid #EDF0F4; color: inherit; transition: background var(--nhanh); }
.chu-y .muc:last-child { border-bottom: 0; }
.chu-y a.muc:hover { background: var(--the-2); text-decoration: none; }
.chu-y .bieu { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--vang-nen); color: var(--vang); }
.chu-y .bieu svg { width: 16px; height: 16px; }
.chu-y .bieu.do { background: var(--do-nen); color: var(--do); }
.chu-y .bieu.ngoc { background: var(--ngoc-nen); color: var(--ngoc-2); }
.chu-y .bieu.navy { background: var(--navy-nhat); color: var(--navy-2); }
.chu-y .muc b { font-weight: 600; font-size: 13.5px; }
.chu-y .muc .gt { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.chu-y .muc .vd { font-size: 12px; color: var(--phu); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- danh sach chung tu ---------- */
.ds-dau { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--vien); }
.o-tim { position: relative; flex: 1; min-width: 240px; }
.o-tim svg { position: absolute; left: 11px; top: 9px; width: 16px; height: 16px; color: var(--mo); pointer-events: none; }
.o-tim .o { padding-left: 34px; height: 36px; }
.nhom-chip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nhom-chip > span.nhan { font-size: 12px; color: var(--phu); margin-right: 2px; }
.loc-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--vien-2); background: #fff; font-size: 12.5px; font-weight: 500; color: var(--chu); white-space: nowrap; transition: background var(--nhanh), border-color var(--nhanh), color var(--nhanh); }
.loc-chip:hover { border-color: var(--navy-2); }
.loc-chip small { color: var(--mo); font-variant-numeric: tabular-nums; }
.loc-chip.dang { background: var(--navy); border-color: var(--navy); color: #fff; }
.loc-chip.dang small { color: #B9C8DA; }
.loc-chip.rong-0 { opacity: .45; }
.loc-chip i.c { width: 8px; height: 8px; border-radius: 50%; }
.ds-loc2 { display: flex; flex-wrap: wrap; gap: 12px 18px; padding: 12px 18px; border-bottom: 1px solid var(--vien); align-items: flex-end; background: var(--the-2); }
.ds-loc2 .truong { min-width: 200px; flex: 1; max-width: 300px; }
.ds-loc2 .truong.ngay2 { min-width: 260px; max-width: 320px; }
.ngay2 .hai { display: flex; gap: 6px; align-items: center; }
.loc-dang { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--vien); font-size: 12.5px; }
.loc-dang .the-loc { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 4px 0 10px; border-radius: 99px; background: var(--navy-nhat); color: var(--navy); font-weight: 500; }
.loc-dang .the-loc button { border: 0; background: transparent; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--navy-2); padding: 0; font-size: 14px; line-height: 1; }
.loc-dang .the-loc button:hover { background: rgba(43,76,119,.14); }
.tong-ket { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; padding: 10px 18px; font-size: 12.5px; color: var(--phu); border-bottom: 1px solid var(--vien); }
.tong-ket b { color: var(--chu); font-size: 15px; font-variant-numeric: tabular-nums; font-weight: 650; }
.tong-ket .day { margin-left: auto; }
.bang-ct td.mui { width: 34px; padding-right: 0; }
.mui-btn { width: 26px; height: 26px; border-radius: 7px; border: 1px solid transparent; background: transparent; display: grid; place-items: center; color: var(--mo); padding: 0; transition: transform var(--nhanh), background var(--nhanh); }
.mui-btn:hover { background: var(--xam-nen); color: var(--chu); }
.mui-btn svg { width: 14px; height: 14px; }
tr.dang-mo .mui-btn { transform: rotate(90deg); color: var(--chu); }
tr.dang-mo td { background: #F5F8FB; }
.anh-nho { width: 30px; height: 38px; border-radius: 5px; object-fit: cover; background: var(--xam-nen); border: 1px solid var(--vien); display: block; }
.anh-nho.trong-anh { display: grid; place-items: center; color: var(--mo); font-size: 10px; }
.anh-nho.trong-anh svg { width: 14px; height: 14px; }
.ncc-o { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kenh-nho { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 12.5px; color: var(--phu); }
.kenh-nho i { width: 7px; height: 7px; border-radius: 50%; background: var(--ai); }
.kenh-nho.sk i { background: var(--sk); }
tr.mo-rong > td { padding: 0 !important; background: #F5F8FB; }
.mo-rong-noi { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 4px 18px 16px 52px; animation: vao .18s ease-out both; }
.mo-rong-noi .anh-to { width: 150px; height: 200px; object-fit: cover; border-radius: 8px; border: 1px solid var(--vien); background: #fff; cursor: zoom-in; }
.mo-rong-noi table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--vien); border-radius: 8px; font-size: 12.5px; overflow: hidden; }
.mo-rong-noi th { font-size: 11.5px; color: var(--phu); font-weight: 600; text-align: left; padding: 6px 10px; background: var(--the-2); border-bottom: 1px solid var(--vien); white-space: nowrap; }
.mo-rong-noi td { padding: 6px 10px; border-bottom: 1px solid #EEF1F5; }
.mo-rong-noi .chips { margin-bottom: 8px; }
.phan-trang { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--vien); font-size: 12.5px; color: var(--phu); }
.phan-trang .so-trang { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.phan-trang button { min-width: 32px; height: 30px; border-radius: 7px; border: 1px solid var(--vien-2); background: #fff; font-size: 12.5px; font-variant-numeric: tabular-nums; padding: 0 8px; }
.phan-trang button:hover:not(:disabled) { border-color: var(--navy-2); }
.phan-trang button.dang { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.phan-trang button:disabled { opacity: .4; cursor: default; }
.phan-trang select.o { width: auto; height: 30px; }
/* the chung tu (dien thoai) */
.ds-the { display: none; }
.the-ct { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid #EDF0F4; color: inherit; }
.the-ct:active { background: var(--the-2); }
.the-ct .ma-chu { font-size: 13px; }
.the-ct .tien { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.the-ct .dong2 { grid-column: 2 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--phu); }
.the-ct .ncc { grid-column: 2 / -1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.the-ct .anh-nho { grid-row: span 3; }

/* ---------- duyet ---------- */
.duyet { display: grid; grid-template-columns: minmax(360px, 39%) minmax(0, 1fr); height: calc(100vh - 60px); }
.xem-anh { position: relative; background: #232B37; overflow: hidden; touch-action: none; user-select: none; }
.xem-anh img { position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; max-width: none; will-change: transform; cursor: grab; }
.xem-anh img.keo { cursor: grabbing; }
.xem-anh .cong-cu { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 4px; background: rgba(18,24,34,.84); padding: 5px; border-radius: 11px; backdrop-filter: blur(6px); z-index: 2; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.xem-anh .cong-cu button { width: 32px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: #E6ECF3; font-size: 15px; display: grid; place-items: center; }
.xem-anh .cong-cu button:hover { background: rgba(255,255,255,.12); }
.xem-anh .cong-cu .ty-le { color: #C2CEDC; font-size: 12px; min-width: 44px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.xem-anh .khong-anh { position: absolute; inset: 0; display: grid; place-items: center; color: #A9B8CB; padding: 24px; text-align: center; }
.xem-anh .khong-anh .hop { max-width: 300px; }
.xem-anh .khong-anh svg { width: 42px; height: 42px; opacity: .7; margin-bottom: 8px; }
.xem-anh .khong-anh b { display: block; color: #E3EAF2; font-size: 15px; margin-bottom: 4px; }
.xem-anh .khong-anh a { color: #8FE0D8; }
.xem-anh .ten-anh { position: absolute; left: 12px; top: 10px; color: #C2CEDC; font-size: 12px; background: rgba(18,24,34,.6); padding: 3px 8px; border-radius: 6px; z-index: 2; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ben-phai { overflow: auto; display: flex; flex-direction: column; background: var(--nen); }
.ben-phai .dau-phieu { background: #fff; border-bottom: 1px solid var(--vien); padding: 16px 22px 14px; }
.dau-phieu .hang1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dau-phieu .hang1 h2 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.3px; }
.dau-phieu .hang1 .day { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dau-phieu .luoi-dau { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, .8fr); gap: 10px 12px; margin-top: 14px; }
.dau-phieu .doc-duoc { font-size: 11.5px; color: var(--mo); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dau-phieu .thong-tin { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: var(--phu); }
.dau-phieu .thong-tin b { color: var(--chu); font-weight: 600; }
.ghi-chu-may { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 8px 10px; background: var(--navy-nhat); border-radius: 8px; font-size: 12.5px; color: var(--navy); }
.ghi-chu-may a { font-weight: 600; }
.khoi { padding: 16px 22px 0; }
.bang-dong { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); box-shadow: var(--bong); }
.bang-dong th { text-align: left; font-size: 11.5px; color: var(--phu); font-weight: 600; padding: 9px 8px; border-bottom: 1px solid var(--vien); background: var(--the-2); white-space: nowrap; }
.bang-dong th:first-child { border-top-left-radius: var(--bo); }
.bang-dong th:last-child { border-top-right-radius: var(--bo); }
.bang-dong td { padding: 6px 8px; border-bottom: 1px solid #EDF0F4; vertical-align: top; }
.bang-dong tr.phu-dong td { padding-top: 0; }
.bang-dong tbody.dong-nhom:last-child tr:last-child td { border-bottom: 0; }
.bang-dong tbody.dong-nhom.cho td { background: #FFFCF2; }
.bang-dong tbody.dong-nhom.loai td { background: #FBF7F7; color: var(--mo); }
.bang-dong tbody.dong-nhom.loai .ten-doc { text-decoration: line-through; }
.bang-dong tbody.dong-nhom.dang-chon td { box-shadow: inset 0 0 0 9999px rgba(43,76,119,.045); }
.bang-dong tbody.dong-nhom.dang-chon td:first-child { box-shadow: inset 3px 0 0 var(--ngoc), inset 0 0 0 9999px rgba(43,76,119,.045); }
.bang-dong .o { height: 30px; padding: 0 8px; border-radius: 7px; font-size: 13px; }
.bang-dong .o.so { text-align: right; }
.bang-dong .o.sua { background: #F1F6FF; border-color: #A9BEDD; }
.bang-dong .ten-doc { font-weight: 500; line-height: 1.35; }
.bang-dong .ma-ncc { font-size: 11.5px; color: var(--mo); font-variant-numeric: tabular-nums; }
.lech { display: inline-flex; gap: 4px; margin-top: 3px; font-size: 11px; color: #8A4B00; background: #FFE9C2; padding: 0 6px; border-radius: 5px; white-space: nowrap; }
.nguon-gia { font-size: 11px; color: var(--mo); margin-top: 2px; white-space: nowrap; }
.goi-y { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; border: 1px dashed #9EB3D0; background: #F5F8FC; color: var(--navy-2); }
.goi-y:hover { background: #E8EFF8; border-style: solid; }
.goi-y b { font-weight: 600; }
.nut-dong { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--vien-2); background: #fff; color: var(--phu); display: inline-grid; place-items: center; font-size: 13px; padding: 0; transition: background var(--nhanh); }
.nut-dong:hover { background: var(--the-2); }
.nut-dong.ok.bat { background: var(--xanh); border-color: var(--xanh); color: #fff; }
.nut-dong.x.bat { background: var(--do-nen); border-color: var(--do-vien); color: var(--do); }
.chan-duyet { position: sticky; bottom: 0; margin-top: auto; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--vien); padding: 10px 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; z-index: 5; box-shadow: 0 -6px 18px -14px rgba(16,33,58,.3); }
.chan-duyet .tong { display: flex; gap: 6px 18px; font-size: 12.5px; color: var(--phu); flex-wrap: wrap; align-items: center; }
.chan-duyet .tong b { color: var(--chu); font-size: 14px; font-variant-numeric: tabular-nums; }
.chan-duyet .day { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.phim-tat { font-size: 11.5px; color: var(--mo); padding: 10px 22px 16px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hop-dc { background: #F6F9FD; border: 1px solid #D5E1F0; border-radius: var(--bo); padding: 10px 12px; font-size: 12.5px; }
.hop-dc b { color: var(--navy); }
.hop-dc ul { margin: 6px 0 0; padding-left: 18px; color: var(--phu); }
details.hop-dc summary { cursor: pointer; }
details.hop-dc summary::marker { color: var(--mo); }

/* may doc vs so khach */
.so-sanh .dau .hai-ben { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--phu); }
.so-sanh .tom { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 0; }
.so-sanh .tien-hai { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px 18px; }
.so-sanh .tien-hai > div { background: var(--the-2); border: 1px solid var(--vien); border-radius: 10px; padding: 9px 12px; }
.so-sanh .tien-hai small { display: flex; align-items: center; gap: 6px; color: var(--phu); font-size: 12px; }
.so-sanh .tien-hai small i { width: 8px; height: 8px; border-radius: 50%; }
.so-sanh .tien-hai b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; font-weight: 650; }
table.bang-ss { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.bang-ss th { font-size: 11.5px; font-weight: 600; color: var(--phu); text-align: left; padding: 8px 10px; background: var(--the-2); border-bottom: 1px solid var(--vien); white-space: nowrap; }
.bang-ss th.ben-may { box-shadow: inset 0 3px 0 var(--ai); }
.bang-ss th.ben-so { box-shadow: inset 0 3px 0 var(--sk); }
.bang-ss td { padding: 7px 10px; border-bottom: 1px solid #EDF0F4; vertical-align: top; }
.bang-ss td.giua { text-align: center; padding-left: 0; padding-right: 0; border-left: 1px solid #EDF0F4; border-right: 1px solid #EDF0F4; }
.bang-ss .ten { line-height: 1.35; }
.bang-ss .phu-ss { color: var(--mo); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.bang-ss .so { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bang-ss tr.kq-trung td { background: #fff; }
.bang-ss tr.kq-lech_sl td, .bang-ss tr.kq-lech_gia td, .bang-ss tr.kq-khac_ma td { background: #FFFBF0; }
.bang-ss tr.kq-chi_may td, .bang-ss tr.kq-chi_so td { background: #FCF6F5; }
.bang-ss .khac { background: #FFE9C2; border-radius: 4px; padding: 0 4px; color: #7A4300; font-weight: 600; }
.bang-ss .trong-o { color: var(--mo); font-style: italic; }
.dau-kq { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.dau-kq.trung { background: var(--xanh-nen); color: var(--xanh-chu); }
.dau-kq.lech { background: var(--vang-nen); color: var(--vang); }
.dau-kq.thieu { background: var(--do-nen); color: var(--do); }

/* combobox */
.cb { position: relative; }
.cb-ds { position: fixed; z-index: 300; background: #fff; border: 1px solid var(--vien-2); border-radius: 10px; box-shadow: var(--bong-cao); max-height: 300px; overflow: auto; padding: 4px; min-width: 300px; animation: vao .12s ease-out both; }
.cb-ds div { padding: 6px 8px; border-radius: 6px; cursor: pointer; display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.cb-ds div b { font-weight: 650; font-size: 12px; color: var(--navy); min-width: 62px; font-variant-numeric: tabular-nums; }
.cb-ds div span { flex: 1; }
.cb-ds div small { color: var(--mo); font-size: 11.5px; }
.cb-ds div.chon, .cb-ds div:hover { background: var(--navy-nhat); }
.cb-ds .rong { color: var(--mo); cursor: default; }
.cb-xoa { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border: 0; background: transparent; border-radius: 6px; color: var(--mo); display: grid; place-items: center; padding: 0; font-size: 15px; }
.cb-xoa:hover { background: var(--xam-nen); color: var(--chu); }

/* nhan anh */
.tha { display: block; border: 2px dashed var(--vien-2); border-radius: 14px; background: var(--the-2); padding: 40px 20px; text-align: center; color: var(--phu); transition: border-color var(--nhanh), background var(--nhanh); cursor: pointer; }
.tha:hover { border-color: var(--navy-2); background: #fff; }
.tha.tren-o { border-color: var(--ngoc); background: var(--ngoc-nen); }
.tha b { color: var(--chu); font-size: 15px; display: block; margin: 10px 0 4px; }
.ket-qua-nhan { margin-top: 14px; }
.ket-qua-nhan .thanh-ngang { animation: vao .2s ease-out both; }

/* tabs */
.tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--vien); overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 13px 12px 11px; font-weight: 600; color: var(--phu); border-bottom: 2px solid transparent; white-space: nowrap; font-size: 13.5px; transition: color var(--nhanh), border-color var(--nhanh); }
.tabs button:hover { color: var(--chu); }
.tabs button.dang { color: var(--navy); border-bottom-color: var(--ngoc); }
.tabs button small { font-weight: 500; color: var(--mo); margin-left: 4px; }
.form-ngang { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 12px 18px; background: var(--the-2); border-bottom: 1px solid var(--vien); }
.form-ngang .truong { min-width: 120px; }

/* thong bao */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast > div { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; background: #17202E; color: #fff; padding: 11px 12px 11px 14px; border-radius: 11px; box-shadow: var(--bong-cao); font-size: 13px; max-width: 420px; min-width: 240px; animation: toast-vao .22s cubic-bezier(.2,.7,.2,1) both; }
.toast > div.di { animation: toast-ra .18s ease-in both; }
.toast > div .bieu { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 12px; margin-top: 1px; }
.toast > div.ok .bieu { background: var(--ai); }
.toast > div.loi { background: #7D2A26; }
.toast > div.moi { background: #fff; color: var(--chu); border: 1px solid var(--vien); border-left: 4px solid var(--ai); }
.toast > div.moi .bieu { background: var(--ngoc-nen); color: var(--ngoc-2); }
.toast > div .nd { flex: 1; min-width: 0; }
.toast > div .nd b { display: block; }
.toast > div .nd a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.toast > div.moi .nd a { color: var(--ngoc-2); }
.toast > div .dong-t { border: 0; background: transparent; color: inherit; opacity: .6; padding: 0 2px; font-size: 16px; line-height: 1; }
.toast > div .dong-t:hover { opacity: 1; }
@keyframes toast-vao { from { transform: translateY(10px) scale(.98); opacity: 0; } }
@keyframes toast-ra { to { transform: translateX(16px); opacity: 0; } }

/* tim nhanh (Ctrl+K) */
.lenh-nen { position: fixed; inset: 0; z-index: 500; background: rgba(14, 26, 44, .42); backdrop-filter: blur(2px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; animation: vao-mo .14s ease-out both; }
@keyframes vao-mo { from { opacity: 0; } }
.lenh { width: 100%; max-width: 620px; background: #fff; border-radius: 14px; box-shadow: var(--bong-cao); overflow: hidden; display: flex; flex-direction: column; max-height: 70vh; animation: vao .16s ease-out both; }
.lenh .o-lenh { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--vien); }
.lenh .o-lenh svg { width: 18px; height: 18px; color: var(--mo); flex: none; }
.lenh input { border: 0; outline: 0; height: 54px; font-size: 16px; flex: 1; min-width: 0; background: transparent; }
.lenh .kq { overflow: auto; padding: 6px; }
.lenh .nhom-kq { font-size: 11.5px; color: var(--mo); padding: 10px 10px 4px; }
.lenh .muc-kq { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.lenh .muc-kq svg { width: 16px; height: 16px; color: var(--phu); }
.lenh .muc-kq .ten { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lenh .muc-kq .ten small { color: var(--phu); margin-left: 6px; }
.lenh .muc-kq .phu-kq { font-size: 12px; color: var(--mo); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lenh .muc-kq.chon { background: var(--navy-nhat); }
.lenh .muc-kq.chon .ten { color: var(--navy); }
.lenh .chan-lenh { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--vien); font-size: 11.5px; color: var(--mo); background: var(--the-2); flex-wrap: wrap; }

/* thanh duoi dien thoai + tam menu */
.duoi-nav { display: none; }
.tam-nen { position: fixed; inset: 0; z-index: 450; background: rgba(14,26,44,.42); animation: vao-mo .14s ease-out both; }
.tam { position: fixed; left: 0; right: 0; bottom: 0; z-index: 460; background: #fff; border-radius: 16px 16px 0 0; padding: 8px 12px calc(16px + env(safe-area-inset-bottom)); box-shadow: var(--bong-cao); animation: tam-len .2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes tam-len { from { transform: translateY(100%); } }
.tam .keo-tam { width: 40px; height: 4px; border-radius: 99px; background: var(--vien-2); margin: 4px auto 10px; }
.tam a, .tam button.muc-tam { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 10px; color: var(--chu); font-size: 15px; width: 100%; background: none; border: 0; text-align: left; }
.tam a:hover, .tam button.muc-tam:hover { background: var(--the-2); text-decoration: none; }
.tam svg { width: 20px; height: 20px; color: var(--phu); }
.tam .ai-toi { padding: 6px 10px 10px; font-size: 12.5px; color: var(--phu); border-bottom: 1px solid var(--vien); margin-bottom: 6px; }

/* chi quan tri */
body.xem .chi-qt { display: none !important; }

/* ---------- che do duyet: thu gon menu ben de rong cho anh + bang ---------- */
.app.gon { grid-template-columns: 64px minmax(0, 1fr); }
.app.gon .ben .logo > span, .app.gon .menu a span, .app.gon .menu .nhom, .app.gon .ben .chan { display: none; }
.app.gon .ben .logo { padding: 14px 16px; }
.app.gon .menu { padding: 6px 8px; }
.app.gon .menu a { justify-content: center; padding: 9px 0; }
.app.gon .menu a.dang::before { left: -8px; }
.app.gon .menu a .dem { display: block; position: absolute; top: 2px; right: 2px; font-size: 10px; padding: 0 5px; line-height: 15px; }
.app.gon .noi { max-width: none; }
.bang-dong { table-layout: fixed; }
.bang-dong td:nth-child(2) { overflow-wrap: anywhere; }

/* ---------- man hinh vua ---------- */
@media (max-width: 1280px) {
  .dai-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dai-kpi > :nth-child(4) { border-left: 0; }
  .dai-kpi > :nth-child(n+4) { border-top: 1px solid var(--vien); }
  .tq-hang { grid-template-columns: minmax(0, 1fr); }
  .luoi-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .dau-phieu .luoi-dau { grid-template-columns: 1fr 1fr; }
  .tim-nhanh { min-width: 0; }
  .tim-nhanh .chu { display: none; }
}

/* ---------- dien thoai / may tinh bang doc ---------- */
@media (max-width: 860px) {
  .app, .app.gon { grid-template-columns: minmax(0, 1fr); }
  .ben { display: none; }
  .tren { padding: 10px 14px; min-height: 56px; position: sticky; top: 0; flex-wrap: wrap; gap: 8px; }
  .tren .logo-dt { display: inline-flex; }
  .tren h1 { font-size: 17px; }
  .tren .phu-de { font-size: 12px; flex-basis: 100%; }
  .tren .tieu { flex: 1; gap: 2px 10px; }
  .tren .day { width: 100%; justify-content: flex-start; margin-left: 0; }
  .tren .day:empty { display: none; }
  .tim-nhanh { position: absolute; right: 14px; top: 11px; width: 36px; height: 34px; padding: 0; justify-content: center; }
  .tim-nhanh kbd, .song { display: none; }
  .noi { padding: 12px 12px calc(84px + env(safe-area-inset-bottom)); }
  .luoi-2, .luoi-3 { grid-template-columns: minmax(0, 1fr); }
  .dai-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dai-kpi > :nth-child(n) { border-left: 1px solid var(--vien); border-top: 1px solid var(--vien); }
  .dai-kpi > :nth-child(odd) { border-left: 0; }
  .dai-kpi > :nth-child(-n+2) { border-top: 0; }
  .dai-kpi > a, .dai-kpi > div { padding: 12px 14px; }
  .dai-kpi .gt { font-size: 23px; }
  .the > .dau { padding: 12px 14px; gap: 4px 10px; }
  .the > .dau .day { margin-left: 0; width: 100%; }
  .the > .than { padding: 12px 14px; }
  .chu-y .muc { padding: 10px 14px; }
  .duyet { grid-template-columns: minmax(0, 1fr); height: auto; }
  .xem-anh { height: 52vh; }
  .ben-phai { overflow: visible; }
  .ben-phai .dau-phieu { padding: 14px; }
  .khoi { padding: 12px 12px 0; }
  .bang-dong { display: block; overflow-x: auto; table-layout: auto; min-width: 0; }
  .bang-dong > colgroup, .bang-dong > thead, .bang-dong > tbody { min-width: 820px; }
  .chan-duyet { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .chan-duyet .day { margin-left: 0; width: 100%; }
  .chan-duyet .day .nut { flex: 1; }
  .phim-tat { display: none; }
  .chinh-xac { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .chinh-xac > div { min-width: 0; }
  .chips .chip { white-space: normal; height: auto; min-height: 22px; padding: 3px 8px; line-height: 1.35; }
  .toast { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); align-items: stretch; }
  .toast > div { max-width: none; min-width: 0; }
  .app.gon ~ .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  /* thanh duoi */
  .duoi-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
    border-top: 1px solid var(--vien); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .duoi-nav a, .duoi-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font-size: 11px; color: var(--phu); background: none; border: 0; border-radius: 10px; position: relative; font-weight: 500; }
  .duoi-nav a:hover { text-decoration: none; }
  .duoi-nav svg { width: 22px; height: 22px; }
  .duoi-nav .dang { color: var(--navy); font-weight: 650; }
  .duoi-nav .dang svg { color: var(--ngoc); }
  .duoi-nav .dem { position: absolute; top: 2px; left: calc(50% + 6px); background: #F3C350; color: #3B2C00; border-radius: 99px; padding: 0 5px; font-size: 10px; font-weight: 700; line-height: 16px; }
  .app.gon .duoi-nav { display: none; }
  .app.gon .noi, .app.gon .duyet { padding-bottom: 0; }
  /* danh sach chung tu: the thay bang */
  .ds-the { display: block; }
  .bang-ct-boc { display: none; }
  .ds-dau { padding: 12px 14px; }
  .ds-loc2 { padding: 12px 14px; }
  .ds-loc2 .truong, .ds-loc2 .truong.ngay2 { max-width: none; min-width: 0; flex-basis: 100%; }
  .nhom-chip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; width: calc(100% + 28px); }
  .nhom-chip::-webkit-scrollbar { display: none; }
  .tong-ket, .loc-dang { padding: 10px 14px; }
  .phan-trang { padding: 12px 14px; }
  .mo-rong-noi { grid-template-columns: minmax(0, 1fr); padding: 4px 12px 14px; }
  .so-sanh .tien-hai { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
  .so-sanh .tom { padding: 12px 14px 0; }
  .bang-ss-boc { overflow-x: auto; }
  table.bang-ss { min-width: 640px; }
  .loc { padding: 12px 14px; }
  .loc .truong, .loc .truong.rong { min-width: 0; flex: 1 1 100%; }
  .form-ngang { padding: 12px 14px; }
  .form-ngang .truong { flex: 1 1 100% !important; width: auto !important; }
  .lenh-nen { padding: 0; align-items: stretch; }
  .lenh { max-width: none; max-height: none; border-radius: 0; height: 100%; }
}
@media (min-width: 861px) { .tren .logo-dt { display: none; } }

@media (max-width: 860px) { .tren .tieu { padding-right: 44px; } }
.the-cy { display: flex; flex-direction: column; }
.the-cy .chu-y { overflow: auto; flex: 1; min-height: 0; }
.ncc-o { max-width: 230px; }
.ncc-o.diem-o { max-width: 190px; }
@media (min-width: 861px) { .tong-ket .day { display: none; } }
.nhom-chip > span.nhan { white-space: nowrap; }
.nut-loc-them { display: none; }
@media (max-width: 1100px) {
  .dau-phieu .luoi-dau { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .dau-phieu .luoi-dau > .truong:first-child { grid-column: 1 / -1; }
  .nut-loc-them { display: inline-flex; }
  .ds-loc2 { display: none; }
  .ds-loc2.mo { display: flex; }
  .lenh .muc-kq { grid-template-columns: 24px minmax(0, 1fr); }
  .lenh .muc-kq .phu-kq { grid-column: 2; margin-top: -4px; white-space: normal; }
  .lenh .chan-lenh { display: none; }
  .so-sanh .tien-hai { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .so-sanh .tien-hai > div { padding: 7px 8px; }
  .so-sanh .tien-hai b { font-size: 14.5px; }
  .so-sanh .tien-hai small { font-size: 11px; flex-wrap: wrap; gap: 2px 4px; }
}
.kenh-cham { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ai); margin-right: 7px; vertical-align: 1px; }
.kenh-cham.sk { background: var(--sk); }
.bang-ct td, .bang-ct th { padding-left: 10px; padding-right: 10px; }
.ncc-o { max-width: 220px; }
.ncc-o.diem-o { max-width: 180px; }
.chi-hep { display: none; }
@media (max-width: 1560px) { .bang-ct .cot-tong { display: none; } .bang-ct .chi-hep { display: inline-flex; } }

/* 22/11 bang chi tiet tung dong hang — mau theo truong (--mt) */
.nowrap { white-space: nowrap; }
.bang-bct tbody td:first-child { box-shadow: inset 3px 0 0 var(--mt, transparent); }
.truong-tag { display: inline-flex; align-items: center; gap: 7px; }
.truong-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--mt); flex: none; }
.bang-bct tr.cho td { background: var(--vang-nen); }
.bang-bct tr.gach td { color: var(--mo); text-decoration: line-through; }
.ray-bct { height: 6px; background: var(--xam-nen); border-radius: 4px; overflow: hidden; margin-bottom: 3px; }
.ray-bct i { display: block; height: 100%; background: var(--mt); border-radius: 4px; }
#b-xem { flex: none; }

/* ---- ban dung thu cong khai (CONG_KHAI=1) ---- */
.bang-thu { background: #FFF4D6; color: #6B4E00; font-size: 13px; line-height: 1.45; padding: 8px 16px; text-align: center; border-bottom: 1px solid #F0DFA8; }
.bang-thu a { color: #6B4E00; font-weight: 650; text-decoration: underline; white-space: nowrap; }
.cong-khai #dang-xuat { display: none; }
@media (max-width: 860px) { .bang-thu { font-size: 12px; padding: 7px 12px; text-align: left; } }
/* trang Nhan anh: 2 cot tren may tinh, 1 cot tren dien thoai (truoc 04/12 bi ep 2 cot bang style noi dong) */
.luoi-nhan { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 860px) { .luoi-nhan { grid-template-columns: minmax(0, 1fr); } }
