/* KCT OS – giao diện quản trị (lấy khung từ Bradwell OS 29/10/2026): thanh trên xanh navy, menu trái, vùng làm việc dạng bảng. Màu KCT: navy #16324A + vàng #F2B705 */
:root {
  --ink: #16324a; --ink-2: #21425f; --yel: #F2B705; --yel-soft: #fbe7a1; --yel-ink: #7a5a00; --navy: #16324a;
  --bg: #f5f5f2; --surface: #ffffff; --line: #e4e4df; --mut: #62625c; --soft: #efefea; --text: #141414;
  --good: #1f7a46; --good-s: #e0f2e7; --warn: #9a6400; --warn-s: #fcf0d2; --bad: #b42323; --bad-s: #fbe3e3; --info: #2557b8; --info-s: #e3ebfb;
  --on-ink: #ffffff; --on-ink-mut: #b5b5ad; --side: #fbfbf8;
  --f: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --fh: "Montserrat", "Be Vietnam Pro", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #111110; --surface: #1a1a18; --line: #2c2c29; --mut: #a2a29a; --soft: #232320; --side: #161614; --ink-2: #222220; --text: #ecece6;
  --yel-ink: #f7d21e; --good: #6fd39a; --good-s: #15301f; --warn: #f1c35d; --warn-s: #33290f; --bad: #ff8b8b; --bad-s: #3a1717; --info: #8fb0ff; --info-s: #1b2540;
  color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #111110; --surface: #1a1a18; --line: #2c2c29; --mut: #a2a29a; --soft: #232320; --side: #161614; --ink-2: #222220; --text: #ecece6;
  --yel-ink: #f7d21e; --good: #6fd39a; --good-s: #15301f; --warn: #f1c35d; --warn-s: #33290f; --bad: #ff8b8b; --bad-s: #3a1717; --info: #8fb0ff; --info-s: #1b2540;
  color-scheme: dark }
* { box-sizing: border-box }
[hidden] { display: none !important }
html, body { height: 100% }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f); font-size: 14px; line-height: 1.45; -webkit-text-size-adjust: 100% }
button, input, select, textarea { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--yel); outline-offset: 2px }
.num { font-variant-numeric: tabular-nums }
h1, h2, h3 { margin: 0; text-wrap: balance }
a { color: var(--info) }

.app { display: grid; grid-template-rows: auto 1fr; height: 100%; height: 100dvh }
.top { background: var(--navy); color: var(--on-ink); display: flex; align-items: center; gap: 12px; min-height: 56px;
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); border-bottom: 3px solid var(--yel) }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--fh); font-weight: 800; letter-spacing: .02em; white-space: nowrap; color: #fff; text-decoration: none }
.brand small { font-family: var(--f); font-weight: 500; color: var(--on-ink-mut); letter-spacing: 0 }
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 22px; padding: 6px; cursor: pointer }
.search { flex: 1; max-width: 420px; position: relative; display: flex; align-items: center; background: #21425f; border-radius: 8px; padding: 0 10px; min-width: 0 }
.search input { background: none; border: 0; color: #fff; padding: 8px 6px; width: 100%; outline: none }
.search input::placeholder { color: #9fb2c4 }
.search .kq { position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.25); z-index: 15; overflow: hidden }
.search .kq button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--line) }
.search .kq button:hover { background: var(--soft) }
.top .sp { flex: 1 }
.demo { background: #23476a; color: var(--yel); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; letter-spacing: .05em; white-space: nowrap }
.who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--on-ink-mut) }
.who select { background: #21425f; color: #fff; border: 1px solid #2f5577; border-radius: 7px; padding: 6px 8px }
.who b { color: #fff; font-weight: 600 }
.who button { background: #21425f; color: #fff; border: 1px solid #2f5577; border-radius: 7px; padding: 6px 10px; cursor: pointer }

.body { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 0 }
nav.side { background: #102638; color: #e8eef3; border-right: 1px solid #1c3a52; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px }
.side .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8fa6ba; font-weight: 700; padding: 12px 10px 4px }
.side button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 7px; cursor: pointer; color: inherit; font-weight: 500 }
.side button:hover, .side a.hdsd:hover { background: #1c3a52 }
.side a.hdsd { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: inherit; text-decoration: none; font-weight: 500; margin-top: 10px; border-top: 1px solid #2e2e2c; border-radius: 0 0 7px 7px; padding-top: 12px }
.side button[aria-current="page"] { background: var(--yel); color: #141414; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.35) }
:root[data-theme="dark"] .side button[aria-current="page"] { background: var(--yel); color: #141414 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .side button[aria-current="page"] { background: var(--yel); color: #141414 } }
.side .ico { width: 18px; height: 18px; flex: none; opacity: .85 }
.side .badge { margin-left: auto; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 7px }
main { overflow-y: auto; padding: 20px max(16px, env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) 24px; min-width: 0 }
.pagehead { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px }
.pagehead h1 { font-family: var(--fh); font-size: 22px; font-weight: 800 }
.pagehead .sub { color: var(--mut); font-size: 13px; margin-top: 2px }
.acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 13px; cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap }
.btn:hover { border-color: var(--mut) }
.btn.pri { background: var(--ink); color: #fff; border-color: var(--ink) }
:root[data-theme="dark"] .btn.pri { background: var(--yel); color: #141414; border-color: var(--yel) }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.pri { background: var(--yel); color: #141414; border-color: var(--yel) } }
.btn.ok { background: var(--good); border-color: var(--good); color: #fff }
.btn.no { color: var(--bad) }
.btn.nho { padding: 4px 9px; font-size: 12px }
.btn:disabled { opacity: .45; cursor: not-allowed }

.grid { display: grid; gap: 14px }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 4px; min-width: 0 }
.kpi .k { font-size: 12px; color: var(--mut); font-weight: 600 }
.kpi .v { font-family: var(--fh); font-size: 22px; font-weight: 800; overflow-wrap: anywhere }
.kpi .d { font-size: 12px; color: var(--mut) }
.kpi.y { border-top: 3px solid var(--yel) }
.two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-width: 0; margin-bottom: 14px }
.card > .ch { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap }
.card > .ch h2 { font-size: 14px; font-weight: 700 }
.card > .cb { padding: 12px 14px }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); font-weight: 700; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--soft); white-space: nowrap }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle }
.tbl tr:last-child td { border-bottom: 0 }
.tbl tr.click { cursor: pointer }
.tbl tr.click:hover td { background: var(--soft) }
.tbl .r { text-align: right }
/* Sắp xếp theo cột + thanh lọc bảng (tìm, hãng, ngày, cột) */
.tbl thead th[data-act] { cursor: pointer; user-select: none }
.tbl thead th[data-act]:hover { color: var(--text) }
.tbl thead th[data-act]::after { content: "↕"; margin-left: 4px; opacity: .3; font-size: 10px }
.tbl thead th[aria-sort="ascending"]::after { content: "▲"; opacity: 1; color: var(--yel-ink) }
.tbl thead th[aria-sort="descending"]::after { content: "▼"; opacity: 1; color: var(--yel-ink) }
.tbl tr.lrong td { padding: 0 }
.locbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px }
.locbar .inp { width: auto; padding: 6px 8px; font-size: 13px; border-radius: 8px; max-width: 220px }
.locbar .lq { flex: 1 1 180px; max-width: 260px }
.locbar .lchon, .locbar .lngay { display: contents }
.locbar input[type=date] { max-width: 150px }
.locbar .ldem { margin-left: auto; white-space: nowrap }
/* Sản phẩm: ảnh nhỏ trong danh sách, hồ sơ (ảnh + thông tin), xem ảnh lớn */
.spthumb { width: 52px; height: 39px; object-fit: cover; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--mut); vertical-align: middle }
.sptop { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px; align-items: start }
.spgal { overflow: hidden }
.spchinh { aspect-ratio: 4 / 3; background: var(--soft); display: flex; align-items: center; justify-content: center }
.spchinh[data-act] { cursor: zoom-in }
.spchinh img { width: 100%; height: 100%; object-fit: contain }
.sptrong { color: var(--mut); text-align: center; padding: 24px 16px; font-weight: 600 }
.spnhos { display: flex; gap: 6px; padding: 8px; overflow-x: auto; border-top: 1px solid var(--line) }
.spnho { width: 64px; height: 48px; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--soft); cursor: pointer }
.spnho img { width: 100%; height: 100%; object-fit: cover; display: block }
.spnho.chinh { outline: 2px solid var(--yel); outline-offset: 1px }
.spinfo { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 16px; margin: 0; padding: 12px 14px; font-size: 13px }
.spinfo dt { color: var(--mut); font-weight: 600 }
.spinfo dd { margin: 0; overflow-wrap: anywhere }
.mota { white-space: pre-wrap }
.spxem img { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; object-fit: contain; border-radius: 8px; background: var(--soft) }
.tbl tfoot td { font-weight: 800; background: var(--soft) }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch }
.chip { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap }
.chip.wrap { white-space: normal; line-height: 1.35 }
.c-good { background: var(--good-s); color: var(--good) } .c-warn { background: var(--warn-s); color: var(--warn) } .c-bad { background: var(--bad-s); color: var(--bad) } .c-info { background: var(--info-s); color: var(--info) } .c-mut { background: var(--soft); color: var(--mut) } .c-yel { background: var(--yel-soft); color: #5c4800 }
.list { display: grid }
.li { display: flex; gap: 10px; align-items: start; padding: 10px 14px; border-bottom: 1px solid var(--line) }
.li:last-child { border-bottom: 0 }
.li.click { cursor: pointer } .li.click:hover { background: var(--soft) }
.li .t { font-weight: 600 }
.li .s { font-size: 12.5px; color: var(--mut) }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 6px }
.ai-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--ink); color: var(--yel); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; min-width: 60px } .bar i { display: block; height: 100%; background: var(--yel) }
.callout { border-left: 4px solid var(--yel); background: var(--surface); border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px }
.callout.bad { border-left-color: var(--bad) }
.note { font-size: 12px; color: var(--mut) }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto }
.tabs button { border: 0; background: none; padding: 8px 12px; cursor: pointer; font-weight: 600; color: var(--mut); border-bottom: 2px solid transparent; white-space: nowrap }
.tabs button[aria-selected="true"] { color: inherit; border-bottom-color: var(--yel) }
.kenh { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px }
.kenh button { font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--mut); cursor: pointer }
.kenh button[aria-selected="true"] { background: var(--yel); border-color: var(--yel); color: #1b1b1b }
.loc { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px }
.loc input, .loc select { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--surface) }
.steps { display: flex; flex-wrap: wrap; margin: 4px 0 8px }
.step { flex: 1; min-width: 110px; padding: 9px 11px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px }
.step + .step { border-left: 0 }
.step:first-child { border-radius: 8px 0 0 8px } .step:last-child { border-radius: 0 8px 8px 0 }
.step b { display: block; font-size: 13px }
.step.done { background: var(--good-s) } .step.now { background: var(--yel-soft); color: #3c2f00 } .step.done b::before { content: "✓ " } .step.exc { background: var(--bad-s) }
.tl { display: grid }
.tl > div { border-left: 2px solid var(--line); padding: 0 0 12px 14px; position: relative; font-size: 13px }
.tl > div::before { content: ""; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--good) }
.tl time { color: var(--mut); font-size: 12px; margin-right: 6px }
.snbox { display: flex; gap: 8px; max-width: 560px; flex-wrap: wrap } .snbox input { flex: 1; min-width: 180px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; background: var(--surface) }
.empty { padding: 28px 14px; text-align: center; color: var(--mut) }
.loading { padding: 40px; text-align: center; color: var(--mut) }
.err { padding: 16px; border-radius: 10px; background: var(--bad-s); color: var(--bad) }

/* Modal, form */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 20 }
.modal { position: fixed; z-index: 21; top: max(4vh, env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); width: min(760px, calc(100% - 24px)); max-height: 92vh; max-height: 92dvh; overflow: auto; background: var(--surface); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.3) }
.modal.rong { width: min(1040px, calc(100% - 24px)) }
.modal .mh { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1 }
.modal .mh h2 { font-size: 16px; font-family: var(--fh) }
.modal .mb { padding: 16px 18px; display: grid; gap: 12px }
.modal .mf { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface) }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px }
label.f { display: grid; gap: 4px; font-size: 12px; color: var(--mut); font-weight: 600 }
label.f.full { grid-column: 1 / -1 }
.f input, .f select, .f textarea, .inp { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--surface); width: 100%; min-width: 0; font-weight: 400; color: var(--text) }
.f textarea { min-height: 70px; resize: vertical }
.inp.so { text-align: right; font-variant-numeric: tabular-nums }
.chk { display: flex; gap: 8px; align-items: center; font-size: 13px }
.x { border: 0; background: var(--soft); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 18px; flex: none }
.files { display: grid; gap: 6px }
.file-it { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--surface); min-width: 0; text-decoration: none; color: inherit }
.file-it img { width: 120px; height: 75px; object-fit: cover; border-radius: 6px; flex: none; border: 1px solid var(--line) }
.file-ic { width: 44px; height: 44px; border-radius: 6px; background: var(--soft); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--mut); flex: none }
.file-it span { overflow-wrap: anywhere }
.report { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px }
.toast { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 30; font-size: 13px; border-left: 4px solid var(--yel); max-width: calc(100% - 32px) }
.toast.loi { border-left-color: #ff6b6b }
.banmoi { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 40; background: var(--yel); color: #141414; padding: 8px 10px 8px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; display: flex; gap: 12px; align-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: calc(100% - 24px) }
.banmoi .btn { background: #141414; color: #fff; border-color: #141414 }
video.quet { width: 100%; max-height: 50vh; background: #000; border-radius: 10px }

/* Đăng nhập */
.login { min-height: 100%; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--navy) }
.login .box { width: min(420px, 100%); background: var(--surface); border-radius: 14px; padding: 26px 22px; display: grid; gap: 14px; border-top: 4px solid var(--yel) }
.login h1 { font-family: var(--fh); font-size: 20px }
.login .people { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.login .people button { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px; cursor: pointer }
.login .people button:hover { border-color: var(--yel) }
.login .people small { display: block; color: var(--mut); font-size: 11.5px }

@media (prefers-reduced-motion: no-preference) { .modal { animation: popm .16s ease-out } @keyframes popm { from { opacity: .4; transform: translate(-50%, 6px) } } }

/* Máy tính bảng */
@media (max-width: 1000px) {
  .sptop { grid-template-columns: minmax(0, 1fr) }
  .two { grid-template-columns: minmax(0, 1fr) }
  .body { grid-template-columns: 64px minmax(0, 1fr) }
  .side .lbl, .side .grp, .side .badge { display: none }
  .side button, .side a.hdsd { justify-content: center }
}
/* Điện thoại: menu trượt từ trái, bảng cuộn ngang */
@media (max-width: 700px) {
  .locbar .inp { flex: 1 1 140px; max-width: none }
  .locbar .lq { flex: 1 1 100%; max-width: none }
  .locbar input[type=date] { flex: 1 1 120px; max-width: none }
  .locbar .ldem { margin-left: 0; white-space: normal }
  .spinfo { grid-template-columns: minmax(0, 1fr); gap: 2px }
  .spinfo dd { margin-bottom: 8px }
  .app { width: 100vw; overflow-x: hidden }
  .top { gap: 8px; padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)) }
  .menu-btn { display: block; padding: 4px }
  .brand span, .demo { display: none }
  .search { max-width: none; flex: 1 1 auto; min-width: 0 }
  .who { min-width: 0; flex: 0 1 auto }
  .who select { max-width: 104px; font-size: 12px; padding: 6px 4px }
  .who button { padding: 6px 8px }
  .who span.ten { display: none }
  .body { grid-template-columns: minmax(0, 1fr) }
  nav.side { position: fixed; z-index: 19; top: 0; bottom: 0; left: 0; width: 260px; transform: translateX(-105%); transition: transform .18s ease; box-shadow: 10px 0 30px rgba(0,0,0,.2);
    padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px) }
  nav.side.mo { transform: none }
  .side .lbl, .side .grp, .side .badge { display: initial }
  .side button, .side a.hdsd { justify-content: flex-start }
  main { padding: 14px 12px calc(40px + env(safe-area-inset-bottom, 0px)) }
  .pagehead h1 { font-size: 19px }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px }
  .kpi { padding: 10px } .kpi .v { font-size: 17px }
  .modal { top: 0; width: 100%; max-height: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; padding-top: env(safe-area-inset-top, 0px) }
  .modal .mf { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) }
  .step { min-width: 50% }
}

/* iPhone/iPad: ô nhập dưới 16px làm Safari tự phóng to cả trang khi gõ (app đã cài thì không thu nhỏ lại được) */
@supports (-webkit-touch-callout: none) {
  input, select, textarea, .who select { font-size: 16px !important }
}

/* Bảng thông số kỹ thuật trong hồ sơ sản phẩm */
.tsbang th { text-align: left; color: var(--mut); font-weight: 600; width: 38%; vertical-align: top; text-transform: none; letter-spacing: 0; font-size: 13px }
.tsbang td { overflow-wrap: anywhere }
.tsbang .tsnhom th { color: var(--text); background: var(--soft); font-size: 12px; text-transform: uppercase; letter-spacing: .03em }

/* Marketing: danh sách có ảnh nhỏ + đoạn trích; xem trước bài như trên Fanpage để Chủ tịch duyệt (28/10/2026) */
.ndhang { display: flex; gap: 10px; align-items: flex-start }
.ndhang .spthumb { flex: none; width: 64px; height: 48px }
.fbpost { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; align-self: start }
.fbhead { display: flex; gap: 10px; align-items: center; padding: 12px 14px }
.fbav { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--ink); color: var(--yel); display: inline-flex; align-items: center; justify-content: center; font-weight: 800 }
.fbtext { padding: 0 14px 12px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; font-size: 14.5px }
.fbcat { display: block; margin: 10px 0; padding-top: 4px; border-top: 2px dashed var(--yel); color: var(--mut); font-size: 12px; white-space: normal }
.fbanh { display: grid; gap: 2px; background: var(--line) }
.fbanh2, .fbanh3, .fbanh4 { grid-template-columns: 1fr 1fr }
.fbanh3 a:first-child { grid-column: span 2 }
.fbanh a { display: block; background: var(--soft) }
.fbanh img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover }
.fbanh1 img { aspect-ratio: auto; max-height: 480px; object-fit: contain }
.ndanhsua { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 }
.ndanhs { position: relative }
.ndanhs img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; background: var(--soft) }
.ndanhs .x { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); line-height: 18px; padding: 0 }

/* Thông báo nội bộ */
.tbds { display: grid; gap: 10px }
.tbthe { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer }
.tbthe:hover { border-color: var(--mut) }
.tbthe.moi { border-left-color: var(--info) }
.tbthe.qt { border-left-color: var(--bad) }
.tbthe h3 { font-size: 15px; margin: 6px 0 4px }
.tbthe.moi h3 { font-weight: 800 }
.tbdau, .tbchan, .tbmeta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.tbchan { margin-top: 8px }
.tbtu { margin-left: auto }
.tbloc { margin-bottom: 10px }
.tbnd { white-space: pre-wrap; font-size: 15px; line-height: 1.6; margin: 12px 0; overflow-wrap: anywhere }
.tbanh { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 10px 0 }
.tbanh img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--soft) }
.tbtep { display: grid; gap: 4px; margin: 8px 0 }
.tbchk { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 8px }
.tbgui { margin: 10px 0 }
.tbh3 { font-size: 14px; margin: 14px 0 6px }
.tbthuhoi { border-color: var(--bad) }
.tbxn { border-color: var(--good) }
.tbbao { position: fixed; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 30; background: var(--bad); color: #fff; padding: 8px 10px 8px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); display: flex; gap: 10px; align-items: center; max-width: calc(100vw - 24px) }
.tbbao .btn { background: #fff; color: #141414; border-color: #fff }
/* Ý kiến Chủ tịch về bài Marketing */
.ndphai { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; min-width: 0 }
.ndphai .acts { flex-wrap: wrap }
.yklist { list-style: none; margin: 0; padding: 8px 14px; display: grid; gap: 10px; max-height: 300px; overflow: auto }
.yk { border-left: 3px solid var(--line); padding: 2px 0 2px 10px }
.yk.ct { border-left-color: var(--yel) }
.ykd { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px }
.ykt { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px }
.ykct { font-size: 12.5px; color: var(--yel-ink); margin-top: 2px }

/* Hồ sơ nhân viên & danh bạ */
.hsng { display: flex; gap: 10px; align-items: center; min-width: 0 }
.hsav { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: var(--soft); color: var(--mut); display: inline-grid; place-items: center; font-weight: 800; font-size: 14px }
.hsav.lon { width: 72px; height: 72px; font-size: 26px }
.hsdau { display: flex; gap: 14px; align-items: center; flex-wrap: wrap }
.hsdau h2 { font-size: 17px; font-family: var(--fh) }
.hsdau .tt { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px }
.hsmoi { display: grid; gap: 12px }
.hssec { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px }
.hssec h3 { font-size: 14px; font-family: var(--fh) }
.hsdoc { display: grid; gap: 2px; font-size: 12px; color: var(--mut); font-weight: 600; min-width: 0 }
.hsdoc b { font-size: 14px; color: var(--text); font-weight: 500; overflow-wrap: anywhere }
.hsdoc.full { grid-column: 1 / -1 }
.hskn { display: grid; gap: 8px }
.hskn .dong { display: grid; grid-template-columns: 140px 140px minmax(0, 1fr) minmax(0, 1fr) 32px; gap: 6px; align-items: center }
.hstai { display: flex; gap: 8px; flex-wrap: wrap; align-items: center }
.hstai .inp { width: auto }
.callout p { margin-top: 6px }
@media (max-width: 640px) { .hskn .dong { grid-template-columns: 1fr 1fr 32px } .hskn .dong [data-kn=cong_ty], .hskn .dong [data-kn=vi_tri] { grid-column: span 3 } .hskn .dong .x { grid-row: 1; grid-column: 3 } }

/* ===== Kiểu bảng tổng quan cũ lấy từ Bradwell OS (KCT OS chưa dùng) ===== */
.side-tt { margin-top: auto; padding: 12px 12px 10px; border-radius: 12px; background: #16324a; border: 1px solid #23476a; font-size: 11.5px; color: #a9bccc; display: grid; gap: 2px; flex: none; margin-bottom: 6px }
.side-tt b { color: #ecece6; letter-spacing: .06em; font-size: 12px; margin-bottom: 2px }
.side-tt svg { width: 100%; height: auto; margin-top: 8px; border-radius: 9px; background: linear-gradient(160deg, #2a2a28, #101010) }
.side .grp:first-child { padding-top: 2px }
:root { --tq-blue: #2563eb; --tq-sky: #0ea5e9; --tq-purple: #7c3aed; --tq-slate: #64748b; --tq-orange: #f59e0b; --tq-amber: #d97706; --tq-green: #16a34a; --tq-teal: #0d9488; --tq-red: #dc2626; --tq-pink: #db2777; --tq-xanh: #2563eb }
:root[data-theme="dark"] { --tq-xanh: #6f9bff }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tq-xanh: #6f9bff } }
.tq-head { margin-bottom: 10px }
.tq-loc label { display: grid; gap: 2px; font-size: 11px; color: var(--mut); font-weight: 600 }
.tq-loc .inp { width: auto; min-width: 150px; padding: 6px 10px; font-weight: 600 }
.tq-tat { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px }
.tq { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) 420px; grid-template-areas: "kpi kpi" "bd bd" "don phai" "ton ton"; align-items: start }
.tq > .tq-kpis { grid-area: kpi } .tq > .tq-charts { grid-area: bd } .tq > .tq-don { grid-area: don } .tq > .tq-phai { grid-area: phai } .tq > .tq-ton { grid-area: ton }
.tq.kho { grid-template-areas: "kpi kpi" "don phai" "ton ton" }
.tq .m { color: var(--mut) } .tq .tot { color: var(--good) } .tq .xau { color: var(--bad) } .tq .sap { color: var(--warn) }
.tq-card { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 10px rgba(16, 24, 40, .04); min-width: 0 }
.tq-ch { display: flex; align-items: center; gap: 8px 10px; padding: 12px 14px 4px; flex-wrap: wrap }
.tq-ch h2 { font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase }
.tq-ch .sp { flex: 1 }
.tq-ch .ghi { color: var(--mut); font-size: 11.5px }
.tq-cb { padding: 6px 14px 12px; flex: 1; min-height: 0 }
.tq-trong { padding: 26px 10px; text-align: center; color: var(--mut); font-size: 13px }
.tq-xem { font-size: 12px; font-weight: 700; text-decoration: none; display: inline-flex; gap: 4px; align-items: center }
.tq-xem .ico { width: 15px; height: 15px }
.tq-tag { font-size: 10.5px; font-weight: 700; background: var(--yel-soft); color: #5c4800; border-radius: 99px; padding: 1px 8px; white-space: nowrap }
.tq-dem { background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 8px }
/* Ô chỉ số */
.tq-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px }
.tq-kpi { --c: var(--tq-blue); display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 14px 12px; border-radius: 13px; min-width: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, var(--surface)), var(--surface) 85%); border: 1px solid color-mix(in srgb, var(--c) 24%, var(--line)) }
.tq-kpi.click { cursor: pointer } .tq-kpi.click:hover { border-color: var(--c) }
.tq-kpi.m-blue { --c: var(--tq-blue) } .tq-kpi.m-green { --c: var(--tq-green) } .tq-kpi.m-teal { --c: var(--tq-teal) } .tq-kpi.m-red { --c: var(--tq-red) }
.tq-kpi.m-orange { --c: var(--tq-orange) } .tq-kpi.m-purple { --c: var(--tq-purple) } .tq-kpi.m-amber { --c: var(--tq-amber) }
.tq-kpi .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 35%, transparent) }
.tq-kpi .ic .ico { width: 25px; height: 25px }
.tq-kpi .kl { font-size: 10.5px; font-weight: 800; letter-spacing: .03em; line-height: 1.3; text-transform: uppercase; display: flex; align-items: flex-start; gap: 5px; min-height: 27px }
.tq-kpi .kl .ico { width: 12px; height: 12px; color: var(--mut) }
.tq-kpi .kv { font-family: var(--fh); font-weight: 800; font-size: 25px; line-height: 1.15; margin-top: 2px; white-space: nowrap }
.tq-kpi .kv small { font-family: var(--f); font-size: 14px; font-weight: 700; color: var(--mut); margin-left: 3px }
.tq-kpi .kp { font-size: 11.5px; color: var(--c); font-weight: 600; margin-top: 3px; line-height: 1.3 }
.tq-kpi .kp a { color: inherit; text-decoration: underline }
.tq-kpi .thanh { height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--c) 16%, var(--surface)); margin-top: 6px; overflow: hidden }
.tq-kpi .thanh i { display: block; height: 100%; border-radius: 99px; background: var(--c) }
.tq-kpi .kd { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; font-size: 11.5px; color: var(--mut); padding-top: 8px; border-top: 1px dashed color-mix(in srgb, var(--c) 28%, var(--line)) }
.tq-kpi .kd b { font-size: 12.5px }
/* Biểu đồ */
.tq-charts { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.2fr) minmax(0, .85fr) minmax(0, .9fr); gap: 14px }
.tq-charts .tq-card { display: flex; flex-direction: column; min-height: 268px }
.tq-donut { display: grid; grid-template-columns: 158px minmax(0, 1fr); gap: 10px; align-items: center }
.tq-svg { display: block; width: 100%; height: auto; overflow: visible }
.tq-svg text { font-family: var(--f) }
.tq-pt { fill: #fff; font-size: 10px; font-weight: 700; text-anchor: middle }
.tq-g1 { fill: var(--text); font-family: var(--fh) !important; font-weight: 800; font-size: 16px; text-anchor: middle }
.tq-g2 { fill: var(--mut); font-size: 10.5px; text-anchor: middle }
.tq-rong { stroke: var(--soft) }
.tq-lg { display: grid; gap: 6px; font-size: 12px; min-width: 0 }
.tq-lg > div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 7px; align-items: center }
.tq-lg i { width: 10px; height: 10px; border-radius: 50% }
.tq-lg .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.tq-lg .v { color: var(--mut); font-variant-numeric: tabular-nums; white-space: nowrap }
.tq-lg .tg { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; font-weight: 700; color: var(--warn) }
.tq-leg { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 11px; color: var(--mut); padding: 0 14px }
.tq-leg span { display: inline-flex; align-items: center; gap: 6px }
.tq-leg i { width: 14px; height: 3px; border-radius: 2px; display: inline-block }
.tq-leg .tong { margin-left: auto; font-weight: 700; color: var(--text) }
.tq-leg .l-t { background: var(--tq-xanh) } .tq-leg .l-ck { background: var(--tq-orange) }
.tq-leg .l-muc { background: repeating-linear-gradient(90deg, var(--mut) 0 5px, transparent 5px 8px) } .tq-leg .l-du { background: repeating-linear-gradient(90deg, var(--tq-xanh) 0 2px, transparent 2px 4px) }
.tq-leg .l-trong, .tq-leg .l-qua { width: 9px; height: 9px; border-radius: 2px } .tq-leg .l-trong { background: var(--tq-blue) } .tq-leg .l-qua { background: var(--tq-red) }
.tq-luoi { stroke: var(--line) } .tq-truc { fill: var(--mut); font-size: 10px }
.tq-muc { stroke: var(--mut); stroke-width: 1.6; stroke-dasharray: 5 4 } .tq-nmuc { fill: var(--mut); font-size: 10px; font-weight: 700 }
.tq-ck { fill: none; stroke: var(--tq-orange); stroke-width: 2; stroke-linejoin: round }
.tq-nay { stroke: var(--line); stroke-dasharray: 3 3 }
.tq-du { stroke: var(--tq-xanh); stroke-width: 2; stroke-dasharray: 2 3 } .tq-ndu { fill: var(--tq-xanh); font-size: 10px; font-weight: 700 }
.tq-nen { fill: var(--tq-xanh); opacity: .12 } .tq-t { fill: none; stroke: var(--tq-xanh); stroke-width: 2.4; stroke-linejoin: round }
.tq-diem { fill: var(--surface); stroke: var(--tq-xanh); stroke-width: 1.8 } .tq-nt { fill: var(--tq-xanh); font-size: 11px; font-weight: 800 }
.tq-bars { display: grid; gap: 9px; padding-top: 6px }
.tq-br { display: grid; grid-template-columns: 104px minmax(0, 1fr) 34px; align-items: center; gap: 8px; font-size: 12px }
.tq-br.click { cursor: pointer } .tq-br.click:hover .n { color: var(--info); text-decoration: underline }
.tq-br .n { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.tq-br .tr { height: 22px; border-radius: 4px; background: var(--soft); overflow: hidden; display: flex }
.tq-br .tr i { display: block; height: 100% }
.tq-br .v { font-weight: 700; font-variant-numeric: tabular-nums }
.tq-bars.nho { gap: 6px } .tq-bars.nho .br, .tq-bars.nho .tq-br { grid-template-columns: 112px minmax(0, 1fr) 34px } .tq-bars.nho .tr { height: 15px; border-radius: 3px }
.tq-ghi { font-size: 11.5px; color: var(--mut); margin-top: 12px }
/* Đơn gần nhất */
.tq-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums }
.tq-tbl th { background: var(--soft); color: var(--mut); font-weight: 700; text-align: left; padding: 8px 7px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 11.5px }
.tq-tbl td { padding: 6px 7px; border-bottom: 1px solid var(--line); white-space: nowrap; height: 33px }
.tq-tbl tr:last-child td { border-bottom: 0 }
.tq-tbl th:first-child, .tq-tbl td:first-child { padding-left: 14px } .tq-tbl th:last-child, .tq-tbl td:last-child { padding-right: 14px }
.tq-tbl .r { text-align: right } .tq-tbl .ma { font-weight: 600 }
.tq-tbl td.kh { max-width: 210px; overflow: hidden; text-overflow: ellipsis }
.tq-tbl tr.click { cursor: pointer } .tq-tbl tr.click:hover td { background: var(--soft) }
.tq-don .tq-ch { padding-bottom: 10px }
.tq-tt { display: inline-block; color: #fff; font-weight: 700; font-size: 11px; border-radius: 6px; padding: 3px 8px; min-width: 104px; text-align: center; white-space: nowrap }
.tq-tt.ct { background: #dc2626 } .tq-tt.gd { background: #e8920b } .tq-tt.kt { background: #c26a06 } .tq-tt.tien { background: #7c3aed } .tq-tt.kho { background: #2563eb }
.tq-tt.hang { background: #0d9488 } .tq-tt.xong { background: #16a34a } .tq-tt.mut { background: #7a7a72 }
.tq-kn { display: inline-block; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px }
.tq-kn.sr { background: #fff1dc; color: #a35b00 } .tq-kn.ol { background: #e3f8ec; color: #11713b }
.tht { font-weight: 600 } .tht.m { font-weight: 500 }
.tq-dons { display: none }
.tq-dthe { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12.5px; cursor: pointer }
.tq-dthe .r { text-align: right } .tq-dthe .tq-tt { min-width: 0; font-size: 10.5px; padding: 2px 7px }
/* Cột phải: việc chờ, phễu bán lẻ */
.tq-phai { display: flex; flex-direction: column; gap: 14px; min-width: 0 }
.tq-cho { padding: 2px 6px 6px; max-height: 340px; overflow: auto }
.tq-li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: 9px; cursor: pointer }
.tq-li + .tq-li { border-top: 1px solid var(--line) } .tq-li:hover { background: var(--soft) }
.tq-li .dot { margin: 0 }
.tq-li b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.tq-li small { display: block; color: var(--mut); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.tq-noi { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px 0; font-weight: 700; font-size: 12.5px }
.tq-noi .m { font-weight: 500 }
.tq-pheu { display: grid; grid-template-columns: 1fr 30px 1fr 30px 1fr 30px 1fr; align-items: center; padding: 6px 14px 4px }
.tq-bc { border-radius: 10px; padding: 7px 4px; text-align: center; color: #3c2f00 }
.tq-bc.b0 { background: #fff1dc } .tq-bc.b1 { background: #ffe6c2 } .tq-bc.b2 { background: #ffd9a3 } .tq-bc.b3 { background: #fcc77b }
.tq-bc b { display: block; font-family: var(--fh); font-size: 20px; font-weight: 800; line-height: 1.1 }
.tq-bc span { display: block; font-size: 10.5px; margin-top: 2px; line-height: 1.25 }
.tq-mt { text-align: center; font-size: 10.5px; color: var(--mut); font-weight: 700 }
.tq-mt .ico { width: 15px; height: 15px; display: block; margin: 0 auto 1px }
.tq-pg { padding: 2px 14px 10px; font-size: 11.5px; color: var(--mut); display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between }
.tq-pg b { color: var(--text) }
/* Tồn kho */
.tq-tons { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; padding: 8px 14px 14px }
.tq-tonc { --c: var(--tq-green); display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 3px 9px; align-items: center; border: 1px solid var(--line); border-radius: 11px; padding: 9px 10px; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, var(--surface)), var(--surface)) }
.tq-tonc:hover { border-color: var(--c) }
.tq-tonc.het { --c: var(--tq-red) } .tq-tonc.sap { --c: var(--tq-orange) } .tq-tonc.cham { --c: var(--tq-slate) }
.tq-tonc .ic { width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center }
.tq-tonc .ic .ico { width: 18px; height: 18px }
.tq-tonc .sl { font-family: var(--fh); font-size: 19px; font-weight: 800; line-height: 1.15 }
.tq-tonc .sl small { font-family: var(--f); font-size: 11px; font-weight: 600; color: var(--mut) }
.tq-tonc .tn, .tq-tonc .kk, .tq-tonc .ng { grid-column: 1 / -1 }
.tq-tonc .tn { font-size: 12px; font-weight: 700; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.tq-tonc .kk { font-size: 11px; color: var(--mut) }
.tq-tonc .ng { font-size: 11px; font-weight: 700; color: var(--c) }
/* Màn laptop: việc chờ + phễu bán lẻ lên ngay dưới ô chỉ số, bảng đơn trải hết chiều ngang; màn lớn (từ 1750px) giữ đúng bố cục mẫu */
@media (max-width: 1750px) {
  .tq { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kpi" "phai" "bd" "don" "ton" }
  .tq.kho { grid-template-areas: "kpi" "phai" "don" "ton" }
  .tq-phai { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); align-items: start }
}
@media (max-width: 1500px) {
  .tq-charts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) }
  .tq-kpis { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) } .tq-kpi { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 12px }
  .tq-kpi .ic { width: 40px; height: 40px } .tq-kpi .ic .ico { width: 21px; height: 21px } .tq-kpi .kv { font-size: 22px }
}
@media (max-width: 1000px) { .side-tt { display: none } .tq-phai { grid-template-columns: minmax(0, 1fr) } }
@media (max-width: 700px) {
  .tq-kpis { grid-template-columns: 1fr 1fr; gap: 10px }
  .tq-kpi { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px }
  .tq-kpi .ic { width: 36px; height: 36px; box-shadow: none } .tq-kpi .ic .ico { width: 20px; height: 20px }
  .tq-kpi .kv { font-size: 21px }
  .tq-charts { grid-template-columns: minmax(0, 1fr) }
  .tq-charts .tq-card { min-height: 0 }
  .tq-donut { grid-template-columns: 132px minmax(0, 1fr) }
  .tq-don .scroll { display: none } .tq-dons { display: block }
  .tq-tons { grid-template-columns: 1fr 1fr }
  .tq-loc .inp { min-width: 0 }
  .tq-pheu { padding: 6px 10px 4px; grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1fr }
}
/* Đơn ngoại lệ: ô đề xuất và lý do gửi Chủ tịch (28/10/2026) */
#lyDoDx.batbuoc textarea { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad) }

/* ===== KCT OS: Việc của tôi (điện thoại), thẻ việc, báo giá ===== */
.h2 { font-family: var(--fh); font-size: 15px; margin: 18px 0 8px }
.do { color: var(--bad) }
.btn.google { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; padding: 11px 14px }
.btn.google:hover { background: #f6f8fa }
.chods { display: grid; gap: 8px; margin-bottom: 14px }
.cho { display: grid; gap: 3px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--yel); border-radius: 10px; padding: 11px 14px; cursor: pointer; color: var(--text); font: inherit }
.cho.gap { border-left-color: var(--bad) }
.cho:hover { border-color: var(--mut) }
.cho b { font-size: 14.5px }
.vds { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-bottom: 14px }
.vthe { display: grid; gap: 5px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: 11px 14px; cursor: pointer }
.vthe:hover { border-color: var(--mut) }
.vthe.moi { border-left-color: var(--info) } .vthe.vuong, .vthe.qh { border-left-color: var(--bad) } .vthe.cho_duyet { border-left-color: var(--warn) } .vthe.xong { border-left-color: var(--good); opacity: .85 }
.vthe .vdau { display: flex; gap: 6px; align-items: center; flex-wrap: wrap }
.vthe .vhan { margin-left: auto }
.vthe .vten { font-size: 14.5px; line-height: 1.35 }
.buoc { display: grid; gap: 6px }
.buoc .chk { align-items: flex-start }
.gach { text-decoration: line-through; color: var(--mut) }
.sao { color: var(--yel-ink); letter-spacing: 1px; white-space: nowrap }
.report.vuong { border-left: 4px solid var(--bad) } .report.duyet { border-left: 4px solid var(--good) } .report.tra_lai { border-left: 4px solid var(--warn) }
.bgdong { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) 80px minmax(0, 1fr) 36px; gap: 6px; margin-bottom: 6px }
.bgin .bgdau { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 3px solid var(--yel); padding-bottom: 8px; margin-bottom: 10px }
.bgin .dk { padding-left: 18px; margin: 8px 0 0 }
.chi-dt { display: none }
@media (max-width: 700px) {
  .chi-may { display: none } .chi-dt { display: grid }
  .vds { grid-template-columns: 1fr }
  .bgdong { grid-template-columns: 1fr 1fr; } .bgdong select { grid-column: span 2 }
}
@media print {
  body { background: #fff } .top, .side, .mf, .khong-in, .mh .x, .toast, .tbbao, .banmoi { display: none !important }
  .modal { position: static !important; transform: none !important; box-shadow: none !important; max-height: none !important; width: 100% !important; border: 0 !important }
  .scrim, #goc { display: none !important } #modal { display: block !important }
}
@media (max-width: 700px) { .tbbao { left: 12px; right: 12px; transform: none; max-width: none; font-size: 13px } .tbbao span { flex: 1 } }
@media (max-width: 700px) { .toast { bottom: calc(78px + env(safe-area-inset-bottom, 0px)) } }
