/* ===== Modul Keuangan ===== */
.hero .sub-note{position:relative;z-index:1;font-size:11.5px;opacity:.8;margin-top:12px}
.view-only{
  display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;padding:4px 10px;border-radius:999px;
  background:var(--surface-2);color:var(--muted);border:1px solid var(--line);
}
.view-only svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.stat b.pos{color:var(--ok)} .stat b.neg{color:var(--bad)}

/* Card container */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:16px;box-shadow:var(--shadow)}
.card-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.card-h h3{font-size:15px;letter-spacing:-.01em}
.legend{display:flex;gap:12px;font-size:11.5px;color:var(--muted)}
.legend i{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.legend .in i{background:var(--ok)} .legend .out i{background:var(--bad)}

/* Chart */
.chart{width:100%;height:auto;display:block;overflow:visible}
.chart .grid{stroke:var(--line);stroke-width:1}
.chart .ax{fill:var(--muted);font-size:10.5px;font-family:inherit}
.chart .bar-in{fill:var(--ok)} .chart .bar-out{fill:var(--bad)}
.chart .bar-in,.chart .bar-out{transition:opacity .15s;cursor:pointer}
.chart.has-sel .bar-in:not(.sel),.chart.has-sel .bar-out:not(.sel){opacity:.35}
.chart-tip{margin-top:10px;font-size:12.5px;color:var(--muted);text-align:center;min-height:20px}
.chart-tip b{color:var(--text)}

/* Segmented (3 opsi) */
.seg3{display:grid;grid-template-columns:repeat(3,1fr);padding:5px;border-radius:16px;background:var(--surface-2);border:1px solid var(--line);margin-top:12px;gap:2px}
.seg3 button{padding:9px;border-radius:12px;font-weight:700;font-size:13px;color:var(--muted);transition:all .2s}
.seg3 button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}

/* Transaksi */
.t-card{
  display:flex;gap:12px;align-items:center;width:100%;text-align:left;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r-md);padding:12px;box-shadow:var(--shadow);transition:transform .15s;
}
.t-card:active{transform:scale(.98)}
.t-ico{width:44px;height:44px;border-radius:15px;flex:none;display:grid;place-items:center}
.t-ico svg{width:20px;height:20px;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.t-ico.in{background:rgba(16,185,129,.14)} .t-ico.in svg{stroke:var(--ok)}
.t-ico.out{background:rgba(239,68,68,.12)} .t-ico.out svg{stroke:var(--bad)}
.t-card .mid{flex:1;min-width:0}
.t-card h4{font-size:14px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.t-card .sub{font-size:12px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.t-card .amt{font-weight:800;font-size:14.5px;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.t-card .amt.in{color:var(--ok)} .t-card .amt.out{color:var(--bad)}
.t-card .amt small{display:block;margin-top:4px}
.day-h{font-size:12px;font-weight:700;color:var(--muted);margin:14px 2px 2px}

/* Iuran */
.prog{height:10px;border-radius:99px;background:var(--surface-2);overflow:hidden;margin:10px 0 6px}
.prog i{display:block;height:100%;width:0;border-radius:99px;background:var(--grad);transition:width .9s cubic-bezier(.2,.8,.2,1)}
.prog-l{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}
.prog-l b{color:var(--text)}
.iuran-row{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line)}
.iuran-row:first-child{border-top:0}
.iuran-row .n{flex:1;min-width:0;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.iuran-row .rem{
  font-size:12px;font-weight:700;padding:7px 12px;border-radius:12px;background:var(--surface-2);color:var(--brand);flex:none;
}
.iuran-row .ok{font-size:11px;font-weight:700;color:var(--ok);flex:none}
.empty-sm{font-size:13px;color:var(--muted);text-align:center;padding:14px 0}

/* Audit */
.audit{list-style:none;margin-bottom:16px}
.audit li{font-size:12.5px;padding:9px 12px;border-radius:12px;background:var(--surface-2);margin-bottom:6px;color:var(--text)}
.audit li small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.lock-note{display:flex;gap:10px;font-size:12px;color:var(--muted);background:rgba(79,70,229,.08);border:1px solid rgba(79,70,229,.2);border-radius:14px;padding:10px 12px;margin-bottom:14px}
.lock-note svg{width:18px;height:18px;flex:none;stroke:var(--brand);fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
