:root { --pink: var(--acc, #0E6EA0); }
.btn-pink { background: var(--acc, #0E6EA0); color: #fff; }
.btn-pink:hover { background: #0A5A84; }
.btn-tim { background:#7C3AED; color:#fff; }
.btn-tim:hover { background:#6D28D9; }


:root { --gv-side:232px; }
body.gv { background:var(--bg); }
.gv-top { background:var(--navy); color:#fff; height:56px; display:flex; align-items:center;
  gap:14px; padding:0 18px; position:sticky; top:0; z-index:50; }
.gv-top a.tlink.nha { font-weight:800; opacity:1; }
.gv-top .khu { font-weight:800; font-size:15px; letter-spacing:.2px; white-space:nowrap; }
.gv-chan { padding:18px 18px 26px; text-align:right; font-size:12px; color:var(--muted); }
.gv-chan a { color:var(--muted); text-decoration:none; }
.gv-chan a:hover { text-decoration:underline; }
.gv-side a .ngan { display:none; }   
.gv-top .sub { font-weight:600; opacity:.75; font-size:13px; border-left:1px solid rgba(255,255,255,.25); padding-left:14px; }
.gv-top .sp { margin-left:auto; }
.gv-top a.tlink { color:#fff; opacity:.85; text-decoration:none; font-size:13.5px; font-weight:600; }
.gv-top a.tlink:hover { opacity:1; text-decoration:underline; }
.gv-top a.tlink.on { opacity:1; text-decoration:underline; text-underline-offset:4px; }

.gv-demo { background:#FEF3E2; color:#8A5200; border-bottom:1px solid #F3D9A8;
  padding:8px 18px; font-size:13px; font-weight:600; }
.gv-demo b { color:#B45309; }
.gv-demo.that { background:#ECFDF5; color:#065F46; border-bottom-color:#A7F3D0; }
.gv-demo.that b { color:#065F46; }
.gv-demo select { font-size:13px; padding:2px 6px; border:1px solid var(--line-2); border-radius:6px; }

.gv-body { display:flex; align-items:flex-start; min-height:calc(100vh - 56px); }
.gv-side { width:var(--gv-side); flex:none; background:#fff; border-right:1px solid var(--line);
  padding:14px 10px; position:sticky; top:56px; height:calc(100vh - 56px); overflow:auto; }
.gv-side a { display:flex; align-items:center; gap:9px; padding:10px 12px; border-radius:8px;
  text-decoration:none; color:#374151; font-weight:700; font-size:14px; margin-bottom:3px; }
.gv-side a:hover { background:#F3F6FB; color:var(--navy); }
.gv-side a.on { background:var(--navy); color:#fff; }
.gv-side .grp { font-size:11px; font-weight:800; letter-spacing:.9px; text-transform:uppercase;
  color:#9AA5B1; padding:14px 12px 6px; }
.gv-main { flex:1; min-width:0; padding:22px 26px 70px; }

.gv-h1 { font-size:22px; font-weight:800; color:var(--navy); margin:0 0 4px; }
.gv-lead { color:var(--muted); font-size:14px; margin:0 0 18px; }
.gv-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.gv-row.end { justify-content:space-between; }

.card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:16px 18px;
  box-shadow:var(--shadow); }
.cards { display:grid; gap:14px; grid-template-columns:repeat(auto-fill,minmax(268px,1fr)); }
.kpis { display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); margin-bottom:18px; }
.kpi { background:#fff; border:1px solid var(--line); border-radius:10px; padding:13px 15px; }
.kpi .lb { font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.6px; }
.kpi .vl { font-size:24px; font-weight:800; color:var(--navy); margin-top:3px; font-variant-numeric:tabular-nums; }
.kpi .nt { font-size:12px; color:var(--muted); margin-top:2px; }
.kpi.pink .vl { color:var(--pink); }

.lop-card { background:#fff; border:1px solid var(--line); border-left:4px solid var(--navy);
  border-radius:10px; padding:15px 16px; cursor:pointer; }
.lop-card:hover { border-color:var(--pink); border-left-color:var(--pink); }
.lop-card h3 { margin:0 0 3px; font-size:17px; color:var(--navy); }
.lop-card .meta { font-size:13px; color:var(--muted); line-height:1.7; }

table.gv-tb { width:100%; border-collapse:collapse; background:#fff; font-size:13.5px; }
table.gv-tb th { text-align:left; font-size:11.5px; letter-spacing:.6px; text-transform:uppercase;
  color:var(--muted); padding:9px 10px; border-bottom:1px solid var(--line); white-space:nowrap; }
table.gv-tb td { padding:9px 10px; border-bottom:1px solid #F1F3F7; vertical-align:middle; }
table.gv-tb tr:hover td { background:#FAFBFD; }
.tb-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:10px; background:#fff; }
.num { font-variant-numeric:tabular-nums; text-align:right; }

.chip { display:inline-block; font-size:11.5px; font-weight:800; padding:2px 9px; border-radius:999px; }
.chip.cho { background:#FEF3E2; color:#B45309; }
.chip.hoc { background:#D1FAE5; color:#065F46; }
.chip.nghi { background:#F1F5F9; color:#64748B; }
.chip.no { background:#FEE2E2; color:#991B1B; }
.chip.du { background:#D1FAE5; color:#065F46; }
.chip.noibo { background:#EEF2FF; color:#3730A3; }
.lop-card.noibo { border-left-color:#6366F1; }
.lop-card .chip.noibo { margin:2px 0 6px; }

.cham-batch { display:flex; flex-wrap:wrap; gap:6px; align-items:center; background:#F8FAFF;
  border:1px solid #DCE4F5; border-radius:10px; padding:7px 10px; margin:0 0 8px; }
.cham-batch b { font-size:11.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; margin-right:2px; }
.cham-hv { padding:7px 0; border-top:1px solid #F1F3F7; }
.cham-hv .f { font-size:13px; }
.cham-xong { margin-top:8px; border-top:1px solid #F1F3F7; padding-top:7px; }
.cham-xong > summary { cursor:pointer; font-size:13px; color:var(--navy); list-style:none; }
.cham-xong > summary::-webkit-details-marker { display:none; }
.cham-xong > summary::before { content:"▸"; margin-right:6px; color:var(--muted); }
.cham-xong[open] > summary::before { content:"▾"; }

.lop-card.dang-sap { cursor:move; border-style:dashed; background:#FCFDFF; }
.lop-card.dang-sap:hover { border-color:var(--navy); border-left-color:var(--navy); }
.lop-card.dang-sap .sap-nut { display:flex; align-items:center; gap:8px; margin:0 0 8px; }
.lop-card.dang-sap .sap-nut .btn { padding:1px 10px; line-height:1.6; font-size:14px; cursor:pointer; }
.lop-card.dang-sap .sap-nut .btn[disabled] { opacity:.35; cursor:default; }
.lop-card.dang-sap .sap-nut .mtd { font-weight:800; color:var(--navy); font-variant-numeric:tabular-nums; }

.tabs { display:flex; gap:2px; border-bottom:1px solid var(--line); margin:16px 0 18px; flex-wrap:wrap; }
.tabs button { background:none; border:0; border-bottom:3px solid transparent; padding:10px 14px;
  font-size:14px; font-weight:700; color:#6B7280; cursor:pointer; }
.tabs button:hover { color:var(--navy); }
.tabs button.on { color:var(--navy); border-bottom-color:var(--pink); }

input.f, select.f, textarea.f { width:100%; padding:9px 11px; border:1px solid var(--line-2);
  border-radius:6px; font-size:14px; font-family:inherit; background:#fff; }
input.f:focus, select.f:focus, textarea.f:focus { outline:2px solid var(--navy); outline-offset:-1px; }
label.fl { display:block; font-size:12.5px; font-weight:700; color:var(--navy); margin:0 0 4px; }
.fg { margin-bottom:12px; }
.fgs { display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
[hidden] { display:none !important; }
.btn-sm { padding:6px 12px; font-size:12.5px; border-radius:6px; }

.ovl { position:fixed; inset:0; background:rgba(16,24,40,.5); display:flex; align-items:center;
  justify-content:center; padding:20px; z-index:300; }
.modal { background:#fff; border-radius:12px; padding:22px; width:100%; max-width:520px;
  max-height:88vh; overflow:auto; }
.modal h3 { margin:0 0 14px; color:var(--navy); font-size:19px; }

.mtd { font-size:12px; color:var(--muted); }
.empty { text-align:center; padding:40px 20px; color:var(--muted); background:#fff;
  border:1px dashed var(--line-2); border-radius:10px; }
.link { color:var(--pink); font-weight:700; cursor:pointer; text-decoration:none; }
.link:hover { text-decoration:underline; }
.invite { background:#F3F6FB; border:1px solid var(--line); border-radius:8px; padding:10px 12px;
  font-size:13px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.invite code { background:#fff; border:1px solid var(--line); border-radius:5px; padding:4px 8px;
  font-size:12.5px; word-break:break-all; }
.dd { display:flex; gap:4px; }
.dd button { border:1px solid var(--line-2); background:#fff; border-radius:6px; padding:4px 9px;
  font-size:12px; font-weight:700; cursor:pointer; color:#6B7280; }
.dd button.on.co { background:#D1FAE5; border-color:#6EE7B7; color:#065F46; }
.dd button.on.muon { background:#FEF3E2; border-color:#FCD34D; color:#B45309; }
.dd button.on.vang { background:#FEE2E2; border-color:#FCA5A5; color:#991B1B; }
.dd button.on.online { background:#BBF7D0; border-color:#4ADE80; color:#14532D; }
.dd button.on.phep { background:#FEF9C3; border-color:#FACC15; color:#854D0E; }
.tt-co { color:#047857; } .tt-online { background:#BBF7D0; color:#14532D; } .tt-muon { background:#FED7AA; color:#9A3412; }
.tt-phep { background:#FEF08A; color:#854D0E; } .tt-vang { background:#FCA5A5; color:#7F1D1D; } .tt-rong { background:#F9FAFB; }
.dd.seg button { padding:5px 12px; font-size:12.5px; }
.dd-chu { display:flex; flex-wrap:wrap; gap:4px 14px; align-items:center; font-size:12.5px; margin-bottom:8px; }
.dd-chu span { display:inline-flex; align-items:center; gap:5px; }
.dd-o { display:inline-flex; align-items:center; justify-content:center; width:20px; height:18px; border-radius:4px;
  font-style:normal; font-weight:800; font-size:11.5px; border:1px solid rgba(0,0,0,.08); }
.dd-bang-wrap { overflow:auto; max-height:calc(100vh - 230px); min-height:240px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.dd-bang { border-collapse:separate; border-spacing:0; font-size:12.5px; width:100%; }
.dd-bang th, .dd-bang td { border-right:1px solid #EEF1F5; border-bottom:1px solid #EEF1F5; padding:0 4px; height:26px; text-align:center; white-space:nowrap; }
.dd-bang thead th { position:sticky; top:0; z-index:2; background:var(--navy,#1E3A5F); color:#fff; font-weight:700; font-size:11.5px;
  height:auto; padding:6px 4px; white-space:normal; line-height:1.2; min-width:58px; max-width:90px; }
.dd-bang .dd-c0 { position:sticky; left:0; z-index:1; background:#F8FAFC; text-align:left; padding:0 8px; font-weight:700; min-width:86px; }
.dd-bang thead .dd-c0 { z-index:3; background:var(--navy,#1E3A5F); }
.dd-bang .dd-c0 a { cursor:pointer; color:inherit; }
.dd-bang .dd-c0 a:hover { color:var(--pink,#DB2777); text-decoration:underline; }
.dd-bang tbody td { cursor:pointer; font-weight:800; }
.dd-bang tbody td:not(.dd-cs):hover { outline:2px solid var(--navy,#1E3A5F); outline-offset:-2px; }
.dd-bang tbody td sup { color:#2563EB; font-size:12px; margin-left:1px; }
.dd-bang td.dd-sai { box-shadow:inset 0 0 0 2px #DC2626; }
.dd-bang tr.dd-cho .dd-c0 { background:#FFFBEB; }
.dd-bang .dd-cs { color:#6B7280; font-weight:600; cursor:default; font-size:12px; }
.dd-bang tfoot td, .dd-bang tfoot th { position:sticky; bottom:0; background:#F1F5F9; font-weight:700; }
.dd-bang tfoot tr:first-child td, .dd-bang tfoot tr:first-child th { bottom:26px; border-top:1px solid #CBD5E1; }
.dd-bang .dd-v { color:#B91C1C; } .dd-bang .dd-p { color:#A16207; }
.dd-menu { position:fixed; z-index:9999; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 10px 30px rgba(15,23,42,.18);
  padding:4px; display:flex; flex-direction:column; min-width:170px; }
.dd-menu button { display:flex; align-items:center; gap:8px; border:0; background:none; padding:7px 10px; border-radius:7px; font-size:13px; cursor:pointer; text-align:left; }
.dd-menu button:hover { background:#F1F5F9; } .dd-menu button.on { font-weight:700; background:#EEF2FF; }
.dd-tom { display:flex; flex-wrap:wrap; gap:4px 14px; align-items:center; margin:2px 0 4px; }
.dd-tom .link { margin-left:auto; white-space:nowrap; }
.dd-luoi { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:0 18px; margin-top:4px; }
.dd-hv { display:flex; align-items:center; gap:6px; padding:3px 0; border-top:1px solid #F1F3F7; flex-wrap:wrap; }
.dd-ten { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13.5px; }
.dd-hv .dd button { padding:3px 7px; font-size:11.5px; }
.dd-nut-ghi { border:1px solid var(--line-2); background:#fff; border-radius:6px; padding:2px 6px; font-size:12px; cursor:pointer; color:#9CA3AF; }
.dd-nut-ghi.co { color:var(--navy); border-color:var(--navy); }
.dd-ghi { flex:1 0 100%; padding:3px 8px !important; font-size:12.5px !important; margin:0 0 4px !important; }
.bar { background:#EEF2F8; border-radius:999px; height:7px; overflow:hidden; min-width:70px; }
.bar i { display:block; height:100%; background:var(--navy); }
.pipe { display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); margin-bottom:18px; }
.pipe .st { background:#fff; border:1px solid var(--line); border-radius:10px; padding:12px 14px; }
.pipe .st .n { font-size:22px; font-weight:800; color:var(--navy); }
.pipe .st .l { font-size:12.5px; font-weight:700; color:var(--muted); }
.pipe .st .m { font-size:12px; color:var(--pink); font-weight:700; margin-top:2px; }
@media (max-width:820px) {
  .gv-top { height:52px; padding:0 12px; flex-wrap:nowrap; gap:12px; overflow-x:auto; white-space:nowrap; }
  .gv-top > * { flex:none; }        
  .gv-top .sub { display:none; }
  .gv-side a .dai { display:none; }
  .gv-side a .ngan { display:inline; }
  .gv-top a.tlink { font-size:12.5px; }
  .gv-demo { font-size:12.5px; padding:8px 12px; }
  .invite code { font-size:11.5px; }
  .dh { top:0; }
  .gv-side { position:fixed; left:0; bottom:0; top:auto; height:auto; width:100%; display:flex;
    gap:4px; padding:6px; border-top:1px solid var(--line); border-right:0; z-index:60; overflow-x:auto; }
  .gv-side .grp { display:none; }
  .gv-side a { flex-direction:column; gap:2px; font-size:11px; padding:6px 10px; white-space:nowrap; }
  .gv-main { padding:16px 14px 90px; }
}

.hv-wrap { max-width:860px; margin:0 auto; padding:26px 18px 70px; }
.toast { position:fixed; top:70px; right:18px; background:#065F46; color:#fff; padding:12px 16px;
  border-radius:10px; font-weight:700; font-size:14px; z-index:400; box-shadow:0 6px 20px rgba(0,0,0,.18);
  display:flex; gap:12px; align-items:center; }
.toast button { background:rgba(255,255,255,.18); border:0; color:#fff; border-radius:6px;
  padding:4px 10px; font-weight:700; cursor:pointer; }
.bai-row { background:#fff; border:1px solid var(--line); border-radius:10px; padding:14px 16px;
  margin-bottom:10px; display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.bai-row .gr { flex:1; min-width:200px; }
.bai-row h4 { margin:0 0 3px; font-size:15.5px; color:var(--navy); }
.hn { font-size:12px; font-weight:800; padding:2px 9px; border-radius:999px; background:#FEF3E2; color:#B45309; }
.hn.gap { background:#FEE2E2; color:#991B1B; }
.hn.xong { background:#D1FAE5; color:#065F46; }
.rank { width:26px; height:26px; border-radius:50%; display:inline-flex; align-items:center;
  justify-content:center; font-weight:800; font-size:12.5px; background:#EEF2F8; color:var(--navy); }
.rank.top { background:var(--pink); color:#fff; }
.rank.t2 { background:var(--navy); color:#fff; }
.rank.t3 { background:#F59E0B; color:#fff; }
.td-tin { background:#fff; border:1px solid var(--line); border-radius:10px;
  padding:10px 13px; margin-bottom:8px; font-size:14px; }
.td-tin.tb { background:#FFF5F8; border-color:#F9C6D4; border-left:4px solid var(--pink); }
tr.me td { background:#FFF5F8 !important; }
.q { background:#fff; border:1px solid var(--line); border-radius:10px; padding:14px 16px; margin-bottom:10px; }
.q .qt { font-weight:700; color:var(--navy); margin-bottom:8px; font-size:14.5px; }
.q label { display:flex; gap:8px; align-items:flex-start; padding:6px 8px; border-radius:6px;
  cursor:pointer; font-size:14px; }
.q label:hover { background:#F3F6FB; }
.q input { width:auto; margin-top:3px; }
.dh { position:sticky; top:56px; z-index:20; background:#fff; border:1px solid var(--line);
  border-radius:10px; padding:10px 14px; margin-bottom:14px; display:flex; gap:14px;
  align-items:center; justify-content:space-between; font-weight:700; color:var(--navy); }
.dh .t { font-variant-numeric:tabular-nums; font-size:19px; }
.nx { background:#fff; border:1px solid var(--line); border-left:4px solid var(--pink);
  border-radius:10px; padding:13px 15px; margin-bottom:10px; }

.loc-ky { display:flex; gap:6px; flex-wrap:wrap; margin:0 0 12px; }
.loc-ky button { background:#fff; border:1px solid var(--line-2,#D8DEE9); border-radius:999px;
  padding:5px 12px; font-size:12.5px; font-weight:700; color:var(--muted); cursor:pointer; }
.loc-ky button:hover { border-color:var(--navy); color:var(--navy); }
.loc-ky button.on { background:var(--navy); border-color:var(--navy); color:#fff; }
.loc-ky button i { font-style:normal; font-weight:800; opacity:.65; }
.ky-nhom { margin:0 0 16px; }
.ky-h { display:flex; align-items:baseline; gap:8px; margin:0 0 6px; font-size:12px; font-weight:800;
  color:var(--navy); text-transform:uppercase; letter-spacing:.7px; }
.ky-h span { font-size:12px; font-weight:600; color:var(--muted); text-transform:none; letter-spacing:0; }
.bai-g { background:#fff; border:1px solid var(--line); border-radius:10px; margin-bottom:6px; }
.bai-g[open] { border-color:var(--navy); }
.bai-g > summary { display:flex; align-items:center; gap:10px; padding:9px 13px; cursor:pointer;
  list-style:none; flex-wrap:wrap; }
.bai-g > summary::-webkit-details-marker { display:none; }
.bai-g > summary::before { content:"›"; flex:none; width:10px; color:var(--muted); font-weight:800; }
.bai-g[open] > summary::before { content:"⌄"; }
.bai-g > summary:hover { background:#F7F9FC; border-radius:9px; }
.bai-g .ten { flex:1; min-width:190px; }
.bai-g .ten b { color:var(--navy); font-size:14.5px; }
.bai-g .ten .mtd { margin-top:2px; }
.bai-g .so { flex:none; text-align:right; font-size:12.5px; color:var(--muted); min-width:82px; }
.bai-g .so b { color:var(--navy); font-size:14px; }
.bai-g .ct { border-top:1px solid var(--line); padding:10px 13px 12px; }
.bai-g.thi { border-left:3px solid var(--pink); }
.bai-g.btvn { border-left:3px solid #0EA5E9; }
@media (max-width:640px) {
  .bai-g > summary { gap:6px; padding:9px 10px; }
  .bai-g .so { min-width:0; }
}

.nb-th{display:inline-flex;align-items:center;gap:7px;padding:4px 10px 4px 6px;border:1px solid var(--line,#E5E7EB);border-radius:999px;background:#fff;font-size:12.5px;color:var(--navy,#1C355F);max-width:100%}
.nb-th img{height:20px;width:auto;max-width:90px;object-fit:contain;display:block}
.nb-th i{font-style:normal;color:var(--muted,#6B7280);font-weight:700}
.nb-th b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.nb-th.lon{padding:6px 14px 6px 8px}.nb-th.lon img{height:28px;max-width:130px}.nb-th.lon b{font-size:14px}
.gv-top .nb-th{background:rgba(255,255,255,.96);border-color:transparent;margin:0}
.th-card{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center}
.th-card .xem{background:#F5F7FB;border:1px dashed var(--line,#E5E7EB);border-radius:12px;padding:14px 18px;min-width:220px;display:flex;align-items:center;justify-content:center}
.th-card .xem img{height:34px;max-width:150px;object-fit:contain}.th-card .xem i{margin:0 10px;font-style:normal;font-weight:800;color:var(--muted,#6B7280)}
@media(max-width:700px){.th-card{grid-template-columns:1fr}}

.mau-bo{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.mau-o{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);
  border-radius:10px;padding:6px 10px;cursor:pointer;font:inherit;font-size:12.5px;color:var(--txt)}
.mau-o:hover{border-color:var(--navy)}
.mau-o.on{border-color:var(--navy);box-shadow:0 0 0 2px rgba(28,53,95,.15);font-weight:700}
.mau-o .hai{display:inline-flex;border-radius:999px;overflow:hidden;border:1px solid rgba(0,0,0,.08)}
.mau-o .hai i{display:block;width:16px;height:16px}
.th-bia{width:100%;max-height:170px;object-fit:cover;border-radius:12px;border:1px solid var(--line);display:block}
.th-trong{background:#F5F7FB;border:1px dashed var(--line);border-radius:10px;padding:14px;
  text-align:center;font-size:12.5px;color:var(--muted)}
.th-luoi{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}
.th-luoi .o{position:relative}
.th-luoi img{width:100%;height:92px;object-fit:cover;border-radius:10px;border:1px solid var(--line);display:block}
.th-luoi .x{position:absolute;top:4px;right:4px;border:0;border-radius:999px;width:22px;height:22px;
  background:rgba(17,24,39,.72);color:#fff;font-size:12px;line-height:22px;cursor:pointer;padding:0}
.th-luoi .x:hover{background:#991B1B}
.hv-bia{width:100%;max-height:190px;object-fit:cover;border-radius:14px;border:1px solid var(--line);display:block;margin-bottom:12px}
.hv-anh{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin-top:8px}
.hv-anh img{width:100%;height:110px;object-fit:cover;border-radius:12px;border:1px solid var(--line);display:block}
