/* Cổng NCC — bố cục gọn (CTO 27/10/2026): menu cha trên cùng (Tổng quan · Xác nhận & giao hàng · Sau khi giao ·
   Đơn trả lại · Đối soát), tab con nhỏ, danh sách dạng bảng 1 dòng/đơn (điện thoại 2 dòng), khoảng cách hẹp.
   Flat, primary indigo, dấu "," ngăn cách số (quy ước TTB). */
:root {
  --chinh: #4f46e5; --chinh-dam: #4338ca; --chinh-nhat: #eef2ff; --chu: #0f172a; --mo: #64748b; --vien: #e2e8f0; --nen: #f8fafc;
  --xanh: #15803d; --xanh-nhat: #f0fdf4; --vang: #b45309; --vang-nhat: #fffbeb; --do: #b91c1c; --do-nhat: #fef2f2;
  --xam-nhat: #f1f5f9; --bo: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Be Vietnam Pro", system-ui, sans-serif; background: var(--nen); color: var(--chu); font-size: 14px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--chinh); }
[hidden] { display: none !important; }
.so-tn { font-variant-numeric: tabular-nums; }

/* ---------- thanh trên + menu cha ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--vien); position: sticky; top: 0; z-index: 20; }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 48px; display: flex; align-items: center; gap: 10px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--chu); flex-shrink: 0; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--chinh); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.logo b { font-size: 14px; }
.logo small { color: var(--mo); font-size: 12px; margin-left: 6px; }
.me { margin-left: auto; display: flex; align-items: center; gap: 2px; min-width: 0; }
.me-ten { font-weight: 600; font-size: 13px; margin-right: 4px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link { background: none; border: 0; color: var(--chinh); cursor: pointer; padding: 4px 8px; border-radius: 6px; font-size: 13px; white-space: nowrap; }
.link:hover { background: var(--chinh-nhat); }
.menu-wrap { border-top: 1px solid var(--vien); }
.menu { max-width: 1180px; margin: 0 auto; padding: 0 12px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 11px; font-size: 13.5px; font-weight: 600; color: var(--mo);
  text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.menu a:hover { color: var(--chu); }
.menu a.bat { color: var(--chinh); border-bottom-color: var(--chinh); }
.menu .dem { min-width: 20px; padding: 0 6px; height: 18px; border-radius: 9px; background: var(--chinh); color: #fff; font-size: 11px;
  display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.menu .dem.tre { background: var(--do); }
.menu .sap-co { font-size: 10.5px; font-weight: 600; color: var(--mo); background: var(--xam-nhat); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 640px) {
  .logo b, .logo small { display: none; }
  .me-ten { max-width: 46vw; }
}

main { max-width: 1180px; margin: 0 auto; padding: 14px 16px 110px; }
.dang-tai { padding: 50px 0; text-align: center; color: var(--mo); }
h1 { font-size: 18px; margin: 0 0 2px; }
.phu { color: var(--mo); font-size: 13px; }
.nho { font-size: 12.5px; }
.dau-trang { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------- nút ---------- */
.nut { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 14px;
  border-radius: 8px; border: 1px solid var(--vien); background: #fff; cursor: pointer; font-weight: 600; font-size: 13.5px; text-decoration: none; color: var(--chu); white-space: nowrap; }
.nut:hover { border-color: var(--chinh); color: var(--chinh); }
.nut.chinh { background: var(--chinh); border-color: var(--chinh); color: #fff; }
.nut.chinh:hover { background: var(--chinh-dam); color: #fff; }
.nut.nho { min-height: 30px; padding: 4px 10px; font-size: 12.5px; }
.nut.rong { width: 100%; min-height: 42px; }
.nut[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- đăng nhập ---------- */
.dn-khung { min-height: calc(100vh - 40px); display: grid; place-items: center; }
.dn { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--vien); border-radius: 14px; padding: 24px 22px; }
.dn .logo { margin-bottom: 14px; }
.dn .logo b { display: block; font-size: 15px; }
.dn .logo small { display: block; margin: 0; }
.dn h1 { font-size: 20px; }
.truong { display: block; margin: 12px 0; }
.truong > span { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
.truong input, .truong select, .truong textarea { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font-size: 15px; }
.truong input:focus, .truong select:focus, .o-sl input:focus, .tim:focus { outline: 3px solid #c7d2fe; border-color: var(--chinh); }
.loi { background: var(--do-nhat); color: var(--do); border: 1px solid #fecaca; padding: 8px 11px; border-radius: 8px; font-size: 13px; margin: 10px 0; }
.ds-dk { list-style: none; padding: 0; margin: 6px 0 0; font-size: 12.5px; }
.ds-dk li { padding: 1px 0; color: var(--mo); }
.ds-dk li.dat { color: var(--xanh); }
.ds-dk li::before { content: "○ "; }
.ds-dk li.dat::before { content: "✓ "; }

/* ---------- tổng quan ---------- */
.kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0 12px; }
.o-kpi { background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); padding: 10px 12px; text-decoration: none; color: var(--chu); display: block; }
.o-kpi:hover { border-color: var(--chinh); }
.o-kpi .nhan { font-size: 12px; color: var(--mo); font-weight: 600; }
.o-kpi .so { font-size: 24px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.o-kpi .them { font-size: 12px; color: var(--mo); }
.o-kpi .them.tre { color: var(--do); font-weight: 600; }
.o-kpi.can .so { color: var(--chinh); }
@media (max-width: 720px) { .kpi { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
/* Tổng quan (CTO 28/10/2026): ô dạng icon app, tương phản cao + hướng dẫn sử dụng */
.tq-tieu { font-size: 15px; margin: 16px 0 8px; color: var(--chu); }
.tq-nhac { margin: 8px 0 0; }
.luoi-app { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.app { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #cbd5e1; border-radius: 14px; padding: 14px;
  text-decoration: none; color: var(--chu); box-shadow: 0 1px 2px rgba(15, 23, 42, .06); transition: transform .12s, box-shadow .12s; }
.app:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15, 23, 42, .12); border-color: #94a3b8; }
.app-icon { position: relative; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.app-icon svg { width: 28px; height: 28px; }
.app-icon.nho { flex-basis: 40px; width: 40px; height: 40px; border-radius: 12px; }
.app-icon.nho svg { width: 21px; height: 21px; }
.m1 { background: linear-gradient(145deg, #6366f1, #4338ca); } .m2 { background: linear-gradient(145deg, #8b5cf6, #6d28d9); }
.m3 { background: linear-gradient(145deg, #f97316, #c2410c); } .m4 { background: linear-gradient(145deg, #22c55e, #15803d); }
.m5 { background: linear-gradient(145deg, #0ea5e9, #0369a1); } .m6 { background: linear-gradient(145deg, #f59e0b, #b45309); }
.m7 { background: linear-gradient(145deg, #14b8a6, #0f766e); } .m8 { background: linear-gradient(145deg, #64748b, #334155); }
.huy-hieu { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #dc2626;
  color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.app-chu { display: flex; flex-direction: column; min-width: 0; }
.app .so { font-size: 28px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--chu); }
.app-ten { font-size: 13.5px; font-weight: 700; color: var(--chu); line-height: 1.3; }
.app-ten small { display: block; font-size: 11.5px; font-weight: 600; color: #475569; text-transform: none; }
.app-phu { font-size: 12.5px; color: #334155; margin-top: 2px; }
.app.khong .so { color: #94a3b8; }
.app.khong .app-icon { opacity: .55; }
.app.tre { border-color: #fca5a5; background: #fff7f7; }
.app.tre .app-phu { color: #b91c1c; font-weight: 700; }
.loc-buoc { background: var(--chinh-nhat); color: var(--chinh-dam); border-radius: 8px; padding: 6px 10px; font-size: 13px; margin-bottom: 8px; }
.tq-hd { background: #fff; border: 1px solid #cbd5e1; border-radius: 14px; padding: 16px 18px; margin-top: 20px; }
.tq-hd h2 { font-size: 16px; margin: 0 0 6px; }
.tq-hd h3 { font-size: 14px; margin: 16px 0 8px; }
.hd-gt { margin: 0 0 12px; color: #334155; }
.hd-the { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.the-buoc { border: 1px solid var(--vien); border-radius: 12px; padding: 12px; background: var(--nen); }
.the-dau { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.the-dau small { display: block; font-size: 11.5px; font-weight: 700; color: #475569; }
.the-dau b { font-size: 13.5px; line-height: 1.3; }
.the-buoc dl { margin: 0; font-size: 12.5px; }
.the-buoc dt { font-weight: 700; color: var(--chu); margin-top: 6px; }
.the-buoc dd { margin: 1px 0 0; color: #334155; }
.hd-meo { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; font-size: 12.5px; color: #334155; }
.hd-meo b { display: block; color: var(--chu); font-size: 13px; }
@media (max-width: 1000px) { .luoi-app, .hd-the { grid-template-columns: repeat(2, 1fr); } .hd-meo { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .luoi-app, .hd-the, .hd-meo { grid-template-columns: 1fr; } .app { padding: 12px; } }
.hai-khung { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
@media (max-width: 900px) { .hai-khung { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); overflow: hidden; }
.panel-dau { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--vien); }
.panel-dau b { font-size: 13.5px; }
.lich { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--vien); align-items: center; font-size: 13px; }
.lich:first-child { border-top: 0; }
.lich .ngay { font-weight: 700; }
.lich .ngay.tre { color: var(--do); }
.lich .don a { text-decoration: none; font-weight: 600; }

/* ---------- tab con + danh sách gọn ---------- */
.tab-con { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.tab { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--vien); background: #fff; color: var(--mo); font-weight: 600; font-size: 12.5px;
  cursor: pointer; text-decoration: none; white-space: nowrap; }
.tab .n { margin-left: 4px; font-variant-numeric: tabular-nums; }
.tab.bat { background: var(--chinh); border-color: var(--chinh); color: #fff; }
.tim { margin-left: auto; min-height: 32px; padding: 4px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 13px; background: #fff; width: 260px; max-width: 100%; }
@media (max-width: 640px) { .tim { margin-left: 0; width: 100%; } }
table.bang { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); overflow: hidden; }
.bang th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--mo); font-weight: 600; background: #f8fafc;
  padding: 7px 10px; border-bottom: 1px solid var(--vien); white-space: nowrap; }
.bang td { padding: 7px 10px; border-bottom: 1px solid var(--vien); font-size: 13px; vertical-align: middle; }
.bang tr:last-child td { border-bottom: 0; }
.bang tbody tr { cursor: pointer; }
.bang tbody tr:hover td { background: #f8fafc; }
.bang tr.gap td:first-child { box-shadow: inset 3px 0 0 var(--do); }
.bang .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bang .ma { font-weight: 700; white-space: nowrap; }
.bang .lech { color: var(--vang); font-weight: 600; }
.bang td.dong2 { display: none; }
@media (max-width: 760px) {
  table.bang, .bang tbody, .bang tr, .bang td { display: block; }
  .bang thead { display: none; }
  .bang tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 12px; border-bottom: 1px solid var(--vien); }
  .bang tr:last-child { border-bottom: 0; }
  .bang td { border: 0; padding: 0; }
  .bang td.an-dt { display: none; }
  .bang td.dong2 { display: block; grid-column: 1 / -1; color: var(--mo); font-size: 12.5px; }
  .bang tr.gap { box-shadow: inset 3px 0 0 var(--do); }
  .bang tr.gap td:first-child { box-shadow: none; }
}
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.c-can { background: var(--chinh-nhat); color: var(--chinh-dam); }
.c-cho { background: var(--vang-nhat); color: var(--vang); }
.c-xong { background: var(--xanh-nhat); color: var(--xanh); }
.c-huy { background: var(--xam-nhat); color: var(--mo); }
.han { font-size: 12.5px; font-weight: 600; color: var(--vang); white-space: nowrap; }
.han.tre { color: var(--do); }
.trong { background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--bo); padding: 28px 16px; text-align: center; color: var(--mo); }
.sap-co-khung { background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); padding: 18px 18px 14px; max-width: 720px; }
.sap-co-khung ul { margin: 8px 0 0; padding-left: 18px; color: var(--mo); }

/* ---------- chi tiết đơn (gọn) ---------- */
.quay { display: inline-flex; gap: 4px; align-items: center; text-decoration: none; font-weight: 600; font-size: 13px; }
.dau-don { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 8px; }
.dau-don .xuat-don { margin-left: auto; }
.khoi { background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); padding: 12px; margin-bottom: 10px; }
.khoi h2 { font-size: 14px; margin: 0 0 8px; }
.luoi-tt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.luoi-tt div span { display: block; font-size: 11px; color: var(--mo); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.luoi-tt div b { font-size: 13.5px; }
@media (max-width: 720px) { .luoi-tt { grid-template-columns: repeat(2, 1fr); } }

.buoc { display: flex; padding: 0; margin: 0 0 8px; }
.buoc li { list-style: none; flex: 1; position: relative; text-align: center; font-size: 11.5px; color: var(--mo); padding-top: 24px; counter-increment: b; }
.buoc { counter-reset: b; }
.buoc li::before { content: counter(b); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: 10.5px; z-index: 1; }
.buoc li::after { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: #cbd5e1; }
.buoc li:first-child::after { display: none; }
.buoc li.xong { color: var(--xanh); }
.buoc li.xong::before { content: "✓"; background: var(--xanh); border-color: var(--xanh); color: #fff; }
.buoc li.xong::after, .buoc li.dang::after { background: var(--xanh); }
.buoc li.dang { color: var(--chinh); font-weight: 700; }
.buoc li.dang::before { border-color: var(--chinh); color: var(--chinh); box-shadow: 0 0 0 3px var(--chinh-nhat); }
.buoc li.bo { color: var(--do); }
.buoc li.bo::before { content: "✕"; background: var(--do); border-color: var(--do); color: #fff; }

.bang-tin { padding: 9px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 10px; }
.bang-tin.can { background: var(--chinh-nhat); color: var(--chinh-dam); }
.bang-tin.cho { background: var(--vang-nhat); color: #92400e; }
.bang-tin.xong { background: var(--xanh-nhat); color: #166534; }
.bang-tin.do { background: var(--do-nhat); color: var(--do); }
.bang-tin b { display: block; font-size: 13.5px; }

.hai-cot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
@media (max-width: 640px) { .hai-cot { grid-template-columns: 1fr; gap: 0; } }

.dong { display: grid; grid-template-columns: 22px 118px minmax(130px, 1fr) 48px 74px 80px 96px 82px 200px; gap: 4px 10px;
  padding: 7px 0; border-top: 1px solid var(--vien); align-items: center; }
.dong:first-of-type { border-top: 0; }
.dong .stt { color: var(--mo); font-size: 12px; text-align: center; }
.dong .ma b { font-size: 12.5px; font-weight: 600; }
.dong .ten b { font-weight: 600; font-size: 13px; }
.dong .ma small, .dong .ten small { display: block; color: var(--mo); font-size: 11px; }
.dong .dvt { font-size: 12.5px; color: var(--mo); }
.dong .so { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.dong .so small { display: block; color: var(--mo); font-size: 11px; }
.dong small.nhan { display: none; }
.dong small.goc { font-size: 10.5px; }
.dong .so.doi { color: var(--chinh-dam); }
.dong.thieu { background: linear-gradient(90deg, var(--vang-nhat), transparent 70%); }
.dong.het { background: linear-gradient(90deg, var(--do-nhat), transparent 70%); }
.dong.dau { font-size: 11.5px; color: var(--mo); font-weight: 600; padding: 4px 0; }
.dong.dau div:last-child { text-align: center; }
.o-ck input { width: 58px; min-height: 28px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 0 6px; text-align: right; font-size: 13px; }
.o-vat select { min-height: 28px; max-width: 100%; border: 1px solid #cbd5e1; border-radius: 6px; padding: 0 4px; font-size: 12.5px; background: #fff; }
.so.doi input, .so.doi select { border-color: var(--chinh); background: var(--chinh-nhat); }
.dong-sua { grid-column: 3 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dong-sua select, .dong-sua input[data-ghidong] { min-height: 32px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 8px; background: #fff; font-size: 13px; }
.dong-sua input[data-ghidong] { flex: 1; min-width: 150px; }
.dap-ung { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.o-sl { display: inline-flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; background: #fff; }
.o-sl button { border: 0; background: var(--xam-nhat); width: 28px; min-height: 30px; font-size: 16px; cursor: pointer; }
.o-sl input { width: 52px; border: 0; text-align: center; font-size: 14px; min-height: 30px; font-variant-numeric: tabular-nums; }
.o-sl button:disabled, .o-sl input:disabled, .ve-0:disabled { color: var(--mo); background: var(--xam-nhat); cursor: not-allowed; }
.ve-0 { border: 1px solid #fecaca; background: #fff; color: var(--do); border-radius: 8px; font-size: 12px; font-weight: 600; padding: 0 8px; min-height: 30px; cursor: pointer; white-space: nowrap; }
.ve-0:hover { background: var(--do-nhat); }
.loi-dong { grid-column: 3 / -1; color: var(--do); font-size: 12px; }
.dau-khoi { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nut-lien { border: 0; background: none; padding: 2px 0; font-size: 12.5px; font-weight: 600; color: var(--chinh); cursor: pointer; }
.nut-lien.do { color: var(--do); }
.nut-lien:hover { text-decoration: underline; }
.huy-ca { margin-bottom: 6px; }
.c-dc { background: #ecfeff; color: #0e7490; }
.luoi-tt div small { display: block; font-size: 12px; color: var(--mo); }
.canh-bao-chu { color: #92400e; font-size: 12.5px; margin-top: 3px; }
/* màn hẹp (điện thoại, máy tính bảng dọc): mỗi mặt hàng là một khối, ô có nhãn riêng */
@media (max-width: 960px) {
  .dong { display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .dong.dau { display: none; }
  .dong .stt { width: 18px; }
  .dong .ten { order: 1; flex: 1 1 calc(100% - 34px); }
  .dong .ma { order: 2; flex: 1 1 100%; padding-left: 30px; display: flex; gap: 8px; align-items: center; }
  .dong .dvt, .dong .gia, .dong .so { order: 3; text-align: left; padding-left: 0; }
  .dong .dvt { padding-left: 30px; }
  .dong small.nhan { display: inline; font-size: 11px; color: var(--mo); }
  .dong .so small:not(.nhan) { display: inline; margin-left: 4px; }
  .dap-ung { order: 4; flex: 1 1 100%; }
  .dap-ung small.nhan { margin-right: auto; padding-left: 30px; }
  .dong-sua, .loi-dong { order: 5; flex: 1 1 100%; padding-left: 30px; }
}

.day { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--vien); z-index: 15; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); }
.day-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.day-tom { flex: 1; font-size: 13px; }
@media (max-width: 640px) { .day-in { flex-direction: column; align-items: stretch; gap: 6px; } .day .nut { min-height: 40px; } }
.day-ngay { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--mo); flex-shrink: 0; }
.day-ngay span { font-weight: 700; color: var(--chu); }
.day-ngay input { min-height: 34px; border: 1px solid #94a3b8; border-radius: 8px; padding: 0 8px; font-size: 14px; background: #fff; }
.day-ngay input:focus { outline: 3px solid #c7d2fe; border-color: var(--chinh); }
.day-ngay small { font-size: 11.5px; min-height: 14px; }
@media (max-width: 640px) { .day-ngay { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; }
  .day-ngay small { grid-column: 1 / -1; } }
main:has(.day-ngay) { padding-bottom: 170px; }

.lich-su { list-style: none; padding: 0; margin: 0; }
.lich-su li { position: relative; padding: 0 0 8px 18px; font-size: 13px; }
.lich-su li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--chinh); }
.lich-su small { color: var(--mo); margin-left: 6px; }
details.gon > summary { cursor: pointer; font-weight: 600; font-size: 13.5px; list-style: none; }
details.gon > summary::before { content: "▸ "; color: var(--mo); }
details.gon[open] > summary::before { content: "▾ "; }

.hop-nen { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 50; display: grid; place-items: center; padding: 16px; }
.hop-tg { background: #fff; border-radius: 14px; max-width: 540px; width: 100%; max-height: 90vh; overflow: auto; padding: 18px; }
.hop-tg h3 { margin: 0 0 4px; font-size: 16px; }
.hop-tg .nut-hang { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.tom-tat { border: 1px solid var(--vien); border-radius: 8px; margin: 10px 0; }
.tom-tat div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border-top: 1px solid var(--vien); font-size: 13px; }
.tom-tat div:first-child { border-top: 0; }
.tom-tat div span:last-child { text-align: right; font-weight: 600; }
.bien-nhan { text-align: center; padding: 4px 0; }
.bien-nhan .dau { width: 46px; height: 46px; border-radius: 50%; background: var(--xanh-nhat); color: var(--xanh); display: grid; place-items: center; font-size: 22px; margin: 0 auto 8px; }

.bao { position: fixed; left: 50%; top: 100px; transform: translateX(-50%); background: var(--chu); color: #fff; padding: 9px 14px; border-radius: 8px; font-size: 13px; z-index: 60; max-width: 90vw; }
