:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #f0eee9;
  --line: #e2dfd8;
  --text: #1d1b18;
  --muted: #6b665d;
  --accent: #08444a; /* teal logo Ravio, docs/brand */
  --accent-ink: #ffffff;
  --accent-soft: #e0eeef;
  --ok: #2f7d4f;
  --ok-soft: #e3f2e8;
  --warn: #9a6a00;
  --warn-soft: #fbf0d4;
  --bad: #b3261e;
  --bad-soft: #fbe3e1;
  --info-soft: #e5eef9;
  --info: #285ea8;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151412; --surface: #1e1c19; --surface-2: #26241f; --line: #34312b;
    --text: #ece8e1; --muted: #a39d92; --accent: #6bbfc6; --accent-ink: #04262a; --accent-soft: #163437;
    --ok: #6cc28c; --ok-soft: #1f3527; --warn: #e2b44a; --warn-soft: #3a2f14;
    --bad: #f08a80; --bad-soft: #42211e; --info: #8db6ee; --info-soft: #1c2a3d;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  --bg: #151412; --surface: #1e1c19; --surface-2: #26241f; --line: #34312b;
  --text: #ece8e1; --muted: #a39d92; --accent: #6bbfc6; --accent-ink: #04262a; --accent-soft: #163437;
  --ok: #6cc28c; --ok-soft: #1f3527; --warn: #e2b44a; --warn-soft: #3a2f14;
  --bad: #f08a80; --bad-soft: #42211e; --info: #8db6ee; --info-soft: #1c2a3d;
  --shadow: 0 1px 2px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 1.35rem; }
h2 { font-size: 1.05rem; }
h3 { font-size: .95rem; }
p { margin: 0; }
.boot { padding: 40px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
.grow { flex: 1; }

/* --- kerangka --- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.nav { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 14px; }
.logo { width: 34px; height: 34px; object-fit: contain; flex: none; } /* tanda R Ravio, docs/brand */
.brand b { display: block; }
.brand span { font-size: .8rem; color: var(--muted); }
.nav a { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-radius: 8px; color: var(--text); }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav .count { font-size: .75rem; background: var(--bad); color: #fff; border-radius: 99px; padding: 1px 7px; font-weight: 600; }
.nav input.find { margin: 0 4px 10px; font-size: .9rem; }
.nav .groups { display: flex; flex-direction: column; gap: 2px; }
.nav .grp { display: flex; flex-direction: column; gap: 2px; }
.nav .grp-head { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: transparent; padding: 9px 10px; border-radius: 8px; font: inherit; color: var(--text); text-align: left; }
.nav .grp-head:hover { background: var(--surface-2); }
.nav .grp-head.here { font-weight: 600; }
.nav .grp-head .chev { color: var(--muted); font-weight: 600; width: 16px; text-align: center; }
.nav a.sub { padding-left: 24px; font-size: .95rem; }
.nav .nav-empty { padding: 8px 10px; }
.todo { display: flex; flex-direction: column; }
.todo-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--line); color: var(--text); }
.todo-row:hover { background: var(--surface-2); text-decoration: none; }
.todo-row .go { color: var(--accent); font-weight: 600; font-size: .9rem; }
.todo-row a.grow { color: var(--text); }
.todo-row a:hover { text-decoration: none; }
.dot { width: 10px; height: 10px; border-radius: 99px; flex-shrink: 0; background: var(--muted); }
.dot.bad { background: var(--bad); }
.dot.warn { background: var(--warn); }
.nav .foot { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 8px 0; font-size: .85rem; }
.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 12px; padding: 18px 28px 6px; }
.view { padding: 12px 28px 48px; max-width: 1180px; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .nav { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .nav.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .top { padding: 14px 16px 4px; }
  .view { padding: 10px 16px 40px; }
}

/* --- komponen --- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.card > h2 { margin-bottom: 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.stat .label { font-size: .82rem; color: var(--muted); }
.stat .value { font-size: 1.45rem; font-weight: 650; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .note { font-size: .82rem; margin-top: 4px; }
a.stat.link { color: inherit; text-decoration: none; }
a.stat.link:hover { border-color: var(--accent); }
.stat .go { color: var(--accent); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 > * { min-width: 0; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }

button, .btn { font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 7px 13px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
button:hover { background: var(--surface-2); }
button.primary, a.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
button.warn { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
button.primary:hover { filter: brightness(1.06); }
button.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
button.primary.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
button.ghost { background: transparent; border-color: transparent; }
button.sm { padding: 4px 9px; font-size: .85rem; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-width: 0; }
textarea { width: 100%; resize: vertical; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
label.field > input, label.field > select, label.field > textarea { color: var(--text); font-size: .95rem; }
.check { display: inline-flex; gap: 6px; align-items: center; }
.check > input[type=checkbox] { flex: none; }
.form-grid > .wide { grid-column: 1 / -1; }

.table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
td input { width: 100%; }
td input.qty { width: 90px; }

.badge { display: inline-block; font-size: .76rem; font-weight: 600; border-radius: 99px; padding: 2px 9px; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.tone-ok { color: var(--ok); }
.tone-warn { color: var(--warn); }
.tone-bad { color: var(--bad); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; max-width: 100%; }
.seg button { border: 0; border-radius: 0; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.empty { padding: 26px 8px; text-align: center; color: var(--muted); }
.notice { border-radius: 8px; padding: 10px 12px; font-size: .9rem; background: var(--info-soft); color: var(--info); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .92rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-variant-numeric: tabular-nums; }

/* --- login --- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { width: 100%; max-width: 360px; padding: 26px; }
.login form > * + * { margin-top: 14px; }
.pin { letter-spacing: .4em; font-size: 1.4rem; text-align: center; width: 100%; }
.login .brand { padding: 0 0 6px; }

/* --- modal & toast --- */
.backdrop { position: fixed; inset: 0; background: rgba(15,12,8,.45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--surface); border-radius: 12px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { max-width: 860px; }
.modal header { padding: 16px 20px 6px; }
.modal .body { padding: 8px 20px 4px; }
.modal .body > * + * { margin-top: 12px; }
.modal footer { padding: 14px 20px 18px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
#toasts { position: fixed; bottom: 16px; right: 16px; left: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; z-index: 60; pointer-events: none; }
.toast { background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; max-width: 420px; box-shadow: var(--shadow); pointer-events: auto; font-size: .92rem; }
.toast.bad { background: var(--bad); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }
.toast.notif { display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-left: 4px solid var(--warn); }
.toast.notif.bad { border-left-color: var(--bad); }
.toast.notif a { font-weight: 600; color: var(--accent); white-space: nowrap; }

/* jarak (tanpa atribut style karena CSP) */
.full { width: 100%; }
.mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; } .mt10 { margin-top: 10px; } .mt12 { margin-top: 12px; } .mt14 { margin-top: 14px; } .mt18 { margin-top: 18px; }
.row.tight { gap: 6px; }
.row.nw { flex-wrap: nowrap; }
.divider { border-top: 1px solid var(--line); padding-top: 12px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 16px; }
table.matrix td.center, table.matrix th.center { text-align: center; }
table.matrix td { padding: 6px 8px; }
pre.json { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; font-size: .8rem; overflow-x: auto; margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; }
a.btn { display: inline-block; text-decoration: none; }
a.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.sm { padding: 4px 9px; font-size: .85rem; }
.absen .att-cam { display: flex; justify-content: center; background: #2b2924; border-radius: 12px; overflow: hidden; }
.att-video, .att-photo { width: 100%; max-width: 420px; display: block; }
.att-photo { border-radius: 8px; }
.proof-img { max-width: 100%; max-height: 70vh; display: block; margin: 8px auto; border-radius: 8px; }
.salbars { display: flex; align-items: flex-end; gap: 6px; height: 100px; margin-top: 6px; overflow-x: auto; }
.salbar { flex: 1 0 44px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; font-size: .75rem; }
.salbar .b { width: 70%; max-width: 32px; border-radius: 3px 3px 0 0; background: var(--ok); }
.salbar .b.warn { background: var(--warn); }
.salbar .b.bad { background: var(--bad); }
.salbar .b.none { background: var(--line); }
.salbar .d, .salbar .v { color: var(--muted); white-space: nowrap; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
button.big { min-height: 48px; font-size: 1.05rem; }

/* --- halaman pesan tamu (m.html) --- */
body.guest { background: var(--surface); }
.g-head { background: var(--accent); color: var(--accent-ink); padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 2px; }
.g-head b { font-size: 1.25rem; }
.g-head .g-sub { font-size: .85rem; opacity: .9; }
.g-chips { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.g-chips button { border-radius: 99px; min-height: 40px; white-space: nowrap; }
.g-chips button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.g-list { padding: 4px 16px 120px; max-width: 640px; margin: 0 auto; }
.g-list h2 { margin: 16px 0 6px; }
.g-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.g-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.g-info span { color: var(--muted); font-size: .9rem; }
.g-note { margin-top: 4px; font-size: .9rem; }
.g-add { border-radius: 99px; min-height: 44px; border-color: var(--accent); color: var(--accent); font-weight: 700; }
.g-step { display: flex; align-items: center; gap: 10px; }
.g-step button { width: 44px; height: 44px; border-radius: 99px; font-size: 1.2rem; padding: 0; }
.g-step button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.g-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px 18px; background: var(--surface); border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: center; }
.g-go { flex: 1; max-width: 608px; display: flex; justify-content: space-between; align-items: center; min-height: 54px; border-radius: 14px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 1.02rem; padding: 0 18px; }
.g-back { min-height: 54px; border-radius: 14px; }
.g-go:hover, .g-step button.on:hover, .g-chips button.on:hover { background: var(--accent); filter: brightness(1.06); }
.g-hint { color: var(--muted); font-size: .88rem; margin: 10px 0; text-align: center; }
.g-field { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.g-status { border-radius: 12px; padding: 14px 16px; margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.g-status.wait { background: var(--warn-soft); color: var(--warn); }
.g-status.ok { background: var(--ok-soft); color: var(--ok); }
.g-status.bad { background: var(--bad-soft); color: var(--bad); }

.so-items { margin: 8px 0 0; padding-left: 18px; }
.qr-img { width: 100%; max-width: 320px; display: block; margin: 0 auto; image-rendering: pixelated; }
.qr-img.qr-sm { max-width: 180px; margin: 0; }
.qris-set { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qris-amt { font-size: 1.8rem; font-weight: 700; text-align: center; }
.qris-note { text-align: center; }
.print-sheet { display: none; }
.w-num { width: 90px; }
.rep-group td { background: var(--surface-2); font-weight: 700; }
.rep-total td { font-weight: 700; }
.rep-info td { color: var(--muted); font-size: .85rem; }
.recap-days { display: flex; flex-wrap: wrap; gap: 8px; }
.recap-text { white-space: pre-wrap; font: inherit; background: var(--surface-2); border-radius: 8px; padding: 12px; margin: 0; }
.order-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.vta-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.vta-card { display: flex; flex-direction: column; gap: 6px; }
.vta-open { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 8px; white-space: normal; width: 100%; }
.vta-card-img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; display: block; }
.vta-card-img.none, .vta-none { display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 2px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: .85rem; min-height: 110px; text-align: center; padding: 8px; }
.vta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.vta-ph { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.vta-img { width: 100%; border-radius: 10px; display: block; }
.vta-garnish { position: relative; display: block; max-width: 520px; }
.vta-garnish.tap { cursor: crosshair; }
.vta-call { position: absolute; transform: translate(-50%, -50%); background: var(--bad); color: #fff; border: 2px solid #fff; border-radius: 50%; width: 30px; height: 30px; line-height: 26px; text-align: center; font-weight: 800; pointer-events: none; }
.vta-list { margin: 4px 0 0; padding-left: 20px; line-height: 1.5; }
.vta-warn { border-color: var(--bad); }
.vta-thumb { display: inline-flex; flex-direction: column; gap: 4px; align-items: center; }
.vta-thumb-img { height: 80px; border-radius: 6px; }
.metode h3 { margin: 14px 0 2px; }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 8px; }
.chk-card { display: flex; flex-direction: column; gap: 8px; }
.chk-q { font-size: 1.9rem; font-weight: 800; letter-spacing: .02em; }
.chk-st { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.chk-it { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 8px; flex-wrap: wrap; }
.chk-it.ok { background: var(--ok-soft); }
.chk-thumb { width: 56px; height: 56px; padding: 0; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.chk-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.chk-go { width: 100%; padding: 10px; }
.qboard { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qlist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.qno { font-size: 1.4rem; font-weight: 800; padding: 6px 12px; border-radius: 8px; background: var(--surface-2); }
.qno.ready { background: var(--ok-soft); color: var(--ok); }
/* layar antrian pelanggan (q.html) */
body.qscreen { background: #111; color: #fff; min-height: 100vh; margin: 0; }
.qs-wrap { padding: 24px; display: flex; flex-direction: column; gap: 20px; min-height: 100vh; box-sizing: border-box; }
.qs-title { font-size: 2rem; font-weight: 800; text-align: center; }
.qs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; flex: 1; }
.qs-col h2 { font-size: 1.6rem; margin: 0 0 12px; color: #ccc; }
.qs-col.ready h2 { color: #7ee2a8; }
.qs-list { display: flex; flex-wrap: wrap; gap: 14px; }
.qs-no { font-size: 3.4rem; font-weight: 800; padding: 10px 20px; border-radius: 12px; background: #262626; }
.qs-col.ready .qs-no { background: #14532d; color: #dcfce7; }
.qs-foot { text-align: center; color: #999; }
@media (max-width: 640px) { .qboard, .qs-cols { grid-template-columns: 1fr; } .qs-no { font-size: 2.2rem; } }
.om { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.om-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.om-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.om-tile span { color: var(--muted); font-size: .82rem; }
.om-tile b { font-size: 1.35rem; }
.om-tile small { color: var(--muted); }
.om-tile.bad b { color: var(--bad); }
.om-tile.warn b { color: var(--warn); }
a.om-tile:hover { background: var(--surface-2); text-decoration: none; }
.help-btn { margin-left: auto; }
.guide { margin: 8px 0 0; padding-left: 20px; line-height: 1.6; }
.guide li { margin-bottom: 6px; }
.lang-tg { display: inline-flex; gap: 4px; }
.lang-tg button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.qscreen .lang-tg { position: fixed; top: 12px; right: 12px; }
.qscreen .lang-tg button { background: #262626; color: #ddd; border-color: #444; }
.qscreen .lang-tg button.on { background: #14532d; color: #dcfce7; }
.chk-menus { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; max-height: 220px; overflow: auto; }
@media print {
  body > *:not(.print-sheet) { display: none !important; }
  .print-sheet { display: block !important; color: #000; }
  .print-sheet table { width: 100%; border-collapse: collapse; }
  .print-sheet td, .print-sheet th { border-bottom: 1px solid #ccc; padding: 4px 6px; font-size: 10pt; }
  .print-sheet .page-break { break-before: page; }
  .qr-print { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 12mm; padding: 8mm; }
  .qr-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; break-inside: avoid; border: 1px solid #ccc; border-radius: 6px; padding: 6mm; color: #000; }
  .qr-cell img { width: 45mm; height: 45mm; image-rendering: pixelated; }
  .qr-cell b { font-size: 16pt; }
  .qr-cell span { font-size: 9pt; }
}
.notif-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 16px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plan { display: flex; flex-direction: column; gap: 8px; }
.plan h3 { margin: 0; }
.plan.on { border-color: var(--accent); }

/* Asisten AI di Beranda (PETA-AI tahap 2) */
.asst .row textarea { flex: 1; min-width: 0; resize: vertical; }
.asst .row button.sm { white-space: normal; text-align: left; }
.asst-turn { border-top: 1px solid var(--line); padding: 12px 0 4px; margin-top: 10px; display: grid; gap: 6px; }
.asst-q { font-weight: 700; }
.asst-a p { margin: 0 0 6px; }
.asst-list { margin: 0 0 6px; padding-left: 20px; }
.asst-list li { margin: 2px 0; }
.asst-table { overflow-x: auto; margin: 0 0 8px; }
.asst-table table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.asst-table th, .asst-table td { border-bottom: 1px solid var(--line); padding: 4px 8px; text-align: left; white-space: nowrap; }
.asst-table th { font-weight: 700; }

/* Bagan organisasi: atasan di tengah atas, garis ke bawahan */
.org-scroll { overflow-x: auto; padding: 8px 0 14px; }
.orgc, .orgc ul { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; position: relative; width: max-content; min-width: 100%; }
.orgc ul { min-width: 0; padding-top: 22px; }
.orgc ul::before { content: ''; position: absolute; top: 0; left: 50%; height: 22px; border-left: 2px solid var(--line); }
.orgc li { position: relative; display: flex; flex-direction: column; align-items: center; padding: 22px 5px 0; }
.orgc li::before, .orgc li::after { content: ''; position: absolute; top: 0; width: 50%; height: 22px; border-top: 2px solid var(--line); }
.orgc li::before { right: 50%; }
.orgc li::after { left: 50%; border-left: 2px solid var(--line); }
.orgc li:only-child::before, .orgc li:only-child::after { display: none; }
.orgc li:only-child { padding-top: 0; }
.orgc li:first-child::before, .orgc li:last-child::after { border: 0 none; }
.orgc li:last-child::before { border-right: 2px solid var(--line); border-radius: 0 6px 0 0; }
.orgc li:first-child::after { border-radius: 6px 0 0 0; }
.orgc > li { padding-top: 0; }
.orgc > li::before, .orgc > li::after { display: none; }
.org-box { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px; width: 124px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.org-box.click { cursor: pointer; }
.org-box.click:hover { border-color: var(--accent); }
.org-title { font-weight: 700; font-size: .85rem; line-height: 1.25; }
.org-name { font-size: .82rem; color: var(--accent); }

/* Semua kategori: layar awal Owner */
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.hub-card { display: flex; flex-direction: column; gap: 8px; }
.hub-head { display: flex; align-items: center; justify-content: space-between; color: inherit; text-decoration: none; }
.hub-head h2 { margin: 0; }
.hub-links { display: flex; flex-direction: column; }
.hub-links a { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.hub-links a:hover, .hub-head:hover h2 { color: var(--accent); }
.hub-todo { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.hub .count { font-size: .75rem; background: var(--bad); color: #fff; border-radius: 99px; padding: 1px 7px; font-weight: 600; }

/* Jadwal shift */
table.sched td.sched-cell { cursor: pointer; min-width: 84px; }
table.sched td.sched-cell:hover { background: var(--accent-soft); }
table.sched td.off { color: var(--muted); }
table.sched td.changed { box-shadow: inset 3px 0 0 var(--warn); }
table.sched th.today { color: var(--accent); }
.sched-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sched-day { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.sched-day.off { color: var(--muted); }
