/* TourApp - 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 TourApp "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: underline; }
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; }
.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-left: 210px; margin-top: -38px; }
.fly:hover .fly-m, .fly:focus-within .fly-m { display: block; } .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; } }
