:root {
  --text: #1E2A36;
  --text-2: #6B7682;
  --canvas: #FFFFFF;
  --surface: #F7F8FA;
  --surface-2: #EFF2F5;
  --border: #E3E7EC;
  --blue: #2783DE;
  --blue-soft: #E5F2FC;
  --green: #2E9E63;
  --green-soft: #E7F5EE;
  --orange: #CE7B33;
  --orange-soft: #FBEEE1;
  --red: #E0564A;
  --red-soft: #FCEBE9;
  /* Tema formal pemerintahan */
  --navy: #123A5E;
  --navy-2: #0E2E4A;
  --navy-soft: #E8EEF4;
  --gold: #B0892B;
  --gold-2: #9A7724;
  --gold-soft: #F5EFD9;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(18,58,94,.05), 0 6px 18px rgba(18,58,94,.06);
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--surface);
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-2); }
.empty { text-align: center; color: var(--text-2); padding: 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: var(--navy); color: #fff;
  font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: filter .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn:active { filter: brightness(.94); }
.btn--ghost { background: var(--canvas); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); filter: none; }
.btn--green { background: var(--green); }
.btn--orange { background: var(--orange); }
.btn--red { background: var(--red); }
.btn--lg { min-height: 56px; font-size: 18px; padding: 14px 28px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert--error { background: var(--red-soft); color: #B23A30; }
.alert--ok { background: var(--green-soft); color: #1F7A4C; }

/* ---------- Topbar (admin/login) ---------- */
.topbar { background: var(--canvas); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; color: var(--navy); }
.brand__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 20px; }
.topnav { display: flex; gap: 8px; align-items: center; }
.topnav a { padding: 8px 14px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; }
.topnav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.topnav a.active { background: var(--navy-soft); color: var(--navy); }

/* ---------- Cards / sections ---------- */
.card { background: var(--canvas); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card--pad-lg { padding: 32px; }
.section-title { font-size: 14px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 16px; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 24px; margin: 0 0 4px; text-align: center; color: var(--navy); }
.auth-card p.sub { color: var(--text-2); text-align: center; margin: 0 0 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 16px; font-family: inherit; background: var(--canvas); color: var(--text);
}
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); }

/* ---------- Dashboard ---------- */
.page { padding: 32px 0 64px; }
.page__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.page__head h1 { font-size: 26px; margin: 0; color: var(--navy); }
.grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--canvas); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.stat__value { font-size: 34px; font-weight: 800; line-height: 1; color: var(--navy); }
.stat__label { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.call-panel { text-align: center; }
.call-panel__current { font-size: 72px; font-weight: 800; line-height: 1; margin: 8px 0 4px; color: var(--navy); }
.call-panel__counter { color: var(--text-2); margin-bottom: 24px; }
.call-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.call-actions .btn--wide { grid-column: span 2; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
table.data th { color: var(--text-2); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
table.data tr:last-child td { border-bottom: none; }
.mono { font-variant-numeric: tabular-nums; font-weight: 700; }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge--wait { background: var(--orange-soft); color: var(--orange); }
.badge--call { background: var(--blue-soft); color: var(--blue); }
.badge--done { background: var(--green-soft); color: var(--green); }
.badge--skip { background: var(--red-soft); color: var(--red); }
.footer { text-align: center; color: var(--text-2); font-size: 13px; padding: 32px 0; }

/* ---------- Display screen (TV) ---------- */
.display-body { background: #0C1F33; color: #fff; margin: 0; }
.display { min-height: 100vh; display: flex; flex-direction: column; }
.display__top { display: flex; align-items: center; justify-content: space-between; padding: 24px 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.display__title { font-size: 24px; font-weight: 700; }
.display__clock { font-size: 22px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.72); }
.display__main { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding: 40px; }
.now-serving { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; }
.now-serving__label { font-size: 22px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.now-serving__number { font-size: 160px; font-weight: 800; line-height: 1; margin: 16px 0; }
.now-serving__counter { font-size: 30px; color: #7FB5E8; font-weight: 600; }
.recent-list { display: flex; flex-direction: column; gap: 16px; }
.recent-list h2 { font-size: 18px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); margin: 0 0 4px; }
.recent-item { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 18px 24px; }
.recent-item__num { font-size: 34px; font-weight: 700; }
.recent-item__counter { font-size: 18px; color: rgba(255,255,255,.6); }

/* =====================================================================
   KIOSK - Tema Formal Pemerintahan (elegan & berwibawa)
   ===================================================================== */
.kioskL-body {
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.kx-body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 8% -12%, #EAF0F6 0%, rgba(234,240,246,0) 62%),
    radial-gradient(900px 520px at 100% -6%, #F4EEDC 0%, rgba(244,238,220,0) 55%),
    #F5F7F9;
  color: var(--text);
}
.kx { min-height: 100vh; display: flex; flex-direction: column; }
.kx__accent { height: 6px; background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 55%, var(--gold) 100%); }

/* Header institusional */
.kx__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 44px 18px; }
.kx__brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.kx__logo { width: 66px; height: 66px; flex: none; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); }
.kx__inst { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: var(--navy); line-height: 1.12; }
.kx__addr { font-size: 13px; color: var(--text-2); margin-top: 3px; max-width: 640px; }
.kx__clockcard { display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--gold); border-radius: 14px; padding: 10px 20px; box-shadow: var(--shadow); white-space: nowrap; }
.kx__clock-ic { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; }
.kx__clock-ic svg { width: 20px; height: 20px; }
.kx__time { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--navy); line-height: 1; }
.kx__date { font-size: 12px; color: var(--text-2); margin-top: 5px; font-weight: 600; }

/* Garis pemisah bawah header */
.kx__top { border-bottom: 1px solid var(--border); }

/* Main */
.kx__main { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 44px 36px; }
.kx__scenery { position: absolute; left: 0; right: 0; top: 0; height: min(48vh, 400px); z-index: 0; overflow: hidden; opacity: .6; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%); mask-image: linear-gradient(to bottom, #000 58%, transparent 100%); }
.kx__scenery img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.kx__hero, .kx__grid { position: relative; z-index: 1; }
.kx__hero { text-align: center; margin-bottom: 30px; }
.kx__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); background: var(--gold-soft); padding: 6px 16px; border-radius: 999px; }
.kx__h1 { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 42px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); margin: 16px 0 4px; }
.kx__star { color: var(--gold); display: inline-flex; }
.kx__star svg { width: 15px; height: 15px; }
.kx__leaf { flex: none; }
.kx__leaf svg { width: 36px; height: 26px; }
.kx__rule { width: 116px; height: 4px; border-radius: 3px; margin: 0 auto 14px; background: linear-gradient(90deg, var(--gold), var(--navy)); }
.kx__lead { font-size: 17px; color: var(--text-2); margin: 0; }

/* Grid seimbang & di-tengah-kan */
.kx__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; width: 100%; max-width: 1180px; }

/* Kartu layanan seragam */
.svc {
  position: relative; overflow: hidden;
  flex: 0 1 362px; max-width: 380px;
  display: flex; align-items: center; gap: 18px;
  padding: 24px 24px 24px 30px; min-height: 138px;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  cursor: pointer; font-family: inherit; text-align: left;
  box-shadow: 0 1px 2px rgba(18,58,94,.04), 0 8px 20px rgba(18,58,94,.05);
  transition: transform .1s ease, box-shadow .18s ease, border-color .18s ease;
}
.svc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--svc, var(--navy)); }
.svc:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(18,58,94,.14); border-color: var(--svc, var(--navy)); }
.svc:active { transform: translateY(0) scale(.99); }
.svc__badge { width: 74px; height: 74px; flex: none; border-radius: 18px; padding: 12px; background: var(--svc-soft, var(--navy-soft)); display: grid; place-items: center; }
.svc__badge svg { width: 100%; height: 100%; }
.svc__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.svc__name { font-size: 21px; font-weight: 800; color: var(--svc, var(--navy)); line-height: 1.15; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 48px; }
.svc__desc { font-size: 13px; color: var(--text-2); line-height: 1.35; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.svc__wait { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--svc, var(--navy)); margin-top: 10px; }
.svc__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--svc, var(--navy)); flex: none; box-shadow: 0 0 0 3px var(--svc-soft, var(--navy-soft)); }
.svc__go { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--svc, var(--navy)); background: var(--svc-soft, var(--navy-soft)); }
.svc__go svg { width: 20px; height: 20px; }

/* Palet aksen layanan (lembut, untuk wayfinding) */
.svc--green { --svc:#2E9E63; --svc-soft:#E7F5EE; }
.svc--blue  { --svc:#2166A8; --svc-soft:#E6EFF7; }
.svc--amber { --svc:#B0892B; --svc-soft:#F5EFD9; }
.svc--teal  { --svc:#2F8C9E; --svc-soft:#E4F1F4; }
.svc--red   { --svc:#C24A3F; --svc-soft:#FBE9E7; }
.svc--sky   { --svc:#2E7FB8; --svc-soft:#E6F1F9; }

/* Footer */
.kx__foot { display: flex; align-items: center; gap: 22px; margin: 0 44px 22px; padding: 16px 26px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); position: relative; z-index: 1; }
.kx__foot-col { display: flex; align-items: center; gap: 13px; font-size: 13px; color: var(--text-2); flex: 1; line-height: 1.4; }
.kx__foot-col b { color: var(--navy); font-size: 14px; }
.kx__foot-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.kx__foot-ic svg { width: 22px; height: 22px; }
.kx__foot-sep { width: 1px; align-self: stretch; background: var(--border); }
.kx__foot-col--motto { justify-content: flex-end; text-align: right; }
.kx__foot-heart { color: var(--green); flex: none; }
.kx__foot-heart svg { width: 26px; height: 26px; }

/* ---------- Modal + keyboard sentuh ---------- */
.kmodal { position: fixed; inset: 0; display: none; z-index: 100; }
.kmodal.is-open { display: block; }
.kmodal__backdrop { position: absolute; inset: 0; background: rgba(10,26,42,.55); }
.kmodal__card { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(760px, 94vw); background: #fff; border-radius: 20px; border-top: 5px solid var(--gold); padding: 26px 28px 28px; box-shadow: 0 24px 60px rgba(0,0,0,.32); text-align: center; }
.kmodal__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.kmodal__service { margin-top: 4px; font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: .01em; }
.kmodal__hint { color: var(--text); font-size: 15px; margin: 10px 0 12px; }
.kbd-display { min-height: 56px; border: 2px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 8px 16px; margin-bottom: 16px; word-break: break-word; }
.kbd-ph { color: var(--text-2); font-weight: 500; font-size: 18px; }
.keyboard { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.kbd-row { display: flex; gap: 8px; justify-content: center; }
.kbd-key { flex: 1 1 0; min-width: 0; min-height: 52px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); font-size: 20px; font-weight: 700; font-family: inherit; cursor: pointer; }
.kbd-key:active { background: var(--navy-soft); border-color: var(--navy); }
.kbd-key--space { flex: 4 1 0; }
.kbd-key--wide { flex: 2 1 0; font-size: 16px; }
.kmodal__actions { display: flex; gap: 12px; justify-content: center; }
.btn--go { background: var(--navy); min-width: 220px; }

/* ---------- Receipt / tiket tercetak ---------- */
.kiosk-body { min-height: 100vh; margin: 0; display: flex; align-items: center; justify-content: center; padding: 32px 16px;
  background: radial-gradient(900px 500px at 50% -10%, #EAF0F6 0%, rgba(234,240,246,0) 60%), #F5F7F9; }
.kiosk-body--center { align-items: center; }
.ticket-scene { width: 100%; max-width: 380px; text-align: center; }
.receipt { background: #fff; border-radius: 6px; padding: 26px 26px 30px; box-shadow: 0 18px 44px rgba(18,58,94,.16); position: relative; text-align: center; font-family: 'Menlo','Consolas',ui-monospace,monospace; }
.receipt::before, .receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background-image: radial-gradient(circle at 6px -2px, transparent 6px, #fff 6px); background-size: 16px 12px; }
.receipt::before { top: -11px; transform: rotate(180deg); }
.receipt::after { bottom: -11px; }
.receipt__brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--text-2); letter-spacing: .03em; line-height: 1.2; }
.receipt__perf { border-top: 1px solid var(--border); margin: 16px 0; }
.receipt__perf--dashed { border-top: 1px dashed #C9C7C3; }
.receipt__label { font-size: 13px; letter-spacing: .22em; color: var(--text-2); }
.receipt__number { font-size: 76px; font-weight: 800; line-height: 1; margin: 6px 0 8px; color: var(--navy); letter-spacing: .04em; }
.receipt__service { font-family: var(--sans); font-size: 17px; font-weight: 700; color: var(--navy); }
.receipt__name { font-family: var(--sans); font-size: 14px; color: var(--text-2); margin-top: 4px; }
.receipt__date { font-family: var(--sans); font-size: 13px; color: var(--text-2); margin-top: 6px; }
.receipt__queue { font-family: var(--sans); font-size: 13px; color: var(--text-2); }
.receipt__queue b { color: var(--text); font-size: 15px; }
.receipt__msg { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--text); margin-top: 12px; }
.ticket-scene__actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.ticket-scene__hint { color: var(--text-2); font-size: 12px; margin-top: 12px; }

/* ---------- Responsif ---------- */
@media (max-width: 980px) {
  .svc { flex: 0 1 300px; }
}
@media (max-width: 640px) {
  .kx__top { flex-wrap: wrap; padding: 16px 20px; }
  .kx__clockcard { padding: 8px 16px; }
  .kx__time { font-size: 24px; }
  .kx__main { padding: 16px 20px 24px; }
  .kx__h1 { font-size: 30px; }
  .svc { flex: 1 1 100%; max-width: 460px; }
  .kx__foot { flex-direction: column; gap: 4px; text-align: center; }
  .kx__foot-jam { text-align: center; }
  .kbd-key { min-height: 46px; font-size: 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  .call-actions { grid-template-columns: 1fr; }
  .call-actions .btn--wide { grid-column: span 1; }
}
@media print {
  .kiosk-body { background: #fff; padding: 0; }
  .ticket-scene__actions, .ticket-scene__hint { display: none; }
  .receipt { box-shadow: none; }
}


/* =====================================================================
   Watermark Lambang Instansi (halus, tidak menutupi teks)
   ===================================================================== */
.page-wm {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url(../img/lambang-wm.png);
  background-repeat: no-repeat; background-position: center center;
  background-size: min(58vh, 520px);
  opacity: .06;
}
/* Pastikan seluruh konten berada di atas watermark */
.kx, .ticket-scene, .display { position: relative; z-index: 1; }
/* Pada layar gelap (display) dibuat lebih halus */
.display-body .page-wm { opacity: .05; }
@media print { .page-wm { display: none; } }


/* =====================================================================
   LOKET PETUGAS (layar operator di loket)
   ===================================================================== */
.lk-body { margin: 0; background:
    radial-gradient(1000px 500px at 10% -12%, #EAF0F6 0%, rgba(234,240,246,0) 60%),
    #F5F7F9; color: var(--text); }
.lk { min-height: 100vh; display: flex; flex-direction: column; }

.lk-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 32px; background: #fff; border-bottom: 1px solid var(--border); }
.lk-top__brand { display: flex; align-items: center; gap: 14px; }
.lk-top__logo { width: 52px; height: 52px; flex: none; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 5px; }
.lk-top__inst { font-size: 19px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.lk-top__sub { font-size: 12px; color: var(--text-2); }
.lk-top__right { display: flex; align-items: center; gap: 20px; }
.lk-top__lbl { font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; margin-right: 8px; }
.lk-select { min-height: 42px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; font-weight: 600; font-family: inherit; color: var(--navy); background: var(--surface); }
.lk-select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); }
.lk-clockbox { text-align: center; }
.lk-clock { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--navy); line-height: 1; }
.lk-date { font-size: 11px; color: var(--text-2); margin-top: 3px; font-weight: 600; }
.lk-user { text-align: right; line-height: 1.2; }
.lk-user__name { font-size: 14px; font-weight: 700; color: var(--navy); }
.lk-user__out { font-size: 12px; color: var(--red); font-weight: 600; }

.lk-main { flex: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; padding: 26px 32px; max-width: 1320px; margin: 0 auto; width: 100%; }

.lk-serve { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--gold); border-radius: 20px; padding: 30px 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.lk-serve__label { text-align: center; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); font-weight: 700; font-size: 14px; }
.lk-serve__num { text-align: center; font-size: 116px; font-weight: 800; color: var(--navy); line-height: 1; margin: 8px 0 2px; letter-spacing: .02em; }
.lk-serve__num--empty { color: #C8D0D8; }
.lk-serve__meta { text-align: center; color: var(--text-2); font-size: 18px; }
.lk-serve__name { text-align: center; color: var(--navy); font-weight: 700; margin-top: 4px; }

.lk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.lk-actions .wide { grid-column: span 2; }
.btn--xl { min-height: 70px; font-size: 22px; border-radius: 14px; }

.lk-perlayanan { margin-top: 24px; }
.lk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lk-chips form { margin: 0; }

.lk-side { display: flex; flex-direction: column; gap: 20px; }

@media (max-width: 1000px) {
  .lk-main { grid-template-columns: 1fr; }
  .lk-serve__num { font-size: 92px; }
}
@media (max-width: 620px) {
  .lk-top { flex-wrap: wrap; padding: 14px 18px; }
  .lk-top__right { gap: 12px; }
  .lk-main { padding: 18px; }
  .lk-actions { grid-template-columns: 1fr; }
  .lk-actions .wide { grid-column: span 1; }
}


/* =====================================================================
   LAYAR ANTRIAN (display) - tema formal konsisten + navigasi
   ===================================================================== */
.dsp-body { margin: 0; background:
    radial-gradient(1000px 520px at 12% -12%, #EAF0F6 0%, rgba(234,240,246,0) 60%),
    radial-gradient(900px 520px at 100% -6%, #F4EEDC 0%, rgba(244,238,220,0) 55%),
    #F5F7F9; color: var(--text); }
.dsp { min-height: 100vh; display: flex; flex-direction: column; position: relative; z-index: 1; }
.dsp__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 32px; background: #fff; border-bottom: 1px solid var(--border); }
.dsp__brand { display: flex; align-items: center; gap: 14px; }
.dsp__logo { width: 56px; height: 56px; flex: none; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 5px; }
.dsp__title { font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.dsp__sub { font-size: 12px; color: var(--text-2); }
.dsp__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.dsp__clockcard { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 14px; }
.dsp__clock { font-size: 20px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1; }
.dsp__date { font-size: 11px; color: var(--text-2); margin-top: 3px; font-weight: 600; }

.dsp__main { flex: 1; display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; padding: 28px 32px; max-width: 1360px; margin: 0 auto; width: 100%; }
.dsp__now { background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 24px; border-top: 5px solid var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 44px; box-shadow: 0 16px 42px rgba(18,58,94,.25); }
.dsp__now-label { font-size: 22px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); font-weight: 700; }
.dsp__num { font-size: 150px; font-weight: 800; line-height: 1; margin: 14px 0; letter-spacing: .02em; }
.dsp__ctr { font-size: 30px; font-weight: 700; color: #F0D98A; text-align: center; }
.dsp__recent { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.dsp__recent h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 0 0 14px; }
.dsp-item { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 20px; margin-bottom: 12px; }
.dsp-item:last-child { margin-bottom: 0; }
.dsp-item__num { font-size: 32px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.dsp-item__ctr { font-size: 16px; color: var(--text-2); font-weight: 600; }
.dsp-item--empty { justify-content: center; color: var(--text-2); font-size: 15px; }
.dsp__foot { text-align: center; color: var(--text-2); font-size: 13px; padding: 13px; border-top: 1px solid var(--border); background: rgba(255,255,255,.65); }

@media (max-width: 1000px) { .dsp__main { grid-template-columns: 1fr; } .dsp__num { font-size: 108px; } }
@media (max-width: 640px) { .dsp__top { flex-wrap: wrap; } .dsp__num { font-size: 84px; } .dsp__ctr { font-size: 22px; } }


/* =====================================================================
   DASHBOARD LOKET (tata letak sidebar) - konsisten tema formal
   ===================================================================== */
.dash-body { margin: 0; background: #F1F4F7; color: var(--text); }
.dash-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 28px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 2px 10px rgba(18,58,94,.05); }
.dash-top__brand { display: flex; align-items: center; gap: 13px; }
.dash-top__logo { width: 50px; height: 50px; flex: none; background: #fff; border: 1px solid var(--border); border-radius: 11px; padding: 4px; }
.dash-top__inst { font-size: 19px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.dash-top__sub { font-size: 12px; color: var(--text-2); }
.dash-top__right { display: flex; align-items: center; gap: 14px; }
.dash-chip, .dash-user { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 7px 14px; }
.dash-chip__ic, .dash-user__av { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); }
.dash-chip__ic svg, .dash-user__av svg { width: 19px; height: 19px; }
.dash-chip__t { font-size: 18px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1; }
.dash-chip__d { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.dash-user__n { font-size: 13px; font-weight: 700; color: var(--navy); }
.dash-user__l { font-size: 11px; color: var(--text-2); }

.dash-wrap { display: grid; grid-template-columns: 236px minmax(0,1fr); gap: 20px; max-width: 1440px; margin: 0 auto; padding: 20px 28px; align-items: start; }
.dash-content { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.dash-content--split { display: grid; grid-template-columns: minmax(0,1fr) 312px; gap: 20px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Sidebar */
.dash-nav { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 112px); overflow-y: auto; }
.dash-nav nav { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.dash-nav__group { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); padding: 4px 6px 8px; }
.dash-nav__item { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: #46535F; font-weight: 600; font-size: 14.5px; }
.dash-nav__item span { flex: 1; }
.dash-nav__item svg { width: 20px; height: 20px; opacity: .85; }
.dash-nav__item:hover { background: var(--surface); color: var(--navy); text-decoration: none; }
.dash-nav__item.is-active { background: var(--navy-soft); color: var(--navy); font-weight: 700; }
.dash-nav__item.is-active::before { content: ""; position: absolute; left: 4px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--gold); }
.dash-nav__item.is-active svg { opacity: 1; }
.dash-nav__item--out { margin-top: 6px; padding-top: 15px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; color: var(--red); }
.dash-nav__item--out:hover { background: var(--red-soft); color: var(--red); }
.dash-loketcard { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.dash-loketcard__lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin-bottom: 10px; }
.dash-loketcard__pick { display: flex; align-items: center; gap: 10px; background: var(--navy-soft); border-radius: 11px; padding: 10px 12px; margin-bottom: 12px; }
.dash-loketcard__ic { width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--navy); display: grid; place-items: center; }
.dash-loketcard__ic svg { width: 17px; height: 17px; }
.dash-loketcard__pick select { flex: 1; border: none; background: transparent; font-size: 15px; font-weight: 800; color: var(--navy); font-family: inherit; }
.dash-loketcard__pick select:focus { outline: none; }
.dash-loketcard__row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; color: var(--text-2); }
.dash-loketcard__row b { color: var(--navy); font-weight: 700; }
.dash-loketcard__row b.ok { color: var(--green); }

/* Panels */
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel__head h2 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: var(--navy); margin: 0; }
.panel__bar { width: 4px; height: 18px; border-radius: 3px; background: var(--gold); display: inline-block; }
.panel__foot { margin-top: 12px; text-align: center; }

/* Serving card */
.serve { display: grid; grid-template-columns: 240px 1fr; gap: 18px; }
.serve__num { background: var(--acc-soft); border: 1px solid color-mix(in srgb, var(--acc) 22%, #fff); border-radius: 14px; padding: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.serve__numlbl { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.serve__numval { font-size: 58px; font-weight: 800; color: var(--acc); line-height: 1; margin: 8px 0 12px; letter-spacing: .02em; }
.serve__loket { background: var(--acc); color: #fff; font-weight: 700; font-size: 13px; padding: 5px 16px; border-radius: 8px; }
.serve__info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; align-content: center; border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.serve__cell { display: flex; flex-direction: column; gap: 3px; }
.serve__cell--full { grid-column: span 2; }
.serve__cell span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.serve__cell b { font-size: 16px; color: var(--navy); font-weight: 700; }
.serve__empty { grid-column: span 2; color: var(--text-2); text-align: center; padding: 20px; }

/* Quick actions */
.qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.qa { margin: 0; }
.qa__btn { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; border-radius: 13px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-family: inherit; transition: transform .1s ease, box-shadow .15s ease; }
.qa__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.qa__btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.qa__ic { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.qa__ic svg { width: 22px; height: 22px; }
.qa__tx { display: flex; flex-direction: column; min-width: 0; }
.qa__tx b { font-size: 14px; color: var(--navy); }
.qa__tx small { font-size: 11.5px; color: var(--text-2); }
.qa__btn--green .qa__ic { background: var(--green); }
.qa__btn--blue .qa__ic  { background: #2166A8; }
.qa__btn--amber .qa__ic { background: var(--orange); }
.qa__btn--red .qa__ic   { background: var(--red); }

/* Info rows / stats / announce */
.info-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.info-row:last-child { border-bottom: none; }
.info-row b { color: var(--navy); font-weight: 700; }
.info-row b.ok { color: var(--green); }
.stat-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.stat-row:last-child { border-bottom: none; }
.stat-row__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.stat-row__ic svg { width: 20px; height: 20px; }
.stat-row__lbl { flex: 1; font-size: 14px; color: var(--text); font-weight: 600; }
.stat-row b { font-size: 20px; font-weight: 800; color: var(--navy); }
.sr-blue { background: var(--blue-soft); color: #2166A8; }
.sr-green { background: var(--green-soft); color: var(--green); }
.sr-amber { background: var(--orange-soft); color: var(--orange); }
.sr-navy { background: var(--navy-soft); color: var(--navy); }
.announce { display: flex; gap: 12px; background: var(--green-soft); border: 1px solid #CDE8D8; border-radius: 12px; padding: 14px; font-size: 13.5px; color: #1F6B45; line-height: 1.45; }
.announce__ic { width: 34px; height: 34px; flex: none; border-radius: 9px; background: #fff; color: var(--green); display: grid; place-items: center; }
.announce__ic svg { width: 19px; height: 19px; }
.announce__sub { color: var(--text-2); font-size: 12px; margin-top: 6px; }

.dash-foot { text-align: center; color: var(--text-2); font-size: 12.5px; padding: 16px; border-top: 1px solid var(--border); background: #fff; }

@media (max-width: 1160px) {
  .dash-wrap { grid-template-columns: 1fr; }
  .dash-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .dash-nav nav { flex: 1; flex-direction: row; flex-wrap: wrap; }
  .dash-side { flex-direction: row; flex-wrap: wrap; }
  .dash-side .panel { flex: 1; min-width: 260px; }
}
@media (max-width: 760px) {
  .serve { grid-template-columns: 1fr; }
  .qa-grid { grid-template-columns: 1fr 1fr; }
  .dash-top { flex-wrap: wrap; }
}


/* Form controls untuk halaman admin */
.input {
  width: 100%; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--text);
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); }

/* Responsif dashboard */
@media (max-width: 1160px) {
  .dash-content--split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .dash-wrap { grid-template-columns: 1fr; }
  .dash-nav { position: static; }
}


/* =====================================================================
   Sound gate (aktivasi suara TTS di layar antrian)
   ===================================================================== */
.sound-gate {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,26,42,.72);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  transition: opacity .3s ease;
}
.sound-gate.is-closed { opacity: 0; pointer-events: none; }
.sound-gate__card {
  background: #fff; border-radius: 20px; border-top: 5px solid var(--gold);
  padding: 36px 32px; max-width: 420px; width: 100%; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.sound-gate__icon { font-size: 44px; margin-bottom: 8px; }
.sound-gate__card h2 { margin: 4px 0 10px; color: var(--navy); font-size: 21px; }
.sound-gate__card p { color: var(--text-2); font-size: 14px; line-height: 1.5; margin: 0 0 20px; }


/* =====================================================================
   Perbaikan kerapihan: toast notifikasi, label tombol ringkas, teks panjang
   ===================================================================== */

/* Notifikasi "Memanggil ... ke Loket ..." dsb kini melayang (fixed) di atas
   layar, TIDAK mendorong konten di bawahnya turun (tanpa pergeseran tata letak). */
.toast-msg {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%);
  z-index: 500; min-width: 280px; max-width: min(92vw, 480px);
  box-shadow: 0 14px 34px rgba(18,58,94,.18);
  animation: toastIn .25s ease; text-align: center;
}
.toast-msg.toast-hide { opacity: 0; transform: translateX(-50%) translateY(-12px); transition: all .35s ease; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-14px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Tombol "Panggil Ulang" ringkas (ikon + label pendek) agar tidak membungkus
   jadi dua baris yang terlihat berantakan di ruang sempit panel__actions. */
.panel__actions .btn { white-space: nowrap; }
.qa-label { margin-left: 4px; }

/* Kartu "Loket Aktif" di sidebar: nama petugas/loket panjang tetap rapi. */
.dash-loketcard__row { align-items: flex-start; gap: 10px; }
.dash-loketcard__row span { flex: none; padding-top: 1px; }
.dash-loketcard__row b { text-align: right; line-height: 1.35; word-break: break-word; }

/* Footer panel (mis. catatan di halaman Layanan) selalu membungkus rapi
   di dalam lebar kartu, tidak pernah meluber ke luar. */
.panel__foot { max-width: 100%; }
.panel__foot .muted { display: inline-block; max-width: 100%; }

/* ---------- Pengumuman di tiket (sisi klien) ---------- */
.tk-announce {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  background: var(--green-soft); border: 1px solid #CDE8D8; border-radius: 12px;
  padding: 14px 16px; margin-top: 18px; font-size: 13px; color: #1F6B45; line-height: 1.5;
}
.tk-announce__ic { width: 30px; height: 30px; flex: none; border-radius: 8px; background: #fff; color: var(--green); display: grid; place-items: center; }
.tk-announce__ic svg { width: 17px; height: 17px; }


/* =====================================================================
   Baris aksi "Panggil Ulang" + "Selesai Dilayani" di dalam kartu
   "Antrian Sedang Dilayani" — dua tombol sejajar, ukuran seragam,
   rapi, dan tidak lagi menumpuk di header panel.
   ===================================================================== */
.serve__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.serve__actions form { margin: 0; display: block; }
.btn--block { width: 100%; justify-content: center; }
@media (max-width: 560px) {
  .serve__actions { grid-template-columns: 1fr; }
}


/* =====================================================================
   LAPORAN + KELOLA PETUGAS
   ===================================================================== */
.report-filter {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end;
  margin-bottom: 12px;
}
.report-filter .field { margin: 0; }
.report-filter__act { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.report-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip-link {
  font-size: 12.5px; font-weight: 600; color: var(--navy);
  background: var(--navy-soft); border: 1px solid #D7E1EC; border-radius: 999px;
  padding: 6px 14px; text-decoration: none;
}
.chip-link:hover { background: #DCE7F1; }

.report-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-top: 4px;
}
.rcard {
  border: 1px solid var(--line, #E3E7EC); border-radius: 12px; padding: 14px 16px;
  background: #fff;
}
.rcard__lbl { font-size: 12px; color: #6B7682; font-weight: 600; }
.rcard__val { font-size: 24px; font-weight: 800; color: var(--navy); margin-top: 4px; line-height: 1.1; }
.rcard--navy  { background: var(--navy-soft); border-color: #D7E1EC; }
.rcard--green { background: #E7F5EE; border-color: #CDE8D8; }
.rcard--green .rcard__val { color: #1F7A4D; }
.rcard--red   { background: #FBE9E7; border-color: #F3CFC9; }
.rcard--red .rcard__val { color: #B33A2E; }
.rcard--amber { background: var(--gold-soft); border-color: #E9DDB0; }
.rcard--amber .rcard__val { color: var(--gold-2); }

.data tfoot td { font-weight: 800; color: var(--navy); background: var(--navy-soft); border-top: 2px solid #D7E1EC; }

.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.input--sm { padding: 7px 10px; font-size: 13px; }
.btn--sm { padding: 7px 12px; font-size: 13px; }

.report-head { margin-bottom: 14px; font-size: 13px; line-height: 1.5; color: var(--navy); }
.print-only { display: none; }

/* ---------- Gaya khusus saat MENCETAK laporan ---------- */
@media print {
  .dash-top, .dash-nav, .dash-foot, .no-print, .toast-msg { display: none !important; }
  body.dash-body { background: #fff !important; }
  .dash-wrap { display: block !important; padding: 0 !important; }
  .dash-content { padding: 0 !important; }
  .print-only { display: block !important; }
  .panel { box-shadow: none !important; border: 1px solid #C9D2DC !important; break-inside: avoid; }
  .report-cards { grid-template-columns: repeat(3, 1fr) !important; }
  a[href]:after { content: ""; }
}


/* =====================================================================
   PERBAIKAN PENTING: batasi ukuran ikon SVG di dalam tombol.
   Tanpa ini, SVG viewBox 24x24 tanpa width/height akan membesar
   mengikuti lebar tombol (mis. btn--block) sampai jadi ikon raksasa.
   ===================================================================== */
.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-block;
}
.btn--lg svg { width: 20px; height: 20px; }
.btn--sm svg { width: 15px; height: 15px; }


/* =====================================================================
   Dashboard loket: tombol panggil selalu di atas, daftar tunggu ringkas.
   Daftar "Antrian Menunggu" dibatasi tingginya & scroll di dalam panelnya
   sendiri, supaya tidak mendorong tombol panggil ke bawah layar.
   ===================================================================== */
.wait-scroll { max-height: 260px; overflow-y: auto; }
.wait-scroll .data thead th {
  position: sticky; top: 0; z-index: 1; background: #fff;
}
.panel__link {
  margin-left: auto; font-size: 13px; font-weight: 600; color: var(--navy);
  text-decoration: none; white-space: nowrap;
}
.panel__link:hover { text-decoration: underline; }


/* =====================================================================
   PERBAIKAN LOGO: logo instansi berformat POTRET (493x621). Semua kotak
   logo sebelumnya memaksa rasio 1:1 sehingga gambar gepeng/ciut.
   object-fit: contain menjaga proporsi asli (tidak distorsi).
   ===================================================================== */
.dash-top__logo, .kx__logo, .lk-top__logo, .dsp__logo, .receipt__brand img {
  object-fit: contain;
}

/* =====================================================================
   NAVIGASI SOLID (tanpa memaksa tinggi layar):
   - Semua halaman memakai aliran alami + header/sidebar sticky (menempel),
     jadi konten tidak terlihat kosong/melompong.
   - Ruang scrollbar dicadangkan (scrollbar-gutter) supaya lebar konten TIDAK
     bergeser saat pindah antar halaman (yang panjang vs pendek). Inilah yang
     membuat perpindahan menu terasa solid, bukan "turun".
   ===================================================================== */
html { scrollbar-gutter: stable; }

/* Daftar "Antrian Menunggu" dibatasi tingginya & scroll di dalam panelnya
   sendiri, supaya tombol panggil (yang kini berada di atasnya) tetap terlihat. */
.wait-scroll { max-height: 300px; overflow-y: auto; }

/* =====================================================================
   UI/UX REFINEMENT 2026
   Tampilan dibuat lebih formal, premium, dan tidak generik: lebih tenang,
   konsisten, minim ornamen berlebihan, serta fokus pada keterbacaan.
   ===================================================================== */
:root {
  --navy: #0F3657;
  --navy-2: #08263F;
  --gold: #B48A2C;
  --gold-2: #8D6A1D;
  --surface: #F4F6F8;
  --border: #DDE4EB;
  --shadow: 0 1px 2px rgba(8,38,63,.05), 0 14px 34px rgba(8,38,63,.08);
}
body { background: linear-gradient(180deg, #F8FAFC 0%, #EFF3F7 100%); }
.btn {
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: -.01em;
  box-shadow: 0 8px 18px rgba(15,54,87,.12);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(15,54,87,.16); }
.btn:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(15,54,87,.12); }
.btn--ghost { box-shadow: none; }
.btn--ghost:hover { box-shadow: 0 8px 18px rgba(15,54,87,.08); }
.card, .panel, .receipt, .auth-card {
  border-color: rgba(15,54,87,.10);
  box-shadow: var(--shadow);
}
.brand__mark {
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px;
  box-shadow: 0 6px 16px rgba(15,54,87,.10);
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.topbar { box-shadow: 0 1px 0 rgba(15,54,87,.04); }
.field input, .input, textarea.input, select {
  border-radius: 12px;
  border-color: #D7E0E9;
  background: #fff;
}
.field input:focus, .input:focus, textarea.input:focus, select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(15,54,87,.10);
}

/* Kiosk pengunjung */
.kx-body {
  background:
    radial-gradient(900px 480px at 0% -20%, rgba(15,54,87,.10) 0%, rgba(15,54,87,0) 60%),
    radial-gradient(760px 420px at 100% -12%, rgba(180,138,44,.14) 0%, rgba(180,138,44,0) 56%),
    linear-gradient(180deg, #F8FAFC 0%, #EEF3F7 100%);
}
.kx__accent { height: 5px; background: linear-gradient(90deg, var(--navy-2), var(--navy) 60%, var(--gold)); }
.kx__top {
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 34px rgba(15,54,87,.06);
}
.kx__logo { border-radius: 18px; box-shadow: 0 12px 26px rgba(15,54,87,.12); }
.kx__inst { font-size: 25px; letter-spacing: -.02em; }
.kx__clockcard { border-top: 0; border-left: 4px solid var(--gold); box-shadow: 0 10px 24px rgba(15,54,87,.10); }
.kx__scenery { opacity: .28; }
.kx__star, .kx__leaf { display: none; }
.kx__eyebrow {
  background: #fff;
  border: 1px solid rgba(180,138,44,.30);
  color: var(--gold-2);
  box-shadow: 0 8px 20px rgba(180,138,44,.10);
}
.kx__h1 { font-size: 46px; margin-top: 14px; }
.kx__rule { width: 88px; background: var(--gold); }
.kx__lead { font-size: 18px; color: #516070; }
.svc {
  border-radius: 22px;
  min-height: 146px;
  background: linear-gradient(180deg, #fff, #FBFCFD);
  box-shadow: 0 1px 2px rgba(15,54,87,.04), 0 16px 34px rgba(15,54,87,.08);
}
.svc::before { width: 5px; }
.svc:hover { transform: translateY(-4px); box-shadow: 0 22px 42px rgba(15,54,87,.14); }
.svc__badge { border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.75); }
.svc__name { letter-spacing: -.02em; }
.svc__desc { color: #607080; }
.svc__go { box-shadow: inset 0 0 0 1px rgba(15,54,87,.06); }
.kmodal__card { border-radius: 24px; box-shadow: 0 32px 80px rgba(8,38,63,.30); }
.kbd-key { border-radius: 12px; font-weight: 800; }
.kx__foot { background: rgba(255,255,255,.90); box-shadow: 0 -10px 28px rgba(15,54,87,.06); }

/* Dashboard petugas */
.dash-body { background: #EEF3F7; }
.dash-top {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(15,54,87,.08);
  box-shadow: 0 8px 26px rgba(15,54,87,.06);
}
.dash-nav__item { border-radius: 13px; font-weight: 700; }
.dash-nav__item.is-active { box-shadow: inset 0 0 0 1px rgba(15,54,87,.08); }
.dash-loketcard, .panel {
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #FBFCFD 100%);
}
.panel__head h2 { letter-spacing: -.015em; }
.panel__bar { border-radius: 999px; }
table.data th { background: #F7FAFC; color: #586879; }
table.data tbody tr:hover td { background: #FAFCFE; }
.qa__btn, .serve, .stat-row, .info-row, .rcard { border-radius: 16px; }
.toast-msg { box-shadow: 0 18px 40px rgba(15,54,87,.20); }

/* Layar TV */
.dsp-body {
  background:
    radial-gradient(980px 540px at 15% -10%, rgba(40,131,222,.24), rgba(40,131,222,0) 60%),
    radial-gradient(760px 420px at 100% 0%, rgba(180,138,44,.24), rgba(180,138,44,0) 55%),
    #061D31;
}
.dsp__top { border-bottom-color: rgba(255,255,255,.10); background: rgba(6,29,49,.52); }
.dsp__now, .dsp__recent, .sound-gate__card {
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.22);
}
.dsp__num { letter-spacing: -.06em; text-shadow: 0 12px 34px rgba(0,0,0,.22); }
.dsp-item { border-radius: 18px; }
.sound-gate__icon {
  width: auto;
  min-width: 78px;
  padding: 10px 18px;
  height: auto;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--navy);
  background: var(--gold-soft);
}

@media (max-width: 900px) {
  .kx__top { padding-left: 22px; padding-right: 22px; }
  .kx__main { padding-left: 22px; padding-right: 22px; }
  .kx__h1 { font-size: 34px; }
  .svc { flex-basis: 100%; max-width: 620px; }
}

/* =====================================================================
   DISPLAY TV FINAL - tema terang, sederhana, tanpa scroll
   Hanya dipakai oleh display.php. Halaman lain tidak berubah.
   ===================================================================== */
body.dsp-light-body {
  width: 100%; height: 100vh; overflow: hidden;
  margin: 0;
  background:
    radial-gradient(900px 440px at 4% -14%, rgba(20,88,144,.12), transparent 62%),
    radial-gradient(760px 380px at 102% 2%, rgba(198,153,50,.14), transparent 58%),
    #F4F8FB;
  color: #0A2A44;
}
.dsp-clean {
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 92px minmax(0, 1fr) 58px;
  font-family: var(--sans);
}
.dsp-clean__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 38px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid #DDE8F0;
  box-shadow: 0 8px 24px rgba(10,42,68,.06);
}
.dsp-clean__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.dsp-clean__logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #DDE8F0;
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 8px 18px rgba(10,42,68,.08);
}
.dsp-clean__instansi {
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #0A2A44;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 68vw;
}
.dsp-clean__sub {
  margin-top: 4px;
  font-size: clamp(13px, 1.1vw, 17px);
  font-weight: 700;
  color: #627486;
}
.dsp-clean__timebox {
  flex: none;
  min-width: 220px;
  text-align: right;
  padding-left: 22px;
  border-left: 1px solid #DDE8F0;
}
.dsp-clean__clock {
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  color: #0A2A44;
}
.dsp-clean__date {
  margin-top: 7px;
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 700;
  color: #627486;
}
.dsp-clean__main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(320px, .72fr);
  gap: 24px;
  padding: 24px 38px;
  overflow: hidden;
}
.dsp-clean__hero,
.dsp-clean__side {
  min-height: 0;
  background: #fff;
  border: 1px solid #DDE8F0;
  border-radius: 30px;
  box-shadow: 0 18px 50px rgba(10,42,68,.11);
}
.dsp-clean__hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(26px, 3.6vw, 56px);
  text-align: center;
  border-top: 9px solid #C79A2D;
}
.dsp-clean__hero:before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(10,42,68,.07);
  border-radius: 24px;
  pointer-events: none;
}
.dsp-clean__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border-radius: 999px;
  background: #EDF5FB;
  color: #145890;
  font-size: clamp(18px, 1.8vw, 30px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dsp-clean__number {
  position: relative;
  z-index: 1;
  margin: clamp(18px, 2.2vw, 32px) 0 clamp(16px, 1.8vw, 26px);
  font-size: clamp(150px, 17vw, 292px);
  line-height: .84;
  font-weight: 950;
  letter-spacing: -.08em;
  font-variant-numeric: tabular-nums;
  color: #0A2A44;
  text-shadow: 0 12px 28px rgba(10,42,68,.10);
}
.dsp-clean__route {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  border-radius: 24px;
  background: #0A2A44;
  color: #fff;
  padding: clamp(16px, 2vw, 28px) clamp(20px, 2.2vw, 36px);
}
.dsp-clean__route-label {
  font-size: clamp(17px, 1.4vw, 24px);
  line-height: 1.1;
  font-weight: 800;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dsp-clean__counter {
  margin-top: 6px;
  font-size: clamp(42px, 5.2vw, 88px);
  line-height: .98;
  font-weight: 950;
  letter-spacing: -.04em;
  color: #F4D36D;
}
.dsp-clean__service {
  position: relative;
  z-index: 1;
  margin-top: clamp(14px, 1.6vw, 22px);
  max-width: 860px;
  font-size: clamp(24px, 2.5vw, 44px);
  line-height: 1.14;
  font-weight: 850;
  color: #263F54;
}
.dsp-clean__hero.is-calling {
  animation: dspCleanPulse .9s ease;
}
@keyframes dspCleanPulse {
  0% { box-shadow: 0 18px 50px rgba(10,42,68,.11); transform: scale(1); }
  38% { box-shadow: 0 24px 70px rgba(199,154,45,.38); transform: scale(1.012); }
  100% { box-shadow: 0 18px 50px rgba(10,42,68,.11); transform: scale(1); }
}
.dsp-clean__side {
  overflow: hidden;
  padding: 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
}
.dsp-clean__side-title {
  font-size: clamp(19px, 1.8vw, 30px);
  font-weight: 950;
  color: #0A2A44;
  letter-spacing: -.02em;
  padding-bottom: 14px;
  border-bottom: 1px solid #DDE8F0;
}
.dsp-clean__recent {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.dsp-clean__item {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  background: #F7FAFC;
  border: 1px solid #DDE8F0;
  border-radius: 22px;
  padding: 14px 16px;
}
.dsp-clean__item:first-child {
  background: #FFF8E5;
  border-color: #F0D787;
}
.dsp-clean__item-num {
  font-size: clamp(36px, 3.5vw, 66px);
  line-height: .9;
  font-weight: 950;
  letter-spacing: -.08em;
  color: #0A2A44;
  font-variant-numeric: tabular-nums;
}
.dsp-clean__item-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dsp-clean__item-info b {
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1.02;
  color: #145890;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dsp-clean__item-info span {
  font-size: clamp(13px, 1.1vw, 18px);
  line-height: 1.2;
  color: #627486;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dsp-clean__empty {
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed #DDE8F0;
  border-radius: 24px;
  color: #627486;
  font-size: clamp(22px, 2vw, 36px);
  font-weight: 850;
}
.dsp-clean__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 38px;
  background: #fff;
  border-top: 1px solid #DDE8F0;
  color: #263F54;
}
.dsp-clean__notice {
  font-size: clamp(18px, 1.6vw, 28px);
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dsp-clean__status {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 850;
  color: #28864F;
}
.dsp-clean__status span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(40,134,79,.12);
}
.dsp-clean__status.is-offline { color: #B54747; }
.dsp-clean__status.is-offline span { box-shadow: 0 0 0 5px rgba(181,71,71,.12); }
.sound-gate--clean {
  background: rgba(10,42,68,.58);
  backdrop-filter: blur(6px);
}
.sound-gate__card--clean {
  border-top: 7px solid #C79A2D;
  border-radius: 28px;
  max-width: 480px;
  padding: 38px 34px;
}
.sound-gate__card--clean h2 {
  font-size: 28px;
  letter-spacing: -.03em;
}
.sound-gate__card--clean p {
  font-size: 16px;
}
@media (max-width: 1100px) {
  .dsp-clean { grid-template-rows: 82px minmax(0, 1fr) 52px; }
  .dsp-clean__top { padding: 14px 24px; }
  .dsp-clean__main { grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; padding: 18px 24px; }
  .dsp-clean__timebox { min-width: 190px; }
  .dsp-clean__footer { padding: 0 24px; }
}
@media (max-width: 820px) {
  body.dsp-light-body { overflow: auto; }
  .dsp-clean { height: auto; min-height: 100vh; grid-template-rows: auto auto auto; overflow: visible; }
  .dsp-clean__top, .dsp-clean__footer { flex-direction: column; align-items: flex-start; height: auto; }
  .dsp-clean__timebox { border-left: 0; padding-left: 0; text-align: left; }
  .dsp-clean__main { grid-template-columns: 1fr; overflow: visible; }
  .dsp-clean__recent { grid-template-rows: none; }
}

/* =====================================================================
   DISPLAY TV REDESIGN V2 - mengikuti mockup layar besar
   Khusus display.php. Menimpa style lama .dsp-clean agar tampilan
   mendekati contoh: navy panel, aksen emas, daftar panggilan modern.
   ===================================================================== */
body.dsp-light-body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  background: #EEF4F8;
  color: #082A46;
}

.dsp-clean {
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  display: grid;
  grid-template-rows: clamp(104px, 13.2vh, 152px) minmax(0, 1fr) clamp(78px, 10.4vh, 118px);
  font-family: var(--sans);
  background: linear-gradient(180deg, #F8FBFE 0%, #EEF4F8 100%);
}

.dsp-clean__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2vw, 34px);
  padding: clamp(18px, 2vw, 30px) clamp(30px, 3vw, 56px);
  background: rgba(255,255,255,.98);
  border-bottom: 0;
  box-shadow: none;
}
.dsp-clean__top:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, #E2A918 0%, #F3C94B 45%, #B8820E 100%);
}

.dsp-clean__brand {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.5vw, 24px);
  min-width: 0;
}
.dsp-clean__logo {
  width: clamp(56px, 5.2vw, 86px);
  height: clamp(56px, 5.2vw, 86px);
  object-fit: contain;
  background: #fff;
  border: 1px solid #D8E5EF;
  border-radius: 18px;
  padding: 7px;
  box-shadow: 0 8px 22px rgba(8,42,70,.10);
}
.dsp-clean__instansi {
  max-width: 68vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(28px, 2.75vw, 52px);
  line-height: .98;
  font-weight: 950;
  letter-spacing: -.035em;
  color: #062A55;
}
.dsp-clean__sub {
  margin-top: clamp(4px, .45vw, 7px);
  font-size: clamp(17px, 1.38vw, 26px);
  line-height: 1.08;
  font-weight: 800;
  color: #4A586C;
  letter-spacing: -.02em;
}

.dsp-clean__timebox {
  flex: none;
  min-width: clamp(280px, 22vw, 410px);
  min-height: clamp(72px, 8.8vh, 112px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.4vw, 22px);
  padding: 12px clamp(24px, 2.4vw, 42px) 12px clamp(36px, 3vw, 58px);
  border-left: 0;
  text-align: left;
  color: #fff;
  background: linear-gradient(135deg, #09295A 0%, #061A43 100%);
  border-radius: 16px;
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: 0 12px 30px rgba(6,26,67,.22);
}
.dsp-clean__clock-icon {
  flex: none;
  width: clamp(44px, 4.2vw, 68px);
  height: clamp(44px, 4.2vw, 68px);
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.92);
  color: #fff;
  display: grid;
  place-items: center;
}
.dsp-clean__clock-icon svg { width: 70%; height: 70%; }
.dsp-clean__clock {
  font-size: clamp(34px, 3.2vw, 58px);
  line-height: .92;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.05em;
  color: #fff;
  text-shadow: 0 5px 12px rgba(0,0,0,.25);
}
.dsp-clean__date {
  margin-top: clamp(5px, .6vw, 10px);
  font-size: clamp(15px, 1.3vw, 24px);
  line-height: 1;
  font-weight: 750;
  color: rgba(255,255,255,.92);
}

.dsp-clean__main {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.78fr) minmax(360px, .84fr);
  gap: clamp(22px, 2vw, 36px);
  padding: clamp(24px, 2.6vw, 42px) clamp(30px, 3vw, 56px);
  background: linear-gradient(180deg, #EEF4F8 0%, #EAF2F7 100%);
}

.dsp-clean__hero,
.dsp-clean__side {
  min-height: 0;
  border-radius: clamp(22px, 2vw, 32px);
  box-shadow: 0 20px 48px rgba(8,42,70,.13);
}

.dsp-clean__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(26px, 3vw, 56px) clamp(34px, 4vw, 72px);
  border: 1px solid rgba(40,127,190,.62);
  background:
    radial-gradient(760px 340px at 52% 50%, rgba(0,105,190,.35), rgba(0,38,86,0) 62%),
    linear-gradient(135deg, #062D73 0%, #02245D 48%, #061B43 100%);
}
.dsp-clean__hero:before {
  content: "";
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(2,19,55,.58), rgba(2,19,55,.03) 28%, rgba(2,19,55,.08) 100%),
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.14) 1.1px, transparent 1.4px),
    url('../img/hero-skyline.svg');
  background-size: auto, 28px 28px, 72% auto;
  background-position: 0 0, 0 0, -12% 100%;
  background-repeat: repeat, repeat, no-repeat;
  opacity: .22;
  pointer-events: none;
  z-index: -2;
}
.dsp-clean__hero:after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(0,174,255,.55), transparent);
  opacity: .62;
  pointer-events: none;
  z-index: -1;
}

.dsp-clean__eyebrow {
  position: relative;
  z-index: 1;
  min-height: auto;
  padding: 0 clamp(58px, 7vw, 120px);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: clamp(23px, 2.55vw, 48px);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
  line-height: 1;
  text-shadow: 0 4px 12px rgba(0,0,0,.30);
  white-space: nowrap;
}
.dsp-clean__eyebrow:before,
.dsp-clean__eyebrow:after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(58px, 5vw, 96px);
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #F5C841, transparent);
  transform: translateY(-50%);
}
.dsp-clean__eyebrow:before { left: 0; }
.dsp-clean__eyebrow:after { right: 0; }

.dsp-clean__number {
  position: relative;
  z-index: 1;
  margin: clamp(26px, 4.2vh, 58px) 0 clamp(10px, 2vh, 22px);
  color: #fff;
  font-size: clamp(150px, 15.2vw, 292px);
  line-height: .78;
  font-weight: 950;
  letter-spacing: -.09em;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 18px 26px rgba(0,0,0,.36),
    0 2px 0 rgba(255,255,255,.22);
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.12));
  white-space: nowrap;
}
.dsp-clean__beam {
  position: relative;
  z-index: 1;
  width: min(72%, 760px);
  height: 4px;
  margin: clamp(4px, .8vh, 12px) 0 clamp(24px, 3vh, 40px);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(0,194,255,.62) 35%, #FFD764 50%, rgba(0,194,255,.62) 65%, transparent);
  box-shadow: 0 0 18px rgba(255,213,86,.72), 0 0 26px rgba(0,174,255,.35);
}

.dsp-clean__route {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
}
.dsp-clean__route-label {
  margin-bottom: clamp(8px, 1vh, 14px);
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1;
  font-weight: 950;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .09em;
  text-shadow: 0 4px 12px rgba(0,0,0,.30);
}
.dsp-clean__counter-wrap {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(18px, 2.8vw, 42px);
}
.dsp-clean__chev {
  color: #19B9EA;
  font-size: clamp(42px, 5vw, 92px);
  line-height: .8;
  font-weight: 900;
  letter-spacing: -.28em;
  opacity: .78;
  text-shadow: 0 0 16px rgba(25,185,234,.55);
  white-space: nowrap;
}
.dsp-clean__chev--left { justify-self: end; }
.dsp-clean__chev--right { justify-self: start; }
.dsp-clean__counter {
  margin-top: 0;
  color: #FFD45C;
  font-size: clamp(64px, 6.6vw, 128px);
  line-height: .88;
  font-weight: 950;
  letter-spacing: -.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 8px 16px rgba(0,0,0,.35), 0 0 18px rgba(255,212,92,.23);
}
.dsp-clean__service {
  position: relative;
  z-index: 1;
  margin-top: clamp(22px, 3.1vh, 44px);
  width: min(78%, 790px);
  min-height: clamp(62px, 7.6vh, 104px);
  padding: 10px clamp(28px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.8vw, 28px);
  border-radius: 999px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F7FB 100%);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: inset 0 -3px 0 rgba(8,42,70,.08), 0 14px 30px rgba(0,0,0,.18);
  color: #082A46;
  font-size: clamp(27px, 3vw, 54px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.035em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dsp-clean__service-icon {
  flex: none;
  width: clamp(44px, 4.2vw, 72px);
  height: clamp(44px, 4.2vw, 72px);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #073979, #061A43);
  color: #fff;
  box-shadow: 0 8px 18px rgba(6,26,67,.22);
}
.dsp-clean__service-icon svg { width: 58%; height: 58%; }

.dsp-clean__hero.is-calling {
  animation: dspMockPulse .9s ease;
}
@keyframes dspMockPulse {
  0% { transform: scale(1); box-shadow: 0 20px 48px rgba(8,42,70,.13); }
  42% { transform: scale(1.012); box-shadow: 0 26px 64px rgba(242,201,71,.36), 0 0 0 5px rgba(242,201,71,.14); }
  100% { transform: scale(1); box-shadow: 0 20px 48px rgba(8,42,70,.13); }
}
.dsp-clean__hero.is-empty .dsp-clean__number {
  letter-spacing: .03em;
  font-size: clamp(100px, 9.4vw, 178px);
  opacity: .96;
}
.dsp-clean__hero.is-empty .dsp-clean__beam {
  width: min(58%, 560px);
  margin-bottom: clamp(20px, 2.4vh, 30px);
}
.dsp-clean__hero.is-empty .dsp-clean__counter {
  font-size: clamp(42px, 4.1vw, 76px);
  letter-spacing: -.03em;
}
.dsp-clean__hero.is-empty .dsp-clean__chev {
  font-size: clamp(32px, 3.4vw, 64px);
}
.dsp-clean__hero.is-empty .dsp-clean__service {
  font-size: clamp(24px, 2.5vw, 44px);
  width: min(88%, 820px);
}

.dsp-clean__side {
  overflow: hidden;
  padding: clamp(12px, 1.3vw, 22px);
  display: grid;
  grid-template-rows: clamp(64px, 7.2vh, 92px) minmax(0, 1fr);
  gap: clamp(14px, 1.5vw, 24px);
  border: 0;
  background: #fff;
}
.dsp-clean__side-title {
  height: 100%;
  border: 0;
  padding: 0 clamp(16px, 1.6vw, 28px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.1vw, 20px);
  border-radius: 14px;
  background: linear-gradient(135deg, #073979 0%, #004E99 100%);
  color: #fff;
  font-size: clamp(21px, 2vw, 34px);
  font-weight: 950;
  letter-spacing: -.02em;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(7,57,121,.16);
}
.dsp-clean__side-icon {
  flex: none;
  width: clamp(34px, 3.2vw, 52px);
  height: clamp(34px, 3.2vw, 52px);
  display: grid;
  place-items: center;
  color: #fff;
}
.dsp-clean__side-icon svg { width: 82%; height: 82%; }

.dsp-clean__recent {
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 22px);
}
.dsp-clean__item {
  min-height: 0;
  display: grid;
  grid-template-columns: clamp(42px, 4.1vw, 70px) minmax(108px, .74fr) 1px minmax(0, .92fr);
  align-items: center;
  gap: clamp(13px, 1.25vw, 22px);
  padding: clamp(12px, 1.35vw, 24px) clamp(16px, 1.6vw, 28px);
  border-radius: clamp(16px, 1.7vw, 26px);
  border: 1px solid #DAE3EC;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFE 100%);
  box-shadow: 0 8px 18px rgba(8,42,70,.06);
}
.dsp-clean__item.is-latest {
  border-color: #F2C94C;
  background: linear-gradient(135deg, #FFE882 0%, #FFD44F 58%, #F5BC2D 100%);
  box-shadow: 0 14px 30px rgba(209,150,24,.22);
}
.dsp-clean__item-icon {
  width: clamp(40px, 4vw, 66px);
  height: clamp(40px, 4vw, 66px);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #073979, #061A43);
  color: #fff;
}
.dsp-clean__item-icon svg { width: 58%; height: 58%; }
.dsp-clean__item.is-latest .dsp-clean__item-icon {
  background: #103B52;
  color: #FFE36C;
}
.dsp-clean__item-num {
  color: #082A46;
  font-size: clamp(40px, 4.1vw, 76px);
  line-height: .86;
  font-weight: 950;
  letter-spacing: -.08em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dsp-clean__item-sep {
  width: 1px;
  height: 72%;
  background: rgba(8,42,70,.38);
}
.dsp-clean__item-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(3px, .4vw, 7px);
}
.dsp-clean__item-info b {
  color: #073979;
  font-size: clamp(22px, 2.15vw, 38px);
  line-height: .95;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dsp-clean__item-info span {
  color: #082A46;
  font-size: clamp(13px, 1.15vw, 21px);
  line-height: 1.1;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dsp-clean__item--ghost {
  opacity: .68;
  border-color: #D7DEE6;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F8FA 100%);
  box-shadow: none;
}
.dsp-clean__item--ghost .dsp-clean__item-icon {
  background: transparent;
  border: 2px dashed #C9D2DB;
  box-shadow: none;
}
.dsp-clean__item--ghost .dsp-clean__item-sep { background: #D7DEE6; }
.dsp-clean__item--ghost .dsp-clean__item-num,
.dsp-clean__item--ghost .dsp-clean__item-info { color: transparent; }
.dsp-clean__empty {
  position: absolute;
  inset: 0;
  grid-row: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed #CFE0EC;
  border-radius: clamp(16px, 1.7vw, 26px);
  background: rgba(255,255,255,.86);
  color: #5B6876;
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 900;
  z-index: 2;
}

.dsp-clean__footer {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2vw, 36px);
  padding: 0 clamp(30px, 3vw, 56px);
  border: 0;
  background: linear-gradient(135deg, #082D6F 0%, #061A43 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.dsp-clean__footer:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 120px at 62% 0%, rgba(0,142,255,.26), transparent 70%);
  opacity: .85;
  pointer-events: none;
}
.dsp-clean__foot-left,
.dsp-clean__foot-right {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 24px);
  min-width: 0;
}
.dsp-clean__foot-left { flex: 1 1 auto; }
.dsp-clean__foot-right { flex: none; }
.dsp-clean__foot-icon,
.dsp-clean__info-icon {
  flex: none;
  width: clamp(48px, 4.8vw, 78px);
  height: clamp(48px, 4.8vw, 78px);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 3px solid rgba(255,255,255,.92);
}
.dsp-clean__foot-icon svg { width: 64%; height: 64%; }
.dsp-clean__info-icon {
  font-size: clamp(28px, 2.8vw, 46px);
  line-height: 1;
  font-weight: 950;
  font-family: Georgia, serif;
}
.dsp-clean__notice,
.dsp-clean__thanks {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  text-transform: uppercase;
}
.dsp-clean__notice b,
.dsp-clean__thanks b {
  font-size: clamp(19px, 1.8vw, 31px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dsp-clean__notice span {
  color: #FFD45C;
  font-size: clamp(17px, 1.55vw, 27px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dsp-clean__thanks span {
  color: rgba(255,255,255,.92);
  font-size: clamp(15px, 1.28vw, 22px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: .02em;
  white-space: nowrap;
}
.dsp-clean__status {
  position: absolute;
  right: 0;
  bottom: -22px;
  transform: translateY(100%);
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 850;
  color: #31B86B;
  text-transform: none;
}
.dsp-clean__status span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(49,184,107,.15);
}
.dsp-clean__status.is-offline { color: #FF7D7D; }
.dsp-clean__status.is-offline span { box-shadow: 0 0 0 5px rgba(255,125,125,.18); }

.sound-gate--clean {
  background: rgba(6,26,67,.62);
  backdrop-filter: blur(7px);
}
.sound-gate__card--clean {
  border-top: 7px solid #F2C94C;
  border-radius: 28px;
  max-width: 500px;
  padding: 38px 34px;
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
}

@media (max-width: 1280px) {
  .dsp-clean {
    grid-template-rows: 104px minmax(0, 1fr) 80px;
    min-height: 620px;
  }
  .dsp-clean__main {
    grid-template-columns: minmax(0, 1.64fr) minmax(330px, .78fr);
    gap: 20px;
    padding: 24px 28px;
  }
  .dsp-clean__number { font-size: clamp(112px, 14vw, 190px); }
  .dsp-clean__counter { font-size: clamp(48px, 6vw, 84px); }
  .dsp-clean__service { width: min(84%, 720px); }
  .dsp-clean__timebox { min-width: 250px; }
}

@media (max-width: 900px) {
  body.dsp-light-body { overflow: auto; }
  .dsp-clean {
    height: auto;
    min-height: 100vh;
    grid-template-rows: auto auto auto;
    overflow: visible;
  }
  .dsp-clean__top,
  .dsp-clean__footer {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }
  .dsp-clean__timebox {
    clip-path: none;
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .dsp-clean__main {
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .dsp-clean__recent { grid-template-rows: none; }
  .dsp-clean__foot-right { align-self: stretch; }
}

/* Penyesuaian kanan agar tidak menumpuk pada resolusi TV/browser 16:9 */
.dsp-clean__side-title {
  font-size: clamp(20px, 1.6vw, 30px);
  white-space: nowrap;
}
.dsp-clean__side-title > span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dsp-clean__item {
  grid-template-columns: clamp(38px, 3.4vw, 60px) minmax(96px, 150px) 1px minmax(0, 1fr);
  gap: clamp(10px, 1vw, 18px);
}
.dsp-clean__item-icon {
  width: clamp(38px, 3.4vw, 60px);
  height: clamp(38px, 3.4vw, 60px);
}
.dsp-clean__item-num {
  font-size: clamp(34px, 3.15vw, 62px);
  letter-spacing: -.07em;
}
.dsp-clean__item-info b {
  font-size: clamp(20px, 1.7vw, 32px);
}
.dsp-clean__item-info span {
  font-size: clamp(12px, 1vw, 18px);
}
@media (max-width: 1280px) {
  .dsp-clean__side-title { font-size: 24px; }
  .dsp-clean__item {
    grid-template-columns: 44px minmax(88px, 124px) 1px minmax(0, 1fr);
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .dsp-clean__item-icon { width: 44px; height: 44px; }
  .dsp-clean__item-num { font-size: 42px; }
  .dsp-clean__item-info b { font-size: 24px; }
  .dsp-clean__item-info span { font-size: 13px; }
}

/* Fallback saat belum ada panggilan: teks tetap masuk layar, tidak terpotong */
.dsp-clean__hero.is-empty .dsp-clean__service {
  width: min(92%, 880px);
  font-size: clamp(20px, 1.9vw, 34px);
  padding-left: clamp(22px, 2.2vw, 36px);
  padding-right: clamp(22px, 2.2vw, 36px);
}
.dsp-clean__hero.is-empty .dsp-clean__service-icon {
  width: clamp(40px, 3.7vw, 62px);
  height: clamp(40px, 3.7vw, 62px);
}

/* =====================================================================
   DISPLAY TV REDESIGN V3 - komposisi mengikuti referensi BPKPD
   ===================================================================== */
body.dsp-light-body {
  background: #F6FAFD;
}

.dsp-clean {
  grid-template-rows: clamp(132px, 15.4vh, 160px) minmax(0, 1fr) clamp(100px, 11.3vh, 118px);
  min-height: 720px;
  background: #F7FAFD;
}

.dsp-clean__top {
  padding: clamp(24px, 2.7vh, 32px) clamp(40px, 3vw, 56px);
}

.dsp-clean__logo {
  width: clamp(68px, 5.2vw, 82px);
  height: clamp(68px, 5.2vw, 82px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dsp-clean__instansi {
  text-transform: uppercase;
  font-size: clamp(34px, 2.8vw, 48px);
  letter-spacing: .01em;
}

.dsp-clean__sub {
  text-transform: uppercase;
  font-size: clamp(20px, 1.55vw, 28px);
  letter-spacing: .035em;
}

.dsp-clean__timebox {
  min-width: clamp(306px, 21.7vw, 354px);
  min-height: clamp(92px, 10.9vh, 112px);
  border-radius: 13px;
  padding-left: clamp(48px, 3.8vw, 64px);
  padding-right: clamp(22px, 2.3vw, 34px);
}

.dsp-clean__clock-icon {
  width: clamp(46px, 3.5vw, 58px);
  height: clamp(46px, 3.5vw, 58px);
}

.dsp-clean__clock {
  font-size: clamp(38px, 3vw, 52px);
  letter-spacing: -.03em;
}

.dsp-clean__date {
  font-size: clamp(17px, 1.35vw, 22px);
}

.dsp-clean__main {
  grid-template-columns: minmax(0, 1.78fr) minmax(390px, .84fr);
  gap: clamp(20px, 1.55vw, 28px);
  padding: clamp(24px, 2.45vh, 32px) clamp(24px, 1.9vw, 34px);
  background: #F7FAFD;
}

.dsp-clean__hero,
.dsp-clean__side {
  border-radius: 24px;
}

.dsp-clean__hero {
  padding: clamp(30px, 3.4vh, 44px) clamp(48px, 4vw, 72px);
  border-color: rgba(20, 116, 190, .78);
  box-shadow: 0 12px 30px rgba(8,42,70,.14);
}

.dsp-clean__eyebrow {
  font-size: clamp(28px, 2.45vw, 42px);
  letter-spacing: .115em;
}

.dsp-clean__number {
  margin-top: clamp(34px, 4.2vh, 46px);
  margin-bottom: clamp(12px, 1.8vh, 20px);
  font-size: clamp(176px, 15.1vw, 236px);
  line-height: .76;
}

.dsp-clean__beam {
  margin-bottom: clamp(28px, 3.4vh, 38px);
}

.dsp-clean__route-label {
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: .075em;
}

.dsp-clean__counter {
  font-size: clamp(74px, 6.8vw, 112px);
}

.dsp-clean__service {
  width: min(68%, 650px);
  min-height: clamp(74px, 9.2vh, 98px);
  margin-top: clamp(24px, 3.6vh, 34px);
  font-size: clamp(32px, 2.8vw, 46px);
}

.dsp-clean__side {
  padding: clamp(4px, .7vh, 8px) 0 clamp(6px, .8vh, 10px);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  grid-template-rows: clamp(64px, 6.5vh, 72px) minmax(0, 1fr);
  gap: clamp(16px, 1.8vh, 22px);
}

.dsp-clean__side-title {
  border-radius: 14px;
  padding: 0 clamp(22px, 1.8vw, 30px);
  font-size: clamp(24px, 1.75vw, 30px);
  letter-spacing: .015em;
}

.dsp-clean__side-icon {
  width: clamp(34px, 3vw, 46px);
  height: clamp(34px, 3vw, 46px);
}

.dsp-clean__recent {
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.3vh, 14px);
}

.dsp-clean__item {
  grid-template-columns: clamp(50px, 3.9vw, 62px) minmax(132px, 160px) 1px minmax(0, 1fr);
  gap: clamp(14px, 1.25vw, 20px);
  padding: clamp(14px, 1.5vh, 18px) clamp(18px, 1.55vw, 24px);
  border-radius: clamp(14px, 1.5vw, 18px);
  box-shadow: 0 5px 16px rgba(8,42,70,.07);
}

.dsp-clean__item.is-latest {
  background: linear-gradient(135deg, #FFE984 0%, #FFD348 58%, #F4BC2A 100%);
  box-shadow: 0 13px 24px rgba(209,150,24,.24);
}

.dsp-clean__item-icon {
  width: clamp(50px, 3.9vw, 62px);
  height: clamp(50px, 3.9vw, 62px);
}

.dsp-clean__item-num {
  font-size: clamp(48px, 3.65vw, 62px);
  letter-spacing: -.055em;
}

.dsp-clean__item-info b {
  font-size: clamp(22px, 1.8vw, 30px);
}

.dsp-clean__item-info span {
  font-size: clamp(13px, 1.05vw, 17px);
  font-weight: 700;
}

.dsp-clean__item--ghost {
  background: rgba(255,255,255,.7);
}

.dsp-clean__recent .dsp-clean__item--ghost:first-child {
  border-color: #D7DEE6;
  background: rgba(255,255,255,.7);
  box-shadow: none;
}

.dsp-clean__item--ghost .dsp-clean__item-icon {
  border-width: 2px;
}

.dsp-clean__empty {
  display: none;
}

.dsp-clean__footer {
  padding: 0 clamp(40px, 3.1vw, 56px);
}

@media (max-width: 1280px) {
  .dsp-clean {
    grid-template-rows: 118px minmax(0, 1fr) 92px;
    min-height: 660px;
  }
  .dsp-clean__main {
    grid-template-columns: minmax(0, 1.64fr) minmax(330px, .78fr);
    gap: 18px;
    padding: 20px 24px;
  }
  .dsp-clean__number { font-size: clamp(124px, 14.2vw, 184px); }
  .dsp-clean__counter { font-size: clamp(52px, 6vw, 78px); }
  .dsp-clean__service { width: min(78%, 660px); }
  .dsp-clean__recent { gap: 10px; }
  .dsp-clean__item {
    grid-template-columns: 44px minmax(96px, 126px) 1px minmax(0, 1fr);
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .dsp-clean__item-icon { width: 44px; height: 44px; }
  .dsp-clean__item-num { font-size: 42px; }
  .dsp-clean__item-info b { font-size: 23px; }
  .dsp-clean__item-info span { font-size: 12px; }
}

/* =====================================================================
   DISPLAY TV REDESIGN V4 - presisi frame dan proporsi layar lebar
   ===================================================================== */
@media (min-width: 901px) {
  body.dsp-light-body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #081522;
  }

  .dsp-clean {
    width: 100vw;
    height: 100vh;
    min-height: 0;
    border: 6px solid #081522;
    border-radius: 28px;
    overflow: hidden;
    grid-template-rows: clamp(146px, 14.4vh, 156px) minmax(0, 1fr) clamp(112px, 11.3vh, 120px);
    background: #F5FAFE;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  }

  .dsp-clean__top {
    padding: clamp(20px, 2.15vh, 24px) clamp(34px, 2.55vw, 44px);
  }

  .dsp-clean__top:after {
    height: 4px;
  }

  .dsp-clean__brand {
    gap: clamp(20px, 1.75vw, 28px);
  }

  .dsp-clean__logo {
    width: clamp(70px, 4.35vw, 82px);
    height: clamp(70px, 4.35vw, 82px);
  }

  .dsp-clean__instansi {
    font-size: clamp(36px, 2.55vw, 48px);
    letter-spacing: .015em;
  }

  .dsp-clean__sub {
    font-size: clamp(20px, 1.42vw, 27px);
    letter-spacing: .04em;
  }

  .dsp-clean__timebox {
    min-width: clamp(330px, 19.4vw, 374px);
    min-height: clamp(98px, 10.8vh, 112px);
    border-radius: 12px;
    padding-left: clamp(52px, 3.45vw, 66px);
    padding-right: clamp(24px, 2vw, 36px);
  }

  .dsp-clean__clock {
    font-size: clamp(40px, 2.72vw, 52px);
  }

  .dsp-clean__main {
    grid-template-columns: minmax(0, 1.755fr) minmax(420px, .82fr);
    gap: clamp(20px, 1.42vw, 27px);
    padding: clamp(22px, 2.65vh, 28px) clamp(22px, 1.3vw, 26px);
    background: #F5FAFE;
  }

  .dsp-clean__hero {
    border-radius: 22px;
    padding: clamp(26px, 3vh, 34px) clamp(46px, 3.6vw, 70px);
  }

  .dsp-clean__hero:after {
    left: 18px;
    right: 18px;
    bottom: 14px;
  }

  .dsp-clean__eyebrow {
    font-size: clamp(27px, 2.18vw, 42px);
    letter-spacing: .125em;
  }

  .dsp-clean__number {
    font-size: clamp(170px, 14.25vw, 246px);
    margin-top: clamp(30px, 3.6vh, 40px);
    margin-bottom: clamp(8px, 1.5vh, 18px);
  }

  .dsp-clean__beam {
    width: min(58%, 720px);
    margin-bottom: clamp(22px, 2.8vh, 32px);
  }

  .dsp-clean__route-label {
    margin-bottom: clamp(8px, 1.05vh, 12px);
  }

  .dsp-clean__counter {
    font-size: clamp(72px, 5.85vw, 112px);
  }

  .dsp-clean__service {
    width: min(66%, 650px);
    min-height: clamp(76px, 9.2vh, 98px);
    margin-top: clamp(22px, 3vh, 34px);
    font-size: clamp(32px, 2.45vw, 46px);
  }

  .dsp-clean__side {
    grid-template-rows: clamp(66px, 6.55vh, 72px) minmax(0, 1fr);
    gap: clamp(14px, 1.9vh, 20px);
    padding: clamp(5px, .7vh, 8px) 0 clamp(5px, .7vh, 8px);
  }

  .dsp-clean__side-title {
    border-radius: 12px;
    padding: 0 clamp(26px, 1.95vw, 38px);
    font-size: clamp(25px, 1.56vw, 30px);
  }

  .dsp-clean__recent {
    gap: clamp(12px, 1.55vh, 16px);
  }

  .dsp-clean__item {
    grid-template-columns: clamp(52px, 3.2vw, 62px) minmax(150px, 1fr) 1px minmax(0, .92fr);
    gap: clamp(18px, 1.38vw, 26px);
    padding: clamp(15px, 1.55vh, 18px) clamp(22px, 1.65vw, 32px);
    border-radius: 16px;
  }

  .dsp-clean__item-icon {
    width: clamp(52px, 3.2vw, 62px);
    height: clamp(52px, 3.2vw, 62px);
  }

  .dsp-clean__item-num {
    font-size: clamp(48px, 3.25vw, 62px);
  }

  .dsp-clean__footer {
    padding: 0 clamp(42px, 3.05vw, 58px);
  }
}

/* Nomor aktif harus terbaca jelas: jangan rapatkan digit sampai saling menumpuk. */
@media (min-width: 901px) {
  .dsp-clean__hero:not(.is-empty) .dsp-clean__number {
    max-width: 100%;
    font-size: clamp(152px, 12.45vw, 218px);
    line-height: .82;
    letter-spacing: .012em;
    text-align: center;
    white-space: nowrap;
  }

  .dsp-clean__item-num {
    letter-spacing: .004em;
  }
}

/* State kosong: teksnya panjang, jadi jangan dipaksa sebesar nama loket aktif. */
@media (min-width: 901px) {
  .dsp-clean__hero.is-empty .dsp-clean__route {
    width: min(92%, 1040px);
  }

  .dsp-clean__hero.is-empty .dsp-clean__counter-wrap {
    position: relative;
    display: flex;
    grid-template-columns: none;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 clamp(74px, 7vw, 96px);
  }

  .dsp-clean__hero.is-empty .dsp-clean__counter {
    display: block;
    max-width: 100%;
    font-size: clamp(54px, 5.2vw, 82px);
    line-height: .94;
    letter-spacing: -.015em;
    text-align: center;
    white-space: nowrap;
  }

  .dsp-clean__hero.is-empty .dsp-clean__chev {
    position: absolute;
    top: 50%;
    font-size: clamp(30px, 2.9vw, 46px);
    letter-spacing: -.18em;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .dsp-clean__hero.is-empty .dsp-clean__chev--left {
    left: clamp(14px, 1.8vw, 26px);
  }

  .dsp-clean__hero.is-empty .dsp-clean__chev--right {
    right: clamp(14px, 1.8vw, 26px);
  }

  .dsp-clean__hero.is-empty .dsp-clean__service {
    width: min(68%, 820px);
    min-height: clamp(72px, 8.2vh, 88px);
    margin-top: clamp(24px, 3vh, 32px);
    font-size: clamp(24px, 1.9vw, 34px);
    padding-left: clamp(28px, 2.8vw, 48px);
    padding-right: clamp(28px, 2.8vw, 48px);
  }
}

/* Jendela sedang: jangan paksakan teks kosong sebesar tampilan TV penuh. */
@media (min-width: 901px) and (max-width: 1399px) {
  .dsp-clean__hero.is-empty .dsp-clean__counter-wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .dsp-clean__hero.is-empty .dsp-clean__counter {
    font-size: clamp(34px, 3.8vw, 48px);
    letter-spacing: -.01em;
  }

  .dsp-clean__hero.is-empty .dsp-clean__chev {
    display: none;
  }

  .dsp-clean__hero.is-empty .dsp-clean__service {
    width: min(82%, 620px);
    font-size: clamp(20px, 2.2vw, 28px);
  }
}


/* ===== Laporan rinci dan cetak formal instansi ===== */
.report-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}.report-summary-grid h3,.report-detail h3{margin:0 0 12px;color:var(--navy);font-size:15px}.data--compact th,.data--compact td{padding:9px 10px;font-size:12px}.report-detail{margin-top:22px}.report-detail-table{min-width:1380px}.report-detail-table th,.report-detail-table td{font-size:11px;padding:9px 8px;white-space:nowrap}.report-detail-table td:nth-child(4),.report-detail-table td:nth-child(5),.report-detail-table td:nth-child(7){white-space:normal;min-width:120px}.gov-report-head,.gov-report-title,.gov-signature{display:none}
@media(max-width:900px){.report-summary-grid{grid-template-columns:1fr}.report-filter__act{width:100%;margin-left:0}}

@media print{
  @page{size:A4 landscape;margin:12mm 10mm 13mm}
  html,body{background:#fff!important;color:#000!important;font-family:Arial,sans-serif!important;font-size:9pt}
  .dash-top,.dash-nav,.no-print,.toast-msg{display:none!important}
  .dash-wrap,.dash-content,.report-page{display:block!important;margin:0!important;padding:0!important;width:100%!important;max-width:none!important}
  .panel,.report-main{border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;margin:0!important}
  .print-only,.gov-report-head,.gov-report-title,.gov-signature{display:flex!important}
  .gov-report-head{align-items:center;justify-content:center;gap:18px;border-bottom:3px double #000;padding:0 20px 10px;text-align:center}
  .gov-report-head img{width:58px;height:72px;object-fit:contain}
  .gov-report-head__city{font-size:14pt;font-weight:700;letter-spacing:.04em}
  .gov-report-head__agency{font-size:17pt;font-weight:800;line-height:1.2}
  .gov-report-head__address{font-size:8.5pt;margin-top:3px}
  .gov-report-title{display:block!important;text-align:center;margin:12px 0 10px}
  .gov-report-title h1{font-size:12pt;text-decoration:underline;letter-spacing:.035em;margin:0 0 4px}
  .gov-report-title p{margin:0;font-size:9pt}
  .report-cards{display:grid!important;grid-template-columns:repeat(6,1fr)!important;gap:5px!important;margin:0 0 10px!important}
  .rcard{border:1px solid #555!important;background:#fff!important;color:#000!important;border-radius:0!important;padding:6px 7px!important;min-height:0!important;box-shadow:none!important}
  .rcard__lbl{font-size:7pt!important;color:#222!important}.rcard__val{font-size:10pt!important;color:#000!important;margin-top:2px!important}
  .report-detail{margin-top:0}.report-detail h3{font-size:9pt;text-align:left;margin:0 0 5px;color:#000}
  .table-scroll{overflow:visible!important}.report-detail-table{min-width:0!important;width:100%!important;border-collapse:collapse;table-layout:auto}
  .report-detail-table th,.report-detail-table td{border:1px solid #555!important;padding:3px 3px!important;font-size:6.5pt!important;line-height:1.2;white-space:normal!important;color:#000!important;background:#fff!important;vertical-align:top}
  .report-detail-table th{font-weight:700;text-align:center;background:#eee!important}
  .report-detail-table .badge{border:0!important;background:none!important;color:#000!important;padding:0!important;font-size:6.5pt!important}
  .gov-signature{display:grid!important;grid-template-columns:1fr 285px!important;margin-top:16px;break-inside:avoid;font-size:9pt;text-align:center}
  .gov-signature p{margin:0 0 5px}.gov-signature__space{height:52px}
  tr{break-inside:avoid}thead{display:table-header-group}
}
