/* CoreStay v2 — "lacquer & brass".
   Indigo pernis dari logo CoreStay, porselen dingin sebagai kertas, kuningan untuk satu aksen.
   Angka memakai tabular figures supaya kolom rupiah sejajar. */

:root {
  --lacquer: #14204a;
  --lacquer-2: #1d2c5e;
  --lacquer-3: #2a3b74;
  --porcelain: #eef1f6;
  --paper: #ffffff;
  --brass: #a87b2f;
  --brass-soft: #f4ead6;
  --ink: #1a2133;
  --ink-2: #4d5670;
  --ink-3: #7b8398;
  --rule: #d9dee8;
  --rule-2: #e7eaf1;
  --good: #1e7a68;
  --good-soft: #dff1ec;
  --warn: #a8691a;
  --warn-soft: #faefdc;
  --bad: #b23a3a;
  --bad-soft: #f8e3e3;
  --info: #2f5aa8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --r-lg: 18px;
  --r-md: 10px;
  --r-sm: 6px;
  --rail: 248px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--porcelain); color: var(--ink); font: 15px/1.55 var(--sans);
  font-feature-settings: "tnum" 1, "lnum" 1; }
a { color: var(--lacquer-3); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--lacquer); letter-spacing: -.01em; }
h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 .25rem; }
h2 { font-size: 1.35rem; margin: 0 0 .75rem; }
h3 { font-size: 1.08rem; margin: 0 0 .5rem; }
p { margin: 0 0 .75rem; max-width: 72ch; }
small, .muted { color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
.ic { flex: none; }
[hidden] { display: none !important; }

/* ---------- kerangka ---------- */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--lacquer);
  color: #c9d1e8; display: flex; flex-direction: column; padding: 18px 14px; }
.brand { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; padding: 4px 8px 18px; }
.brand b { display: block; font-family: var(--serif); font-size: 1.2rem; letter-spacing: .01em; }
.brand small { display: block; color: #9aa6c8; font-size: .78rem; line-height: 1.2; }
.rail nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.rail nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--r-md);
  color: #c9d1e8; text-decoration: none; font-size: .93rem; position: relative; }
.rail nav a:hover { background: var(--lacquer-2); color: #fff; }
.rail nav a.on { background: var(--lacquer-2); color: #fff; }
.rail nav a.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--brass); }
.rail-group { margin: 18px 10px 6px; font-size: .74rem; color: #7f8bb0; letter-spacing: .02em; }
.soon { display: block; padding: 4px 10px 4px 41px; font-size: .86rem; color: #6f7ba1; }
.rail-foot { border-top: 1px solid var(--lacquer-2); margin-top: 14px; padding-top: 12px; display: flex;
  align-items: center; justify-content: space-between; gap: 8px; }
.me { display: flex; gap: 10px; align-items: center; text-decoration: none; color: #fff; min-width: 0; }
.me b { display: block; font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { display: block; color: #9aa6c8; font-size: .75rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brass); color: #fff; display: grid;
  place-items: center; font-family: var(--serif); font-weight: 600; flex: none; }
.rail .link { color: #9aa6c8; }

main { padding: 0 40px 48px; min-width: 0; outline: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px;
  padding: 14px 0 8px; }
.crumbs { color: var(--ink-3); font-size: .9rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.foot { margin-top: 48px; color: var(--ink-3); font-size: .8rem; }
.tabbar { display: none; }

/* ---------- komponen ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin: 4px 0 24px; }
.page-head p { color: var(--ink-2); margin: 0; }
.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 22px 24px; }
.panel + .panel, .stack > * + * { margin-top: 20px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel.flush > h2, .panel.flush > .panel-head { padding: 20px 24px 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.grid-2 > .panel + .panel { margin-top: 0; }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rule); background: var(--paper);
  color: var(--ink); border-radius: 999px; padding: 8px 16px; font: 600 .9rem/1.2 var(--sans); cursor: pointer;
  text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--lacquer); border-color: var(--lacquer); color: #fff; }
.btn.primary:hover { background: var(--lacquer-2); }
.btn.brass { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn.danger { color: var(--bad); border-color: #e7c3c3; }
.btn.small { padding: 5px 12px; font-size: .82rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--lacquer-3); font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; }

form.inline { display: inline; }
label { display: block; font-size: .85rem; color: var(--ink-2); margin-bottom: 4px; }
input, select, textarea { width: 100%; font: 15px/1.4 var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 9px 11px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lacquer-3);
  box-shadow: 0 0 0 3px rgba(42, 59, 116, .15); }
input[type=checkbox] { width: auto; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 16px; }
.fields .wide { grid-column: 1 / -1; }
.form-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hint { font-size: .82rem; color: var(--ink-3); margin-top: 6px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink); }
.input-money { text-align: right; }

.flash { border-radius: var(--r-md); padding: 11px 16px; margin-bottom: 14px; font-size: .92rem; border: 1px solid; }
.flash-ok { background: var(--good-soft); border-color: #b9ddd3; color: #134e43; }
.flash-error { background: var(--bad-soft); border-color: #ebc0c0; color: #7d2323; }
.online-state { background: var(--warn-soft); color: #6b4310; border-radius: var(--r-md); padding: 9px 14px;
  margin-bottom: 14px; font-size: .9rem; }

/* tabel */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: .8rem; padding: 10px 12px;
  border-bottom: 1px solid var(--rule); white-space: nowrap; background: #f7f8fb; }
td { padding: 10px 12px; border-bottom: 1px solid var(--rule-2); vertical-align: middle; }
tbody tr:hover td { background: #fafbfd; }
td.num, th.num { text-align: right; white-space: nowrap; }
tfoot td { font-weight: 600; border-top: 1px solid var(--rule); border-bottom: 0; }
.who b { display: block; font-weight: 600; }
.who small { display: block; }
.empty { padding: 36px 24px; text-align: center; color: var(--ink-2); }
.empty p { margin: 0 auto 12px; }

.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600;
  background: var(--rule-2); color: var(--ink-2); white-space: nowrap; }
.tag.good { background: var(--good-soft); color: var(--good); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.brass { background: var(--brass-soft); color: #7a5717; }

.segmented { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper);
  overflow: hidden; }
.segmented a { padding: 7px 14px; font-size: .86rem; text-decoration: none; color: var(--ink-2); }
.segmented a.on { background: var(--lacquer); color: #fff; }
.period { display: inline-flex; align-items: center; gap: 4px; background: var(--paper); border: 1px solid var(--rule);
  border-radius: 999px; padding: 3px; }
.period a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; text-decoration: none;
  color: var(--ink-2); font-size: 1.1rem; }
.period a:hover { background: var(--rule-2); }
.period b { font-family: var(--serif); font-weight: 600; padding: 0 10px; color: var(--lacquer); }

.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--rule); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 10px 0; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem;
  border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--lacquer); border-color: var(--brass); }

/* ---------- beranda: buku tamu hari ini ---------- */
.ledger { background: var(--lacquer); color: #dfe5f5; border-radius: 22px; padding: 30px 34px 28px; position: relative;
  overflow: hidden; }
.ledger::after { content: ""; position: absolute; inset: auto -60px -120px auto; width: 340px; height: 340px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 0 0 40px rgba(255, 255, 255, .02); }
.ledger-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.ledger .date { font-family: var(--serif); font-size: 1.05rem; color: #b9c3e2; }
.ledger .clock { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: #fff; letter-spacing: -.02em; }
.ledger .hotel-pick select { background: var(--lacquer-2); color: #fff; border-color: var(--lacquer-3); width: auto; }
.tally { display: flex; gap: 40px; margin-top: 28px; flex-wrap: wrap; position: relative; z-index: 1; }
.tally div { min-width: 92px; }
.tally b { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: #fff; font-weight: 500; }
.tally span { font-size: .86rem; color: #a7b2d4; }
.tally .of { color: #8592bb; }
.meter { margin-top: 22px; position: relative; z-index: 1; }
.meter svg { display: block; width: 100%; height: 12px; }
.meter-legend { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 10px; font-size: .8rem; color: #a7b2d4; }
.meter-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px;
  vertical-align: 0; }
.k-present { fill: #d6b16a; background: #d6b16a; }
.k-late { fill: #e08a4f; background: #e08a4f; }
.k-leave { fill: #7f9be0; background: #7f9be0; }
.k-none { fill: #33437c; background: #33437c; }

.issues { list-style: none; margin: 0; padding: 0; }
.issues li { border-bottom: 1px solid var(--rule-2); }
.issues li:last-child { border-bottom: 0; }
.issues a { display: flex; gap: 12px; align-items: center; padding: 12px 0; text-decoration: none; color: var(--ink); }
.issues .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; }
.issues .dot.info { background: var(--info); }
.calm { color: var(--good); font-weight: 600; }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; }
.figures > div { padding: 4px 18px; border-left: 1px solid var(--rule-2); }
.figures > div:first-child { border-left: 0; padding-left: 0; }
.figures b { display: block; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--lacquer); }
.figures span { font-size: .84rem; color: var(--ink-2); }

.timeline { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.timeline li { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 7px 0;
  border-bottom: 1px dashed var(--rule-2); }
.timeline time { color: var(--ink-3); white-space: nowrap; }

/* status payroll: jalur langkah */
.steps { display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 8px; counter-reset: s; flex-wrap: wrap; }
.steps li { flex: 1; min-width: 120px; padding: 12px 14px 12px 0; border-top: 3px solid var(--rule); color: var(--ink-3);
  font-size: .86rem; }
.steps li b { display: block; color: var(--ink-2); font-size: .95rem; }
.steps li.done { border-color: var(--lacquer-3); }
.steps li.now { border-color: var(--brass); }
.steps li.now b { color: var(--lacquer); }

/* jadwal */
.sched td, .sched th { padding: 6px; text-align: center; }
.sched td:first-child, .sched th:first-child { text-align: left; padding-left: 12px; min-width: 180px; }
.sched select { padding: 6px 4px; font-size: .84rem; min-width: 84px; }
.sched th.today { color: var(--brass); }

/* kios QR */
.kiosk { min-height: 100vh; background: var(--lacquer); color: #fff; display: grid; place-items: center; text-align: center;
  padding: 24px; }
.kiosk h1 { color: #fff; font-size: 2.2rem; }
.kiosk .qr { background: #fff; border-radius: 22px; padding: 18px; width: min(72vw, 360px); margin: 22px auto; }
.kiosk .qr svg { width: 100%; height: auto; display: block; }
.kiosk .code { font-family: var(--serif); letter-spacing: .3em; font-size: 1.6rem; color: #d6b16a; }
.kiosk .bar { height: 3px; background: rgba(255, 255, 255, .15); border-radius: 2px; width: 220px; margin: 12px auto 0; overflow: hidden; }
.kiosk .bar i { display: block; height: 100%; background: #d6b16a; transform-origin: left; }

/* halaman absen karyawan */
.clock-page { min-height: 100vh; background: linear-gradient(var(--lacquer) 0 230px, var(--porcelain) 230px); padding: 28px 18px; }
.clock-card { max-width: 420px; margin: 0 auto; background: var(--paper); border-radius: 22px; padding: 26px 24px;
  border: 1px solid var(--rule); }
.clock-card .where { font-family: var(--serif); font-size: 1.5rem; color: var(--lacquer); margin: 0 0 4px; }
.clock-head { color: #cbd3ea; text-align: center; max-width: 420px; margin: 0 auto 18px; }
.clock-head img { display: block; margin: 0 auto 10px; }
.pin { letter-spacing: .4em; font-size: 1.4rem; text-align: center; }
.result { text-align: center; padding: 18px 0 4px; }
.result .big { font-family: var(--serif); font-size: 3rem; color: var(--lacquer); line-height: 1; }
.result.ok .big { color: var(--good); }
.result.err { color: var(--bad); }

/* login */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 520px); }
.auth-art { background: var(--lacquer); color: #cbd3ea; padding: 48px; display: flex; flex-direction: column;
  justify-content: space-between; position: relative; overflow: hidden; }
.auth-art h1 { color: #fff; font-size: clamp(2rem, 3.4vw, 3rem); max-width: 14ch; line-height: 1.08; margin-top: 18px; }
.auth-art p { max-width: 40ch; }
.auth-art .keys { position: absolute; right: -40px; bottom: -40px; opacity: .9; width: 360px; }
.auth-form { background: var(--paper); padding: 48px clamp(24px, 5vw, 64px); display: flex; flex-direction: column;
  justify-content: center; }
.auth-form h2 { font-size: 1.7rem; }
.auth-form .fields { grid-template-columns: 1fr; }
.pw-row { position: relative; }
.pw-row button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }

.slip { max-width: 760px; }
.slip dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; margin: 0; }
.slip dt { color: var(--ink-2); }
.slip dd { margin: 0; text-align: right; }
.slip .total { border-top: 1px solid var(--rule); padding-top: 10px; font-weight: 700; }

.err-page { max-width: 560px; margin: 12vh auto; padding: 24px; }
.err-page b { font-family: var(--serif); font-size: 4rem; color: var(--brass); }

dialog { border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 22px 24px; max-width: 460px; width: 92vw; }
dialog::backdrop { background: rgba(20, 32, 74, .45); }
details summary { cursor: pointer; color: var(--lacquer-3); font-weight: 600; }
.mono-key { font: 600 1.05rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em;
  word-break: break-all; background: var(--porcelain); padding: 10px 12px; border-radius: var(--r-sm); }

/* ---------- ponsel / PWA ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; inset: 0 auto 0 0; width: 82vw; max-width: 320px; z-index: 30; transform: translateX(-105%);
    transition: transform .22s ease; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  body.menu-open .rail { transform: none; box-shadow: 0 0 0 100vmax rgba(20, 32, 74, .4); }
  main { padding: 0 16px calc(90px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 52px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 20; background: var(--paper); border-top: 1px solid var(--rule);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 600 .7rem/1.2 var(--sans);
    color: var(--ink-3); text-decoration: none; background: none; border: 0; padding: 4px 0; }
  .tabbar .on { color: var(--lacquer); }
  .tabbar .on .ic { color: var(--brass); }
  .grid-2 { grid-template-columns: 1fr; }
  .ledger { padding: 22px 20px; border-radius: 18px; }
  .ledger .clock { font-size: 2.6rem; }
  .tally { gap: 22px; }
  .tally b { font-size: 2rem; }
  h1 { font-size: 1.6rem; }
  .panel { padding: 18px 16px; border-radius: 14px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 220px; padding: 28px 24px; }
  .auth-art .keys { width: 220px; }
  .figures > div { border-left: 0; padding-left: 0; }
  .hide-sm, .hide-md { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .rail, .tabbar, .topbar, .tabs, .foot, .no-print, .flash { display: none !important; }
  .shell { display: block; } main { padding: 0; } body { background: #fff; }
  .panel { border: 0; padding: 0; }
}

/* utilitas */
.mt { margin-top: 20px; }
.pad { padding: 0 24px 20px; }
.narrow { max-width: 520px; }
.mid { max-width: 640px; }
.grow { flex: 1; min-width: 220px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-form input, .row-form select { width: auto; flex: 1; min-width: 90px; }
td .row-form input.input-money { max-width: 130px; }
.fields.one { grid-template-columns: 1fr; }
.wide-btn { width: 100%; justify-content: center; padding: 13px; font-size: 1rem; }
.over { color: var(--bad) !important; }
svg.use { width: 120px; height: 8px; vertical-align: middle; }
.use-bg { fill: var(--rule-2); }
.use-on { fill: var(--lacquer-3); }
.use-over { fill: var(--bad); }
.console { max-width: 1100px; margin: 0 auto; padding: 32px 20px 60px; }
.stack > .panel + .panel { margin-top: 20px; }
.grid-2 .stack .panel { margin-top: 0; }
.grid-2 .stack .panel + .panel { margin-top: 20px; }

.pay .who { min-width: 180px; }
.pay td, .pay th { padding-left: 9px; padding-right: 9px; }
.pay-in { width: 104px; padding: 6px 8px; text-align: right; }
.pay-actions { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 1280px) and (min-width: 901px) { .hide-md { display: none; } }
.kiosk a { color: #c9d1e8; }
.kiosk .qr a.mono-key { display: block; font-size: .78rem; color: var(--lacquer); margin-top: 8px; }
.kiosk .muted { color: #a7b2d4; }
.kiosk .qr .muted { color: var(--ink-3); }

/* ---------- finance ---------- */
.tag.muted-tag { background: var(--rule-2); color: var(--ink-3); text-decoration: line-through; }
.pad-top { padding: 18px 24px 4px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; }
.checklist { list-style: none; margin: 14px 0 0; padding: 0; max-height: 320px; overflow-y: auto;
  border: 1px solid var(--rule-2); border-radius: var(--r-md); }
.checklist li { padding: 8px 12px; border-bottom: 1px solid var(--rule-2); font-size: .88rem; }
.checklist li:last-child { border-bottom: 0; }
table.lines input, table.lines select { width: 100%; min-width: 120px; }
table.lines .qty-in { width: 76px; min-width: 0; text-align: right; }
table.pnl td:first-child { padding-left: 24px; }
table.pnl tr.sub td { color: var(--ink-3); font-size: .84rem; padding-top: 4px; padding-bottom: 4px; }
table.pnl tr.sub td:first-child { padding-left: 44px; }
table.pnl tr.grp th { background: transparent; color: var(--lacquer); font-family: var(--serif); font-size: .98rem;
  padding-top: 18px; }
table.pnl tr.sum td { font-weight: 600; border-top: 1px solid var(--rule); }
table.pnl tr.big td { font-weight: 700; font-size: 1rem; background: var(--brass-soft); color: var(--lacquer); }

/* ---------- Sales CRM ---------- */
.search-form input { min-width: 260px; }
.issues-row { display: flex; flex-wrap: wrap; gap: 10px; }
.issues-row a { background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px;
  text-decoration: none; color: var(--ink-2); font-size: .88rem; }
.issues-row b { color: var(--lacquer); font-family: var(--serif); margin-right: 4px; }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: 150px 1fr 130px; gap: 4px 12px; align-items: center; padding: 7px 0;
  border-bottom: 1px dashed var(--rule-2); font-size: .88rem; }
.bars li small { grid-column: 2 / -1; }
.bars svg.use { width: 100%; height: 8px; }
.big-figure { font-family: var(--serif); font-size: 2.4rem; color: var(--lacquer); margin: 0 0 6px; line-height: 1.1; }
.board { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 14px; overflow-x: auto; }
.board .col { background: #f7f8fb; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 12px; min-height: 140px; }
.board .col h2 { font-size: 1rem; margin: 0; }
.board .card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 10px 12px;
  margin-top: 10px; font-size: .88rem; }
.board .card a.t { font-weight: 600; text-decoration: none; display: block; }
.board .card form { display: inline; }
.board .moves { display: flex; gap: 6px; margin-top: 6px; }
.board .moves button { border: 1px solid var(--rule); background: var(--paper); border-radius: var(--r-sm); padding: 1px 8px;
  cursor: pointer; color: var(--ink-2); }
.stars { color: var(--brass); letter-spacing: 1px; white-space: nowrap; }
.up { color: var(--good); }
.down { color: var(--bad); }
.review-body { background: #f7f8fb; border-radius: var(--r-md); padding: 12px 14px; margin: 0 0 14px; white-space: pre-wrap; }
.kpi-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.kpi-cards > div { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 16px 18px; }
.kpi-cards b { display: block; font-family: var(--serif); font-size: 1.45rem; color: var(--lacquer); }
.kpi-cards span { font-size: .84rem; color: var(--ink-2); }
.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.insights > div { border-left: 3px solid var(--brass); padding: 4px 0 4px 12px; font-size: .9rem; }
.insights b { display: block; color: var(--lacquer); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chips a { border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px; font-size: .84rem; text-decoration: none;
  color: var(--ink-2); background: var(--paper); }
.chips a.on { background: var(--lacquer); color: #fff; border-color: var(--lacquer); }
.day-head { margin: 18px 0 4px; font-size: 1rem; }
.done-row { opacity: .55; text-decoration: line-through; }
.inline-form { display: inline; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters > div { min-width: 150px; }
.panel > svg.use { display: block; width: 100%; height: 10px; margin-bottom: 8px; }
.timeline.wide-time li { grid-template-columns: 170px 1fr; }

/* ---------------------------------------------------------------- Ops: papan kamar */
.st-VC { --st: #1e7a68; } .st-VI { --st: #0f6b78; } .st-VD { --st: #b23a3a; } .st-OC { --st: #2f5aa8; }
.st-OD { --st: #b8601a; } .st-OOO { --st: #4b5568; } .st-OOS { --st: #7449b0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.legend a, .legend span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); border-radius: 999px;
  padding: 3px 11px; font-size: .82rem; text-decoration: none; color: var(--ink); background: var(--paper); }
.legend a.on { border-color: var(--lacquer); box-shadow: inset 0 0 0 1px var(--lacquer); }
.dot-st { width: 10px; height: 10px; border-radius: 50%; background: var(--st); display: inline-block; flex: none; }
.floor { margin-top: 16px; }
.floor h2 { font-size: .95rem; margin: 0 0 8px; color: var(--ink-2, var(--ink)); }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.room-tile { display: block; position: relative; background: var(--paper); border: 1px solid var(--rule);
  border-top: 5px solid var(--st); border-radius: var(--r-md); padding: 7px 9px 8px; text-decoration: none;
  color: var(--ink); min-height: 74px; }
.room-tile:hover, .room-tile:focus-visible { border-color: var(--st); }
.room-tile b { display: block; font-size: 1.08rem; line-height: 1.2; }
.room-tile .code { font-weight: 700; font-size: .78rem; color: var(--st); }
.room-tile small { display: block; font-size: .72rem; color: var(--ink-3, #667); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.room-tile .flags { position: absolute; top: 6px; right: 8px; font-size: .66rem; font-weight: 700; letter-spacing: .02em;
  color: var(--brass); }
.tag.st-tag { background: var(--paper); color: var(--st); border: 1px solid var(--st); }
.chip-room { display: inline-block; border: 1px solid var(--rule); border-left: 4px solid var(--st); border-radius: var(--r-sm);
  padding: 2px 8px; margin: 2px 4px 2px 0; font-size: .82rem; text-decoration: none; color: var(--ink); background: var(--paper); }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.att-grid .panel { margin: 0; }
.checklist-ops { list-style: none; padding: 0; margin: 0; }
.checklist-ops li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.checklist-ops label { display: flex; gap: 10px; align-items: center; }
.trend-svg { width: 100%; height: 120px; }
.trend-svg .c1 { fill: var(--lacquer); } .trend-svg .c2 { fill: var(--good); }
.trend-svg text { font-size: 9px; fill: var(--ink-3, #667); }
.trend-svg .lim { stroke: var(--bad); stroke-dasharray: 4 3; stroke-width: 1; }
.late-row td { background: var(--bad-soft); }
.lg1 { --st: var(--lacquer); } .lg2 { --st: var(--good); }
.row-form .qty-in { width: 76px; min-width: 0; text-align: right; }
.row-form .pw-row { display: inline-block; }
.pw-row input { padding-right: 96px; }
