/* RICH SYSTEM — giao diện chung. Nền trắng, tông xanh nước biển. Không dùng style nội tuyến (CSP chặn). */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --ink: #0f1d2f;
  --ink-2: #33455c;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --navy: #0b2545;
  --navy-2: #13315c;
  --acc: #0d63c7;
  --acc-2: #0a4f9f;
  --acc-soft: #e7f0fb;
  --ok: #117a4b;
  --ok-soft: #e3f4ec;
  --warn: #8a5a00;
  --warn-soft: #fff3d6;
  --bad: #b42318;
  --bad-soft: #fdeceb;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(15, 29, 47, .05), 0 6px 18px rgba(15, 29, 47, .05);
  --topbar: 58px;
  --side: 250px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: 30px; letter-spacing: -.01em; }
h2 { font-size: 22px; }
h3, .h3 { font-size: 17px; }
.h4 { font-size: 15px; margin-top: 1em; }
p { margin: 0 0 1em; }
code { font-family: Consolas, "Courier New", monospace; font-size: 13px; background: #f1f5f9; padding: 1px 5px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; flex: none; }
.i-inline { width: 15px; height: 15px; vertical-align: -2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-line; }
/* Ô/khối do JS ẩn theo mục thu chi đang chọn: chặn trên mọi display của .field, .fieldset. */
[hidden] { display: none !important; }
/* Ô mã: link "chọn từ danh sách" và hàng chọn (ô chọn + nút Chọn) hiện khi bấm link. */
.nut-lien-ket { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--acc); cursor: pointer; text-decoration: underline; }
.chon-tu-ds { display: flex; gap: 8px; align-items: center; }
.chon-tu-ds select { flex: 1; min-width: 0; }
.filter .field { min-width: 240px; }
.viec-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.viec-ds a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 7px; color: var(--ink); }
.viec-ds a:hover { background: var(--bg); text-decoration: none; }
.viec-so { min-width: 30px; text-align: center; font-weight: 700; font-size: 13px; padding: 2px 7px; border-radius: 999px; background: var(--acc-soft); color: var(--acc-2); }
.viec-so.gap { background: var(--warn-soft); color: var(--warn); }
.phan-trang { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin: 10px 2px 0; }
.filter { flex-wrap: wrap; align-items: end; }
.hash { word-break: break-all; }
.row-gap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-gap-sm { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font: 600 14px/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--acc); color: #fff; }
.btn-primary:hover { background: var(--acc-2); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); }
.btn-danger { background: var(--surface); color: var(--bad); border-color: #f1b6b0; }
.btn-danger:hover { background: var(--bad-soft); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { border-color: #fff; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 0;
  background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--bg); color: var(--acc); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.link-arrow .i { width: 16px; height: 16px; }

/* ---------- Nhãn ---------- */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-xam { background: #eef2f6; color: #475569; }
.badge-xanh { background: var(--acc-soft); color: var(--acc-2); }
.badge-xanhla { background: var(--ok-soft); color: var(--ok); }
.badge-vang { background: var(--warn-soft); color: var(--warn); }
.badge-do { background: var(--bad-soft); color: var(--bad); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--acc-2); background: var(--acc-soft); padding: 2px 8px; border-radius: 6px; }
.tag-light { background: rgba(255, 255, 255, .14); color: #fff; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); margin-bottom: 6px; }
.eyebrow-light { color: #8fc1ff; }
.lead { font-size: 16px; color: var(--ink-2); }

/* ---------- Thông báo ---------- */
.flash-wrap { display: grid; gap: 8px; margin-bottom: 16px; }
.flash { padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid; font-size: 14px; }
.flash-ok { background: var(--ok-soft); border-color: #b5e2cc; color: #0c5a37; }
.flash-loi { background: var(--bad-soft); border-color: #f5c2bd; color: #8f1d14; }
.flash-canh { background: var(--warn-soft); border-color: #f2d58f; color: #6b4600; }

/* ---------- Khối ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card-warn { background: #fffaf0; border-color: #f2d58f; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.empty { padding: 36px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty-sm { color: var(--muted); font-size: 14px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.checklist { margin: 0; padding-left: 20px; }
.checklist li { margin: 6px 0; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }

/* ---------- Bảng ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.card .table-wrap { box-shadow: none; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  background: #f8fafc; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table td small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Biểu mẫu ---------- */
.form-stack { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.span-2 { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12.5px; }
input, select, textarea { font: 15px var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px 11px; width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(13, 99, 199, .25); border-color: var(--acc); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: auto; margin-top: 4px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inline-form select { width: auto; max-width: 220px; padding: 6px 8px; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--acc-soft); color: var(--acc-2); font-size: 12.5px; font-weight: 600; }
.chip-form { display: inline; margin: 0; }
.chip-x { border: 0; background: transparent; color: var(--acc-2); cursor: pointer; font-size: 16px; line-height: 1; width: 20px; height: 20px; border-radius: 50%; }
.chip-x:hover { background: #fff; color: var(--bad); }
.compose { margin-top: 14px; }
.compose > summary { list-style: none; display: inline-flex; }
.compose > summary::-webkit-details-marker { display: none; }
.compose[open] > summary { margin-bottom: 14px; }
.terms { background: #f8fafc; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; max-height: 520px; overflow: auto; font-size: 14px; }

/* =================== WEB CÔNG KHAI =================== */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.section { padding: 48px 24px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.pub-top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.pub-top-in { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; letter-spacing: .04em; }
.brand-text small { font-size: 11.5px; color: var(--muted); }
.pub-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.pub-nav > a:not(.btn) { color: var(--ink-2); font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; }
.pub-nav > a:not(.btn):hover, .pub-nav > a.on { color: var(--acc); background: var(--acc-soft); text-decoration: none; }
.pub-nav-sep { width: 1px; height: 24px; background: var(--line); margin: 0 8px; }
.pub-nav .btn { margin-left: 4px; }
.pub-burger { display: none; margin-left: auto; border: 0; background: transparent; color: var(--ink); cursor: pointer; padding: 6px; }

.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1b4a86 100%); color: #fff; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; padding-top: 64px; padding-bottom: 64px; align-items: center; }
.hero h1 { color: #fff; font-size: 40px; margin-bottom: 18px; }
.hero-lead { color: #c9d9ee; font-size: 17px; max-width: 580px; margin-bottom: 26px; }
.hero-stats { display: grid; gap: 12px; }
.stat { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 2px; }
.stat span { color: #a9c0de; font-size: 13px; }
.stat strong { font-size: 26px; }
.stat .stat-pending { font-size: 18px; color: #dbe7f5; }
.stat small { color: #8ea8c9; font-size: 12px; }

.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.deal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.deal-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.deal-card h3 { margin: 4px 0 0; font-size: 18px; }
.deal-card h3 a { color: var(--ink); }
.deal-meta { font-size: 13px; color: var(--muted); }
.deal-sum { color: var(--ink-2); font-size: 14.5px; flex: 1; }
.deal-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 8px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.deal-facts dt { font-size: 12px; color: var(--muted); }
.deal-facts dd { margin: 0; font-weight: 700; font-size: 14.5px; }
.steps { list-style: none; counter-reset: b; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; }
.steps li { counter-increment: b; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; }
.steps li::before { content: counter(b); width: 30px; height: 30px; border-radius: 50%; background: var(--acc); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.steps span { color: var(--muted); font-size: 14px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.post-card h3 a { color: var(--ink); }
.post-card p { color: var(--ink-2); font-size: 14.5px; }
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.filter select { width: auto; min-width: 180px; }
.filter input[type="search"] { width: auto; min-width: 240px; flex: 1 1 240px; }

/* Nhóm thương vụ: S là thương vụ hệ thống (nền tảng), B là thương vụ kinh doanh.
   Ông chủ 20/09: phân biệt bằng một dải màu nhỏ ở đầu dòng — S xanh lá, B bạc xám. */
.nhom-s, .nhom-b { position: relative; }
.nhom-s::before, .nhom-b::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 0 3px 3px 0; }
.nhom-s::before { background: #14794a; }
.nhom-b::before { background: #b6bfca; }
.table td:first-child.nhom-s, .table td:first-child.nhom-b { padding-left: 16px; }
.nhom-cham { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.nhom-cham.s { background: #14794a; }
.nhom-cham.b { background: #b6bfca; }
.search { position: relative; flex: 1; min-width: 240px; display: block; }
.search .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search input { padding-left: 36px; }
.deal-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 34px 0 30px; }
.deal-hero h1 { color: #fff; margin: 6px 0 6px; }
.deal-hero-meta { color: #b9cce4; margin: 0; }
.crumb { display: inline-block; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.deal-hero .crumb { color: #8fc1ff; }
.deal-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.deal-side { position: sticky; top: 84px; }
.prose h2 { font-size: 20px; margin-top: 1.6em; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; margin: 10px 0; }
.prose summary { cursor: pointer; font-weight: 600; }
.prose details p { margin: 10px 0 0; color: var(--ink-2); }
.pub-foot { background: var(--navy); color: #c9d9ee; margin-top: 40px; }
.pub-foot-in { max-width: 1180px; margin: 0 auto; padding: 40px 24px 24px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.pub-foot-col { display: flex; flex-direction: column; gap: 8px; }
.pub-foot h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.pub-foot a { color: #c9d9ee; font-size: 14px; }
.brand-foot, .brand-foot .brand-text strong { color: #fff; }
.brand-foot .brand-mark { color: var(--acc); }
.brand-foot .brand-text small, .pub-foot .muted { color: #8ea8c9; }
.pub-foot-note { max-width: 1180px; margin: 0 auto; padding: 16px 24px 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; color: #8ea8c9; }
.auth-wrap { display: flex; justify-content: center; padding: 56px 16px; }
.auth-card { width: 100%; max-width: 440px; padding: 28px; }
.auth-card h1 { font-size: 24px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; font-size: 14px; }
.error-page { padding: 72px 24px; }

/* =================== KHU TRONG (nhà đầu tư · điều hành) =================== */
.portal { background: var(--bg); }
/* Lề trái của thanh trên tính theo CỘT ICON của menu, không lấy 16px cho tròn số: icon trong menu
   nằm ở 8px (lề cột) + 10px (lề mục) + nửa icon 17px = tâm 26,5px. Nút ba gạch có lề trong 6px và
   icon 20px, nên lề trái 10px đặt tâm nó vào 26px — thẳng một đường với dãy icon bên dưới, và logo
   nhích ra trái theo, hết cảm giác hụt ở góc. */
.topbar { position: fixed; inset: 0 0 auto 0; height: var(--topbar); background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 16px 0 10px; z-index: 40; }
.topbar .brand-mark { width: 30px; height: 30px; }
.burger { display: none; border: 0; background: transparent; color: var(--ink); cursor: pointer; padding: 6px; }
.zone-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--acc-soft); color: var(--acc-2); white-space: nowrap; }
.khu-dieuhanh .zone-pill { background: var(--navy); color: #fff; }
.topbar-gap { flex: 1; }
.zone-switch { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; }
.zone-web { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.zone-web .i { width: 17px; height: 17px; }
.me { display: flex; align-items: center; gap: 6px; padding-left: 12px; border-left: 1px solid var(--line); }
.me form { margin: 0; }
.me-name { display: flex; flex-direction: column; line-height: 1.2; font-size: 14px; font-weight: 600; text-align: right; }
.me-name small { color: var(--muted); font-weight: 500; font-size: 12px; }
.shell { padding-top: var(--topbar); }
.side { position: fixed; top: var(--topbar); bottom: 0; left: 0; width: var(--side); background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; padding: 8px 8px 20px; z-index: 30; }
.side-group { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 4px; }
.side-link { display: flex; align-items: center; gap: 9px; padding: 5px 10px; border-radius: 7px; color: var(--ink-2); font-size: 13.5px; font-weight: 400; line-height: 1.35; }
.side-link .i { width: 17px; height: 17px; color: var(--muted); flex: none; }
.side-link:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.side-link.on { background: var(--acc-soft); color: var(--acc-2); font-weight: 700; }
.side-link.on .i { color: var(--acc); }
.side-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-khung { margin-left: auto; flex: none; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #94a3b8; }
.side-legend { display: flex; gap: 8px; align-items: flex-start; margin: 18px 12px 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.side-legend .side-khung { margin: 4px 0 0; }
.side-backdrop { display: none; }

/* MENU THU GỌN (ông chủ 21/09: màn hình hẹp, menu chiếm chỗ của bảng số liệu).
   Thu thành cột biểu tượng chứ không ẩn hẳn: vẫn bấm được, vẫn thấy mình đang ở đâu.
   Tên mục nằm ở thuộc tính title, rê chuột là đọc được. */
.nut-gon-menu { display: none; }
.menu-gon .side { width: 52px; padding-left: 4px; padding-right: 4px; }
.menu-gon .side-group, .menu-gon .side-legend, .menu-gon .side-link span, .menu-gon .side-khung { display: none; }
/* KHÔNG căn giữa cột: menu dài thì cột mọc thanh cuộn 16px, căn giữa liền kéo cả dãy icon lệch
   sang trái 8px trong khi nút ba gạch trên thanh đầu đứng yên — đúng chỗ lệch ông chủ bắt được
   21/09. Căn từ MÉP TRÁI thì thanh cuộn có hay không cũng không xê dịch gì:
   4px (lề cột) + 12.5px (lề mục) + nửa icon 19px = tâm 26px, khớp nút ba gạch. */
.menu-gon .side-link { justify-content: flex-start; padding: 9px 0 9px 12.5px; }
.menu-gon .side-link .i { width: 19px; height: 19px; }
.menu-gon .content { margin-left: 52px; max-width: calc(1240px + 52px); }
/* Nút ba gạch phải nằm ĐÚNG TÂM cột biểu tượng bên dưới nó (ông chủ 21/09), nếu không thì nhìn
   như hai thứ rời nhau. Cột rộng 52px tính từ mép trái, nên bỏ padding trái của thanh trên và cho
   nút chiếm trọn 52px ấy — tâm nút rơi đúng tâm cột. */
.menu-gon .topbar { padding-left: 0; }
.menu-gon .nut-gon-menu { width: 52px; }

.content { margin-left: var(--side); padding: 26px 32px 60px; max-width: calc(1240px + var(--side)); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; margin-bottom: 4px; }
.page-head .lead { margin: 0; font-size: 15px; color: var(--muted); max-width: 760px; }
.page-actions { display: flex; gap: 8px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.metric span { font-size: 13px; color: var(--muted); font-weight: 600; }
.metric strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.metric small { font-size: 12.5px; color: var(--muted); }
.metric-acc { border-color: #b9d3f2; background: #f6faff; }
.khung-card { max-width: 820px; }
.khung-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.steps-line { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.step { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.step.done { color: var(--ok); border-color: #b5e2cc; background: var(--ok-soft); }
.step.on { color: #fff; background: var(--acc); border-color: var(--acc); }

/* ---------- Phân hệ Tiền ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -6px 0 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--acc-2); border-bottom-color: var(--acc); }
.vsym { display: inline-block; font-family: Consolas, "Courier New", monospace; font-weight: 700; font-size: 13px; letter-spacing: .03em;
  color: var(--navy); background: #eef3fa; border: 1px solid #d5e2f3; border-radius: 5px; padding: 1px 7px; }
.duong { color: var(--ok); }
.am { color: var(--bad); }
.row-off td { color: var(--muted); }
.row-off td strong { font-weight: 500; }
.row-total td { font-weight: 700; background: #f8fafc; }
.note-card { background: #f6faff; border-color: #cfe0f5; font-size: 14px; color: var(--ink-2); }
.row-tools { width: 1%; white-space: nowrap; }
.pop { position: relative; }
.pop > summary { list-style: none; }
.pop > summary::-webkit-details-marker { display: none; }
.pop-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 320px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 12px 32px rgba(15, 29, 47, .16); padding: 14px; display: grid; gap: 14px; white-space: normal; }
.pop-body form + form { border-top: 1px solid var(--line); padding-top: 12px; }
.mt { margin-top: 14px; }
.chips-lg { gap: 8px; }
.chips-lg .chip { height: 30px; font-size: 13px; }
.chip b { font-family: Consolas, "Courier New", monospace; margin-right: 2px; }
.chip-off { background: #eef2f6; color: #94a3b8; text-decoration: line-through; }
meter { width: 90px; height: 10px; vertical-align: middle; }
optgroup { font-weight: 700; }

/* =================== Điện thoại & máy tính bảng =================== */
@media (max-width: 1080px) {
  .grid-2-1, .deal-layout { grid-template-columns: 1fr; }
  .deal-side { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-foot-in { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 901px) {
  .nut-gon-menu { display: inline-flex; }
  /* Màn rộng thì đứng đầu hàng là nút thu gọn menu (36px, icon 20px) chứ không phải nút ba gạch:
     lề 8px đặt tâm nó vào đúng 26px, vẫn thẳng cột icon. */
  .topbar { padding-left: 8px; }
}

@media (max-width: 900px) {
  .burger { display: inline-flex; }
  /* Màn hình hẹp: menu trượt ra từ cạnh trái, thu gọn không còn nghĩa gì. */
  .menu-gon .side { width: var(--side); padding-left: 8px; padding-right: 8px; }
  .menu-gon .side-group, .menu-gon .side-link span { display: revert; }
  .menu-gon .side-link { justify-content: flex-start; padding: 5px 10px; }
  .menu-gon .content { margin-left: 0; }
  .side { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
  body.side-open .side { transform: none; }
  body.side-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 29, 47, .35); z-index: 25; }
  .content { margin-left: 0; padding: 20px 16px 48px; }
  .zone-switch, .me-name small, .zone-pill { display: none; }
  .pub-burger { display: inline-flex; }
  .pub-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px; }
  body.pub-nav-open .pub-nav { display: flex; }
  .pub-nav-sep { display: none; }
  .pub-nav .btn { margin: 6px 0 0; }
  .pub-top-in { position: relative; }
  .hero-in { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .hero h1 { font-size: 30px; }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  h1 { font-size: 24px; }
  .wrap { padding: 0 16px; }
  .section { padding: 32px 16px; }
  .steps { grid-template-columns: 1fr; }
  .deal-grid, .post-grid { grid-template-columns: 1fr; }
  .deal-facts { grid-template-columns: 1fr 1fr; }
  .pub-foot-in { grid-template-columns: 1fr; }
  .me-name { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { padding: 12px 14px; }
  .metric strong { font-size: 20px; }
  .brand-text small { display: none; }
  .facts div { flex-direction: column; gap: 2px; }
  .facts dd { text-align: left; }
}

/* ===== B15: minh bạch, trang dự án, vinh danh ===== */
.levels { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.levels li { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.levels li span { color: var(--muted); font-size: 13.5px; }
.levels li.on { border-color: var(--acc); background: var(--acc-soft); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 4px; width: auto; }
.check span { display: grid; }
.check small { color: var(--muted); font-size: 12.5px; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px 16px; margin: 0; }
.fieldset legend { font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 0 6px; }
.page-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; }
.page-nav a { color: #cfe0f5; font-weight: 600; font-size: 14px; }
.impact { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.impact-item { display: grid; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ok-soft); }
.impact-item strong { font-size: 26px; line-height: 1.2; color: var(--ok); font-variant-numeric: tabular-nums; }
.impact-item span { font-weight: 600; color: var(--ink-2); }
.impact-item small { color: var(--muted); font-size: 13px; }
.update { padding: 12px 0; border-top: 1px solid var(--line); }
.update:first-of-type { border-top: 0; padding-top: 0; }
.update h3 { margin: 2px 0 4px; }
.honor { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.honor li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.honor li span { color: var(--ink-2); font-size: 14px; font-style: italic; }
.honor li small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) {
  .checks { grid-template-columns: 1fr; }
}
.pub-nav > a { white-space: nowrap; }
@media (max-width: 1080px) and (min-width: 901px) {
  .pub-nav > a:not(.btn) { padding: 8px 8px; font-size: 14px; }
  .brand-text small { display: none; }
}

/* ===== Góp công: các kỳ G3 ===== */
.plan { padding: 12px 0; border-top: 1px solid var(--line); }
.ky { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.ky-o { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 12.5px; }
.ky-o em { font-style: normal; color: var(--muted); }
.ky-da_ghi_so { background: var(--ok-soft); border-color: #b5e2cc; }
.ky-cho_duyet { background: var(--warn-soft); border-color: #f2d58f; }
.ky-huy { text-decoration: line-through; color: var(--muted); }
form.inline { display: inline; }
