/* =====================================================================
   ReOp-FIA — gaya antarmuka
   Palet: biru tinta (identitas kampus), merah pelat dinas, emas, hijau lunas.
   Motif khas: nomor polisi tampil sebagai pelat merah kendaraan dinas,
   dan status klaim final tampil sebagai stempel "LUNAS" / "DITOLAK".
   ===================================================================== */

:root {
  --ink: #14365D;
  --ink-strong: #0E2746;
  --ink-soft: #E4EBF4;
  --paper: #EDF1F5;
  --surface: #FFFFFF;
  --surface-alt: #F6F8FB;
  --line: #D5DCE5;
  --text: #1A2330;
  --muted: #586475;
  --plate: #B3261E;
  --gold: #D99A1E;
  --gold-ink: #7F5200;
  --gold-soft: #FFF2D3;
  --green: #1B7549;
  --green-soft: #E0F2E8;
  --red: #B3261E;
  --red-soft: #FBE6E4;
  --sidebar-w: 256px;

  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-font-size: .9375rem;
  --bs-body-line-height: 1.55;
  --bs-body-bg: var(--paper);
  --bs-body-color: var(--text);
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--line);
  --bs-border-radius: 8px;
  --bs-primary: #14365D;
  --bs-primary-rgb: 20, 54, 93;
  --bs-link-color: #1D4E85;
  --bs-link-color-rgb: 29, 78, 133;
  --bs-link-hover-color: #14365D;
  --bs-link-hover-color-rgb: 20, 54, 93;
  --bs-focus-ring-color: rgba(20, 54, 93, .28);
}

html { -webkit-text-size-adjust: 100%; }
body { font-feature-settings: "ss01" 0; }
h1, h2, h3, h4 { letter-spacing: -.012em; color: var(--text); }
a { text-underline-offset: .18em; }
.num, .amount { font-variant-numeric: tabular-nums; }
.min-w-0 { min-width: 0; }
.text-muted, .text-secondary { color: var(--muted) !important; }

.lompat-konten {
  position: absolute; left: -9999px; top: .5rem; z-index: 2000;
  background: #fff; color: var(--ink); padding: .5rem 1rem; border-radius: 8px; font-weight: 600;
}
.lompat-konten:focus { left: .5rem; }

/* ---------- Komponen Bootstrap disesuaikan ---------- */
.btn { font-weight: 600; border-radius: 8px; --bs-btn-padding-x: .95rem; }
.btn-primary {
  --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink);
  --bs-btn-hover-bg: var(--ink-strong); --bs-btn-hover-border-color: var(--ink-strong);
  --bs-btn-active-bg: #0A1F38; --bs-btn-active-border-color: #0A1F38;
  --bs-btn-disabled-bg: var(--ink); --bs-btn-disabled-border-color: var(--ink);
  --bs-btn-focus-shadow-rgb: 20, 54, 93;
}
.btn-outline-primary {
  --bs-btn-color: var(--ink); --bs-btn-border-color: #9DB0C8;
  --bs-btn-hover-bg: var(--ink); --bs-btn-hover-border-color: var(--ink); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--ink-strong); --bs-btn-active-border-color: var(--ink-strong);
  --bs-btn-focus-shadow-rgb: 20, 54, 93;
}
.btn-success { --bs-btn-bg: var(--green); --bs-btn-border-color: var(--green); --bs-btn-hover-bg: #145C39; --bs-btn-hover-border-color: #145C39; --bs-btn-active-bg: #104A2E; }
.btn-danger { --bs-btn-bg: var(--red); --bs-btn-border-color: var(--red); --bs-btn-hover-bg: #921E18; --bs-btn-hover-border-color: #921E18; --bs-btn-active-bg: #7A1914; }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--surface-alt); --bs-btn-hover-border-color: #B9C4D2; }
.btn-icon { background: transparent; border: 0; color: inherit; padding: .25rem .4rem; line-height: 1; }

.form-label { font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.form-text { color: var(--muted); }
.form-control, .form-select { border-color: #C6CFDB; }
.form-control:focus, .form-select:focus { border-color: #5B82B0; box-shadow: 0 0 0 .2rem rgba(20, 54, 93, .16); }
.form-control::placeholder { color: #8A95A5; }
.input-group-text { background: var(--surface-alt); border-color: #C6CFDB; color: var(--muted); font-weight: 600; }
.alert { border-radius: 10px; border-width: 1px; }
.page-link { color: var(--ink); }
.active > .page-link, .page-link.active { background: var(--ink); border-color: var(--ink); }

.table { --bs-table-bg: transparent; margin: 0; vertical-align: middle; }
.table > :not(caption) > * > * { padding: .7rem .9rem; border-bottom-color: #E3E8EF; }
.table thead th { font-size: .8125rem; font-weight: 600; color: var(--muted); background: var(--surface-alt); white-space: nowrap; border-bottom-color: var(--line); }
.table tfoot td, .table tfoot th { font-weight: 700; background: var(--surface-alt); }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #F3F6FA; }

/* ---------- Tata letak utama ---------- */
.app { display: flex; min-height: 100vh; min-height: 100dvh; }
.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.content { width: 100%; max-width: 1320px; padding: 1.75rem clamp(1rem, 3vw, 2.5rem) 3rem; }

/* Sidebar */
.sidebar-shell { --bs-offcanvas-width: 284px; --bs-offcanvas-bg: var(--ink); --bs-offcanvas-color: #C9D4E3; }
.sidebar { background: var(--ink); color: #C3CFDF; width: 100%; height: 100%; display: flex; flex-direction: column; padding: 1.35rem .9rem 1.1rem; overflow-y: auto; }
@media (min-width: 992px) {
  .sidebar-shell { position: sticky; top: 0; height: 100vh; flex: 0 0 var(--sidebar-w); width: var(--sidebar-w); }
}
.brand { display: flex; align-items: center; gap: .7rem; padding: 0 .45rem 1.4rem; text-decoration: none; }
.brand-name { display: block; font-weight: 800; font-size: 1.08rem; line-height: 1.1; color: #fff; letter-spacing: -.01em; }
.brand-sub { display: block; font-size: .75rem; color: #9DB0C8; line-height: 1.3; margin-top: .15rem; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-group { font-size: .75rem; font-weight: 600; color: #8499B5; padding: 1.1rem .8rem .35rem; }
.side-nav a {
  display: flex; align-items: center; gap: .75rem; padding: .55rem .8rem; border-radius: 8px;
  color: #C9D4E3; text-decoration: none; font-weight: 500;
}
.side-nav a .bi { font-size: 1.05rem; width: 1.15rem; text-align: center; opacity: .9; }
.side-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-nav a.active { background: #fff; color: var(--ink); font-weight: 700; }
.side-nav a:focus-visible, .side-user a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.side-nav .count { margin-left: auto; background: var(--gold); color: #231800; font-size: .72rem; font-weight: 800; border-radius: 999px; padding: .12rem .5rem; font-variant-numeric: tabular-nums; }
.side-user { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .12); padding: 1rem .35rem 0; }
.side-user-info { display: flex; gap: .7rem; align-items: center; text-decoration: none; color: #9DB0C8; }
.side-logout { color: #C9D4E3; border: 1px solid rgba(255, 255, 255, .18); }
.side-logout:hover { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.side-instansi { font-size: .72rem; color: #7489A6; margin: .9rem 0 0; line-height: 1.4; }
.avatar {
  flex: 0 0 auto; width: 2.35rem; height: 2.35rem; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--gold); color: #231800; font-weight: 800; text-decoration: none;
}
.avatar-sm { width: 2rem; height: 2rem; font-size: .85rem; }

/* Topbar ponsel */
.topbar { position: sticky; top: 0; z-index: 1020; background: var(--ink); color: #fff; display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; padding-top: calc(.6rem + env(safe-area-inset-top)); }
.topbar-brand { color: #fff; font-weight: 800; text-decoration: none; font-size: 1.05rem; }
.topbar-pending { background: var(--gold); color: #231800; font-weight: 700; font-size: .78rem; padding: .2rem .6rem; border-radius: 999px; text-decoration: none; }

/* Navigasi bawah sopir */
.nav-bawah {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: .5rem;
  padding: .35rem 1rem calc(.4rem + env(safe-area-inset-bottom));
}
.nav-bawah a { display: flex; flex-direction: column; align-items: center; gap: .1rem; font-size: .75rem; color: var(--muted); text-decoration: none; padding: .3rem; }
.nav-bawah a .bi { font-size: 1.25rem; }
.nav-bawah a.active { color: var(--ink); font-weight: 700; }
.nav-bawah .fab {
  flex-direction: row; gap: .45rem; background: var(--ink); color: #fff; border-radius: 999px;
  padding: .75rem 1.3rem; font-size: .92rem; font-weight: 700; margin-top: -1.6rem;
  box-shadow: 0 6px 18px rgba(20, 54, 93, .32);
}
.nav-bawah .fab.active { color: #fff; }
.ada-nav-bawah .content { padding-bottom: 7rem; }
@media (min-width: 992px) {
  .nav-bawah { display: none; }
  .ada-nav-bawah .content { padding-bottom: 3rem; }
}

/* ---------- Kepala halaman & panel ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.6rem; font-weight: 800; margin: 0; line-height: 1.2; }
.page-head p { margin: .3rem 0 0; color: var(--muted); max-width: 64ch; }
.page-head .back { display: inline-flex; align-items: center; gap: .3rem; font-size: .875rem; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: .4rem; }
.page-head .back:hover { color: var(--ink); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.panel + .panel { margin-top: 1.25rem; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .95rem 1.25rem; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.panel-head .sub { font-size: .8125rem; color: var(--muted); }
.panel-body { padding: 1.25rem; }
.panel-foot { padding: .85rem 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; font-size: .875rem; color: var(--muted); }

.empty { text-align: center; padding: 2.75rem 1.25rem; color: var(--muted); }
.empty .bi { font-size: 2rem; color: #9DB0C8; display: block; margin-bottom: .5rem; }
.empty strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: .25rem; }

/* ---------- Pelat nomor kendaraan dinas (pelat merah) ---------- */
.plat {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  background: var(--plate); color: #fff; font-weight: 700; font-size: .76rem; letter-spacing: .07em; line-height: 1;
  padding: .34rem .52rem; border-radius: 4px; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1.5px var(--plate), inset 0 0 0 2.5px rgba(255, 255, 255, .9);
}
.plat-brand { font-size: .8rem; padding: .5rem .55rem; flex: 0 0 auto; }
.plat-lg { font-size: 1rem; padding: .5rem .8rem; }

/* ---------- Status ---------- */
.st { display: inline-flex; align-items: center; gap: .38rem; font-size: .78rem; font-weight: 700; padding: .24rem .62rem; border-radius: 999px; white-space: nowrap; }
.st::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.st-pending { background: var(--gold-soft); color: var(--gold-ink); }
.st-lunas { background: var(--green-soft); color: var(--green); }
.st-ditolak { background: var(--red-soft); color: var(--red); }
.st-dibatalkan { background: #E9EDF2; color: var(--muted); }

/* Stempel status final pada detail klaim */
.stempel {
  display: inline-block; text-align: center; font-weight: 800; font-size: 1.55rem; letter-spacing: .14em; line-height: 1;
  padding: .5rem 1rem .4rem; border: 3px solid currentColor; border-radius: 6px;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px currentColor;
  transform: rotate(-7deg); opacity: .9; user-select: none;
}
.stempel small { display: block; font-size: .62rem; letter-spacing: .03em; font-weight: 700; margin-top: .3rem; }
.stempel-lunas { color: var(--green); }
.stempel-ditolak { color: var(--red); }
.stempel.baru { animation: cap .5s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes cap {
  0% { transform: rotate(-16deg) scale(1.9); opacity: 0; }
  60% { transform: rotate(-6deg) scale(.95); opacity: 1; }
  100% { transform: rotate(-7deg) scale(1); opacity: .9; }
}

/* ---------- Strip kas (dasbor admin & keuangan) ---------- */
.kas {
  background: var(--ink); color: #fff; border-radius: 14px; padding: 1.5rem 1.6rem 1.25rem;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.35fr); gap: .5rem 1.25rem; align-items: end;
}
.kas-item .lbl { display: block; font-size: .8125rem; color: #A9BBD2; margin-bottom: .2rem; }
.kas-item .val { display: block; font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kas-item .ket { display: block; font-size: .78rem; color: #8FA5C2; margin-top: .25rem; }
.kas-op { font-size: 1.6rem; font-weight: 300; color: #6F88A8; line-height: 1; padding-bottom: 1.35rem; }
.kas-saldo { border-left: 3px solid var(--gold); padding-left: 1rem; }
.kas-saldo .val { font-size: clamp(1.8rem, 3.1vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
.kas-foot {
  grid-column: 1 / -1; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem;
}
.kas-pending .val { font-size: 1.05rem; font-weight: 700; }
.kas-pending .lbl { display: block; font-size: .8125rem; color: #A9BBD2; }
.cover { flex: 1 1 260px; }
.cover-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.cover-bar span { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width .6s ease; }
.cover-bar.kurang span { background: #F07A6E; }
.cover p { margin: .45rem 0 0; font-size: .8125rem; color: #C3CFDF; }
.kas-live { font-size: .72rem; color: #8FA5C2; display: inline-flex; align-items: center; gap: .35rem; }
.kas-live::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #5FD39A; }
@media (max-width: 991.98px) {
  .kas { grid-template-columns: 1fr 1fr; padding: 1.25rem; }
  .kas-op { display: none; }
  .kas-saldo { grid-column: 1 / -1; order: -1; margin-bottom: .75rem; }
}

/* Kartu statistik ringkas (sopir & laporan) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.15rem; }
.stat .lbl { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.stat .val { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.25; margin-top: .15rem; }
.stat .ket { font-size: .8rem; color: var(--muted); }
.stat-lunas { border-top: 3px solid var(--green); }
.stat-pending { border-top: 3px solid var(--gold); }
.stat-ditolak { border-top: 3px solid var(--red); }
.stat-ink { border-top: 3px solid var(--ink); }

/* ---------- Daftar klaim ---------- */
.klaim-list { list-style: none; margin: 0; padding: 0; }
.klaim-row {
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: center;
  padding: .9rem 1.25rem; border-top: 1px solid #E3E8EF; color: inherit; text-decoration: none;
}
.klaim-list li:first-child .klaim-row { border-top: 0; }
.klaim-row:hover { background: var(--surface-alt); color: inherit; }
.klaim-row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.klaim-row .judul { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; }
.klaim-row .meta { font-size: .8125rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .75rem; margin-top: .2rem; }
.klaim-row .kanan { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.klaim-row .amount { font-weight: 800; font-size: 1rem; }
.kat-ico {
  width: 2.6rem; height: 2.6rem; border-radius: 10px; display: grid; place-items: center; font-size: 1.15rem;
  background: #EEF2F6; background: color-mix(in srgb, var(--c, #14365D) 12%, #fff); color: var(--c, #14365D);
}
@media (max-width: 575.98px) {
  .klaim-row { grid-template-columns: 2.3rem minmax(0, 1fr); padding: .85rem 1rem; }
  .klaim-row .kanan { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; margin-top: .35rem; }
  .kat-ico { width: 2.3rem; height: 2.3rem; font-size: 1rem; }
}

/* Tab status */
.tab-status { display: flex; gap: .35rem; overflow-x: auto; padding: .75rem 1.25rem 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tab-status a {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .8rem; margin-bottom: -1px; white-space: nowrap;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .875rem; border-bottom: 2px solid transparent;
}
.tab-status a:hover { color: var(--ink); }
.tab-status a.active { color: var(--ink); border-bottom-color: var(--ink); }
.tab-status .n { font-size: .72rem; background: #E7ECF2; color: var(--muted); border-radius: 999px; padding: .08rem .45rem; font-variant-numeric: tabular-nums; }
.tab-status a.active .n { background: var(--ink); color: #fff; }

/* ---------- Formulir klaim ---------- */
.kat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .5rem; }
.kat-pick input { position: absolute; opacity: 0; pointer-events: none; }
.kat-pick label {
  display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border: 1.5px solid #C6CFDB; border-radius: 10px;
  background: #fff; cursor: pointer; font-weight: 600; font-size: .9rem; min-height: 3rem;
}
.kat-pick label .bi { font-size: 1.15rem; color: var(--c, var(--ink)); }
.kat-pick label:hover { border-color: #8FA3BD; }
.kat-pick input:checked + label { border-color: var(--ink); background: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--ink); }
.kat-pick input:focus-visible + label { outline: 3px solid rgba(20, 54, 93, .35); outline-offset: 2px; }

.nota-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center;
  border: 2px dashed #AFBDCF; border-radius: 12px; padding: 1.6rem 1rem; background: var(--surface-alt); cursor: pointer; color: var(--muted);
}
.nota-drop .bi { font-size: 2rem; color: var(--ink); }
.nota-drop strong { color: var(--text); }
.nota-drop:hover, .nota-drop:focus-within { border-color: var(--ink); background: var(--ink-soft); }
.nota-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.nota-preview { display: block; max-width: 100%; max-height: 340px; margin: .75rem auto 0; border-radius: 8px; border: 1px solid var(--line); }
.nota-info { font-size: .8125rem; color: var(--muted); margin-top: .4rem; text-align: center; }
.terbilang { font-size: .8125rem; color: var(--muted); font-style: italic; margin-top: .3rem; min-height: 1.2em; }
@media (max-width: 991.98px) {
  .form-control, .form-select, .input-group-text { font-size: 16px; } /* cegah zoom otomatis iOS */
}

/* ---------- Detail klaim ---------- */
.nota-frame {
  background: #26303D; border-radius: 12px; padding: 1rem; display: flex; align-items: center; justify-content: center; min-height: 380px;
}
.nota-frame img { max-width: 100%; max-height: 72vh; border-radius: 3px; cursor: zoom-in; box-shadow: 0 10px 28px rgba(0, 0, 0, .38); background: #fff; }
.nota-hint { font-size: .8125rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: .6rem; }
.rincian { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .55rem 1rem; margin: 0; }
.rincian dt { font-weight: 500; color: var(--muted); font-size: .875rem; }
.rincian dd { margin: 0; font-weight: 600; }
.nominal-besar { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.detail-kepala { position: relative; }
.detail-kepala .stempel { position: absolute; right: 1.1rem; top: 1rem; }
.catatan { border-left: 3px solid var(--red); background: var(--red-soft); padding: .75rem 1rem; border-radius: 0 8px 8px 0; }
.catatan.lunas { border-left-color: var(--green); background: var(--green-soft); }
.peringatan { border-left: 3px solid var(--gold); background: var(--gold-soft); padding: .7rem 1rem; border-radius: 0 8px 8px 0; font-size: .875rem; }
.peringatan + .peringatan { margin-top: .5rem; }
.alasan-cepat { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.alasan-cepat button { font-size: .78rem; border: 1px solid #C6CFDB; background: #fff; border-radius: 999px; padding: .25rem .7rem; color: var(--text); }
.alasan-cepat button:hover { border-color: var(--red); color: var(--red); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1.6rem; font-size: .875rem; }
.timeline li::before { content: ""; position: absolute; left: .28rem; top: .42rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--ink-soft); }
.timeline li::after { content: ""; position: absolute; left: .56rem; top: 1.2rem; bottom: .1rem; width: 1px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline .waktu { display: block; color: var(--muted); font-size: .78rem; }

.kuota { height: 6px; border-radius: 999px; background: #E3E8EF; overflow: hidden; }
.kuota span { display: block; height: 100%; background: var(--ink); }
.kuota.lewat span { background: var(--red); }
.kuota.hampir span { background: var(--gold); }

/* ---------- Grafik ---------- */
.chart-box { position: relative; height: 280px; }
.chart-box.tinggi { height: 340px; }
.legenda { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .45rem; font-size: .875rem; }
.legenda li { display: flex; align-items: center; gap: .6rem; }
.legenda .sw { width: .8rem; height: .8rem; border-radius: 3px; flex: 0 0 auto; }
.legenda .v { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Filter laporan ---------- */
.filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; align-items: end; }
.ekspor { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Saldo masuk: batalkan ---------- */
details.batal summary { list-style: none; cursor: pointer; font-size: .8125rem; font-weight: 600; color: var(--red); }
details.batal summary::-webkit-details-marker { display: none; }
details.batal[open] summary { margin-bottom: .5rem; }

/* ---------- Halaman masuk ---------- */
.login-wrap { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 520px); }
.login-side { background: var(--ink); color: #D5DEEA; padding: 3rem clamp(2rem, 5vw, 4.5rem); display: flex; flex-direction: column; gap: 2.5rem; }
.login-side h1 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1.15; max-width: 18ch; margin: 0; }
.login-side .lead-sm { max-width: 46ch; color: #B7C6D9; margin-top: 1rem; }
.alur { list-style: none; counter-reset: alur; padding: 0; margin: 0; display: grid; gap: 1rem; max-width: 30rem; }
.alur li { counter-increment: alur; display: grid; grid-template-columns: 2.2rem 1fr; gap: .9rem; align-items: start; }
.alur li::before {
  content: counter(alur); width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; font-weight: 700; font-size: .9rem;
}
.alur strong { color: #fff; display: block; }
.alur span { font-size: .875rem; color: #9DB0C8; }
.login-side .kaki { margin-top: auto; font-size: .8125rem; color: #7F95B2; }
.login-form { background: #fff; padding: 3rem clamp(1.5rem, 5vw, 3.75rem); display: flex; flex-direction: column; justify-content: center; }
.login-form h2 { font-size: 1.5rem; font-weight: 800; }
@media (max-width: 991.98px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-side { padding: 1.75rem 1.5rem; gap: 1rem; }
  .login-side h1 { font-size: 1.5rem; }
  .login-side .alur, .login-side .kaki, .login-side .lead-sm { display: none; }
  .login-form { justify-content: flex-start; padding: 2rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .sidebar-shell, .topbar, .nav-bawah, .no-print { display: none !important; }
  .content { padding: 0; max-width: none; }
  .panel { border-color: #999; }
}
