/* Ecclivion — 06-anggaran.css · Anggaran, jurnal, uang muka, kas & bank
   Pecahan dari styles.css. Urutan pemuatan di index.html dipertahankan. */
/* ---------- Anggaran: pills, stat cards, chips ---------- */
.bud-pills{display:flex; align-items:center; gap:10px; margin-bottom:14px; flex-wrap:wrap}
.bud-pill{display:inline-flex; align-items:center; gap:7px; padding:8px 16px; border-radius:999px;
  border:1.5px solid var(--line); background:#fff; font:inherit; font-size:12.5px; font-weight:700;
  color:var(--muted); cursor:pointer; transition:all .15s}
.bud-pill svg{width:15px; height:15px; stroke:currentColor}
.bud-pill:hover{border-color:var(--blue-600); color:var(--blue-600)}
.bud-pill.income.on{background:#E8FAF2; border-color:#15C78A; color:#0E8A60}
.bud-pill.expense.on{background:#FFF4DE; border-color:var(--gold-500); color:#8A5B00}

.bud-stats{display:grid; grid-template-columns:repeat(4, 1fr); gap:14px; margin-bottom:14px}
.bud-stat{background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 16px 12px;
  border-top:4px solid var(--line); box-shadow:0 1px 2px rgba(10,53,104,.05);
  display:flex; flex-direction:column; gap:5px}
.bud-stat span{font-size:10px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--muted)}
.bud-stat b{font-size:16.5px; color:var(--navy-900); letter-spacing:-.01em}
.bud-stat.green{border-top-color:#15C78A}  .bud-stat.green b{color:#0E8A60}
.bud-stat.blue{border-top-color:var(--blue-600)} .bud-stat.blue b{color:var(--blue-600)}
.bud-stat.orange{border-top-color:#F58A1F} .bud-stat.orange b{color:#C56A00}
.bud-stat.purple{border-top-color:#7B5CD6} .bud-stat.purple b{color:#5D3FC0}

.chip{display:inline-flex; align-items:center; gap:3px; padding:3px 9px; border-radius:999px;
  font-size:11px; font-weight:800; white-space:nowrap}
.chip.up{background:#E4F8EF; color:#0E8A60}
.chip.down{background:#FDE9E9; color:#C23333}
.chip.flat{background:#EEF1F6; color:#68758A}
.chip.capai.full{background:#FDE7EE; color:#C2255C}
.chip.capai.part{background:#FFF4DE; color:#8A5B00}
.chip.capai.zero{background:#E4F7FB; color:#0E7490}

.bud-table td{vertical-align:middle}
tr.bud-total td{background:#F4F7FB; border-top:2px solid #DCE6F2; padding-top:11px; padding-bottom:11px}
.slicer-label{font-size:10px; font-weight:800; letter-spacing:.08em; color:var(--muted)}

@media (max-width:1100px){ .bud-stats{grid-template-columns:repeat(2,1fr)} }
@media (max-width:640px){ .bud-stats{grid-template-columns:1fr} }

/* ---------- Anggaran pengeluaran ---------- */
.bud-stat.red{border-top-color:#E25555} .bud-stat.red b{color:#C23333}
.page-btns{display:flex; gap:5px; align-items:center}
.page-num{min-width:30px; height:30px; padding:0 8px; border-radius:8px; border:1px solid var(--line);
  background:#fff; font:inherit; font-size:12px; font-weight:700; color:var(--muted); cursor:pointer}
.page-num:hover{border-color:var(--blue-600); color:var(--blue-600)}
.page-num.on{background:var(--blue-600); border-color:var(--blue-600); color:#fff}
.page-ellipsis{color:var(--muted); font-size:12px; padding:0 2px}

/* tautan lintas menu (kegiatan, anggaran penerimaan) */
.xref-link{color:var(--blue-600); text-decoration:none; border-bottom:1px dashed rgba(18,87,166,.45);
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:12px}
.xref-link:hover{color:var(--gold-600); border-bottom-color:var(--gold-500)}

/* Jurnal Penerimaan KPI cards */
.jr-kpi{background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px 18px;
  box-shadow:0 1px 2px rgba(10,53,104,.05); display:flex; flex-direction:column; gap:6px}
.jr-kpi span{font-size:10.5px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--muted)}
.jr-kpi b{font-size:1.5rem; letter-spacing:-.01em}

/* Pengeluaran Uang Muka — kartu ringkasan anggaran */
.adv-cards{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:6px 0 4px}
.adv-card{background:#F6F8FC; border:1px solid var(--line); border-radius:10px; padding:12px 14px; display:flex; flex-direction:column; gap:5px}
.adv-card span{font-size:9.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--muted)}
.adv-card b{font-size:1.05rem}
.modal.lg{max-width:820px}
.cell-in{width:100%; border:1px solid var(--line); border-radius:6px; padding:5px 7px; font:inherit; font-size:12px}

/* Pertanggungjawaban uang muka — detail layout */
.stl-grid{display:grid; grid-template-columns:1.4fr 1fr; gap:16px}
@media(max-width:900px){.stl-grid{grid-template-columns:1fr}}
.stl-sect{background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px 18px; margin-bottom:16px}
.stl-sect h4{margin:0 0 12px; font-size:13px; color:var(--navy); font-weight:800}
.stl-fin{display:flex; flex-direction:column; gap:2px}
.stl-fin-row{display:flex; justify-content:space-between; align-items:center; padding:9px 0; border-bottom:1px solid var(--line); font-size:13px}
.stl-fin-row:last-child{border-bottom:none}
.stl-fin-row span{color:var(--muted)} .stl-fin-row b{font-weight:700}
.stl-fin-row.hl b{font-size:1.05rem}
.stl-return{margin-top:12px; background:#F8FAFC; border:1px solid var(--line); border-radius:10px; padding:12px 14px}
.stl-return-head{font-size:12px; font-weight:800; color:var(--muted); margin-bottom:6px}
.appr-chain{display:flex; flex-direction:column; gap:10px}
.appr-row{display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 12px; background:#F8FAFC; border:1px solid var(--line); border-radius:10px}
.appr-role{font-size:11px; color:var(--muted); font-weight:700}
.appr-name{font-size:13px; font-weight:700; color:var(--navy)}

/* Kas & Bank — kartu saldo per rekening */
.kb-acct-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(230px,1fr)); gap:12px}
.kb-acct-card{text-align:left; background:#fff; border:1.5px solid var(--line); border-radius:12px; padding:14px 16px; cursor:pointer; transition:all .15s; font-family:inherit}
.kb-acct-card:hover{border-color:var(--blue-600); box-shadow:0 4px 14px rgba(18,87,166,.10)}
.kb-acct-card.on{border-color:var(--blue-600); background:linear-gradient(180deg,#F4F8FD,#fff)}
.kb-acct-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:6px}
.kb-acct-code{font-size:12px; font-weight:800; color:var(--navy); letter-spacing:.03em}
.kb-acct-name{font-size:12px; color:var(--muted); margin-bottom:8px; min-height:30px}
.kb-acct-saldo{font-size:1.15rem; font-weight:800; color:var(--blue-600); margin-bottom:6px}
.kb-acct-io{display:flex; justify-content:space-between; font-size:11px; font-weight:700}
