:root {
  --y: #FFC800;
  --k: #111111;
  --g: #555555;
  --line: #dddddd;
  --ok: #1a7f37;
  --bad: #b42318;
  --blue: #1d4ed8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--k);
  background: #ffffff;
}
button, input, textarea, select { font-family: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--k); outline-offset: 2px; }

#app { max-width: 480px; margin: 0 auto; overflow-x: clip; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.bar { height: 8px; background: var(--y); flex-shrink: 0; }
.pad { padding: 16px 20px 0; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.grow { flex: 1; }
.col { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; }
.between { justify-content: space-between; }
.muted { color: var(--g); }
.small { font-size: 12px; }
.hide { display: none !important; }

/* header */
.hdr { display: flex; align-items: center; gap: 10px; }
.hdr h1 { margin: 0; font-size: 22px; line-height: 1.05; font-weight: 800; letter-spacing: -0.01em; }
.ul { width: 40px; height: 5px; background: var(--y); margin-top: 4px; }
.back {
  width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--k); border-radius: 10px; cursor: pointer; color: var(--k); text-decoration: none;
}
.hdrmain { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 4px; }
.logo { margin: 0; font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.ul.big { width: 56px; height: 6px; margin-top: 6px; }
.sub { font-size: 14px; color: var(--g); margin-top: 8px; max-width: 200px; line-height: 1.3; }
.hdrright { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 132px; }

/* tombol */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 16px;
  border: 2px solid var(--k); border-radius: 12px; background: #fff; color: var(--k);
  font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none; text-align: center;
}
.btn.y { background: var(--y); }
.btn.k { background: var(--k); color: #fff; }
.btn.sh { box-shadow: 4px 4px 0 var(--k); }
.btn.sm { height: 44px; font-size: 14px; font-weight: 700; }
.btn.out { height: 44px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.wide { width: 100%; }
.btnrow { display: flex; gap: 10px; }
.btnrow .btn { flex: 1; }
.btnrow .btn.two { flex: 2; }
.tag { font-size: 11px; font-weight: 700; background: var(--k); color: #fff; padding: 3px 8px; border-radius: 999px; }
.btn.k .tag { background: var(--y); color: var(--k); }
.btn.y .tag { background: var(--k); color: #fff; }
.rel { position: relative; }
.badge {
  position: absolute; top: -10px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--y); color: var(--k); border: 2px solid var(--k); font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.verif { min-height: 52px; padding: 6px 12px; border-radius: 14px; border-width: 3px; font-size: 14px; font-weight: 800; line-height: 1.2; background: #fff; color: var(--k); width: 100%; white-space: nowrap; }
.hdrright:has(.tiles2) { min-width: 190px; }
.tiles2 { display: flex; gap: 10px; }
.tilebtn {
  flex: 1; height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--k); color: #fff; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none;
  font-family: inherit; font-size: 12px; font-weight: 700; padding: 0 4px;
}
.tilebtn svg { width: 28px; height: 28px; }

/* kartu & menu */
.card { border: 2px solid var(--k); border-radius: 14px; overflow: hidden; background: #fff; }
.card.pd { padding: 14px; }
.menu {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 14px;
  background: #fff; border: 2px solid var(--k); border-radius: 14px; text-decoration: none; color: var(--k);
}
.menu.y { background: var(--y); }
.menu .tile { width: 44px; height: 44px; flex-shrink: 0; background: var(--y); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.menu.y .tile { background: #fff; border: 2px solid var(--k); }
.menu .tt { font-size: 16px; font-weight: 700; }
.menu .ds { font-size: 12px; color: var(--g); }
.menu.y .ds { color: var(--k); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.menus { display: flex; flex-direction: column; gap: 10px; }

.saldo { background: var(--k); color: #fff; border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; border-bottom: 6px solid var(--y); }
.saldo .lbl { font-size: 13px; font-weight: 600; color: #dddddd; }
.saldo .amt { font-size: 32px; line-height: 1.1; font-weight: 800; color: var(--y); }
.saldo .amt.na { font-size: 22px; }
.saldo .meta { font-size: 12px; color: #dddddd; }
.saldo .iuran { font-size: 12px; font-weight: 700; color: var(--y); }
.saldo.compact { padding: 12px 16px; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; border-bottom-width: 5px; }
.saldo.compact .amt { font-size: 22px; }

.info { display: flex; align-items: center; gap: 8px; background: var(--k); color: #fff; border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.info svg { flex-shrink: 0; color: var(--y); }
.warn { display: flex; gap: 8px; align-items: flex-start; border: 2px solid var(--k); background: #fff7d6; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.err { color: var(--bad); font-size: 13px; font-weight: 600; }

/* daftar */
.sec { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sec h2 { margin: 0; font-size: 18px; font-weight: 800; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--y); color: var(--k); white-space: nowrap; display: inline-block; }
.pill.pend { background: #fff; border: 2px dashed var(--k); padding: 1px 7px; }
.pill.k { background: var(--k); color: #fff; }
.pill.ok { background: var(--ok); color: #fff; }
.pill.bad { background: var(--bad); color: #fff; }
.li { display: flex; align-items: center; gap: 12px; padding: 8px 14px; min-height: 44px; border-top: 1px solid var(--line); }
.li:first-child { border-top: none; }
.li .no { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--k); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.li .nm { font-size: 15px; font-weight: 600; }
.li .kl { font-size: 12px; color: var(--g); }
.li .chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 46%; }
.empty { padding: 18px 14px; text-align: center; color: var(--g); font-size: 14px; }
.foot { padding: 10px 0 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--g); line-height: 1.4; display: flex; gap: 10px; align-items: flex-start; }
.foot svg { flex-shrink: 0; color: var(--k); }

/* form */
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld label, .lbl2 { font-size: 14px; font-weight: 700; }
.fld .top { display: flex; align-items: center; justify-content: space-between; }
.counter { font-size: 12px; color: var(--g); }
.counter.max { color: var(--bad); font-weight: 700; }
.hint { font-size: 12px; color: var(--g); }
.inp {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 2px solid var(--k); border-radius: 12px; background: #fff;
}
.inp input, .inp select { flex: 1; min-width: 0; border: none; outline: none; font-size: 15px; color: var(--k); background: transparent; height: 44px; }
.inp:focus-within { box-shadow: 0 0 0 3px var(--y); }
.inp.big input { font-size: 20px; font-weight: 700; }
.inp .pre { font-size: 18px; font-weight: 800; }
textarea.ta {
  width: 100%; padding: 12px 14px; border: 2px solid var(--k); border-radius: 12px; outline: none; font-size: 15px; color: var(--k); resize: none; line-height: 1.4; background: #fff;
}
textarea.ta:focus { box-shadow: 0 0 0 3px var(--y); }
.sugg { border: 2px solid var(--k); border-radius: 12px; overflow: hidden; }
.sugg button { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; min-height: 44px; padding: 8px 14px; border: none; border-top: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; color: var(--k); }
.sugg button:first-child { border-top: none; }
.sugg button:hover, .sugg button:focus-visible { background: var(--y); }
.sugg .nm { font-size: 14px; font-weight: 700; }
.sugg .kl { font-size: 12px; color: var(--g); }
.picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--y); border: 2px solid var(--k); border-radius: 12px; padding: 8px 14px; min-height: 48px; }
.mgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mbtn { min-height: 52px; border: 2px solid var(--k); border-radius: 10px; background: #fff; color: var(--k); font-size: 14px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; padding: 2px; }
.mbtn.on { background: #daedf4; color: #111; border-color: #b9d6e2; font-weight: 800; }
.mbtn[disabled] { cursor: not-allowed; border-color: #bbb; color: #888; background: #f4f4f4; }
.mbtn .st { font-size: 10px; font-weight: 700; }
.mbtn.paid .st { color: var(--ok); }
.total { display: flex; justify-content: space-between; align-items: center; border: 2px solid var(--k); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.total b { font-size: 16px; }
.chips-r { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 14px; border: 2px solid var(--k); border-radius: 999px; background: #fff; color: var(--k); font-size: 13px; font-weight: 700; cursor: pointer; }
.chip.on { background: var(--y); }
select.chip { padding-right: 8px; }
.ok-box { text-align: center; padding: 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ok-box .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; }

/* tabel */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.kas { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
table.kas th, table.kas td { padding: 0; border-bottom: 1px solid var(--line); border-right: 1px solid #eee; }
table.kas thead th { background: var(--k); color: #fff; font-size: 13px; font-weight: 700; height: 44px; min-width: 88px; text-align: center; }
table.kas .name { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 138px; max-width: 138px; text-align: left; padding: 8px 12px; border-right: 1px solid var(--line); }
table.kas thead .name { background: var(--k); z-index: 2; }
table.kas .name .nm { font-size: 14px; font-weight: 600; line-height: 1.2; }
table.kas .name .kl { font-size: 11px; color: var(--g); }
table.kas td.c { text-align: center; padding: 8px 0; height: 56px; vertical-align: middle; }
.ck { width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.kas[data-fit] thead th:not(.name), .kas[data-fit] td.c { width: var(--mw, 88px); min-width: var(--mw, 88px); max-width: var(--mw, 88px); }
.mini { display: block; white-space: nowrap; font-size: 10px; line-height: 1.2; color: #444; margin-top: 3px; }
.kas td.c.off { background: repeating-linear-gradient(45deg, #f3f3f3, #f3f3f3 6px, #fafafa 6px, #fafafa 12px); }
.offd { color: #999; font-weight: 700; }
.mem2 { align-items: flex-start; }
.mmlbl { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.mm { height: 36px; border: 2px solid var(--k); border-radius: 8px; padding: 0 8px; font-size: 13px; min-width: 200px; width: 100%; max-width: 240px; background: #fff; }
.col.gap6 { display: flex; flex-direction: column; gap: 6px; }
.dotp { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--y); border: 2px solid var(--k); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--g); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.ck.set { background: var(--blue); }
.legend .ck { width: 18px; height: 18px; }

/* kartu event / verifikasi / riwayat */
.evcard { border: 2px solid var(--k); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.date { width: 64px; flex-shrink: 0; background: var(--y); border: 2px solid var(--k); border-radius: 12px; padding: 8px 0; text-align: center; }
.date .d { font-size: 26px; font-weight: 800; line-height: 1; }
.date .m { font-size: 10px; font-weight: 700; margin-top: 4px; text-transform: uppercase; }
.evt { font-size: 17px; font-weight: 800; line-height: 1.25; word-break: break-word; }
.evd { font-size: 14px; line-height: 1.45; color: #222; white-space: pre-wrap; word-break: break-word; }
.sep { border-top: 1px solid var(--line); padding-top: 12px; }
.exp { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); }
.exp:first-child { border-top: none; }
.exp .amt { font-size: 15px; font-weight: 800; white-space: nowrap; }
.exp.void .kp, .exp.void .amt { text-decoration: line-through; color: var(--g); }
.tabs { display: flex; gap: 8px; }
.tabs .btn { flex: 1; height: 44px; font-size: 13px; }

/* kalender */
.cal { border: 2px solid var(--k); border-radius: 14px; padding: 8px 8px 10px; }
.cal .nav { display: flex; align-items: center; justify-content: space-between; }
.cal .nav button { width: 44px; height: 44px; border: none; background: transparent; font-size: 22px; font-weight: 800; cursor: pointer; color: var(--k); }
.cal .nav button[disabled] { color: #999; cursor: not-allowed; }
.cal .wd, .cal .grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.cal .wd { font-size: 11px; font-weight: 700; color: var(--g); padding: 2px 0 4px; }
.cal .cell { height: 44px; display: flex; align-items: center; justify-content: center; }
.cal .day { width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; background: #fff; color: var(--k); font-size: 14px; font-weight: 600; cursor: pointer; padding: 0; }
.cal .day.today { border: 2px dashed var(--k); }
.cal .day.sel { background: var(--y); border: 2px solid var(--k); font-weight: 800; }
.cal .day[disabled] { color: #999; cursor: not-allowed; }

/* lain-lain */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--k); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; max-width: 90vw; z-index: 50; box-shadow: 0 4px 0 var(--y); }
.loading { padding: 60px 20px; text-align: center; color: var(--g); font-weight: 600; }
.demo { background: var(--k); color: var(--y); font-size: 12px; font-weight: 700; text-align: center; padding: 4px 8px; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; }
.kv b { font-weight: 800; }
.sect { display: flex; flex-direction: column; gap: 10px; }
.sect > h2 { margin: 0; font-size: 17px; font-weight: 800; }
.mem { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); min-height: 48px; }
.mem:first-child { border-top: none; }
.mem.off .nm { color: var(--g); text-decoration: line-through; }
.mem .nm { font-size: 14px; font-weight: 600; }
.mem .kl { font-size: 12px; color: var(--g); }
.mem .btn { height: 36px; font-size: 12px; padding: 0 10px; flex: none; }
@media (prefers-reduced-motion: no-preference) { .btn:active, .mbtn:active { transform: translateY(1px); } }
.saldo.compact .amt { white-space: nowrap; font-size: 20px; }
.saldo.compact .meta { max-width: 130px; }
.btnrow .btn { padding: 0 8px; font-size: 14px; }

/* Dompet Kas, setor, ubah / hapus / batalkan */
.btn.blue { background: var(--blue); color: #fff; }
.btn.blue.sh { box-shadow: 4px 4px 0 var(--k); }
.btn.blueo { border-color: var(--blue); color: var(--blue); }
.btn.bad { border-color: var(--bad); color: var(--bad); }
.btn.bad.k { background: var(--bad); color: #fff; }
.pill.blue { background: var(--blue); color: #fff; }
.pill.gray { background: #777; color: #fff; }
.pill.edited { background: #fff; border: 1px solid #555; color: #555; padding: 0 7px; font-size: 11px; }
.chip.blue { border-color: var(--blue); color: var(--blue); }
.chip.blue.on { background: var(--blue); color: #fff; }
.chip.gray { border-color: #777; color: #555; }
.chip.gray.on { background: #777; color: #fff; }
.dompet { border: 2px solid var(--blue); border-radius: 14px; overflow: hidden; background: #fff; }
.dompet .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.dompet .lbl { font-size: 14px; font-weight: 800; color: var(--blue); }
.dompet .meta { font-size: 12px; color: var(--g); }
.dompet .amt { font-size: 20px; font-weight: 800; white-space: nowrap; border-bottom: 4px solid var(--blue); line-height: 1.2; }
.dompet .amt.na { font-size: 14px; border-bottom-width: 0; color: var(--g); }
.dompet a.sel { color: inherit; text-decoration: none; }
.dompet .sel { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; background: #f3f3f3; border-top: 1px solid var(--k); }
.dompet .sel b { font-size: 16px; white-space: nowrap; }
.dompet.compact { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; }
.dompet.compact .lbl { font-size: 12px; }
.dompet.compact .amt { font-size: 18px; border-bottom: 0; }
.dompet.compact .meta { text-align: right; font-size: 11px; max-width: 120px; }
.acts { display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed #bbb; padding-top: 8px; margin-top: 2px; }
.acts .btn { height: 40px; }
.exp.void { background: #f3f3f3; }
.pv { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; }
.pv .pvh { font-size: 14px; font-weight: 800; }
.pv.blue .pvh { color: var(--blue); }
.decided { border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 800; color: #fff; }
.decided.ok { background: var(--ok); }
.decided.bad { background: var(--bad); }
.namerow { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.namerow:first-child { border-top: none; }
.namerow .em { font-size: 13px; color: var(--g); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sect.blue > h2 { color: var(--blue); }

.stsetor{font-weight:800;font-size:14px;margin-top:2px}.stsetor.ok{color:var(--ok)}.stsetor.bad{color:var(--bad)}.stsetor .small{font-weight:600}

.tabs{gap:6px}.tabs .btn{padding:0 4px;font-size:12px}


/* ===== menu melayang (tombol bulat 3 titik) ===== */
#app { padding-bottom: 88px; }
#toast { bottom: 88px; }
#fab { position: fixed; left: max(12px, env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; pointer-events: none; }
.fab-btn { position: relative; pointer-events: auto; width: 56px; height: 56px; border-radius: 50%; border: 0; background: #111; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: 0 4px 0 var(--y), 0 6px 16px rgba(0,0,0,.25); transition: transform .18s ease; }
.fab-btn:active { transform: scale(.92); }
.fab-btn .ic { position: absolute; display: flex; transition: opacity .18s ease, transform .28s cubic-bezier(.3,1.4,.5,1); }
.fab-btn .i-x { opacity: 0; transform: rotate(-90deg) scale(.5); }
.fab-btn.open .i-dots { opacity: 0; transform: rotate(90deg) scale(.5); }
.fab-btn.open .i-x { opacity: 1; transform: none; }
/* bar menu vertikal + takik melengkung (Floating Notch) */
.nb { --ny: -200px; position: relative; width: 56px; height: 236px; opacity: 0; transform: translateY(26px) scaleY(.5); transform-origin: 50% 100%; pointer-events: none;
  transition: opacity .2s ease, transform .38s cubic-bezier(.2,1.1,.3,1); }
#fab.open .nb { opacity: 1; transform: none; pointer-events: auto; }
.nb-bg { position: absolute; inset: 0; border-radius: 28px; background: #111; 
  -webkit-mask-image: radial-gradient(circle at 100% var(--ny), transparent 31px, #000 32px); mask-image: radial-gradient(circle at 100% var(--ny), transparent 31px, #000 32px); }
.nb-item { position: absolute; left: 0; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0; transform: translateX(-8px); transition: opacity .25s ease, transform .3s ease; -webkit-tap-highlight-color: transparent; }
#fab.open .nb-item { opacity: 1; transform: none; }
#fab.open .nb-item.cur { opacity: 0; }
.nb-item svg { width: 24px; height: 24px; }
.nb-ball { position: absolute; left: 32px; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--y); color: #111; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,.25); pointer-events: none; will-change: transform; }
.nb-ball svg { width: 24px; height: 24px; }
.nb.noball .nb-ball, .nb.noball .nb-label { opacity: 0; }
.nb-label { position: absolute; left: 8px; top: 0; writing-mode: vertical-rl; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #fff; pointer-events: none; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .nb, .nb-item, .fab-btn, .fab-btn .ic { transition: none; } }
/* ===== tema: tombol + mode gelap (usulan) ===== */
.themesw{display:flex;gap:2px;padding:3px;border-radius:999px;background:#2a2a2a;border:1px solid #444;flex-shrink:0}
.themesw button{width:34px;height:28px;border:0;border-radius:999px;background:transparent;color:#bbb;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.themesw button.on{background:var(--y);color:#111}
.saldo .row.between{align-items:center;min-height:34px}
[data-theme=dark]{--k:#f2f2f2;--g:#a6a6a6;--line:#303033;--ok:#3fb950;--bad:#f47067;--blue:#6c9cff;--bd:#4a4a50;background:#101012;color:#f2f2f2}
/* permukaan */
[data-theme=dark] .back,[data-theme=dark] .btn,[data-theme=dark] .card,[data-theme=dark] .menu,[data-theme=dark] .dompet,[data-theme=dark] .inp,[data-theme=dark] .ta,[data-theme=dark] .sugg button,[data-theme=dark] .mbtn,[data-theme=dark] .chip,[data-theme=dark] .mm,[data-theme=dark] .cal .day,[data-theme=dark] .verif,[data-theme=dark] .evcard,[data-theme=dark] table.kas .name,[data-theme=dark] .pill.edited{background:#1a1a1d}
[data-theme=dark] .card,[data-theme=dark] .menu,[data-theme=dark] .back,[data-theme=dark] .btn,[data-theme=dark] .inp,[data-theme=dark] .ta,[data-theme=dark] .sugg,[data-theme=dark] .mbtn,[data-theme=dark] .chip,[data-theme=dark] .mm,[data-theme=dark] .cal,[data-theme=dark] .total,[data-theme=dark] .evcard,[data-theme=dark] .warn{border-color:var(--bd)}
[data-theme=dark] .dompet{border-color:var(--blue)}
[data-theme=dark] .dompet .amt{border-bottom-color:var(--blue)}
[data-theme=dark] .dompet .sel{background:#232327;border-top-color:var(--bd)}
[data-theme=dark] .btn.sh{box-shadow:4px 4px 0 #5a5a60}
[data-theme=dark] .btn.blue.sh{box-shadow:4px 4px 0 #5a5a60}
[data-theme=dark] table.kas th,[data-theme=dark] table.kas td{border-right-color:#26262a}
[data-theme=dark] .sugg button{border-top-color:var(--line)}
/* elemen kuning: teks dan ikon tetap hitam */
[data-theme=dark] .btn.y,[data-theme=dark] .verif.y,[data-theme=dark] .chip.on,[data-theme=dark] .picked,[data-theme=dark] .date,[data-theme=dark] .cal .day.sel,[data-theme=dark] .badge,[data-theme=dark] .menu .tile,[data-theme=dark] .menu.y,[data-theme=dark] .pill,[data-theme=dark] .sugg button:hover{background:var(--y);color:#111;border-color:var(--y)}
[data-theme=dark] .btn.verif{background:var(--y);color:#111;border-color:var(--y)}
[data-theme=dark] .menu.y .tt,[data-theme=dark] .menu.y .ds,[data-theme=dark] .menu.y svg{color:#111}
[data-theme=dark] .menu.y .tile{background:#fff;border-color:#111;color:#111}
[data-theme=dark] .menu > svg:last-child{color:#f2f2f2}
[data-theme=dark] .menu.y > svg:last-child{color:#111}
[data-theme=dark] .badge{border-color:#101012}
[data-theme=dark] .dotp{border-color:#101012}
[data-theme=dark] .btn.y .tag{background:#111;color:#fff}
[data-theme=dark] .pill.pend{background:transparent;border:2px dashed var(--y);color:var(--y)}
[data-theme=dark] .pill.edited{background:transparent;color:#aaa;border-color:#666}
[data-theme=dark] .pill.gray{background:#666;color:#fff}
/* elemen gelap di mode terang: jadi permukaan abu gelap */
[data-theme=dark] .btn.k,[data-theme=dark] .tag,[data-theme=dark] .info,[data-theme=dark] .pill.k,[data-theme=dark] .li .no,[data-theme=dark] .tilebtn,[data-theme=dark] table.kas thead th,[data-theme=dark] table.kas thead .name{background:#2a2a2e;color:#f2f2f2}
[data-theme=dark] .tilebtn{border:1px solid var(--bd)}
[data-theme=dark] .btn.k .tag{background:var(--y);color:#111}
[data-theme=dark] #toast{background:#f2f2f2;color:#111}
[data-theme=dark] .demo{background:#000}
[data-theme=dark] .saldo{background:#1a1a1d;border:1px solid #2e2e32;border-bottom:6px solid var(--y);color:#fff}
[data-theme=dark] .saldo .lbl,[data-theme=dark] .saldo .meta{color:#c9c9c9}
[data-theme=dark] .saldo .amt,[data-theme=dark] .saldo .iuran{color:var(--y)}
[data-theme=dark] .themesw{background:#1d1d20;border-color:var(--bd)}
/* status + biru: teks gelap di atas warna terang */
[data-theme=dark] .pill.ok,[data-theme=dark] .pill.bad,[data-theme=dark] .decided,[data-theme=dark] .ok-box .ic,[data-theme=dark] .ck,[data-theme=dark] .btn.bad.k,[data-theme=dark] .btn.blue,[data-theme=dark] .pill.blue,[data-theme=dark] .chip.blue.on{color:#101012}
[data-theme=dark] .btn.blue{background:var(--blue);border-color:var(--blue)}
[data-theme=dark] .btn.bad{border-color:var(--bad);color:var(--bad)}
[data-theme=dark] .btn.bad.k{background:var(--bad);color:#101012}
[data-theme=dark] .btn.blueo{border-color:var(--blue);color:var(--blue)}
[data-theme=dark] .chip.blue{border-color:var(--blue);color:var(--blue)}
[data-theme=dark] .chip.blue.on{background:var(--blue)}
[data-theme=dark] .chip.gray{border-color:#777;color:#aaa}
[data-theme=dark] .chip.gray.on{background:#666;color:#fff}
/* lain-lain */
[data-theme=dark] .warn{background:#2b2610;border-color:var(--y)}
[data-theme=dark] .exp.void,[data-theme=dark] .kas td.c.off{background:#202023}
[data-theme=dark] .kas td.c.off{background:repeating-linear-gradient(45deg,#202023,#202023 6px,#18181a 6px,#18181a 12px)}
[data-theme=dark] .mbtn[disabled],[data-theme=dark] .mbtn.paid{background:#202023 !important;border-color:#444 !important;color:#777 !important}
[data-theme=dark] .mini{color:#aaa}
[data-theme=dark] .offd{color:#777}
[data-theme=dark] .evd{color:#ddd}
[data-theme=dark] .cal .day[disabled],[data-theme=dark] .cal .nav button[disabled]{color:#666}
[data-theme=dark] .acts{border-top-color:#555}
[data-theme=dark] .foot svg{color:#f2f2f2}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#777}
[data-theme=dark] select option{background:#1a1a1d;color:#f2f2f2}
[data-theme=dark] .pill.ok{background:var(--ok);color:#101012}
[data-theme=dark] .pill.bad{background:var(--bad);color:#101012}
[data-theme=dark] .pill.blue{background:var(--blue);color:#101012}
[data-theme=dark] .pill.k{background:#2a2a2e;color:#f2f2f2}
[data-theme=dark] .pill.gray{background:#666;color:#fff}
[data-theme=dark] .pill.pend{background:transparent;color:var(--y)}
[data-theme=dark] .pill.edited{background:transparent;color:#aaa}
[data-theme=dark] .mm,[data-theme=dark] .inp input,[data-theme=dark] .inp select,[data-theme=dark] .ta,[data-theme=dark] textarea{color:#f2f2f2}

[data-theme=dark] body{background:#101012;color:#f2f2f2}
[data-theme=dark]{color-scheme:dark}
[data-theme=dark] .loading{color:#a6a6a6}
[data-theme=dark] .counter{color:#a6a6a6}

[data-theme=dark] .fab-btn { background: #000; box-shadow: 0 4px 0 var(--y), 0 0 0 1px #4a4a50; }
[data-theme=dark] .nb-bg { background: #26262b; }

/* ===== password submit ===== */
.pwbox { display: flex; flex-direction: column; gap: 6px; }
.inp .pwtog { height: 34px; padding: 0 10px; font-size: 12px; border-radius: 8px; flex-shrink: 0; }
.hint.okt { color: var(--ok); font-weight: 700; }
.pwstat { font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 10px; border: 2px dashed var(--line); color: var(--g); }
.pwstat.on { border-style: solid; border-color: var(--ok); color: var(--ok); }

/* bar menu: lapisan sendiri, tidak ikut terpengaruh animasi halaman */
#fab { transform: translateZ(0); contain: layout style; }
body { overflow-x: clip; }

/* ===== buka nominal dengan password (Beranda) ===== */
.hdrright:has(.unl) { min-width: 180px; }
.orline { display: flex; align-items: center; gap: 8px; color: var(--g); font-size: 12px; font-weight: 700; margin: -2px 0; }
.orline::before, .orline::after { content: ''; flex: 1; height: 1px; background: var(--line, #d9d9d9); }
.unl { display: flex; align-items: center; gap: 4px; height: 46px; padding: 0 4px 0 10px; border: 2px solid var(--k); border-radius: 12px; background: #fff; transition: border-color .15s; }
.unl:focus-within { border-color: var(--k); box-shadow: 0 0 0 3px rgba(255,200,0,.55); }
.unl.bad { border-color: var(--bad); }
.unli { display: flex; color: var(--g); flex-shrink: 0; }
.unl input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--k); padding: 0 4px; }
.unl input::placeholder { color: var(--g); font-weight: 500; }
.unleye { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; background: transparent; color: var(--k); border-radius: 8px; cursor: pointer; flex-shrink: 0; }
.unleye:active { background: rgba(0,0,0,.08); }
.unlh { font-size: 11.5px; color: var(--g); line-height: 1.3; margin-top: -4px; }
.unlh.bad { color: var(--bad); font-weight: 700; }
.unl.on { height: auto; min-height: 44px; padding: 6px 6px 6px 10px; gap: 8px; border-color: var(--ok); color: var(--ok); font-weight: 800; font-size: 13.5px; background: transparent; }
.unl.on span { flex: 1; }
.unlk { height: 32px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--k); background: #fff; color: var(--k); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.lockhint { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--g); background: #f4f4f4; border: 2px dashed #c9c9c9; border-radius: 12px; padding: 10px 12px; }
.lockhint svg { flex-shrink: 0; margin-top: 1px; }
.lockhint a { color: var(--k); font-weight: 800; }
[data-theme=dark] .unl { background: #1a1a1d; }
[data-theme=dark] .unlk { background: #26262b; border-color: #4a4a50; }
[data-theme=dark] .lockhint { background: #1a1a1d; border-color: #4a4a50; }

/* ===== pembaruan: header pengurus, logo latar, bayangan tapbar ===== */
@font-face { font-family: 'Rasley Height'; src: url('../fonts/RasleyHeight.otf') format('opentype'); font-display: block; }
#app { position: relative; }
#app::before { content: ''; position: absolute; left: 94px; top: 232px; width: 390px; height: 390px; background: url('../img/logo-light.png') center / contain no-repeat; opacity: .4; pointer-events: none; z-index: 0; }
[data-theme=dark] #app::before { background-image: url('../img/logo-dark.png'); }
#app > * { position: relative; z-index: 1; }
.hm2 { align-items: flex-start; padding-top: 6px; }
.hl { display: flex; flex-direction: column; min-width: 0; }
.hello { display: flex; align-items: baseline; gap: 7px; margin-top: 4px; white-space: nowrap; }
.hello .hi { font-size: 14px; font-weight: 500; }
.hello .nm { font-family: 'Rasley Height', cursive; font-size: 17px; line-height: 1.2; }
.circs { display: flex; gap: 7px; flex-shrink: 0; }
.circ { width: 45px; height: 45px; border-radius: 50%; background: #111; color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.circ svg { width: 25px; height: 25px; stroke-width: 2.2; }
[data-theme=dark] .circ { background: #26262b; border: 1px solid var(--line); }
.subrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: -10px; }
.subrow .sub { margin-top: 0; }
.subrow .btn.verif { width: auto; min-height: 0; height: 28px; padding: 0 9px; border-width: 1.5px; border-radius: 8px; font-size: 11px; white-space: nowrap; }
.subrow .badge { top: -8px; right: -6px; min-width: 17px; height: 17px; font-size: 10px; }
.nb { filter: drop-shadow(0 12px 16px rgba(0,0,0,.38)) drop-shadow(0 3px 5px rgba(0,0,0,.28)); }
[data-theme=dark] .nb { filter: drop-shadow(0 12px 16px rgba(0,0,0,.75)) drop-shadow(0 0 1.5px rgba(255,255,255,.35)); }
.fab-btn { box-shadow: 0 4px 0 var(--y), 0 12px 16px rgba(0,0,0,.38), 0 3px 5px rgba(0,0,0,.28); }
[data-theme=dark] .fab-btn { box-shadow: 0 4px 0 var(--y), 0 12px 16px rgba(0,0,0,.75), 0 0 0 1px #4a4a50; }
.nb-ball { box-shadow: 0 5px 10px rgba(0,0,0,.35); }

.ok-box .thx { line-height: 1.45; }
.wabtn { gap: 8px; margin-top: 10px; }
.wabtn svg { color: #1a8f3c; }
.ok-box .thx b { font-weight: 400; }

.snavs { display: flex; flex-direction: column; gap: 10px; }
.snav { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--k); border-radius: 14px; text-decoration: none; color: var(--k); background: #fff; }
.snav b { font-size: 16px; }
.snav .snav-go { display: inline-flex; transform: rotate(180deg); opacity: .6; }
[data-theme=dark] .mbtn.on { background: #daedf4; color: #111; }
