/* ==========================================================================
   Tema Akuntansi Basic -- mengikuti contoh-ui.jpg:
   sidebar kiri "kaca" (glass), latar krem-hangat bergradasi, kartu putih
   transparan, sudut membulat besar, aksen oranye.
   ========================================================================== */
:root {
  --bg-1: #EFEDEA;
  --bg-2: #F6F0E7;
  --bg-3: #FBE9D0;
  --surface: rgba(255, 255, 255, .72);
  --surface-solid: #FFFFFF;
  --surface-2: #FAF7F3;
  --line: #ECE6DE;
  --line-2: #F2EDE6;
  --ink: #1D1B19;
  --ink-2: #3F3A35;
  --muted: #7A736B;
  --muted-2: #A39B92;

  /* Primary oranye. --brand = isian tombol/menu aktif (teks putih),
     --brand-ink = teks oranye di atas latar terang (kontras AA). */
  --brand: #CF600A;
  --brand-2: #B4520A;
  --brand-bright: #F08A24;
  --brand-soft: #FDEEDD;
  --brand-ink: #A44C08;
  --dark: #26231F;

  --ok: #16A34A;   --ok-soft: #E6F6EC;   --ok-ink: #15803D;
  --warn: #D97706; --warn-soft: #FEF3E2; --warn-ink: #B45309;
  --dang: #E5484D; --dang-soft: #FDECEC; --dang-ink: #C0262D;
  --info: #3B8FD9; --info-soft: #E7F1FB; --info-ink: #1F6AAE;
  --grey-soft: #F3EFEA;

  --radius: 18px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, .05);
  --shadow: 0 2px 10px -2px rgba(60, 40, 20, .08);
  --shadow-lg: 0 18px 40px -12px rgba(60, 40, 20, .22), 0 4px 10px -4px rgba(60, 40, 20, .08);
  --ring: 0 0 0 3px rgba(207, 96, 10, .16);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sidebar-w: 258px;
}

* { box-sizing: border-box; }
html { background: var(--bg-1); }
body {
  font-family: var(--font); color: var(--ink); font-size: 13.5px; -webkit-font-smoothing: antialiased; min-height: 100vh;
  background: linear-gradient(170deg, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%) fixed;
}
a { color: var(--brand-ink); text-decoration: none; }
a:hover { color: var(--brand-2); }
.mono { font-family: var(--mono); font-size: .92em; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.text-muted-2 { color: var(--muted) !important; }
.text-ok { color: var(--ok-ink) !important; }
.text-dang { color: var(--dang-ink) !important; }
.fw-800 { font-weight: 800; }

/* ============================== SHELL ============================== */
.app-shell { display: flex; gap: 18px; padding: 18px; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); position: sticky; top: 18px; height: calc(100vh - 36px);
  display: flex; flex-direction: column; padding: 18px 14px; border-radius: 22px;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand)); color: #fff; font-size: 19px;
  box-shadow: 0 6px 14px -6px rgba(207, 96, 10, .7);
}
.brand-mark.logo { background: transparent; box-shadow: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -.4px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.brand-sub { font-size: 11px; color: var(--muted); font-weight: 600; }

.side-scroll { flex: 1 1 auto; overflow-y: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; }
.side-label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); padding: 12px 10px 8px; }
.side-link {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; margin-bottom: 3px;
  border-radius: 12px; border: 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 13.5px; text-align: left;
  transition: background .15s, color .15s;
}
.side-link > i:first-child { font-size: 16px; color: var(--muted); width: 18px; text-align: center; }
.side-link:hover { background: rgba(255, 255, 255, .8); color: var(--ink); }
.side-link.active {
  background: linear-gradient(135deg, var(--brand-bright) -30%, var(--brand) 70%); color: #fff; font-weight: 700;
  box-shadow: 0 8px 18px -8px rgba(207, 96, 10, .75);
}
.side-link.active > i:first-child { color: #fff; }
.side-link .caret { margin-left: auto; font-size: 11px; color: var(--muted-2); transition: transform .2s; }
.side-link[aria-expanded="true"] .caret { transform: rotate(180deg); }
.side-link.open-parent { color: var(--ink); background: rgba(255, 255, 255, .6); }
.side-link.open-parent > i:first-child { color: var(--brand-ink); }
.side-sub { padding: 2px 0 6px 22px; position: relative; }
.side-sub::before { content: ''; position: absolute; left: 21px; top: 4px; bottom: 10px; width: 1px; background: var(--line); }
.side-sub a {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px 7px 16px; border-radius: 10px; font-size: 13px; font-weight: 500;
  color: var(--ink-2); position: relative;
}
.side-sub a:hover { background: rgba(255, 255, 255, .8); color: var(--ink); }
.side-sub a.active { color: var(--brand-ink); font-weight: 700; background: var(--brand-soft); }
.side-sub a.active::before { content: ''; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--brand); }
/* Level 3: daftar laporan per kelompok */
.side-sub .side-sub-toggle .caret { margin-left: auto; font-size: 10px; color: var(--muted-2); transition: transform .2s; }
.side-sub .side-sub-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.side-sub .side-sub-toggle.open-parent { color: var(--ink); font-weight: 700; }
.side-sub2 { padding: 0 0 4px 14px; }
.side-sub .side-sub2 a { padding: 5px 10px 5px 12px; font-size: 12.5px; color: var(--muted); }
.side-sub .side-sub2 a:hover { color: var(--ink); }
.side-sub .side-sub2 a.active { color: var(--brand-ink); }
.side-sub .side-sub2 a.active::before { left: 2px; }
.side-sub .sep { height: 1px; background: var(--line-2); margin: 5px 10px 5px 16px; }
.side-sub .lock { margin-left: auto; font-size: 10px; color: var(--muted-2); }
.side-logout { color: var(--dang-ink) !important; }
.side-logout > i:first-child { color: var(--dang-ink) !important; }

.side-card {
  margin-top: 12px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .9);
}
.side-card .t { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.side-card .t i { color: var(--brand); }
.side-card p { font-size: 11.5px; color: var(--muted); margin: 6px 0 10px; line-height: 1.45; }
.side-card .btn-dark-pill { width: 100%; }

/* ============================== TOPBAR ============================== */
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 20px;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm); position: sticky; top: 18px; z-index: 1020; transition: box-shadow .2s, background-color .2s;
}
/* Celah di atas (::before) & di bawah (::after) topbar ditutup latar halaman (gradien fixed yg sama dgn body)
   -> konten yg di-scroll hilang 18px sebelum menyentuh topbar, jarak topbar-konten tetap spt saat belum di-scroll */
.topbar::before, .topbar::after {
  content: ''; position: absolute; left: -1px; right: -1px; pointer-events: none;
  background: linear-gradient(170deg, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%) fixed;
}
.topbar::before { bottom: 100%; height: 20px; }
.topbar::after { top: calc(100% + 1px); height: 17px; }
/* Saat halaman di-scroll: topbar solid (konten tidak tembus) + bayangan (kelas dipasang main.js) */
.topbar.mengambang { background: var(--surface-solid); box-shadow: 0 10px 28px -12px rgba(60, 40, 20, .28), 0 2px 6px -2px rgba(60, 40, 20, .08); }
.topbar-hello { min-width: 0; }
.topbar-hello h1 { font-size: 19px; font-weight: 800; letter-spacing: -.5px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-hello p { margin: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-solid);
  color: var(--ink-2); display: grid; place-items: center; font-size: 17px; transition: background .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.menu-toggle { display: none; }
.count-badge {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--dang); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
}
.periode-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--surface-solid); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
}
.periode-chip i { color: var(--brand); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-solid); color: var(--ink); }
.user-chip:hover { color: var(--ink); background: var(--surface-2); }
.user-chip .avatar { width: 34px; height: 34px; border-radius: 10px; }
.user-chip-name { font-size: 12.5px; font-weight: 800; line-height: 1.15; }
.user-chip-role { font-size: 11px; color: var(--muted); }
.dropdown-menu { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; font-size: 13px; }
.dropdown-item { border-radius: 9px; padding: 8px 10px; display: flex; align-items: center; gap: 9px; color: var(--ink-2); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--surface-2); color: var(--ink); }
.dropdown-item.text-danger:hover { background: var(--dang-soft); }

.notif-panel { width: 330px; padding: 0; overflow: hidden; }
.notif-head { padding: 12px 16px; font-weight: 800; border-bottom: 1px solid var(--line-2); }
.notif-empty { padding: 24px 16px; text-align: center; color: var(--muted); font-size: 12.5px; }
.notif-item { display: flex; gap: 10px; padding: 11px 16px; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--surface-2); color: var(--ink); }
.notif-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 32px; background: var(--warn-soft); color: var(--warn); }
.notif-ico.dang { background: var(--dang-soft); color: var(--dang); }
.notif-title { font-weight: 700; font-size: 12.5px; }
.notif-sub { font-size: 11.5px; color: var(--muted); }

/* ============================== CONTENT ============================== */
.content { flex: 1 1 auto; }
.app-footer { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0 2px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.eyebrow { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -.8px; margin: 0; color: var(--ink); }
.page-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.panel {
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.panel-title { font-size: 17px; font-weight: 800; letter-spacing: -.4px; margin: 0; display: flex; align-items: center; gap: 8px; }
.panel-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.panel-body { padding: 18px 20px; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.dots-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.dots-btn:hover { background: var(--surface-2); color: var(--ink); }

.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 18px; }
.searchbox { position: relative; flex: 0 1 280px; }
.searchbox > i { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-size: 14px; pointer-events: none; }
.searchbox input, .searchbox .form-control {
  width: 100%; height: 40px; padding: 0 38px 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-solid);
  font-size: 13px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.searchbox input:focus { border-color: var(--brand); box-shadow: var(--ring); }
.toolbar-row .form-select, .toolbar-row .form-control:not(.searchbox *) { height: 40px; border-radius: 12px; border-color: var(--line); font-size: 13px; background-color: var(--surface-solid); }
.toolbar-row .form-select { width: auto; min-width: 140px; }
.toolbar-row input[type=date], .toolbar-row input[type=month] { width: auto; }
.toolbar-sep { width: 1px; height: 26px; background: var(--line); }

.segmented { display: inline-flex; background: var(--grey-soft); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.segmented a, .segmented button {
  border: 0; background: transparent; padding: 7px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.segmented a:hover, .segmented button:hover { color: var(--ink); }
.segmented .active { background: var(--surface-solid); box-shadow: var(--shadow); color: var(--ink); font-weight: 700; }
.segmented .cnt { color: var(--muted-2); font-weight: 600; }

/* ============================== TABLE ============================== */
.table-wrap { overflow-x: auto; padding: 0 18px; }
.table-wrap.sticky-head { max-height: calc(100vh - 290px); min-height: 220px; overflow: auto; }
.table-wrap.sticky-head .table thead th { position: sticky; top: 0; z-index: 2; }
.table { margin: 0; border-collapse: separate; border-spacing: 0; font-size: 13px; --bs-table-bg: transparent; }
.table thead th {
  background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; padding: 12px; border: 0;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.table thead th:first-child { border-left: 1px solid var(--line-2); border-radius: 12px 0 0 12px; }
.table thead th:last-child { border-right: 1px solid var(--line-2); border-radius: 0 12px 12px 0; }
.table tbody td { padding: 12px; vertical-align: middle; border-bottom: 1px solid var(--line-2); color: var(--ink); background: transparent; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(253, 238, 221, .35); }
.table tfoot td, .table tfoot th { padding: 12px; border-top: 2px solid var(--line); font-weight: 800; background: transparent; }
.table .sub { font-size: 11.5px; color: var(--muted); }
.table .strong { font-weight: 700; }
.table td.dataTables_empty { text-align: center; color: var(--muted); padding: 44px 12px; }
table.dataTable thead .sorting, table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc { cursor: pointer; }
table.dataTable thead .sorting:after { content: ' \2195'; opacity: .35; }
table.dataTable thead .sorting_asc:after { content: ' \2191'; opacity: .8; }
table.dataTable thead .sorting_desc:after { content: ' \2193'; opacity: .8; }
.table-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 18px; }
.table-info { font-size: 12.5px; color: var(--muted); }
.pagination { margin: 0; gap: 4px; flex-wrap: wrap; }
.pagination .page-link { border: 1px solid var(--line); border-radius: 9px !important; color: var(--ink-2); font-size: 12.5px; font-weight: 600; padding: 5px 11px; background: var(--surface-solid); }
.pagination .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-item.disabled .page-link { color: var(--muted-2); background: var(--surface-2); }
.pagination .page-link:focus { box-shadow: var(--ring); }
.pagination .page-link:hover { color: var(--brand-ink); background: var(--brand-soft); }

/* ============================== PILL / BADGE ============================== */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill .bullet { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--ok-soft); color: var(--ok-ink); }
.pill-warn { background: var(--warn-soft); color: var(--warn-ink); }
.pill-dang { background: var(--dang-soft); color: var(--dang-ink); }
.pill-info { background: var(--info-soft); color: var(--info-ink); }
.pill-brand { background: var(--brand-soft); color: var(--brand-ink); }
.pill-grey { background: var(--grey-soft); color: var(--muted); }
.dot-status { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12.5px; }
.dot-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tag-code { font-family: var(--mono); font-size: 11.5px; background: var(--grey-soft); color: var(--ink-2); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 800; color: #fff; flex: 0 0 auto; }
.av-1 { background: #F08A24; } .av-2 { background: #10B981; } .av-3 { background: #3B8FD9; }
.av-4 { background: #E5484D; } .av-5 { background: #8B5CF6; } .av-6 { background: #A16207; }
.type-ico { width: 30px; height: 30px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 14px; flex: 0 0 30px; }
.type-ico.in { background: var(--ok-soft); color: var(--ok); }
.type-ico.out { background: var(--dang-soft); color: var(--dang); }
.type-ico.neutral { background: var(--brand-soft); color: var(--brand); }

/* ============================== BUTTONS ============================== */
.btn-brand, .btn-ghost, .btn-save, .btn-dang-ghost, .btn-dark-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px;
  border-radius: 12px; font-weight: 700; font-size: 13px; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; white-space: nowrap; text-decoration: none;
}
.btn-brand, .btn-save { background: var(--brand); color: #fff; box-shadow: 0 8px 16px -10px rgba(207, 96, 10, .9); }
.btn-brand:hover, .btn-save:hover { background: var(--brand-2); color: #fff; }
.btn-brand:active, .btn-save:active { transform: translateY(1px); }
.btn-save:disabled, .btn-brand:disabled { opacity: .6; cursor: not-allowed; }
.btn-ghost { background: var(--surface-solid); color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-ghost.sm, .btn-brand.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn-dang-ghost { background: var(--dang-soft); color: var(--dang-ink); }
.btn-dang-ghost:hover { background: var(--dang); color: #fff; }
.btn-dark-pill { background: var(--dark); color: #fff; border-radius: 10px; }
.btn-dark-pill:hover { background: #000; color: #fff; }
.btn-icon-sm {
  width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-solid);
  display: inline-grid; place-items: center; font-size: 13.5px; color: var(--ink-2); cursor: pointer; transition: all .15s; text-decoration: none;
}
.btn-icon-sm:hover { background: var(--surface-2); color: var(--ink); }
.btn-icon-sm.warn:hover { background: var(--warn-soft); color: var(--warn-ink); border-color: #F5D9B0; }
.btn-icon-sm.dang:hover { background: var(--dang-soft); color: var(--dang-ink); border-color: #F6C9CA; }
.btn-icon-sm.info:hover { background: var(--brand-soft); color: var(--brand-ink); border-color: #F4CFA6; }
.btn-icon-sm.ok { color: var(--ok-ink); }
.btn-icon-sm.ok:hover { background: var(--ok-soft); color: var(--ok-ink); border-color: #BFE5CC; }
.baris-tandai > td { background: var(--brand-soft); }
/* Progress pesanan (qty terkirim / diterima) */
.progress-mini { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin-bottom: 3px; }
.progress-mini > span { display: block; height: 100%; background: var(--ok); border-radius: 99px; }

/* ============================== FORM ============================== */
.form-label-custom { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.form-label-custom code { color: var(--dang); font-size: 12px; }
.form-control-custom, .form-select-custom {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-solid);
  font-size: 13.5px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; font-family: var(--font);
}
textarea.form-control-custom { height: auto; min-height: 70px; padding: 10px 12px; resize: vertical; }
.form-select-custom {
  appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%237A736B' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 11px;
}
.form-control-custom:focus, .form-select-custom:focus { border-color: var(--brand); box-shadow: var(--ring); }
.form-control-custom[readonly] { background: var(--surface-2); color: var(--ink-2); }
.form-control-custom.text-end { text-align: right; }
.form-hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.form-section-title { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin: 4px 0 12px; display: flex; align-items: center; gap: 8px; }
.form-section-title::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.input-group-custom { display: flex; }
.input-group-custom .addon { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; font-weight: 700; color: var(--muted); border-radius: 11px 0 0 11px; border-right: 0; }
.input-group-custom .addon.end { border-radius: 0 11px 11px 0; border-right: 1px solid var(--line); border-left: 0; }
.input-group-custom .form-control-custom { border-radius: 0 11px 11px 0; }
.input-group-custom .form-control-custom:first-child { border-radius: 11px 0 0 11px; }
.switch-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-solid); cursor: pointer; margin: 0; }
.switch-row input { width: 17px; height: 17px; accent-color: var(--brand); }

/* Select2 disesuaikan tema */
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single { height: 40px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; background: var(--surface-solid); }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 38px; padding-left: 12px; padding-right: 30px; color: var(--ink); font-size: 13.5px; width: 100%; }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--muted-2); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 38px; right: 6px; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--brand); box-shadow: var(--ring); }
.select2-dropdown { border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px; }
.select2-search--dropdown { padding: 8px; }
.select2-container--default .select2-search--dropdown .select2-search__field { border: 1px solid var(--line); border-radius: 8px; height: 34px; padding: 0 10px; outline: none; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--brand-soft); color: var(--ink); }
.select2-container--default .select2-results__option[aria-selected=true] { background: var(--grey-soft); }
.select2-container--default .select2-results__group { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.select2-results__option { padding: 7px 10px; }
.s2-opt { display: flex; flex-direction: column; line-height: 1.25; }
.s2-opt b { font-weight: 700; font-size: 13px; }
.s2-opt span { font-size: 11.5px; color: var(--muted); }

/* ============================== MODAL ============================== */
.modal-content { border: 0; border-radius: 20px; box-shadow: var(--shadow-lg); background: #FFFDFB; }
.modal-header { border-bottom: 1px solid var(--line-2); padding: 16px 22px; }
.modal-title-custom { font-size: 16px; font-weight: 800; letter-spacing: -.3px; margin: 0; display: flex; align-items: center; gap: 9px; }
.modal-title-custom .ico { width: 32px; height: 32px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-size: 15px; }
.modal-backdrop.show { opacity: .35; }
.modal-footer { border-top: 1px solid var(--line-2); }

/* ============================== FORM TRANSAKSI ============================== */
.trx-modal .modal-dialog { max-width: 1240px; }
.trx-modal .modal-content { background: #F7F3EE; overflow: hidden; }
.trx-head { display: flex; align-items: center; gap: 14px; padding: 16px 22px; background: var(--surface-solid); border-bottom: 1px solid var(--line); }
.trx-head .trx-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: linear-gradient(135deg, var(--brand-bright), var(--brand)); color: #fff; box-shadow: 0 8px 16px -8px rgba(207, 96, 10, .8); }
.trx-head .trx-title { font-size: 17px; font-weight: 800; letter-spacing: -.3px; margin: 0; }
.trx-head .trx-sub { font-size: 12px; color: var(--muted); }
.trx-head .no-chip { margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 700; background: var(--brand-soft); color: var(--brand-ink); padding: 6px 12px; border-radius: 999px; }
.trx-body { padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; max-height: calc(100vh - 210px); overflow-y: auto; }
.trx-body.full { grid-template-columns: minmax(0, 1fr); }
.trx-card { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.trx-card + .trx-card { margin-top: 16px; }
.trx-items-wrap { overflow-x: auto; }
.trx-items { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 720px; }
.trx-items thead th {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 9px 8px;
  background: var(--surface-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.trx-items thead th:first-child { border-left: 1px solid var(--line-2); border-radius: 10px 0 0 10px; }
.trx-items thead th:last-child { border-right: 1px solid var(--line-2); border-radius: 0 10px 10px 0; }
.trx-items tbody td { padding: 8px 5px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.trx-items tbody tr:last-child td { border-bottom: 0; }
.trx-items .form-control-custom { height: 36px; font-size: 13px; padding: 0 9px; }
.trx-items .form-select-custom { height: 36px; font-size: 13px; padding: 0 26px 0 9px; background-position: right 8px center; }
.trx-items .select2-container--default .select2-selection--single { height: 36px; }
.trx-items .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 34px; font-size: 13px; }
.trx-items .select2-container--default .select2-selection--single .select2-selection__arrow { height: 34px; }
.trx-items .row-no { width: 30px; text-align: center; color: var(--muted-2); font-weight: 700; font-size: 12px; }
.trx-items .jumlah-cell { font-weight: 700; text-align: right; white-space: nowrap; padding-right: 10px; font-variant-numeric: tabular-nums; }
.trx-items .info-cell { font-size: 11.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.trx-items .info-cell.kurang { color: var(--dang-ink); font-weight: 700; }
.btn-add-row {
  width: 100%; margin-top: 10px; height: 42px; border: 1.5px dashed #E8C9A6; border-radius: 12px; background: transparent;
  color: var(--brand-ink); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.btn-add-row:hover { background: var(--brand-soft); border-color: var(--brand); }
.trx-summary { position: sticky; top: 0; }
.sum-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--ink-2); }
.sum-row b { font-variant-numeric: tabular-nums; color: var(--ink); }
.sum-row .form-control-custom, .sum-row .form-select-custom { height: 34px; width: 120px; text-align: right; font-size: 13px; }
.sum-row .form-select-custom { width: 96px; text-align: left; }
.sum-sep { height: 1px; background: var(--line); margin: 8px 0; }
.trx-total { margin-top: 12px; border-radius: 14px; padding: 16px; background: linear-gradient(135deg, var(--brand-bright) -20%, var(--brand) 60%, var(--brand-2) 100%); color: #fff; }
.trx-total .lbl { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; opacity: .85; }
.trx-total .val { font-size: 25px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; word-break: break-all; }
.trx-total .terbilang { font-size: 11.5px; opacity: .9; margin-top: 2px; font-style: italic; }
.trx-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; background: var(--surface-solid); border-top: 1px solid var(--line); }
.balance-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 11px; font-size: 12.5px; font-weight: 700; margin-top: 10px; }
.balance-bar.ok { background: var(--ok-soft); color: var(--ok-ink); }
.balance-bar.no { background: var(--dang-soft); color: var(--dang-ink); }
.alert-soft { display: flex; gap: 9px; align-items: flex-start; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 12.5px; line-height: 1.5; }
.alert-soft.warn { background: var(--warn-soft); color: var(--warn-ink); }
.alert-soft.info { background: var(--info-soft); color: var(--info-ink); }
.alert-soft.dang { background: var(--dang-soft); color: var(--dang-ink); }
.alert-soft.ok { background: var(--ok-soft); color: var(--ok-ink); }
.jenis-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jenis-toggle input { display: none; }
.jenis-toggle label { display: flex; align-items: center; gap: 8px; justify-content: center; height: 40px; border: 1.5px solid var(--line); border-radius: 11px; font-weight: 700; cursor: pointer; color: var(--ink-2); background: var(--surface-solid); margin: 0; }
.jenis-toggle input:checked + label.masuk { border-color: var(--ok); background: var(--ok-soft); color: var(--ok-ink); }
.jenis-toggle input:checked + label.keluar { border-color: var(--dang); background: var(--dang-soft); color: var(--dang-ink); }
.jenis-toggle input:checked + label.pilih { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }

/* Interface perkiraan: 1 card, kelompok 2 kolom, baris label | pilihan */
.intf-grid { columns: 2; column-gap: 40px; }   /* kolom mengalir: tinggi kedua kolom seimbang, tanpa ruang kosong */
.intf-grup { min-width: 0; break-inside: avoid; margin-bottom: 8px; }
.intf-judul { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--brand-ink);
  padding: 14px 0 8px; border-bottom: 1px solid var(--line); }
.intf-judul i { font-size: 14px; }
.intf-baris { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.intf-baris:last-child { border-bottom: 0; }
.intf-baris label { margin: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.intf-baris .nm { font-weight: 700; font-size: 13px; color: var(--ink); }
.intf-baris .ket { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
@media (max-width: 1199.98px) { .intf-grid { columns: 1; } }
@media (max-width: 575.98px) { .intf-baris { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Import data awal */
.rank { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 12.5px; font-weight: 800; }
.jenis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.jenis-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-solid); cursor: pointer; margin: 0; }
.jenis-card input { position: absolute; opacity: 0; pointer-events: none; }
.jenis-card .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--grey-soft); color: var(--ink-2); font-size: 16px; }
.jenis-card .nm { font-weight: 800; font-size: 13px; }
.jenis-card .sb { font-size: 11.5px; color: var(--muted); }
.jenis-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.jenis-card:has(input:checked) .ic { background: var(--brand); color: #fff; }
.jenis-card:has(input:focus-visible) { box-shadow: var(--ring); }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; border: 2px dashed var(--line); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; text-align: center; margin: 0; }
.dropzone:hover { border-color: var(--brand); }
.dropzone > i { font-size: 30px; color: var(--brand); }
.dropzone .nm { font-weight: 800; font-size: 14px; overflow-wrap: anywhere; }
.dropzone .sb { font-size: 12px; color: var(--muted); }

/* Faktur: potong uang muka (DP) */
.um-box { margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--brand); border-radius: var(--radius-sm); background: var(--brand-soft); }
.um-box .sum-row { padding: 4px 0; }
.um-tabel td { vertical-align: middle; }
.um-box .um-sisa { border-top: 1px solid rgba(207, 96, 10, .25); margin-top: 4px; padding-top: 8px; font-weight: 800; }
.um-box .um-sisa b { font-size: 15px; color: var(--brand-ink); }

/* Posting: rentang tanggal yg diproses */
.posting-rentang { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.posting-rentang span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.posting-rentang b { font-size: 14px; }
.posting-rentang > i { color: var(--brand-ink); font-size: 18px; }
.posting-rentang .jml { margin-left: auto; text-align: right; }

/* Panduan */
.panduan-list { margin: 10px 0 14px; padding-left: 20px; font-size: 13px; line-height: 1.75; color: var(--ink-2); }
.panduan-list li { margin-bottom: 4px; }
.panduan-list ul { padding-left: 18px; margin: 2px 0 0; }
.panduan-list.rapat { padding-left: 16px; font-size: 12.5px; line-height: 1.6; }
.panduan-list a, .panduan-card a { color: var(--brand-ink); font-weight: 700; }
.panduan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.panduan-card { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-solid); font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.panduan-card > i { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 15px; }
.panduan-intro { font-size: 13px; line-height: 1.7; color: var(--ink-2); margin: 10px 0 12px; }
.panduan-jadwal { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.panduan-jadwal > div { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line-2); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.panduan-jadwal span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 3px; }
.panduan-jadwal a { color: var(--brand-ink); font-weight: 700; }
.panduan-rumus { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; font-size: 13px; text-align: center; }
.panduan-rumus span { display: block; font-weight: 600; font-size: 11.5px; margin-top: 2px; }
.panduan-contoh { margin: 10px 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-size: 12.5px; }
.panduan-contoh > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 12px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.panduan-contoh > div:last-child { border-bottom: 0; }
.panduan-contoh b { font-variant-numeric: tabular-nums; }
.panduan-contoh .tot { background: var(--surface-2); }
.panduan-contoh .hasil { background: var(--ok-soft); color: var(--ok-ink); font-weight: 700; }
.panduan-card .nm { font-weight: 800; color: var(--ink); font-size: 13px; margin-bottom: 2px; }
/* Aktiva Tetap > Cara Pakai (contoh kasus) */
.cp-kasus { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-ink); font-size: 13.5px; line-height: 1.6; }
.cp-kasus > i { font-size: 26px; flex: 0 0 auto; }
.cp-kasus.kecil { font-size: 12.5px; padding: 10px 12px; }
.cp-kasus.kecil > i { font-size: 18px; }
.cp-alur { display: grid; grid-template-columns: repeat(4, 1fr); margin: 16px 0 18px; position: relative; }
.cp-alur::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 7px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--muted-2)); }
.cp-titik { position: relative; text-align: center; padding: 22px 6px 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.cp-titik::before { content: ""; position: absolute; top: 0; left: 50%; width: 17px; height: 17px; margin-left: -8.5px; border-radius: 50%; background: var(--surface-solid); border: 3px solid var(--brand); }
.cp-titik b { display: block; color: var(--ink); font-size: 13px; }
.cp-titik .tg { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--brand-ink); }
.cp-tab { display: flex; flex-wrap: wrap; }
.cp-tab button i { margin-right: 4px; }
.cp-langkah { margin: 8px 0 12px; padding-left: 20px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.cp-langkah > li { margin-bottom: 6px; }
.cp-isian { margin: 6px 0 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-size: 12.5px; }
.cp-isian > div { position: relative; padding: 5px 10px 5px 145px; border-bottom: 1px solid var(--line-2); }
.cp-isian > div:last-child { border-bottom: 0; }
.cp-isian span { position: absolute; left: 10px; top: 5px; color: var(--muted); }
.cp-isian .hl { background: var(--warn-soft); color: var(--warn-ink); }
.cp-isian .hl span { color: var(--warn-ink); font-weight: 700; }
.cp-jurnal { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 12.5px; }
.cp-jurnal th { background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; padding: 6px 10px; }
.cp-jurnal td { padding: 6px 10px; border-top: 1px solid var(--line-2); color: var(--ink); }
.cp-jurnal td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; width: 28%; }
.cp-jurnal tr.kr td:first-child { padding-left: 30px; color: var(--ink-2); }
.cp-tanpa { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok-ink); font-size: 13px; line-height: 1.6; }
.cp-tanpa > i { font-size: 20px; }
.cp-btn { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 12px; vertical-align: -5px; }
.cp-btn.ok { background: var(--ok-soft); color: var(--ok-ink); }
.cp-btn.warn { background: var(--warn-soft); color: var(--warn-ink); }
.cp-lihat { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); }
@media (max-width: 767px) {
  .cp-alur { grid-template-columns: 1fr; gap: 10px; }
  .cp-alur::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 3px; height: auto; background: linear-gradient(180deg, var(--brand), var(--muted-2)); }
  .cp-titik { text-align: left; padding: 0 0 0 28px; }
  .cp-titik::before { left: 0; margin-left: 0; }
  .cp-isian > div { padding-left: 120px; }
}

/* Detail (modal lihat) */
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.detail-grid .it .k { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.detail-grid .it .v { font-weight: 700; }

/* ============================== DASHBOARD ============================== */
.stat-card { background: var(--surface); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius); padding: 18px 18px 14px; height: 100%; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.stat-card .st-head { display: flex; align-items: center; gap: 10px; }
.stat-card .st-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; }
.stat-card .st-title { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.stat-card .st-val { font-size: 27px; font-weight: 800; letter-spacing: -1px; margin: 16px 0 8px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-card .st-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: auto; }
.stat-card .st-foot a { color: var(--muted); }
.stat-card .st-foot a:hover { color: var(--brand-ink); }
.trend-up { color: var(--ok-ink); font-weight: 700; }
.trend-down { color: var(--dang-ink); font-weight: 700; }
.ico-orange { background: var(--brand-soft); color: var(--brand); }
.ico-blue { background: var(--info-soft); color: var(--info); }
.ico-green { background: var(--ok-soft); color: var(--ok); }
.ico-red { background: var(--dang-soft); color: var(--dang); }
.chart-box { position: relative; height: 240px; }
.chart-box.sm { height: 200px; }
.big-val { font-size: 30px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.big-val small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 6px; letter-spacing: 0; }
.legend-inline { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--ink-2); }
.legend-inline .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.donut-center b { font-size: 22px; font-weight: 800; letter-spacing: -.6px; }
.donut-center span { font-size: 11.5px; color: var(--muted); }
.mini-list .it { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.mini-list .it:last-child { border-bottom: 0; }
.mini-list .nm { font-weight: 700; font-size: 13px; }
.mini-list .sb { font-size: 11.5px; color: var(--muted); }
.mini-list .vl { margin-left: auto; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.due-date { width: 46px; flex: 0 0 46px; text-align: center; border-radius: 12px; padding: 5px 0; background: var(--brand-soft); color: var(--brand-ink); line-height: 1.1; }
.due-date b { display: block; font-size: 17px; font-weight: 800; }
.due-date span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; }
.due-date.lewat { background: var(--dang-soft); color: var(--dang-ink); }

/* ============================== LAPORAN ============================== */
.tabel-lap td { padding-top: 8px; padding-bottom: 8px; }
.tabel-lap .lap-bagian td { font-weight: 800; color: var(--brand-ink); background: var(--brand-soft); border-top: 8px solid transparent; background-clip: padding-box; }
.tabel-lap .lap-sub td { font-weight: 700; color: var(--ink-2); }
.tabel-lap .lap-total td { font-weight: 800; background: var(--surface-2); border-top: 1px solid var(--line); }
.tabel-lap .lap-hasil td { font-weight: 800; font-size: 14.5px; border-top: 2px solid var(--ink); }
.tabel-lap .indent-1 { padding-left: 28px; }
.tabel-lap .indent-2 { padding-left: 44px; }
/* Neraca skontro: kiri Aktiva, kanan Pasiva; baris total sejajar (baris grid ke-2). HP: bertumpuk atas-bawah */
.neraca-skontro { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "a p" "ta tp"; column-gap: 24px; }
.neraca-skontro .ns-aktiva { grid-area: a; } .neraca-skontro .ns-pasiva { grid-area: p; }
.neraca-skontro .ns-tot-aktiva { grid-area: ta; } .neraca-skontro .ns-tot-pasiva { grid-area: tp; }
.neraca-skontro table { table-layout: fixed; margin-bottom: 0; }
.neraca-skontro th:nth-child(n+2), .neraca-skontro td:nth-child(n+2) { width: 25%; }
.neraca-skontro td:first-child { overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .neraca-skontro { grid-template-columns: 1fr; grid-template-areas: "a" "ta" "p" "tp"; }
  .neraca-skontro .ns-tot-aktiva { margin-bottom: 18px; }
  .neraca-skontro table { table-layout: auto; }
  .neraca-skontro th:nth-child(n+2), .neraca-skontro td:nth-child(n+2) { width: auto; white-space: nowrap; padding-left: 6px; padding-right: 6px; }
  .neraca-skontro td:first-child { padding-right: 4px; }
}
@media print {
  .neraca-skontro { grid-template-columns: 1fr 1fr; grid-template-areas: "a p" "ta tp"; column-gap: 14px; }
  .neraca-skontro th, .neraca-skontro td { font-size: 9.5px !important; padding: 3px 4px !important; }
  .neraca-skontro .lap-hasil td { font-size: 10.5px !important; }
  .neraca-skontro .indent-1 { padding-left: 12px !important; }
}
/* Laporan matriks (mis. Daftar Stock Harian): banyak kolom, rapat, kolom kode & nama tetap terlihat saat digeser */
.tabel-matriks { font-size: 12px; }
.tabel-matriks th, .tabel-matriks td { padding: 6px 7px !important; white-space: nowrap; }
.tabel-matriks th:nth-child(1), .tabel-matriks td:nth-child(1) { position: sticky; left: 0; z-index: 1; min-width: 92px; max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
.tabel-matriks th:nth-child(2), .tabel-matriks td:nth-child(2) { position: sticky; left: 92px; z-index: 1; max-width: 200px; overflow: hidden; text-overflow: ellipsis; box-shadow: 1px 0 0 var(--line); }
.tabel-matriks td:nth-child(1), .tabel-matriks td:nth-child(2) { background: var(--surface-solid); }
.tabel-matriks thead th:nth-child(1), .tabel-matriks thead th:nth-child(2) { z-index: 3; }
.tabel-matriks th:nth-child(4), .tabel-matriks td:nth-child(4) { background: var(--surface-2); font-weight: 700; }
.tabel-matriks td.sel-tandai { font-weight: 800; color: var(--brand-ink); }
.lap-cari-bar { margin: 4px 0 10px; }
.lap-cari-info { font-size: 12.5px; }
.tabel-rinci .rinci-grup td { background: var(--brand-soft); padding: 9px 12px; font-weight: 800; color: var(--brand-ink); }
.tabel-rinci .rinci-subtotal td { font-weight: 800; background: var(--surface-2); }
.tabel-rinci .rinci-grand td { font-weight: 800; font-size: 14px; background: var(--grey-soft); border-top: 2px solid var(--brand); }

/* ============================== EMPTY ============================== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state > i { font-size: 42px; color: var(--muted-2); display: block; margin-bottom: 12px; }
.empty-state h5 { font-weight: 800; color: var(--ink); letter-spacing: -.3px; }

/* ============================== TOAST ============================== */
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; width: 350px; max-width: calc(100vw - 40px); }
.toast-modern {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; opacity: 0; transform: translateX(24px);
  transition: opacity .25s, transform .25s, max-height .25s, padding .25s;
}
.toast-modern.show { opacity: 1; transform: none; }
.toast-modern.hide { opacity: 0; transform: translateX(24px); max-height: 0 !important; padding-top: 0; padding-bottom: 0; }
.toast-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 30px; font-size: 14px; }
.toast-msg { font-size: 13px; font-weight: 600; flex: 1; }
.toast-close { border: 0; background: transparent; color: var(--muted-2); font-size: 12px; }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; }

/* ============================== LOGIN ============================== */
.login-shell { min-height: 100vh; display: flex; padding: 18px; gap: 18px; }
.login-visual {
  flex: 1 1 55%; border-radius: 26px; position: relative; overflow: hidden; color: #fff; padding: 44px; align-items: flex-end;
  background: radial-gradient(900px 500px at 15% 10%, #F6A04D 0%, transparent 60%), radial-gradient(700px 500px at 90% 95%, #7A3A06 0%, transparent 60%), #C2570C;
}
.login-visual::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
}
.login-visual-inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; height: 100%; width: 100%; }
.login-visual-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; }
.login-visual-brand .brand-mark { background: rgba(255,255,255,.2); box-shadow: none; }
.login-visual h2 { font-size: 40px; font-weight: 800; letter-spacing: -1.3px; line-height: 1.1; max-width: 560px; }
.login-visual p { opacity: .88; max-width: 480px; font-size: 15px; }
.login-kpis { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.login-kpis .k { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 16px; padding: 12px 16px; backdrop-filter: blur(6px); }
.login-kpis .k b { display: block; font-size: 15px; }
.login-kpis .k span { font-size: 12px; opacity: .85; }
.login-form-side { flex: 1 1 45%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px; border-radius: 26px; background: var(--surface); border: 1px solid rgba(255,255,255,.9); }
.login-card { width: 100%; max-width: 380px; }
.login-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -.7px; margin-bottom: 4px; }

/* ============================== FOCUS RING ==============================
   Focus ring biru bawaan Bootstrap dihilangkan:
   - diklik pakai mouse      -> tanpa ring
   - navigasi keyboard (Tab) -> ring oranye tipis sesuai tema (:focus-visible)
   ======================================================================== */
button:focus:not(:focus-visible), a:focus:not(:focus-visible), [role="button"]:focus:not(:focus-visible), .btn:focus:not(:focus-visible) { outline: none; box-shadow: none; }
button:focus-visible, a:focus-visible, [role="button"]:focus-visible, .btn:focus-visible { outline: 2px solid rgba(207, 96, 10, .55); outline-offset: 2px; box-shadow: none; }
.btn-close { opacity: .45; }
.btn-close:hover { opacity: .8; }
.btn-close:focus { box-shadow: none; opacity: .45; }
.btn-close:focus-visible { box-shadow: none; outline: 2px solid rgba(207, 96, 10, .55); outline-offset: 2px; opacity: .8; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: var(--ring); }
.form-check-input:focus { border-color: var(--brand); box-shadow: var(--ring); }
.page-link:focus { box-shadow: none; }
.page-link:focus-visible { box-shadow: var(--ring); }

/* ============================== PRINT ============================== */
@media print {
  .sidebar, .topbar, .no-print, .toast-stack, .app-footer { display: none !important; }
  .app-shell { padding: 0; display: block; }
  body { background: #fff; font-size: 11px; }
  .panel { border: 0; box-shadow: none; background: #fff; backdrop-filter: none; }
  .table-wrap, .table-wrap.sticky-head { max-height: none; overflow: visible; padding: 0; }
  .table thead th { background: #eee !important; }
  .tabel-matriks th, .tabel-matriks td { font-size: 9px !important; padding: 2px 3px !important; position: static !important; box-shadow: none !important; }
}

/* ============================== RESPONSIVE ============================== */
.side-overlay { display: none; }
@media (max-width: 1199.98px) {
  .trx-body { grid-template-columns: minmax(0, 1fr); max-height: none; }
  .trx-summary { position: static; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .app-shell { padding: 12px; gap: 12px; }
  .sidebar { position: fixed; left: 12px; top: 12px; bottom: 12px; height: auto; z-index: 1045; transform: translateX(-120%); transition: transform .25s; background: rgba(255, 255, 255, .96); }
  body.side-open .sidebar { transform: none; }
  body.side-open .side-overlay { display: block; position: fixed; inset: 0; background: rgba(30, 20, 10, .3); z-index: 1040; }
  .icon-btn.menu-toggle { display: grid; }
  .topbar { top: 12px; padding: 10px 12px; }
  .topbar-hello h1 { font-size: 16px; }
  .page-title { font-size: 22px; }
  .periode-chip { display: none; }
  .trx-body { padding: 14px; }
  .login-visual { display: none !important; }
}
@media (max-width: 575.98px) {
  .topbar-hello p { display: none; }
  .user-chip .user-chip-text { display: none; }
  .user-chip { padding: 4px; }
  .trx-foot { flex-wrap: wrap; padding: 12px 14px; gap: 8px; }
  .trx-foot > * { flex: 1 1 auto; }
  .toolbar-row .searchbox { flex: 1 1 100%; }
  .stat-card .st-val { font-size: 23px; }
}

/* Filter laporan: label kecil di atas tiap kolom, lebar wajar (bukan full-width), tombol di kanan */
.filter-lap { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; padding: 16px 18px; }
.filter-lap .flt { display: flex; flex-direction: column; gap: 5px; width: 180px; min-width: 0; }
.filter-lap .flt-lebar { width: 270px; }
.filter-lap .flt-periode { width: auto; }
.filter-lap .flt-grup { width: 220px; }
.filter-lap .flt > label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0; }
.filter-lap .form-select, .filter-lap .form-control { height: 40px; width: 100%; border-radius: 11px; border-color: var(--line); font-size: 13px; background-color: var(--surface-solid); }
.filter-lap .periode { display: flex; align-items: center; gap: 6px; }
.filter-lap .periode .form-control { width: 148px; }
.filter-lap .periode span { font-size: 12px; color: var(--muted); }
.filter-lap .flt-aksi { display: flex; gap: 8px; margin-left: auto; }
.filter-lap .flt-aksi .btn-ghost, .filter-lap .flt-aksi .btn-brand { height: 40px; }
@media (max-width: 575.98px) {
  .filter-lap .flt, .filter-lap .flt-lebar { width: calc(50% - 7px); }
  .filter-lap .flt-periode, .filter-lap .flt-lebar { width: 100%; }
  .filter-lap .periode .form-control { width: auto; flex: 1 1 0; min-width: 0; }
  .filter-lap .flt-aksi { width: 100%; }
  .filter-lap .flt-aksi > * { flex: 1 1 0; justify-content: center; }
}

/* ---------- Jabatan & Hak Akses: matriks per menu (pages/jabatan/form.php) ---------- */
.tabel-akses { font-size: 13px; table-layout: fixed; width: 100%; }
.tabel-akses td:first-child { overflow-wrap: anywhere; }
.tabel-akses th { white-space: nowrap; }
.tabel-akses th:not(:first-child), .tabel-akses td:not(:first-child) { width: 64px; }
.tabel-akses td { padding-top: 7px; padding-bottom: 7px; vertical-align: middle; }
.tabel-akses .form-check-input { margin: 0; width: 17px; height: 17px; cursor: pointer; }
.tabel-akses .form-check-input:disabled { cursor: not-allowed; }
.tabel-akses tr.akses-grup td { background: var(--surface-2); font-weight: 700; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); }
.tabel-akses .akses-grup-set { float: right; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.tabel-akses .akses-grup-set a { margin-left: 8px; color: var(--brand); text-decoration: none; }
.tabel-akses .akses-grup-set a:hover { text-decoration: underline; }
@media (max-width: 575.98px) {
  .tabel-akses th:not(:first-child), .tabel-akses td:not(:first-child) { width: 44px; padding-left: 2px; padding-right: 2px; }
  .tabel-akses thead th { font-size: 10.5px; padding-left: 0; padding-right: 0; letter-spacing: 0; }
  .tabel-akses .akses-grup-set { float: none; display: block; margin-top: 2px; }
  .tabel-akses .akses-grup-set a { margin-left: 0; margin-right: 8px; }
}
