:root {
  --indigo: #4F46E5;
  --violet: #8B5CF6;
  --ink: #1F1B3A;
  --muted: #635F82;
  --line: rgba(79, 70, 229, .14);
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .82);
  --ok: #0E9F6E;
  --warn: #D97706;
  --err: #DC2626;
  --shadow: 0 18px 40px -18px rgba(49, 34, 120, .35);
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #F3F0FF;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.bg-accents {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(760px 560px at 8% -6%, rgba(99, 102, 241, .38), transparent 62%),
    radial-gradient(620px 520px at 96% 4%, rgba(236, 72, 153, .26), transparent 60%),
    radial-gradient(680px 620px at 78% 92%, rgba(139, 92, 246, .30), transparent 60%),
    radial-gradient(560px 520px at 4% 88%, rgba(56, 189, 248, .26), transparent 60%),
    linear-gradient(160deg, #F6F3FF 0%, #F1EEFF 45%, #F7F4FF 100%);
}

.app {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-right: 1px solid rgba(255, 255, 255, .7);
}

.brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px; }

.brand-mark {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(79, 70, 229, .75);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -.2px; }
.brand-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.nav { display: flex; flex-direction: column; gap: 6px; }

.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item:hover { background: rgba(255, 255, 255, .75); color: var(--ink); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, .95), rgba(139, 92, 246, .95));
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(79, 70, 229, .9);
}

.sidebar-foot { margin-top: auto; padding: 0 6px; }
.sidebar-foot p { font-size: 11.5px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ---------- Main ---------- */
.main {
  padding: 30px 34px 60px;
  max-width: 1180px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.main.wide { max-width: 1420px; }

.page-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.page-head h1 { font-size: 25px; margin: 0 0 6px; letter-spacing: -.5px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 640px; line-height: 1.6; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card.tight { padding: 16px; }
.card h2 { font-size: 15.5px; margin: 0 0 4px; }
.card h2 + .card-sub { margin: 0 0 16px; }
.card-sub { color: var(--muted); font-size: 12.8px; line-height: 1.6; }

.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.section-gap { display: flex; flex-direction: column; gap: 26px; }

.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -.8px; }
.stat-hint { font-size: 12px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 11px;
  border: 1px solid rgba(79, 70, 229, .18);
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, opacity .14s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(49, 34, 120, .55); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 26px -14px rgba(79, 70, 229, .95);
}
.btn-ok { background: linear-gradient(135deg, #0E9F6E, #34D399); border-color: transparent; color: #fff; }
.btn-danger { background: rgba(220, 38, 38, .1); border-color: rgba(220, 38, 38, .28); color: #B91C1C; }
.btn-ghost { background: rgba(255, 255, 255, .45); }
.btn-sm { padding: 7px 11px; font-size: 12.5px; border-radius: 9px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
label.field { display: flex; flex-direction: column; gap: 7px; font-size: 12.8px; font-weight: 600; color: var(--muted); }
/* Semua kolom isian dibuat SAMA tinggi & sama bentuk. password & date dulu tidak
   ikut didaftarkan di sini sehingga tampil lebih kecil (padding & border bawaan
   peramban) — kolom kata sandi di halaman masuk jadi beda tinggi dengan kolom
   username. Jangan hapus type mana pun dari daftar ini. */
input[type=text], input[type=search], input[type=number], input[type=file],
input[type=password], input[type=date], input[type=email], input[type=tel], select, textarea {
  width: 100%;
  padding: 10px 13px;
  font: inherit; font-size: 13.5px;
  color: var(--ink);
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(79, 70, 229, .18);
  border-radius: 11px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
/* Kolom tanggal sedikit lebih tinggi secara bawaan karena ikon kalendernya,
   jadi semua kolom (kecuali textarea) diberi tinggi minimum yang sama supaya
   tidak ada yang tampak "menyusut". */
input[type=text], input[type=search], input[type=number],
input[type=password], input[type=date], input[type=email], input[type=tel], select {
  min-height: 42px;
}
input[type=date]::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
textarea { min-height: 132px; resize: vertical; line-height: 1.65; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(79, 70, 229, .55);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .13);
}
.form-grid { display: grid; gap: 16px; }
.form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.span-2 { grid-column: span 2; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-card {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(79, 70, 229, .18);
  background: rgba(255, 255, 255, .6);
  font-size: 13px; cursor: pointer; flex: 1 1 220px;
}
.radio-card input { width: auto; margin-top: 3px; }
.radio-card strong { display: block; font-size: 13px; margin-bottom: 3px; }
.radio-card span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.radio-card:has(input:checked) { border-color: rgba(79, 70, 229, .6); background: rgba(79, 70, 229, .08); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid rgba(79, 70, 229, .1); background: rgba(255, 255, 255, .55); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 13px; text-align: left; white-space: nowrap; border-bottom: 1px solid rgba(79, 70, 229, .08); }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .45px; color: var(--muted); background: rgba(255, 255, 255, .6); position: sticky; top: 0; }
tbody tr:hover { background: rgba(79, 70, 229, .05); }
tbody tr:last-child td { border-bottom: none; }
td.wrap { white-space: normal; min-width: 200px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.table-empty { padding: 34px 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  background: rgba(79, 70, 229, .1); color: #4338CA;
}
.badge.ok { background: rgba(14, 159, 110, .14); color: #047857; }
.badge.err { background: rgba(220, 38, 38, .12); color: #B91C1C; }
.badge.warn { background: rgba(217, 119, 6, .14); color: #B45309; }
.badge.gray { background: rgba(99, 95, 130, .12); color: var(--muted); }

/* ---------- Misc ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.toolbar .grow { flex: 1 1 220px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid rgba(79, 70, 229, .22); background: rgba(255, 255, 255, .7);
  color: #4338CA; cursor: pointer;
}
.chip:hover { background: rgba(79, 70, 229, .12); }
.chip.off { opacity: .45; }
.hint { font-size: 12.3px; color: var(--muted); line-height: 1.6; }
.hint code { background: rgba(79, 70, 229, .1); padding: 1px 6px; border-radius: 6px; font-size: 12px; color: #4338CA; }
.list-reset { list-style: none; margin: 0; padding: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row-between { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pill-progress { height: 9px; border-radius: 999px; background: rgba(79, 70, 229, .14); overflow: hidden; }
.pill-progress > div { height: 100%; background: linear-gradient(135deg, var(--indigo), var(--violet)); transition: width .3s ease; }
.empty-state { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.divider { height: 1px; background: rgba(79, 70, 229, .12); margin: 4px 0; }

/* preview pesan */
.bubble {
  background: #DCF8C6;
  border-radius: 14px 14px 14px 4px;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: #14321F;
  box-shadow: 0 8px 18px -14px rgba(0, 0, 0, .5);
}
.bubble-head { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }

/* runner */
.runner-card { display: flex; flex-direction: column; gap: 18px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.kv div { font-size: 13px; }
.kv dt { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 3px; }
.kv dd { margin: 0; font-weight: 600; }
.queue { display: flex; flex-direction: column; gap: 8px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.queue-item { display: flex; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 11px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(79, 70, 229, .1); font-size: 12.6px; }
.queue-item.current { border-color: rgba(79, 70, 229, .55); background: rgba(79, 70, 229, .1); font-weight: 600; }
.queue-item .qi-main { flex: 1; min-width: 0; }
.queue-item .qi-main b { display: block; font-size: 13px; }
.queue-item .qi-main span { color: var(--muted); font-size: 12px; }
.queue-item button.q { border: none; background: transparent; cursor: pointer; color: var(--muted); font: inherit; font-size: 12px; padding: 4px 6px; border-radius: 8px; }
.queue-item button.q:hover { background: rgba(79, 70, 229, .12); color: var(--ink); }

/* Kotak QR: selalu berlatar putih penuh + padding, supaya kamera HP mudah membaca */
.qr-kotak { display: flex; justify-content: center; align-items: center; min-height: 240px; padding: 12px; background: #fff; border-radius: 12px; margin-top: 10px; }
.qr-kotak svg { width: 100%; max-width: 320px; height: auto; display: block; }
.qr-kotak.besar svg { max-width: 460px; }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(31, 27, 58, .38); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 40; }
.modal-back.open { display: flex; }
.modal { background: var(--glass-strong); backdrop-filter: blur(22px) saturate(180%); border: 1px solid rgba(255, 255, 255, .8); border-radius: 18px; box-shadow: var(--shadow); padding: 24px; width: min(780px, 100%); max-height: 90vh; overflow-y: auto; }
.modal h3 { margin: 0 0 4px; font-size: 17px; }

/* toast */
#toast-wrap { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.toast { background: var(--glass-strong); backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .8); border-left: 4px solid var(--indigo); border-radius: 12px; padding: 12px 16px; font-size: 13px; box-shadow: var(--shadow); max-width: 340px; }
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--err); }

/* pagination */
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.pager a, .pager span { padding: 7px 12px; border-radius: 9px; font-size: 13px; text-decoration: none; color: var(--muted); border: 1px solid rgba(79, 70, 229, .16); background: rgba(255, 255, 255, .6); }
.pager a:hover { background: rgba(79, 70, 229, .1); color: var(--ink); }
.pager .current { background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; border-color: transparent; font-weight: 600; }

/* responsive */
@media (max-width: 1080px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 880px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; flex-direction: column; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, .7); }
  .nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .nav-item { white-space: nowrap; }
  .nav-item span { font-size: 13px; }
  .sidebar-foot { display: none; }
  /* Tombol berlabel panjang harus boleh membungkus agar tidak melebihi layar HP */
  .btn { white-space: normal; text-align: center; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1 1 auto; }
  .main { padding: 20px 14px 46px; }
  /* QR dibuat seluas mungkin di layar HP supaya mudah dibaca kamera.
     Padding dalam kartu tetap 16px (aturan jarak), yang dirapatkan hanya
     pembungkus QR-nya. */
  .qr-kotak { padding: 4px; min-height: 0; }
  .qr-kotak svg { max-width: 100%; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .form-grid.cols-2, .form-grid.cols-3, .form-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .kv { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   Tambahan untuk WA Reminder Pajak (wa-pajak):
   halaman masuk, tab, banner, pratinjau gambar, kode pairing.
   ===================================================================== */

/* ---------- Halaman masuk / daftar (tanpa sidebar) ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 28px 16px;
}
.auth-card {
  width: min(460px, 100%);
  background: var(--glass-strong);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 30px;
  display: flex; flex-direction: column; gap: 22px;
}
.auth-head { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.auth-head h1 { font-size: 19px; margin: 0; letter-spacing: -.3px; }
.auth-head p { margin: 0; color: var(--muted); font-size: 12.8px; line-height: 1.6; }
.auth-foot { text-align: center; font-size: 12.8px; color: var(--muted); }
.auth-foot a { color: #4338CA; font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
.auth-tabs { display: flex; gap: 8px; background: rgba(79, 70, 229, .08); padding: 5px; border-radius: 12px; }
.auth-tabs a {
  flex: 1; text-align: center; padding: 9px 12px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none;
}
.auth-tabs a.active { background: #fff; color: #4338CA; box-shadow: 0 8px 18px -14px rgba(49, 34, 120, .6); }

/* ---------- Tab ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid rgba(79, 70, 229, .14); margin-bottom: 4px; flex-wrap: wrap; }
.tabs a, .tabs button {
  padding: 10px 14px; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--muted); background: transparent; border: none; border-bottom: 2px solid transparent;
  text-decoration: none; cursor: pointer; border-radius: 8px 8px 0 0;
}
.tabs a:hover, .tabs button:hover { color: var(--ink); background: rgba(255, 255, 255, .5); }
.tabs a.active, .tabs button.active { color: #4338CA; border-bottom-color: #4F46E5; }

/* ---------- Banner ---------- */
.banner {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 14px; font-size: 13px; line-height: 1.6;
}
.banner strong { display: block; margin-bottom: 3px; }
.banner.info { background: rgba(79, 70, 229, .1); color: #3730A3; border: 1px solid rgba(79, 70, 229, .22); }
.banner.ok { background: rgba(14, 159, 110, .12); color: #05603A; border: 1px solid rgba(14, 159, 110, .28); }
.banner.warn { background: rgba(217, 119, 6, .12); color: #92400E; border: 1px solid rgba(217, 119, 6, .3); }
.banner.err { background: rgba(220, 38, 38, .1); color: #991B1B; border: 1px solid rgba(220, 38, 38, .26); }
.banner a { color: inherit; font-weight: 700; }

/* ---------- Pratinjau gambar lampiran ---------- */
.thumb {
  width: 84px; height: 84px; border-radius: 12px; overflow: hidden; flex: none;
  background: rgba(79, 70, 229, .08); border: 1px solid rgba(79, 70, 229, .18);
  display: grid; place-items: center; color: var(--muted); font-size: 11px;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.upload-row .upload-main { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Kode pairing ---------- */
.kode-pairing {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 30px; font-weight: 700; letter-spacing: 6px; text-align: center;
  padding: 16px; border-radius: 14px; background: #fff; color: var(--ink);
  border: 1px dashed rgba(79, 70, 229, .4);
}

/* ---------- Progress bar ---------- */
.progress-line { display: flex; align-items: center; gap: 12px; }
.progress-line .pill-progress { flex: 1; }

/* ---------- Ringkasan sesi ---------- */
.kv-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kv-3 dt { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 3px; }
.kv-3 dd { margin: 0; font-weight: 700; font-size: 14px; }

/* ---------- Baris aksi di tabel ---------- */
/* Tombol aksi harus boleh membungkus: tanpa flex-wrap, deretan tombol di
   halaman sesi membuat seluruh halaman melebar di layar HP. */
.row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form { display: inline; }
.filter-form { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
@media (max-width: 1080px) { .filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 880px) {
  .filter-form { grid-template-columns: minmax(0, 1fr); }
  .kv-3 { grid-template-columns: minmax(0, 1fr); }
  .auth-card { padding: 22px; }
}

/* =====================================================================
   Halaman Kirim WhatsApp: minimalis & elegan.
   Tiga panel bernomor di kolom kiri; ringkasan (jumlah penerima, perkiraan
   waktu, tombol aksi) sebagai kartu melayang di kolom kanan.
   ===================================================================== */
.kicker {
  margin: 0 0 7px;
  font-size: 11px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase;
  color: #6D28D9;
}
/* Nama halaman sengaja lebih besar & tebal (permintaan pengguna). */
.page-head h1.judul-besar {
  font-size: 34px; font-weight: 800; letter-spacing: -1.1px; line-height: 1.08; margin-bottom: 10px;
}
.page-head h1.judul-besar + p { max-width: 720px; font-size: 14px; }

.kirim-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.kirim-form { display: flex; flex-direction: column; gap: 20px; }

.panel {
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 18px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 20px 44px -34px rgba(49, 34, 120, .6);
}
.panel-judul { display: flex; gap: 14px; align-items: flex-start; }
.panel-judul h2 { margin: 0 0 3px; font-size: 15.5px; letter-spacing: -.2px; }
.panel-judul p { margin: 0; font-size: 12.7px; line-height: 1.6; color: var(--muted); }
.langkah-no {
  width: 27px; height: 27px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; color: #4338CA;
  background: rgba(79, 70, 229, .1);
  border: 1px solid rgba(79, 70, 229, .18);
}

/* Pilihan (radio) sebagai kartu tipis, bukan kotak besar. */
.pilihan { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pilihan-tiga { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pilihan-item {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 14px 16px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(79, 70, 229, .16);
  background: rgba(255, 255, 255, .58);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.pilihan-item:hover { border-color: rgba(79, 70, 229, .38); background: #fff; transform: translateY(-1px); }
.pilihan-item input { width: auto; min-height: 0; margin: 3px 0 0; accent-color: #4F46E5; flex: none; }
.pilihan-item b { display: block; font-size: 13.4px; margin-bottom: 2px; }
.pilihan-item small { display: block; font-size: 12.2px; line-height: 1.55; color: var(--muted); }
.pilihan-item:has(input:checked) {
  border-color: rgba(79, 70, 229, .6);
  background: linear-gradient(180deg, rgba(79, 70, 229, .09), rgba(139, 92, 246, .07));
  box-shadow: 0 14px 26px -22px rgba(79, 70, 229, .95);
}
.pilihan-item:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.pilihan-item:has(input:disabled):hover { transform: none; border-color: rgba(79, 70, 229, .16); background: rgba(255, 255, 255, .58); }

/* Kolom bertanda centang (bukan label bertumpuk). */
.cek-inline {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 13.2px; font-weight: 500; color: var(--ink);
  padding: 13px 15px; border-radius: 13px;
  border: 1px solid rgba(79, 70, 229, .14);
  background: rgba(255, 255, 255, .55);
}
.cek-inline input { width: auto; min-height: 0; margin-top: 2px; accent-color: #4F46E5; flex: none; }

/* Nama sesi ditulis lebih besar & tebal supaya mudah dikenali.
   Ditulis `input.input-besar` (bukan `.input-besar`) karena aturan dasar
   `input[type=text]` lebih spesifik — tanpa itu ukurannya tidak berubah. */
input.input-besar { font-size: 15.5px; font-weight: 700; letter-spacing: -.2px; padding: 12px 15px; min-height: 46px; }

/* Kartu ringkasan di kolom kanan. */
.kirim-ringkas { position: sticky; top: 24px; }
.ringkas {
  display: flex; flex-direction: column; gap: 13px;
  padding: 24px; border-radius: 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .92), rgba(244, 241, 255, .86));
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 26px 56px -38px rgba(49, 34, 120, .75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.ringkas-angka { display: flex; align-items: baseline; gap: 10px; }
.ringkas-angka span {
  font-size: 46px; font-weight: 800; letter-spacing: -2px; line-height: 1;
  background: linear-gradient(135deg, #4F46E5, #8B5CF6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ringkas-angka small { font-size: 13px; font-weight: 600; color: var(--muted); }
.ringkas-catatan { margin: 0; font-size: 13.2px; font-weight: 600; color: var(--ink); }
.ringkas-catatan.kosong { color: #B45309; }
.ringkas-waktu { margin: 0; font-size: 12.7px; line-height: 1.7; color: var(--muted); }
.ringkas-kaki { margin: 0; font-size: 11.8px; line-height: 1.6; color: var(--muted); text-align: center; }
.btn-besar { padding: 14px 18px; font-size: 14.5px; }

@media (max-width: 1080px) {
  .kirim-grid { grid-template-columns: minmax(0, 1fr); }
  .kirim-ringkas { position: static; }
}
@media (max-width: 880px) {
  .page-head h1.judul-besar { font-size: 26px; letter-spacing: -.7px; }
  .panel { padding: 20px; }
  .ringkas { padding: 20px; }
  .pilihan, .pilihan-tiga { grid-template-columns: minmax(0, 1fr); }
  .ringkas-angka span { font-size: 38px; }
}

/* ---------- Langkah-langkah (dipakai di halaman koneksi) ---------- */
ol.langkah { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.8; color: var(--muted); }
ol.langkah b { color: var(--ink); }
.mono-badge { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

/* Catatan: tampilan kartu per-kendaraan untuk layar HP sudah TIDAK dipakai lagi.
   Dashboard kini memakai tabel 5 kolom yang selnya boleh membungkus (lihat bagian
   "DASHBOARD" di bawah) supaya tetap muat di layar HP tanpa menggulir ke samping. */

/* ---------- Logo (Lambang Jawa Timur) + tulisan header ---------- */
/* Lambangnya sendiri sudah berwarna & berbingkai hitam, jadi kotaknya dibuat
   netral (putih) tanpa gradasi supaya tetap terbaca sebagai lambang resmi.
   Ukuran logo & tulisan sengaja agak besar (permintaan pengguna). */
.brand-mark {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(79, 70, 229, .16);
  box-shadow: 0 8px 18px -12px rgba(49, 34, 120, .6);
  padding: 5px;
  border-radius: 14px;
}
.brand-mark-besar { width: 84px !important; height: 84px !important; border-radius: 20px; padding: 8px; }
.brand-teks { min-width: 0; }
.brand-name { font-size: 19px; letter-spacing: -.3px; line-height: 1.2; }
.brand-sub { font-size: 13px; margin-top: 3px; }
/* Baris nama pengguna & tombol Keluar di header: khusus layar HP. */
.brand-petugas { display: none; }
.keluar-hp { display: none; margin-left: auto; align-self: flex-start; }
.keluar-hp .btn { white-space: nowrap; }

/* =====================================================================
   LAYAR HP (<= 880px): sidebar jadi header di atas, jadi tombol Keluar
   harus ikut terlihat di situ — dulu .sidebar-foot disembunyikan sehingga
   pengguna HP tidak punya cara keluar dari akun sama sekali.
   ===================================================================== */
@media (max-width: 880px) {
  .brand { width: 100%; gap: 14px; padding: 2px 2px 4px; align-items: flex-start; }
  .brand-mark { width: 52px; height: 52px; padding: 4px; }
  .brand-name { font-size: 17.5px; }
  .brand-sub { font-size: 12.5px; }
  .brand-petugas { display: block; color: #4338CA; font-weight: 700; }
  .keluar-hp { display: flex; }
}

/* =====================================================================
   Halaman Kirim Cepat (khusus HP): satu penerima satu layar, tombol besar.
   ===================================================================== */
.cepat { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.cepat-kepala { display: flex; flex-direction: column; gap: 10px; }
.cepat-kembali { font-size: 13px; font-weight: 700; color: #4338CA; text-decoration: none; }
.cepat-kembali:hover { text-decoration: underline; }

.cepat-kartu {
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px; border-radius: 22px;
  background: linear-gradient(168deg, rgba(255, 255, 255, .94), rgba(245, 242, 255, .88));
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 30px 60px -40px rgba(49, 34, 120, .8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.cepat-label { font-size: 11px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: #6D28D9; }
.cepat-nopol { margin: 0; font-size: 33px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.05; }
.cepat-nama { margin: -8px 0 0; font-size: 16.5px; font-weight: 600; color: var(--ink); }

.cepat-rinci { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.cepat-rinci dt { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.cepat-rinci dd { margin: 0; font-size: 15px; font-weight: 600; }
.cepat-rinci-total { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid rgba(79, 70, 229, .14); }
.cepat-total {
  font-size: 28px; font-weight: 800; letter-spacing: -.8px;
  background: linear-gradient(135deg, #4F46E5, #8B5CF6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Tombol utama dibuat besar & menempel di bawah layar supaya gampang dijangkau
   ibu jari; konten boleh tergulir di belakangnya. */
.cepat-aksi {
  position: sticky; bottom: 12px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px; margin: 2px -8px 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 18px 34px -26px rgba(49, 34, 120, .85);
}
.cepat-aksi-baris { display: flex; gap: 10px; flex-wrap: wrap; }
.cepat-aksi-baris .btn { flex: 1 1 150px; }
.btn-cepat { padding: 18px 20px; font-size: 17px; font-weight: 800; border-radius: 16px; letter-spacing: -.2px; }

.cepat-pesan summary {
  cursor: pointer; font-size: 13px; font-weight: 700; color: #4338CA;
  padding: 10px 12px; border-radius: 12px; background: rgba(79, 70, 229, .07);
  list-style: none;
}
.cepat-pesan summary::-webkit-details-marker { display: none; }
.cepat-pesan summary::before { content: '▸ '; }
.cepat-pesan[open] summary::before { content: '▾ '; }
.cepat-pesan .bubble { margin-top: 12px; }

@media (max-width: 880px) {
  .cepat { gap: 16px; }
  .cepat-kartu { padding: 20px; border-radius: 20px; gap: 16px; }
  .cepat-nopol { font-size: 29px; }
  .cepat-total { font-size: 25px; }
  .cepat-aksi { bottom: 8px; }
}

/* =====================================================================
   DASHBOARD — mengikuti tampilan yang diminta pengguna:
   kartu statistik 2x2, kartu "Manajemen Pengingat" dengan tab + pencarian,
   lalu tabel 5 kolom (No | Nopol, Nama & Kecamatan | Masa Laku | Total Pajak
   | Aksi) yang juga dipakai di layar HP (selnya boleh membungkus).
   ===================================================================== */
.grid-stat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.stat-kartu {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 16px 34px -28px rgba(49, 34, 120, .65);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
}
.stat-kartu-teks { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.stat-kartu .stat-label { font-size: 11px; letter-spacing: .7px; }
.stat-nilai { font-size: 24px; font-weight: 800; letter-spacing: -.8px; line-height: 1.1; }
.stat-kartu .stat-hint { font-size: 11.4px; line-height: 1.5; }
.stat-ikon {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
}
.stat-ikon svg { width: 20px; height: 20px; }
.stat-indigo .stat-ikon { background: rgba(79, 70, 229, .12); color: #4338CA; }
.stat-amber .stat-ikon { background: rgba(217, 119, 6, .14); color: #B45309; }
.stat-hijau .stat-ikon { background: rgba(14, 159, 110, .14); color: #047857; }
.stat-biru .stat-ikon { background: rgba(37, 99, 235, .13); color: #1D4ED8; }
.stat-indigo .stat-nilai { color: var(--ink); }
.stat-amber .stat-nilai { color: #B45309; }
.stat-hijau .stat-nilai { color: #047857; }
.stat-biru .stat-nilai { color: #1D4ED8; }

/* Tombol Template (ungu lembut) seperti pada tampilan yang diminta. */
.btn-template {
  border-color: rgba(79, 70, 229, .3);
  background: rgba(79, 70, 229, .08);
  color: #4338CA;
}

/* Form pencarian: kotak & pilihan tampil polos tanpa label di atasnya. */
.filter-cari .filter-form { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; }
.filter-cari .filter-form input[type=search],
.filter-cari .filter-form select { min-height: 44px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Tabel dashboard: 5 kolom, sel boleh membungkus supaya muat di layar HP. */
.tabel-dashboard th, .tabel-dashboard td { white-space: normal; vertical-align: top; }
.tabel-dashboard .kol-no { width: 34px; text-align: center; color: var(--muted); font-weight: 600; }
.tabel-dashboard .kol-utama b { display: block; font-size: 13.5px; }
.kol-nama { display: block; font-size: 12.2px; color: var(--muted); line-height: 1.45; }
.kol-kec {
  display: flex; align-items: center; gap: 4px; margin-top: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px; color: #4338CA;
  text-transform: uppercase; overflow-wrap: anywhere;
}
.kol-kec svg { width: 11px; height: 11px; flex: none; }
.tabel-dashboard .kol-masa { width: 96px; }
.tabel-dashboard .kol-total { font-weight: 700; color: var(--ink); }
.tabel-dashboard .kol-aksi { width: 96px; }
.tabel-dashboard .kol-aksi .row-actions { flex-direction: column; align-items: stretch; }
.btn-kirim {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(14, 159, 110, .12); color: #047857;
  border: 1px solid rgba(14, 159, 110, .28);
  font-weight: 800;
}
.btn-kirim:hover { background: rgba(14, 159, 110, .2); }
.btn-kirim svg { width: 15px; height: 15px; }

@media (max-width: 1080px) {
  .grid-stat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-cari .filter-form { grid-template-columns: minmax(0, 1fr); }
}
/* Layar HP: lebar kolom dikunci (table-layout: fixed) supaya tabel TIDAK PERNAH
   lebih lebar dari layar, dan kata panjang dipatahkan (overflow-wrap: anywhere).
   Diuji di 320/360/390px. */
@media (max-width: 620px) {
  .card { padding: 16px; }
  .tabel-dashboard table { table-layout: fixed; width: 100%; }
  .tabel-dashboard .kol-no { display: none; }
  .tabel-dashboard .kol-utama { width: auto; }
  .tabel-dashboard .kol-masa { width: 66px; }
  .tabel-dashboard .kol-total { width: 62px; }
  .tabel-dashboard .kol-aksi { width: 64px; }
  .tabel-dashboard th, .tabel-dashboard td { padding: 9px 5px; font-size: 11.4px; }
  .tabel-dashboard .kol-utama b { font-size: 12.4px; overflow-wrap: anywhere; }
  .kol-nama { font-size: 11.2px; overflow-wrap: anywhere; }
  .kol-kec { font-size: 9.8px; overflow-wrap: anywhere; }
  .kol-total { overflow-wrap: anywhere; }
  .tabel-dashboard .badge { font-size: 10px; padding: 3px 4px; white-space: normal; }
  /* Tombol aksi dibuat sempit: ikon di atas, tulisan di bawah. */
  .tabel-dashboard .btn-kirim { flex-direction: column; gap: 2px; padding: 6px 2px; font-size: 11px; width: 100%; }
  .stat-nilai { font-size: 21px; }
  .stat-kartu { padding: 15px; }
  .stat-ikon { width: 34px; height: 34px; border-radius: 10px; }
  .stat-ikon svg { width: 17px; height: 17px; }
}
