/* Giao diện be (Sếp chốt 02/11/2026, bảng "CDC giao diện kiểu Apple"): nạp sau giao-dien-moi.css.
   Công tắc ff_giao_dien_cu bật thì tắt cả hai tệp, quay về giao diện cũ ngay, không cần phát hành.
   Tệp ghép theo từng lượt góp ý; quy tắc sau đè quy tắc trước. */
:root, :root[data-theme="light"]{
  --bg:#f4f0e8; --surface:#fffdf9; --surface-2:#f4f0e8; --surface-3:#ebe5d9;
  --ink:#1f1c18; --ink-muted:#6b655b; --border:#e6dfd2;
  --accent:#d6332a; --accent-strong:#b3261e; --accent-soft:#fdecea; --accent-contrast:#fff;
  --good:#1d8a46; --good-soft:#e6f4ea; --warn:#a05a00; --warn-soft:#fff4e0; --critical:#d70015; --critical-soft:#ffe9eb;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 18px rgba(0,0,0,.06);
}
html, body{ font-family:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", "Segoe UI", Roboto, sans-serif !important;
  -webkit-font-smoothing:antialiased; background:var(--bg) !important; color:var(--ink); letter-spacing:-.01em; }
.mono{ font-family:"SF Mono", ui-monospace, Menlo, monospace !important; letter-spacing:0; }

/* Thanh bên: mờ trong suốt, không viền đậm */
#sidebar{ background:rgba(246,242,234,.78) !important; backdrop-filter:saturate(180%) blur(20px); -webkit-backdrop-filter:saturate(180%) blur(20px);
  border-right:1px solid rgba(0,0,0,.06) !important; box-shadow:none !important; }
.brand-name{ font-weight:700; letter-spacing:-.02em; }
.navbtn{ border-radius:10px !important; font-weight:500; color:var(--ink) !important; border:0 !important; }
.navbtn.active{ background:rgba(0,0,0,.06) !important; color:var(--ink) !important; font-weight:600; box-shadow:none !important; }
.navbtn.active::before, .navbtn.active::after{ display:none !important; }
.navbtn .ico{ color:var(--accent); }
.nav-count{ background:var(--accent) !important; color:#fff !important; border-radius:999px !important; font-weight:600; }

/* Đầu trang: tiêu đề lớn kiểu Apple */
#topbar{ background:rgba(244,240,232,.82) !important; backdrop-filter:saturate(180%) blur(20px); -webkit-backdrop-filter:saturate(180%) blur(20px); border-bottom:1px solid rgba(0,0,0,.05) !important; }
.topbar-title, #pageTitle{ font-weight:700 !important; letter-spacing:-.025em !important; }
.topbar-sub, #pageSub{ color:var(--ink-muted) !important; }

/* Thẻ, khung */
.panel, .stat, .modal{ background:var(--surface) !important; border:0 !important; border-radius:18px !important; box-shadow:var(--shadow) !important; }
.panel-head h2{ font-weight:700 !important; letter-spacing:-.02em; }
.hint, .muted{ color:var(--ink-muted) !important; }
.stat .num{ font-weight:700 !important; letter-spacing:-.03em; }
.stat .lbl{ color:var(--ink-muted) !important; }
.stat.crit .num{ color:var(--critical) !important; } .stat.warn .num{ color:var(--warn) !important; } .stat.good .num{ color:var(--good) !important; }
.stat.crit, .stat.warn, .stat.good{ background:var(--surface) !important; border:0 !important; }
.stat-nut:hover{ transform:translateY(-1px); box-shadow:0 2px 4px rgba(0,0,0,.05), 0 10px 26px rgba(0,0,0,.09) !important; }

/* Nút hình viên thuốc */
.btn{ border-radius:999px !important; border:0 !important; background:var(--surface-3) !important; color:var(--ink) !important; font-weight:500; box-shadow:none !important; padding-inline:16px; }
.btn:hover{ filter:brightness(.97); }
.btn-accent, .btn-good{ background:var(--accent) !important; color:#fff !important; }
.btn-good{ background:#1d1d1f !important; }
.btn-bad, .btn-del, .btn-xoa{ background:transparent !important; color:var(--critical) !important; }
.btn-xoa{ background:var(--critical) !important; color:#fff !important; }
.btn-ghost{ background:transparent !important; }

/* Bảng: không kẻ dọc, dòng ngăn mảnh */
table{ border-collapse:separate !important; border-spacing:0; }
th{ background:transparent !important; color:var(--ink-muted) !important; font-weight:600 !important; text-transform:none !important; letter-spacing:0 !important; border:0 !important; border-bottom:1px solid var(--border) !important; }
td{ border:0 !important; border-bottom:1px solid var(--border) !important; }
tr.row-click:hover td{ background:#faf6ef !important; }

/* Nhãn, ô nhập */
.badge{ border-radius:999px !important; border:0 !important; font-weight:600; }
input, select, textarea{ border-radius:10px !important; border:1px solid #d9d1c2 !important; background:#fffdf9 !important; }
input:focus, select:focus, textarea:focus{ outline:none !important; border-color:var(--accent) !important; box-shadow:0 0 0 4px rgba(214,51,42,.15) !important; }
.callout{ border-radius:14px !important; border:0 !important; }

/* Chữ chìm (bản thưa, nhạt) */
#dauMo{ grid-template-columns:repeat(auto-fill,minmax(460px,1fr)) !important; grid-auto-rows:300px !important; }
#dauMo span{ font-size:12px !important; color:rgba(0,0,0,.045) !important; }
#dauMo span:nth-child(2n){ visibility:hidden; }

/* Menu đáy điện thoại mờ trong suốt */
@media (max-width: 820px){
  #sidebar{ background:rgba(246,242,234,.86) !important; border-top:1px solid rgba(0,0,0,.06) !important; border-right:0 !important; }
}
/* Thẻ chỉ số: từng thẻ rời, khung ngoài trong suốt */
.grid-cards{ background:transparent !important; box-shadow:none !important; border:0 !important; padding:0 !important; gap:14px !important; display:grid !important; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)) !important; }
.grid-cards > .stat{ border-radius:18px !important; padding:18px 20px !important; margin:0 !important; border:0 !important; box-shadow:var(--shadow) !important; }
.grid-cards > .stat::before, .grid-cards > .stat::after{ display:none !important; }
.nav-count{ min-width:20px; height:20px; padding:0 6px !important; display:inline-flex !important; align-items:center; justify-content:center; line-height:1 !important; white-space:nowrap; }
@media (max-width: 820px){ .grid-cards{ grid-template-columns:1fr 1fr !important; gap:10px !important; } .grid-cards > .stat{ padding:14px !important; } }
/* Kiểu Apple: nhãn nhỏ ở trên, số lớn ở dưới, chiều cao thẻ theo nội dung */
.grid-cards{ align-items:start !important; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)) !important; }
.grid-cards > .stat{ display:flex !important; flex-direction:column-reverse !important; align-items:flex-start !important; justify-content:flex-end !important; gap:8px !important; min-height:0 !important; }
.grid-cards > .stat .num{ line-height:1.1 !important; white-space:nowrap; }
@media (max-width: 820px){ .grid-cards > .stat .num{ white-space:normal; } }

/* ===== Thang chữ và khoảng trắng theo apple.com (Sếp so sánh 02/11) ===== */
body{ letter-spacing:-.022em !important; }
/* Chữ nhỏ viết thẳng trong giao diện (11–13px) nâng lên tối thiểu 14px */
[style*="font-size:11"], [style*="font-size: 11"], [style*="font-size:12"], [style*="font-size: 12"], [style*="font-size:13"], [style*="font-size: 13"]{ line-height:1.45 !important; }
.muted, .hint, .fhint, .lbl, .brand-sub, .sidebar-foot{ line-height:1.45 !important; }
/* Tiêu đề */
#pageTitle, .topbar-title{ line-height:1.1 !important; letter-spacing:-.02em !important; }
#pageSub, .topbar-sub{ line-height:1.47 !important; max-width:62ch; }
#topbar{ padding-top:22px !important; padding-bottom:22px !important; }
.panel-head h2, .modal-head h3{ line-height:1.17 !important; letter-spacing:-.015em !important; }
.panel-head{ padding:26px 28px 10px !important; }
.panel-pad, .modal-body{ padding:24px 28px !important; }
.container{ max-width:1100px !important; gap:28px !important; }
/* Menu bên */
.navbtn{ padding:10px 12px !important; }
.brand-name{ font-size:17px !important; }
/* Thanh thẻ trang */
.tabbar button, .tabs button, [role="tablist"] button{ font-size:15px !important; }
/* Bảng: chữ 15px, dòng thoáng */
th{ padding:12px 14px !important; }
td{ line-height:1.45 !important; padding:16px 14px !important; }
.num-cell{ font-variant-numeric:tabular-nums; }
/* Số liệu nổi bật */
.grid-cards > .stat .num, .stat .num{ line-height:1.1 !important; letter-spacing:-.02em !important; }
.grid-cards > .stat{ padding:22px 24px !important; }
/* Khung ghi chú, cảnh báo */
.callout{ line-height:1.55 !important; padding:18px 22px !important; }
/* Nút, ô nhập, nhãn */
.btn{ min-height:40px; padding:0 20px !important; }
.btn-sm{ min-height:34px; padding:0 14px !important; }
input, select, textarea{ font-size:16px !important; min-height:44px; padding:10px 14px !important; }
textarea{ min-height:88px; }
.badge{ padding:3px 10px !important; }
@media (max-width: 820px){
  .panel-head{ padding:20px 18px 8px !important; } .panel-pad, .modal-body{ padding:18px !important; }
}

/* ===== Chỉnh bố cục sau lần so 2 ===== */
/* Đầu trang: tài khoản + tìm kiếm một hàng trên cùng bên phải, tiêu đề lớn chiếm trọn hàng dưới */
#topbar{ display:flex !important; flex-wrap:wrap !important; align-items:flex-end !important; row-gap:10px !important; padding-top:14px !important; padding-bottom:18px !important; }
#topbar #userChip{ order:-1; flex:1 1 100%; justify-content:flex-end !important; }
#topbar > :not(#userChip){ flex:1 1 100%; }
/* Thanh bên hẹp lại để nhường chỗ cho nội dung */
@media (min-width: 821px){ #sidebar{ width:216px !important; min-width:216px !important; } .navbtn{ padding:9px 10px !important; } }
#content, #main{ padding-top:8px !important; }
/* Bảng: dồn chỗ cho cột nội dung, nút trong bảng gọn */
table{ width:100% !important; }
td{ padding:14px 10px !important; } th{ padding:10px 10px !important; }
td .btn-sm, td .btn{ min-height:30px !important; padding:0 10px !important; }
td.num-cell{ white-space:nowrap; }
td:has(> b), td:has(> div > b){ min-width:180px; }

/* ===== Lần 3: bảng vừa khung, menu không tràn ===== */
@media (min-width: 821px){ #sidebar{ width:244px !important; min-width:244px !important; } .navbtn{ gap:10px !important; } .navbtn .lbl-dai{ flex:1; min-width:0; } }
.brand-sub{ white-space:nowrap; }
td:has(> b), td:has(> div > b){ min-width:0 !important; }
td{ padding:13px 8px !important; } th{ padding:10px 8px !important; }
td .btn-sm, td .btn{ padding:0 8px !important; }
.tablewrap{ overflow-x:auto; }

/* ===== Lần 4: tên menu dài không bị số đếm đè; menu đáy điện thoại chữ nhỏ ===== */
.navbtn > span:not(.ico):not(.nav-count){ flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.navbtn .nav-count{ flex:0 0 auto; margin-left:8px !important; position:static !important; }
@media (max-width: 820px){
  #sidebar .navbtn{ font-size:11.5px !important; padding:6px 2px !important; gap:3px !important; }
  #sidebar .navbtn > span:not(.ico):not(.nav-count){ flex:none; white-space:nowrap; }
  #sidebar .navbtn .nav-count{ position:absolute !important; margin:0 !important; transform:translate(14px,-12px); font-size:11px !important; min-width:18px; height:18px; }
  #sidebar .navbtn{ position:relative; }
}

/* ===== Bớt đỏ (Sếp góp ý 02/11): đỏ chỉ còn ở logo, cảnh báo, quá hạn, nút xóa ===== */
.navbtn .ico{ color:var(--ink-muted) !important; }
.navbtn.active .ico{ color:var(--ink) !important; }
.nav-count{ background:var(--surface-3) !important; color:var(--ink) !important; }
.btn-accent, .btn-good{ background:var(--ink) !important; color:#fffdf9 !important; }
[role="tab"][aria-selected="true"], .tab.active, .tabbar .active, .tabs .active{ border-bottom-color:var(--ink) !important; color:var(--ink) !important; }
.badge-pending{ background:var(--warn-soft) !important; color:var(--warn) !important; }
.role-pill.me{ background:var(--surface-3) !important; color:var(--ink) !important; }
.grid-cards > .stat .num{ color:var(--ink) !important; }
.grid-cards > .stat.crit .num{ color:var(--critical) !important; }

/* ===== Be nhạt hơn (Sếp góp ý 02/11) ===== */
:root, :root[data-theme="light"]{ --bg:#f9f6f0; --surface:#fffefb; --surface-2:#f9f6f0; --surface-3:#efe9de; --border:#ebe4d8; }
html, body{ background:var(--bg) !important; }
#sidebar{ background:rgba(250,247,241,.8) !important; }
#topbar{ background:rgba(249,246,240,.85) !important; }
@media (max-width: 820px){ #sidebar{ background:rgba(250,247,241,.9) !important; } }

/* ===== Bớt đỏ lần 2: khung cảnh báo nền trắng, chỉ một vạch nhỏ ở tiêu đề; số cảnh báo màu chữ thường kèm chấm đỏ nhỏ ===== */
.callout.bad, .callout.warn{ background:var(--surface) !important; color:var(--ink) !important; box-shadow:var(--shadow) !important; }
.callout.bad b, .callout.warn b, .callout.bad strong, .callout.warn strong{ color:var(--ink) !important; }
.callout.bad a, .callout.warn a{ color:var(--ink) !important; }
.callout.bad > b:first-child::before, .callout.bad > strong:first-child::before{ content:""; display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--critical); margin-right:8px; vertical-align:middle; }
.grid-cards > .stat.crit .num, .grid-cards > .stat.warn .num, .stat.crit .num, .stat.warn .num{ color:var(--ink) !important; }
.grid-cards > .stat.crit .num::after{ content:""; display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--critical); margin-left:10px; vertical-align:middle; }
.grid-cards > .stat.warn .num::after{ content:""; display:inline-block; width:9px; height:9px; border-radius:50%; background:#d99a2b; margin-left:10px; vertical-align:middle; }

/* ===== Bỏ bớt biểu tượng (góp ý 02/11): thanh bên máy tính không còn icon; điện thoại giữ icon ở menu đáy ===== */
@media (min-width: 821px){ #sidebar .navbtn .ico{ display:none !important; } #sidebar .navbtn{ padding-left:14px !important; } }

/* ===== Chữ to thêm một bậc (góp ý 02/11) — cỡ chữ nay ở khối "Thang chữ" cuối file ===== */
body{ line-height:1.5 !important; }
@media (min-width: 821px){ .navbtn{ padding:10px 12px !important; } #sidebar{ width:256px !important; min-width:256px !important; } }
.btn{ min-height:44px; }

.kpi-gd > .stat .num, .kpi-gd .stat-nut .num, .grid-cards .stat-nut .num{ font-size:36px !important; line-height:1.1 !important; }
@media (max-width: 820px){ .kpi-gd .stat-nut .num{ font-size:26px !important; } }

/* ===== Thẻ (tab): chữ lớn hơn, cách nhau rộng hơn (góp ý 02/11) ===== */
.tab{ padding:12px 6px !important; margin-right:28px !important; }
.tab:last-child{ margin-right:0 !important; }
@media (max-width: 820px){ .tab{ margin-right:20px !important; } }

.tab-them::after{ content:""; display:inline-block; width:7px; height:7px; border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor; transform:rotate(45deg) translateY(-3px); margin-left:9px; }

/* ===== Chữ to thêm bậc nữa (góp ý 02/11) — cỡ chữ nay ở khối "Thang chữ" cuối file ===== */
.lbl{ font-size:16.5px !important; }
@media (min-width: 821px){ #sidebar{ width:268px !important; min-width:268px !important; } }
.btn{ min-height:46px; }
@media (max-width: 820px){ .kpi-gd .stat-nut .num{ font-size:28px !important; } }
/* Góp ý 02/11: tiêu đề trang màu cam đất hợp nền be, nhỏ lại một chút */
#pageTitle, .topbar-title{ color:#b5651d !important; }
/* Góp ý 02/11: cụm logo gọn, bỏ dòng phụ */
.brand-sub{ display:none !important; }
@media (min-width: 821px){
  .brand{ display:flex !important; flex-direction:row !important; align-items:center !important; gap:12px !important; padding-bottom:8px !important; }
  .brand-logo{ width:44px !important; height:auto !important; margin:0 !important; }
  .brand-name{ font-size:19px !important; line-height:1.2 !important; }
}
/* Góp ý 02/11: nút chính be đậm thay màu đen */
.btn-accent, .btn-good{ background:#7d6e57 !important; color:#fffdf9 !important; }
.btn-accent:hover, .btn-good:hover{ background:#6c5f4a !important; }
/* Góp ý 02/11: ô tìm kiếm rộng hơn */
@media (min-width: 821px){ .tra-ma{ width:330px !important; min-width:330px !important; } }
@media (max-width: 820px){ .tra-ma{ width:210px !important; min-width:0 !important; } }
/* Góp ý 02/11: điện thoại, tiêu đề khung nhỏ thêm 1 bậc, màu be đậm */
@media (max-width: 820px){ .panel-head h2, .modal-head h3{ color:#7d6e57 !important; } }
/* Góp ý 02/11: Tổng quan, số chỉ số và tiêu đề nhóm to hơn */
button.stat.stat-nut .num, .stat.stat-nut div.num{ font-size:36px !important; line-height:1.1 !important; font-weight:700 !important; }
h2.tieu-de-nho{ color:var(--ink) !important; }
#viewRoot > .grid-cards:has(> .stat) > .stat .num{ font-weight:700 !important; line-height:1.1 !important; }
#viewRoot > .grid-cards:has(> .stat) > .stat .num:has(span){ text-align:left !important; white-space:nowrap !important; }
#viewRoot > .grid-cards:has(> .stat) > .stat .num:has(span)::after{ display:none !important; }
/* Góp ý 02/11: chữ mô tả trong thẻ chỉ số thoáng dòng */
#viewRoot > .grid-cards:has(> .stat) > .stat .lbl{ line-height:1.4 !important; }
/* Góp ý 02/11: chữ trong thẻ chỉ số trải hết ngang ô, cân đối */
#viewRoot > .grid-cards:has(> .stat) > .stat{ display:flex !important; flex-direction:column-reverse !important; align-items:stretch !important; justify-content:space-between !important; gap:14px !important; text-align:left !important; }
#viewRoot > .grid-cards:has(> .stat) > .stat .lbl{ width:100% !important; max-width:none !important; flex:1 1 auto !important; text-align:left !important; }
#viewRoot > .grid-cards:has(> .stat) > .stat .num{ text-align:left !important; width:100% !important; }
#viewRoot > .grid-cards:has(> .stat){ align-items:stretch !important; }
#viewRoot > .grid-cards:has(> .stat) > .stat{ height:auto !important; align-self:stretch !important; padding:22px 20px !important; }
/* Thẻ đang chọn in đậm */
button.tab, .tab{ font-weight:400 !important; }
button.tab.active, .tab.active, [role="tab"][aria-selected="true"]{ font-weight:700 !important; color:var(--ink) !important; }

/* ===== Phần thêm khi đưa vào cổng ===== */
/* Vùng biên ghi bằng chữ màu */
.vung-chu{ font-weight:700; }
.vung-chu.xanh{ color:#1f8a4c; } .vung-chu.vang{ color:#b07d06; } .vung-chu.cam{ color:#d2691e; } .vung-chu.do{ color:#c8102e; }
/* Nút "Thêm" trên hàng thẻ */
.tab-them-hop > summary{ list-style:none; cursor:pointer; }
.tab-them-hop > summary::-webkit-details-marker{ display:none; }
.tab-them-ds{ background:var(--surface) !important; border-radius:14px !important; box-shadow:0 2px 6px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.12) !important; padding:8px !important; }
.tab-them-ds .tab{ margin:0 !important; border-bottom:0 !important; border-radius:10px; padding:10px 14px !important; font-size:18px !important; }
.tab-them-ds .tab:hover{ background:var(--surface-2) !important; }
.tab-them-hop > summary.tab-them::after{ content:"" !important; }
/* 02/11 chiều: dàn hết các thẻ ra (không gộp "Thêm"); nhiều thẻ thì xuống dòng gọn */
@media (min-width: 821px){ .tabs{ flex-wrap:wrap !important; row-gap:2px !important; } }
/* 02/11 chiều: nội dung bám trái và giãn theo bề ngang cửa sổ, không dồn vào giữa khi phóng to */
.container{ max-width:none !important; margin-left:0 !important; margin-right:0 !important; width:100% !important; }
/* Cẩm nang (Sếp duyệt 02/11/2026): chữ to, dòng thoáng, đoạn không quá rộng, tiêu đề mục màu cam đất */
.hb{ font-size:19px !important; line-height:1.7 !important; }
.hb > section, .hb section{ max-width:76ch; }
.hb h2{ color:#b5651d !important; font-size:26px !important; border-bottom:1px solid var(--border) !important; padding-bottom:10px !important; margin:40px 0 18px !important; }
.hb h3{ font-size:21px !important; }
.hb li{ margin-bottom:16px !important; font-size:19px !important; line-height:1.7 !important; }
.hb ol.hb-rules > li > b:first-child{ display:block; font-size:20px; margin-bottom:4px; }
.hb details > summary{ color:#7d6e57 !important; font-size:16.5px !important; }
.hb details > div{ font-size:17px !important; color:#4a443b !important; }
.hb-toc{ line-height:1.5 !important; }
.hb-toc a{ padding:6px 8px !important; }
.hb-tip, .hb-rule{ font-size:18px !important; line-height:1.65 !important; }
/* Cẩm nang: khung nhấn bỏ đỏ, dùng nền be và vạch cam đất */
.hb .hb-rule{ background:#f6efe3 !important; border:0 !important; border-left:4px solid #b5651d !important; border-radius:12px !important; padding:14px 18px !important; }
.hb .hb-tip{ background:var(--surface-2) !important; border-left:4px solid #d8cdb8 !important; border-radius:12px !important; padding:12px 18px !important; }
/* Cẩm nang: mục lục to thêm 1 bậc (16 → 17,5px) */
.hb-toc{ font-size:17.5px !important; } .hb-toc b{ font-size:18.5px !important; }

/* ===== Thang chữ (Sếp duyệt 04/11/2026) — đặt cuối file để đè các lớp tăng chữ cũ =====
   Máy tính / điện thoại: tiêu đề trang 32/24 · tiêu đề khung, hộp thoại 24/20 · số lớn trên thẻ 30/24
   · thẻ, menu trái, thân chữ, khung ghi chú, nhãn thẻ số 18/17 · bảng, nút 17 · chữ phụ 15.5 · số đếm 13.
   Ô nhập giữ 16px (iPhone tự phóng to nếu nhỏ hơn). Cẩm nang (.hb) giữ cỡ riêng. */
html, body{ font-size:18px !important; }
#pageTitle, .topbar-title{ font-size:32px !important; }
.panel-head h2, .modal-head h3, h2.tieu-de-nho{ font-size:24px !important; }
.grid-cards .stat .num, .stat .num, #viewRoot > .grid-cards:has(> .stat) > .stat .num, button.stat.stat-nut .num, .kpi-gd .stat-nut .num{ font-size:30px !important; }
#viewRoot > .grid-cards:has(> .stat) > .stat .num:has(span){ font-size:22px !important; }
@media (min-width: 821px){ button.tab, .tab{ font-size:18px !important; } .navbtn{ font-size:18px !important; } }
#pageSub, .topbar-sub, .callout, .grid-cards > .stat .lbl, #viewRoot > .grid-cards:has(> .stat) > .stat .lbl{ font-size:18px !important; }
#viewRoot > .grid-cards:has(> .stat) > .stat .lbl span{ font-size:16px !important; }
td{ font-size:17px !important; } .btn{ font-size:17px !important; }
.btn-sm, td .btn-sm, td .btn{ font-size:15.5px !important; }
.muted, .hint, .fhint, .lbl .muted, .brand-sub, .sidebar-foot, th, .badge, .field label, legend, .radio-opt, .checkgrid label,
.aging-row, .aging-num, .kv, .tl-item, .tl-time, .stepper, .step-box, .att-item, .role-pill, .tag-scope, .o-loi, td .muted, td [style*="font-size"]{ font-size:15.5px !important; }
[style*="font-size:11"], [style*="font-size: 11"], [style*="font-size:12"], [style*="font-size: 12"], [style*="font-size:13"], [style*="font-size: 13"]{ font-size:15.5px !important; }
.aging-row{ grid-template-columns:100px 1fr auto !important; }
.nav-count, button.tab .nav-count{ font-size:13px !important; }
@media (max-width: 820px){
  #pageTitle, .topbar-title{ font-size:24px !important; }
  .panel-head h2, .modal-head h3, h2.tieu-de-nho{ font-size:20px !important; }
  .grid-cards .stat .num, .stat .num, #viewRoot > .grid-cards:has(> .stat) > .stat .num, button.stat.stat-nut .num{ font-size:24px !important; }
  .tab{ font-size:17px !important; }
}

/* ===== Sếp duyệt 04/11/2026 (bảng thiết kế, Đề xuất 1–3) ===== */
/* Khung "Nghĩa vụ tài chính sắp đến hạn" ở Tổng quan nhỏ hơn thẻ chỉ số */
.callout:has(a[onclick*="nghia-vu"]){ font-size:17px !important; }
/* Mục menu trái và thẻ đang chọn màu be đậm như nút chính */
@media (min-width: 821px){
  .navbtn.active{ background:#7d6e57 !important; color:#fffdf9 !important; }
  .navbtn.active .nav-count{ background:#fffdf9 !important; color:#7d6e57 !important; }
}
.tab.active, button.tab.active, [role="tab"][aria-selected="true"]{ border-bottom-color:#7d6e57 !important; }
/* Ô đang gõ viền be đậm; ô báo lỗi giữ viền đỏ */
input:focus:not([aria-invalid="true"]), select:focus:not([aria-invalid="true"]), textarea:focus:not([aria-invalid="true"]){ border-color:#7d6e57 !important; box-shadow:0 0 0 4px rgba(125,110,87,.18) !important; }
input[aria-invalid="true"]:focus, select[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus{ border-color:var(--critical) !important; box-shadow:0 0 0 4px rgba(215,0,21,.15) !important; }
/* Hàng thẻ trên điện thoại 17px theo thang chữ (Sếp chọn 05/11/2026), đè quy tắc 15px cũ */
@media (max-width: 820px){ .tabs button.tab, .tabs .tab{ font-size:17px !important; } }
/* Menu đáy điện thoại chữ to cho cân với các mục trong "Thêm" (Sếp góp ý 18/11/2026), đè 11.5px cũ */
@media (max-width: 820px){ #sidebar .navbtn{ font-size:15px !important; } #sidebar .navbtn > span:not(.ico):not(.nav-count){ overflow:visible; text-overflow:clip; } }
@media (max-width: 399px){ #sidebar .navbtn{ font-size:14px !important; } }
/* Số đếm trên nút "Thêm" (sát mép phải) không lấn ra ngoài màn hình (Sếp góp ý 18/11/2026) */
@media (max-width: 820px){ #sidebar .navbtn.mo-them .nav-count{ transform:translate(0,-12px) !important; } }
