/* OpsTour - he thong thiet ke: mau, chu, nut, bang, bieu mau dung chung cho ung dung, website va trang lien ket. */
:root {
  --bg: #f7f5f2; --panel: #ffffff; --ink: #1f2230; --muted: #646a7a; --line: #e7e3dd; --soft: #f1eee9;
  /* v2.4: bo mau rieng cua OpsTour "San ho & Muc" (khac ban truoc); moi don vi chon chu de rieng trong Cai dat > Thuong hieu */
  --brand: #c2410c; --brand-2: #9a3412; --brand-ink: #ffffff; --accent: #f2b134; --side: #1e2235; --side-ink: #dfe2ee; --side-grp: #8e94ad;
  --ok: #1f8a4c; --ok-bg: #e6f4ec; --warn: #b26a00; --warn-bg: #fff4e0; --bad: #c0362c; --bad-bg: #fdecea; --info-bg: #fdf0e8;
  --radius: 10px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
}
[data-theme="dark"] { --bg: #0f161c; --panel: #16212a; --ink: #e6edf3; --muted: #93a4b3; --line: #243341; --soft: #1b2832; --info-bg: #15303b; --ok-bg: #11301f; --warn-bg: #352610; --bad-bg: #3a1714; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.45; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: none; }
h1, h2, h3 { margin: 0 0 .6rem; line-height: 1.25; } h1 { font-size: 1.45rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
.muted { color: var(--muted); } .small { font-size: .86em; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

/* Bo cuc ung dung */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); padding: 14px 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 20; /* v3.6.1: menu con (fly-m) luon nam tren noi dung */ }
.side .logo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 1.1rem; padding: 4px 8px 14px; }
.side .logo i { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); display: inline-block; }
.side .grp { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--side-grp); margin: 14px 8px 4px; }
.side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--side-ink); }
.side a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.side a.on { background: rgba(255,255,255,.16); color: #fff; font-weight: 600; }
.side .badge { background: var(--accent); color: #1d1300; }
.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .search { flex: 1; max-width: 520px; position: relative; }
.top .search input { width: 100%; }
.top .results { position: absolute; top: 38px; left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); max-height: 340px; overflow: auto; }
.top .results a { display: block; padding: 8px 10px; border-bottom: 1px solid var(--soft); }
.page { padding: 18px 20px 60px; max-width: 1400px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.btn.menu-btn { display: none; }

/* Thanh phan */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 14px; }
.card > h3 { display: flex; justify-content: space-between; align-items: center; }
.grid { display: grid; gap: 14px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat .v { font-size: 1.35rem; font-weight: 700; margin-top: 2px; } .stat .l { color: var(--muted); font-size: .85rem; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 7px 12px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 500; }
.btn:hover { border-color: #b9c6d1; } .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } .btn.primary:hover { background: var(--brand-2); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; } .btn.danger { color: var(--bad); border-color: #efc3bf; }
.btn.sm { padding: 4px 9px; font-size: .86rem; } .btn.ghost { background: transparent; border-color: transparent; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--soft); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.info { background: var(--info-bg); color: var(--brand); }
.badge { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; font-size: .74rem; font-weight: 700; text-align: center; background: var(--bad); color: #fff; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid #cfd8e0; border-radius: 8px; padding: 7px 10px; min-height: 34px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid #7fb6c6; outline-offset: 1px; }
textarea { width: 100%; min-height: 80px; resize: vertical; }
/* O danh dau: nho gon ben trai, chu ben phai */
input[type="checkbox"], input[type="radio"] { width: 14px; height: 14px; min-height: 0; margin: 0; padding: 0; flex: 0 0 14px; accent-color: var(--brand); }
label.check { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; cursor: pointer; font-weight: 400; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; font-size: .9rem; }
.form label.full, .form .full { grid-column: 1 / -1; }
.form label.check { flex-direction: row; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: var(--soft); position: sticky; top: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--soft); }
tr.bad td { background: var(--bad-bg); } tr.warn td { background: var(--warn-bg); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 9px 12px; font: inherit; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 10px; overflow-x: auto; }
.col { background: var(--soft); border-radius: var(--radius); padding: 8px; min-height: 300px; }
.col h4 { margin: 2px 4px 8px; display: flex; justify-content: space-between; font-size: .9rem; }
.col.drop { outline: 2px dashed var(--brand); }
.kcard { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; cursor: grab; box-shadow: var(--shadow); }
.kcard b { display: block; }
.bar { height: 8px; background: var(--soft); border-radius: 6px; overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--brand); }
.bar.warn > i { background: var(--accent); } .bar.bad > i { background: var(--bad); }
.list-item { padding: 10px 0; border-bottom: 1px solid var(--line); } .list-item:last-child { border-bottom: 0; }
.alert { padding: 10px 12px; border-radius: 8px; background: var(--info-bg); margin-bottom: 10px; }
.alert.bad { background: var(--bad-bg); color: var(--bad); } .alert.warn { background: var(--warn-bg); color: var(--warn); } .alert.ok { background: var(--ok-bg); color: var(--ok); }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.modal-bg { position: fixed; inset: 0; background: rgba(10, 20, 30, .45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 12px; z-index: 50; overflow-y: auto; }
.modal { background: var(--panel); border-radius: 12px; width: min(760px, 100%); padding: 18px; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; gap: 8px; }
.toast div { background: #14212b; color: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); max-width: 380px; }
.toast div.bad { background: var(--bad); }
.chat { display: grid; grid-template-columns: 320px 1fr; gap: 0; height: calc(100vh - 130px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.chat .threads { border-right: 1px solid var(--line); overflow-y: auto; }
.chat .threads a { display: block; padding: 10px 12px; border-bottom: 1px solid var(--soft); color: var(--ink); }
.chat .threads a.on { background: var(--info-bg); }
.chat .msgs { display: flex; flex-direction: column; min-width: 0; }
.chat .stream { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 72%; padding: 8px 11px; border-radius: 12px; background: var(--soft); }
.msg.out { align-self: flex-end; background: var(--brand); color: #fff; } .msg.internal { align-self: center; background: var(--warn-bg); color: var(--warn); }
.msg.draft { align-self: flex-end; background: var(--info-bg); border: 1px dashed var(--brand); }
.msg .tr { margin-top: 4px; font-size: .86em; opacity: .85; border-top: 1px dashed currentColor; padding-top: 4px; }
.chat form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat form textarea { min-height: 40px; height: 40px; }
.timeline .ev { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .9em; }
.qr { background: #fff; padding: 8px; border-radius: 8px; display: inline-block; border: 1px solid var(--line); }
.doc { background: #fff; color: #111; padding: 28px; border: 1px solid var(--line); border-radius: 6px; }
.doc table th { background: #f2f2f2; color: #333; }
.login { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, var(--side), color-mix(in srgb, var(--side) 55%, var(--brand)) 60%, var(--brand)); }
.login .card { width: min(400px, 92vw); padding: 24px; }
.hint { font-size: .82rem; color: var(--muted); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; } .kv div:nth-child(odd) { color: var(--muted); }
.sev-high { border-left: 3px solid var(--bad); padding-left: 8px; } .sev-medium { border-left: 3px solid var(--accent); padding-left: 8px; }
@media print { .side, .top, .no-print, .tabs { display: none !important; } .shell { display: block; } .page { padding: 0; } .card { box-shadow: none; border: 0; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: -260px; width: 240px; z-index: 40; transition: left .2s; } .side.open { left: 0; }
  .btn.menu-btn { display: inline-flex; }
  .g2, .g3, .g4, .form { grid-template-columns: 1fr; }
  .chat { grid-template-columns: 1fr; height: auto; } .chat .threads { max-height: 220px; }
  .page { padding: 14px 12px 60px; } .kanban { grid-template-columns: repeat(5, 78vw); }
}
[hidden] { display: none !important; }

/* ===== v2.1: bieu do, bang du lieu, trinh tao don tung buoc, thuong hieu ===== */
.chart svg { width: 100%; height: auto; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ax, .donut .ax { fill: var(--muted); font-size: 11px; }
.donut .dv { fill: var(--ink); font-size: 15px; font-weight: 700; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.chart-legend i, .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.hbars .hb { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; gap: 10px; align-items: center; padding: 4px 0; font-size: .9rem; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-b { height: 12px; background: var(--soft); border-radius: 6px; overflow: hidden; } .hb-b i { display: block; height: 100%; border-radius: 6px; }
.hb-v { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.donut { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.funnel { display: grid; gap: 6px; justify-items: center; } .fs { color: #fff; padding: 7px 12px; border-radius: 6px; display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; min-width: 140px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; border-left: 4px solid var(--brand); }
.kpi .l { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; } .kpi .v { font-size: 1.35rem; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; } .kpi .s { font-size: .8rem; color: var(--muted); }
.kpi.ok { border-left-color: var(--ok); } .kpi.bad { border-left-color: var(--bad); } .kpi.warn { border-left-color: var(--accent); }
.dt-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.dt-bar .grow { flex: 1 1 220px; min-width: 180px; }
.dt-bar label.inline { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.dt-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 2px 0; font-size: .86rem; color: var(--muted); flex-wrap: wrap; }
.pager { display: flex; gap: 4px; align-items: center; } .pager button { min-width: 32px; justify-content: center; }
.pager button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
th.sort { cursor: pointer; user-select: none; } th.sort:hover { color: var(--ink); } th.sort .ar { opacity: .5; margin-left: 3px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--soft) 45%, transparent); }
.wizard { width: min(980px, 100%) !important; padding: 0 !important; overflow: hidden; }
.wz-head { background: var(--brand); color: #fff; padding: 16px 20px; }
.wz-steps { display: flex; gap: 0; counter-reset: st; margin-top: 12px; }
.wz-steps div { flex: 1; position: relative; font-size: .82rem; opacity: .7; padding-top: 30px; text-align: center; }
.wz-steps div::before { counter-increment: st; content: counter(st); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; line-height: 24px; border-radius: 50%; background: rgba(255,255,255,.25); font-weight: 700; }
.wz-steps div::after { content: ''; position: absolute; top: 12px; left: calc(50% + 16px); right: calc(-50% + 16px); height: 2px; background: rgba(255,255,255,.25); }
.wz-steps div:last-child::after { display: none; }
.wz-steps div.on, .wz-steps div.done { opacity: 1; } .wz-steps div.on::before { background: var(--accent); color: #1d1300; } .wz-steps div.done::before { content: '✓'; background: #fff; color: var(--brand); }
.wz-viewport { overflow: hidden; } .wz-track { display: flex; transition: transform .35s ease; } .wz-panel { flex: 0 0 100%; padding: 18px 20px; max-height: 62vh; overflow-y: auto; }
.wz-foot { display: flex; justify-content: space-between; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--soft); }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pick .opt { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: var(--panel); }
.pick .opt:hover { border-color: var(--brand); } .pick .opt.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.sum-box { background: var(--soft); border-radius: 10px; padding: 12px 14px; }
.brand-preview { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 10px; color: #fff; }
.side .logo img { height: 28px; max-width: 150px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; }
.report-print { background: #fff; color: #111; }
.trial-bar { background: var(--warn-bg); color: var(--warn); padding: 6px 20px; font-size: .86rem; display: block; }
.trial-bar.bad { background: var(--bad-bg); color: var(--bad); }
@media print { .trial-bar, .dt-bar, .dt-foot { display: none !important; } .kpi { break-inside: avoid; } .card { break-inside: avoid; } }

/* v2.1 – thuong hieu, thanh goi, swatch */
.swatch{width:24px;height:24px;border-radius:6px;border:2px solid #fff;box-shadow:0 0 0 1px var(--line);cursor:pointer;padding:0}
.brand-preview{display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;min-height:220px;font-size:.85rem}
.bp-side{width:42%;color:#fff;padding:12px;display:flex;flex-direction:column;gap:6px}
.bp-side img{max-height:30px;max-width:100%;object-fit:contain;align-self:flex-start;background:#fff;border-radius:4px;padding:2px}
.bp-side i{display:inline-block;width:22px;height:22px;border-radius:6px;background:rgba(255,255,255,.35)}
.bp-side span{padding:5px 8px;border-radius:6px;opacity:.9}
.bp-main{flex:1;padding:12px;display:flex;flex-direction:column;gap:10px;background:var(--bg)}
.bp-kpi{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:8px}.bp-kpi b{display:block;font-size:1.3rem}
.bp-bars{display:flex;align-items:flex-end;gap:6px;height:70px}.bp-bars i{flex:1;border-radius:3px 3px 0 0}
.bp-btn{color:#fff;padding:5px 10px;border-radius:6px;font-weight:600}
.trial-bar{background:#e8f2fb;color:#174a7c;padding:7px 16px;font-size:.88rem;border-bottom:1px solid #cfe0f1}
.trial-bar.warn{background:#fff6e0;color:#7a5200;border-color:#f0dfae}.trial-bar.bad{background:#fde8e6;color:#8a1c12;border-color:#f3c5bf}
.trial-bar a{font-weight:600;margin-left:6px}
.side .logo img{max-height:28px;max-width:44px;object-fit:contain;background:#fff;border-radius:5px;padding:2px;margin-right:8px;vertical-align:middle}
.alert.ok{background:#e6f5ec;color:#145c34;padding:8px 10px;border-radius:8px}
label.check{display:flex;align-items:center;gap:8px}
label.check input[type=checkbox],label.check input[type=radio]{width:15px;height:15px;margin:0;flex:0 0 auto}
@media (max-width: 640px) {
  .dt-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .dt-bar > input[type=search] { grid-column: 1 / -1; }
  .dt-bar select, .dt-bar label.inline, .dt-bar label.inline input { width: 100%; min-width: 0; }
  .kpis { grid-template-columns: 1fr 1fr; }
}

/* v2.2 – lich lam viec, thong bao goc trai, chi nhanh */
.br-chip { font-size: .78rem; padding: 3px 9px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); white-space: nowrap; }
.ag-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 6px 12px; cursor: pointer; font: inherit; color: inherit; }
.seg button.on { background: var(--brand); color: #fff; }
.ag-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 2px 10px; color: var(--muted); }
.ag-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.ag-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ag-day { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-height: 160px; min-width: 0; }
.ag-day.today { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.ag-dh { display: flex; justify-content: space-between; font-weight: 600; font-size: .82rem; margin-bottom: 6px; text-transform: capitalize; }
.ag-empty { color: var(--muted); font-size: .8rem; text-align: center; padding-top: 20px; }
.ev { display: flex; gap: 6px; align-items: flex-start; padding: 5px 7px; margin-bottom: 5px; border-radius: 7px; background: color-mix(in srgb, var(--c) 9%, transparent); border-left: 3px solid var(--c); color: inherit; text-decoration: none; font-size: .8rem; line-height: 1.3; cursor: pointer; }
.ev:hover { background: color-mix(in srgb, var(--c) 16%, transparent); }
.ev-t { font-weight: 700; color: var(--c); white-space: nowrap; font-size: .76rem; }
.ev-x { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ev-x small { display: block; color: var(--muted); font-size: .72rem; }
.ag-list h3.today { color: var(--brand); }
.ag-list .ev { font-size: .88rem; padding: 7px 10px; }
.notices { position: fixed; left: 14px; bottom: 14px; z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(320px, calc(100vw - 28px)); pointer-events: none; }
.nt { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--brand)); border-radius: 10px; padding: 9px 10px 9px 11px; box-shadow: 0 8px 24px rgba(16, 24, 40, .14); font-size: .82rem; animation: ntIn .28s ease-out; transition: opacity .2s, transform .2s; }
.nt.out { opacity: 0; transform: translateX(-12px); }
.nt-i { font-size: 1.05rem; line-height: 1.2; }
.nt-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nt-b b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-b span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-b a { font-weight: 600; font-size: .78rem; margin-top: 2px; }
.nt-sum { --c: var(--accent); }
.bad-t { color: #c0362c; }
.nt-x { border: 0; background: transparent; color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.nt-x:hover { color: inherit; }
@keyframes ntIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .ag-week { grid-template-columns: 1fr; } .ag-day { min-height: 0; } .ag-day:not(.today):has(.ag-empty) { display: none; } .br-chip { display: none; } }
@media print { .notices, .ag-bar { display: none !important; } }

/* ===== v2.3 Ban lam viec, thanh tren cung, kho ung dung ===== */
.side { display: flex; flex-direction: column; overflow-y: auto; }
.ws-head { display: flex; align-items: center; gap: 10px; width: calc(100% - 16px); margin: 10px 8px 4px; padding: 8px; border: 0; border-radius: 10px; background: rgba(255,255,255,.06); color: inherit; cursor: pointer; text-align: left; font: inherit; }
.ws-head small { display: block; font-size: .64rem; letter-spacing: .08em; opacity: .65; } .ws-head b { font-size: .92rem; } .ws-car { margin-left: auto; opacity: .6; }
.ws-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #fff; font-size: 1rem; flex: 0 0 auto; }
.ws-ic.sm { width: 26px; height: 26px; border-radius: 7px; font-size: .85rem; background: var(--soft); color: inherit; } .ws-ic.soft { background: var(--soft); }
.side-tag { font-size: .66rem; letter-spacing: .1em; opacity: .5; padding: 2px 18px 6px; }
.side a[data-nav].on { background: var(--ws, var(--brand)); color: #fff; }
.side-foot { margin-top: auto; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.08); }
.who { display: flex; gap: 8px; align-items: center; } .who b { display: block; font-size: .82rem; } .who small { opacity: .7; font-size: .72rem; }
.av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--brand); font-weight: 700; font-size: .8rem; flex: 0 0 auto; }
.side .av { background: rgba(255,255,255,.15); color: #fff; } .av.xs { width: 20px; height: 20px; font-size: .66rem; }
.fly { position: relative; } .fly-h { display: flex; justify-content: space-between; cursor: pointer; }
.fly-m { display: none; position: fixed; z-index: 70; min-width: 210px; background: #1b2733; border-radius: 10px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.3); margin: 0; max-height: calc(100vh - 16px); overflow-y: auto; }
.fly.open .fly-m { display: block; } /* v3.2.4: mo bang JS, dat dung vi tri muc vua bam/re chuot */ .fly-m a { color: #e6edf3 !important; }
.top { gap: 8px; flex-wrap: nowrap; } .top .grow { flex: 1; }
.ws-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 5px 10px 5px 6px; cursor: pointer; font: inherit; color: inherit; white-space: nowrap; }
.ws-btn .ws-ic.sm { color: #fff; }
.qbar { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 2px; background: var(--panel); }
.qb { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; text-decoration: none; font-size: 1rem; color: inherit; }
.qb:hover { background: var(--soft); } .qb .badge { position: absolute; top: -3px; right: -3px; font-size: .62rem; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; }
.search { position: relative; } .search .kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
kbd, .kbd { font: .7rem ui-monospace, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; background: var(--soft); color: var(--muted); }
.env { font-size: .74rem; font-weight: 700; color: #2b8fd6; white-space: nowrap; } .env.prod { color: #c0362c; }
.umenu { position: relative; } .um-p { position: absolute; right: 0; top: 110%; z-index: 80; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(16,24,40,.15); padding: 8px; min-width: 210px; display: flex; flex-direction: column; gap: 2px; }
.um-p[hidden] { display: none; } .um-p button, .um-p a { text-align: left; border: 0; background: transparent; padding: 7px 8px; border-radius: 6px; cursor: pointer; font: inherit; color: inherit; text-decoration: none; } .um-p button:hover, .um-p a:hover { background: var(--soft); }
.ws-panel { position: fixed; z-index: 90; top: 56px; left: 240px; display: grid; grid-template-columns: 340px 300px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(16,24,40,.2); overflow: hidden; animation: ntIn .18s ease-out; }
.wsp-l, .wsp-r { padding: 14px; display: flex; flex-direction: column; gap: 4px; } .wsp-r { border-left: 1px solid var(--line); }
.ws-panel > div > b { font-size: .95rem; } .ws-panel > div > small { color: var(--muted); margin-bottom: 8px; }
.ws-panel button, .wsp-tool { display: flex; gap: 10px; align-items: center; border: 0; background: transparent; padding: 8px; border-radius: 10px; cursor: pointer; text-align: left; font: inherit; color: inherit; text-decoration: none; }
.ws-panel button:hover, .ws-panel button.on, .wsp-tool:hover { background: var(--soft); } .ws-panel small { display: block; color: var(--muted); font-size: .76rem; }
.wsp-foot { margin-top: 6px; font-size: .74rem; color: var(--muted); }
.apps-panel { position: fixed; z-index: 90; top: 56px; right: 16px; width: 380px; max-height: 76vh; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(16,24,40,.2); animation: ntIn .18s ease-out; }
.ap-h { display: flex; justify-content: space-between; padding: 14px; border-bottom: 1px solid var(--line); } .ap-h small, .ap-i small { display: block; color: var(--muted); font-size: .76rem; }
.ap-b { overflow-y: auto; padding: 6px 10px; } .grp2 { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 10px 4px 4px; font-weight: 700; }
.ap-i { display: flex; align-items: center; gap: 4px; } .ap-i a { flex: 1; display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; color: inherit; text-decoration: none; } .ap-i a:hover { background: var(--soft); }
.ap-i em { font-style: normal; font-size: .64rem; background: #e8f0ff; color: #2563eb; border-radius: 5px; padding: 1px 5px; margin-left: 4px; }
.pin { border: 0; background: transparent; cursor: pointer; opacity: .25; } .pin.on, .pin:hover { opacity: 1; }
.ap-f { padding: 10px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); text-align: center; }
/* Bang: tab trang thai + loc nhanh */
.dt-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 10px; flex-wrap: wrap; }
.dt-tabs button { border: 0; background: transparent; padding: 8px 12px; cursor: pointer; font: inherit; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px; }
.dt-tabs button.on { color: var(--ink); border-color: var(--brand); font-weight: 600; } .dt-tabs button b { font-size: .74rem; background: var(--soft); border-radius: 999px; padding: 1px 7px; font-weight: 600; }
.dt-tabs button i, .chip i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; } .dt-tabs.sm button { padding: 6px 8px; font-size: .84rem; }
.dt-quick { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 2px 0 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: .8rem; cursor: pointer; color: inherit; }
.chip.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); } .chip b { color: var(--muted); font-weight: 600; } .chip.bad { color: #c0362c; } .chip.ok { color: #1f8a4c; }
/* Trang chu & dashboard */
.hello { color: var(--muted); font-size: .84rem; } .kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.g64 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-top: 14px; }
.card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .card-h h3 { margin: 0; } .card-h a { font-size: .84rem; font-weight: 600; }
.tbl-clean { width: 100%; border-collapse: collapse; } .tbl-clean th { text-align: left; font-size: .76rem; color: var(--muted); font-weight: 500; padding: 6px; border-bottom: 1px solid var(--line); }
.tbl-clean td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; } .tbl-clean tr.click:hover { background: var(--soft); cursor: pointer; }
.mini-bar { display: inline-block; width: 64px; height: 6px; background: var(--soft); border-radius: 4px; overflow: hidden; vertical-align: middle; } .mini-bar.w { width: 120px; } .mini-bar i { display: block; height: 100%; background: var(--brand); }
.lead-i { display: flex; justify-content: space-between; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; } .lead-i small { display: block; color: var(--muted); font-size: .78rem; } .lead-i:hover { background: var(--soft); }
.warn-t { color: #b46b00; } .ok-t { color: #1f8a4c; } .link { color: var(--brand); } .strike { text-decoration: line-through; opacity: .6; } .pill.vio { background: #f1e8ff; color: #6b21a8; }
.dash-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; } .dash-h h1 { margin: 0; font-size: 1.3rem; } .dash-h small { color: var(--muted); } .dash-h .seg { margin-left: auto; }
.sec-t { font-size: .8rem; color: var(--muted); margin: 6px 0; font-weight: 600; }
.todos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.todo { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: inherit; text-decoration: none; transition: box-shadow .15s; }
.todo:hover { box-shadow: 0 6px 18px rgba(16,24,40,.08); } .todo b { display: block; font-size: 1.35rem; line-height: 1.2; } .todo span > span { display: block; font-size: .84rem; } .todo small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.td-ic { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--soft); flex: 0 0 auto; }
.todo.hot { border-color: #f3c5bf; } .todo.hot b { color: #c0362c; } .todo.warn b { color: #b46b00; } .todo.blue b { color: #2563eb; } .todo.green b { color: #1f8a4c; }
.pl-r { display: flex; justify-content: space-between; font-size: .86rem; margin-top: 8px; } .pl-b { height: 6px; background: var(--soft); border-radius: 4px; overflow: hidden; } .pl-b i { display: block; height: 100%; background: #2563eb; }
.day-h { background: var(--soft); padding: 6px 10px; border-radius: 6px; font-size: .8rem; font-weight: 600; margin-top: 10px; }
.fc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; } .fc-w { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .8rem; }
.fc-bars { display: flex; gap: 6px; align-items: flex-end; height: 150px; width: 100%; justify-content: center; border-bottom: 1px solid var(--line); } .fc-bars i { width: 22px; border-radius: 4px 4px 0 0; min-height: 2px; } .fc-bars .in { background: #1f8a4c; } .fc-bars .out { background: #c0362c; }
.stack { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--soft); margin: 6px 0; } .legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; } .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.kv2 { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .86rem; } .kv2 small { display: block; font-size: .74rem; }
/* San pham */
.pr-i { display: flex; gap: 10px; align-items: center; } .pr-i img, .pr-ph { width: 54px; height: 38px; object-fit: cover; border-radius: 6px; background: linear-gradient(135deg, #cfe3ef, #f5e3c4); flex: 0 0 auto; }
.ring { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: .7rem; font-weight: 700; background: conic-gradient(#e8a33d calc(var(--p) * 1%), var(--soft) 0); position: relative; }
.ring::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--panel); } .ring { isolation: isolate; } .ring::before { z-index: -1; }
.switch { position: relative; display: inline-block; width: 36px; height: 20px; } .switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: .2s; cursor: pointer; } .switch i::before { content: ''; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + i { background: #1f8a4c; } .switch input:checked + i::before { transform: translateX(16px); }
/* Lich khoi hanh */
.dp .row { gap: 10px; } .dp-strip { display: flex; gap: 10px; margin: 12px 0; align-items: stretch; }
.dp-m { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 4px; } .dp-m button { border: 0; background: transparent; cursor: pointer; font-size: 1rem; padding: 4px 6px; } .dp-m input { border: 0; width: 140px; }
.dp-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; flex: 1; }
.dp-days button { flex: 0 0 auto; width: 46px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; display: flex; flex-direction: column; align-items: center; padding: 4px 0; font: inherit; color: var(--muted); opacity: .55; }
.dp-days button.has { opacity: 1; color: inherit; } .dp-days button small { font-size: .62rem; } .dp-days button.on { background: var(--brand); color: #fff; border-color: var(--brand); opacity: 1; } .dp-days button.all { width: 64px; opacity: 1; justify-content: center; }
.dp-sum { justify-content: space-between; font-size: .86rem; flex-wrap: wrap; }
.tour-dates { display: flex; flex-wrap: wrap; gap: 6px; } .td { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 5px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; font: inherit; }
.td.almost { border-color: #e8a33d; } .td.full { opacity: .5; } .td.draft { border-style: dashed; } .td small { color: var(--muted); font-size: .7rem; }
/* Chat noi bo */
.chat { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 120px); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.chat-l { border-right: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; } .chat-l h2 { margin: 0; font-size: 1.05rem; } #cl { overflow-y: auto; flex: 1; }
.ch-i { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; color: inherit; text-decoration: none; } .ch-i:hover, .ch-i.on { background: var(--soft); }
.ch-t { flex: 1; min-width: 0; } .ch-t b, .ch-t small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ch-t small { color: var(--muted); font-size: .76rem; } .ch-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .7rem; color: var(--muted); }
.chat-r { display: flex; flex-direction: column; min-width: 0; } .chat-h { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; }
.chat-m { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.msg { display: flex; gap: 6px; align-items: flex-end; } .msg.me { flex-direction: row-reverse; }
.msg-b { max-width: 70%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 7px 10px; font-size: .88rem; overflow-wrap: anywhere; }
.msg.me .msg-b { background: var(--brand); color: #fff; border-color: transparent; border-radius: 12px 12px 4px 12px; } .msg-b small { display: block; font-weight: 600; color: var(--brand); font-size: .74rem; }
.msg-b time { display: block; font-size: .66rem; opacity: .6; text-align: right; margin-top: 2px; } .msg-x { border: 0; background: transparent; cursor: pointer; opacity: .4; } .msg-x:hover { opacity: 1; }
.chat-f { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); } .chat-f textarea { flex: 1; resize: none; min-height: 38px; max-height: 120px; }
.chat-empty { margin: auto; font-size: 1rem; }
.chat-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 65; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 32px)); }
.ct-toast { display: flex; gap: 10px; align-items: flex-start; background: #1f2937; color: #f3f4f6; border-left: 4px solid #ef4444; border-radius: 10px; padding: 10px 12px; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: ntIn .25s ease-out; font-size: .84rem; }
.ct-toast b { display: block; } .ct-toast small { display: block; opacity: .6; font-size: .72rem; } .ct-toast .av { background: #374151; color: #fff; } .ct-toast .nt-x { color: #9ca3af; margin-left: auto; }
/* Danh muc bao cao */
.rh { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; } .rh-c b { display: block; } .rh-c small { display: block; } .rh-c ul { margin: 10px 0 0; padding-left: 18px; } .rh-c li { margin: 5px 0; }
@media (max-width: 1100px) { .todos, .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.g64, .rh { grid-template-columns: 1fr; } .ws-panel { left: 8px; grid-template-columns: 1fr; } .env, .br-chip, .search .kbd { display: none; } }
@media (max-width: 700px) { .chat { grid-template-columns: 1fr; } .chat-l { max-height: 40vh; } .qbar { display: none; } .apps-btn { display: none; } .ws-btn b { display: none; } }
@media print { .ws-panel, .apps-panel, .chat-toasts, .top { display: none !important; } }
.flow-steps { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.flow-steps > div { flex: 1; min-width: 150px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; } .flow-steps small { display: block; color: var(--muted); font-size: .76rem; } .flow-steps > span { align-self: center; color: var(--muted); }
/* ---------- v2.4: nhan su, so quy, CRM, huong dan ---------- */
.inp-sm { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: inherit; font: inherit; }
.chk { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .88rem; margin: 0 14px 6px 0; }
.chk input { width: 14px; height: 14px; margin: 0; flex: 0 0 auto; accent-color: var(--brand); }
.wd-row { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 6px 0; }
.clock-card { text-align: center; } .clock { font-size: 2.6rem; font-weight: 700; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.clock-card .row { justify-content: center; gap: 10px; margin: 8px 0; } .btn.lg { padding: 10px 22px; font-size: 1rem; }
.hcal-h, .hcal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; } .hcal-h b { text-align: center; font-size: .75rem; color: var(--muted); padding: 4px 0; }
.hd { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; min-height: 58px; padding: 4px 6px; text-align: left; display: flex; flex-direction: column; gap: 1px; font: inherit; color: inherit; cursor: default; }
.hcal-g button[data-day]:not([tabindex]) { cursor: pointer; } .hd .n { font-weight: 700; font-size: .85rem; } .hd small { font-size: .68rem; color: var(--muted); line-height: 1.2; } .hd em { font-size: .66rem; color: #b45309; font-style: normal; }
.hd.ok { background: #ecfdf5; border-color: #a7f3d0; } .hd.warn { background: #fffbeb; border-color: #fcd34d; } .hd.bad { background: #fef2f2; border-color: #fca5a5; } .hd.lv { background: #f5f3ff; border-color: #c4b5fd; } .hd.hol { background: #eff6ff; border-color: #93c5fd; } .hd.off { opacity: .55; } .hd.info { background: #eff6ff; }
.hd-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; border: 1px solid var(--line); } .hd-dot.ok { background: #a7f3d0; } .hd-dot.warn { background: #fcd34d; } .hd-dot.bad { background: #fca5a5; } .hd-dot.lv { background: #c4b5fd; } .hd-dot.hol { background: #93c5fd; } .hd-dot.off { background: #e5e7eb; }
.hcal .legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.slip td { padding: 5px 8px; } .slip tr.sum td { border-top: 1px solid var(--line); } .slip tr.big td { font-size: 1.05rem; } .slip tr.muted td { color: var(--muted); font-size: .85rem; } .slip-card { max-width: 720px; }
.tbl-clean.ed input, .tbl-clean.ed select { width: 100%; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: inherit; font: inherit; }
.fund-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 14px; }
.fund { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: inherit; text-decoration: none; } .fund.on { border-color: #059669; box-shadow: 0 0 0 2px #05966933; } .fund .v { font-size: 1.15rem; font-weight: 700; } .fund small { color: var(--muted); }
.hero-dark { display: flex; align-items: center; gap: 12px; background: #0f172a; color: #fff; border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; } .hero-dark small { display: block; opacity: .7; font-size: .78rem; }
.kpi.lnk { text-decoration: none; color: inherit; }
.bentos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; } .bento { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 12px 14px; min-height: 200px; border-left: 4px solid #2563eb; }
.bento.b2 { border-left-color: #059669; } .bento.b3 { border-left-color: #d97706; } .bento.b4 { border-left-color: #dc2626; } .bento h4 { margin: 0 0 8px; font-size: .8rem; letter-spacing: .4px; text-transform: uppercase; }
.bento ul { list-style: none; margin: 0; padding: 0; } .bento li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; } .bento li span { color: var(--muted); font-size: .8rem; text-align: right; }
.bento-empty { text-align: center; color: var(--muted); font-size: .78rem; letter-spacing: .4px; text-transform: uppercase; padding: 40px 0; }
.grid.g37 { display: grid; grid-template-columns: 300px 1fr; gap: 12px; } .rm-list a { display: flex; flex-direction: column; padding: 8px; border-radius: 8px; color: inherit; text-decoration: none; border: 1px solid transparent; } .rm-list a.on { background: #fff7ed; border-color: #fdba74; } .rm-list small { color: var(--muted); }
.help-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--panel); border-left: 1px solid var(--line); box-shadow: -8px 0 24px #0002; z-index: 60; display: flex; flex-direction: column; }
.help-drawer .hd-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); } .help-drawer .hd-b { padding: 12px 16px; overflow: auto; } .help-drawer ol { padding-left: 20px; } .help-drawer li { margin: 4px 0; }
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; } .flow a { display: flex; flex-direction: column; gap: 2px; flex: 1 1 150px; max-width: 220px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; background: var(--bg, #f8fafc); }
.flow a i { font-style: normal; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .72rem; } .flow a small { color: var(--muted); font-size: .75rem; } .flow a.dim { opacity: .45; } .flow a.on { border-color: var(--brand); }
.flow .arr { align-self: center; color: var(--muted); } .flow.mini a { flex: 0 1 auto; flex-direction: row; align-items: center; gap: 6px; font-size: .82rem; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; align-items: start; } .hcard summary { cursor: pointer; display: flex; justify-content: space-between; } .hcard ol { padding-left: 20px; }
.onboard { border-left: 4px solid var(--brand); } .ob-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 12px; } .ob { display: flex; justify-content: space-between; align-items: center; }
.side-cust { display: block; width: calc(100% - 16px); margin: 8px; padding: 6px 8px; font-size: .78rem; text-align: left; background: transparent; color: inherit; opacity: .7; border: 1px dashed currentColor; border-radius: 8px; cursor: pointer; } .side-cust:hover { opacity: 1; }
.mc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; margin: 8px 0; }
@media (max-width: 760px) { .bentos, .grid.g37, .mc-list { grid-template-columns: 1fr; } .hd small { display: none; } }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link, #1d4ed8); cursor: pointer; font: inherit; text-align: left; }
.form label.chk, label.chk { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; font-weight: normal; }
.form label.chk input { width: 14px !important; height: 14px; padding: 0; }
.hr-tax { display: grid; grid-template-columns: 1fr; gap: 12px; } .hr-tax input { min-width: 80px; }

/* Chu de mau cho tung don vi */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.theme-c { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--panel); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.theme-c.on { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 30%, transparent); }
.theme-c .sw { display: flex; height: 26px; border-radius: 6px; overflow: hidden; margin-bottom: 6px; } .theme-c .sw i { flex: 1; } .theme-c small { color: var(--muted); display: block; }
.theme-c .sw { width: 100%; } .theme-c .sw i { display: block; height: 100%; }
/* ---------- v2.5: ma dieu hanh, in, so tour, xep xe phong, CEO, giao viec ---------- */
.pop-menu { position: absolute; z-index: 80; min-width: 240px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.18); padding: 6px; }
.pop-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pop-menu button:hover { background: var(--soft); } .pop-menu button.danger { color: var(--bad); } .pop-menu button:disabled { opacity: .45; cursor: not-allowed; } .pop-menu em { margin-left: auto; font-style: normal; font-size: .72rem; background: var(--ok-bg); color: var(--ok); border-radius: 6px; padding: 1px 6px; } .pop-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.op-head { padding: 14px 16px; margin-bottom: 12px; background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 5%, var(--panel)), var(--panel)); }
.op-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .op-top h1 { margin: 0; font-size: 1.3rem; } .op-meta { margin: 6px 0 10px 44px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; } .op-links { display: inline-flex; gap: 12px; margin-left: 12px; flex-wrap: wrap; }
.op-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.op-strip > div { padding: 10px 14px; border-right: 1px solid var(--line); } .op-strip > div:last-child { border-right: 0; } .op-strip small { display: block; color: var(--muted); font-size: .7rem; letter-spacing: .05em; } .op-strip b { font-size: 1.05rem; }
.prog { display: flex; gap: 4px; margin-top: 6px; } .prog i { flex: 1; height: 6px; border-radius: 4px; background: var(--line); } .prog i.on { background: var(--brand); }
.op-banner { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, #1c7ed6 10%, var(--panel)); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pp-list { display: grid; gap: 8px; } .pp-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.print-sheet { position: fixed; inset: 0; z-index: 90; background: #e9ecef; overflow: auto; } .ps-bar { position: sticky; top: 0; display: flex; gap: 8px; align-items: center; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.ps-page { background: #fff; color: #111; width: min(210mm, 100%); min-height: 297mm; margin: 16px auto; padding: 16mm 14mm; box-shadow: 0 4px 18px #0002; font: 12.5px/1.5 Arial, sans-serif; } .ps-page[contenteditable="true"] { outline: 2px dashed var(--accent); }
.ps-page h2 { text-align: center; margin: 10px 0; font-size: 18px; } .ps-page h3 { font-size: 14px; margin: 12px 0 6px; } .pd-head { display: flex; gap: 12px; align-items: center; border-bottom: 2px solid #333; padding-bottom: 8px; } .pd-head img { max-height: 48px; }
.pd-t, .pd-kv { width: 100%; border-collapse: collapse; margin: 6px 0; } .pd-t th, .pd-t td, .pd-kv td { border: 1px solid #999; padding: 4px 6px; vertical-align: top; } .pd-t th { background: #f1f3f5; } .pd-t td.num { text-align: right; white-space: nowrap; } .pd-kv td:nth-child(odd) { background: #f8f9fa; width: 16%; }
.pd-sign { display: grid; grid-template-columns: 1fr 1fr; text-align: center; margin-top: 30px; min-height: 110px; } .pd-day { margin: 8px 0; } .pd-foot { margin-top: 20px; font-size: 10px; color: #777; }
@media print { body.printing > *:not(.print-sheet) { display: none !important; } body.printing .print-sheet { position: static; background: #fff; overflow: visible; } body.printing .ps-page { box-shadow: none; margin: 0; width: auto; min-height: 0; padding: 0; outline: 0; } }
.ord-info { margin: 10px 0; } .ord-who { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; } .ord-who small { display: block; font-size: .7rem; letter-spacing: .05em; }
.sheet-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; } .sheet-h h1 { margin: 0; font-size: 1.2rem; }
.sheet-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; } .sheet-views { display: flex; gap: 4px; flex-wrap: wrap; } .sheet-views button { border: 0; background: none; padding: 6px 10px; border-radius: 8px; cursor: pointer; font: inherit; color: var(--muted); } .sheet-views button.on { background: var(--soft); color: var(--ink); font-weight: 600; } .sheet-views span[data-vx] { margin-left: 4px; opacity: .5; }
.sheet-wrap { overflow: auto; max-height: calc(100vh - 220px); border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
table.sheet { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: .84rem; } table.sheet th { position: sticky; top: 0; background: var(--soft); z-index: 1; cursor: pointer; user-select: none; white-space: nowrap; } table.sheet th, table.sheet td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 5px 8px; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.sheet td.num, table.sheet th.num { text-align: right; } table.sheet .rn { color: var(--muted); text-align: right; width: 36px; background: var(--soft); position: sticky; left: 0; } table.sheet tr.grp td { background: color-mix(in srgb, var(--brand) 7%, var(--panel)); } table.sheet tfoot td { position: sticky; bottom: 0; background: var(--soft); } table.sheet tbody tr:hover td { background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.as-wait #wl { display: grid; gap: 4px; max-height: 60vh; overflow: auto; } .wp { display: flex; justify-content: space-between; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); cursor: pointer; font: inherit; color: inherit; text-align: left; } .wp.on { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); } .wp small { color: var(--muted); }
.veh.pickable, .room.pickable, .seat.pickable { outline: 2px dashed var(--brand); cursor: copy; } .chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.seatmap { display: grid; grid-template-columns: repeat(var(--cols), 54px); gap: 6px; padding: 10px; background: var(--soft); border-radius: 12px; width: max-content; } .seatmap[style*="--cols:4"] .seat:nth-child(4n+2) { margin-right: 18px; }
.seat { height: 50px; border: 1px solid var(--line); border-radius: 8px 8px 4px 4px; background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; font: inherit; cursor: pointer; } .seat small { font-size: .62rem; max-width: 50px; overflow: hidden; white-space: nowrap; } .seat.taken { background: color-mix(in srgb, var(--brand) 18%, var(--panel)); border-color: var(--brand); }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; } .room { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--panel); min-height: 74px; } .room.full { background: color-mix(in srgb, var(--ok) 8%, var(--panel)); }
.btn.pulse { animation: pls 1.4s infinite; } @keyframes pls { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 30%, transparent); } }
.cf-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: center; margin: 8px 0; } .todo.vio .td-ic { background: #ede7ff; } .ceo-fc .fc-bars { height: 160px; }
.ask-fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; border: 0; border-radius: 999px; padding: 12px 18px; background: linear-gradient(135deg, #7c4dff, var(--brand)); color: #fff; font: inherit; font-weight: 600; box-shadow: 0 8px 24px #7c4dff55; cursor: pointer; }
.ask-log { max-height: 50vh; overflow: auto; display: grid; gap: 8px; margin-bottom: 10px; } .ask-q { justify-self: end; background: var(--brand); color: #fff; border-radius: 12px 12px 4px 12px; padding: 6px 10px; max-width: 80%; } .ask-a { background: var(--soft); border-radius: 12px 12px 12px 4px; padding: 8px 10px; max-width: 95%; }
.task-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(920px, 100%); background: var(--bg); border-left: 1px solid var(--line); box-shadow: -16px 0 40px #0003; z-index: 70; display: flex; flex-direction: column; }
.td-h { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--panel); border-bottom: 1px solid var(--line); } .td-h h2 { margin: 6px 0 2px; font-size: 1.25rem; outline: 0; } .td-h h2[contenteditable]:focus { box-shadow: 0 2px 0 var(--brand); }
.td-b { display: grid; grid-template-columns: 1fr 300px; flex: 1; overflow: hidden; } .td-main { overflow: auto; padding: 14px; display: grid; gap: 12px; align-content: start; } .td-side { overflow: auto; padding: 14px; border-left: 1px solid var(--line); background: var(--panel); }
.td-main textarea, .td-main input:not([type=checkbox]), .td-side input, .td-side select { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: inherit; font: inherit; }
.td-side h4 { font-size: .74rem; letter-spacing: .06em; color: var(--muted); margin: 6px 0 8px; } .kv2 { display: grid; grid-template-columns: 90px 1fr; gap: 8px 10px; align-items: center; } .kv2 > span:nth-child(odd) { color: var(--muted); font-size: .86rem; }
.rel { display: block; padding: 10px; border-radius: 10px; background: var(--soft); color: inherit; } .rel small { display: block; color: var(--muted); }
.ck-list { display: grid; gap: 2px; margin: 6px 0; } .ck { display: flex; justify-content: space-between; align-items: center; } .drop { border: 1px dashed var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 4px; } .drop.over { border-color: var(--brand); background: var(--soft); }
.td-tl { display: grid; gap: 8px; max-height: 300px; overflow: auto; margin-bottom: 8px; } .tl { font-size: .86rem; } .tl.cm > div { background: var(--soft); border-radius: 8px; padding: 6px 8px; margin-top: 2px; }
.tk-groups { display: grid; gap: 8px; } .tk-g { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; } .tk-g summary { cursor: pointer; padding: 4px 0; } .tk-row { display: flex; gap: 10px; align-items: center; padding: 7px 4px; border-top: 1px solid var(--line); flex-wrap: wrap; } .tk-row.done .tk-t { text-decoration: line-through; opacity: .6; } .tk-t { font-weight: 600; text-align: left; }
.side-pin { position: absolute; top: 18px; right: -12px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; font-size: .75rem; z-index: 6; } .side { position: sticky; } .side .nic { font-style: normal; display: inline-block; width: 20px; text-align: center; }
body.side-mini .shell { grid-template-columns: 64px 1fr; } body.side-mini .side { padding: 14px 6px; overflow-x: visible; } body.side-mini .side .nl, body.side-mini .side .grp, body.side-mini .ws-head span:not(.ws-ic), body.side-mini .side-foot .who span:not(.av), body.side-mini .side-cust, body.side-mini .side-tag, body.side-mini .fly-h span:first-child { display: none; } body.side-mini .side a { justify-content: center; padding: 8px 0; } body.side-mini .side-pin { transform: rotate(180deg); } body.side-mini .ws-head { justify-content: center; }
@media (max-width: 900px) { .op-strip { grid-template-columns: 1fr 1fr; } .td-b { grid-template-columns: 1fr; } .td-side { border-left: 0; border-top: 1px solid var(--line); } .cf-row { grid-template-columns: 1fr; } }

.ck .chk { flex: 1; margin: 0; } .ck .chk span { white-space: normal; } .ceo-fc { display: grid !important; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; } .ceo-fc .fc-w { min-width: 0; }
.ord-steps { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; } .ord-steps span { flex: 1; min-width: 100px; text-align: center; padding: 6px 4px; border-radius: 8px; background: var(--soft); color: var(--muted); font-size: .82rem; } .ord-steps span.done { background: color-mix(in srgb, var(--ok) 14%, var(--panel)); color: var(--ok); } .ord-steps span.on { background: var(--brand); color: #fff; font-weight: 600; }

/* ===================== v2.6 ===================== */
.note { padding: 9px 12px; border-radius: 8px; background: var(--info-bg); margin: 0 0 10px; font-size: .92rem; } .note.ok { background: var(--ok-bg); } .note.warn { background: var(--warn-bg); }
.sc-bar { display: inline-block; width: 54px; height: 6px; border-radius: 4px; background: var(--soft); vertical-align: middle; overflow: hidden; } .sc-bar i { display: block; height: 100%; } .sc-n { margin-left: 6px; font-size: .82rem; }
.sdot { display: inline-flex; align-items: center; gap: 6px; } .sdot i { width: 8px; height: 8px; border-radius: 50%; }
.ls-sel { border: 1px solid var(--line); border-left-width: 4px; border-radius: 6px; padding: 3px 6px; font: inherit; font-size: .84rem; background: var(--panel); color: inherit; }
.row-acts { white-space: nowrap; } .chip.sm { padding: 1px 8px; font-size: .74rem; cursor: default; } .steps-ol li { margin: 6px 0; }
/* Home AI */
.ai-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 14px; height: calc(100vh - 110px); }
.ai-hist { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; overflow: auto; } .ai-hist a { display: flex; flex-direction: column; padding: 7px 8px; border-radius: 8px; color: inherit; } .ai-hist a:hover, .ai-hist a.on { background: var(--soft); text-decoration: none; } .ai-hist a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ai-hist small { color: var(--muted); font-size: .74rem; }
.ai-main { display: flex; flex-direction: column; gap: 8px; min-height: 0; } .ai-msgs { flex: 1; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ai-m { max-width: 80%; padding: 10px 14px; border-radius: 14px; } .ai-m.me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 4px; } .ai-m.bot { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 4px; } .ai-m.bot table { margin-top: 8px; font-size: .86rem; }
.ai-hello { margin: auto; text-align: center; max-width: 640px; } .ai-logo { font-size: 38px; width: 64px; height: 64px; line-height: 64px; margin: 0 auto 8px; border-radius: 18px; background: linear-gradient(135deg, var(--brand), var(--accent)); } .ai-hello h2 { margin: 6px 0; font-size: 1.15rem; }
.ai-sugg { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px 0; } .ai-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ai-in { display: flex; gap: 8px; } .ai-in input { flex: 1; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); font: inherit; background: var(--panel); color: inherit; }
@media (max-width: 800px) { .ai-wrap { grid-template-columns: 1fr; height: auto; } .ai-hist { max-height: 160px; } .ai-msgs { min-height: 50vh; } }
/* Thu vien */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; } .lib-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; } .lib-h { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; } .lib-card p { margin: 0; font-size: .9rem; color: var(--muted); }
.poi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; } .poi-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; } .poi-card:hover { box-shadow: var(--shadow); }
.poi-img { height: 130px; background: var(--soft) center/cover no-repeat; display: grid; place-items: center; font-size: 34px; } .poi-b { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; } .poi-b small { color: var(--muted); }
.vchk { margin: 4px 0; padding-left: 18px; font-size: .88rem; } .vchk li { margin: 2px 0; } .vboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.studio { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; } .st-b .card-h { align-items: center; }
/* Ban de xuat */
.pr-page { position: relative; overflow: hidden; } .print-sheet .ps-bar { z-index: 3; } .pr-wm { position: absolute; left: 50%; top: 50%; width: 60%; transform: translate(-50%, -50%); pointer-events: none; }
.pr-hd { border-bottom: 2px solid var(--brand); padding-bottom: 6px; margin-bottom: 10px; font-weight: 700; color: var(--brand); } .pr-ft { border-top: 1px solid #ccc; margin-top: 18px; padding-top: 6px; font-size: 10px; color: #666; }
.pr-cover { padding: 0; display: flex; flex-direction: column; } .pr-cv h2 { text-align: left; } .pr-cv { flex: 1; min-height: 265mm; background: linear-gradient(160deg, #1e2235, #c2410c) center/cover; color: #fff; display: flex; align-items: center; } .pr-cv > div { padding: 22mm 16mm; width: 100%; } .pr-cv { box-shadow: inset 0 -360px 260px -120px #000a; } .pr-cv h1 { font-size: 30px; margin: 12px 0 4px; } .pr-cv h2 { font-weight: 400; margin: 0 0 14px; }
.pr-pois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; } .pr-pois figure { margin: 0; } .pr-pois img { width: 100%; height: 90px; object-fit: cover; border-radius: 6px; } .pr-pois figcaption { font-size: 10px; text-align: center; }
.pr-cta { margin-top: 18px; padding: 14px; border-radius: 10px; background: #fdf0e8; border: 1px solid #f2b134; display: flex; flex-direction: column; gap: 4px; }
/* Lich phan cong HDV */
.gantt { overflow: auto; font-size: .78rem; } .gt-h, .gt-r { display: grid; grid-template-columns: 160px repeat(var(--n), minmax(26px, 1fr)); align-items: center; min-width: calc(160px + var(--n) * 26px); }
.gt-h span { text-align: center; color: var(--muted); padding: 4px 0; } .gt-h span small { display: block; font-size: .66rem; } .gt-h .we { background: var(--soft); }
.gt-r { border-top: 1px solid var(--line); min-height: 34px; } .gt-n { grid-column: 1; font-weight: 600; padding-right: 6px; } .gt-bar { grid-row: 1; background: var(--brand); color: #fff; border-radius: 6px; padding: 3px 6px; margin: 4px 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gt-bar:hover { text-decoration: none; filter: brightness(1.1); }
/* Tu dong hoa */
.ar-card { display: flex; gap: 12px; align-items: center; } .ar-card.off { opacity: .6; } .ar-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 25%, transparent); font-size: 18px; } .ar-acts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.ar-step { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; } .ar-step > b { display: block; margin-bottom: 6px; } .ar-row { margin: 4px 0; } .ar-row select, .ar-row input { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: var(--panel); color: inherit; }
/* Email */
.seq { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0; } .seq-s { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; display: flex; flex-direction: column; font-size: .84rem; } .seq-s span { color: var(--muted); font-size: .74rem; } .seq > i { color: var(--muted); font-style: normal; }
.seq-ed { padding: 10px; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; } .seq-ed input, .seq-ed textarea { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: var(--panel); color: inherit; }
/* Quy coc & OPS */
.dep-out { border-left: 4px solid var(--warn); } .dep-in { border-left: 4px solid var(--ok); }
.od-row { display: flex; gap: 10px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--line); color: inherit; } .od-row:hover { background: var(--soft); text-decoration: none; } .od-row small { display: block; color: var(--muted); } .od-d { width: 46px; text-align: center; } .od-d b { font-size: 1.2rem; display: block; line-height: 1; }
/* Cau hinh */
.st-row { gap: 6px; margin: 4px 0; } .st-row input[data-l] { flex: 1; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; } .st-row input[type=color] { width: 32px; height: 28px; padding: 0; border: 0; background: none; }
.sm-prev { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; } .sm-deck { display: flex; flex-direction: column; gap: 4px; } .sm-deck small { color: var(--muted); } .sm-row { display: flex; gap: 4px; } .sm-aisle { width: 14px; }
.sm-seat { width: 34px; height: 28px; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; font-size: .66rem; cursor: pointer; background: var(--panel); } .sm-seat.off { background: repeating-linear-gradient(45deg, var(--soft), var(--soft) 4px, var(--line) 4px, var(--line) 8px); color: var(--muted); }
/* Tai lieu noi bo */
.doc-v h2 { margin: 0 0 4px; } .doc-body { margin: 14px 0; line-height: 1.7; white-space: normal; } .rm-list .grp { margin: 10px 4px 2px; font-size: .72rem; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
/* Huong dan nhanh */
.spot { position: fixed; inset: 0; z-index: 120; } .spot-hole { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(15, 18, 30, .6); transition: all .25s; pointer-events: none; }
.spot-tip { position: fixed; width: 320px; background: var(--panel); color: var(--ink); border-radius: 12px; padding: 14px 16px; box-shadow: 0 10px 30px #0005; display: flex; flex-direction: column; gap: 6px; } .spot-tip small { color: var(--brand); font-weight: 700; } .spot-tip p { margin: 0; font-size: .9rem; color: var(--muted); }
@media print { body.printing .pr-page { page-break-after: always; } body.printing .pr-cv { min-height: 270mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ===================== v2.7: quan tri nen tang ===================== */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; } .plan-grid.sm { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 10px; }
.plan-card { display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: var(--panel); position: relative; } .plan-card.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.plan-card input[type=radio] { position: absolute; top: 12px; right: 12px; } .plan-card .v { font-size: 1.15rem; font-weight: 700; color: var(--brand); } .plan-card .v small { font-size: .75rem; color: var(--muted); font-weight: 400; } .plan-card ul { margin: 6px 0 0; padding-left: 16px; font-size: .82rem; color: var(--muted); } .plan-card small { color: var(--muted); }
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 800px) { .tpl-grid { grid-template-columns: 1fr; } }
.prog { height: 8px; background: var(--soft); border-radius: 6px; overflow: hidden; margin: 6px 0 10px; } .prog i { display: block; height: 100%; background: var(--ok); }
.tk-msgs { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; max-height: 420px; overflow: auto; } .tk-m { padding: 8px 12px; border-radius: 10px; background: var(--soft); max-width: 90%; } .tk-m.platform { align-self: flex-end; background: color-mix(in srgb, var(--brand) 12%, var(--panel)); }
.pn { display: flex; gap: 10px; align-items: center; padding: 8px 16px; background: var(--info-bg); border-bottom: 1px solid var(--line); font-size: .9rem; } .pn.warn { background: var(--warn-bg); } .pn.maintenance { background: var(--bad-bg); } .pn > div { flex: 1; }
.rbac .rb { width: 34px; height: 28px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-weight: 700; color: var(--muted); } .rbac .rb.base { color: var(--ok); } .rbac .rb.gr { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); } .rbac .rb.rev { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); } .rbac .rb:disabled { cursor: not-allowed; opacity: .6; }
.kpi .small { margin-top: 2px; } .btn.danger { color: var(--bad); border-color: var(--bad); }

/* ===================== v2.8: giao dien kieu ung dung tren dien thoai (PWA / vo iOS-Android) ===================== */
.mtab, .m-sugg { display: none; }
body.m-app .mtab { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 12px rgba(16, 24, 40, .06); }
.mtab a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; color: var(--muted); font-size: .7rem; text-decoration: none; position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mtab a i { font-style: normal; font-size: 1.25rem; line-height: 1; filter: grayscale(.6); } .mtab a.on { color: var(--brand); font-weight: 600; } .mtab a.on i { filter: none; }
.mtab .mt-badge { position: absolute; top: 3px; left: 54%; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--bad); color: #fff; font-size: .65rem; display: grid; place-items: center; }
body.m-app .page { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
body.m-app .top { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); }
body.m-app .top .search { display: none; } body.m-app .top .apps-btn, body.m-app .top .qbar, body.m-app .top .env, body.m-app .top .br-chip, body.m-app .top a.qb[href="#/chat"], body.m-app .top #bell { display: none; }
body.m-app .side { top: 0; bottom: 0; padding-top: env(safe-area-inset-top); padding-bottom: calc(64px + env(safe-area-inset-bottom)); overflow-y: auto; }
body.m-drawer::after { content: ""; position: fixed; inset: 0; background: rgba(15, 18, 30, .45); z-index: 35; }
body.m-app input, body.m-app select, body.m-app textarea { font-size: 16px; } /* iOS khong tu phong to khi go */
body.m-app .modal { width: 100% !important; max-height: 92vh; border-radius: 16px 16px 0 0; position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); overflow-y: auto; }
body.m-app .modal-bg { align-items: flex-end; padding: 0; z-index: 70; }
body.m-app .page-head { flex-wrap: wrap; gap: 8px; } body.m-app .page-head h1 { font-size: 1.2rem; }
body.m-app .btn { min-height: 38px; } body.m-app .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
body.m-standalone { overscroll-behavior-y: none; -webkit-user-select: none; user-select: none; } body.m-standalone input, body.m-standalone textarea, body.m-standalone [contenteditable] { -webkit-user-select: text; user-select: text; }
body.m-app .m-sugg { display: flex; gap: 10px; align-items: center; position: fixed; left: 10px; right: 10px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 61; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(16, 24, 40, .18); }
.m-sugg img { width: 40px; height: 40px; border-radius: 10px; } .m-sugg div { flex: 1; display: flex; flex-direction: column; font-size: .85rem; } .m-sugg span { color: var(--muted); font-size: .78rem; }
@media print { .mtab, .m-sugg { display: none !important; } }
/* v2.8: sua bo cuc hep: menu trai thanh ngan keo (truoc day bi quy tac .side sticky o duoi ghi de) */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr) !important; }
  .shell > .side { position: fixed !important; top: 0; bottom: 0; left: -290px; width: 270px; height: 100vh; height: 100dvh; z-index: 45; transition: left .2s ease; overflow-y: auto; }
  .shell > .side.open { left: 0; box-shadow: 8px 0 30px rgba(0, 0, 0, .25); }
  .main { min-width: 0; } .top { flex-wrap: nowrap; min-width: 0; } .ws-btn { min-width: 0; }
  body { overflow-x: hidden; }
}
@media (max-width: 900px) { .grid > *, .kpis > *, .todos > * { min-width: 0; } .card { min-width: 0; overflow-x: auto; } .grid.g64, .grid.g37, .grid.g2, .grid.g3 { grid-template-columns: minmax(0, 1fr) !important; } .kpis, .todos { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* ---------- v2.9 CMS: bai viet, trinh soan thao, kho anh, lich dang ---------- */
.tabs a.tab-a { padding: 9px 12px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.tabs a.tab-a.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.ed-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ed-side .card h3 { font-size: 1rem; }
.seo-list { margin: 6px 0 0; padding-left: 18px; font-size: .84rem; } .seo-list li { margin-bottom: 3px; }
.seo-list li.lv-error { color: var(--bad); } .seo-list li.lv-warn { color: var(--warn); } .seo-list li.lv-info { color: var(--muted); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.media-it { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 0; cursor: pointer; overflow: hidden; text-align: left; display: flex; flex-direction: column; }
.media-it:hover { border-color: var(--brand); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.media-it img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--soft); }
.media-it span { font-size: .76rem; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
.media-folders { display: flex; flex-direction: column; gap: 2px; } .media-folders a { padding: 6px 8px; border-radius: 6px; color: var(--ink); text-decoration: none; display: flex; justify-content: space-between; } .media-folders a.on, .media-folders a:hover { background: var(--soft); }
.bad-t { color: var(--bad); font-style: normal; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-h { font-size: .78rem; color: var(--muted); text-align: center; font-weight: 600; }
.cal-d { min-height: 96px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: var(--panel); display: flex; flex-direction: column; gap: 3px; }
.cal-d.off { background: transparent; border-style: dashed; } .cal-d > b { font-size: .78rem; color: var(--muted); }
.cal-p { display: block; font-size: .72rem; line-height: 1.25; padding: 3px 5px; border-radius: 5px; text-decoration: none; color: var(--ink); background: var(--soft); border-left: 3px solid #9aa3ad; }
.cal-p.st-draft { border-left-color: #6b8afd; } .cal-p.st-review { border-left-color: var(--accent); background: var(--warn-bg); } .cal-p.st-scheduled { border-left-color: var(--brand); background: var(--info-bg); } .cal-p.st-published { border-left-color: var(--ok); background: var(--ok-bg); }
span.cal-p { display: inline-block; }
.chk { padding: 4px 0; } .chk.ok { color: var(--ok); } .chk.no { color: var(--bad); }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; }
.nowrap { white-space: nowrap; }
.provider-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.provider-pick label { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; display: flex; gap: 8px; align-items: center; font-weight: 500; }
.provider-pick label.on { border-color: var(--brand); background: var(--info-bg); }
.provider-pick input { width: 15px; height: 15px; margin: 0; }
@media (max-width: 1000px) { .ed-grid, .media-wrap { grid-template-columns: minmax(0, 1fr); } .ed-grid > *, .ed-side .card { min-width: 0; } .cal-d { min-height: 70px; } }
/* v2.9.1: CMS tren dien thoai */
@media (max-width: 700px) {
  .cal { grid-template-columns: 1fr; } .cal-h, .cal-d.off { display: none; } .cal-d:not(:has(.cal-p)) { display: none; }
  .cal-d { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: flex-start; } .cal-d > b { min-width: 26px; font-size: .9rem; } .cal-d .cal-p { font-size: .82rem; flex: 1 1 80%; } span.cal-p { flex: 0 0 auto; }
  .media-folders { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; } .media-folders a { white-space: nowrap; border: 1px solid var(--line); } .media-folders b, .media-folders .hint { display: none; } .media-folders .btn { width: auto !important; margin: 0 !important; white-space: nowrap; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-pick label { flex: 1 1 100%; }
  .page-head { flex-wrap: wrap; gap: 8px; } .page-head h1 { font-size: 1.25rem; }
  .top .small.muted { display: none; }
}

/* ---------- v2.9.4 Trinh soan thao: gon, chinh chu ---------- */
.rte { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 1px 2px rgba(20,24,40,.04); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.rte:focus-within { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.rte-bar { display: flex; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 92%, var(--line)); position: sticky; top: 0; z-index: 3; overflow-x: auto; scrollbar-width: none; }
.rte-bar::-webkit-scrollbar { display: none; }
.rte-grp { display: inline-flex; gap: 1px; flex: 0 0 auto; }
.rte-sep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; flex: 0 0 auto; }
.rte-grow { flex: 1 1 auto; min-width: 8px; }
.rte-bar button { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 7px; background: transparent; color: var(--ink); opacity: .78; cursor: pointer; padding: 0; transition: background .12s, opacity .12s, color .12s; }
.rte-bar button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); opacity: 1; }
.rte-bar button.on { background: color-mix(in srgb, var(--brand) 13%, transparent); color: var(--brand); opacity: 1; }
.rte-bar button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.rte-block { height: 32px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--ink); font: inherit; font-size: .88rem; padding: 0 26px 0 10px; cursor: pointer; flex: 0 0 auto; min-width: 140px; }
.rte-area { min-height: 380px; max-height: 70vh; overflow-y: auto; padding: 22px 28px 28px; outline: none; font-size: 1rem; line-height: 1.75; color: var(--ink); }
.rte-area > *:first-child { margin-top: 0; }
.rte-area:empty::before { content: attr(data-ph); color: var(--muted); pointer-events: none; }
.rte-area p { margin: 0 0 .9em; }
.rte-area h2 { font-size: 1.35rem; line-height: 1.3; margin: 1.4em 0 .5em; font-weight: 700; }
.rte-area h3 { font-size: 1.12rem; line-height: 1.35; margin: 1.2em 0 .4em; font-weight: 650; }
.rte-area ul, .rte-area ol { padding-left: 1.4em; margin: 0 0 .9em; } .rte-area li { margin: .2em 0; }
.rte-area a { color: var(--brand); text-decoration: none; font-weight: 600; }
.rte-area blockquote { margin: 1em 0; padding: 10px 16px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 0 8px 8px 0; }
.rte-area figure { margin: 1.2em 0; } .rte-area img { max-width: 100%; border-radius: 10px; display: block; }
.rte-area figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 6px; }
.rte-area table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; } .rte-area td, .rte-area th { border: 1px solid var(--line); padding: 7px 10px; text-align: left; } .rte-area th { background: var(--soft); font-weight: 600; }
.rte-area iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; margin: 1em 0; }
.rte-src { display: block; width: 100%; min-height: 380px; max-height: 70vh; border: 0; padding: 16px 20px; font-size: .84rem; line-height: 1.6; resize: vertical; background: #1e2235; color: #e7e9f3; outline: none; }
.rte-foot { display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); background: color-mix(in srgb, var(--panel) 92%, var(--line)); }
.rte-foot .ok { color: var(--ok); font-weight: 600; } .rte-foot .warn { color: var(--warn); font-weight: 600; }
.rte.full { position: fixed; inset: 12px; z-index: 80; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(10,14,30,.35); }
.rte.full .rte-area, .rte.full .rte-src { flex: 1; max-height: none; } .rte.full .rte-area { padding: 32px max(28px, calc(50% - 380px)); }
body.rte-lock { overflow: hidden; }
@media (max-width: 700px) { .rte-area { padding: 16px; min-height: 300px; } .rte-hint { display: none; } .rte-block { min-width: 118px; } .rte.full { inset: 0; border-radius: 0; } }

/* v2.9.7 Quan tri quang cao */
.ad-ed{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:12px 0;background:var(--panel)}
.ad-ed.off{opacity:.6}
.ad-ed .form{margin-top:8px}

/* v2.9.8 Quan tri khach san / visa */
table.mini{width:100%;border-collapse:collapse;font-size:.85rem}table.mini th,table.mini td{padding:4px;border-bottom:1px solid var(--line);text-align:left}table.mini input{width:100%;min-width:60px;padding:6px 8px}
.code-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:6px;max-height:220px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:8px}
.thumb{display:inline-flex;align-items:center;gap:4px}

.set-card>summary{cursor:pointer;list-style:none}.set-card>summary::-webkit-details-marker{display:none}.set-card label.check{display:flex;margin:6px 0}
.brand-pick{display:flex;gap:18px;flex-wrap:wrap;margin-bottom:10px}.brand-pick>div{display:flex;flex-direction:column;gap:6px}.bp-v{min-height:48px;display:flex;align-items:center;gap:8px}

/* v3.0 bang dien thoai: chuyen sang khoi v3.0.5 (container query) */
/* v3.0.1 */
tr.hl-row td{background:color-mix(in srgb,var(--accent) 22%,transparent)!important}tr.hl-row{outline:2px solid var(--accent);outline-offset:-2px}
@media (max-width:700px){.table-wrap table[data-cards] tr.hl-row{outline:2px solid var(--accent)}}
@media (max-width:900px){.side-pin{display:none!important}}
a.kpi{display:block;color:inherit;text-decoration:none;position:relative;transition:box-shadow .15s,transform .15s}a.kpi:hover{box-shadow:0 8px 20px rgba(20,24,40,.08);transform:translateY(-1px)}.kpi-more{display:inline-block;margin-top:6px;font-size:.76rem;font-weight:600;color:var(--brand)}a.kpi:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
/* v3.0.4 Lien ket: khong gach chan */
a, a:hover, a:focus { text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent, #f2b134); outline-offset: 2px; border-radius: 4px; }
/* v3.0.5 Menu trai: thu gon icon + tooltip, re vao bung ra, nut mo/dong day du; mobile cham ngoai de dong */
.btn.menu-btn{display:inline-flex}
.side-tip{position:fixed;z-index:90;transform:translateY(-50%);background:#111522;color:#fff;font-size:.82rem;font-weight:600;padding:6px 10px;border-radius:8px;white-space:nowrap;pointer-events:none;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.side-tip::before{content:"";position:absolute;left:-5px;top:50%;margin-top:-5px;border:5px solid transparent;border-left:0;border-right-color:#111522}
.side-tip[hidden]{display:none}
.side-scrim{position:fixed;inset:0;background:rgba(15,18,30,.45);z-index:44;opacity:0;pointer-events:none;transition:opacity .2s}.side-scrim.on{opacity:1;pointer-events:auto}
body.nav-open::after,body.m-drawer::after{display:none}
.side-pin{display:grid;place-items:center;font-size:.85rem;line-height:1}.side-pin:hover{background:var(--brand);color:#fff;border-color:var(--brand)}
@media (min-width:901px){
  body.side-mini .side{transition:width .18s ease,box-shadow .18s;z-index:50;width:64px}
  body.side-mini.side-peek .side{width:240px;padding:14px 10px;box-shadow:10px 0 34px rgba(10,14,30,.28)}
  body.side-mini.side-peek .side .nl{display:inline}
  body.side-mini.side-peek .side .grp,body.side-mini.side-peek .side-cust,body.side-mini.side-peek .side-tag{display:block}
  body.side-mini.side-peek .ws-head span:not(.ws-ic),body.side-mini.side-peek .side-foot .who span:not(.av),body.side-mini.side-peek .fly-h span:first-child{display:revert}
  body.side-mini.side-peek .side a{justify-content:space-between;padding:7px 10px}body.side-mini.side-peek .ws-head{justify-content:flex-start}
  
  body.side-mini .side .nic{font-size:1.05rem;width:22px}
}
@media (max-width:900px){
  .side-pin{display:grid!important;position:absolute;top:16px;right:10px;background:rgba(255,255,255,.1);color:#fff;border-color:rgba(255,255,255,.2)}
  .ws-head{width:calc(100% - 54px)}
  .shell>.side{z-index:46}
  body.side-mini-m .shell>.side{width:84px;left:-100px;padding:12px 4px}body.side-mini-m .shell>.side.open{left:0}
  body.side-mini-m .side-pin{position:static;margin:2px auto 6px;transform:rotate(0)}
  body.side-mini-m .ws-head{width:auto;margin:4px;justify-content:center;padding:8px 0}body.side-mini-m .ws-head span:not(.ws-ic),body.side-mini-m .side .grp,body.side-mini-m .side-cust,body.side-mini-m .side-tag,body.side-mini-m .side-foot .who span:not(.av),body.side-mini-m .fly-h span:first-child,body.side-mini-m .side .badge{display:none}
  body.side-mini-m .side a{justify-content:center;padding:8px 2px;text-align:center}
  body.side-mini-m .side a>span:first-child{display:flex;flex-direction:column;align-items:center;gap:3px}
  body.side-mini-m .side .nic{font-size:1.15rem;width:auto}body.side-mini-m .side .nl{font-size:.64rem;line-height:1.15;max-width:76px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal}
  
}
body.side-mini .side-pin{transform:none}
/* v3.0.5 nut thu gon nam trong menu, khong bi che; bo thanh cuon ngang */
.side{overflow-x:hidden}
@media (min-width:901px){
  .side-pin{position:absolute;top:22px;right:10px;width:28px;height:28px;background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.22);border-radius:8px;z-index:7}
  .ws-head{width:calc(100% - 52px)}
  body.side-mini .side-pin{position:static;margin:4px auto 6px;flex:0 0 auto}
  body.side-mini .ws-head{width:auto;margin:4px}
  body.side-mini.side-peek .side-pin{position:absolute;margin:0}body.side-mini.side-peek .ws-head{width:calc(100% - 52px);margin:10px 8px 4px}
}
/* v3.0.5 Console: danh sach phieu ho tro gon (nhieu dong hon) */
.cl-sort{display:flex;gap:4px;align-items:center;flex-wrap:wrap;margin:0 0 6px;font-size:.78rem;color:var(--muted)}.cl-sort button{border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:999px;padding:2px 9px;font:inherit;cursor:pointer}.cl-sort button.on{background:var(--side,#1e2235);color:#fff;border-color:transparent}
.cl-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.tk-li{display:block;padding:7px 10px;border-top:1px solid var(--line);color:var(--ink);border-left:3px solid transparent;transition:background .12s}.tk-li:first-child{border-top:0}
.tk-li:hover{background:var(--soft)}.tk-li.on{background:color-mix(in srgb,var(--brand) 9%,var(--panel));border-left-color:var(--brand)}
.tk-l1{display:flex;align-items:center;gap:6px;font-size:.82rem}.tk-l1 b{color:var(--brand)}.tk-l1 .tk-st{margin-left:auto}.tk-l1 .pill{font-size:.68rem;padding:1px 7px}.tk-l1 time{color:var(--muted);font-size:.74rem;white-space:nowrap;min-width:44px;text-align:right}
.tk-sub{font-weight:600;font-size:.88rem;line-height:1.3;margin:2px 0 1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tk-meta{font-size:.74rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tk-li.done .tk-sub{color:var(--muted);font-weight:500}

/* v3.0.5 Bang du lieu: gon, chuyen nghiep; bang hep (khung chia doi) & dien thoai -> the 2 cot */
.table-wrap{container-type:inline-size}
.table-wrap table{font-size:.88rem}
.table-wrap th{padding:8px 10px;font-size:.7rem;white-space:nowrap;vertical-align:middle;border-bottom:1px solid var(--line)}
.table-wrap td{padding:7px 10px;vertical-align:middle;line-height:1.35}
.table-wrap td .small,.table-wrap td small{font-size:.78rem}
.table-wrap td.num,.table-wrap td .pill,.table-wrap td time{white-space:nowrap}
.table-wrap td .pill{font-size:.72rem}
.table-wrap tbody tr{transition:background .12s}.table-wrap tbody tr:hover td{background:color-mix(in srgb,var(--brand) 5%,var(--panel))}
.table-wrap tbody tr:last-child td{border-bottom:0}
.table-wrap td:first-child,.table-wrap th:first-child{padding-left:14px}.table-wrap td:last-child,.table-wrap th:last-child{padding-right:14px}
.table-wrap td>a:first-child>b{color:var(--brand)}
@container (max-width:560px){
  table[data-cards]{display:block;border:0;min-width:0!important;width:100%}
  table[data-cards] thead{display:none}
  table[data-cards] tbody{display:grid;gap:8px;padding:8px}
  table[data-cards] tr{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:10px 12px;box-shadow:0 1px 2px rgba(20,24,40,.04)}
  table[data-cards] tbody tr:nth-child(even) td,table[data-cards] tbody tr:hover td{background:transparent}
  table[data-cards] td{display:flex;flex-direction:column;gap:1px;border:0!important;padding:2px 0!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere;min-width:0;font-size:.86rem}
  table[data-cards] td::before{content:attr(data-label);color:var(--muted);font-size:.68rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em}
  table[data-cards] td[data-label=""]::before{display:none}
  table[data-cards] td:empty{display:none}
  table[data-cards] td.cc-h{order:-1;grid-column:1/-1;font-size:.95rem;padding-bottom:6px!important;border-bottom:1px dashed var(--line)!important;margin-bottom:2px}
  table[data-cards] td.cc-h::before{display:none}
  table[data-cards] td:has(.btn,button,select){grid-column:1/-1;flex-direction:row;flex-wrap:wrap;gap:6px;align-items:center}table[data-cards] td:has(.btn,button,select)::before{width:100%}
  table[data-cards] td .btn{justify-self:start}
}
@media (max-width:700px){
  .table-wrap{border:0;background:transparent}
  .table-wrap table[data-cards] tbody{padding:0}
}
/* v3.0.5 thanh loc bang: dien thoai gom vao nut "Loc" */
.dt-ftog{display:none}.dt-more{display:contents}
.dt-fn{display:inline-grid;place-items:center;min-width:18px;height:18px;border-radius:9px;background:var(--brand);color:#fff;font-size:.7rem;margin-left:2px}.dt-fn[hidden]{display:none}
@media (max-width:700px){
  .dt-bar{display:flex!important;flex-wrap:wrap;gap:6px}
  .dt-bar>.dt-q{flex:1 1 0;min-width:0;grid-column:auto}
  .dt-ftog{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;white-space:nowrap}
  .dt-bar.open .dt-ftog{background:var(--side,#1e2235);color:#fff}
  .dt-more{display:none;width:100%}
  .dt-bar.open .dt-more{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
  .dt-more select,.dt-more input,.dt-more label.inline{width:100%;min-width:0}
  .dt-quick{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding-bottom:4px;scrollbar-width:none}.dt-quick::-webkit-scrollbar{display:none}.dt-quick>*{flex:0 0 auto}
  .dt-tabs{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none}.dt-tabs::-webkit-scrollbar{display:none}.dt-tabs>*{flex:0 0 auto;white-space:nowrap}
}
@container (max-width:560px){
  table[data-cards] td{align-items:flex-start}
  table[data-cards] td.cc-h{text-align:left!important;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px}
  table[data-cards] td>*{max-width:100%}
}
/* v3.0.5b nut thu gon/mo rong: nho gon o chan menu, khong lam hep o Ban lam viec */
.side-foot{position:relative;display:flex;align-items:center;gap:8px}.side-foot .who{flex:1;min-width:0}
.side .side-pin,body.side-mini .side .side-pin,body.side-mini.side-peek .side .side-pin{position:static!important;order:2;flex:0 0 auto;width:24px;height:24px;margin:0!important;border-radius:6px;font-size:.78rem;background:transparent;color:var(--side-ink);border:1px solid rgba(255,255,255,.18);opacity:.75;transform:none}
.side .side-pin:hover{opacity:1;background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.35)}
.ws-head,body.side-mini.side-peek .ws-head{width:calc(100% - 16px)!important}
body.side-mini .side-foot,body.side-mini-m .side-foot{flex-direction:column;gap:6px;padding:10px 0}
body.side-mini.side-peek .side-foot{flex-direction:row;padding:10px 12px}
@media (max-width:900px){.side .side-pin{display:grid!important}body.side-mini-m .ws-head{width:auto!important}}
body.side-mini:not(.side-peek) .ws-head{width:auto!important}
.side-foot{position:sticky;bottom:-14px;background:var(--side);z-index:3;margin-bottom:-14px;padding-bottom:14px}
/* v3.0.8 Ra soat man hinh nho (Android/iOS): khong de noi dung bi che/cat */
.seg{max-width:100%;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}.seg::-webkit-scrollbar{display:none}.seg button{white-space:nowrap;flex:0 0 auto}
@media (max-width:700px){
  .dash-h{flex-wrap:wrap;gap:8px 10px}.dash-h>span:not(.ws-ic){flex:1 1 0;min-width:0}.dash-h h1{font-size:1.15rem}.dash-h small{display:block;font-size:.8rem;line-height:1.35}
  .dash-h .seg,.page-head .seg{margin-left:0;width:100%;display:flex}.dash-h .seg button,.page-head .seg button{flex:1 0 auto;padding:7px 10px}
  .page-head{align-items:flex-start}.page-head>h1{flex:1 1 100%;min-width:0;overflow-wrap:anywhere}.page-head>.row{width:100%;flex-wrap:wrap;gap:6px}.page-head>.row>*{max-width:100%}.page-head>.row select,.page-head>.row input{flex:1 1 140px;min-width:0}
  .row{flex-wrap:wrap}.row>select,.row>input:not([type=checkbox]):not([type=radio]){min-width:0;max-width:100%}
  .ask-fab{right:12px;bottom:calc(74px + env(safe-area-inset-bottom));padding:10px 14px;font-size:.85rem;box-shadow:0 6px 18px rgba(80,50,160,.35)}
  body.m-app .ask-fab{bottom:calc(76px + env(safe-area-inset-bottom))}
  .page{padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}
  svg .ax-x.odd{display:none}
  .card,.kpi,.todo{min-width:0;overflow-wrap:anywhere}
  .modal,.dlg{max-width:calc(100vw - 16px)!important}
  img,video,iframe{max-width:100%}
  pre,code{white-space:pre-wrap;word-break:break-word}
}
@media (max-width:380px){svg .ax-x.n3{display:none}svg .ax-x.odd:not(.n3){display:block}}
/* v3.0.8 Thong bao: chua xem dam + cham; da xem mo, nhan nho "Da xem" */
.nt-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:-4px 0 8px}
.nt-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px;overflow:hidden;max-height:min(62vh,520px);overflow-y:auto}
.nt-it{display:flex;gap:10px;align-items:flex-start;padding:9px 12px;border-top:1px solid var(--line);color:var(--ink);background:color-mix(in srgb,var(--brand) 5%,var(--panel))}.nt-it:first-child{border-top:0}
.nt-it:hover{background:color-mix(in srgb,var(--brand) 10%,var(--panel))}
.nt-dot{flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:var(--brand);margin-top:6px}
.nt-b{display:flex;flex-direction:column;gap:2px;min-width:0}.nt-t{font-weight:600;line-height:1.35}.nt-m{font-size:.76rem;color:var(--muted)}
.nt-it.seen{background:var(--panel)}.nt-it.seen .nt-dot{background:transparent;border:1px solid var(--line)}.nt-it.seen .nt-t{font-weight:400;color:var(--muted)}
.nt-seen{font-size:.7rem;color:#17673a;font-weight:600}
.nt-it.sev-high:not(.seen) .nt-dot{background:#c62828}
@media (max-width:700px){
  .btn{white-space:nowrap}.card h3:has(.btn){flex-wrap:wrap;gap:6px}
  .ceo-fc{gap:2px!important}.ceo-fc .fc-w small{font-size:.62rem;white-space:nowrap}.ceo-fc .fc-y{display:none}.ceo-fc small.fc-odd{visibility:hidden}
  .table-wrap:has(table input, table select){overflow-x:auto}.table-wrap table:has(input,select):not([data-cards]){min-width:560px}
  .tbl-clean{display:block;overflow-x:auto;white-space:nowrap}.tbl-clean td{white-space:nowrap}.tbl-clean td .small{white-space:normal;min-width:140px}
  .modal{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 24px);overflow:auto}.modal .foot{position:sticky;bottom:-1px;background:var(--panel);padding-top:8px}
}
@media (max-width:700px){
  table:has(td input,td select):not([data-cards]):not(.mini):not(.sheet){display:block;overflow-x:auto;max-width:100%}
  table:has(td input,td select):not([data-cards]) td{white-space:nowrap}table:has(td input,td select):not([data-cards]) td input:not([type=checkbox]),table:has(td input,td select):not([data-cards]) td select{min-width:72px}
}
@media (max-width:700px){.ask-fab{width:50px;height:50px;padding:0!important;display:grid;place-items:center;font-size:1.3rem}.ask-fab .af-t{display:none}}
/* v3.0.9 Tac vu dinh ky (cron) */
.cron-st{padding:10px 14px;border-radius:10px;margin-bottom:12px;font-weight:600}.cron-st.ok{background:#e7f6ec;color:#17673a}.cron-st.warn{background:#fff4e0;color:#8a4b00}
.cron-url{display:flex;gap:6px;align-items:center;margin:6px 0}.cron-url input{flex:1;min-width:0;font-family:ui-monospace,Consolas,monospace;font-size:.85rem}
.cron-list{display:grid;gap:10px;margin-top:10px}.cron-it{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--panel)}
.cron-h{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.cron-when{margin-left:auto;font-size:.85rem;color:var(--muted)}
.cron-row{display:flex;gap:8px;align-items:center;margin-top:6px}.cron-row .lbl{flex:0 0 92px;font-size:.78rem;color:var(--muted)}
.cron-row code{flex:1;min-width:0;background:var(--soft);border-radius:6px;padding:5px 8px;font-size:.8rem;overflow-x:auto;white-space:nowrap}
.cron-how{border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin:8px 0}.cron-how summary{cursor:pointer}.cron-how ol{margin:8px 0 4px;padding-left:20px}.cron-how li{margin:4px 0}
.btn.ok{background:#17673a;color:#fff;border-color:#17673a}
@media (max-width:700px){.cron-row{flex-wrap:wrap}.cron-row .lbl{flex-basis:100%}.cron-when{margin-left:0;flex-basis:100%}.cron-url{flex-wrap:wrap}.cron-url input{flex-basis:100%}}

/* v3.1.2: o ten trong bang: canh trai, toi da 2 dong roi '…', re chuot xem du (title) */
td.nm{text-align:left;vertical-align:middle;max-width:340px}td.nm .clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35;word-break:break-word}td.nm .clamp1{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}td.nm .fav{display:inline-block;width:1.4em;text-align:left}td.nm .small.clamp1{padding-left:1.4em}
/* v3.2.0: so tai khoan cua goi + chon cach thanh toan */
.seat-bar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;background:var(--panel,#fff);border:1px solid var(--line,#e6e1da);border-radius:12px;padding:10px 14px;margin-bottom:10px}
.seat-bar .sb-t{display:flex;flex-direction:column;line-height:1.3}.seat-bar .sb-bar{height:8px;border-radius:99px;background:#efe9e1;overflow:hidden}.seat-bar .sb-bar i{display:block;height:100%;background:#1f8a4c;border-radius:99px}
.seat-bar.full{border-color:#f2b134;background:#fff8e8}.seat-bar.full .sb-bar i{background:#c2410c}
@media (max-width:640px){.seat-bar{grid-template-columns:1fr}}
.pay-pick{display:grid;gap:8px}.pay-opt{display:grid;grid-template-columns:18px 28px 1fr;align-items:center;gap:10px;border:1px solid var(--line,#e6e1da);border-radius:10px;padding:10px 12px;cursor:pointer}.pay-opt:has(input:checked){border-color:#c2410c;background:#fff6f0}.pay-opt .pi{font-size:1.3rem}.pay-opt small{display:block;color:var(--muted,#6b6f7b)}

/* v3.2.2: giao dien toi – cac o "dang chon"/to mau nen sang co dinh duoc doi sang nen toi tuong ung de chu luon doc ro */
[data-theme="dark"] .rm-list a.on { background: rgba(194, 65, 12, .18); border-color: rgba(253, 186, 116, .55); color: var(--ink); }
[data-theme="dark"] .rm-list a.on b { color: #fdba74; }
[data-theme="dark"] .rm-list a:hover:not(.on) { background: var(--soft); }
[data-theme="dark"] .hd.ok { background: rgba(16, 185, 129, .12); border-color: rgba(52, 211, 153, .35); }
[data-theme="dark"] .hd.warn { background: rgba(245, 158, 11, .12); border-color: rgba(252, 211, 77, .35); }
[data-theme="dark"] .hd.bad { background: rgba(239, 68, 68, .12); border-color: rgba(252, 165, 165, .35); }
[data-theme="dark"] .hd.lv { background: rgba(139, 92, 246, .14); border-color: rgba(196, 181, 253, .35); }
[data-theme="dark"] .hd.hol, [data-theme="dark"] .hd.info { background: rgba(59, 130, 246, .12); border-color: rgba(147, 197, 253, .35); }
[data-theme="dark"] .hd em { color: #fbbf24; }
[data-theme="dark"] .pill.vio { background: rgba(139, 92, 246, .2); color: #d8b4fe; }
[data-theme="dark"] .pr-cta { background: rgba(242, 177, 52, .1); }
.fs { text-shadow: 0 1px 2px rgba(0, 0, 0, .45); font-weight: 600; } /* v3.2.2: chu trang tren o pheu mau sang van doc ro */
/* v3.3.0: tieu de dong bam de mo chi tiet */
.tlink { color: var(--brand); cursor: pointer; text-decoration: none; }
.tlink:hover { filter: brightness(.8); }
.tlink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
/* v3.3.0: o anh keo-tha dung chung */
.imgf-host .lbl { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.imgf { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; border-radius: 10px; }
.imgf.drag { outline: 2px dashed var(--brand); outline-offset: 4px; background: rgba(194, 65, 12, .04); }
.imgf-list { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.imgf-it { position: relative; width: 132px; height: 96px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #f3f1ee; }
.imgf-it img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imgf-it.over { outline: 2px solid var(--brand); }
.imgf-it.up img, .imgf-it.wait img { opacity: .45; }
.imgf-it.err { border-color: #c0362c; }
.imgf-cover { position: absolute; left: 4px; top: 4px; background: #2e7d32; color: #fff; font-size: .7rem; padding: 1px 6px; border-radius: 10px; }
.imgf-st { position: absolute; left: 0; right: 0; bottom: 0; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: .72rem; padding: 3px; cursor: default; }
.imgf-it.err .imgf-st { background: #c0362c; cursor: pointer; }
.imgf-act { position: absolute; right: 3px; top: 3px; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.imgf-it:hover .imgf-act, .imgf-it:focus-within .imgf-act { opacity: 1; }
.imgf-act button { width: 24px; height: 24px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .92); cursor: pointer; font-size: .8rem; line-height: 1; padding: 0; }
@media (hover: none) { .imgf-act { opacity: 1; } }
.imgf-drop { flex: 1 1 240px; min-height: 96px; border: 1.5px dashed var(--line); border-radius: 10px; padding: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: .88rem; }
.imgf-drop .small { flex-basis: 100%; }
.imgf-drop:focus-visible { outline: 2px solid var(--accent); }
/* v3.3.0: san pham – hanh trinh & khoi hanh, chon diem, lich trinh nhieu diem */
.full-span { grid-column: 1 / -1; }
.rt-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line); align-items: start; }
.rt-row:first-of-type { border-top: 0; }
.rt-l { font-weight: 600; font-size: .9rem; padding-top: 6px; }
.rt-v input { width: 100%; }
.dlist { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dchip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.dlist .dchip { display: flex; cursor: grab; }
.dlist .dchip.over, .stops .stop.over, .stop-drop.over { outline: 2px solid var(--brand); }
.dchip.origin { background: #fff7ed; border-color: #fdba74; }
.dn { flex: 0 0 22px; height: 22px; border-radius: 50%; background: #e7e5e4; color: #444; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 700; }
.dchip.main .dn { background: #2e7d32; color: #fff; }
.dname { flex: 1; min-width: 0; }
.dact { display: inline-flex; gap: 3px; margin-left: auto; }
.dact button, .dact select { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 2px 7px; font-size: .78rem; cursor: pointer; min-height: 26px; }
.dact button:disabled { opacity: .35; cursor: default; }
.btn.dash { border-style: dashed; background: #fffaf5; color: var(--brand); }
.pill.sm { font-size: .7rem; padding: 1px 6px; }
.pp-reg { flex-wrap: wrap; margin-bottom: 8px; }
.pp-sel { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pp-chip { display: inline-flex; align-items: center; gap: 5px; background: #fff7ed; border: 1px solid #fdba74; border-radius: 14px; padding: 2px 4px 2px 8px; font-size: .85rem; }
.pp-chip b { color: var(--brand); }
.pp-chip button { border: 0; background: transparent; cursor: pointer; font-size: 1rem; line-height: 1; }
.pp-list { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.pp-it { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pp-it:last-child { border-bottom: 0; }
.pp-it:hover { background: #faf7f3; }
.pp-it input { width: 16px; height: 16px; margin: 0; flex: 0 0 auto; }
.pp-it.temp { color: var(--brand); }
.itd { margin-bottom: 12px; }
.itd-h { display: flex; gap: 8px; align-items: center; }
.itd-t { flex: 1; font-weight: 600; }
.itd-act { display: inline-flex; gap: 2px; }
.itd-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 8px 0; font-size: .88rem; }
.itd-meta .check { display: inline-flex; align-items: center; gap: 6px; }
.itd-meta .check input { width: 15px; height: 15px; margin: 0; }
.itd-on { display: inline-flex; align-items: center; gap: 6px; }
.itd-on input { width: 160px; }
.stops { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.stop { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: grab; }
.stop .st-time { width: 70px; padding: 3px 6px; }
.stop-drop { border: 1.5px dashed var(--line); border-radius: 8px; padding: 6px; text-align: center; color: var(--muted); font-size: .8rem; }
.itd-x { width: 100%; margin-top: 8px; }
@media (max-width: 720px) { .rt-row { grid-template-columns: 1fr; gap: 4px; } .dact select { max-width: 96px; } .itd-h { flex-wrap: wrap; } }
#gmode { flex-wrap: wrap; }
#gmode button { flex: 1 1 220px; white-space: normal; }
.pd-done { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 12px; font-size: .82rem; }
.pd-pct { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-right: 6px; }
.pd-ok { color: #2e7d32; background: #edf7ee; border-radius: 12px; padding: 2px 9px; }
.pd-miss { border: 1px dashed #e8a33d; background: #fffaf0; color: #9a5b00; border-radius: 12px; padding: 2px 9px; cursor: pointer; font-size: .82rem; }
.pp-t input { width: 100%; min-width: 90px; padding: 5px 6px; }
.faq-it { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.faq-it textarea { grid-column: 1; }
.faq-it button { grid-row: 1; grid-column: 2; }
/* v3.4.0: goi dich vu, chang dieu hanh, tai lieu */
.pk { margin: 10px 0; padding: 12px; }
.pk-h, .pe-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pk-h input[data-pk] { flex: 1; min-width: 180px; font-weight: 600; }
.pe { border-left: 3px solid var(--accent); padding: 8px 0 8px 10px; margin: 10px 0; }
.pe-h input[data-pe$="|name"] { flex: 1; min-width: 160px; }
.pe-h label { display: inline-flex; gap: 4px; align-items: center; font-size: .85rem; }
.pk-t input, .pk-t select, .lg-t input, .lg-t select { width: 100%; min-width: 70px; padding: 4px 6px; }
.pk-t input.pct { min-width: 60px; }
.lg-t input.sm-n { min-width: 54px; width: 60px; }
.pk-tiers { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 6px; }
.pk-tiers input { width: 150px; padding: 3px 6px; }
.pk-t .neg { color: #c0362c; font-weight: 600; } .pk-t .pos { color: #2e7d32; }
.doc-it { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.doc-it input[data-dc] { flex: 1; min-width: 180px; }
.doc-it .check { display: inline-flex; gap: 6px; align-items: center; }
.doc-it .check input { width: 15px; height: 15px; margin: 0; }
.doc-ic { font-size: 1.3rem; }
.doc-drop { margin-top: 10px; }
.doc-drop.over { outline: 2px dashed var(--brand); }
.rowdl { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 6px 14px; margin: 0; }
.rowdl dt { color: var(--muted); font-size: .85rem; }
.rowdl dd { margin: 0; }
/* v3.5.0: bieu tuong OpsTour khi cong ty chua tai logo */
.side .logo i { background: url(/assets/brand/icon-tile.svg) center / cover no-repeat; border-radius: 8px; }
.pr-ph { background: url(/assets/brand/noimage-orange-1x1.svg) center / cover no-repeat; }
/* v3.5.0: o soan thao gon */
.mini-ed { border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
.mini-tb { display: flex; gap: 2px; align-items: center; padding: 4px 6px; border-bottom: 1px solid var(--line); background: #faf8f5; border-radius: 10px 10px 0 0; }
.mini-tb button { border: 0; background: transparent; min-width: 28px; height: 26px; border-radius: 6px; cursor: pointer; color: var(--ink); font: 600 .85rem/1 var(--font); }
.mini-tb button:hover, .mini-tb button:focus-visible { background: #efe9e1; outline: none; }
.mini-sep { width: 1px; height: 16px; background: var(--line); margin: 0 4px; }
.mini-area { min-height: 84px; max-height: 420px; overflow: auto; padding: 10px 12px; outline: none; line-height: 1.6; font: inherit; }
.mini-area:focus { box-shadow: inset 0 0 0 2px rgba(194, 65, 12, .25); border-radius: 0 0 10px 10px; }
.mini-area ul, .mini-area ol { padding-left: 22px; margin: 4px 0; }
.mini-area p { margin: 0 0 6px; }
.mini-area { position: relative; } .mini-ed.mini-empty .mini-area::before { content: attr(data-ph); color: var(--muted); pointer-events: none; position: absolute; left: 12px; top: 10px; right: 12px; text-align: left; }
.mini-ed.ro .mini-tb { display: none; }

/* v3.6.1: Ctrl+K – bang tac vu nhanh */
.top .results { min-width: min(420px, calc(100vw - 24px)); max-height: min(70vh, 520px); z-index: 85; }
.top .results a { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink); }
.top .results a.on, .top .results a:hover { background: color-mix(in srgb, var(--brand) 9%, var(--panel)); }
.top .results .qr-h { padding: 8px 10px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--soft); position: sticky; top: 0; z-index: 1; }
.top .results .kbd { font-size: .7rem; opacity: .6; }

/* v3.6.1: soan thao gon – anh, tieu de */
.mini-area img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 6px 0; }
.mini-area h3 { font-size: 1.02rem; margin: 8px 0 4px; }
.mini-tb .mini-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
/* v3.6.1: hop thu khach – bong tin dang khoi (khong bi .msg cua chat noi bo bien thanh hang ngang, tran man hinh) */
.chat .stream .msg { display: block; overflow-wrap: anywhere; max-width: min(72%, 560px); }
.chat .stream .msg [data-use] { display: block; margin-top: 8px; }
.chat .stream .msg .small { margin-top: 2px; }
@media (max-width: 700px) { .chat .stream .msg { max-width: 90%; } }
.top .search { min-width: 240px; } .top .search input { padding-right: 62px; text-overflow: ellipsis; }
@media (max-width: 1100px) { .top .search { min-width: 160px; } .top .search input { padding-right: 10px; } }
@media (max-width: 700px) { .chat #rf { flex-wrap: wrap; gap: 6px; } .chat #rf textarea { flex: 1 1 100%; min-height: 64px; } }
