/* Kim DMP — Cẩm nang quy trình. Tông navy + vàng gold theo "Album Quy Trình Dịch Vụ Da" */
:root {
  --navy: #0E2A47; --navy-deep: #091E36; --navy-soft: #16385C;
  --gold: #C79A2E; --gold-lite: #E6C766;
  --paper: #F3EEE2; --card: #FFFFFF; --ink: #17263A; --muted: #6E7A8C; --line: #E4DFD1;
  --note-bg: #FBF3DD; --note-line: #E4C978;
  --safe-top: env(safe-area-inset-top, 0px);
  --head-h: calc(56px + var(--safe-top));
  --bs-body-font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 14, 42, 71;
  --bs-link-hover-color-rgb: 199, 154, 46;
}
@media (min-width: 992px) { :root { --head-h: calc(64px + var(--safe-top)); } }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: #fff; color: var(--ink); font-size: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1 0 auto; }
a { text-decoration: none; }
.text-gold { color: var(--gold) !important; }

/* ---------- Nút ---------- */
.btn-navy { --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--navy-soft); --bs-btn-hover-border-color: var(--navy-soft); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--navy-deep); --bs-btn-active-color: #fff; --bs-btn-disabled-bg: var(--navy); --bs-btn-disabled-border-color: var(--navy); font-weight: 600; }
.btn-gold { --bs-btn-bg: var(--gold); --bs-btn-border-color: var(--gold); --bs-btn-color: #fff; --bs-btn-hover-bg: #b38823; --bs-btn-hover-border-color: #b38823; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #9d771c; --bs-btn-active-color: #fff; font-weight: 600; }
.btn-outline-navy { --bs-btn-color: var(--navy); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--paper); --bs-btn-hover-color: var(--navy); --bs-btn-hover-border-color: var(--gold); border-style: dashed; font-weight: 600; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1px solid #dadce0; color: #3c4043; font-weight: 600; padding: 10px; }
.btn-google:hover { background: #f8f9fa; border-color: #c6c9cc; color: #202124; }
.btn-fb { display: flex; align-items: center; justify-content: center; gap: 8px; background: #1877F2; border: 1px solid #1877F2; color: #fff; font-weight: 600; padding: 10px; }
.btn-fb:hover { background: #166fe0; color: #fff; }
.btn-fb .bi { font-size: 18px; }
.social { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(199,154,46,.18); }
.form-label { font-weight: 600; font-size: 14px; margin-bottom: 4px; }

/* ---------- HEADER ---------- */
.app-head { position: sticky; top: 0; z-index: 1030; height: var(--head-h); padding-top: var(--safe-top); background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%); box-shadow: 0 2px 14px rgba(9,30,54,.25); }
.app-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-lite)); }
.head-row { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.brand img { mix-blend-mode: screen; border-radius: 8px; width: 40px; height: 40px; }
.brand-txt { display: flex; flex-direction: column; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); line-height: 1.25; }
.brand-txt b { color: var(--gold-lite); font-size: 14px; letter-spacing: .08em; font-weight: 800; }
@media (min-width: 992px) { .brand img { width: 46px; height: 46px; } }

.top-nav { align-items: center; gap: 2px; flex: 1; min-width: 0; }
.tn-link { color: rgba(255,255,255,.78); font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; transition: background .15s, color .15s; }
.tn-link:hover, .tn-link:focus { color: #fff; background: rgba(255,255,255,.07); }
.tn-link.active { color: var(--gold-lite); }
.tn-drop { min-width: 300px; max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(14,42,71,.18); padding: 6px; }
.tn-drop .dropdown-item { border-radius: 8px; padding: 8px 10px; font-weight: 500; white-space: normal; display: flex; align-items: center; gap: 10px; }
.tn-drop .dropdown-item:active { background: var(--navy); }
.tn-drop .tn-all { font-weight: 700; color: var(--navy); }
.dd-num { flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--paper); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 12px; }

.head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ava-btn { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.07); border: 0; color: #fff; padding: 4px 12px 4px 4px; border-radius: 30px; }
.ava-btn:hover { background: rgba(255,255,255,.13); }
.ava-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.ava { border-radius: 50%; object-fit: cover; flex: none; background: var(--paper); }
.ava-txt { display: inline-grid; place-items: center; background: var(--gold); color: #fff; font-weight: 800; }
.ava-link { display: flex; }
.menu-btn { background: transparent; border: 0; color: #fff; font-size: 28px; line-height: 1; padding: 4px; margin-right: -6px; }

/* ---------- Menu sheet (mobile) ---------- */
.menu-sheet.offcanvas-bottom { height: auto; max-height: 86vh; border-radius: 20px 20px 0 0; border: 0; }
.menu-sheet .offcanvas-body { padding: 40px 16px calc(16px + env(safe-area-inset-bottom)); } /* chừa chỗ nút X */
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: #d5d0c2; margin: 10px auto 6px; flex: none; }
.sheet-user { display: flex; align-items: center; gap: 12px; padding: 10px 4px 14px; border-bottom: 1px solid var(--line); color: var(--ink); margin-bottom: 8px; }
.sheet-user span { display: flex; flex-direction: column; }
.sheet-user small { color: var(--muted); }
.sheet-cat { border-bottom: 1px solid var(--line); }
.sheet-cat-btn { width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 14px 4px; font-weight: 700; color: var(--navy); font-size: 16px; text-align: left; }
.sheet-cat-btn > .bi:first-child { width: 34px; height: 34px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; color: var(--gold); font-size: 17px; }
.sheet-cat-btn span { flex: 1; }
.sheet-cat-btn em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.sheet-cat-btn .chev { transition: transform .2s; color: var(--muted); }
.sheet-cat-btn:not(.collapsed) .chev { transform: rotate(180deg); }
.sheet-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 0 14px; }
.sheet-pages a { display: flex; gap: 8px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.sheet-pages a span { flex: none; font-weight: 800; color: var(--gold); font-size: 12.5px; }
.sheet-pages a.on { background: var(--navy); color: #fff; }
.sheet-pages a.sheet-all { grid-column: 1 / -1; justify-content: center; background: none; color: var(--navy); font-weight: 700; }
.sheet-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 14px; }
.sheet-acts a, .sheet-acts button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 600; }

/* ---------- HERO / tiêu đề ---------- */
/* Trang chủ: chữ trái + logo phải (desktop) · logo trái + chữ phải, số liệu 3 cột (mobile). Nền navy + lưới trám vàng mờ (theo logo lưới Kim DMP) */
.hero { position: relative; overflow: hidden; color: #fff; border-radius: 0 0 26px 26px;
  background:
    radial-gradient(42% 90% at 82% 50%, rgba(230,199,102,.20) 0%, rgba(230,199,102,0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cpath d='M17 1 33 17 17 33 1 17Z' fill='none' stroke='%23E6C766' stroke-opacity='.07'/%3E%3C/svg%3E"),
    linear-gradient(115deg, var(--navy-soft) 0%, var(--navy) 42%, var(--navy-deep) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, rgba(199,154,46,0), var(--gold) 20%, var(--gold-lite) 50%, var(--gold) 80%, rgba(199,154,46,0)); }
.hero-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 40px; padding-bottom: 44px; }
.hero-txt { min-width: 0; }
.hero-kick { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-lite); font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero-kick::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: var(--gold); }
.hero h1 { margin: 12px 0 0; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.08; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold-lite), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 12px 0 0; font-size: 16px; color: rgba(255,255,255,.72); }
.hero-stats { list-style: none; display: flex; gap: 12px; margin: 26px 0 0; padding: 0; }
.hero-stats li { display: flex; flex-direction: column; min-width: 128px; padding: 11px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(230,199,102,.22); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.hero-stats b { font-size: 24px; line-height: 1.15; font-weight: 800; color: var(--gold-lite); }
.hero-stats span { font-size: 12.5px; color: rgba(255,255,255,.66); white-space: nowrap; }
.hero-emblem { flex: none; position: relative; width: 236px; height: 236px; border-radius: 50%; display: grid; place-items: center; margin-right: 20px;
  background: radial-gradient(circle, var(--navy-soft) 0%, var(--navy-deep) 100%);
  box-shadow: 0 0 0 1px rgba(230,199,102,.55), 0 0 0 12px rgba(230,199,102,.07), 0 0 0 13px rgba(230,199,102,.22), 0 24px 60px rgba(0,0,0,.35); }
.hero-emblem img { width: 72%; height: auto; mix-blend-mode: screen; }

@media (max-width: 991.98px) {
  .hero-in { gap: 24px; padding-top: 30px; padding-bottom: 34px; }
  .hero-emblem { width: 170px; height: 170px; margin-right: 10px; }
  .hero-stats li { min-width: 0; flex: 1; padding: 10px 14px; }
}
/* Mobile: logo trái + chữ phải, số liệu chia 3 cột (không kéo dài) */
@media (max-width: 575.98px) {
  .hero { border-radius: 0 0 20px 20px; }
  .hero-in { display: grid; grid-template-columns: 76px 1fr; grid-template-areas: "logo h1" "logo p" "stats stats"; column-gap: 14px; row-gap: 3px; padding-top: 18px; padding-bottom: 20px; }
  .hero-txt { display: contents; }
  .hero-kick { display: none; }
  .hero-emblem { grid-area: logo; width: 76px; height: 76px; margin: 0; box-shadow: 0 0 0 1px rgba(230,199,102,.55), 0 0 0 5px rgba(230,199,102,.08), 0 10px 24px rgba(0,0,0,.3); }
  .hero h1 { grid-area: h1; align-self: end; margin: 0; font-size: 22px; }
  .hero p { grid-area: p; align-self: start; margin: 0; font-size: 12.5px; line-height: 1.4; }
  .hero-stats { grid-area: stats; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
  .hero-stats li { padding: 8px 10px; border-radius: 12px; }
  .hero-stats b { font-size: 19px; }
  .hero-stats span { font-size: 11.5px; }
}
/* Ảnh bìa Admin tải lên — khung khoá đúng tỉ lệ chuẩn: máy tính 1920×500, điện thoại 1080×720 */
.hero-cover { position: relative; overflow: hidden; background: var(--navy-deep); border-radius: 0 0 26px 26px; }
.hero-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 500; object-fit: cover; }
.hero-edit { position: absolute; z-index: 2; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(9,30,54,.6); border: 1px solid rgba(230,199,102,.5); color: var(--gold-lite); font-size: 18px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.hero-edit:hover { background: var(--navy); color: #fff; }
@media (min-width: 768px) { .hero-cover.only-mb { display: none; } }
@media (max-width: 767.98px) {
  .hero-cover { border-radius: 0 0 20px 20px; }
  .hero-cover.has-mb img { aspect-ratio: 1080 / 720; }
  .hero.pc-only { display: none; }
  .hero-edit { top: 8px; right: 8px; width: 34px; height: 34px; font-size: 15px; }
}
/* Quản trị → Ảnh bìa */
.cover-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.cover-prev { border-radius: 12px; overflow: hidden; background: var(--paper); border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.cover-prev-pc { aspect-ratio: 1920 / 500; }
.cover-prev-mb { aspect-ratio: 1080 / 720; }
.cover-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-acts { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 767.98px) { .cover-grid { grid-template-columns: 1fr; } .cover-acts .btn { flex: 1; } }

.cat-head, .proc-hero { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: 18px 0 22px; position: relative; }
.proc-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-lite)); }
.cat-head h1, .proc-hero h1 { margin: 4px 0 0; font-size: clamp(19px, 4.4vw, 26px); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.25; }
.cat-head h1 .bi { color: var(--gold-lite); margin-right: 10px; }
.crumb { font-size: 13px; color: rgba(255,255,255,.6); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumb a { color: rgba(255,255,255,.75); }
.crumb a:hover { color: var(--gold-lite); }
.crumb .bi { font-size: 10px; }
.ph-meta { display: flex; gap: 14px; align-items: center; margin-top: 8px; font-size: 13.5px; color: rgba(255,255,255,.7); }
.ph-meta .bi { margin-right: 5px; color: var(--gold-lite); }
.ph-edit { color: var(--gold-lite); font-weight: 600; }

/* ---------- Thẻ trang ---------- */
.home-body { padding-top: 26px; padding-bottom: 20px; }
.home-cat { margin-bottom: 28px; }
.hc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hc-head h2 { margin: 0; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.hc-head h2 .bi { margin-right: 8px; }
.hc-head a { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
@media (max-width: 575.98px) { .card-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.pcard { position: relative; display: flex; align-items: flex-start; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--ink); box-shadow: 0 2px 10px rgba(14,42,71,.05); transition: transform .15s, box-shadow .15s, border-color .15s; min-height: 76px; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(14,42,71,.1); border-color: var(--gold-lite); color: var(--ink); }
.pc-num { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--navy); color: var(--gold-lite); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.pc-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pc-title { font-weight: 700; line-height: 1.3; }
.pc-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.pc-lock { position: absolute; top: 10px; right: 10px; color: var(--gold); font-size: 13px; }
.pcard.locked .pc-title { padding-right: 14px; }
@media (max-width: 575.98px) {
  .pcard { flex-direction: column; gap: 8px; padding: 12px; }
  .pc-num { width: 28px; height: 28px; font-size: 13px; }
  .pc-title { font-size: 14px; }
}
.empty { color: var(--muted); padding: 18px; text-align: center; background: rgba(255,255,255,.5); border: 1px dashed var(--line); border-radius: 12px; }

/* ---------- TRANG QUY TRÌNH: 3 cột ---------- */
.proc-wrap { padding-top: 22px; padding-bottom: 30px; }
.proc-grid { display: block; }
@media (min-width: 992px) {
  .proc-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr) 360px; gap: 22px; } /* cột tự giãn cao → khối sticky bám được */
}
@media (min-width: 1200px) { .proc-grid { grid-template-columns: 250px minmax(0, 1fr) 430px; gap: 26px; } }

.toc-box, .vpanel { position: sticky; top: calc(var(--head-h) + 18px); }
.toc-box { padding: 4px 6px 4px 0; max-height: calc(100vh - var(--head-h) - 40px); overflow: auto; }
.toc-h { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 800; padding: 0 8px 10px; }
.toc-box ol { list-style: none; margin: 0; padding: 0; }
.toc-box a { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 9px; color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.toc-box a span { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 11.5px; }
.toc-box a .bi { margin-left: auto; color: var(--gold); flex: none; }
.toc-box a:hover { background: var(--paper); }
.toc-box a.on { background: var(--navy); color: #fff; }
.toc-box a.on span { background: var(--gold); color: #fff; }


.proc-main { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 2px 10px rgba(14,42,71,.05); overflow: hidden; padding: 6px 0; }
.proc-sum { margin: 14px 22px 0; color: var(--muted); }
.note { margin: 14px 18px 6px; background: var(--note-bg); border: 1px solid var(--note-line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 11px 14px; font-size: 14px; color: #6a531a; }
.note b { color: #4d3b0f; }
.note p { margin: 4px 0 0; }
.note ul { margin: 6px 0 0; padding-left: 18px; }

ol.steps { margin: 4px 0; padding: 4px 0; list-style: none; }
ol.steps > li { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: start; padding: 14px 22px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 16px); }
ol.steps > li:first-child { border-top: none; }
.snum { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--gold-lite); display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-top: 1px; }
.stext { min-width: 0; font-size: 15.5px; }
.stext .lead-t { font-weight: 700; }
.stext p { margin: 3px 0 0; }
.stext .k { color: var(--navy); font-weight: 700; }
.stext .hi { color: #8a6d16; font-weight: 700; }
.stext ul { margin: 6px 0 0; padding-left: 6px; list-style: none; }
.stext ul li { position: relative; padding-left: 18px; margin: 3px 0; }
.stext ul li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@media (max-width: 480px) {
  ol.steps > li { grid-template-columns: 28px 1fr auto; gap: 11px; padding: 13px 15px; }
  .snum { width: 26px; height: 26px; font-size: 13px; }
  .note { margin-left: 12px; margin-right: 12px; }
}

.vbtn { flex: none; width: 38px; height: 38px; display: grid; place-items: center; padding: 0 0 0 2px; border-radius: 50%; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); transition: background .15s, color .15s; }
.vbtn .bi { font-size: 20px; line-height: 1; }
.vbtn:hover { background: var(--navy); color: #fff; }
.vbtn.playing { background: var(--gold); border-color: var(--gold); color: #fff; }

.vpanel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 18px rgba(14,42,71,.07); }
.vp-empty { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13.5px; background: repeating-linear-gradient(135deg, #fbf8f1 0 12px, #f6f1e4 12px 24px); text-align: center; padding: 16px; }
.vp-empty .bi { font-size: 38px; color: var(--gold); }
.vp-head, .vm-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; }
.vp-head span, .vm-head span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-x { background: rgba(255,255,255,.12); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.vp-x:hover { background: rgba(255,255,255,.22); }
.vmodal { background: #000; }
.vm-head { padding-top: calc(10px + env(safe-area-inset-top)); }
.vm-body { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }

.pager { display: flex; justify-content: space-between; gap: 10px; padding: 16px 18px 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.pager a { display: flex; flex-direction: column; max-width: 48%; color: var(--navy); font-weight: 700; font-size: 14px; line-height: 1.3; }
.pager a small { color: var(--muted); font-weight: 600; font-size: 12px; margin-bottom: 2px; }
.pager a.nx { text-align: right; margin-left: auto; }

/* ---------- Đăng nhập / hồ sơ ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 34px 16px; }
.auth-card { width: 100%; max-width: 430px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; box-shadow: 0 8px 28px rgba(14,42,71,.08); }
.auth-card h1 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-alt { text-align: center; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.auth-alt a { font-weight: 700; }

.box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 2px 10px rgba(14,42,71,.04); }
.box-h { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 800; margin-bottom: 14px; }
.ava-edit { position: relative; display: inline-block; cursor: pointer; }
.ava-edit .ava { border: 3px solid #fff; box-shadow: 0 4px 16px rgba(14,42,71,.15); }
.ava-cam { position: absolute; right: 2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold-lite); display: grid; place-items: center; border: 2px solid #fff; }

.err-box { max-width: 480px; }
.err-code { font-size: 64px; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 8px; }

.app-foot { text-align: center; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; }
.fmark { color: var(--gold); font-weight: 800; letter-spacing: .06em; }

/* ---------- QUẢN TRỊ ---------- */
.adm-tabs { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; }
.adm-tabs a { display: flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 30px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; white-space: nowrap; }
.adm-tabs a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.adm-cat { margin-bottom: 16px; }
.adm-cat-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.adm-cat-h h2 { font-size: 16px; font-weight: 800; color: var(--navy); margin: 0; }
.adm-cat-h h2 .bi { color: var(--gold); margin-right: 8px; }
.adm-cat-h em { font-style: normal; color: var(--muted); font-size: 13px; font-weight: 600; }
.adm-list { list-style: none; margin: 0; padding: 0; }
.adm-list > li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); background: #fff; }
.adm-list > li:first-child { border-top: 0; }
.adm-list > li.sortable-ghost { opacity: .4; }
.grip { cursor: grab; color: #b5b0a2; font-size: 18px; touch-action: none; }
.al-title { flex: 1; min-width: 0; color: var(--ink); font-weight: 600; display: flex; flex-direction: column; }
.al-title small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.al-ic { color: var(--muted); padding: 4px; }
.pub-toggle { border: 0; border-radius: 30px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; background: #ebe6d9; color: var(--muted); white-space: nowrap; }
.pub-toggle.on { background: #dff3e6; color: #1d7a45; }

.pf-bar { position: sticky; top: var(--head-h); z-index: 1010; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); padding: 10px 0; margin-bottom: 12px; }
.fmt-hint { font-size: 12px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.step-edit { list-style: none; margin: 0 0 12px; padding: 0; }
.se-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; background: #fdfcf8; }
.se-item.sortable-ghost { opacity: .4; }
.se-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.se-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--gold-lite); display: grid; place-items: center; font-weight: 800; font-size: 12.5px; }
.se-title { font-weight: 600; }
.ne-item { border-left: 3px solid var(--gold); background: var(--note-bg); border-radius: 8px; padding: 8px; margin-bottom: 8px; }
textarea.form-control { resize: vertical; min-height: 40px; }

.cat-form { flex: 1; display: grid; grid-template-columns: 34px 1.4fr 1fr 1fr auto auto; gap: 8px; align-items: center; }
.cat-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--paper); display: grid; place-items: center; color: var(--gold); }
.cat-new { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); grid-template-columns: 34px 1.4fr 1fr 1fr auto; }
@media (max-width: 767.98px) {
  .cat-form, .cat-new { grid-template-columns: 34px 1fr 1fr; }
  .cat-form > input[name="icon"], .cat-form > span.text-muted { display: none; }
}

.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
@media (max-width: 575.98px) { .user-grid { grid-template-columns: 1fr; } }
.ucard { padding: 14px; }
.ucard.locked { opacity: .6; }
.uc-top { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.uc-id { min-width: 0; display: flex; flex-direction: column; }
.uc-id small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.uc-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.uc-ctl input { grid-column: 1 / 2; }

/* ---------- TRÌNH PHÁT VIDEO (chặn bấm sang YouTube) ---------- */
.kp { background: #000; color: #fff; user-select: none; -webkit-user-select: none; }
.kp { display: flex; flex-direction: column; align-items: center; }
.kp-stage { position: relative; aspect-ratio: var(--ar, 1.7778); width: min(100%, calc(var(--kp-max-h, 100vh) * var(--ar, 1.7778))); overflow: hidden; background: #000; }
.kp-bar { align-self: stretch; }
#vpFrame .kp { --kp-max-h: calc(100vh - var(--head-h) - 18px - 52px - 56px - 24px); }
.vmodal .kp { --kp-max-h: calc(100dvh - 64px - 56px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
.vmodal .kp-bar { padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
.kp-yt, .kp-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kp-shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kp-cover { position: absolute; inset: 0; z-index: 3; border: 0; display: none; align-items: center; justify-content: center; background: rgba(9,30,54,.72); color: #fff; }
.kp-cover i { width: 68px; height: 68px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-size: 34px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.kp:not(.is-playing):not(.is-loading) .kp-cover { display: flex; }
.kp.is-ended .kp-cover { background: var(--navy-deep); } /* che kín màn video đề xuất cuối video */
.kp-load { position: absolute; inset: 0; z-index: 3; display: none; place-items: center; pointer-events: none; color: var(--gold-lite); }
.kp.is-loading .kp-load { display: grid; }
.kp-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--navy-deep); }
.kp-btn { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 20px; display: grid; place-items: center; }
.kp-btn:hover { background: rgba(255,255,255,.12); }
.kp-time, .kp-dur { flex: none; font-size: 12.5px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.8); }
.kp-seek { flex: 1; min-width: 0; accent-color: var(--gold); height: 28px; cursor: pointer; }
.kp.is-muted .kp-mute { color: var(--gold-lite); }
.kp:fullscreen { display: flex; flex-direction: column; }
.kp:fullscreen .kp-stage { flex: 1; aspect-ratio: auto; width: 100%; }
.vm-body > div { width: 100%; }

/* ---------- Menu sheet: nút đóng · Cài app (PWA) ---------- */
.sheet-x { position: absolute; top: 8px; right: 10px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); color: var(--navy); font-size: 18px; display: grid; place-items: center; }
.sheet-x:hover { background: var(--line); }
.sheet-install { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1.5px dashed var(--gold); border-radius: 14px; background: var(--note-bg); color: var(--navy); text-align: left; }
.sheet-install > .bi:first-child { font-size: 22px; color: var(--gold); }
.sheet-install span { display: flex; flex-direction: column; line-height: 1.3; }
.sheet-install small { color: var(--muted); }
.ios-guide { position: relative; border: 0; border-radius: 20px; padding: 26px 22px 20px; text-align: center; }
.ios-guide img { border-radius: 14px; margin: 0 auto 10px; }
.ios-guide h2 { font-size: 19px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.ios-guide ol { text-align: left; margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.ios-guide .bi { color: #007aff; font-size: 18px; vertical-align: -2px; }

/* ---------- MOBILE-FIRST / iPhone: chạm bằng ngón tay ---------- */
/* Ô nhập < 16px → Safari iOS tự phóng to cả trang khi chạm */
@media (max-width: 991.98px), (pointer: coarse) {
  .form-control, .form-control-sm, .form-select, .form-select-sm, .input-group-text,
  .input-group-sm > .form-control, .input-group-sm > .input-group-text { font-size: 16px; }
  .form-control-sm, .form-select-sm { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
  /* Vùng bấm tối thiểu 44px */
  .vbtn { width: 44px; height: 44px; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .vp-x { width: 44px; height: 44px; }
  .kp-btn { width: 44px; height: 44px; }
  .pub-toggle { min-height: 44px; padding: 8px 14px; }
  .grip { font-size: 22px; padding: 10px 4px; }
  .al-ic { padding: 12px; }
  .se-num { width: 30px; height: 30px; }
  .pager a { min-height: 44px; justify-content: center; }
}
/* Mục lục: bước đang phát video */
.toc-box a.playing .bi { color: var(--gold-lite); }
.toc-box a.playing::after { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-lite); margin: 6px 0 0 4px; animation: kp-pulse 1.2s infinite; }
@keyframes kp-pulse { 50% { opacity: .25; } }
/* Ô mật khẩu: nút hiện / ẩn */
.pw-wrap { position: relative; }
.pw-wrap > .form-control { padding-right: 52px; }
.pw-eye { position: absolute; top: 0; right: 0; height: 100%; min-height: 44px; width: 48px; border: 0; background: transparent; color: var(--muted); font-size: 19px; display: grid; place-items: center; }
.pw-eye:hover { color: var(--navy); }
/* Trang pháp lý + link chân trang */
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.foot-links a { color: var(--muted); font-size: 12.5px; min-height: 32px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--navy); }
.legal { max-width: 820px; }
.legal-nav { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.legal-nav a { flex: none; padding: 9px 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 30px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: 14px; }
.legal-nav a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.legal article { padding: 22px 20px; }
.legal h1 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 2px; }
.legal .upd { color: var(--muted); font-size: 13px; }
.legal h2 { font-size: 16px; font-weight: 800; color: var(--navy); margin: 22px 0 8px; }
.legal ul, .legal ol { padding-left: 20px; }
.legal li { margin: 4px 0; }

/* ---------- HIỆU ỨNG GƯƠNG cho card: mặt bóng + vệt sáng lướt khi rê chuột (chỉ desktop; mobile bố bỏ 2026-10-01) ---------- */
.pcard, .box, .auth-card, .proc-main {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #fff 0%, #fff 55%, #faf6ec 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 10px rgba(14,42,71,.06);
}
.pcard::after, .box::after, .auth-card::after, .proc-main::after {
  content: ""; position: absolute; inset: -20% -60%; pointer-events: none; z-index: 1;
  background: linear-gradient(115deg, transparent 36%, rgba(230,199,102,.10) 42%, rgba(255,255,255,.9) 46%, rgba(230,199,102,.42) 50%, rgba(255,255,255,.9) 54%, rgba(230,199,102,.10) 58%, transparent 64%);
  transform: translateX(-75%);
}
@media (hover: hover) {
  .pcard:hover::after, .box:hover::after, .auth-card:hover::after { transform: translateX(75%); transition: transform .9s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard::after, .box::after, .auth-card::after, .proc-main::after { display: none; }
}
/* Ảnh đại diện quy trình trên thẻ */
.pc-thumb { flex: none; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--paper); position: relative; z-index: 0; }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard.has-thumb { align-items: center; padding: 12px; }
@media (max-width: 575.98px) {
  /* Mobile: thẻ 2 cột — ảnh tràn ngang phía trên */
  .pcard.has-thumb { padding: 0; align-items: stretch; gap: 0; }
  .pcard.has-thumb .pc-thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
  .pcard.has-thumb .pc-body { padding: 10px 12px 12px; }
  .pcard.has-thumb .pc-lock { top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; z-index: 2; }
}
/* Form quản trị: chọn ảnh đại diện */
.thumb-edit { display: flex; align-items: center; gap: 14px; }
.thumb-pick { position: relative; flex: none; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: var(--paper); border: 1.5px dashed var(--line); cursor: pointer; }
.thumb-pick img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 30px; }
.thumb-cam { position: absolute; right: 4px; bottom: 4px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--gold-lite); display: grid; place-items: center; font-size: 14px; border: 2px solid #fff; }
.thumb-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.thumb-meta small { color: var(--muted); }
.thumb-del { font-size: 13.5px; color: #b42318; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; min-height: 32px; cursor: pointer; }
/* Nút thêm quy trình (chỉ Admin / Quản trị viên thấy) */
.cat-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hc-acts { display: flex; align-items: center; gap: 16px; }
.hc-acts a { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.hc-acts .hc-add { color: var(--gold); }
.pcard-add { justify-content: center; align-items: center; flex-direction: row; gap: 8px; border: 1.5px dashed var(--gold); background: var(--note-bg); color: var(--navy); font-weight: 700; min-height: 76px; box-shadow: none; }
.pcard-add .bi { font-size: 20px; color: var(--gold); }
@media (max-width: 575.98px) { .pcard-add { flex-direction: column; min-height: 140px; } }
.tn-drop .tn-add { color: var(--gold); font-weight: 700; }
.sheet-pages a.sheet-add { grid-column: 1 / -1; justify-content: center; background: var(--note-bg); border: 1.5px dashed var(--gold); color: var(--navy); font-weight: 700; }
.sheet-pages a.sheet-add .bi { color: var(--gold); }
/* ---------- Phân quyền theo module (mobile-first) ---------- */
.perm-roles { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; align-items: center; }
.perm-roles::-webkit-scrollbar { display: none; }
.perm-roles a { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 30px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: 14px; }
.perm-roles a.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.perm-admin { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; min-height: 44px; border-radius: 30px; background: var(--navy); color: var(--gold-lite); font-size: 13px; font-weight: 700; }
.perm-list { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 992px) { .perm-list { grid-template-columns: 1fr 1fr; } }
.perm-row { padding: 14px; }
.perm-cat { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.perm-cat .bi { width: 34px; height: 34px; border-radius: 10px; background: var(--paper); color: var(--gold); display: grid; place-items: center; font-size: 17px; }
.perm-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.perm-chip { position: relative; margin: 0; }
.perm-chip input { position: absolute; opacity: 0; pointer-events: none; }
.perm-chip span { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; user-select: none; transition: background .15s, color .15s, border-color .15s; }
.perm-chip span .bi { display: none; }
.perm-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.perm-chip input:checked + span .bi { display: inline; color: var(--gold-lite); }
.perm-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.perm-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.perm-who { font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.perm-who .bi { color: var(--gold); }
.al-del { background: none; border: 0; color: #b42318; }
@media (max-width: 991.98px), (pointer: coarse) { .thumb-del { min-height: 44px; font-size: 15px; } }
/* ---------- Ô "Hiển thị": Công khai / Cần đăng nhập / Nhân viên / Nháp ---------- */
.st-select { width: auto; min-width: 170px; font-weight: 700; border-width: 1.5px; border-radius: 30px; padding-left: 14px; cursor: pointer; }
.st-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 30px; font-size: 13px; font-weight: 700; white-space: nowrap; border: 1.5px solid; }
.st-public { background-color: #e5f6ec; border-color: #9fd8b5; color: #1d7a45; }
.st-member { background-color: var(--note-bg); border-color: var(--note-line); color: #8a6d16; }
.st-staff  { background-color: #e8eef6; border-color: #b6c6dc; color: var(--navy); }
.st-draft  { background-color: #efede7; border-color: #d5d0c2; color: var(--muted); }
.st-select:focus { box-shadow: 0 0 0 .2rem rgba(199,154,46,.18); }
@media (max-width: 575.98px) {
  /* Mobile: tên quy trình 1 dòng riêng, ô Hiển thị + nút thao tác xuống dòng dưới */
  .adm-list > li { flex-wrap: wrap; row-gap: 6px; }
  .adm-list > li > .al-title { flex: 1 1 calc(100% - 40px); }
  .adm-list > li > .st-form { margin-left: 30px; flex: 1 1 auto; }
  .st-select { min-width: 0; width: 100%; }
}
/* ---------- Video mobile: mở là kín màn hình (YouTube tự canh video dọc/ngang trong khung) ---------- */
.vmodal .modal-body, .vmodal .vm-body { padding: 0; }
.vm-body { align-items: stretch; }
.vm-body > #vmFrame { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.vmodal .kp { flex: 1; min-height: 0; height: 100%; }
.vmodal .kp-stage { flex: 1; width: 100%; aspect-ratio: auto; min-height: 0; }
/* Nút phóng to trên iPhone: phủ kín màn hình, che cả thanh tiêu đề */
.kp.kp-pseudo { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; background: #000; padding-top: env(safe-area-inset-top); }
.kp.kp-pseudo .kp-stage { flex: 1; width: 100%; aspect-ratio: auto; min-height: 0; }
.kp.kp-pseudo .kp-bar { padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
body.kp-lock { overflow: hidden; }
/* Menu ngang: 1200–1399px thu gọn cho đủ chỗ (logo = về trang chủ, avatar không kèm tên) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .top-nav .tn-home { display: none; }
  .tn-link { padding: 8px 9px; font-size: 14px; }
  .ava-name { display: none; }
  .ava-btn { padding: 4px 8px 4px 4px; }
  .head-row { gap: 12px; }
}
/* ---------- Link / nút / đường kẻ trong nội dung bước ---------- */
.stext a.lnk, .note a.lnk { color: #1a5fb4; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.stext a.lnk .bi, .note a.lnk .bi { font-size: .8em; margin-left: 3px; text-decoration: none; display: inline-block; }
.stext a.lbtn, .note a.lbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; margin: 6px 6px 2px 0; border-radius: 12px; background: var(--gold); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 3px 10px rgba(199,154,46,.3); }
.stext a.lbtn:hover, .note a.lbtn:hover { background: #b38823; color: #fff; }
.stext a.lbtn .bi, .note a.lbtn .bi { font-size: .9em; }
.stext hr.sep, .note hr.sep { border: 0; border-top: 1px dashed var(--line); margin: 10px 0; opacity: 1; }
.stext ul li.sub { margin-left: 18px; }
.stext ul li.sub::before { background: transparent; border: 1.5px solid var(--gold); }
/* Form soạn: nút chèn link / nút */
.se-tools { display: flex; gap: 6px; margin-bottom: 6px; }
.se-tools button { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 13px; font-weight: 600; }
.se-tools button:hover { border-color: var(--gold); }
.se-tools .bi { color: var(--gold); font-size: 15px; }
@media (max-width: 991.98px), (pointer: coarse) { .se-tools button { min-height: 44px; font-size: 14px; } }
@media (max-width: 575.98px) {
  .box > .d-flex:has(> .fmt-hint) { flex-wrap: wrap; row-gap: 4px; }
  .fmt-hint { flex-basis: 100%; }
}

/* ---------- TRÀN VIỀN: mọi trang dùng hết chiều ngang (bố chốt 2026-10-05) ---------- */
:root { --gx: 16px; }
@media (max-width: 575.98px) { :root { --gx: 10px; } }
.container, .container-xl { max-width: none; padding-left: var(--gx); padding-right: var(--gx); }
.legal { max-width: none; }
/* Màn rất rộng: nới cột mục lục + video để cột nội dung không quá dài */
@media (min-width: 1600px) { .proc-grid { grid-template-columns: 280px minmax(0, 1fr) 520px; gap: 28px; } }
@media (min-width: 2200px) { .proc-grid { grid-template-columns: 320px minmax(0, 1fr) 640px; } }
/* Điện thoại: khung các bước tràn sát 2 mép, bỏ bo góc */
@media (max-width: 575.98px) {
  .proc-wrap { padding-left: 0; padding-right: 0; padding-top: 0; }
  .proc-main { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
}
/* ---------- Nút video = ảnh thumbnail (bố chốt 2026-10-05) ---------- */
.vbtn.vthumb { position: relative; padding: 0; overflow: hidden; border-radius: 10px; border: 2px solid var(--line); background: #000; display: block; box-shadow: 0 2px 8px rgba(14,42,71,.12); transition: border-color .15s, transform .15s; }
.vbtn.vthumb.v-land { width: 128px; height: 72px; }
.vbtn.vthumb.v-port { width: 64px; height: 100px; }
.vbtn.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }   /* video dọc: cắt lấy phần hình thật ở giữa */
.vbtn.vthumb .bi { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(9,30,54,.72); color: #fff; font-size: 20px; display: grid; place-items: center; padding-left: 2px; }
.vbtn.vthumb:hover { border-color: var(--gold); transform: translateY(-1px); background: #000; }
.vbtn.vthumb.playing { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,46,.35); }
.vbtn.vthumb.playing .bi { background: var(--gold); }
@media (max-width: 575.98px) {
  .vbtn.vthumb.v-land { width: 96px; height: 54px; }
  .vbtn.vthumb.v-port { width: 56px; height: 88px; }
  .vbtn.vthumb .bi { width: 30px; height: 30px; font-size: 18px; }
}
/* Chữ trong các bước + ghi chú: căn đều 2 bên (bố chốt 2026-10-05) */
.stext, .stext p, .stext li, .note, .proc-sum { text-align: justify; text-justify: inter-word; }
.stext .lead-t { text-align: left; }
/* ---------- Bước = Hàng tiêu đề (Số | Tên | Video) + Nội dung 1 cột tràn khung (bố chốt 2026-10-05) ---------- */
ol.steps > li { display: block; }
.st-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.st-head .snum { margin-top: 0; }
.st-title { font-size: 16.5px; line-height: 1.4; text-align: left; }
.st-title .lead-t { font-weight: 700; color: var(--navy); }
.st-title p { margin: 0; }
.st-body { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.st-body > p:first-child, .st-body > ul:first-child { margin-top: 0; }
@media (max-width: 480px) {
  .st-head { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 11px; }
  .st-title { font-size: 16px; }
}
/* Tên bước (hàng tiêu đề, cột hẹp): luôn căn trái — không giãn chữ */
.st-head .st-title, .st-head .st-title * { text-align: left; text-justify: auto; }
/* ---------- Khối "không đánh số" (giới thiệu / mô tả) ---------- */
.st-head.no-num { grid-template-columns: minmax(0, 1fr) auto; }
.st-body.no-head { margin-top: 0; padding-top: 0; border-top: 0; }
.toc-box a.toc-free span { background: transparent; }
.toc-box a.toc-free span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
/* ---------- Ảnh trong nội dung bước ---------- */
.st-imgs { display: grid; gap: 12px; margin: 12px 0; grid-template-columns: 1fr; }
.st-imgs.n2 { grid-template-columns: 1fr 1fr; }
.st-imgs.n3 { grid-template-columns: repeat(3, 1fr); }
/* Khung ảnh: viền + bóng nhẹ, hiện TRỌN ảnh (không cắt) — bấm để phóng to */
.st-img { width: 100%; height: auto; display: block; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(14,42,71,.06); cursor: zoom-in; transition: border-color .15s, box-shadow .15s; }
.st-img:hover { border-color: var(--gold); box-shadow: 0 6px 18px rgba(14,42,71,.12); }
.st-imgs.n1 .st-img { max-height: 70vh; width: auto; max-width: 100%; }
.st-imgs.n2 .st-img, .st-imgs.n3 .st-img { aspect-ratio: 4 / 3; object-fit: contain; background: #f6f7f9; }
@media (max-width: 575.98px) {
  .st-imgs.n3 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .st-imgs.n3 .st-img:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; } /* ảnh lẻ cuối → trải ngang */
}
.img-modal { background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; }
.img-modal img { max-width: 100%; max-height: 100%; object-fit: contain; }
.img-x { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 2; width: 44px; height: 44px; }
/* ---------- Form soạn: ô "Không đánh số" + bước không số ---------- */
.se-tools { flex-wrap: wrap; align-items: center; }
.se-nonum { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; min-height: 36px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.se-nonum input { width: 18px; height: 18px; accent-color: var(--navy); }
.se-item.se-free { background: var(--note-bg); }
.se-item.se-free .se-num { background: var(--muted); }
@media (max-width: 991.98px), (pointer: coarse) { .se-nonum { min-height: 44px; font-size: 14px; } }
/* Mô tả ngắn đầu trang: nhiều dòng, định dạng như nội dung bước */
.proc-sum { color: var(--ink); }
.proc-sum > p:first-child { margin-top: 0; }
/* ---------- Thu gọn / mở rộng mô tả dài ---------- */
.clampable:not(.is-open) { max-height: var(--clamp-h, 190px); overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent); }
.more-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 2px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 700; font-size: 14px; }
.more-btn:hover { border-color: var(--gold); }
.more-btn .bi { color: var(--gold); }
.proc-sum + .more-btn { margin-left: 22px; }
@media (max-width: 480px) { .proc-sum + .more-btn { margin-left: 12px; } }
.ph-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; font-weight: 600; font-size: 13.5px; }
.ph-toggle .bi { color: var(--gold-lite); }
.ph-toggle:hover { background: rgba(255,255,255,.14); }
@media (max-width: 991.98px), (pointer: coarse) { .ph-toggle { min-height: 44px; } }
/* Nút "Xem thêm / Thu gọn": chữ nhỏ tinh tế, không khung (vùng chạm vẫn đủ rộng nhờ đệm trong suốt) */
.more-btn { min-height: 0; margin: 0; padding: 6px 2px; border: 0; border-radius: 0; background: none; color: #a07c1f; font-size: 13px; font-weight: 600; letter-spacing: .01em; gap: 3px; }
.more-btn:hover { color: var(--navy); border: 0; }
.more-btn .bi { font-size: 11px; color: inherit; }
@media (pointer: coarse) { .more-btn { padding: 10px 4px 10px 2px; margin: -4px 0; } }
/* ---------- Ô copy (``` ... ```) ---------- */
.copybox { position: relative; margin: 10px 0; border: 1px solid #d9dfe8; border-radius: 12px; background: #f6f8fb; overflow: hidden; }
.copybox pre { margin: 0; padding: 14px 16px 14px; padding-right: 16px; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.6; color: #1f2d3d; text-align: left; }
.copy-btn { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 11px; border: 1px solid #d9dfe8; border-radius: 8px; background: #fff; color: var(--navy); font-size: 12.5px; font-weight: 700; box-shadow: 0 1px 3px rgba(14,42,71,.08); }
.copy-btn:hover { border-color: var(--gold); }
.copy-btn.done { background: #e5f6ec; border-color: #9fd8b5; color: #1d7a45; }
.copybox pre { padding-top: 46px; } /* chừa chỗ nút ở góc trên phải */
@media (pointer: coarse) { .copy-btn { min-height: 40px; padding: 0 14px; font-size: 13.5px; } .copybox pre { padding-top: 54px; } }
/* Mobile: bỏ nút "Mở rộng tất cả" ở đầu trang (bố chốt 2026-10-05) */
@media (max-width: 991.98px) { #toggleAll { display: none !important; } }
/* Ô copy: thanh mảnh ở đầu khung (nhãn trái · nút phải) thay cho nút nổi chiếm chỗ */
.copy-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 4px 14px; background: #eef2f7; border-bottom: 1px solid #d9dfe8; }
.copy-lb { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.copy-lb .bi { color: var(--gold); font-size: 14px; }
.copybox .copy-btn { position: static; min-height: 32px; box-shadow: none; }
.copybox pre { padding: 12px 14px; }
@media (pointer: coarse) { .copybox .copy-btn { min-height: 40px; } .copybox pre { padding: 12px 14px; } }
/* ---------- Thẻ file đính kèm (tải về) ---------- */
.filecards { display: grid; gap: 8px; margin: 10px 0; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.filecard { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none !important; text-align: left; transition: border-color .15s, box-shadow .15s; }
.filecard:hover { border-color: var(--gold); box-shadow: 0 3px 10px rgba(14,42,71,.08); color: var(--ink); }
.fc-ic { flex: none; font-size: 28px; color: var(--navy); }
.fc-ic.bi-file-earmark-pdf { color: #c0392b; } .fc-ic.bi-file-earmark-word { color: #2b579a; } .fc-ic.bi-file-earmark-excel, .fc-ic.bi-file-earmark-spreadsheet { color: #1d7a45; } .fc-ic.bi-file-earmark-ppt { color: #c55a11; }
.fc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.fc-txt b { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.fc-txt small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.fc-dl { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; }
@media (max-width: 575.98px) { .filecards { grid-template-columns: 1fr; } .fc-dl { padding: 0 10px; } }
@media (pointer: coarse) { .fc-dl { min-height: 40px; } }

/* ---------- Nút Xoay: video ngang, điện thoại cầm dọc ---------- */
.kp-rot { display: none; }
@media (pointer: coarse) and (orientation: portrait) {
  .kp.kp-land .kp-rot { display: inline-flex; }
  .kp.kp-pseudo.kp-rot-on { inset: auto; top: 0; left: 100vw; width: 100vh; width: 100dvh; height: 100vw; transform-origin: top left; transform: rotate(90deg); padding: 0 env(safe-area-inset-bottom, 0px) 0 env(safe-area-inset-top, 0px); }
  .kp.kp-pseudo.kp-rot-on .kp-bar { padding-bottom: 6px; }
}
.kp-rot-on .kp-rot { color: var(--gold); }
/* ---------- Mỗi bước / bài học = 1 thẻ riêng, cách nhau 1 khoảng (bố chốt 2026-10-05) ---------- */
.proc-main { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; padding: 0; }
.proc-main::after { display: none; }
.proc-sum { margin: 0 4px 14px; }
.proc-sum + .more-btn { margin: -8px 0 10px 4px; }
.proc-main > .note { margin: 0 0 14px; }
ol.steps { margin: 0; padding: 0; }
ol.steps > li, ol.steps > li:first-child { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(150deg, #fff 0%, #fff 60%, #faf6ec 100%); box-shadow: 0 2px 10px rgba(14,42,71,.06); padding: 16px 22px; }
ol.steps > li:last-child { margin-bottom: 0; }
@media (max-width: 575.98px) {
  /* iPhone: vẫn tràn viền — các bước ngăn nhau bằng dải nền xám nhạt */
  .proc-sum { margin: 12px 12px 12px; }
  .proc-sum + .more-btn { margin: -6px 0 8px 12px; }
  .proc-main > .note { margin: 0 12px 12px; }
  .proc-main > .note:first-child { margin-top: 12px; }
  ol.steps { background: #eef1f5; padding: 10px 0; }
  ol.steps > li, ol.steps > li:first-child { margin-bottom: 10px; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; padding: 14px 15px; }
}

/* YouTube chặn phát (xác minh robot / lỗi): bỏ lớp chắn để người xem bấm được nút của YouTube */
.kp.kp-blocked .kp-shield, .kp.kp-blocked .kp-cover, .kp.kp-blocked .kp-load { display: none !important; }

/* Nhắc bật tiếng khi trình duyệt chặn tự phát có tiếng */
.kp-sound { position: absolute; left: 12px; top: 12px; z-index: 4; display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: var(--gold); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.35); animation: kpPulse 1.6s ease-in-out infinite; }
.kp-sound .bi { font-size: 18px; }
.kp.need-sound .kp-sound { display: inline-flex; }
.kp.need-sound .kp-mute { color: var(--gold); }
@keyframes kpPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .kp-sound { animation: none; } }
/* Bấm tên bước / số thứ tự → mở video (chỉ bước có video) */
.st-head:has(.vbtn) .st-title, .st-head:has(.vbtn) .snum { cursor: pointer; }
@media (hover: hover) { .st-head:has(.vbtn) .st-title:hover, .st-head:has(.vbtn) .st-title:hover .lead-t { color: #a07c1f; } }
/* Menu: ảnh đại diện quy trình (vuông bo góc) thay số thứ tự — chưa có ảnh thì giữ số */
.nav-th { flex: none; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--paper); border: 1px solid var(--line); }
.sheet-pages a { align-items: center; }
.sheet-pages .nav-th { width: 36px; height: 36px; }
.tn-drop .dd-num { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; }
.sheet-pages a > span:first-child { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.sheet-pages a.on > span:first-child { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }

/* ---------- ẢNH KHÁCH HÀNG (06/11/2026) ---------- */
.ak-tim { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ak-tim > .bi { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.ak-tim .form-control { max-width: 360px; padding-left: 38px; border-radius: 10px; }
.ak-dem { color: var(--muted); font-size: 14px; white-space: nowrap; }
.ak-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ak-album { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 10px; color: var(--ink); box-shadow: 0 2px 10px rgba(14,42,71,.05); transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0; }
.ak-album > a { display: flex; flex-direction: column; gap: 2px; color: var(--ink); min-width: 0; }
.ak-album:hover { color: var(--ink); border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(14,42,71,.1); }
.ak-bia { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper); margin-bottom: 6px; }
.ak-bia img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-bia em { position: absolute; right: 6px; bottom: 6px; font-style: normal; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(9,30,54,.72); padding: 2px 8px; border-radius: 999px; display: flex; gap: 4px; align-items: center; }
.ak-album b { font-size: 15px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ak-album small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-trang { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 20px 0 6px; font-weight: 600; }
.ak-trang a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); }
.ak-ten { text-transform: none !important; }
.ak-meta { color: rgba(255,255,255,.72); font-size: 14px; margin-top: 4px; }
.ak-buoi { margin-bottom: 22px; }
.ak-buoi h2 { font-size: 15px; font-weight: 700; color: var(--navy); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.ak-buoi h2 span { color: var(--gold); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 800; }
.ak-buoi h2 em { font-style: normal; font-weight: 500; color: var(--muted); }
.ak-buoi h2 small { margin-left: auto; color: var(--muted); font-weight: 600; }
.ak-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ak-o { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--paper); cursor: zoom-in; }
.ak-o img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.ak-o:hover img { transform: scale(1.03); }
.ak-tag { position: absolute; left: 6px; top: 6px; font-style: normal; font-size: 11.5px; font-weight: 700; color: #fff; padding: 1px 8px; border-radius: 999px; background: rgba(9,30,54,.72); }
.ak-tag.ak-after { background: rgba(199,154,46,.92); }
.ak-khoa img { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ak-lb { position: fixed; inset: 0; z-index: 1060; background: rgba(0,0,0,.95); display: flex; align-items: center; justify-content: center; }
.ak-lb[hidden], .ak-lb-wait[hidden] { display: none; }
.ak-lb > img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .15s; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ak-lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: calc(10px + var(--safe-top)) 14px 10px; color: #fff; font-weight: 600; font-size: 14px; z-index: 2; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.ak-lb-acts { display: flex; gap: 10px; }
.ak-lb-acts .vp-x { width: 40px; height: 40px; font-size: 17px; color: #fff; }
.ak-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; display: grid; place-items: center; z-index: 2; }
.ak-lb-nav:hover { background: rgba(255,255,255,.24); }
.ak-lb-l { left: 14px; } .ak-lb-r { right: 14px; }
.ak-lb-wait { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.7); pointer-events: none; }
@media (max-width: 575.98px) {
  .ak-tim .form-control { max-width: none; }
  .ak-albums { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ak-album { padding: 5px 5px 7px; border-radius: 12px; }
  .ak-bia { border-radius: 8px; margin-bottom: 4px; }
  .ak-bia em { font-size: 11px; padding: 1px 6px; right: 4px; bottom: 4px; }
  .ak-album b { font-size: 12.5px; }
  .ak-album small { font-size: 11px; }
  .ak-luoi { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .ak-o { border-radius: 6px; }
  .ak-tag { font-size: 10px; padding: 0 6px; left: 4px; top: 4px; }
  .ak-lb-nav { display: none; }
}
.uc-goc { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 8px; cursor: pointer; }
/* Chọn khách / ảnh hiển thị (quản lý) */
.ak-loc { display: flex; gap: 6px; margin: -4px 0 14px; flex-wrap: wrap; }
.ak-loc a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: 13.5px; background: #fff; }
.ak-loc a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
/* 16/11: ô tìm + số lượng + tab lọc nằm trên dải tiêu đề navy (thay dòng tiêu đề lớn) — trang Ảnh liệu trình + Ảnh trước sau */
.ak-head-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.ak-head-bar .ak-tim { margin: 0; flex: 1 1 260px; max-width: 460px; min-width: 0; }
.ak-head-bar .ak-tim .form-control { max-width: none; border: 0; height: 42px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.ak-head-bar .ak-dem { color: rgba(255,255,255,.75); font-weight: 600; }
.ak-tabs { display: flex; gap: 6px; }
.ak-tabs a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.85); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.ak-tabs a:hover { background: rgba(255,255,255,.08); color: #fff; }
.ak-tabs a.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.ak-head-btn { margin-left: auto; font-weight: 700; padding: 9px 18px; border-radius: 999px; white-space: nowrap; }
/* Ẩn SĐT + Che mắt (Admin) cùng hàng, căn phải, tông sáng trên nền navy */
.ak-head-cc { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ak-head-cc .ak-ansdt { margin: 0; color: #fff; }
.ak-head-cc .ak-ansdt .form-check-input:not(:checked) { background-color: transparent; border-color: rgba(255,255,255,.5); }
.ak-head-cc .ak-kieu { margin: 0; width: auto; color: rgba(255,255,255,.7); }
.ak-head-cc .ak-kieu button { background: transparent; border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.85); padding: 7px 14px; }
.ak-head-cc .ak-kieu button:hover { background: rgba(255,255,255,.08); color: #fff; }
.ak-head-cc .ak-kieu button.on { background: var(--gold); border-color: var(--gold); color: #fff; }
@media (max-width: 575.98px) {
  .ak-head-bar { gap: 10px; margin-top: 10px; }
  .ak-head-bar .ak-tim { flex: 1 1 100%; }
  .ak-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .ak-tabs a { padding: 7px 6px; font-size: 13px; }
  .ak-head-btn { margin-left: 0; width: 100%; }
  .ak-head-cc { margin-left: 0; width: 100%; justify-content: space-between; gap: 10px; }
  .ak-head-cc .ak-kieu button { padding: 5px 11px; }
}
.ak-hien { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(9,30,54,.72); color: #fff; display: grid; place-items: center; font-size: 16px; z-index: 2; }
.ak-hien.on { background: var(--gold); }
.ak-album.ak-tat .ak-bia img { opacity: .45; filter: grayscale(.6); }
.ak-qlbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; font-weight: 600; color: var(--navy); }
.ak-qlbar .form-check-input { width: 2.6em; height: 1.4em; cursor: pointer; }
.ak-qlbar .form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.ak-qlbar .form-check-label { margin-left: 6px; }
.ak-qldem { color: var(--muted); font-weight: 500; }
.ak-qldem b { color: var(--navy); }
.ak-chonbuoi { border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.ak-chonbuoi:first-of-type { margin-left: 4px; }
.ak-tich { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 16px; padding: 0; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.ak-o.ak-bo img { opacity: .35; filter: grayscale(.7); }
.ak-o.ak-bo .ak-tich { background: rgba(0,0,0,.35); }
.ak-o.ak-bo .ak-tich .bi { visibility: hidden; }
@media (max-width: 575.98px) {
  .ak-hien { top: 9px; right: 9px; width: 28px; height: 28px; font-size: 14px; }
  .ak-tich { width: 26px; height: 26px; top: 4px; right: 4px; font-size: 14px; }
  .ak-buoi h2 small { margin-left: 0; }
}
.ak-tai { display: flex; gap: 6px; flex-wrap: wrap; }
/* Hộp thoại tải: gắn thương hiệu + xem trước — nổi trên cả lớp xem ảnh lớn (.ak-lb z 1060) */
.ak-thdlg { z-index: 1070; }
.ak-thxem { position: relative; margin-top: 12px; height: min(52vh, 460px); border-radius: 12px; background: #f1f3f6; display: grid; place-items: center; overflow: hidden; }
.ak-thxem img { max-width: 100%; max-height: 100%; object-fit: contain; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ak-thxem img:not([src]) { display: none; }
.ak-thxem .spinner-border { position: absolute; color: var(--gold); }
.ak-thxem .spinner-border[hidden] { display: none; }
@media (max-width: 575.98px) { .ak-thxem { height: 58vh; } }
.ak-qlphai { display: flex; align-items: center; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.ak-chontat { display: flex; align-items: center; gap: 8px; padding-left: 0; cursor: pointer; }
.ak-chontat .form-check-input { float: none; margin: 0; width: 1.25em; height: 1.25em; cursor: pointer; }
.ak-chontat .form-check-input:checked, .ak-chontat .form-check-input:indeterminate { background-color: var(--gold); border-color: var(--gold); }
@media (max-width: 575.98px) { .ak-chips { grid-template-columns: 1fr 1fr; } }
.perm-chip input:disabled + span { cursor: not-allowed; opacity: .7; }
.perm-lock { width: auto !important; height: auto !important; background: none !important; color: var(--muted) !important; font-size: 13px !important; margin-left: auto; }
.ak-khongmat { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: rgba(192,40,40,.92); padding: 2px 8px; border-radius: 999px; display: flex; align-items: center; gap: 4px; }
@media (max-width: 575.98px) { .ak-khongmat { font-size: 9.5px; padding: 1px 5px; left: 3px; bottom: 3px; } }
.ak-kieu { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.ak-kieu button { border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 600; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.ak-kieu button.on { background: var(--gold); border-color: var(--gold); color: #fff; }
@media (max-width: 575.98px) { .ak-kieu { margin-left: 0; width: 100%; } }

/* ===== Ảnh trước sau (06/11/2026) ===== */
.ts-the-ds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ts-the { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 10px; color: var(--ink); box-shadow: 0 2px 10px rgba(14,42,71,.05); transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0; }
.ts-the:hover { color: var(--ink); border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(14,42,71,.1); }
.ts-media { position: relative; display: block; aspect-ratio: 2 / 1; border-radius: 10px; overflow: hidden; background: #111; margin-bottom: 6px; }
.ts-media > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ts-media.ts-doi { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ts-media.ts-doi > span { position: relative; min-width: 0; }
.ts-media.ts-doi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ts-the b { font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-the small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-the em { font-style: normal; color: var(--ink); font-size: 13px; opacity: .8; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ts-the img, .ts-anh img { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ts-tt { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 18px; margin: 0 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.ts-tt dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.ts-tt dd { margin: 0; font-weight: 600; color: var(--navy); }
.ts-tt .ts-pd { grid-column: 1 / -1; }
.ts-tt .ts-pd dd { white-space: pre-line; font-weight: 500; color: var(--ink); }
.ts-anh { display: grid; gap: 8px; }
.ts-anh.ts-doi { grid-template-columns: 1fr 1fr; }
.ts-o.ak-o { aspect-ratio: auto; background: #111; }
.ts-o.ak-o img { height: auto; max-height: 80vh; object-fit: contain; }
.ts-form { max-width: 760px; }
.ts-kieu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.ts-kieu input { position: absolute; opacity: 0; pointer-events: none; }
.ts-kieu span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; color: var(--navy); cursor: pointer; }
.ts-kieu input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.ts-chon { display: grid; gap: 8px; margin-bottom: 14px; }
.ts-chon.ts-doi { grid-template-columns: 1fr 1fr; }
.ts-o-chon { position: relative; display: grid; place-items: center; min-height: 150px; border: 1.5px dashed var(--gold); border-radius: 12px; background: var(--paper); cursor: pointer; overflow: hidden; margin: 0; }
.ts-o-chon[hidden] { display: none; }
.ts-o-chon > span { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--navy); font-size: 14px; }
.ts-o-chon > span .bi { font-size: 28px; color: var(--gold); }
.ts-o-chon img { width: 100%; max-height: 320px; object-fit: contain; display: block; background: #111; }
.ts-o-chon.co > span { position: absolute; left: 6px; top: 6px; flex-direction: row; font-size: 12px; background: rgba(9,30,54,.72); color: #fff; padding: 2px 8px; border-radius: 999px; }
.ts-o-chon.co > span .bi { display: none; }
.ts-truong { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ts-truong .ts-full { grid-column: 1 / -1; }
.ts-kh { position: relative; }
.ts-goi-y { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin-top: 2px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 26px rgba(14,42,71,.15); max-height: 260px; overflow: auto; min-width: 240px; }
.ts-goi-y[hidden] { display: none; }
.ts-goi-y button { display: flex; width: 100%; justify-content: space-between; gap: 10px; border: 0; background: none; padding: 9px 12px; text-align: left; }
.ts-goi-y button:hover { background: var(--paper); }
.ts-goi-y small { color: var(--muted); }
.ts-tien { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 14px; }
.ts-tien[hidden] { display: none; }
.ts-tien span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.ts-nut { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
@media (max-width: 575.98px) {
  .ts-the-ds { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ts-the { padding: 5px 5px 7px; border-radius: 12px; }
  .ts-media { border-radius: 8px; margin-bottom: 4px; }
  .ts-the b { font-size: 12.5px; }
  .ts-the small, .ts-the em { font-size: 11px; }
  .ts-anh { gap: 4px; }
  .ts-o-chon { min-height: 120px; }
  .ts-nut .btn { flex: 1; }
}
.ts-dlg .ts-form { max-width: none; }
.ts-dlg .modal-content { border-radius: 16px; }
.ts-dlg .modal-body { padding-top: 12px; }
@media (max-width: 575.98px) { .ts-dlg .modal-content { border-radius: 0; } .ts-dlg .ts-nut { position: sticky; bottom: -16px; background: #fff; padding: 10px 0; margin-bottom: -16px; } }
.ts-dache { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-weight: 600; color: var(--navy); }
.ts-dache .form-check-input { width: 1.25em; height: 1.25em; margin: 0; cursor: pointer; }
.ts-dache .form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.ak-ansdt { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 auto; font-size: 13.5px; font-weight: 600; color: var(--navy); cursor: pointer; white-space: nowrap; }
.ak-ansdt .form-check-input { margin: 0; width: 1.15em; height: 1.15em; cursor: pointer; }
.ak-ansdt .form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.ak-loc .ak-ansdt + .ak-kieu { margin-left: 12px; }
.ak-qlbar .ak-ansdt { margin: 0; }
@media (max-width: 575.98px) { .ak-loc .ak-ansdt { margin-left: 0; } .ak-loc .ak-ansdt + .ak-kieu { margin-left: 0; } }
.ak-ttbtn { font-weight: 600; color: var(--navy); border: 1px solid var(--note-line); display: inline-flex; align-items: center; gap: 6px; }
.ak-tt { margin-bottom: 18px; }
/* Ảnh trước sau — 3 góc mặt / khách (19/11) */
.ts-gocs { margin-bottom: 14px; }
.ts-goc { margin-bottom: 10px; }
.ts-goc[hidden] { display: none; }
.ts-goc .ts-chon { margin-bottom: 0; }
.ts-goc-dau { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; min-height: 28px; }
.ts-goc-dau b { font-size: 14px; color: var(--navy); }
.ts-bo { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; margin: 0; }
.ts-an-goc { border: 0; background: none; color: var(--muted); padding: 2px 6px; line-height: 1; }
.ts-goc.ts-bo-on .ts-chon { opacity: .35; filter: grayscale(1); }
.ts-goc .ts-o-chon img { max-height: 240px; }
.ts-them-goc[hidden] { display: none; }
.ts-goc-t { font-size: 15px; font-weight: 700; color: var(--navy); margin: 16px 0 8px; }
.ts-goc-t:first-of-type { margin-top: 0; }
.ts-so-goc { position: absolute; right: 6px; bottom: 6px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: rgba(9,30,54,.78); padding: 2px 8px; border-radius: 999px; display: flex; align-items: center; gap: 4px; }
@media (max-width: 575.98px) {
  .ts-goc .ts-o-chon { min-height: 104px; }
  .ts-goc .ts-o-chon img { max-height: 180px; }
  .ts-so-goc { font-size: 9.5px; padding: 1px 5px; right: 3px; bottom: 3px; }
  .ts-goc-t { font-size: 14px; margin: 12px 0 6px; }
}
/* Người dùng + Phân quyền — hiển thị kiểu app-ban-hang (19/11) */
.nd-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.nd-tim { position: relative; flex: 1 1 200px; max-width: 320px; }
.nd-tim .bi { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
.nd-tim .form-control { padding-left: 32px; }
.nd-bang { padding: 0; overflow: hidden; }
.nd-bang th { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.nd-bang td { font-size: 14px; }
.nd-ten { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nd-ten > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.nd-ten small { font-size: 11.5px; color: var(--muted); }
.nd-co { color: #16a34a; }
.nd-khoa { opacity: .55; }
.nd-the-ds { display: grid; gap: 8px; }
.nd-the { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.nd-the-giua { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nd-the-dau { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nd-the-dau b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-the-phu { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.nd-the-phu .bi { margin-right: 3px; }
.nd-the small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-the-mui { color: var(--muted); }
.nd-luoi { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nd-luoi .nd-full { grid-column: 1 / -1; }
.nd-goc { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.nd-goc .form-check-input { margin: 0; }
.pq-dinh { position: sticky; top: 84px; }
.pq-vt { padding: 12px; }
.pq-vt-t { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 4px 8px; }
.pq-vt-ds { display: grid; gap: 4px; }
.pq-vt-o { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 14px; border: 1px solid transparent; }
.pq-vt-o > span:first-child { display: flex; flex-direction: column; line-height: 1.25; }
.pq-vt-o small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.pq-vt-o .bi-stars { color: #f59e0b; margin-right: 6px; }
a.pq-vt-o:hover { background: rgba(14,42,71,.05); color: var(--ink); }
.pq-vt-o.on { background: var(--navy); color: #fff; }
.pq-vt-o.on small { color: rgba(255,255,255,.75); }
.pq-vt-admin > span:first-child { flex-direction: row; align-items: center; }
.pq-dem { background: rgba(14,42,71,.08); color: var(--ink); font-weight: 700; }
.pq-vt-o.on .pq-dem { background: rgba(255,255,255,.2); color: #fff; }
.pq-bang { padding: 0; overflow: hidden; }
.pq-bang-dau { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.pq-bang-dau .bi { margin-right: 6px; }
.pq-nut-chon { display: flex; gap: 6px; }
.pq-bang th { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pq-bang td, .pq-bang th { padding: 9px 12px; }
.pq-cot { width: 86px; }
.pq-cot .bi { margin-right: 4px; }
.pq-ic { color: var(--muted); margin-right: 8px; }
.pq-bang .form-check-input { width: 1.2em; height: 1.2em; margin: 0; cursor: pointer; }
.pq-rieng-ten { width: 200px; font-weight: 600; white-space: nowrap; vertical-align: top; }
.pq-rieng { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pq-rieng .form-check { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; min-height: 0; font-size: 13.5px; cursor: pointer; }
@media (max-width: 991.98px) {
  .pq-dinh { position: static; }
  .pq-vt-ds { display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .pq-vt-ds::-webkit-scrollbar { display: none; }
  .pq-vt-o { flex: none; border-color: var(--line); }
}
@media (max-width: 575.98px) {
  .pq-cot { width: 54px; }
  .pq-cot span { display: none; }
  .pq-cot .bi { margin: 0; font-size: 15px; }
  .pq-bang td, .pq-bang th { padding: 9px 8px; }
  .pq-rieng-ten { display: block; width: auto; border-bottom: 0 !important; padding-bottom: 2px !important; }
  .pq-rieng-ten + td { display: block; padding-top: 4px !important; }
  .pq-rieng { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
  .nd-luoi { grid-template-columns: 1fr 1fr; }
}
/* Người dùng — Thêm / Tạo hàng loạt / Sửa hàng loạt (21/11) */
.nd-bar-nut { margin-left: auto; display: flex; gap: 6px; }
.nd-bar-nut .btn { display: inline-flex; align-items: center; gap: 6px; }
.nd-ochon { width: 36px; text-align: center; }
.nd-ochon .form-check-input { margin: 0; width: 1.15em; height: 1.15em; cursor: pointer; }
.nd-the-o { display: flex; align-items: stretch; gap: 6px; }
.nd-the-o > .nd-the { flex: 1; min-width: 0; }
.nd-the-chon { display: flex; align-items: center; padding: 0 4px; margin: 0; cursor: pointer; }
.nd-the-chon .form-check-input { width: 1.3em; height: 1.3em; margin: 0; }
.nd-loat { position: fixed; z-index: 1030; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: min(980px, calc(100% - 24px)); padding: 10px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(14,42,71,.22); }
.nd-loat[hidden] { display: none; }
.nd-loat .form-select { width: auto; min-width: 150px; flex: 1 1 150px; }
.nd-loat-dem { font-size: 14px; white-space: nowrap; }
.nd-loat-nut { display: flex; gap: 6px; margin-left: auto; }
body.nd-loat-mo .adm { padding-bottom: 110px !important; }
@media (max-width: 767.98px) {
  .nd-loat { bottom: calc(70px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; }
  .nd-loat .form-select { min-width: 0; }
  .nd-loat-dem { grid-column: 1 / -1; }
  .nd-loat-nut { grid-column: 1 / -1; margin: 0; }
  .nd-loat-nut .btn { flex: 1; }
  body.nd-loat-mo .adm { padding-bottom: 230px !important; }
}
.hl-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.hl-bar .btn { display: inline-flex; align-items: center; gap: 6px; }
.hl-bar-phai { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.hl-tong { padding: 8px 12px; border-radius: 10px; margin-bottom: 10px; font-size: 14px; }
.hl-tong-dung { background: rgba(22,163,74,.12); color: #15803d; }
.hl-tong-loi { background: rgba(220,38,38,.10); color: #b91c1c; }
.hl-khung { padding: 0; overflow: hidden; }
.hl-cuon { overflow: auto; max-height: calc(100vh - 290px); }
.hl-bang { font-size: 13px; white-space: nowrap; }
.hl-bang thead th { position: sticky; top: 0; z-index: 2; background: var(--paper); font-size: 12.5px; font-weight: 700; padding: 7px 8px; }
.hl-bang td { padding: 0; vertical-align: middle; }
.hl-stt { width: 42px; text-align: right; color: var(--muted); font-size: 12px; padding: 0 8px !important; }
.hl-o { width: 100%; min-width: 130px; border: 0; background: transparent; color: var(--ink); padding: 6px 8px; font-size: 13px; outline: none; }
.hl-o:focus { box-shadow: inset 0 0 0 2px #0d6efd; background: rgba(13,110,253,.05); }
.hl-kq { min-width: 200px; max-width: 280px; padding: 0 8px !important; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.hl-xoa { width: 34px; text-align: center; }
.hl-bo { color: #dc2626; }
tr.hl-loi td { background: rgba(220,38,38,.08) !important; }
tr.hl-loi .hl-kq { color: #dc2626; font-weight: 600; }
tr.hl-dung .hl-kq { color: #16a34a; }
.hl-chan { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
