/* Ruang Uang — tema terang aplikasi asli, mobile-first, aksen oranye. */
* { box-sizing: border-box; }
:root {
  --orange: #f65c31;
  --ink: #1c2530;
  --muted: #75808f;
  --bg: #f5f5f2;
  --card: #ffffff;
  --line: #eef1f4;
  --red: #c53f32;
  --green: #237d64;
}
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
.app { max-width: 480px; margin: 0 auto; padding: 12px 12px 92px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px 12px; }
.logo { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.logo i { color: var(--orange); font-style: normal; }
.pill { background: var(--orange); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; }
.pill.orange { background: var(--orange); }
.view { display: block; }
.view[hidden] { display: none; }
.card { background: var(--card); border-radius: 18px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.card h3 { font-size: 14px; margin: 0 0 4px; }
.sub { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.note { font-size: 11px; color: var(--muted); background: #fff8f3; border: 1px solid #fde9df; border-radius: 10px; padding: 10px 12px; margin: 8px 0 12px; }
.body-note { font-size: 13px; color: #3d4753; line-height: 1.55; }
.hero .label { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.hero-amount { font-size: 34px; font-weight: 800; letter-spacing: -1px; color: var(--red); padding: 6px 0 4px; }
.hero-sub { font-size: 12px; color: var(--muted); }
.draft-card { border: 1px solid #fde9df; }
.draft-head { display: flex; align-items: center; justify-content: space-between; }
.draft-head b { font-size: 14px; }
.draft-actions { display: flex; gap: 4px; }
.icon-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f3f5; color: #525b68; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.danger { background: #fdecea; color: var(--red); }
.draft-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.draft-row .nm { font-size: 13px; font-weight: 700; }
.draft-row .ac { font-size: 11px; color: var(--muted); margin-top: 2px; }
.draft-row .amt { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--red); white-space: nowrap; font-variant-numeric: tabular-nums; }
.section { font-size: 18px; font-weight: 700; margin: 16px 0 10px; }
/* Kartu Sumber dana gaya Monveo: bertumpuk gradasi, teks putih. */
.m-stack { margin-top: 4px; }
.m-card { position: relative; display: flex; align-items: center; gap: 12px; border-radius: 18px; padding: 16px; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,0.14); }
.m-card + .m-card { margin-top: -12px; padding-top: 28px; }
.m-stack .m-card:nth-child(1) { z-index: 3; }
.m-stack .m-card:nth-child(2) { z-index: 2; }
.m-stack .m-card:nth-child(3) { z-index: 1; }
.m-tile { width: 36px; height: 36px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.m-tile svg { width: 20px; height: 20px; }
.m-name { font-size: 15px; font-weight: 600; }
.m-amt { margin-left: auto; font-size: 14px; font-weight: 700; white-space: nowrap; }
.cat-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 13px; }
.cat-row .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cat-row .bar { flex: 1; height: 8px; background: #eef1f4; border-radius: 99px; overflow: hidden; }
.cat-row .bar i { display: block; height: 100%; }
.cat-row .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.btn-primary { width: 100%; background: var(--orange); color: #fff; border: 0; border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 700; cursor: pointer; margin-bottom: 10px; }
.btn-primary.wide { margin-bottom: 0; }
.btn-secondary { background: #f1f3f5; color: var(--ink); border: 0; border-radius: 12px; padding: 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-dark { width: 100%; background: #20242b; color: #fff; border: 0; border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; margin-bottom: 12px; text-align: left; }
.btn-dark small { display: block; color: #b9c0ca; font-size: 11px; margin-top: 2px; }
.searchbar { display: flex; gap: 8px; margin-bottom: 10px; }
.searchbar .box { flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 0 12px; }
.searchbar .box svg { width: 18px; height: 18px; flex: none; }
.searchbar input { border: 0; outline: 0; width: 100%; padding: 12px 0; font-size: 14px; }
.sort-line { font-size: 12px; color: var(--muted); margin: 0 0 8px 2px; }
.tx-group { font-size: 13px; font-weight: 700; margin: 14px 0 6px; display: flex; justify-content: space-between; }
.tx-group span:last-child { color: var(--red); font-variant-numeric: tabular-nums; }
.tx-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; cursor: pointer; }
.tx-row .nm { font-size: 13px; font-weight: 700; }
.tx-row .ac { font-size: 11px; color: var(--muted); margin-top: 2px; }
.tx-row .amt { margin-left: auto; font-size: 13px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tx-row .amt.neg { color: var(--red); }
.tx-row .amt.pos { color: var(--green); }
.tile { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; font-size: 13px; font-weight: 800; }
.tile.orange { background: #fde9df; color: var(--orange); }
.tile.green { background: #e2f3ec; color: var(--green); }
.tile.teal { background: #ddf3ef; color: #0f766e; }
.tile.violet { background: #ece8fb; color: #584080; }
.tag { font-size: 10px; font-weight: 700; border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.tag.review { background: #fff3d6; color: #8a5a00; }
.tag.cancel { background: #fdecea; color: var(--red); }
.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; background: #fff; border-top: 1px solid var(--line); display: flex; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 20; }
.nav button { flex: 1; border: 0; background: none; color: #9aa3af; font-size: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; padding: 4px 0; }
.nav button svg { width: 22px; height: 22px; }
.nav button.on { color: var(--orange); }
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.backdrop[hidden] { display: none; }
.sheet { background: #fff; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 16px 16px 24px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-head h2 { font-size: 17px; margin: 0; }
.sheet-head .x, .sheet-head .icon-btn { font-size: 20px; }
.f-label { font-size: 12px; font-weight: 700; color: var(--muted); margin: 14px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #e3e7ec; background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13px; cursor: pointer; }
.chip.on { background: #20242b; color: #fff; border-color: #20242b; }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet-actions .btn-secondary { flex: 1; }
.sheet-actions .btn-primary { flex: 2; }
.field-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin: 12px 0 6px; }
.input { width: 100%; border: 1px solid #e3e7ec; border-radius: 10px; padding: 11px 12px; font-size: 14px; background: #fff; }
.input.static { background: #f1f3f5; }
.edit-amount { text-align: center; font-size: 38px; font-weight: 800; letter-spacing: -1px; padding: 14px 0 18px; color: var(--red); }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.kpi { border-radius: 16px; padding: 14px; }
.kpi.pink { background: #fde8e8; }
.kpi.green { background: #e2f3ec; }
.kpi.peach { background: #fde9df; }
.kpi.lavender { background: #ece8fb; }
.kpi-label { font-size: 12px; color: #525b68; margin-bottom: 6px; }
.kpi strong { display: block; font-size: 19px; letter-spacing: -0.3px; font-variant-numeric: tabular-nums; }
.kpi.pink strong { color: #7a1f2b; }
.kpi.green strong { color: #145c40; }
.kpi.peach strong { color: #8a3a12; }
.kpi.lavender strong { color: #3d3670; }
.kpi small { font-size: 11px; color: #525b68; display: block; margin-top: 6px; line-height: 1.4; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
th { color: var(--muted); font-size: 11px; }
.empty { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 0; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px; background: #20242b; color: #fff; padding: 10px 16px; border-radius: 99px; font-size: 13px; z-index: 50; max-width: 90vw; text-align: center; }
.toast[hidden] { display: none; }
.cc-sum { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cc-sum b { font-variant-numeric: tabular-nums; }
.cc-sum b.neg { color: var(--red); }
