/* TummyStay PMS — demo showcase. Static, sample data only.
   Look copied from live_code: dark sidebar, Excel-green ribbon, compact gridded sheets. */
:root {
  --g: #107c41; --g-dk: #0a5c30; --g-soft: #e6f2ea; --xg: #217346; --xg-dk: #1a5c38;
  --r: #b3261e; --r-soft: #fde7e5; --y: #7a5b00; --y-soft: #fff4ce; --b: #0b5cad; --b-soft: #e3eefa;
  --p: #6a3fb5; --p-soft: #efe8fb;
  --ink: #222; --mut: #666; --line: #d2d2d2; --grid: #e0e0e0; --head: #f3f2f1;
  --side: #1a2530; --side-line: #2d3a45; --bg: #f0f2f5;
}
* { box-sizing: border-box; font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-size: 12px; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- demo strip ---------- */
.demo-strip { position: fixed; top: 0; left: 0; right: 0; height: 26px; z-index: 1200; background: #111b24; color: #cfd8df;
  display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: 11px; }
.demo-strip b { color: #fff; letter-spacing: .3px; }
.demo-strip .tag { background: #f5b301; color: #222; font-weight: 700; padding: 1px 7px; border-radius: 2px; font-size: 10px; }
.demo-strip .sp { margin-left: auto; opacity: .75; }
.demo-strip .nav-btn { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 2px; height: 20px; padding: 0 8px; cursor: pointer; font-size: 10.5px; }
.demo-strip .nav-btn:hover { background: rgba(255,255,255,.2); }

/* ---------- sidebar ---------- */
.sb { width: 236px; background: var(--side); color: #e8eaed; position: fixed; left: 0; top: 26px; bottom: 0; overflow-y: auto; z-index: 1000; border-right: 1px solid var(--side-line); }
.sb::-webkit-scrollbar { width: 4px; } .sb::-webkit-scrollbar-thumb { background: #3d4a55; }
.sb-head { padding: 12px 14px; border-bottom: 1px solid var(--side-line); text-align: center; }
.sb-head img { height: 40px; }
.sb-head .hn { font-size: 11px; color: #9fb0bf; margin-top: 4px; }
.sb-hotel { padding: 8px 12px; border-bottom: 1px solid var(--side-line); }
.sb-hotel div { background: #2d3a45; border: 1px solid #3d4a55; border-radius: 3px; padding: 5px 8px; font-size: 11px; display: flex; justify-content: space-between; }
.sb-search { padding: 8px 12px 4px; }
.sb-search input { width: 100%; height: 26px; border-radius: 3px; border: 1px solid #3d4a55; background: #22303b; color: #fff; padding: 0 8px; font-size: 11px; outline: none; }
.sb-group { margin-top: 2px; }
.sb-group > .gl { display: flex; align-items: center; gap: 7px; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: #7c8c9c; padding: 9px 16px 3px; font-weight: 700; }
.sb a { display: flex; align-items: center; gap: 8px; padding: 6px 16px; color: #b0b8c0; font-size: 12px; font-weight: 500; border-left: 3px solid transparent; }
.sb a i { width: 16px; text-align: center; font-size: 12px; }
.sb a:hover { background: rgba(255,255,255,.06); color: #fff; border-left-color: var(--xg); }
.sb a.on { background: rgba(255,255,255,.09); color: #fff; border-left-color: #2fbf6a; }
.sb a .n { margin-left: auto; font-size: 9.5px; background: #2d3a45; color: #9fb0bf; border-radius: 8px; padding: 0 6px; }
.sb-foot { padding: 12px 16px 18px; font-size: 10.5px; color: #7c8c9c; border-top: 1px solid var(--side-line); margin-top: 8px; line-height: 1.5; }

/* ---------- main shell ---------- */
.main { margin-left: 236px; padding-top: 26px; min-height: 100vh; }
.rb { background: var(--xg); color: #fff; padding: 5px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--xg-dk); min-height: 44px; gap: 8px; flex-wrap: wrap; }
.rb .tt { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.rb .tt img { height: 26px; filter: brightness(0) invert(1); }
.rb .tt .mn { display: none; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 3px; padding: 2px 8px; cursor: pointer; }
.rb .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.rbtn { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.2); padding: 3px 10px; border-radius: 3px; font-size: 10.5px; font-weight: 500; display: inline-flex; gap: 5px; align-items: center; cursor: default; }
.rbtn.dn { background: rgba(220,53,69,.55); }
.qb { background: var(--head); border-bottom: 1px solid var(--line); padding: 4px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 32px; }
.qb .ql { font-size: 9px; font-weight: 700; color: #888; text-transform: uppercase; margin-right: 4px; }
.qbtn { background: #fff; border: 1px solid var(--line); padding: 2px 10px; border-radius: 2px; font-size: 10.5px; font-weight: 500; display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.qbtn:hover { background: var(--head); }
.qbtn.pr { background: var(--xg); color: #fff; border-color: var(--xg-dk); }
.qbtn.dg { background: #c0392b; color: #fff; border-color: #9c2a1f; }
.qbtn.sc { background: #1e8449; color: #fff; border-color: #146236; }
.qb .clk { margin-left: auto; font-size: 9.5px; color: #888; }
.ct { padding: 12px; }
.wb { background: var(--head); border-top: 1px solid var(--line); display: flex; align-items: center; padding: 0 14px; min-height: 28px; font-size: 10px; color: #555; flex-wrap: wrap; }
.wb .ti { padding: 4px 10px; border-right: 1px solid var(--line); }
.wb .ti.on { background: #fff; color: var(--xg); font-weight: 700; border-top: 2px solid var(--xg); margin-top: -1px; }
.wb .inf { margin-left: auto; font-size: 9.5px; color: #888; }
.page-note { display: flex; gap: 8px; align-items: flex-start; background: #fffbe6; border: 1px solid #f1e0a0; color: #5c4a00; padding: 7px 10px; margin-bottom: 10px; font-size: 11.5px; line-height: 1.45; }
.page-note i { margin-top: 2px; }

/* ---------- lx sheet (list pages) ---------- */
.lx { font-size: 12px; background: #fff; border: 1px solid var(--line); margin-bottom: 12px; }
.lx-top { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; background: var(--g); color: #fff; padding: 5px 10px; border-bottom: 2px solid var(--g-dk); }
.lx-top h5 { margin: 0; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.lx-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.lx-btn { height: 26px; padding: 0 10px; border-radius: 2px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }
.lx-top .lx-btn { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.45); color: #fff; }
.lx-top .lx-btn.primary { background: #fff; color: var(--g-dk); border-color: #fff; }
.lx-btn.gr { background: var(--g); border-color: var(--g-dk); color: #fff; }
.lx-cards { display: flex; flex-wrap: wrap; background: var(--head); border-bottom: 1px solid var(--line); }
.lx-card { display: flex; align-items: baseline; gap: 5px; padding: 5px 12px; border-right: 1px solid var(--line); white-space: nowrap; }
.lx-card span { font-size: 11.5px; color: var(--mut); } .lx-card span::after { content: ":"; }
.lx-card b { font-size: 12.5px; color: var(--g-dk); } .lx-card small { font-size: 11px; color: var(--mut); }
.lx-card.g b { color: var(--g); } .lx-card.r b { color: var(--r); } .lx-card.b b { color: var(--b); } .lx-card.y b { color: var(--y); }
.lx-filter { background: var(--head); border-bottom: 1px solid var(--line); padding: 5px 10px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.lx-search { position: relative; flex: 1; min-width: 180px; max-width: 320px; }
.lx-search i { position: absolute; left: 8px; top: 8px; color: var(--mut); font-size: 11px; }
.lx-search input { width: 100%; padding-left: 24px !important; }
.inp, .lx-filter input, .lx-filter select { height: 26px; border: 1px solid var(--line); border-radius: 2px; font-size: 12px; padding: 0 6px; background: #fff; color: var(--ink); }
.lx-chips { display: flex; }
.lx-chip { height: 26px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid var(--line); margin-left: -1px; background: #fff; color: #444; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.lx-chip:first-child { margin-left: 0; border-radius: 2px 0 0 2px; } .lx-chip:last-child { border-radius: 0 2px 2px 0; }
.lx-chip.on { background: var(--g); border-color: var(--g-dk); color: #fff; }
.lx-scroll { overflow-x: auto; }
.lx-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 820px; }
.lx-table.sm { min-width: 0; }
.lx-table thead th { background: var(--head); color: #333; font-size: 11px; font-weight: 700; text-align: left; padding: 4px 6px; border: 1px solid var(--line); border-top: 0; white-space: nowrap; }
.lx-table tbody td, .lx-table tfoot td { padding: 3px 6px; border: 1px solid var(--grid); vertical-align: middle; line-height: 1.35; }
.lx-table tbody tr:nth-child(even) td { background: #fafafa; }
.lx-table tbody tr:hover td { background: #e8f3ec; }
.lx-table tfoot td { background: #eef5f0; font-weight: 700; border-color: var(--line); }
.lx-table th:first-child, .lx-table td:first-child { border-left: 0; }
.lx-table th:last-child, .lx-table td:last-child { border-right: 0; }
.lx-table .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lx-table .c { text-align: center; white-space: nowrap; }
.lx-table .nw { white-space: nowrap; }
.lx-table .rowno { color: #888; background: var(--head) !important; text-align: center; width: 32px; font-size: 11px; }
.strong { font-weight: 600; } .muted { font-size: 11px; color: var(--mut); } .money { font-weight: 600; font-variant-numeric: tabular-nums; }
.lx-pill { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; border-radius: 2px; padding: 0 6px; line-height: 18px; white-space: nowrap; }
.lx-pill.g { background: var(--g-soft); color: var(--g-dk); } .lx-pill.r { background: var(--r-soft); color: var(--r); }
.lx-pill.y { background: var(--y-soft); color: var(--y); } .lx-pill.b { background: var(--b-soft); color: var(--b); }
.lx-pill.n { background: #eee; color: #555; } .lx-pill.p { background: var(--p-soft); color: var(--p); }
.lx-mode { font-size: 11px; color: #555; margin-left: 4px; white-space: nowrap; }
.lx-tag { display: inline-block; font-size: 11px; border: 1px solid var(--line); border-radius: 2px; padding: 0 5px; line-height: 17px; color: #444; background: #fff; white-space: nowrap; }
.lx-row-actions { display: flex; justify-content: flex-end; gap: 3px; white-space: nowrap; }
.lx-act { height: 22px; padding: 0 7px; border-radius: 2px; border: 1px solid var(--line); background: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }
.lx-act.g { background: var(--g); border-color: var(--g-dk); color: #fff; } .lx-act.r { background: var(--r); border-color: var(--r); color: #fff; } .lx-act.b { background: var(--b); border-color: var(--b); color: #fff; }
.lx-pager { display: flex; justify-content: space-between; align-items: center; padding: 5px 10px; background: var(--head); border-top: 1px solid var(--line); font-size: 11.5px; color: var(--mut); flex-wrap: wrap; gap: 6px; }
.lx-pager nav { display: flex; gap: 2px; }
.lx-pager nav a, .lx-pager nav b { min-width: 24px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; font-size: 11px; padding: 0 5px; }
.lx-pager nav b { background: var(--g); color: #fff; border-color: var(--g-dk); }
.lx-sec { background: var(--head); padding: 5px 10px; font-weight: 700; font-size: 12px; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.lx-sec small { font-weight: 500; color: var(--mut); }
.col-letters th { background: #e9e9e9 !important; color: #777 !important; font-weight: 500 !important; text-align: center !important; font-size: 10px !important; padding: 1px !important; }

/* ---------- dashboard blocks ---------- */
.kpis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 8px; margin-bottom: 10px; }
.kpi { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--g); padding: 8px 10px; min-width: 0; }
.kpi span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--mut); font-weight: 600; }
.kpi b { display: block; font-size: 19px; margin: 3px 0 2px; color: #1b2b22; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi small { font-size: 10.5px; color: var(--mut); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .up { color: var(--g); font-weight: 700; } .kpi .dn { color: var(--r); font-weight: 700; }
.kpi.b { border-top-color: var(--b); } .kpi.y { border-top-color: #d49b00; } .kpi.r { border-top-color: var(--r); } .kpi.p { border-top-color: var(--p); }
.grid2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 10px; }
.grid-1-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 10px; }
.box { background: #fff; border: 1px solid var(--line); margin-bottom: 10px; min-width: 0; }
.box-h { background: var(--head); border-bottom: 1px solid var(--line); padding: 6px 10px; font-weight: 700; font-size: 12px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.box-h a, .box-h small { font-weight: 500; font-size: 11px; color: var(--b); }
.box-b { padding: 8px 10px; }
.box-b.np { padding: 0; }
.kv { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed #e4e4e4; font-size: 12px; }
.kv:last-child { border-bottom: 0; } .kv b { font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding: 8px 4px 0; border-bottom: 1px solid var(--line); }
.bars .bc { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; position: relative; }
.bars .bc i { display: block; width: 100%; }
.bars .bc i.a { background: #2f9e5b; } .bars .bc i.b2 { background: #f0a53a; } .bars .bc i.c2 { background: #5b8def; }
.bars-x { display: flex; gap: 4px; padding: 3px 4px 0; font-size: 9.5px; color: var(--mut); }
.bars-x span { flex: 1; text-align: center; min-width: 0; overflow: hidden; }
.legend { display: flex; gap: 12px; font-size: 11px; color: var(--mut); margin-top: 6px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; }
.hbar { display: grid; grid-template-columns: 110px 1fr 90px; gap: 8px; align-items: center; margin: 5px 0; font-size: 11.5px; }
.hbar .tr { background: #eef1ee; height: 12px; } .hbar .tr i { display: block; height: 100%; background: var(--g); }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.now-strip { display: flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); margin-bottom: 10px; }
.now-strip > div { padding: 6px 12px; border-right: 1px solid var(--line); }
.now-strip span { display: block; font-size: 10px; color: var(--mut); text-transform: uppercase; font-weight: 600; }
.now-strip b { font-size: 14px; }

/* ---------- room tiles ---------- */
.rt-legend { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.rt-legend span { font-size: 11px; font-weight: 600; padding: 3px 9px; border: 1px solid var(--line); background: #fff; border-radius: 2px; }
.rt-legend span i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 1px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.tile { border: 1px solid var(--line); background: #fff; border-left: 4px solid #999; padding: 6px 7px; min-height: 76px; display: flex; flex-direction: column; gap: 2px; }
.tile .no { font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.tile .no small { font-size: 9.5px; font-weight: 600; color: var(--mut); }
.tile .gn { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .ds { font-size: 10px; color: var(--mut); }
.tile .st { margin-top: auto; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.tile.free { border-left-color: #2f9e5b; } .tile.free .st { color: #2f9e5b; }
.tile.occ { border-left-color: #c0392b; background: #fff7f6; } .tile.occ .st { color: #c0392b; }
.tile.dirty { border-left-color: #d49b00; background: #fffcf0; } .tile.dirty .st { color: #a37700; }
.tile.res { border-left-color: #0b5cad; background: #f5f9ff; } .tile.res .st { color: #0b5cad; }
.tile.blk { border-left-color: #555; background: #f2f2f2; } .tile.blk .st { color: #555; }
.tile.due { border-left-color: #8e44ad; background: #fbf6ff; } .tile.due .st { color: #8e44ad; }

/* ---------- forms / cards (booking, expense, bill) ---------- */
.fcard { background: #fff; border: 1px solid var(--line); margin-bottom: 10px; }
.fcard-h { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); background: var(--head); font-weight: 700; font-size: 12.5px; }
.fcard-h .nb { width: 20px; height: 20px; border-radius: 50%; background: var(--g); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.fcard-h .rt { margin-left: auto; font-weight: 500; }
.fcard-b { padding: 10px; }
.frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 10px; margin-bottom: 8px; }
.fld label { display: block; font-size: 10.5px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 3px; }
.fld .v { height: 30px; border: 1px solid var(--line); border-radius: 2px; background: #fff; display: flex; align-items: center; padding: 0 8px; font-size: 12.5px; gap: 6px; white-space: nowrap; overflow: hidden; }
.fld .v.ph { color: #999; } .fld .v.sel::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 9px; margin-left: auto; color: #888; }
.fld .v.ta { height: 54px; align-items: flex-start; padding-top: 6px; white-space: normal; }
.fld .v.ro { background: #f6f6f6; }
.fld .v.big { font-weight: 700; color: var(--g-dk); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.seg span { padding: 5px 12px; font-size: 11.5px; font-weight: 600; border-right: 1px solid var(--line); background: #fff; }
.seg span:last-child { border-right: 0; } .seg span.on { background: var(--g); color: #fff; }
.pillhead { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 8px 10px; margin-bottom: 10px; }
.pillhead h3 { margin: 0 8px 0 0; font-size: 16px; }
.pillhead .sp { margin-left: auto; display: flex; gap: 5px; flex-wrap: wrap; }
.sumcard { position: sticky; top: 36px; }
.sum-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12.5px; border-bottom: 1px solid #f0f0f0; }
.sum-row b { font-variant-numeric: tabular-nums; }
.sum-row.tot { font-size: 15px; font-weight: 800; border-top: 2px solid #333; border-bottom: 0; margin-top: 4px; padding-top: 7px; }
.sum-row.due { color: var(--r); font-weight: 800; font-size: 14px; }
.btn-big { display: flex; width: 100%; justify-content: center; align-items: center; gap: 6px; height: 36px; background: var(--g); color: #fff; font-weight: 700; border: 0; border-radius: 2px; margin-top: 8px; font-size: 13px; }
.btn-big.alt { background: #fff; color: var(--g-dk); border: 1px solid var(--g); }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 2px 10px; font-size: 11px; font-weight: 600; background: #fff; }
.chip.on { background: var(--g-soft); border-color: var(--g); color: var(--g-dk); }

/* ---------- POS billing ---------- */
.pos { display: grid; grid-template-columns: 170px 1fr 360px; gap: 0; border: 1px solid var(--line); background: #fff; height: 610px; }
.pos-cats { border-right: 1px solid var(--line); overflow-y: auto; background: #fafafa; }
.pos-cats div { padding: 8px 10px; border-bottom: 1px solid #eee; font-size: 12px; font-weight: 600; cursor: default; }
.pos-cats div.on { background: var(--g); color: #fff; }
.pos-items { padding: 8px; overflow-y: auto; }
.pos-items .srch { display: flex; gap: 6px; margin-bottom: 8px; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.pos-it { border: 1px solid var(--line); border-top: 3px solid; padding: 7px; min-height: 64px; display: flex; flex-direction: column; justify-content: space-between; background: #fff; }
.pos-it.veg { border-top-color: #2f9e5b; } .pos-it.nv { border-top-color: #c0392b; }
.pos-it .nm { font-size: 11.5px; font-weight: 600; line-height: 1.25; }
.pos-it .pr { font-size: 12px; font-weight: 700; color: var(--g-dk); }
.pos-bill { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.pos-bill .hd { padding: 8px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; background: var(--head); }
.pos-bill .lines { flex: 1; overflow-y: auto; }
.pos-line { display: grid; grid-template-columns: 1fr 86px 64px; gap: 6px; padding: 6px 8px; border-bottom: 1px solid #eee; align-items: center; font-size: 12px; }
.pos-line .q { display: inline-flex; border: 1px solid var(--line); border-radius: 2px; }
.pos-line .q span { width: 24px; text-align: center; line-height: 22px; font-weight: 700; }
.pos-line .q span:nth-child(2) { border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: #fafafa; }
.pos-line .nt { font-size: 10.5px; color: #a15c00; }
.pos-tot { border-top: 1px solid var(--line); padding: 8px; background: #fafafa; }
.pos-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; }
.pos-btns span { text-align: center; padding: 8px 4px; font-weight: 700; font-size: 11.5px; color: #fff; border-radius: 2px; }

/* ---------- POS floor ---------- */
.floor-area { margin-bottom: 12px; }
.floor-area h4 { margin: 0 0 6px; font-size: 12.5px; display: flex; gap: 8px; align-items: center; }
.floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 7px; }
.tbl { border: 1px solid var(--line); background: #fff; padding: 8px; min-height: 84px; display: flex; flex-direction: column; gap: 2px; border-radius: 3px; }
.tbl .tn { font-size: 15px; font-weight: 800; display: flex; justify-content: space-between; }
.tbl .tn small { font-size: 10px; font-weight: 600; color: var(--mut); }
.tbl .am { font-size: 13px; font-weight: 700; margin-top: auto; }
.tbl .tm { font-size: 10px; color: var(--mut); }
.tbl.run { background: #fff4e5; border-color: #f0b35a; } .tbl.run .am { color: #b35c00; }
.tbl.bill { background: #e8f1ff; border-color: #8db3ea; } .tbl.bill .am { color: var(--b); }
.tbl.free .tn { color: #2f9e5b; }

/* ---------- live orders ---------- */
.lo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.lo { background: #fff; border: 1px solid var(--line); border-top: 3px solid #f0a53a; }
.lo.late { border-top-color: var(--r); }
.lo-h { display: flex; justify-content: space-between; padding: 6px 8px; border-bottom: 1px solid #eee; font-weight: 700; }
.lo-m { font-size: 11px; color: var(--mut); padding: 4px 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.lo ul { list-style: none; margin: 0; padding: 4px 8px; }
.lo li { display: flex; justify-content: space-between; padding: 2px 0; font-size: 12px; }
.lo li .nc { color: var(--p); font-size: 10px; font-weight: 700; }
.lo-f { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-top: 1px solid #eee; background: #fafafa; }

/* ---------- calendars ---------- */
.cal-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); }
.cal { border-collapse: collapse; font-size: 11px; min-width: 100%; table-layout: fixed; }
.cal th, .cal td { border: 1px solid var(--grid); height: 30px; padding: 0; }
.cal thead th { background: var(--head); font-weight: 600; font-size: 10.5px; text-align: center; width: 58px; line-height: 1.2; padding: 3px 0; }
.cal thead th.we { background: #fbeee0; } .cal thead th.td { background: var(--g); color: #fff; }
.cal .rm { width: 118px; text-align: left; padding: 0 8px; background: #fafafa; font-weight: 700; position: sticky; left: 0; z-index: 2; white-space: nowrap; }
.cal .rm small { font-weight: 500; color: var(--mut); margin-left: 3px; }
.cal .tp td { background: #eef3f0; font-weight: 700; font-size: 11px; padding: 0 8px; }
.cal td.cell { position: relative; }
.cal .bk { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; color: #fff; font-size: 10.5px; font-weight: 600; padding: 0 6px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; z-index: 1; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.bk.s1 { background: #0b5cad; } .bk.s2 { background: #c0392b; } .bk.s3 { background: #7f8c8d; } .bk.s5 { background: #d49b00; } .bk.ota { background: #6a3fb5; }
.rate-grid td.v { text-align: center; font-variant-numeric: tabular-nums; font-size: 11px; }
.rate-grid td.v.lo { background: #fdeceb; color: var(--r); font-weight: 700; }
.rate-grid td.v.hi { background: #eaf6ee; color: var(--g-dk); }
.rate-grid td.v.zero { background: #c0392b; color: #fff; font-weight: 700; }
.rate-grid td.lbl { padding: 0 8px; font-size: 11px; color: var(--mut); background: #fafafa; position: sticky; left: 0; white-space: nowrap; }

/* ---------- print docs ---------- */
.doc-stage { background: #7b8490; padding: 20px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.a4 { background: #fff; width: 794px; max-width: 100%; padding: 34px 38px; box-shadow: 0 6px 24px rgba(0,0,0,.35); font-size: 11.5px; color: #111; }
.a4 .ih { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #111; padding-bottom: 10px; gap: 12px; }
.a4 .ih img { height: 54px; }
.a4 h1 { font-size: 20px; margin: 0; letter-spacing: 1px; }
.a4 table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.a4 th, .a4 td { border: 1px solid #999; padding: 4px 6px; font-size: 11px; }
.a4 th { background: #eee; text-align: left; }
.a4 .r { text-align: right; font-variant-numeric: tabular-nums; }
.a4 .box2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.a4 .box2 > div { border: 1px solid #999; padding: 6px 8px; line-height: 1.5; }
.a4 .tt { font-weight: 800; background: #f2f2f2; }
.a4 .sign { display: flex; justify-content: space-between; margin-top: 36px; font-size: 11px; }
.thermal { background: #fff; width: 300px; padding: 14px 12px; font-family: 'Consolas', 'Courier New', monospace; font-size: 11.5px; color: #000; box-shadow: 0 6px 24px rgba(0,0,0,.35); line-height: 1.35; }
.thermal * { font-family: inherit; }
.thermal .c { text-align: center; } .thermal .b { font-weight: 700; }
.thermal hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
.thermal table { width: 100%; border-collapse: collapse; }
.thermal td { padding: 1px 0; vertical-align: top; } .thermal td.r { text-align: right; }
.thermal .big { font-size: 15px; font-weight: 800; }
.doc-cap { color: #fff; font-size: 11px; text-align: center; margin-top: 6px; opacity: .85; }

/* ---------- phone mocks ---------- */
.phones { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; padding: 10px 0 20px; }
.phone { width: 300px; height: 610px; border: 10px solid #1d1f22; border-radius: 34px; background: #fff; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: flex; flex-direction: column; position: relative; }
.phone .notch { height: 20px; background: #1d1f22; width: 120px; margin: 0 auto; border-radius: 0 0 12px 12px; flex: none; }
.phone .scr { flex: 1; overflow: hidden; display: flex; flex-direction: column; font-size: 12px; }
.phone .ph-top { background: var(--g); color: #fff; padding: 9px 12px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.phone .ph-body { flex: 1; overflow: hidden; padding: 8px; background: #f4f6f5; }
.phone .ph-foot { display: flex; border-top: 1px solid var(--line); background: #fff; }
.phone .ph-foot span { flex: 1; text-align: center; padding: 7px 0; font-size: 10px; color: var(--mut); }
.phone .ph-foot span i { display: block; font-size: 15px; margin-bottom: 2px; }
.phone .ph-foot span.on { color: var(--g); font-weight: 700; }
.ph-card { background: #fff; border: 1px solid #e3e3e3; border-radius: 8px; padding: 8px 10px; margin-bottom: 7px; }
.phone-cap { text-align: center; font-size: 12px; font-weight: 700; margin-top: 8px; color: #333; }

/* ---------- overview / landing ---------- */
.hero { background: linear-gradient(135deg, #0a5c30, #107c41 55%, #2f9e5b); color: #fff; padding: 26px 26px 22px; border-radius: 4px; margin-bottom: 14px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero img { height: 64px; background: #fff; border-radius: 8px; padding: 6px; }
.hero h1 { margin: 0 0 4px; font-size: 24px; }
.hero p { margin: 0; opacity: .9; font-size: 13px; max-width: 720px; line-height: 1.5; }
.hero .hs { margin-left: auto; display: flex; gap: 18px; }
.hero .hs div { text-align: center; } .hero .hs b { display: block; font-size: 24px; } .hero .hs span { font-size: 11px; opacity: .85; }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.mod { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--g); }
.mod h3 { margin: 0; padding: 9px 12px; font-size: 13.5px; display: flex; gap: 8px; align-items: center; border-bottom: 1px solid #eee; }
.mod h3 i { color: var(--g); }
.mod ul { list-style: none; margin: 0; padding: 4px 0 8px; }
.mod li a { display: flex; align-items: center; gap: 7px; padding: 4px 12px; font-size: 12px; color: #333; }
.mod li a:hover { background: var(--g-soft); color: var(--g-dk); }
.mod li a i { width: 14px; color: #8a9a90; font-size: 11px; text-align: center; }
.home-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.htile { background: #fff; border: 1px solid var(--line); padding: 16px 10px; text-align: center; border-radius: 4px; cursor: pointer; }
.htile:hover { border-color: var(--g); box-shadow: 0 2px 8px rgba(16,124,65,.15); }
.htile i { font-size: 26px; color: var(--g); display: block; margin-bottom: 8px; }
.htile b { font-size: 13px; display: block; } .htile small { color: var(--mut); font-size: 11px; }

/* ---------- attendance grid ---------- */
.att td.d { text-align: center; font-weight: 700; font-size: 10.5px; padding: 3px 0; width: 24px; }
.att td.P { background: #e6f2ea !important; color: var(--g-dk); } .att td.A { background: #fde7e5 !important; color: var(--r); }
.att td.H { background: #fff4ce !important; color: var(--y); } .att td.W { background: #eceff3 !important; color: #667; }
.att td.L { background: #e3eefa !important; color: var(--b); }
.att th.d { width: 24px; text-align: center !important; padding: 3px 0 !important; font-size: 10px !important; }
.punch { display: flex; gap: 4px; flex-wrap: wrap; }
.punch span { font-size: 10.5px; border-radius: 2px; padding: 0 5px; line-height: 17px; font-weight: 600; }
.punch .in { background: var(--g-soft); color: var(--g-dk); } .punch .out { background: var(--r-soft); color: var(--r); }

/* ---------- misc ---------- */
.two-col-form { display: grid; grid-template-columns: 1.7fr 1fr; gap: 10px; align-items: start; }
.recon li { margin: 3px 0; }
.ok { color: var(--g); } .bad { color: var(--r); } .warn { color: #a37700; }
.center { text-align: center; }
.flex { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mt8 { margin-top: 8px; } .mb0 { margin-bottom: 0; }
.face-box { width: 100%; aspect-ratio: 3/4; background: radial-gradient(circle at 50% 42%, #3b4a57, #0f171e); border-radius: 10px; position: relative; overflow: hidden; }
.face-box .oval { position: absolute; left: 22%; right: 22%; top: 16%; bottom: 26%; border: 3px solid #2fbf6a; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.face-box .fi { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font-size: 70px; color: #7d8b97; }
.face-box .msg { position: absolute; left: 10px; right: 10px; bottom: 12px; background: rgba(47,191,106,.92); color: #fff; font-weight: 700; text-align: center; padding: 8px; border-radius: 6px; font-size: 12.5px; }
.qr { width: 150px; height: 150px; margin: 8px auto; display: grid; grid-template-columns: repeat(21, 1fr); background: #fff; padding: 6px; border: 1px solid #ddd; }
.qr i { display: block; } .qr i.k { background: #111; }

/* ---------- responsive ---------- */
@media (max-width: 1150px) {
  .kpis { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .pos { grid-template-columns: 130px 1fr 300px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sb { left: -260px; transition: left .2s; width: 250px; }
  .sb.open { left: 0; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
  .main { margin-left: 0; }
  .rb .tt .mn { display: inline-block; }
  .grid2, .grid3, .grid-2-1, .grid-1-2, .two-col-form { grid-template-columns: minmax(0, 1fr); }
  .box-b, .fcard-b { overflow-x: auto; }
  .demo-strip b { display: none; }
  .kpis { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .pos { grid-template-columns: 1fr; height: auto; }
  .pos-cats { display: flex; overflow-x: auto; } .pos-cats div { white-space: nowrap; border-bottom: 0; border-right: 1px solid #eee; }
  .pos-bill { border-left: 0; border-top: 1px solid var(--line); }
  .sumcard { position: static; }
  .hero .hs { margin-left: 0; }
  .demo-strip .sp { display: none; }
}
@media (max-width: 560px) {
  .ct { padding: 8px; } .doc-stage { padding: 10px; } .a4 { padding: 16px; }
  .hbar { grid-template-columns: 80px 1fr 70px; }
}

/* sidebar sub-headings (Accounts, Transactions, Salary…), same as the live module sidebars */
.sb .sh { font-size: 9.5px; color: #5f7384; padding: 6px 16px 1px 40px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
/* bootstrap is now loaded (as in live_code); keep the demo shell's own look */
.sb a, .demo-strip, .rb, .qb { text-decoration: none; }
.sb a:hover { text-decoration: none; }
.main h1, .main h2, .main h3, .main h4, .main h5, .main h6 { line-height: 1.25; }
