/* Nglaren: HP gelap untuk petugas di lapangan, layar PC terang untuk admin. Warna & font dari desain tahap 1-2. */
@font-face { font-family: Manrope; font-weight: 500; font-display: swap; src: url(/fonts/manrope-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(/fonts/manrope-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(/fonts/manrope-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(/fonts/manrope-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-weight: 500; font-display: swap; src: url(/fonts/atkinson-hyperlegible-next-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2) format('woff2'); }

:root {
  --orange: #E85002; --orange-hi: #F16001; --red: #C10801; --orange-tint: #FDEEE6;
  --head: Manrope, system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  /* dark (default, phones) */
  --bg: #000; --card: #1a1a1a; --card2: #262626; --field: #111; --line: #333333; --muted: #A7A7A7; --dim: #646464; --text: #F9F9F9;
  --on-orange: #000; --nav: #0d0d0d;
}
/* light (admin on PC) */
.theme-light {
  --bg: #F9F9F9; --card: #fff; --card2: #f3f3f3; --field: #fff; --line: #e4e4e4; --muted: #646464; --dim: #A7A7A7; --text: #000;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.4 var(--body); -webkit-tap-highlight-color: transparent; }
body.theme-light { background: #F9F9F9; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -0.02em; }
a { color: var(--orange); text-decoration: none; }
.boot { padding: 40vh 0 0; text-align: center; color: var(--muted); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Phone frame (on a big screen the phone layout is centred) ---------- */
.phone { max-width: 480px; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; position: relative; background: var(--bg); }
.phone-body { flex: 1; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 12px) 20px 20px; gap: 14px; min-width: 0; }
.phone-body.has-nav { padding-bottom: 104px; }
.phone-body.has-foot { padding-bottom: 130px; }

.topbar { display: flex; align-items: center; gap: 6px; padding: calc(env(safe-area-inset-top) + 6px) 16px 8px; }
.topbar h1 { font-size: 24px; font-weight: 800; line-height: 1.2; flex: 1; min-width: 0; }
.back { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--orange); font-size: 26px; font-weight: 700; flex-shrink: 0; }
.badge { font-size: 18px; font-weight: 700; color: #000; background: var(--orange); border-radius: 999px; padding: 3px 12px; }

.greet { display: flex; flex-direction: column; gap: 4px; }
.greet small { font-size: 17px; color: var(--muted); }
.greet h1 { font-size: 28px; font-weight: 800; }
.page-title { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; }
.page-title h1 { font-size: 28px; font-weight: 800; }
.page-title p { margin: 0; color: var(--muted); font-size: 17px; }

/* ---------- Bottom nav ---------- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; background: var(--nav); border-top: 1px solid var(--line); }
.bottom-nav .inner { width: 100%; max-width: 480px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 8px 8px calc(env(safe-area-inset-bottom) + 10px); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 58px; color: var(--muted); font-size: 14px; font-weight: 700; }
.bottom-nav a.on { color: var(--orange); }
.bottom-nav svg { width: 24px; height: 24px; }

/* ---------- Cards, buttons, fields (phone) ---------- */
.card { border-radius: 16px; background: var(--card); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); min-width: 0; }
.card.plain { border-color: transparent; }
.card.hot { border: 2px solid var(--orange); }
.card h2 { font-size: 20px; font-weight: 800; }
.card .strong { font-size: 17px; font-weight: 700; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat .label { font-size: 16px; color: var(--muted); }
.stat .num { font-size: 28px; font-weight: 700; }
.stat .num small { color: var(--muted); font-size: 20px; font-weight: 400; }
.stat .sub { font-size: 15px; color: var(--muted); }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 4px; }
.bar > i { display: block; height: 6px; background: var(--orange); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 60px; border-radius: 16px; border: 0; background: var(--orange); color: #000; font-family: var(--head); font-size: 21px; font-weight: 800; padding: 0 20px; width: 100%; }
.btn:active { background: var(--red); }
.btn[disabled] { background: #333; color: #777; cursor: default; }
.btn.ghost { background: var(--card); color: var(--text); border: 2px solid var(--line); font-size: 20px; }
.btn.ghost:active { background: #262626; }
.btn.small { height: 44px; font-size: 16px; border-radius: 12px; width: auto; }
.btn-link { border: 0; background: transparent; color: var(--text); font-weight: 700; text-decoration: underline; font-size: 15px; padding: 4px; }
.scan-btn { height: 184px; border-radius: 24px; border: 0; background: var(--orange); color: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; font-family: var(--head); font-size: 30px; font-weight: 800; letter-spacing: -0.01em; width: 100%; }
.scan-btn:active { background: var(--red); }
.scan-btn.off { background: transparent; border: 2px dashed var(--line); color: var(--dim); height: 120px; font-size: 26px; }
.scan-btn.off small { font-family: var(--body); font-size: 15px; font-weight: 400; }
.scan-glyph { width: 56px; height: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.scan-glyph i { border: 5px solid #000; border-radius: 6px; }
.scan-glyph i:last-child { background: #000; }
.link-row { height: 56px; border-radius: 16px; border: 2px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: var(--text); font-size: 18px; font-weight: 700; }
.link-row .arrow { color: var(--orange); font-size: 22px; }
.link-row em { font-style: normal; color: var(--orange); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .label-strong { font-size: 17px; font-weight: 700; }
.input { height: 60px; border-radius: 14px; background: var(--card); border: 2px solid var(--line); padding: 0 18px; font-size: 22px; letter-spacing: 0.02em; width: 100%; outline: none; }
.input:focus { border-color: var(--orange); }
.search { height: 56px; border-radius: 14px; background: var(--card); border: 2px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.search i { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--muted); flex-shrink: 0; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 18px; }

.err { color: #fff; background: var(--red); border-radius: 12px; padding: 10px 14px; font-size: 16px; font-weight: 700; }
.note { font-size: 16px; color: var(--muted); line-height: 1.4; }

/* ---------- Login ---------- */
.login { padding: calc(env(safe-area-inset-top) + 20px) 24px 28px; display: flex; flex-direction: column; gap: 22px; flex: 1; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(140deg, #F16001, #C10801); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 800; font-size: 24px; color: #000; flex-shrink: 0; }
.brand h1 { font-size: 28px; font-weight: 800; line-height: 1; }
.brand p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.pin-head { display: flex; justify-content: space-between; align-items: baseline; }
.pin-head span:last-child { color: var(--muted); font-size: 16px; }
.pin-dots { display: flex; gap: 10px; }
.pin-dots div { flex: 1; height: 52px; border-radius: 12px; border: 2px solid var(--line); background: var(--field); display: flex; align-items: center; justify-content: center; }
.pin-dots div.next { border-color: var(--orange); }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; background: transparent; }
.pin-dots div.on i { background: var(--orange); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keypad button { height: 62px; border-radius: 14px; border: 0; background: var(--card); font-size: 26px; font-weight: 700; }
.keypad button:active { background: #333; }
.keypad button.blank { visibility: hidden; }
.keypad button.fn { font-size: 17px; background: #000; }
.help { text-align: center; font-size: 17px; color: var(--muted); }
.help b { color: var(--text); }

/* ---------- Toast ---------- */
#toast-root { position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top) + 70px); z-index: 60; display: flex; justify-content: center; pointer-events: none; padding: 0 20px; }
.toast { pointer-events: auto; max-width: 440px; width: 100%; border-radius: 16px; background: #F9F9F9; color: #000; padding: 14px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); font-weight: 700; }
.toast.error { background: var(--red); color: #fff; }
.toast .tick { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 18px; color: #000; }
.toast small { display: block; font-size: 16px; font-weight: 400; color: #333; }
.toast.error small { color: #fff; }
.toast .link-btn { margin-left: auto; border: 0; background: transparent; font-weight: 700; text-decoration: underline; color: inherit; }

/* ---------- Sheet / dialog ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.65); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 520px; max-height: 92dvh; background: var(--card); color: var(--text); border-radius: 24px 24px 0 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.theme-light .sheet-backdrop { align-items: center; }
.theme-light .sheet { border-radius: 16px; max-width: 480px; max-height: 88dvh; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.sheet-head h2 { font-size: 22px; font-weight: 800; }
.sheet-body { padding: 8px 20px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.sheet-foot { padding: 12px 20px calc(env(safe-area-inset-bottom) + 20px); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; font-size: 22px; font-weight: 700; color: var(--muted); }

.update-banner { position: fixed; left: 12px; right: 12px; bottom: 100px; z-index: 40; background: #F9F9F9; color: #000; border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; max-width: 456px; margin: 0 auto; box-shadow: 0 12px 40px rgba(0, 0, 0, .6); }
.update-banner button { border: 0; border-radius: 10px; background: #000; color: #F9F9F9; font-weight: 700; padding: 10px 14px; }

/* =====================================================================
   Admin (PC): light screen, black sidebar. Works on a phone too (sidebar folds into a top bar).
   ===================================================================== */
.admin { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; color: #000; }
.side { background: #000; color: #F9F9F9; padding: 28px 16px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; }
.side-brand .logo { width: 36px; height: 36px; font-size: 20px; border-radius: 10px; }
.side-brand b { font-family: var(--head); font-weight: 800; font-size: 20px; display: block; line-height: 1.1; }
.side-brand small { font-size: 13px; color: var(--muted); }
.side-toggle { display: none; margin-left: auto; border: 0; background: transparent; color: #F9F9F9; font-size: 26px; width: 44px; height: 44px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side-nav a { height: 44px; border-radius: 10px; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #F9F9F9; font-size: 16px; font-weight: 700; }
.side-nav a i { width: 8px; height: 8px; border-radius: 2px; background: #646464; flex-shrink: 0; }
.side-nav a.on { background: var(--orange); color: #000; }
.side-nav a.on i { background: #000; }
.side-nav a:hover:not(.on) { background: #1a1a1a; }
.side-nav .scan-link { margin-top: auto; border: 1px solid #333; }
.side-user { padding: 14px 12px; border-radius: 12px; background: #1a1a1a; display: flex; flex-direction: column; gap: 2px; }
.side-user b { font-size: 15px; }
.side-user small { font-size: 13px; color: var(--muted); }
.side-user a { color: #F9F9F9; font-size: 13px; text-decoration: underline; margin-top: 6px; }
.main { padding: 32px 40px 40px; display: flex; flex-direction: column; gap: 18px; min-width: 0; background: #F9F9F9; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head .sub { font-size: 15px; color: #646464; }
.page-head h1 { font-size: 32px; font-weight: 800; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.a-btn { height: 44px; border-radius: 10px; border: 0; background: var(--orange); color: #000; padding: 0 18px; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none; }
.a-btn:hover { background: var(--orange-hi); }
.a-btn.dark { background: #000; color: #F9F9F9; }
.a-btn.line { background: #fff; color: #000; border: 1px solid #A7A7A7; }
.a-btn.danger { background: #fff; color: var(--red); border: 1px solid var(--red); }
.a-btn.small { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.a-btn[disabled] { opacity: .5; cursor: default; }
.chip { height: 40px; border-radius: 999px; border: 1px solid #A7A7A7; background: #fff; color: #000; padding: 0 14px; font-size: 14px; font-weight: 700; }
.chip.on { background: #000; color: #F9F9F9; border-color: #000; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.vsep { width: 1px; height: 28px; background: #A7A7A7; }
.pill-box { height: 44px; border-radius: 999px; border: 1.5px solid #000; display: flex; align-items: center; padding: 0 16px; font-size: 16px; font-weight: 700; background: #fff; }

.a-search { height: 44px; width: 260px; max-width: 100%; border-radius: 10px; background: #fff; border: 1px solid #A7A7A7; display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.a-search i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #646464; flex-shrink: 0; }
.a-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 15px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.selbar { min-height: 56px; border-radius: 12px; background: #000; color: #F9F9F9; display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 18px; gap: 10px; flex-wrap: wrap; }
.selbar span { font-size: 16px; font-weight: 700; }
.selbar .a-btn { height: 40px; border-radius: 8px; font-size: 14px; }
.selbar .a-btn.ghost { background: transparent; color: #F9F9F9; border: 1px solid #646464; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.tcard { border-radius: 16px; background: #fff; border: 1px solid #e4e4e4; overflow: hidden; }
.thead, .trow { display: grid; align-items: center; padding: 0 14px; column-gap: 8px; }
.thead { height: 48px; background: #f3f3f3; font-size: 14px; font-weight: 700; color: #333; }
.trow { min-height: 50px; border-top: 1px solid #eee; font-size: 15px; background: #fff; width: 100%; text-align: left; border-left: 0; border-right: 0; border-bottom: 0; color: #000; }
.trow.clickable { cursor: pointer; }
.trow.clickable:hover { background: #fafafa; }
.trow.sel { background: var(--orange-tint); }
.tfoot { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-top: 1px solid #eee; font-size: 14px; color: #646464; gap: 10px; }
.cell-strong { font-weight: 700; }
.cb { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #A7A7A7; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #000; flex-shrink: 0; }
.cb.on { background: var(--orange); border-color: var(--orange); }
.pill { justify-self: start; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #efefef; color: #333; white-space: nowrap; }
.pill.dark { background: #000; color: #F9F9F9; }
.pill.warn { background: var(--orange-tint); color: var(--red); }
.empty { padding: 36px 16px; text-align: center; color: #646464; }
.kk-grid { grid-template-columns: 34px 70px minmax(0, 1fr) 100px 90px 140px 140px; }

.panel { border-radius: 16px; background: #fff; border: 1px solid #e4e4e4; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.panel h2 { font-size: 20px; font-weight: 800; }
.f { display: flex; flex-direction: column; gap: 6px; }
.f > label, .f > .lab { font-size: 14px; font-weight: 700; color: #333; }
.f input, .f select, .f textarea { height: 46px; border-radius: 10px; border: 1px solid #A7A7A7; padding: 0 14px; font-size: 16px; background: #fff; color: #000; width: 100%; outline: none; }
.f textarea { height: 90px; padding: 10px 14px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 80, 2, .18); }
.f .hint { font-size: 13px; color: #646464; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg button { height: 40px; border-radius: 8px; border: 1px solid #A7A7A7; background: #fff; color: #000; font-size: 14px; font-weight: 700; padding: 0 6px; }
.seg button.on { background: #000; color: #F9F9F9; border-color: #000; }
.kv { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid #eee; font-size: 15px; gap: 10px; }
.kv span:first-child { font-size: 14px; font-weight: 700; color: #333; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-row .a-btn { height: 46px; }
.a-note { font-size: 15px; color: #646464; line-height: 1.5; }
.a-err { background: #fdecea; color: var(--red); border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 700; }

.theme-light .sheet { background: #fff; color: #000; border: 0; }
.theme-light .sheet .btn { height: 46px; font-size: 15px; border-radius: 10px; font-family: var(--body); font-weight: 700; width: auto; flex: 1; }
.theme-light .sheet .btn.ghost { background: #fff; color: #000; border: 1px solid #A7A7A7; }
.theme-light .sheet .btn.danger { background: var(--red); color: #fff; }
.theme-light .sheet-foot { border-color: #eee; padding-bottom: 20px; }
.theme-light .sheet-body .note { color: #333; }
.theme-light .icon-btn { color: #646464; }
.pin-big { font-family: var(--head); font-size: 40px; font-weight: 800; letter-spacing: .2em; text-align: center; padding: 14px; border-radius: 12px; background: #f3f3f3; }

@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } .kk-grid { grid-template-columns: 34px 60px minmax(0, 1fr) 90px 110px; } .kk-grid .hide-m { display: none; } }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; padding: 12px 16px; gap: 8px; }
  .side-toggle { display: block; }
  .side-nav, .side-user { display: none; }
  .side.open .side-nav, .side.open .side-user { display: flex; }
  .main { padding: 20px 16px 40px; }
  .page-head h1 { font-size: 26px; }
}

/* ---------- Stiker QR ---------- */
.sheets { display: flex; flex-direction: column; align-items: center; gap: 18px; zoom: .8; }
.sheet-page { width: 210mm; height: 297mm; background: #fff; display: grid; justify-content: center; align-content: start; padding: 10mm 0 0; box-shadow: 0 0 0 1px #d0d0d0; break-after: page; }
.sheet-page.p-50 { grid-template-columns: repeat(3, 50mm); grid-auto-rows: 50mm; gap: 3mm; --s: 50mm; }
.sheet-page.p-60 { grid-template-columns: repeat(3, 60mm); grid-auto-rows: 60mm; gap: 3mm; --s: 60mm; }
.sheet-page.p-70 { grid-template-columns: repeat(2, 70mm); grid-auto-rows: 70mm; gap: 3mm; --s: 70mm; }
.stk { border: 0.3mm dashed #A7A7A7; border-radius: 3mm; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--s) * .03); color: #000; background: #fff; overflow: hidden; padding: calc(var(--s) * .04); }
.stk-top { display: flex; align-items: center; gap: 1.5mm; font-family: var(--head); font-weight: 800; font-size: calc(var(--s) * .065); }
.stk-mark { width: calc(var(--s) * .07); height: calc(var(--s) * .07); border-radius: 1mm; background: var(--orange); display: block; }
.stk-qr { width: calc(var(--s) * .56); height: calc(var(--s) * .56); }
.stk-qr svg { width: 100%; height: 100%; display: block; }
.stk-no { font-family: var(--head); font-weight: 800; font-size: calc(var(--s) * .15); line-height: 1; letter-spacing: -0.02em; }
.stk-area { font-size: calc(var(--s) * .07); color: #333; }
@media print {
  @page { size: A4; margin: 0; }
  body, body.theme-light { background: #fff; }
  .side, .no-print, #toast-root, .update-banner { display: none !important; }
  .admin { display: block; }
  .main { padding: 0; background: #fff; gap: 0; }
  .sheets { zoom: 1; gap: 0; }
  .sheet-page { box-shadow: none; }
  .stk { border-color: #bbb; }
}

/* ---------- Admin helpers ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.maxw { max-width: 720px; }
.btn-link.inherit { color: inherit; padding: 0 0 0 6px; }
.row-name { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.row-name input { height: 38px; border: 1px solid #A7A7A7; border-radius: 8px; padding: 0 10px; font-size: 15px; flex: 1; min-width: 0; }
.row-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.row-add { display: flex; gap: 8px; }
.row-add input { flex: 1; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .cols2 { grid-template-columns: 1fr; } }

/* ---------- Home extras ---------- */
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.card.done { background: #F9F9F9; color: #000; border: 0; }
.done-row { display: flex; align-items: center; gap: 12px; }
.tick { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--orange); color: #000; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.note.dark { color: #333; }
.btn-link.dark { color: #000; }
.btn.tall { height: 140px; border-radius: 24px; font-size: 27px; line-height: 1.2; padding: 0 28px; }
.card.coord { color: var(--text); }
.coord-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.strong.big { font-size: 18px; }
.dots { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: #333; display: block; }
.dots i.hadir { background: var(--orange); } .dots i.izin { background: #F9F9F9; } .dots i.tidak_hadir { background: var(--red); }
.coord-count { display: flex; flex-direction: column; align-items: flex-end; }
.coord-count .num { font-size: 28px; font-weight: 700; }
.coord-count .sub { font-size: 15px; color: var(--muted); }

/* ---------- Jadwal / Absensi (phone) ---------- */
.night { border-radius: 16px; background: var(--card); border: 2px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.night.tonight { border-color: var(--orange); }
.night-head { display: flex; justify-content: space-between; align-items: center; }
.night-head h2 { font-size: 19px; font-weight: 800; }
.tag { font-size: 14px; font-weight: 700; background: var(--orange); color: #000; padding: 3px 10px; border-radius: 999px; }
.koord-line { font-size: 17px; font-weight: 700; }
.koord-line.me { color: var(--orange); }
.chips-m { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-m span { font-size: 16px; padding: 6px 12px; border-radius: 999px; background: #262626; }
.chips-m span.me { background: var(--orange); color: #000; }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat3 > div { border-radius: 14px; background: var(--card); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.stat3 b { font-size: 28px; font-weight: 700; }
.stat3 span { font-size: 15px; }
.att-card { border-radius: 16px; background: var(--card); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.att-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 19px; font-weight: 700; }
.att-name small { font-size: 13px; color: var(--orange); font-weight: 700; }
.att-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.att-opts button { height: 52px; border-radius: 12px; border: 2px solid var(--line); background: #000; color: var(--text); font-size: 17px; font-weight: 700; padding: 0 4px; }
.att-opts button.hadir { background: var(--orange); border-color: var(--orange); color: #000; }
.att-opts button.izin { background: #F9F9F9; border-color: #F9F9F9; color: #000; }
.att-opts button.tidak_hadir { background: var(--red); border-color: var(--red); color: #fff; }
.att-input { height: 52px; border-radius: 12px; background: #000; border: 2px solid var(--line); padding: 0 14px; font-size: 17px; outline: none; width: 100%; }
.sum-list { border-radius: 16px; background: var(--card); padding: 0 16px; display: flex; flex-direction: column; }
.sum-row { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #262626; }
.sum-row:last-child { border-bottom: 0; }
.sum-row .nm { display: flex; flex-direction: column; gap: 2px; font-size: 18px; font-weight: 700; }
.sum-row .nm small { font-size: 15px; color: var(--muted); font-weight: 400; }
.status { font-size: 15px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.status.hadir { background: var(--orange); color: #000; } .status.izin { background: #F9F9F9; color: #000; } .status.tidak_hadir { background: var(--red); color: #fff; }
.foot-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; justify-content: center; background: var(--bg); border-top: 1px solid var(--line); }
.foot-bar .inner { width: 100%; max-width: 480px; padding: 12px 20px calc(env(safe-area-inset-bottom) + 18px); }
.checked-row { min-height: 60px; border-radius: 14px; background: var(--card); display: flex; align-items: center; gap: 14px; padding: 6px 14px; border: 0; width: 100%; text-align: left; color: var(--text); }
.checked-row .cbx { width: 30px; height: 30px; border-radius: 8px; background: var(--orange); color: #000; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.checked-row b { font-size: 18px; display: block; }
.checked-row small { font-size: 14px; color: var(--muted); }
.results { border-radius: 16px; background: var(--card); border: 1px solid var(--dim); display: flex; flex-direction: column; overflow: hidden; }
.results button { height: 58px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.results button b { font-size: 18px; } .results button span { font-size: 16px; font-weight: 700; color: var(--orange); }
.h2s { font-family: var(--head); font-size: 20px; font-weight: 800; }
.big20 { font-size: 20px; } .hot { color: var(--orange); } .dim { color: var(--muted); } .pad { padding: 16px; }

/* ---------- Admin: Petugas, Pemuda, Jadwal ---------- */
.pt-grid { grid-template-columns: minmax(0, 1.2fr) 150px minmax(0, 1fr) 270px; }
.pm-grid { grid-template-columns: minmax(0, 1fr) 160px 150px 120px 230px; }
.maxw-wide { max-width: 1040px; }
.row-btns.tight { gap: 4px; flex-wrap: nowrap; }
.jd-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: start; }
.jd-col { background: #fff; border: 2px solid #e4e4e4; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 420px; min-width: 0; }
.jd-col.tonight { border-color: var(--orange); }
.jd-head h2 { font-size: 16px; font-weight: 800; }
.jd-sub { display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: 13px; color: #646464; margin-top: 4px; }
.tag.small { font-size: 12px; padding: 2px 8px; }
.jd-drop { height: 40px; border-radius: 8px; border: 2px dashed var(--orange); background: var(--orange-tint); color: #000; font-size: 13px; font-weight: 700; }
.jd-coord { border-radius: 10px; background: #000; color: #F9F9F9; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.jd-coord.light { background: #f3f3f3; color: #000; }
.jd-coord b { font-size: 15px; }
.jd-coord span:not(.k) { font-size: 13px; color: #A7A7A7; line-height: 1.4; }
.jd-coord .k { font-size: 12px; font-weight: 700; color: var(--orange); }
.jd-coord-top { display: flex; justify-content: space-between; align-items: center; }
.btn-link.light { color: #F9F9F9; font-size: 12px; }
.jd-link { font-size: 14px; font-weight: 700; color: var(--red); }
.jd-members { display: flex; flex-direction: column; }
.jd-member { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 7px 4px; border-bottom: 1px solid #eee; border-radius: 6px; font-size: 14px; }
.jd-member > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.jd-member.moving { background: var(--orange-tint); }
.mini { height: 26px; border-radius: 6px; border: 1px solid #A7A7A7; background: #fff; color: #000; padding: 0 7px; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.mini.pick { color: var(--red); } .mini.x { padding: 0 6px; color: #646464; }
@media (max-width: 1300px) { .jd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 800px) { .jd-grid { grid-template-columns: 1fr 1fr; } .pt-grid, .pm-grid { grid-template-columns: 1fr; row-gap: 4px; padding-top: 8px; padding-bottom: 8px; } .thead.pt-grid, .thead.pm-grid { display: none; } }
.phone-body:has(.foot-bar) { padding-bottom: 130px; }

/* ---------- Scan, hasil scan, Belum Didatangi ---------- */
.center { text-align: center; }
.cam { position: relative; border-radius: 24px; overflow: hidden; background: #111; aspect-ratio: 3 / 4; border: 2px solid var(--line); }
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-frame { position: absolute; inset: 18% 14%; border: 4px solid var(--orange); border-radius: 24px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .45); pointer-events: none; }
.split-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.big17 { font-size: 17px; }
.house-name { font-size: 26px; font-weight: 800; margin: 8px 0 2px; }
.tipe { font-size: 14px; font-weight: 700; color: #000; background: #F9F9F9; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tipe.line { background: transparent; color: #F9F9F9; border: 2px solid var(--dim); padding: 3px 10px; }
.back-text { font-size: 18px; color: var(--text); margin-left: 6px; }
.back:has(.back-text) { width: auto; padding: 0 10px; justify-content: flex-start; }
.alert { border-radius: 16px; padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.alert.orange { background: var(--orange); color: #000; }
.alert.white { background: #F9F9F9; color: #000; }
.alert-i { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: #000; color: var(--orange); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; }
.alert-i.dark { color: #F9F9F9; font-size: 18px; }
.alert .strong { font-size: 18px; display: block; } .alert .grow > span:nth-child(2) { font-size: 17px; }
.card.info { flex-direction: row; gap: 12px; align-items: flex-start; }
.info-i { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--muted); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.nom-grid { display: grid; gap: 10px; }
.nom-grid.row { gap: 8px; }
.nom { height: 56px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--text); font-size: 21px; font-weight: 700; padding: 0 4px; }
.nom-grid.row .nom { font-size: 17px; }
.nom.on { background: var(--orange); border-color: var(--orange); color: #000; }
.nom.dashed { height: 52px; border: 2px dashed var(--dim); background: transparent; font-size: 18px; }
.nom.dashed.on { background: #F9F9F9; border-color: #F9F9F9; border-style: solid; color: #000; }
.nom.light { height: 64px; font-size: 17px; line-height: 1.15; }
.nom.light.on { background: #F9F9F9; border-color: #F9F9F9; color: #000; }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 60px; height: 60px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--text); font-size: 30px; font-weight: 700; }
.stepper .days { flex: 1; height: 60px; border-radius: 14px; background: var(--field); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; gap: 6px; }
.stepper .days small { font-size: 18px; color: var(--muted); font-weight: 400; }
.num26 { font-size: 26px; font-weight: 700; }
.num36 { font-size: 36px; font-weight: 800; font-family: var(--head); letter-spacing: -0.02em; }
.success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 0 20px; }
.success-tick { width: 120px; height: 120px; border-radius: 50%; background: var(--orange); color: #000; font-size: 72px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.success h1 { font-size: 32px; font-weight: 800; }
.grp { display: flex; flex-direction: column; gap: 10px; }
.grp-head { display: flex; justify-content: space-between; align-items: baseline; }
.muted.b { font-size: 16px; font-weight: 700; }
.sum-list.nopad { padding: 0 4px; overflow: hidden; }
.uv-row { min-height: 64px; display: grid; grid-template-columns: 64px 1fr; align-items: center; padding: 8px 12px; border-bottom: 1px solid #262626; }
.uv-row:last-child { border-bottom: 0; }
.uv-no { font-size: 22px; font-weight: 700; color: var(--orange); }
.nm b { font-size: 18px; display: block; } .nm small { font-size: 15px; color: var(--muted); display: block; }
.empty-m { padding: 32px 0; text-align: center; font-size: 18px; color: var(--muted); }
.sheet-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; max-width: 480px; margin: 0 auto; background: var(--card); border-top: 1px solid var(--line); border-radius: 24px 24px 0 0; }
.sheet-toggle { width: 100%; height: 76px; border: 0; background: transparent; color: var(--text); display: flex; align-items: center; justify-content: space-between; padding: 0 22px 8px; font-size: 19px; font-weight: 700; }
.sheet-toggle em { color: var(--orange); font-style: normal; }
.sheet-list { max-height: 55dvh; overflow-y: auto; padding: 0 20px 24px; }
.vis-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vis-no { font-size: 19px; font-weight: 700; color: var(--muted); }
.vis-row .nm b { font-size: 17px; } .vis-amt { font-size: 18px; font-weight: 700; }
.vtag { font-size: 14px; font-weight: 700; color: var(--orange); }
.phone-body:has(.sheet-bar) { padding-bottom: 110px; }

/* ---------- Dashboard, iuran, pengeluaran, rekap ---------- */
.month-select { height: 44px; border-radius: 10px; border: 1px solid #A7A7A7; background: #fff; color: #000; padding: 0 14px; font-size: 15px; font-weight: 700; }
.kpi-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 16px; }
.kpi-grid.k4 { grid-template-columns: repeat(4, 1fr); }
.kpi { border-radius: 16px; background: #fff; border: 1px solid #e4e4e4; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kpi.dark { background: #000; color: #F9F9F9; border-color: #000; }
.kpi .k { font-size: 15px; color: #646464; } .kpi.dark .k { color: #A7A7A7; }
.kpi b { font-size: 28px; font-weight: 700; } .kpi b.big { font-size: 34px; letter-spacing: -0.01em; }
.kpi .s, .kpi .s2 { font-size: 14px; color: #646464; } .kpi .s2 { color: #333; } .kpi .s3 { font-size: 13px; color: #646464; }
.kpi .delta { font-size: 14px; color: var(--orange); font-weight: 700; } .kpi .delta.neg { color: #ff8a65; }
.wide-kpi { max-width: 420px; }
.abar { height: 6px; border-radius: 3px; background: #e4e4e4; overflow: hidden; } .abar i { display: block; height: 6px; background: var(--orange); }
.panel.wide { gap: 18px; }
.split-row2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; } .split-row2 h2 { font-size: 19px; }
.chart { display: flex; gap: 16px; }
.yaxis { display: flex; flex-direction: column; justify-content: space-between; font-size: 13px; color: #646464; height: 200px; text-align: right; }
.plot { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bars { height: 200px; display: flex; align-items: flex-end; gap: 6px; border-bottom: 1px solid #A7A7A7; background: linear-gradient(#eee 1px, transparent 1px) 0 0 / 100% 100px; }
.bar-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bar-col i { display: block; width: 100%; background: #333; border-radius: 4px 4px 0 0; } .bar-col i.last { background: var(--orange); }
.xaxis { display: flex; justify-content: space-between; font-size: 13px; color: #646464; }
.bigline { display: flex; align-items: baseline; gap: 10px; } .bigline .n { font-size: 44px; font-weight: 700; line-height: 1; } .bigline span:last-child { font-size: 18px; color: #333; }
.dotgrid { display: grid; gap: 4px; } .dotgrid i { height: 28px; border-radius: 4px; background: #e4e4e4; display: block; } .dotgrid i.on { background: #000; }
.legend { display: flex; gap: 20px; font-size: 14px; color: #333; flex-wrap: wrap; } .legend span { display: flex; align-items: center; gap: 8px; }
.sw { width: 12px; height: 12px; border-radius: 3px; background: #e4e4e4; display: inline-block; } .sw.dark { background: #000; }
.a-btn.fit { align-self: flex-start; }
.mini-table { display: flex; flex-direction: column; }
.mt { display: grid; grid-template-columns: 1.3fr 1.2fr 70px 110px; align-items: center; font-size: 15px; padding: 7px 0; border-bottom: 1px solid #f0f0f0; gap: 8px; }
.mt.head { font-size: 13px; color: #646464; font-weight: 700; border-bottom: 1px solid #e4e4e4; }
.mt .r, .r { text-align: right; justify-self: end; } .mt .b { font-weight: 700; }
.iu-grid { grid-template-columns: 60px minmax(0, 1fr) 100px 190px 120px; }
.ex-grid { grid-template-columns: 90px minmax(0, 1fr) 130px 130px 160px; }
.rk-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 90px 140px; }
.ks-grid { grid-template-columns: 60px minmax(0, 1.2fr) 110px 80px minmax(0, 1fr) 190px; }
.hd-grid { grid-template-columns: minmax(0, 1.4fr) 56px 56px 56px 80px; }
.pe-grid { grid-template-columns: minmax(0, 1fr) 140px; }
.wl-grid { grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1.4fr) 130px; }
.trow.clickable.rk-grid { cursor: pointer; border: 0; border-top: 1px solid #eee; font: inherit; }
.rk-detail { background: #fafafa; padding: 6px 14px 10px 28px; border-top: 1px solid #eee; } .rk-detail .mt { grid-template-columns: 1fr 100px 120px; }
.csv-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nota-prev { max-width: 100%; max-height: 220px; border-radius: 10px; border: 1px solid #e4e4e4; object-fit: contain; }
.nota-full { max-width: 100%; max-height: 70dvh; border-radius: 10px; display: block; margin: 0 auto; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.chk input { height: auto; width: auto; }
.kv.light span:first-child.plain { font-weight: 400; color: #333; }
@media (max-width: 1100px) { .kpi-grid, .kpi-grid.k4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) {
  .iu-grid, .ex-grid, .rk-grid, .ks-grid, .hd-grid, .wl-grid { grid-template-columns: 1fr 1fr; row-gap: 4px; padding-top: 8px; padding-bottom: 8px; }
  .thead.iu-grid, .thead.ex-grid, .thead.rk-grid, .thead.ks-grid, .thead.hd-grid, .thead.wl-grid { display: none; }
  .mt { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .kk-grid { grid-template-columns: 34px 46px minmax(0, 1fr) auto; }
  .kk-grid .hide-s { display: none; }
  .kk-grid .pill { font-size: 12px; padding: 3px 8px; }
  .page-head .head-actions { width: 100%; }
}

/* ---------- Putaran 2 ---------- */
.btn.small-full { height: 48px; font-size: 18px; }
.note.tight { margin: 0 0 8px; }
.uv-row.tap { width: 100%; border: 0; background: transparent; color: var(--text); text-align: left; grid-template-columns: 64px 1fr auto; cursor: pointer; }
.uv-row.tap:active { background: #262626; }
.uv-go { font-size: 15px; font-weight: 700; color: var(--orange); }
