/* =====================================================================
   SWARNA HMS — tema "Tropical Luxury": hijau hutan tropis, emas champagne,
   gading, serif elegan. Setiap departemen memiliki warna aksen (--g / --dept).
   ===================================================================== */
:root {
  --ink: #16241f; --ink2: #43514b; --muted: #7d7a70;
  --emerald: #0f3d33; --emerald2: #17564a; --forest: #0a2a23;
  --gold: #b8925a; --gold2: #d9b57c; --champagne: #f3e6c9;
  --ivory: #f6f1e7; --paper: #fffdf8; --sand: #efe7d6; --line: #e5dccb; --line2: #d6cab3;
  --ok: #2f7d5b; --bad: #b4473a; --warn: #a5824a;
  --dept: #b8925a;
  --r: 14px; --r-sm: 10px;
  --sh: 0 1px 2px rgba(15, 61, 51, .06), 0 8px 24px -12px rgba(15, 61, 51, .18);
  --sh-lg: 0 30px 80px -20px rgba(10, 42, 35, .45);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --side: 268px;
  color-scheme: light;
}
[data-theme=night] {
  --ink: #ece4d3; --ink2: #c3bba9; --muted: #8f8a7c;
  --ivory: #0d1a17; --paper: #13231f; --sand: #1a2e29; --line: #24392f; --line2: #30493f;
  --sh: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ivory); color: var(--ink); font: 14.5px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior-y: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: .2px; margin: 0; color: var(--ink); }
.ic { flex: none; }
.muted { color: var(--muted); } .center { text-align: center; } .pad { padding: 18px; }
.neg { color: var(--bad) !important; } .pos { color: var(--ok); } .warn { color: var(--warn); font-weight: 600; }
.r { text-align: right; } .c { text-align: center; }
small { font-size: 12px; }
[hidden] { display: none !important; }

/* ---------------- tombol & input ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line2); background: var(--paper); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: .15s; color: var(--ink); }
.btn:hover { border-color: var(--gold); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--emerald); border-color: var(--emerald); color: var(--champagne); box-shadow: 0 6px 16px -8px rgba(15, 61, 51, .7); }
.btn.primary:hover { background: var(--emerald2); }
[data-theme=night] .btn.primary { background: var(--gold); border-color: var(--gold); color: #1a1408; }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.danger-text { color: var(--bad) !important; }
.btn.sm { padding: 6px 12px; font-size: 12.5px; }
.btn.lg { padding: 14px 20px; font-size: 15px; }
.btn.block { display: flex; width: 100%; margin-top: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--ink2); flex: none; }
.icon-btn:hover { background: var(--sand); color: var(--ink); }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; margin-top: 18px; font-size: 13px; }
input:not([type=checkbox]):not([type=color]), select, textarea { width: 100%; background: var(--paper); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 10px 12px; outline: none; transition: .15s; min-height: 42px; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 146, 90, .18); }
input:disabled, select:disabled, textarea:disabled { background: var(--sand); color: var(--ink2); }
input[type=color] { width: 54px; height: 40px; border: 1px solid var(--line2); border-radius: 8px; background: none; padding: 2px; }
label { font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.lbl { display: block; margin: 16px 0 8px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field i { color: var(--bad); font-style: normal; }
.field small { color: var(--muted); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin: 8px 0; }
.form-grid .wide { grid-column: 1 / -1; }
.money-in { display: flex; align-items: stretch; }
.money-in span { display: grid; place-items: center; padding: 0 10px; background: var(--sand); border: 1px solid var(--line2); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); color: var(--muted); font-size: 12px; }
.money-in input { border-radius: 0 var(--r-sm) var(--r-sm) 0 !important; text-align: right; font-variant-numeric: tabular-nums; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line2); border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch input:checked + span { background: var(--emerald); }
[data-theme=night] .switch input:checked + span { background: var(--gold); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:disabled + span { opacity: .5; }
.check { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; cursor: pointer; }
.rating { display: flex; gap: 2px; } .rating button { background: none; border: 0; font-size: 24px; color: var(--line2); cursor: pointer; padding: 0 2px; line-height: 1; }
.rating button.on { color: var(--gold); } .rating.big button { font-size: 34px; }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: middle; }
.search { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line2); border-radius: 999px; padding: 0 14px; flex: 1; max-width: 420px; color: var(--muted); }
.search input { border: 0 !important; background: none !important; box-shadow: none !important; padding: 9px 0 !important; min-height: 38px !important; }
.search.big { max-width: none; border-radius: var(--r); padding: 4px 16px; }
.inline { display: inline-flex; gap: 8px; align-items: center; } .inline input { width: auto; }

/* ---------------- badges, chips, seg ---------------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); white-space: nowrap; letter-spacing: .2px; }
.vip { display: inline-flex; align-items: center; gap: 3px; font-family: var(--sans); font-size: 10.5px; font-weight: 800; color: #8a6420; background: linear-gradient(135deg, #f7e7c4, #e5c88f); padding: 1px 7px; border-radius: 99px; vertical-align: middle; letter-spacing: .4px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line2); background: var(--paper); border-radius: 99px; padding: 6px 13px; cursor: pointer; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ink2); }
.chip b { font-weight: 700; color: var(--muted); font-size: 12px; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); } .chip.on b { color: var(--gold2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.seg { display: inline-flex; background: var(--sand); border-radius: 99px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 13px; border-radius: 99px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 13px; color: var(--ink2); white-space: nowrap; }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: var(--sh); }
.seg.full { display: flex; margin-bottom: 14px; } .seg.full button { flex: 1; justify-content: center; }
.seg.scroll { overflow-x: auto; max-width: 100%; scrollbar-width: none; }

/* ---------------- splash & login ---------------- */
.splash { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--gold); font-family: var(--serif); font-size: 20px; background: radial-gradient(circle at 50% 40%, #154a3e, var(--forest)); }
.splash span { color: var(--champagne); opacity: .8; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.crest { color: var(--gold); display: grid; }
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--paper); }
.login-art { position: relative; overflow: hidden; color: var(--champagne); min-height: 260px; }
.login-art .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.la-text { position: relative; padding: 56px; display: flex; flex-direction: column; gap: 6px; }
.la-text h1 { font-size: 64px; font-weight: 500; color: var(--champagne); letter-spacing: 6px; text-transform: uppercase; margin-top: 18px; }
.la-text p { margin: 0; letter-spacing: 3px; text-transform: uppercase; font-size: 12px; color: var(--gold2); }
.la-text ul { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 8px; font-size: 13.5px; opacity: .85; }
.la-text li::before { content: "✦ "; color: var(--gold2); }
.login-form { display: grid; place-items: center; padding: 40px 28px; background: var(--paper); background-image: radial-gradient(circle at 100% 0, rgba(184, 146, 90, .12), transparent 40%); }
.login-form form { width: 100%; max-width: 400px; display: grid; gap: 14px; }
.lf-head h2 { font-size: 38px; font-weight: 500; }
.kick, .crumb { font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.demo-roles { border-top: 1px dashed var(--line2); padding-top: 14px; font-size: 12.5px; color: var(--muted); }
.demo-roles div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.demo-roles button { border: 1px solid var(--line2); background: var(--ivory); border-radius: 99px; padding: 5px 10px; font-size: 12px; cursor: pointer; font-weight: 600; color: var(--ink2); }
.demo-roles button:hover { border-color: var(--gold); color: var(--ink); background: var(--champagne); }

/* ---------------- shell ---------------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--forest); color: #d9d2c0; background-image: linear-gradient(180deg, #0f3d33 0%, #0a2a23 60%), radial-gradient(circle at 0 0, rgba(217, 181, 124, .2), transparent 50%); z-index: 40; }
.brand { display: flex; gap: 12px; align-items: center; padding: 20px 18px 14px; border-bottom: 1px solid rgba(217, 181, 124, .18); }
.brand svg { color: var(--gold2); width: 40px; height: 40px; flex: none; }
.brand b { display: block; font-family: var(--serif); font-size: 19px; color: var(--champagne); font-weight: 600; line-height: 1.15; }
.brand span { font-size: 10.5px; color: var(--gold2); letter-spacing: 1px; }
.side-search { margin: 12px 14px 6px; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(217, 181, 124, .18); color: #bdb5a2; border-radius: 10px; padding: 9px 12px; cursor: pointer; font-size: 13px; }
.side-search span { flex: 1; text-align: left; } .side-search kbd { font: 10px var(--sans); border: 1px solid rgba(255, 255, 255, .2); border-radius: 4px; padding: 1px 5px; }
.nav { flex: 1; overflow-y: auto; padding: 6px 10px 20px; scrollbar-width: thin; scrollbar-color: rgba(217, 181, 124, .3) transparent; }
.ng { margin-top: 4px; }
.ng-h { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; color: #9c957f; font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700; padding: 10px 8px 6px; cursor: pointer; }
.ng-h i { width: 7px; height: 7px; border-radius: 2px; background: var(--g); transform: rotate(45deg); }
.ng-h .ic { margin-left: auto; transition: .2s; opacity: .6; }
.ng.closed .ng-h .ic { transform: rotate(-90deg); } .ng.closed .ng-items { display: none; }
.ng-items a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: #d4ccb9; font-size: 13.5px; position: relative; }
.ng-items a .ic { color: color-mix(in srgb, var(--g) 65%, #fff); opacity: .85; }
.ng-items a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.ng-items a.on { background: linear-gradient(90deg, rgba(217, 181, 124, .18), rgba(217, 181, 124, .04)); color: var(--champagne); font-weight: 600; }
.ng-items a.on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--g); }
.ng-items a.on .ic { opacity: 1; color: var(--gold2); }
.me { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid rgba(217, 181, 124, .18); }
.me b { display: block; color: var(--champagne); font-size: 13px; } .me small { color: #9c957f; font-size: 11px; display: block; line-height: 1.3; }
.me span:nth-child(2) { flex: 1; min-width: 0; }
.me .icon-btn { color: #bdb5a2; } .me .icon-btn:hover { background: rgba(255, 255, 255, .08); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #2a1f0c; font-weight: 800; font-size: 12.5px; flex: none; border: 0; letter-spacing: .5px; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; font-family: var(--serif); }
.avatar.sm { width: 32px; height: 32px; cursor: pointer; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 10px 26px; background: color-mix(in srgb, var(--ivory) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-title { flex: 1; display: flex; gap: 8px; align-items: center; min-width: 0; }
.top-title b { font-family: var(--serif); font-size: 19px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-dot { width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); background: var(--dept); flex: none; }
.bizdate { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line2); background: var(--paper); border-radius: 99px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: default; color: var(--ink2); }
.bizdate .ic { color: var(--gold); }
.sync { display: grid; place-items: center; width: 30px; color: var(--muted); } .sync.ok { color: var(--ok); } .sync.off { color: var(--bad); animation: pulse 1.2s infinite; }
.demo-bar { background: linear-gradient(90deg, #f3e6c9, #ecd9b0); color: #5b4419; font-size: 12.5px; padding: 7px 26px; }
[data-theme=night] .demo-bar { background: #2a2414; color: #e7d3a5; }
.view { padding: 26px 26px 60px; max-width: 1500px; width: 100%; animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; } }
.tabbar, .scrim, .only-sm, .back-sm { display: none; }

/* ---------------- page head ---------------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; position: relative; padding-left: 16px; }
.page-head::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: linear-gradient(var(--dept), color-mix(in srgb, var(--dept) 30%, transparent)); }
.page-head h1 { font-size: 34px; font-weight: 600; line-height: 1.1; margin-top: 2px; }
.page-head .crumb { color: var(--dept); }
.sub { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding: 26px 28px; border-radius: 20px; color: var(--champagne); background: linear-gradient(120deg, #0f3d33 0%, #17564a 55%, #8a6a3c 130%); position: relative; overflow: hidden; box-shadow: var(--sh); }
.hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(243, 230, 201, .25); box-shadow: 0 0 0 30px rgba(243, 230, 201, .04), 0 0 0 60px rgba(243, 230, 201, .03); }
.hero h1 { color: var(--champagne); font-size: 38px; font-weight: 500; }
.hero .sub { color: rgba(243, 230, 201, .75); } .hero .crumb { color: var(--gold2); }
.hero-act { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero .btn.ghost { color: var(--champagne); border-color: rgba(243, 230, 201, .35); }
.hero .btn.primary { background: var(--champagne); color: var(--emerald); border-color: var(--champagne); }

/* ---------------- kartu, KPI, grafik ---------------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--sh); min-width: 0; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-h h3 { font-size: 19px; }
.card-h a { font-size: 12.5px; color: var(--gold); text-decoration: none; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh); position: relative; overflow: hidden; }
.kpi-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.kpi-top .ic { color: var(--gold); }
.kpi-val { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.1; margin-top: 4px; font-variant-numeric: lining-nums; }
.kpi-val small { font-size: 18px; color: var(--muted); }
.kpi-sub { font-size: 12px; color: var(--muted); }
.kpi.gold { background: linear-gradient(135deg, #fbf3e1, #f1dfb7); border-color: #e7d2a5; }
[data-theme=night] .kpi.gold { background: linear-gradient(135deg, #2b2615, #1d2a20); border-color: #4a3f22; }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.span2 { grid-column: span 2; }
.spark { width: 100%; height: 130px; display: block; }
.spark rect { fill: color-mix(in srgb, var(--emerald) 75%, transparent); transition: .15s; }
[data-theme=night] .spark rect { fill: #3f7d6c; }
.spark rect.hi, .spark rect:hover { fill: var(--gold); }
.axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.hbars { display: grid; gap: 8px; }
.hb { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; }
.hb-l { color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-t { height: 8px; background: var(--sand); border-radius: 99px; overflow: hidden; }
.hb-t i { display: block; height: 100%; background: linear-gradient(90deg, var(--emerald), var(--gold)); border-radius: 99px; }
.hb b { font-variant-numeric: tabular-nums; font-size: 12px; }
.donut { position: relative; width: 150px; margin: 0 auto 10px; }
.donut svg { transform: rotate(-90deg); width: 150px; height: 150px; }
.donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-c b { font-family: var(--serif); font-size: 30px; line-height: 1; } .donut-c span { font-size: 11px; color: var(--muted); }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 12px; color: var(--ink2); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.legend b { float: right; }
.prog { height: 10px; background: var(--sand); border-radius: 99px; overflow: hidden; margin: 4px 0 8px; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), var(--gold)); transition: width .3s; }
.mini-kpis { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.mini-kpis b { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-right: 3px; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.people li { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; cursor: pointer; }
.people li:hover { background: var(--ivory); }
.people li > span:nth-child(2) { flex: 1; min-width: 0; } .people b { display: block; font-size: 13.5px; } .people small { color: var(--muted); }
.people em { font-style: normal; font-family: var(--serif); font-size: 18px; color: var(--gold); font-weight: 700; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain.rows li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.plain.rows li:last-child { border: 0; }
.plain.rows small { display: block; color: var(--muted); }
.plain li { padding: 4px 0; }
.score { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.score b { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--gold); }
.score span { color: var(--gold); font-size: 18px; } .score small { color: var(--muted); font-size: 12px; display: block; }
.notices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 10px 12px; border-radius: 10px; background: var(--ivory); display: grid; gap: 3px; font-size: 13px; }
.notice.hot { border-left-color: var(--bad); } .notice small { color: var(--muted); } .notice span { color: var(--ink2); }
.empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .ic { color: var(--gold); opacity: .7; } .empty b { color: var(--ink); font-family: var(--serif); font-size: 20px; }
.skeleton { display: grid; gap: 14px; } .skeleton i { height: 70px; border-radius: var(--r); background: linear-gradient(90deg, var(--sand), var(--paper), var(--sand)); background-size: 200% 100%; animation: sk 1.2s infinite; }
.skeleton i:first-child { height: 40px; width: 40%; }
@keyframes sk { to { background-position: -200% 0; } }
.note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: #fbf3e1; border: 1px solid #ecdcb8; color: #6c531f; font-size: 13px; margin: 8px 0; }
.note.soft { background: var(--ivory); border-color: var(--line); color: var(--ink2); }
.note.bad { background: #fbeeec; border-color: #efc9c3; color: #8e3428; }
[data-theme=night] .note { background: #2a2414; border-color: #4a3f22; color: #e7d3a5; }
[data-theme=night] .note.soft { background: var(--sand); border-color: var(--line); color: var(--ink2); }

/* ---------------- tabel ---------------- */
.tbl-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: auto; box-shadow: var(--sh); margin-bottom: 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 14px; background: var(--ivory); border-bottom: 1px solid var(--line); position: sticky; top: 0; cursor: pointer; white-space: nowrap; user-select: none; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th.r, .tbl td.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tbody tr { cursor: pointer; transition: background .1s; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--gold) 7%, transparent); }
.tbl tfoot td { background: var(--ivory); font-weight: 600; border: 0; }
.tbl tr.void td { text-decoration: line-through; color: var(--muted); }
.tbl .grp td { background: var(--sand); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; color: var(--ink2); cursor: default; }
.tbl tr.off td { opacity: .5; }

/* ---------------- kanban & kalender ---------------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.kcol { background: var(--sand); border-radius: var(--r); padding: 10px; min-height: 200px; transition: .15s; }
.kcol.over { outline: 2px dashed var(--gold); }
.khead { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; }
.kcard { background: var(--paper); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; margin-bottom: 8px; cursor: grab; display: grid; gap: 3px; font-size: 12.5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.kcard:hover { border-color: var(--gold); }
.kcard b { font-size: 13.5px; } .kcard span { color: var(--ink2); display: flex; gap: 6px; } .kcard span i { font-style: normal; color: var(--muted); min-width: 70px; }
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .cal-head h3 { font-size: 22px; min-width: 180px; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cal-dn { background: var(--ivory); padding: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); text-align: center; }
.cal-d { background: var(--paper); min-height: 108px; padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.cal-d.out { background: var(--ivory); opacity: .6; } .cal-d.today .cal-n { background: var(--emerald); color: var(--champagne); }
.cal-n { align-self: flex-start; font-weight: 700; font-size: 12px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
.cal-ev { font-size: 11.5px; padding: 3px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c) 12%, transparent); border-left: 3px solid var(--c); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev i { font-style: normal; color: var(--muted); } .cal-more { font-size: 11px; color: var(--muted); }

/* ---------------- modal / drawer ---------------- */
.overlay { position: fixed; inset: 0; background: rgba(10, 30, 25, .45); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .2s; }
.overlay.in { opacity: 1; } .overlay.out { opacity: 0; }
.modal { background: var(--paper); border-radius: 20px; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: var(--sh-lg); transform: translateY(12px) scale(.98); transition: transform .22s; border: 1px solid var(--line); }
.overlay.in .modal { transform: none; }
.modal.sm { max-width: 420px; } .modal.lg { max-width: 860px; }
.overlay.as-drawer { place-items: stretch end; padding: 0; }
.modal.drawer { max-width: 560px; height: 100vh; max-height: 100vh; border-radius: 22px 0 0 22px; transform: translateX(30px); }
.m-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 20px 22px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--dept) 8%, transparent), transparent); border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.m-head h3 { font-size: 25px; line-height: 1.15; }
.m-kicker { font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dept); font-weight: 800; }
.m-body { padding: 16px 22px 20px; overflow-y: auto; flex: 1; }
.m-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex-wrap: wrap; background: var(--ivory); border-radius: 0 0 20px 20px; }
.modal.drawer .m-foot { border-radius: 0 0 0 22px; }
.m-foot .btn.primary { min-width: 120px; }
.lead { font-size: 15px; margin: 0 0 10px; }
.meta-line { font-size: 12px; color: var(--muted); margin-top: 16px; padding-top: 10px; border-top: 1px dashed var(--line); }
.sub-card { background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 14px; }
.sub-card h4 { font-size: 17px; margin-bottom: 6px; }
.menu-list { display: grid; gap: 4px; } .menu-list button { display: flex; gap: 12px; align-items: center; padding: 12px; border: 0; background: none; border-radius: 10px; cursor: pointer; font-weight: 600; text-align: left; }
.menu-list button:hover { background: var(--ivory); }
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: center; background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 99px; box-shadow: var(--sh-lg); font-size: 13.5px; font-weight: 500; animation: rise .2s; max-width: 90vw; }
.toast .ic { color: var(--gold2); } .toast.err { background: #8e3428; color: #fff; } .toast.err .ic { color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }
.cmd-list { display: grid; gap: 2px; margin-top: 10px; max-height: 55vh; overflow-y: auto; }
.cmd-list button { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 10px; cursor: pointer; }
.cmd-list button.on, .cmd-list button:hover { background: var(--ivory); }
.cmd-list b { display: block; font-size: 13.5px; } .cmd-list small { color: var(--muted); } .cmd-list .ic { color: var(--gold); }

/* ---------------- reservasi ---------------- */
.step { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 16px 0 6px; }
.step span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--emerald); color: var(--champagne); font: 700 12px var(--sans); }
.step:first-child { margin-top: 0; }
.guest-pick { position: relative; }
.gp-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--paper); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--sh-lg); overflow: hidden; margin-top: 4px; }
.gp-list:empty { display: none; }
.gp-list button { display: grid; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; cursor: pointer; border-bottom: 1px solid var(--line); }
.gp-list button:hover { background: var(--ivory); } .gp-list span { font-size: 12px; color: var(--muted); } .gp-list .new { color: var(--gold); }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.type-opt { position: relative; text-align: left; border: 1px solid var(--line2); background: var(--paper); border-radius: 12px; padding: 10px 12px 10px 16px; cursor: pointer; display: grid; gap: 1px; overflow: hidden; }
.type-opt i { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.type-opt b { font-size: 13px; } .type-opt span { font-size: 12px; color: var(--ink2); } .type-opt em { font-style: normal; font-size: 11.5px; color: var(--ok); font-weight: 700; }
.type-opt.on { border-color: var(--emerald); box-shadow: 0 0 0 2px color-mix(in srgb, var(--emerald) 30%, transparent); background: color-mix(in srgb, var(--emerald) 5%, var(--paper)); }
.type-opt.full em { color: var(--bad); } .type-opt.full { opacity: .65; }
.res-sum { background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 12px; display: grid; gap: 4px; font-size: 13.5px; }
.res-sum > div { display: flex; justify-content: space-between; gap: 10px; }
.res-sum .grand { border-top: 1px dashed var(--line2); padding-top: 6px; margin-top: 4px; font-size: 15px; }
.res-sum .grand b { font-family: var(--serif); font-size: 24px; color: var(--emerald); }
[data-theme=night] .res-sum .grand b { color: var(--gold2); }
.res-detail .rd-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.res-detail .rd-top > div:nth-child(2) { flex: 1; } .res-detail h2 { font-size: 26px; }
.rd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rd-grid > div { background: var(--paper); padding: 12px 14px; display: grid; }
.rd-grid i { font-style: normal; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rd-grid b { font-family: var(--serif); font-size: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rd-grid span { font-size: 12px; color: var(--muted); }
.room-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; max-height: 230px; overflow: auto; }
.rchip { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line2); background: var(--paper); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-weight: 700; font-family: var(--serif); font-size: 17px; }
.rchip small { font-family: var(--sans); color: var(--muted); font-size: 11px; }
.rchip.on { border-color: var(--emerald); background: var(--emerald); color: var(--champagne); }
.pin { font-size: 28px; letter-spacing: 12px; text-align: center; }

/* ---------------- room rack (tape chart) ---------------- */
.rack-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink2); margin-bottom: 10px; }
.rack-legend span { display: inline-flex; gap: 6px; align-items: center; } .rack-legend i { width: 14px; height: 8px; border-radius: 3px; }
.unassigned { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: #fbf3e1; border: 1px solid #ecdcb8; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }
[data-theme=night] .unassigned { background: #2a2414; border-color: #4a3f22; }
.unassigned b { margin-right: 6px; } .unassigned button { border: 1px solid #e3cd9c; background: var(--paper); border-radius: 99px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.rack { --cw: 64px; --rw: 104px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: auto; box-shadow: var(--sh); max-height: calc(100vh - 230px); position: relative; }
.rack-row { display: grid; grid-template-columns: var(--rw) repeat(var(--days), var(--cw)); position: relative; height: 38px; border-bottom: 1px solid var(--line); min-width: calc(var(--rw) + var(--days) * var(--cw)); }
.rack-head { height: 58px; position: sticky; top: 0; z-index: 4; background: var(--ivory); }
.rack-room { position: sticky; left: 0; z-index: 3; background: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 8px 0 12px; border-right: 1px solid var(--line); }
.rack-room b { font-family: var(--serif); font-size: 17px; }
.rack-room .badge { font-size: 9.5px; padding: 1px 5px; }
.rack-head .rack-room { background: var(--ivory); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.rack-day { display: grid; place-content: center; text-align: center; border-right: 1px solid var(--line); line-height: 1.1; }
.rack-day span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; } .rack-day b { font-family: var(--serif); font-size: 20px; } .rack-day em { font-style: normal; font-size: 10px; color: var(--gold); font-weight: 700; }
.rack-day.we { background: color-mix(in srgb, var(--gold) 7%, transparent); }
.rack-day.today { background: var(--emerald); color: var(--champagne); } .rack-day.today span, .rack-day.today em { color: var(--gold2); }
.rack-cell { border-right: 1px solid var(--line); cursor: cell; }
.rack-cell:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.rack-cell.today { background: color-mix(in srgb, var(--emerald) 6%, transparent); }
.rack-cell.blocked { background: repeating-linear-gradient(45deg, transparent 0 6px, color-mix(in srgb, var(--muted) 18%, transparent) 6px 8px); cursor: not-allowed; }
.rack-group { position: sticky; left: 0; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--sand); font-family: var(--serif); font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line); min-width: calc(var(--rw) + var(--days) * var(--cw)); }
.rack-group i { width: 10px; height: 10px; border-radius: 3px; } .rack-group span { font: 500 11.5px var(--sans); color: var(--muted); }
.rack-bar { position: absolute; top: 5px; height: 28px; left: calc(var(--rw) + var(--s) * var(--cw) + var(--cw) / 2); width: calc((var(--e) - var(--s)) * var(--cw) - 4px); background: var(--c); color: #fff; border: 0; border-radius: 8px; padding: 0 9px; font-size: 12px; font-weight: 600; text-align: left; display: flex; align-items: center; gap: 4px; cursor: pointer; overflow: hidden; white-space: nowrap; box-shadow: 0 3px 8px -4px var(--c); z-index: 2; }
.rack-bar span { overflow: hidden; text-overflow: ellipsis; }
.rack-bar.cut-l { left: calc(var(--rw) + var(--s) * var(--cw)); width: calc((var(--e) - var(--s)) * var(--cw) - 4px + var(--cw) / 2); border-top-left-radius: 0; border-bottom-left-radius: 0; }
.rack-bar.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.rack-bar:hover { filter: brightness(1.08); }

/* ---------------- front desk ---------------- */
.fd-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.fd-tabs button { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 14px 18px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); cursor: pointer; box-shadow: var(--sh); }
.fd-tabs button .ic { grid-row: span 2; color: var(--gold); width: 40px; height: 40px; padding: 9px; background: var(--ivory); border-radius: 12px; }
.fd-tabs b { font-family: var(--serif); font-size: 32px; line-height: 1; } .fd-tabs span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.fd-tabs button.on { background: var(--emerald); border-color: var(--emerald); color: var(--champagne); } .fd-tabs button.on span { color: var(--gold2); } .fd-tabs button.on .ic { background: rgba(255, 255, 255, .1); color: var(--gold2); }
.fd-list { display: grid; gap: 8px; }
.fd-card { display: grid; grid-template-columns: 74px 1fr auto auto; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px 10px 10px; box-shadow: var(--sh); cursor: pointer; }
.fd-card:hover { border-color: var(--gold); }
.fd-room { display: grid; justify-items: center; gap: 2px; padding: 8px 0; border-radius: 10px; background: linear-gradient(160deg, #fbf3e1, #f1e2c1); border: 1px solid #e7d2a5; }
[data-theme=night] .fd-room { background: #2a2414; border-color: #4a3f22; }
.fd-room b { font-family: var(--serif); font-size: 24px; line-height: 1; color: #6c4f1f; } [data-theme=night] .fd-room b { color: var(--gold2); }
.fd-room small { font-size: 10.5px; color: var(--muted); }
.fd-main { display: grid; gap: 2px; min-width: 0; } .fd-main b { font-size: 15px; } .fd-main > span { font-size: 12.5px; color: var(--muted); }
.fd-main .sp { display: inline-flex; gap: 4px; align-items: center; color: var(--gold) !important; font-weight: 600; }
.fd-bal { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13.5px; } .fd-bal i { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.fd-act { display: flex; gap: 6px; }

/* ---------------- folio ---------------- */
.split { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.split-r { min-width: 0; }
.split-l { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; box-shadow: var(--sh); position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow: auto; }
.split-l .search { max-width: none; margin-bottom: 8px; }
.fitem { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; }
.fitem:hover { background: var(--ivory); } .fitem.on { background: color-mix(in srgb, var(--emerald) 9%, transparent); }
.fitem b { font-family: var(--serif); font-size: 20px; text-align: center; color: var(--gold); }
.fitem span { font-size: 13px; font-weight: 600; min-width: 0; } .fitem small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.fitem em { font-style: normal; font-size: 12px; font-weight: 700; }
.folio-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; padding: 18px 20px; position: relative; box-shadow: var(--sh); }
.folio-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 8px; background: radial-gradient(circle at 6px 0, transparent 5px, var(--paper) 5.5px) repeat-x; background-size: 12px 8px; }
.folio-head h2 { font-size: 30px; }
.folio-bal { text-align: right; } .folio-bal i { display: block; font-style: normal; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.folio-bal b { font-family: var(--serif); font-size: 34px; color: var(--ok); } .folio-bal.neg b { color: var(--bad); }
.folio-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 12px; }
.dept-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.dept-pills span { background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: 12px; color: var(--ink2); }
.dept-pills b { color: var(--ink); } .dept-pills .pay { background: color-mix(in srgb, var(--ok) 10%, var(--paper)); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }

/* ---------------- housekeeping (kartu kunci) ---------------- */
.wing { margin-bottom: 18px; } .wing h4 { font-size: 18px; margin-bottom: 8px; color: var(--ink2); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.tile { position: relative; display: grid; gap: 1px; text-align: left; padding: 12px 12px 10px; border-radius: 14px; border: 0; cursor: pointer; color: #fff; background: linear-gradient(150deg, color-mix(in srgb, var(--c) 92%, #fff), var(--c)); box-shadow: 0 8px 18px -10px var(--c); overflow: hidden; min-height: 92px; padding-bottom: 20px; transition: transform .12s; }
.tile::before { content: ""; position: absolute; right: 10px; top: 12px; width: 18px; height: 12px; border-radius: 3px; background: linear-gradient(135deg, #f6dd9f, #c99a4e); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.tile::after { content: ""; position: absolute; right: -24px; bottom: -24px; width: 70px; height: 70px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.tile:hover { transform: translateY(-2px); }
.tile b { font-family: var(--serif); font-size: 26px; line-height: 1; font-weight: 600; }
.tile em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; opacity: .9; }
.tile small { font-size: 11px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .tk { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; background: rgba(0, 0, 0, .18); padding: 2px 12px; }
.tile.big { min-height: 96px; width: 120px; cursor: default; }
.rs-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 8px; } .rs-head p { margin: 4px 0; }
.st-btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.st-btns button { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 12px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--paper)); border-radius: 12px; cursor: pointer; font-weight: 700; }
.st-btns button.on { background: var(--c); color: #fff; } .st-btns button:disabled { opacity: .35; cursor: not-allowed; }
.task-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); } .task-row span { flex: 1; } .task-row small { display: block; color: var(--muted); }

/* ---------------- POS ---------------- */
.pos { display: grid; grid-template-columns: 1fr 360px; grid-template-rows: auto auto 1fr; gap: 12px 16px; grid-template-areas: "top ticket" "checks ticket" "menu ticket"; }
.pos-top { grid-area: top; } .pos-checks { grid-area: checks; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; } .pos-menu { grid-area: menu; min-width: 0; }
.pos-ticket { grid-area: ticket; position: sticky; top: 76px; align-self: start; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh); display: flex; flex-direction: column; max-height: calc(100vh - 100px); overflow: hidden; }
.check { flex: none; display: grid; text-align: left; gap: 1px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--paper); cursor: pointer; min-width: 110px; }
.check b { font-family: var(--serif); font-size: 17px; } .check span { font-size: 11.5px; color: var(--muted); }
.check.on { border-color: var(--dept); background: color-mix(in srgb, var(--dept) 10%, var(--paper)); }
.check.new { display: flex; align-items: center; gap: 6px; border-style: dashed; color: var(--dept); font-weight: 700; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mitem { display: grid; gap: 3px; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; min-height: 96px; align-content: start; box-shadow: var(--sh); transition: transform .1s, border-color .1s; position: relative; overflow: hidden; }
.mitem::before { content: ""; position: absolute; left: 14px; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--dept); }
.mitem:hover { border-color: var(--dept); } .mitem.pop { transform: scale(.95); }
.mitem b { font-size: 13.5px; line-height: 1.25; } .mitem span { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--dept); } .mitem small { color: var(--muted); font-size: 11px; }
.tk-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px dashed var(--line2); background: var(--ivory); }
.tk-head > div { flex: 1; } .tk-head b { font-family: var(--serif); font-size: 20px; display: block; } .tk-head span { font-size: 12px; color: var(--muted); }
.tk-lines { flex: 1; overflow-y: auto; padding: 6px 16px; min-height: 120px; }
.tk-line { display: grid; grid-template-columns: 1fr auto 78px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dotted var(--line2); }
.tk-line b { font-size: 13px; } .tk-line small { display: block; color: var(--muted); font-size: 11px; }
.tk-line em { font-style: normal; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; }
.tk-line.void { opacity: .4; text-decoration: line-through; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 99px; overflow: hidden; }
.qty button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; font-size: 16px; font-weight: 700; color: var(--dept); } .qty span { min-width: 20px; text-align: center; font-weight: 700; font-size: 13px; }
.tk-sum { padding: 10px 16px; border-top: 1px dashed var(--line2); display: grid; gap: 2px; font-size: 13px; }
.tk-sum > div { display: flex; justify-content: space-between; } .tk-sum .grand b { font-family: var(--serif); font-size: 26px; }
.tk-act { display: grid; grid-template-columns: auto 1fr 1.4fr; gap: 8px; padding: 12px 16px; background: var(--ivory); }
.tk-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 50px 20px; color: var(--muted); } .tk-empty .ic { color: var(--dept); } .tk-empty b { color: var(--ink); font-family: var(--serif); font-size: 20px; }
.pay-total { font-family: var(--serif); font-size: 44px; text-align: center; color: var(--emerald); font-weight: 600; margin-bottom: 10px; }
[data-theme=night] .pay-total { color: var(--gold2); }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.pay-methods button { padding: 11px 6px; border: 1px solid var(--line2); background: var(--paper); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 12.5px; }
.pay-methods button.on { border-color: var(--emerald); background: var(--emerald); color: var(--champagne); }

/* ---------------- KDS ---------------- */
.kds { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-items: start; }
.ticket { background: #fffef9; border: 1px solid var(--line); border-radius: 6px 6px 14px 14px; box-shadow: var(--sh); padding: 0 0 10px; overflow: hidden; border-top: 6px solid var(--dept); }
[data-theme=night] .ticket { background: var(--paper); }
.ticket.late { border-top-color: var(--bad); animation: lateglow 2s infinite; }
@keyframes lateglow { 50% { box-shadow: 0 0 0 4px rgba(180, 71, 58, .2); } }
.t-h { display: flex; align-items: baseline; gap: 8px; padding: 10px 12px; border-bottom: 1px dashed var(--line2); }
.t-h b { font-family: var(--serif); font-size: 20px; } .t-h span { flex: 1; font-size: 11.5px; color: var(--muted); } .t-h em { font-style: normal; font-weight: 800; font-size: 12px; }
.t-line { width: 100%; display: grid; grid-template-columns: 32px 1fr auto; gap: 6px; align-items: center; text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px dotted var(--line); background: none; cursor: pointer; }
.t-line b { font-size: 16px; } .t-line small { display: block; color: var(--bad); }
.t-line em { font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; }
.s-new em { background: #e8eef7; color: #1f6f8b; } .s-cooking em { background: #fbf0dd; color: #a5824a; } .s-ready em { background: #e3f2ea; color: #2f7d5b; }
.s-ready { background: color-mix(in srgb, var(--ok) 7%, transparent); }
.ticket .btn.block { width: calc(100% - 24px); margin: 10px 12px 0; }

/* ---------------- night audit ---------------- */
.na { display: grid; grid-template-columns: 420px 1fr; gap: 16px; align-items: start; }
.na-card { background: linear-gradient(170deg, #0f2f29, #0a1f1b); color: var(--champagne); border-color: #24443b; }
.na-card .btn.primary { background: var(--gold); border-color: var(--gold); color: #1a1408; }
.na-date { text-align: center; padding: 10px 0 18px; border-bottom: 1px solid rgba(217, 181, 124, .2); margin-bottom: 14px; display: grid; }
.na-date span { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold2); } .na-date b { font-family: var(--serif); font-size: 32px; font-weight: 500; } .na-date em { font-style: normal; color: #9c957f; font-size: 13px; }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; } .checklist b { display: block; font-size: 13.5px; } .checklist small { color: #a9a18c; }
.checklist .ok .ic { color: #6fc59b; } .checklist .warn .ic { color: #e7b979; }

/* ---------------- admin ---------------- */
.settings { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.feat-list { display: grid; gap: 2px; }
.feat { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.feat b { display: block; font-size: 13.5px; color: var(--ink); } .feat small { color: var(--muted); font-weight: 400; }
.mb { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; align-items: start; }
.mb-group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; box-shadow: var(--sh); }
.mb-group h4 { font-size: 18px; padding: 2px 6px 8px; } .mb-group h4 small { font: 500 11.5px var(--sans); color: var(--muted); }
.mb-row { display: flex; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 10px; }
.mb-row:hover { background: var(--ivory); } .mb-row.off { opacity: .5; }
.mb-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--sand); color: var(--gold); flex: none; }
.mb-t { flex: 1; min-width: 0; } .mb-t b { display: block; font-size: 13.5px; } .mb-t small { color: var(--muted); font-size: 11.5px; }
.mb-a { display: flex; align-items: center; gap: 2px; } .mb-a .icon-btn { width: 30px; height: 30px; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 4px; max-height: 130px; overflow: auto; padding: 6px; border: 1px solid var(--line2); border-radius: 12px; }
.icon-pick button { width: 36px; height: 36px; border: 1px solid transparent; background: none; border-radius: 9px; cursor: pointer; display: grid; place-items: center; color: var(--ink2); }
.icon-pick button.on { border-color: var(--gold); background: var(--champagne); color: var(--emerald); }
.feat-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.fields-ed { display: grid; gap: 6px; margin-bottom: 8px; }
.fe { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr auto auto 30px 30px; gap: 6px; align-items: center; background: var(--ivory); padding: 6px; border-radius: 10px; }
.fe input, .fe select { min-height: 36px !important; padding: 6px 9px !important; font-size: 13px; }
.fe .check { font-size: 12px; }
.roles .split-l { padding: 8px; }
.role-list h5 { margin: 10px 8px 4px; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.ritem { display: grid; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 10px; cursor: pointer; }
.ritem:hover { background: var(--ivory); } .ritem.on { background: var(--emerald); color: var(--champagne); } .ritem.on small { color: var(--gold2); }
.ritem b { font-size: 13px; } .ritem small { color: var(--muted); font-size: 11.5px; }
.role-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; } .role-head h2 { font-size: 28px; }
.tbl.perm td, .tbl.perm th { padding: 7px 10px; } .tbl.perm tbody tr { cursor: default; } .tbl.perm th { cursor: default; font-size: 10px; text-align: center; }
.tbl.perm th:first-child { text-align: left; } .tbl.perm input { width: 17px; height: 17px; accent-color: var(--emerald); }
.sticky-save { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; }
.sticky-save .btn { box-shadow: var(--sh-lg); }
.ucards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.ucard { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; box-shadow: var(--sh); }
.ucard:hover { border-color: var(--gold); } .ucard.off { opacity: .55; }
.ucard > span:nth-child(2) { flex: 1; min-width: 0; } .ucard b { display: block; } .ucard small { color: var(--muted); display: block; } .ucard em { font-style: normal; font-size: 11.5px; color: var(--gold); font-weight: 700; }
.rep .kpis { margin-top: 4px; }

/* =====================================================================
   RESPONSIF — tablet & Android
   ===================================================================== */
@media (max-width: 1180px) {
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pos { grid-template-columns: 1fr 320px; }
  .na, .settings { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(86vw, 320px); transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--sh-lg); }
  body.side-open .side { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(10, 30, 25, .45); z-index: 35; opacity: 0; pointer-events: none; transition: .2s; }
  body.side-open .scrim { opacity: 1; pointer-events: auto; }
  .only-sm { display: inline-grid; } .hide-sm { display: none !important; }
  .top { padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top)); }
  .bizdate span { display: none; } .bizdate { padding: 7px; }
  .demo-bar { padding: 6px 14px; font-size: 11.5px; }
  .view { padding: 16px 14px calc(96px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; background: color-mix(in srgb, var(--forest) 94%, transparent); backdrop-filter: blur(10px); border-radius: 22px; padding: 6px; box-shadow: var(--sh-lg); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 2px; padding: 7px 2px; color: #a9a18c; text-decoration: none; font-size: 10.5px; font-weight: 600; border: 0; background: none; border-radius: 16px; cursor: pointer; }
  .tabbar a.on { color: var(--champagne); background: rgba(217, 181, 124, .16); } .tabbar a.on .ic { color: var(--gold2); }
  .page-head h1 { font-size: 28px; } .hero { padding: 20px; } .hero h1 { font-size: 30px; }
  .dash-grid { grid-template-columns: 1fr; } .span2 { grid-column: auto; }
  .kpis { grid-template-columns: repeat(2, 1fr); } .kpi-val { font-size: 28px; }
  .split { grid-template-columns: 1fr; } .split-l { position: static; max-height: none; }
  .split.has-sel .split-l { display: none; } .split:not(.has-sel) .split-r { display: none; }
  .roles.split .split-l { display: block; } .roles.split .split-r { display: block; }
  .back-sm { display: inline-flex; gap: 4px; align-items: center; text-decoration: none; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
  .fd-tabs { gap: 8px; } .fd-tabs button { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 10px 6px; } .fd-tabs button .ic { display: none; } .fd-tabs b { font-size: 26px; }
  .fd-card { grid-template-columns: 62px 1fr; gap: 10px; } .fd-bal { grid-column: 2; text-align: left; } .fd-bal i { display: inline; margin-right: 6px; } .fd-act { grid-column: 1 / -1; flex-wrap: wrap; } .fd-act .btn { flex: 1; }
  /* tabel responsif menjadi kartu */
  .tbl.resp thead { display: none; }
  .tbl.resp, .tbl.resp tbody, .tbl.resp tr, .tbl.resp td { display: block; width: 100%; }
  .tbl.resp tr { padding: 10px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
  .tbl.resp td { border: 0; padding: 2px 0; text-align: left !important; font-size: 13px; }
  .tbl.resp td::before { content: attr(data-label); display: block; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
  .tbl.resp td.first { grid-column: 1 / -1; font-size: 15px; font-weight: 700; } .tbl.resp td.first::before { display: none; }
  .tbl.resp td:empty { display: none; }
  .tbl.resp tfoot tr { display: flex; justify-content: space-between; } .tbl.resp tfoot td { width: auto; }
  .pos { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "checks" "menu"; }
  .pos-top, .pos-checks, .pos-menu { min-width: 0; }
  .v-pos { animation: none; }
  .pos-ticket { position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 82vh; border-radius: 22px 22px 0 0; z-index: 60; transform: translateY(calc(100% - 128px - env(safe-area-inset-bottom))); transition: transform .25s; box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .35); padding-bottom: env(safe-area-inset-bottom); }
  .v-pos.show-ticket .pos-ticket { transform: none; }
  .v-pos .tk-lines, .v-pos .tk-sum { display: none; } .v-pos.show-ticket .tk-lines, .v-pos.show-ticket .tk-sum { display: grid; }
  .v-pos.show-ticket .tk-lines { display: block; }
  .v-pos { padding-bottom: 240px; }
  .v-pos ~ .tabbar, body:has(.v-pos) .tabbar { display: none; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .mb { grid-template-columns: 1fr; }
  .fe { grid-template-columns: 1fr 1fr; } .fe > span:empty { display: none; }
  .login { grid-template-columns: 1fr; } .login-art { min-height: 300px; } .la-text { padding: 34px 26px; } .la-text h1 { font-size: 44px; } .la-text ul { display: none; }
  .modal { max-height: 92vh; }
  .overlay { padding: 0; place-items: end stretch; }
  .modal, .modal.sm, .modal.lg, .modal.drawer { max-width: none; border-radius: 22px 22px 0 0; height: auto; max-height: 94vh; transform: translateY(40px); }
  .modal .m-foot, .modal.drawer .m-foot { border-radius: 0; }
  .modal .m-foot .btn { flex: 1; }
  .overlay.as-drawer { place-items: end stretch; }
  .rack { --cw: 52px; --rw: 78px; max-height: none; }
  .form-grid { grid-template-columns: 1fr; }
  .rd-grid { grid-template-columns: 1fr 1fr; }
  .cal-d { min-height: 64px; } .cal-ev i, .cal-ev { font-size: 10px; } .cal-ev { padding: 2px 4px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
  .toasts { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media print { .side, .top, .tabbar, .head-actions, .toolbar, .chips { display: none !important; } .shell { display: block; } .view { padding: 0; } }

/* ===================== v1.1 — pembukuan, F&B, analisis ===================== */
.kpi.warn { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); } .kpi.warn .kpi-val { color: var(--bad); }
.kpi.ok .kpi-val { color: var(--ok); }
.insight { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 16px; margin-bottom: 16px; box-shadow: var(--sh); }
.insight[open] { padding-bottom: 14px; }
.insight summary { cursor: pointer; padding: 12px 0; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; color: var(--ink); }
.insight summary::-webkit-details-marker { display: none; }
.insight summary .ic { color: var(--dept); }
.insight summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: .2s; }
.insight:not([open]) summary::after { transform: rotate(-90deg); }
.insight .kpis { margin-bottom: 12px; } .insight .card { box-shadow: none; } .insight .dash-grid { margin-bottom: 0; }
.insight .kpi { box-shadow: none; background: var(--ivory); } .insight .kpi-val { font-size: 28px; }
.toolbar.period select { width: auto; min-width: 170px; }
.acc { display: inline-flex; gap: 8px; align-items: baseline; } .acc i { font-style: normal; font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 700; font-size: 12px; min-width: 52px; }
.jlist { display: grid; gap: 8px; }
.jentry { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--sh); }
.jentry.man { cursor: pointer; border-left: 3px solid var(--dept); } .jentry.man:hover { border-color: var(--gold); }
.jh { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.jh b { flex: 1; font-size: 13.5px; min-width: 200px; } .jh small { color: var(--muted); }
.jd { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--gold); min-width: 54px; }
.jt { width: 100%; border-collapse: collapse; font-size: 13px; }
.jt td { padding: 3px 0; border-top: 1px dotted var(--line); } .jt td.r { width: 140px; font-variant-numeric: tabular-nums; }
.jt td.cr { padding-left: 28px; }
.jl-head, .jl-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) 34px; gap: 6px; align-items: center; }
.jl-head { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; padding: 0 2px 4px; }
.jl-row { margin-bottom: 6px; } .jl-row input, .jl-row select { min-height: 38px !important; padding: 7px 9px !important; font-size: 13px; }
.jl-row input[data-type=money] { text-align: right; }
.lines-ed { border: 1px solid var(--line2); border-radius: 12px; padding: 8px; background: var(--ivory); }
.lines-ed .ln-row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1.1fr) 32px; gap: 6px; align-items: center; margin-bottom: 6px; }
.lines-ed .ln-head { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.lines-ed input, .lines-ed select { min-height: 36px !important; padding: 6px 8px !important; font-size: 13px; }
.ln-sub { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; }
.ln-total { text-align: right; margin-top: 6px; font-size: 13px; } .ln-total b { font-family: var(--serif); font-size: 20px; margin-left: 8px; }
.split.gl { grid-template-columns: 320px 1fr; }
.alist h5 { margin: 12px 8px 4px; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.aitem { display: grid; grid-template-columns: 54px 1fr auto; gap: 6px; width: 100%; text-align: left; padding: 7px 8px; border: 0; background: none; border-radius: 9px; cursor: pointer; font-size: 12.5px; align-items: center; }
.aitem i { font-style: normal; color: var(--gold); font-weight: 700; font-size: 11.5px; } .aitem em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink2); }
.aitem:hover { background: var(--ivory); } .aitem.on { background: var(--emerald); color: var(--champagne); } .aitem.on i, .aitem.on em { color: var(--gold2); }
.tbl tr.sub td { background: var(--ivory); }
.tbl tr.sum td { background: var(--ivory); font-weight: 700; border-top: 1px solid var(--line2); }
.tbl tr.big td { background: color-mix(in srgb, var(--emerald) 8%, var(--paper)); font-weight: 800; font-size: 14.5px; border-top: 2px solid var(--emerald); }
.tbl.tb tbody tr, .tbl.pl tbody tr { cursor: default; } .tbl.tb tbody tr[data-acc] { cursor: pointer; }
.tbl-wrap.flat { box-shadow: none; margin: 0; } .tbl.flat { width: 100%; border-collapse: collapse; font-size: 13px; } .tbl.flat td, .tbl.flat th { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.link { cursor: pointer; text-decoration: underline dotted; }
.bs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; } .bs-grid > div { display: grid; gap: 14px; }
.card.bs .tbl tr[data-acc] { cursor: pointer; } .card.bs .card-h b { font-family: var(--serif); font-size: 22px; }
.stack-chart { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: 6px; }
.sc-col { flex: 1; display: flex; flex-direction: column; align-items: stretch; height: 100%; justify-content: flex-end; min-width: 0; }
.sc-bar { display: flex; flex-direction: column-reverse; border-radius: 5px 5px 2px 2px; overflow: hidden; min-height: 2px; }
.sc-bar i { display: block; min-height: 1px; } .sc-col span { font-size: 10px; text-align: center; color: var(--muted); margin-top: 3px; }
.legend.wide { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin-top: 10px; }
.me-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.me-q { border-radius: 14px; padding: 14px; background: color-mix(in srgb, var(--c) 10%, var(--paper)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); display: grid; gap: 2px; }
.me-q b { font-family: var(--serif); font-size: 22px; color: var(--c); } .me-q em { font-style: normal; font-weight: 700; } .me-q small { color: var(--ink2); }
.cc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: start; }
.cc-t input { min-height: 36px !important; padding: 6px 8px !important; text-align: right; max-width: 170px; margin-left: auto; display: block; }
.cc-t td { vertical-align: middle; }
.plain.small li { font-size: 13px; color: var(--ink2); padding: 3px 0; }
@media (max-width: 900px) {
  .split.gl { grid-template-columns: 1fr; } .split.gl .split-l { display: block; max-height: 260px; overflow: auto; }
  .bs-grid, .cc { grid-template-columns: 1fr; } .me-grid { grid-template-columns: 1fr 1fr; }
  .jl-head { display: none; } .jl-row { grid-template-columns: 1fr 1fr; padding: 8px; background: var(--ivory); border-radius: 10px; } .jl-row select[data-k=acc] { grid-column: 1 / -1; }
  .lines-ed .ln-head { display: none; } .lines-ed .ln-row { grid-template-columns: 1fr 1fr; background: var(--paper); padding: 6px; border-radius: 8px; } .lines-ed .ln-ref { grid-column: 1 / -1; }
  .jt td.r { width: 100px; } .jh b { min-width: 0; flex-basis: 100%; order: 3; }
}
.plain.rows li > span:first-child { flex: 1; min-width: 0; }
.plain.rows li > span.r { text-align: right; flex: none; }
@media (max-width: 900px) { .cc-t { font-size: 12px; } .cc-t input { max-width: 104px; font-size: 12px !important; } .cc-t th, .cc-t td { padding: 6px 4px; } }
