/**
 * PBB Argomulyo - Main Stylesheet
 * Sistem Informasi Pembayaran PBB
 */

:root {
  --primary: #1a5276;
  --primary-l: #2471a3;
  --primary-d: #0e2f44;
  --accent: #f0a500;
  --success: #0d9e6e;
  --sbg: #d1fae5;
  --stx: #065f46;
  --warning: #d97706;
  --wbg: #fef3c7;
  --wtx: #92400e;
  --danger: #dc2626;
  --dbg: #fee2e2;
  --dtx: #991b1b;
  --pending: #7c3aed;
  --pbg: #ede9fe;
  --ptx: #4c1d95;
  --bg: #f0f4f8;
  --card: #fff;
  --border: #e2e8f0;
  --text: #1a202c;
  --muted: #718096;
  --light: #f8fafc;
  --r: 12px;
  --rl: 16px;
  --rxl: 20px;
  --sh: 0 2px 8px rgba(0,0,0,.08);
  --shl: 0 8px 32px rgba(0,0,0,.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  min-height: 100%;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

button, input, select, textarea { font-family: inherit; }

/* â”€â”€ SCREENS â”€â”€ */
.sc { display: none; flex-direction: column; min-height: 100vh; }
.sc.on { display: flex; }

/* â”€â”€ HOME â”€â”€ */
#s-home {
  background: linear-gradient(160deg, var(--primary-d) 0%, var(--primary) 55%, var(--primary-l) 100%);
}

.h-hero {
  padding: 44px 20px 24px;
  text-align: center;
  color: #fff;
}

.h-logo {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,.20);
  padding: 3px;
  overflow: hidden;
}

/* .h-hero h1 sudah tidak dipakai (lihat .hero-title di section REFACTOR) */
.h-hero p { font-size: 13px; opacity: .75; margin-top: 4px; }

.h-body {
  flex: 1;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
  padding: 22px 16px 40px;
  margin-top: 8px;
}

.sec-lbl { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; }

.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }

.mc {
  background: var(--card);
  border-radius: var(--rl);
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  border: 1.5px solid var(--border);
  transition: all .18s;
  box-shadow: var(--sh);
}
.mc:active { transform: scale(.97); }
.mc.hi { border-color: var(--accent); background: linear-gradient(135deg, #fffbeb, #fff); }
.mc .mi { font-size: 28px; margin-bottom: 8px; display: block; }
.mc .ml { font-size: 13px; font-weight: 700; }
.mc .ms { font-size: 11px; color: var(--muted); margin-top: 3px; }

.info-box {
  background: linear-gradient(135deg, var(--primary-d), var(--primary));
  border-radius: var(--rl);
  padding: 15px;
  color: #fff;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.info-box p { font-size: 12.5px; opacity: .9; line-height: 1.6; }

.a-link { text-align: center; padding: 14px 0 0; }
.a-link button {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: all .2s;
}
.a-link button:hover { border-color: var(--primary); color: var(--primary); }

/* â”€â”€ LOGIN â”€â”€ */
#s-login {
  background: linear-gradient(160deg, var(--primary-d), var(--primary));
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lc {
  background: var(--card);
  border-radius: var(--rxl);
  padding: 32px 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shl);
}

.lc-top { text-align: center; margin-bottom: 22px; }
.lc-top .li {
  width: 58px;
  height: 58px;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  margin: 0 auto 12px;
}
.lc-top h2 { font-size: 20px; font-weight: 800; color: var(--primary-d); }
.lc-top p { font-size: 12px; color: var(--muted); }

.lerr {
  background: var(--dbg);
  color: var(--dtx);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  display: none;
}

.lf { margin-bottom: 14px; }
.lf label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.li-wrap { position: relative; }
.lf input {
  width: 100%;
  padding: 12px 42px 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: var(--light);
  transition: border-color .2s;
}
.lf input:focus { outline: none; border-color: var(--primary); background: #fff; }
.eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--muted);
}

.btn-login {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: background .2s;
}
.btn-login:hover { background: var(--primary-l); }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; }

.back-h { text-align: center; margin-top: 14px; }
.back-h button { background: none; border: none; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; }

/* â”€â”€ WARGA SCREEN â”€â”€ */
#s-warga { background: var(--bg); }

.w-top {
  background: var(--primary);
  padding: 0 14px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 40;
  flex-shrink: 0;
}

.w-back {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.w-tt { flex: 1; color: #fff; }
.w-tt h2 { font-size: 15px; font-weight: 700; }
.w-tt p { font-size: 11px; opacity: .7; }

.w-body { flex: 1; overflow-y: auto; padding-bottom: 20px; }

/* â”€â”€ ADMIN LAYOUT â”€â”€ */
#s-admin { flex-direction: row; background: var(--bg); }

.a-sb {
  width: 250px;
  min-width: 250px;
  background: linear-gradient(160deg, var(--primary-d) 0%, var(--primary) 100%);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  flex-shrink: 0;
}

.sb-br { padding: 18px 14px 13px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sb-br .row { display: flex; align-items: center; gap: 9px; }
.sb-bi { width: 34px; height: 34px; background: var(--accent); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }

/* Varian saat .sb-bi berisi <img> (bukan emoji fallback):
   - background putih konsisten dengan .h-logo di header
   - padding 2px agar logo tidak nempel ke tepi
   - overflow hidden + box-sizing untuk render presisi
   Selector compound `.sb-bi.sb-bi-img` agar fallback emoji (div saja) TIDAK ikut putih */
.sb-bi.sb-bi-img {
  background: #fff;
  padding: 2px;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
/* .sb-br h1 dan .sb-br p sudah tidak dipakai (lihat .sb-title / .sb-subtitle di section REFACTOR) */

.sb-nav { flex: 1; padding: 12px 9px; }
.sb-sec { margin-bottom: 16px; }
.sb-sl { font-size: 9.5px; font-weight: 700; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: 1px; padding: 0 8px; margin-bottom: 5px; }

.sb-it {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: all .2s;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 1px;
}
.sb-it:hover { background: rgba(255,255,255,.1); color: #fff; }
.sb-it.on { background: var(--accent); color: var(--primary-d); }
.sb-it .si { font-size: 15px; width: 17px; text-align: center; flex-shrink: 0; }

.sb-bd {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}
.sb-bd.r { background: var(--danger); color: #fff; }
.sb-bd.o { background: var(--warning); color: #fff; }

.sb-ft { padding: 11px 13px; border-top: 1px solid rgba(255,255,255,.1); }
.sb-u { display: flex; align-items: center; gap: 8px; }
.sb-av { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--primary-d); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.sb-ui p { font-size: 12px; color: #fff; font-weight: 600; }
.sb-ui span { font-size: 10px; color: rgba(255,255,255,.5); }

.sb-lo {
  margin-left: auto;
  background: rgba(255,255,255,.12);
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.sb-lo:hover { background: var(--danger); color: #fff; }

.a-con { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }

.a-tb {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 18px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 40;
  flex-shrink: 0;
}

.a-hbg { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 16px; align-items: center; justify-content: center; flex-shrink: 0; }
.a-tt { flex: 1; min-width: 0; }
.a-tt h2 { font-size: 14.5px; font-weight: 700; }
.a-tt p { font-size: 11px; color: var(--muted); }
.a-main { flex: 1; padding: 14px; overflow-y: auto; }

.sb-ov { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199; }
.sb-ov.on { display: block; }

/* â”€â”€ ADMIN PAGES â”€â”€ */
.ap { display: none; }
.ap.on { display: block; }

/* â”€â”€ RESPONSIVE â”€â”€ */
@media (max-width: 720px) {
  .a-sb { position: fixed; left: -254px; top: 0; bottom: 0; height: 100vh; z-index: 200; transition: left .28s; }
  .a-sb.on { left: 0; }
  .a-hbg { display: flex; }
  .a-main { padding: 10px; }
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
}

/* â”€â”€ STATS â”€â”€ */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 860px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.sc-card { background: var(--card); border-radius: var(--r); padding: 13px 15px; border: 1px solid var(--border); box-shadow: var(--sh); position: relative; overflow: hidden; }
.sc-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.sc-card.bl::after { background: var(--primary); }
.sc-card.gn::after { background: var(--success); }
.sc-card.am::after { background: var(--accent); }
.sc-card.pu::after { background: var(--pending); }

.sl { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 5px; }
.sv { font-size: 25px; font-weight: 800; font-family: 'DM Mono', monospace; }
.ss { font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* â”€â”€ CARD â”€â”€ */
.card { background: var(--card); border-radius: var(--rl); border: 1px solid var(--border); box-shadow: var(--sh); overflow: hidden; margin-bottom: 14px; }
.ch { padding: 12px 15px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ch h3 { font-size: 13.5px; font-weight: 700; flex: 1; min-width: 0; }
.cb { padding: 15px; }

/* â”€â”€ TABLE â”€â”€ */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
thead th { background: var(--light); padding: 8px 11px; font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; text-align: left; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border: none; }
tbody tr:hover { background: var(--light); }
tbody td { padding: 9px 11px; font-size: 13px; vertical-align: middle; }

/* â”€â”€ BADGES â”€â”€ */
.bd { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.bsg { background: var(--sbg); color: var(--stx); }
.bdg { background: var(--dbg); color: var(--dtx); }
.bwg { background: var(--wbg); color: var(--wtx); }
.bpg { background: var(--pbg); color: var(--ptx); }
.big { background: #dbeafe; color: #1e40af; }

/* â”€â”€ BUTTONS â”€â”€ */
.btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 15px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all .18s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.bp { background: var(--primary); color: #fff; }
.bp:hover { background: var(--primary-l); }
.bg_ { background: var(--success); color: #fff; }
.bg_:hover { background: #0b8a5f; }
.bd_ { background: var(--danger); color: #fff; }
.bd_:hover { background: #b91c1c; }
.bo { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.bo:hover { background: var(--primary); color: #fff; }
.bgh { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.bgh:hover { background: var(--light); }
.ba { background: var(--accent); color: var(--primary-d); }
.bsm { padding: 5px 10px; font-size: 11.5px; }
.bxs { padding: 4px 8px; font-size: 11px; }

/* â”€â”€ FORM â”€â”€ */
.fg { margin-bottom: 13px; }
.fg label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 5px; }
.fi { width: 100%; padding: 10px 13px; border: 1.5px solid var(--border); border-radius: 9px; font-size: 14px; background: #fff; color: var(--text); transition: border-color .2s; }
.fi:focus { outline: none; border-color: var(--primary); }
select.fi { cursor: pointer; }
textarea.fi { resize: vertical; min-height: 70px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

/* â”€â”€ PASSWORD TOGGLE â”€â”€ */
.pw-wrap { position: relative; }
.pw-wrap .fi { padding-right: 42px; }
.pw-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all .15s;
  user-select: none;
}
.pw-eye:hover { background: var(--light); color: var(--primary); border-color: var(--primary); }
.pw-eye:active { transform: translateY(-50%) scale(.95); }

/* â”€â”€ SEARCH â”€â”€ */
.sb { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--border); border-radius: 10px; padding: 8px 13px; margin-bottom: 11px; }
.sb input { border: none; background: transparent; flex: 1; font-size: 13.5px; font-family: inherit; color: var(--text); min-width: 0; }
.sb input:focus { outline: none; }
.sb span { font-size: 15px; color: var(--muted); flex-shrink: 0; }

/* â”€â”€ MODAL â”€â”€ */
.mo { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 999; display: none; align-items: flex-end; justify-content: center; backdrop-filter: blur(3px); }
.mo.on { display: flex; }
@media (min-width: 600px) { .mo { align-items: center; } }
.modal { background: var(--card); border-radius: 22px 22px 0 0; width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto; animation: slideUp .28s; }
@media (min-width: 600px) { .modal { border-radius: var(--rxl); max-height: 88vh; } }
.mh { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 9px; position: sticky; top: 0; background: var(--card); z-index: 1; }
.mh h3 { font-size: 15px; font-weight: 700; flex: 1; }
.mc_ { width: 27px; height: 27px; border-radius: 7px; border: 1px solid var(--border); background: transparent; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mb { padding: 18px; }
.mf { padding: 13px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* â”€â”€ UPLOAD â”€â”€ */
.uz { border: 2px dashed var(--border); border-radius: 12px; padding: 26px 14px; text-align: center; cursor: pointer; transition: all .2s; background: var(--light); }
.uz:hover, .uz.dg { border-color: var(--primary); background: #eef2ff; }
.uz-ic { font-size: 30px; margin-bottom: 7px; }
.uz p { font-size: 13px; color: var(--muted); }
.up-ok { margin-top: 9px; padding: 10px 13px; background: var(--sbg); border-radius: 8px; display: flex; align-items: center; gap: 8px; }
.up-ok span { font-size: 12px; color: var(--stx); font-weight: 600; }
.up-wn { margin-top: 9px; padding: 10px 13px; background: var(--dbg); border-radius: 8px; }
.up-wn p { font-size: 12px; color: var(--dtx); font-weight: 600; }

/* â”€â”€ STEPS â”€â”€ */
.steps { display: flex; align-items: flex-start; margin-bottom: 20px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; position: relative; }
.step::after { content: ''; position: absolute; top: 11px; left: calc(50% + 13px); right: calc(-50% + 13px); height: 2px; background: var(--border); }
.step:last-child::after { display: none; }
.spc { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); background: var(--card); display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 700; z-index: 1; transition: all .28s; }
.step.dn .spc { background: var(--success); border-color: var(--success); color: #fff; }
.step.ac .spc { background: var(--primary); border-color: var(--primary); color: #fff; }
.slb { font-size: 9.5px; color: var(--muted); text-align: center; font-weight: 600; line-height: 1.3; }
.step.ac .slb { color: var(--primary); }

/* â”€â”€ WP CARDS â”€â”€ */
.wpl { display: flex; flex-direction: column; gap: 9px; }
.wpc { background: var(--card); border-radius: var(--rl); border: 1.5px solid var(--border); padding: 13px; cursor: pointer; transition: all .18s; display: flex; align-items: flex-start; gap: 11px; box-shadow: var(--sh); }
.wpc:active { transform: scale(.99); }
.wpc.sel { border-color: var(--primary); background: #f0f7ff; }
.wpr { width: 19px; height: 19px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; margin-top: 2px; transition: all .2s; }
.wpc.sel .wpr { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px #fff; }
.wpi { flex: 1; min-width: 0; }
.wpn { font-size: 14px; font-weight: 700; }
.wpo { font-size: 11px; color: var(--muted); font-family: 'DM Mono', monospace; margin-top: 1px; }
.wpd { font-size: 11px; background: var(--light); color: var(--muted); display: inline-block; padding: 2px 7px; border-radius: 4px; margin-top: 4px; border: 1px solid var(--border); }
.wpa { font-size: 13px; font-weight: 700; color: var(--primary); font-family: 'DM Mono', monospace; margin-top: 4px; }

/* â”€â”€ REKAP â”€â”€ */
.rg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; padding: 10px; }
@media (min-width: 540px) { .rg { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .rg { grid-template-columns: repeat(4, 1fr); } }

.dc { background: var(--light); border: 1px solid var(--border); border-radius: var(--r); padding: 12px; }
.dn_ { font-size: 12.5px; font-weight: 700; margin-bottom: 7px; color: var(--primary-d); }
.bw { background: var(--border); border-radius: 3px; height: 6px; overflow: hidden; margin-bottom: 5px; }
.bf { height: 100%; border-radius: 3px; transition: width 1s; }
.ds { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); }
.dp { text-align: right; font-size: 11px; font-weight: 700; margin-top: 2px; }

/* â”€â”€ IFRAME â”€â”€ */
.ifw { border-radius: 11px; overflow: hidden; border: 2px solid var(--border); }
.ifb { background: #f1f3f5; padding: 7px 11px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--border); }
.ifd { display: flex; gap: 4px; }
.ifd span { width: 8px; height: 8px; border-radius: 50%; }
.d1 { background: #ff5f57; }
.d2 { background: #ffbd2e; }
.d3 { background: #28ca41; }
.ifu { flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 3px 9px; font-size: 10.5px; color: var(--muted); font-family: 'DM Mono', monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pif { width: 100%; height: 400px; border: none; display: block; }
@media (min-width: 600px) { .pif { height: 460px; } }

/* â”€â”€ ANIMATIONS â”€â”€ */
@keyframes slideUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pp { 0%,100% { box-shadow: 0 0 0 0 rgba(124,58,237,.4); } 50% { box-shadow: 0 0 0 7px rgba(124,58,237,0); } }
.spin { animation: spin 2s linear infinite; display: inline-block; }
.pp { animation: pp 1.5s ease-in-out infinite; border-radius: 20px; }

/* â”€â”€ TOAST â”€â”€ */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(70px); background: var(--primary-d); color: #fff; padding: 10px 18px; border-radius: 28px; font-size: 13px; font-weight: 600; z-index: 9999; opacity: 0; transition: all .28s; white-space: nowrap; max-width: calc(100vw - 28px); box-shadow: var(--shl); }
.toast.on { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.ok { background: var(--success); }
.toast.er { background: var(--danger); }

/* â”€â”€ PWA INSTALL BANNER â”€â”€ */
.pwa-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 9998; padding: 14px 16px; background: var(--card); color: var(--text); border-radius: 0 0 18px 18px; box-shadow: 0 6px 24px rgba(0,0,0,.18); animation: slideDownBanner .4s ease-out; border-top: 4px solid var(--primary); }
@keyframes slideDownBanner { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.pwa-banner-content { display: flex; align-items: center; gap: 8px; max-width: 600px; margin: 0 auto; flex-wrap: nowrap; }
.pwa-banner .btn { font-size: 12.5px; padding: 8px 16px; font-weight: 700; flex-shrink: 0; }
.pwa-banner #pwa-dismiss-btn { background: var(--light); color: var(--muted); border: 1px solid var(--border); }
.pwa-banner #pwa-dismiss-btn:hover { background: var(--border); }
.pwa-banner #pwa-install-btn { background: var(--primary); color: #fff; border: none; }
.pwa-banner #pwa-install-btn:hover { background: var(--primary-l); }

/* â”€â”€ PWA INSTALL BUTTON (toolbar) â”€â”€ */
.pwa-install-btn {
  margin-left: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-l));
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(26,82,118,.25);
  transition: all .2s;
}
.pwa-install-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(26,82,118,.35); }
.pwa-install-btn:active { transform: translateY(0); }

/* â”€â”€ PRINT â”€â”€ */
@media print {
  .a-sb, .a-tb, .no-print, .sb-ov, #mnotif { display: none !important; }
  .a-main { padding: 0; }
  .ap { display: block !important; }
  .ap:not(.print-target) { display: none !important; }
  #s-admin { display: block !important; }
  #s-admin .sc.on { display: flex !important; }
}

/* â”€â”€ UTILS â”€â”€ */
.mn { font-family: 'DM Mono', monospace; }
.mu { color: var(--muted); }
.sm { font-size: 12px; }
.b7 { font-weight: 700; }
.mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }

.ir { background: var(--light); border-radius: 9px; padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; border: 1px solid var(--border); }
.ii span { font-size: 10.5px; color: var(--muted); display: block; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.ii p { font-size: 13.5px; font-weight: 700; margin-top: 2px; }
.dv { height: 1px; background: var(--border); margin: 12px 0; }

/* â”€â”€ NOTIFICATION PANEL â”€â”€ */
#mnotif {
  position: fixed;
  top: 58px;
  right: 10px;
  width: 320px;
  max-height: 400px;
  background: var(--card);
  border-radius: var(--rl);
  box-shadow: var(--shl);
  z-index: 201;
  overflow: hidden;
  display: none;
}
#mnotif.on { display: block; }
.nhdr { padding: 12px 15px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.nhdr h4 { font-size: 13px; font-weight: 700; }
.nlist { max-height: 340px; overflow-y: auto; }
.nitem { padding: 10px 15px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 10px; cursor: pointer; transition: background .15s; }
.nitem:hover { background: var(--light); }
.nitem .ni { font-size: 16px; flex-shrink: 0; }
.nitem .nt { flex: 1; }
.nitem .nt p { font-size: 12px; font-weight: 600; }
.nitem .nt span { font-size: 10px; color: var(--muted); }
.nempty { padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }

/* â”€â”€ MODAL DETAIL WP â”€â”€ */
#mw-detail .modal { max-width: 480px; }
.wd-section { margin-bottom: 14px; }
.wd-section label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 4px; }
.wd-section p { font-size: 14px; font-weight: 600; }
.wd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wd-divider { height: 1px; background: var(--border); margin: 12px 0; }

/* â”€â”€ PRINT REKAP â”€â”€ */
.rekap-header { text-align: center; margin-bottom: 16px; }
.rekap-header h1 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.rekap-header p { font-size: 11px; color: var(--muted); }
.rekap-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; padding: 10px 12px; background: var(--light); border-radius: 8px; border: 1px solid var(--border); }
.rekap-filter select, .rekap-filter input { border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: 12px; background: #fff; }
.rekap-summary { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.rekap-summary .rs-item { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; flex: 1; min-width: 100px; text-align: center; }
.rekap-summary .rs-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.rekap-summary .rs-value { font-size: 18px; font-weight: 800; font-family: 'DM Mono', monospace; color: var(--primary); }

/* â”€â”€ IMPORT AREA â”€â”€ */
.import-zone { border: 2px dashed var(--primary); border-radius: 12px; padding: 30px; text-align: center; background: #f0f7ff; transition: all .2s; cursor: pointer; }
.import-zone:hover { background: #e0edff; border-color: var(--primary-l); }
.import-zone .iz-icon { font-size: 40px; margin-bottom: 10px; }
.import-zone p { font-size: 13px; color: var(--muted); }
.import-zone .iz-hint { font-size: 11px; color: var(--primary); margin-top: 8px; font-weight: 600; }
.import-result { margin-top: 12px; }
.import-result .ir-success { background: var(--sbg); border: 1px solid var(--success); border-radius: 8px; padding: 12px; margin-bottom: 8px; }
.import-result .ir-error { background: var(--dbg); border: 1px solid var(--danger); border-radius: 8px; padding: 12px; max-height: 120px; overflow-y: auto; font-size: 12px; }

/* â”€â”€ CONFIRM DIALOG â”€â”€ */
.confirm-body { text-align: center; padding: 20px 0; }
.confirm-body .cf-icon { font-size: 48px; margin-bottom: 12px; }
.confirm-body .cf-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.confirm-body .cf-text { font-size: 13px; color: var(--muted); }
.confirm-body input { width: 100%; margin-top: 12px; }
/* ----------------------------------------------------------------
   SPLASHSCREEN — Professional loading screen with smooth transitions
   ---------------------------------------------------------------- */

.splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #0e2f44 0%, #1a5276 45%, #2471a3 100%);
  overflow: hidden;
  transition: clip-path 700ms cubic-bezier(0.65, 0, 0.35, 1),
              opacity 400ms ease;
  clip-path: circle(150% at 50% 50%);
  will-change: clip-path, opacity;
}

.splash.is-hiding {
  clip-path: circle(0% at 50% 50%);
  opacity: 0;
  pointer-events: none;
}

.splash.is-done {
  display: none;
}

/* -- Background ambient orbs -- */
.splash-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.splash-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  animation: splashOrbFade 800ms ease-out forwards;
}

.splash-orb-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(240, 165, 0, 0.45), transparent 70%);
  top: -80px;
  right: -60px;
  animation-delay: 0ms;
}

.splash-orb-2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(36, 113, 163, 0.55), transparent 70%);
  bottom: -60px;
  left: -50px;
  animation-delay: 150ms;
}

.splash-orb-3 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 300ms;
}

@keyframes splashOrbFade {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

.splash-orb-1 { animation-name: splashOrbFade1; }
.splash-orb-2 { animation-name: splashOrbFade2; }
.splash-orb-3 { animation-name: splashOrbFade3; }

@keyframes splashOrbFade1 {
  from { opacity: 0; transform: scale(0.6) translate(40px, -40px); }
  to   { opacity: 1; transform: scale(1) translate(0, 0); }
}
@keyframes splashOrbFade2 {
  from { opacity: 0; transform: scale(0.6) translate(-40px, 40px); }
  to   { opacity: 1; transform: scale(1) translate(0, 0); }
}
@keyframes splashOrbFade3 {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  to   { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
}

.splash-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0;
  animation: splashGridFade 900ms ease-out 200ms forwards;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
}

@keyframes splashGridFade {
  to { opacity: 1; }
}

/* -- Inner content container -- */
.splash-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  max-width: 480px;
  width: 100%;
  color: #fff;
}

/* -- Logo with pulsing rings -- */
.splash-logo-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  opacity: 0;
  transform: scale(0.4);
  animation: splashLogoIn 900ms cubic-bezier(0.34, 1.56, 0.64, 1) 150ms forwards;
}

@keyframes splashLogoIn {
  0%   { opacity: 0; transform: scale(0.4) rotate(-15deg); }
  60%  { opacity: 1; transform: scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.splash-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(240, 165, 0, 0.5);
  opacity: 0;
  animation: splashRingPulse 2.4s ease-out 800ms infinite;
}

.splash-ring-2 {
  animation-delay: 1.4s;
  border-color: rgba(255, 255, 255, 0.35);
}

@keyframes splashRingPulse {
  0%   { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.splash-logo {
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.35),
    0 0 0 6px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.splash-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.splash-logo-fallback {
  font-size: 48px;
  line-height: 1;
}

/* -- Title (word-by-word reveal) -- */
.splash-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.splash-title-word,
.splash-title-accent {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: splashWordIn 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-title-word:nth-child(1) { animation-delay: 700ms; }
.splash-title-word:nth-child(2) { animation-delay: 820ms; }
.splash-title-accent              { animation-delay: 940ms; }

.splash-title-accent {
  background: linear-gradient(135deg, #ffd166 0%, #f0a500 50%, #ff9f1c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
  padding: 0 4px;
}

.splash-title-accent::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f0a500, transparent);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  animation: splashUnderline 700ms cubic-bezier(0.65, 0, 0.35, 1) 1300ms forwards;
}

@keyframes splashWordIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes splashUnderline {
  to { opacity: 1; transform: scaleX(1); }
}

/* -- Subtitles -- */
.splash-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 4px;
  opacity: 0;
  transform: translateY(10px);
  animation: splashSubIn 600ms cubic-bezier(0.16, 1, 0.3, 1) 1100ms forwards;
}

.splash-subtitle-2 {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 28px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.2px;
  opacity: 0;
  transform: translateY(10px);
  animation: splashSubIn 600ms cubic-bezier(0.16, 1, 0.3, 1) 1250ms forwards;
}

@keyframes splashSubIn {
  to { opacity: 1; transform: translateY(0); }
}

/* -- Progress bar -- */
.splash-progress {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
  opacity: 0;
  animation: splashSubIn 500ms ease-out 1350ms forwards;
}

.splash-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f0a500 0%, #ffd166 50%, #fff 100%);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(240, 165, 0, 0.6);
  /* Smooth, deliberate 0?100% fill. Ends at 1400ms delay + 4500ms duration
     = 5900ms, leaving a 600ms "100% reached" buffer before splash exits. */
  animation: splashProgressFill 4500ms cubic-bezier(0.4, 0, 0.2, 1) 1400ms forwards;
}

@keyframes splashProgressFill {
  0%   { width: 0%; }
  100% { width: 100%; }
}

/* -- Loading dots -- */
.splash-dots {
  display: flex;
  gap: 7px;
  opacity: 0;
  animation: splashSubIn 400ms ease-out 1500ms forwards;
}

.splash-dots span {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: splashDotBounce 1.2s ease-in-out infinite;
}

.splash-dots span:nth-child(1) { animation-delay: 0s; }
.splash-dots span:nth-child(2) { animation-delay: 0.15s; }
.splash-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes splashDotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40%           { transform: translateY(-7px); opacity: 1; }
}

/* -- Reduced motion: respect user preference -- */
@media (prefers-reduced-motion: reduce) {
  .splash { transition: opacity 200ms ease; }
  .splash-orb,
  .splash-grid,
  .splash-logo-wrap,
  .splash-title-word,
  .splash-title-accent,
  .splash-title-accent::after,
  .splash-subtitle,
  .splash-subtitle-2,
  .splash-progress,
  .splash-dots {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .splash-progress-bar { width: 100% !important; }
  .splash-dots span { animation: none; }
  .splash-ring { display: none; }
}

/* -- Small screens -- */
@media (max-width: 480px) {
  .splash-title { font-size: 22px; gap: 6px; }
  .splash-logo-wrap { width: 104px; height: 104px; margin-bottom: 22px; }
  .splash-logo { width: 84px; height: 84px; border-radius: 22px; }
  .splash-logo img { width: 62px; height: 62px; }
  .splash-progress { width: 180px; }
}

/* =====================================================================
   REFACTORED DESIGN SYSTEM (additive, non-breaking)
   Class-class di bawah ini adalah alias deskriptif dari class lama.
   Class lama (.bp, .bg_, .bgh, .bd, .bsg, dll) TETAP BEKERJA.
   Gunakan class baru untuk kode baru.
   ===================================================================== */

/* -- Semantic color tokens (standar: --color-role-strength) --
   Alias opsional untuk --success/--warning/--danger/--primary/--accent.
   Token baru ini konsisten: semua nama pakai prefix --color-, lalu role
   (primary, success, warning, danger, pending, info, accent, neutral),
   lalu opsional strength (bg, soft, strong, fg, muted). */
:root {
  --color-primary:        var(--primary);
  --color-primary-soft:   var(--primary-l);
  --color-primary-strong: var(--primary-d);

  --color-accent: var(--accent);

  --color-success-bg:   var(--sbg);
  --color-success-fg:   var(--stx);
  --color-success:      var(--success);

  --color-warning-bg:   var(--wbg);
  --color-warning-fg:   var(--wtx);
  --color-warning:      var(--warning);

  --color-danger-bg:    var(--dbg);
  --color-danger-fg:    var(--dtx);
  --color-danger:       var(--danger);

  --color-pending-bg:   var(--pbg);
  --color-pending-fg:   var(--ptx);
  --color-pending:      var(--pending);

  --color-info-bg:      #dbeafe;
  --color-info-fg:      #1e40af;

  --color-surface:      var(--card);
  --color-bg:           var(--bg);
  --color-bg-subtle:    var(--light);
  --color-border:       var(--border);
  --color-text:         var(--text);
  --color-text-muted:   var(--muted);
}

/* -- BEM Button aliases -- */
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-l); }
.btn--success { background: var(--success); color: #fff; }
.btn--success:hover { background: #0b8a5f; }
.btn--danger  { background: var(--danger); color: #fff; }
.btn--danger:hover  { background: #b91c1c; }
.btn--ghost  { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--light); }
.btn--outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--accent { background: var(--accent); color: var(--primary-d); }
.btn--sm { padding: 5px 10px; font-size: 11.5px; }
.btn--xs { padding: 4px 8px; font-size: 11px; }

/* -- BEM Badge aliases -- */
.bd--success { background: var(--sbg); color: var(--stx); }
.bd--danger  { background: var(--dbg); color: var(--dtx); }
.bd--warning { background: var(--wbg); color: var(--wtx); }
.bd--pending { background: var(--pbg); color: var(--ptx); }
.bd--info    { background: #dbeafe; color: #1e40af; }

/* -- Modal aliases (BEM-ish) -- */
.modal__close { /* alias untuk .mc_ */
  width: 27px; height: 27px; border-radius: 7px; border: 1px solid var(--border);
  background: transparent; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.modal__header { padding: 16px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 9px; position: sticky; top: 0;
  background: var(--card); z-index: 1; }
.modal__header h3 { font-size: 15px; font-weight: 700; flex: 1; }
.modal__body { padding: 18px; }
.modal__footer { padding: 13px 18px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.modal--reject { /* spesifik untuk modal Tolak Pembayaran, dengan header merah */ }
.modal--reject .modal__header { color: var(--dtx); }

/* =====================================================================
   COMPONENT CLASSES (pindahan dari inline style)
   ===================================================================== */

/* -- Logo image (override untuk .h-logo & .sb-bi yang aslinya berisi emoji) -- */
.h-logo-img, .sb-bi-img {
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Varian image di sidebar: perkecil max ke 30px (kotak 34px - padding 2px*2 = 30px ruang dalam) */
.sb-bi-img {
  max-width: 30px;
  max-height: 30px;
}

/* -- Hero title (pengganti H1 duplikat di home) -- */
.hero-title {
  font-size: 26px; font-weight: 800; letter-spacing: -.5px;
  color: #fff; margin: 0;
}

/* -- Sidebar brand title (pengganti H1 duplikat di sidebar) -- */
.sb-title {
  font-size: 14.5px; font-weight: 800; line-height: 1.2; color: #fff; margin: 0;
}
.sb-subtitle {
  font-size: 9.5px; color: rgba(255,255,255,.55); margin-top: 1px;
}

/* -- Notifikasi button (top bar admin) -- */
.notif-btn {
  position: relative; width: 34px; height: 34px;
  background: var(--light); border: 1px solid var(--border);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; padding: 0; color: var(--text);
  transition: background .15s;
}
.notif-btn:hover { background: #fff; }
.notif-dot {
  position: absolute; top: 5px; right: 5px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--danger);
  border: 2px solid var(--card); display: none;
}
.notif-dot[data-show="1"] { display: block; }

/* -- PWA install banner -- */
.pwa-banner-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
}
.pwa-banner-text {
  flex: 1; margin-left: 12px; min-width: 0;
}
.pwa-banner-title {
  font-weight: 700; font-size: 14px; color: var(--text); margin: 0;
}
.pwa-banner-sub {
  font-size: 12px; color: var(--muted); margin-top: 2px;
}

/* -- Bukti Pembayaran modal -- */
.proof-info {
  background: var(--light); border-radius: 12px; padding: 22px; margin-bottom: 12px;
}
.proof-info-icon { font-size: 38px; margin-bottom: 9px; }
.proof-info-name { font-size: 12.5px; word-break: break-all; }
.proof-info-nop { margin-top: 8px; }

/* -- Danger zone action rows -- */
.danger-action {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; flex-wrap: wrap;
}
.danger-action-text { flex: 1; min-width: 220px; }
.danger-action-title { font-weight: 700; font-size: 13.5px; margin: 0; }
.danger-action-desc { margin-top: 3px; }
.danger-action-grid { display: grid; gap: 11px; }
.danger-action-card {
  border: 1px solid var(--border); border-radius: 9px; padding: 13px; background: var(--light);
}

/* -- Modal Tolak Pembayaran (reject target highlight) -- */
.reject-target {
  background: var(--light); border-radius: 9px; padding: 14px;
  border: 1px solid var(--border);
}

/* -- Danger callout box -- */
.danger-callout {
  background: var(--dbg); border-radius: 8px; padding: 11px 14px;
  margin-bottom: 14px; border-left: 3px solid var(--danger);
}
.danger-callout p { font-size: 12.5px; color: var(--dtx); line-height: 1.6; }

/* -- Generic card with danger border -- */
.card--danger { border: 1.5px solid var(--danger); }
.card--danger .ch { background: linear-gradient(135deg, var(--dbg), #fff); }
.card--danger .ch h3 { color: var(--danger); }

/* -- Subdued read-only input -- */
.fi[readonly], .fi:disabled {
  background: var(--light); cursor: default; color: var(--muted);
}

/* =====================================================================
   UTILITY CLASSES (untuk mengurangi inline style berulang)
   Skala spacing 4px-based: 0=0, 1=4, 2=8, 3=12, 4=16, 5=20, 6=24, 8=32, 10=40
   ===================================================================== */

:root {
  --space-0: 0;     --space-1: 4px;   --space-2: 8px;   --space-3: 12px;
  --space-4: 16px;  --space-5: 20px;  --space-6: 24px;  --space-7: 28px;
  --space-8: 32px;  --space-9: 36px;  --space-10: 40px; --space-12: 48px;
}

/* -- Show/hide (ganti style.display = 'block'/'none') -- */
.is-hidden { display: none !important; }
.is-shown  { display: block !important; }
.is-flex   { display: flex !important; }
.is-grid   { display: grid !important; }

/* -- Display -- */
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.inline-flex { display: inline-flex !important; }

/* -- Flex helpers -- */
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-1 { flex: 1 !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-end { justify-content: flex-end !important; }
.gap-1 { gap: var(--space-1) !important; }
.gap-2 { gap: var(--space-2) !important; }
.gap-3 { gap: var(--space-3) !important; }
.gap-4 { gap: var(--space-4) !important; }

/* -- Margin (mt-x, mb-x, mx-x, my-x, m-x) -- */
.mt-0 { margin-top: 0 !important; }    .mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }    .mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }    .mt-5 { margin-top: var(--space-5) !important; }
.mt-6 { margin-top: var(--space-6) !important; }    .mt-7 { margin-top: var(--space-7) !important; }
.mt-8 { margin-top: var(--space-8) !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; } .mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; } .mb-5 { margin-bottom: var(--space-5) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; } .mb-7 { margin-bottom: var(--space-7) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.mx-2 { margin-left: var(--space-2) !important; margin-right: var(--space-2) !important; }
.my-2 { margin-top: var(--space-2) !important; margin-bottom: var(--space-2) !important; }
.my-3 { margin-top: var(--space-3) !important; margin-bottom: var(--space-3) !important; }
.my-4 { margin-top: var(--space-4) !important; margin-bottom: var(--space-4) !important; }

/* -- Padding (pt-x, pb-x, px-x, py-x) -- */
.pt-2 { padding-top: var(--space-2) !important; }
.pt-3 { padding-top: var(--space-3) !important; }
.pt-4 { padding-top: var(--space-4) !important; }
.pb-2 { padding-bottom: var(--space-2) !important; }
.pb-3 { padding-bottom: var(--space-3) !important; }
.pb-4 { padding-bottom: var(--space-4) !important; }
.px-2 { padding-left: var(--space-2) !important; padding-right: var(--space-2) !important; }
.px-3 { padding-left: var(--space-3) !important; padding-right: var(--space-3) !important; }
.px-4 { padding-left: var(--space-4) !important; padding-right: var(--space-4) !important; }
.py-2 { padding-top: var(--space-2) !important; padding-bottom: var(--space-2) !important; }
.py-3 { padding-top: var(--space-3) !important; padding-bottom: var(--space-3) !important; }
.py-4 { padding-top: var(--space-4) !important; padding-bottom: var(--space-4) !important; }

/* -- Text -- */
.muted { color: var(--color-text-muted) !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.text-bold { font-weight: 700 !important; }
.text-mono { font-family: 'DM Mono', monospace !important; }
.text-xs { font-size: 11px !important; }
.text-sm { font-size: 12px !important; }
.text-md { font-size: 13px !important; }
.text-lg { font-size: 15px !important; }
.text-xl { font-size: 18px !important; }
.text-truncate {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* -- Background -- */
.bg-light { background: var(--color-bg-subtle) !important; }
.bg-card { background: var(--color-surface) !important; }
.bg-danger-soft { background: var(--color-danger-bg) !important; }
.bg-success-soft { background: var(--color-success-bg) !important; }

/* -- Border & radius -- */
.border { border: 1px solid var(--color-border) !important; }
.border-danger { border-color: var(--color-danger) !important; }
.rounded { border-radius: 8px !important; }
.rounded-lg { border-radius: 12px !important; }
.rounded-xl { border-radius: 16px !important; }
.rounded-full { border-radius: 9999px !important; }

/* -- Width / height helpers -- */
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.min-w-0 { min-width: 0 !important; }
.max-w-md { max-width: 480px !important; }

/* -- Misc -- */
.cursor-pointer { cursor: pointer !important; }
.shrink-0 { flex-shrink: 0 !important; }
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-y-auto { overflow-y: auto !important; }
.no-print { /* tetap didefine di @media print, class ini untuk flag */ }

/* -- Read-only attribute indicator -- */
.fi[readonly] { background: var(--light); }

/* =====================================================================
   A11Y: visually hidden tapi tetap accessible untuk screen reader
   ===================================================================== */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* =====================================================================
   ICON SYSTEM (Lucide-style, scalable, konsisten lintas-OS)
   Pakai: <svg class="icon" aria-hidden="true"><use href="#i-NAMA"/></svg>
   ===================================================================== */
.icon {
  display: inline-block; width: 1em; height: 1em;
  vertical-align: -0.125em; fill: none;
  stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.icon--sm { width: 14px; height: 14px; }
.icon--md { width: 18px; height: 18px; }
.icon--lg { width: 22px; height: 22px; }
.icon--xl { width: 28px; height: 28px; }
.icon--2xl { width: 36px; height: 36px; }
.icon--3xl { width: 48px; height: 48px; }

/* -- Icon pada menu card (warga home) -- */
.mc .mi-svg {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin: 0 auto 8px;
  border-radius: 10px; background: var(--color-bg-subtle);
  color: var(--color-primary);
  transition: all .2s;
}
.mc.hi .mi-svg { background: var(--color-primary); color: #fff; }
.mc .mi-svg .icon { width: 20px; height: 20px; }

/* -- Icon pada sidebar item -- */
.sb-it .si-svg {
  width: 18px; height: 18px; display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0; margin-right: 2px;
}
.sb-it .si-svg .icon { width: 16px; height: 16px; }
.sb-it.on .si-svg { color: var(--color-primary-d); }

/* -- Icon pada card header (admin pages) -- */
.ch .ch-icon { display: inline-flex; align-items: center; justify-content: center; }
.ch .ch-icon .icon { width: 16px; height: 16px; }

/* -- Icon pada login screen -- */
.lc-top .li-svg {
  width: 58px; height: 58px; background: var(--color-primary);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; color: #fff;
}
.lc-top .li-svg .icon { width: 26px; height: 26px; }

