body{background:#f3f6fb;color:#1f2937}.app-shell{min-height:100vh;display:flex}.sidebar{width:280px;background:linear-gradient(180deg,#0f172a,#1e3a8a);color:#fff;position:fixed;top:0;bottom:0;left:0;z-index:1040;display:flex;flex-direction:column;box-shadow:8px 0 30px rgba(15,23,42,.15)}.brand{display:flex;align-items:center;gap:.75rem;padding:1.25rem 1.1rem}.brand-logo{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:rgba(255,255,255,.15)}.brand-title{font-weight:800;line-height:1}.brand-subtitle{font-size:.85rem;opacity:.78}.sidebar-user{margin:.25rem 1rem 1rem;padding:.85rem;border-radius:16px;background:rgba(255,255,255,.1);display:flex;gap:.75rem;align-items:center}.sidebar-user small{display:block;color:rgba(255,255,255,.75)}.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#1d4ed8;font-weight:800}.sidebar-nav{padding:.35rem .9rem;gap:.25rem}.sidebar .nav-link{color:rgba(255,255,255,.82)}.sidebar .nav-link:hover,.sidebar .nav-link.active{background:rgba(255,255,255,.14);color:#fff}.sidebar-footer{margin-top:auto;padding:1rem}.app-main{margin-left:280px;width:calc(100% - 280px);min-height:100vh}.topbar{height:72px;background:rgba(255,255,255,.88);backdrop-filter:blur(8px);position:sticky;top:0;z-index:1020;display:flex;align-items:center;gap:1rem;padding:0 1.5rem}.content-wrap{padding:1.5rem}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.page-heading h1{font-size:1.65rem;font-weight:800;margin-bottom:.25rem}.stat-card{overflow:hidden;border:0;box-shadow:0 10px 28px rgba(15,23,42,.07)}.stat-card .icon-wrap{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;background:#eff6ff;color:#2563eb}.stat-card.success .icon-wrap{background:#ecfdf5;color:#059669}.stat-card.warning .icon-wrap{background:#fffbeb;color:#d97706}.stat-card.danger .icon-wrap{background:#fef2f2;color:#dc2626}.bg-primary-soft{background:#eaf2ff!important}.filter-card{border:0;box-shadow:0 8px 26px rgba(15,23,42,.06)}.table thead th{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:#6b7280;background:#f8fafc;white-space:nowrap}.table td{vertical-align:middle}.saldo-positive{color:#059669;font-weight:700}.saldo-negative{color:#dc2626;font-weight:700}.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top left,#dbeafe,#eff6ff 25%,#f8fafc 55%)}.login-card{width:min(100%,440px);border:0;border-radius:24px;box-shadow:0 20px 60px rgba(15,23,42,.16)}.login-logo{width:70px;height:70px;margin:0 auto 1rem;border-radius:22px;display:grid;place-items:center;background:linear-gradient(135deg,#2563eb,#0f172a);color:#fff}.required:after{content:" *";color:#dc3545}.empty-state{padding:2rem;text-align:center;color:#6b7280}.amount-in{color:#059669;font-weight:700}.amount-out{color:#dc2626;font-weight:700}.sidebar-backdrop{display:none}.badge-role{background:#eef2ff;color:#3730a3}.budget-box{border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;background:#fff}.budget-meta{background:#f8fafc;padding:1rem;border-bottom:1px solid #e5e7eb}.budget-meta .row>div{margin-bottom:.35rem}.readonly-note{border-left:4px solid #0d6efd;background:#eff6ff;padding:.9rem 1rem;border-radius:.75rem;color:#1e40af}@media(max-width:991.98px){.sidebar{transform:translateX(-100%);transition:.2s ease}.sidebar.show{transform:translateX(0)}.sidebar-backdrop.show{display:block;position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:1030}.app-main{margin-left:0;width:100%}.content-wrap{padding:1rem}.page-heading{flex-direction:column}.topbar{padding:0 1rem}}@media(max-width:575.98px){.card-body{padding:1rem}.btn{width:auto}.table>:not(caption)>*>*{padding:.55rem}.content-wrap{padding:.8rem}.page-heading h1{font-size:1.35rem}}

/* Interaksi dan animasi ringan */
@keyframes fadeSlideUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes softPulse{0%{box-shadow:0 0 0 0 rgba(37,99,235,.22)}70%{box-shadow:0 0 0 12px rgba(37,99,235,0)}100%{box-shadow:0 0 0 0 rgba(37,99,235,0)}}
.content-wrap>.alert,.page-heading,.filter-card,.content-wrap>.card,.content-wrap>.row{animation:fadeSlideUp .38s ease both}.content-wrap>.card:nth-of-type(2),.content-wrap>.row:nth-of-type(2){animation-delay:.05s}.content-wrap>.card:nth-of-type(3){animation-delay:.1s}.card{border-radius:18px;border:0;box-shadow:0 8px 26px rgba(15,23,42,.06);transition:transform .2s ease,box-shadow .2s ease}.card:hover{transform:translateY(-2px);box-shadow:0 14px 36px rgba(15,23,42,.1)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;border-radius:12px;transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease}.btn:hover{transform:translateY(-1px)}.btn-primary{box-shadow:0 8px 18px rgba(13,110,253,.18)}.btn-primary:focus{animation:softPulse .8s ease}.form-control,.form-select{border-radius:12px;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.form-control:focus,.form-select:focus{transform:translateY(-1px);box-shadow:0 0 0 .22rem rgba(13,110,253,.12)}.table tbody tr{transition:background-color .16s ease,transform .16s ease}.table tbody tr:hover{background:#f8fbff;transform:scale(1.002)}.sidebar .nav-link{border-radius:14px;display:flex;align-items:center;gap:.65rem;transition:background-color .16s ease,transform .16s ease}.sidebar .nav-link:hover{transform:translateX(4px)}.login-card{animation:fadeSlideUp .42s ease both}.login-logo{animation:softPulse 1.8s ease infinite}.icon{width:1em;height:1em;fill:currentColor;vertical-align:-.125em}.icon-xl{width:2.2rem;height:2.2rem}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Modal konfirmasi interaktif */
.app-confirm-modal .modal-content {
  border-radius: 1.25rem;
  animation: modalPop .18s ease-out;
}
.app-confirm-modal .modal-body {
  font-size: .98rem;
  color: #344054;
}
.confirm-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: 0 0 auto;
}
.confirm-icon-wrap .confirm-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.confirm-danger {
  background: rgba(220, 53, 69, .12);
  color: #dc3545;
}
.confirm-warning {
  background: rgba(255, 193, 7, .18);
  color: #b58100;
}
.confirm-primary {
  background: rgba(13, 110, 253, .12);
  color: #0d6efd;
}
.confirm-success {
  background: rgba(25, 135, 84, .12);
  color: #198754;
}
.confirm-secondary {
  background: rgba(108, 117, 125, .12);
  color: #6c757d;
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Pengaturan lembaga dan export anggaran */
.institution-logo-preview{max-width:96px;max-height:96px;object-fit:contain;border-radius:14px;border:1px solid #e5e7eb;padding:.35rem;background:#fff}.logo-placeholder{width:96px;height:96px;border:1px dashed #94a3b8;border-radius:16px;display:grid;place-items:center;color:#64748b;font-weight:800;background:#f8fafc}.kop-preview{border:1px solid #e5e7eb;border-radius:16px;padding:1rem;background:linear-gradient(180deg,#fff,#f8fafc)}.export-actions .btn{min-width:78px}.budget-box{transition:transform .2s ease,box-shadow .2s ease}.budget-box:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(15,23,42,.1)}
@media(max-width:575.98px){.export-actions{width:100%}.export-actions .btn{flex:1}}

/* Tampilan logout / keluar */
.sidebar-footer{padding:.85rem}.logout-sidebar-card{display:flex;align-items:center;gap:.75rem;text-decoration:none;color:#b42318;background:linear-gradient(135deg,#fff5f5,#fff);border:1px solid rgba(220,53,69,.14);border-radius:18px;padding:.75rem .8rem;box-shadow:0 10px 24px rgba(180,35,24,.08);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.logout-sidebar-card:hover{color:#9f1d14;transform:translateY(-2px);box-shadow:0 16px 32px rgba(180,35,24,.14);border-color:rgba(220,53,69,.24)}.logout-sidebar-icon{width:38px;height:38px;border-radius:14px;background:#dc3545;color:#fff;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;box-shadow:0 10px 20px rgba(220,53,69,.24)}.logout-sidebar-text{display:flex;flex-direction:column;line-height:1.15}.logout-sidebar-text small{font-size:.72rem;color:#667085;margin-top:.15rem}.logout-page{min-height:100vh;background:radial-gradient(circle at 10% 10%,rgba(13,110,253,.16),transparent 28%),radial-gradient(circle at 90% 20%,rgba(220,53,69,.13),transparent 30%),linear-gradient(135deg,#f7faff 0%,#eef4ff 52%,#fff7f7 100%);display:grid;place-items:center;padding:1.25rem;position:relative;overflow:hidden}.logout-bg-orb{position:absolute;border-radius:999px;filter:blur(1px);opacity:.7;animation:floatOrb 7s ease-in-out infinite}.logout-bg-orb-1{width:210px;height:210px;left:-70px;bottom:8%;background:rgba(13,110,253,.13)}.logout-bg-orb-2{width:260px;height:260px;right:-90px;top:5%;background:rgba(220,53,69,.11);animation-delay:-2s}.logout-wrap{position:relative;z-index:1;width:100%;max-width:640px}.logout-card{border-radius:28px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);animation:fadeSlideUp .42s ease both}.logout-card-shine{position:absolute;inset:-80px auto auto -80px;width:220px;height:220px;border-radius:999px;background:rgba(13,110,253,.08);pointer-events:none}.logout-icon{width:78px;height:78px;border-radius:26px;background:linear-gradient(135deg,#0d6efd,#6ea8fe);color:#fff;display:flex;align-items:center;justify-content:center;font-size:2rem;box-shadow:0 22px 36px rgba(13,110,253,.24);animation:softPulse 2.2s ease-in-out infinite}.logout-icon .icon{width:2.25rem;height:2.25rem}.letter-space{letter-spacing:.08em}.logout-user-card{max-width:430px;border:1px solid #e5e7eb;background:linear-gradient(135deg,#fff,#f8fafc);border-radius:22px;padding:1rem;display:flex;align-items:center;gap:1rem;box-shadow:0 12px 28px rgba(15,23,42,.07)}.logout-avatar{width:54px;height:54px;border-radius:18px;background:linear-gradient(135deg,#0d6efd,#198754);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.35rem;box-shadow:0 12px 22px rgba(13,110,253,.16);flex:0 0 auto}.min-w-0{min-width:0}.logout-actions .btn{border-radius:16px}.logout-note{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:.75rem 1rem;display:inline-block}.logout-page .app-confirm-modal .modal-content{border-radius:24px}@keyframes floatOrb{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(0,-18px,0) scale(1.04)}}
@media(max-width:575.98px){.logout-card .card-body{padding:1.35rem!important}.logout-icon{width:66px;height:66px;border-radius:22px}.logout-user-card{align-items:flex-start}.logout-actions .btn,.logout-actions form{width:100%}}

/* Tema aplikasi dari Pengaturan Lembaga */
body.theme-blue{--app-bg:#f3f6fb;--app-surface:#ffffff;--app-surface-soft:#f8fafc;--app-text:#1f2937;--app-muted:#6b7280;--app-border:#e5e7eb;--app-primary:#2563eb;--app-primary-rgb:37,99,235;--app-primary-soft:#eaf2ff;--app-primary-text:#1d4ed8;--app-sidebar-start:#0f172a;--app-sidebar-end:#1e3a8a;--app-success:#059669;--app-warning:#d97706;--app-danger:#dc2626;--app-shadow:rgba(15,23,42,.07)}
body.theme-green{--app-bg:#f2fbf7;--app-surface:#ffffff;--app-surface-soft:#f0fdf4;--app-text:#17231f;--app-muted:#617068;--app-border:#dcefe4;--app-primary:#059669;--app-primary-rgb:5,150,105;--app-primary-soft:#dcfce7;--app-primary-text:#047857;--app-sidebar-start:#052e1b;--app-sidebar-end:#047857;--app-success:#059669;--app-warning:#b45309;--app-danger:#dc2626;--app-shadow:rgba(6,78,59,.08)}
body.theme-purple{--app-bg:#f7f4ff;--app-surface:#ffffff;--app-surface-soft:#faf5ff;--app-text:#27213a;--app-muted:#6b6478;--app-border:#e7ddff;--app-primary:#7c3aed;--app-primary-rgb:124,58,237;--app-primary-soft:#ede9fe;--app-primary-text:#6d28d9;--app-sidebar-start:#27103f;--app-sidebar-end:#6d28d9;--app-success:#16a34a;--app-warning:#d97706;--app-danger:#dc2626;--app-shadow:rgba(88,28,135,.08)}
body.theme-gold{--app-bg:#fff9ed;--app-surface:#ffffff;--app-surface-soft:#fffbeb;--app-text:#2f2518;--app-muted:#75695d;--app-border:#f3dfbd;--app-primary:#b45309;--app-primary-rgb:180,83,9;--app-primary-soft:#fef3c7;--app-primary-text:#92400e;--app-sidebar-start:#3b2408;--app-sidebar-end:#92400e;--app-success:#15803d;--app-warning:#b45309;--app-danger:#b91c1c;--app-shadow:rgba(120,53,15,.08)}
body.theme-dark{--app-bg:#0b1120;--app-surface:#111827;--app-surface-soft:#0f172a;--app-text:#e5e7eb;--app-muted:#94a3b8;--app-border:#334155;--app-primary:#38bdf8;--app-primary-rgb:56,189,248;--app-primary-soft:#0c4a6e;--app-primary-text:#7dd3fc;--app-sidebar-start:#020617;--app-sidebar-end:#0f172a;--app-success:#34d399;--app-warning:#fbbf24;--app-danger:#fb7185;--app-shadow:rgba(0,0,0,.28)}
body[class*="theme-"]{background:var(--app-bg);color:var(--app-text);--bs-primary:var(--app-primary);--bs-primary-rgb:var(--app-primary-rgb)}
body[class*="theme-"] .sidebar{background:linear-gradient(180deg,var(--app-sidebar-start),var(--app-sidebar-end));box-shadow:8px 0 30px var(--app-shadow)}
body[class*="theme-"] .brand-logo,body[class*="theme-"] .login-logo{background:linear-gradient(135deg,var(--app-primary),var(--app-sidebar-start));color:#fff}
body[class*="theme-"] .avatar{color:var(--app-primary-text)}
body[class*="theme-"] .app-main{background:var(--app-bg)}
body[class*="theme-"] .topbar{background:color-mix(in srgb,var(--app-surface) 88%,transparent);border-bottom:1px solid var(--app-border)}
body[class*="theme-"] .card,body[class*="theme-"] .filter-card,body[class*="theme-"] .stat-card,body[class*="theme-"] .budget-box{background:var(--app-surface);color:var(--app-text);box-shadow:0 8px 26px var(--app-shadow)}
body[class*="theme-"] .card:hover,body[class*="theme-"] .budget-box:hover{box-shadow:0 14px 36px var(--app-shadow)}
body[class*="theme-"] .bg-white{background:var(--app-surface)!important}
body[class*="theme-"] .bg-light{background:var(--app-surface-soft)!important}
body[class*="theme-"] .text-muted{color:var(--app-muted)!important}
body[class*="theme-"] .text-primary{color:var(--app-primary-text)!important}
body[class*="theme-"] .bg-primary-soft{background:var(--app-primary-soft)!important;color:var(--app-primary-text)!important}
body[class*="theme-"] .btn-primary{--bs-btn-bg:var(--app-primary);--bs-btn-border-color:var(--app-primary);--bs-btn-hover-bg:var(--app-primary-text);--bs-btn-hover-border-color:var(--app-primary-text);box-shadow:0 8px 18px rgba(var(--app-primary-rgb),.18)}
body[class*="theme-"] .btn-outline-primary{--bs-btn-color:var(--app-primary-text);--bs-btn-border-color:var(--app-primary);--bs-btn-hover-bg:var(--app-primary);--bs-btn-hover-border-color:var(--app-primary)}
body[class*="theme-"] .form-control,body[class*="theme-"] .form-select{background:var(--app-surface);color:var(--app-text);border-color:var(--app-border)}
body[class*="theme-"] .form-control:focus,body[class*="theme-"] .form-select:focus{border-color:rgba(var(--app-primary-rgb),.5);box-shadow:0 0 0 .22rem rgba(var(--app-primary-rgb),.12)}
body[class*="theme-"] .table{--bs-table-bg:var(--app-surface);--bs-table-color:var(--app-text);--bs-table-border-color:var(--app-border)}
body[class*="theme-"] .table thead th{background:var(--app-surface-soft);color:var(--app-muted)}
body[class*="theme-"] .table tbody tr:hover{background:color-mix(in srgb,var(--app-primary-soft) 28%,var(--app-surface))}
body[class*="theme-"] .stat-card .icon-wrap{background:var(--app-primary-soft);color:var(--app-primary-text)}
body[class*="theme-"] .saldo-positive,body[class*="theme-"] .amount-in{color:var(--app-success)}
body[class*="theme-"] .saldo-negative,body[class*="theme-"] .amount-out{color:var(--app-danger)}
body[class*="theme-"] .readonly-note,body[class*="theme-"] .alert-primary{border-color:rgba(var(--app-primary-rgb),.18);background:color-mix(in srgb,var(--app-primary-soft) 82%,var(--app-surface));color:var(--app-primary-text)}
body[class*="theme-"] .kop-preview{background:linear-gradient(180deg,var(--app-surface),var(--app-surface-soft));border-color:var(--app-border)}
body[class*="theme-"] .login-page,body.login-page[class*="theme-"]{background:radial-gradient(circle at top left,rgba(var(--app-primary-rgb),.22),var(--app-primary-soft) 25%,var(--app-bg) 60%)}
body[class*="theme-"] .logout-page,body.logout-page[class*="theme-"]{background:radial-gradient(circle at 10% 10%,rgba(var(--app-primary-rgb),.18),transparent 28%),radial-gradient(circle at 90% 20%,rgba(220,53,69,.12),transparent 30%),linear-gradient(135deg,var(--app-bg) 0%,var(--app-primary-soft) 52%,var(--app-surface) 100%)}
body.theme-dark .modal-content,body.theme-dark .dropdown-menu{background:#111827;color:#e5e7eb;border-color:#334155}body.theme-dark .btn-light{background:#1f2937;border-color:#334155;color:#e5e7eb}body.theme-dark .alert-success{background:#052e1b;color:#bbf7d0;border-color:#14532d}body.theme-dark .alert-danger{background:#450a0a;color:#fecaca;border-color:#7f1d1d}body.theme-dark .form-text,body.theme-dark .small{color:#94a3b8}body.theme-dark .modal-header,body.theme-dark .modal-footer{border-color:#334155!important}body.theme-dark .logout-user-card,body.theme-dark .logout-note{background:#111827;border-color:#334155;color:#e5e7eb}
.theme-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.theme-radio{position:absolute;opacity:0;pointer-events:none}.theme-option-card{border:1px solid var(--app-border,#e5e7eb);border-radius:18px;padding:.85rem;display:flex;align-items:center;gap:.8rem;cursor:pointer;background:var(--app-surface,#fff);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.theme-option-card:hover{transform:translateY(-2px);box-shadow:0 12px 26px var(--app-shadow,rgba(15,23,42,.08))}.theme-radio:checked+.theme-option-card{border-color:var(--app-primary,#2563eb);box-shadow:0 0 0 .2rem rgba(var(--app-primary-rgb,37,99,235),.12)}.theme-option-content{display:flex;flex-direction:column;line-height:1.2;min-width:0}.theme-option-content small{margin-top:.2rem;color:var(--app-muted,#6b7280)}.theme-swatch{width:42px;height:42px;border-radius:15px;flex:0 0 auto;border:1px solid rgba(0,0,0,.08);box-shadow:inset 0 0 0 6px rgba(255,255,255,.2)}.theme-swatch-blue{background:linear-gradient(135deg,#0f172a,#2563eb)}.theme-swatch-green{background:linear-gradient(135deg,#052e1b,#059669)}.theme-swatch-purple{background:linear-gradient(135deg,#27103f,#7c3aed)}.theme-swatch-gold{background:linear-gradient(135deg,#3b2408,#b45309)}.theme-swatch-dark{background:linear-gradient(135deg,#020617,#38bdf8)}.theme-checkmark{margin-left:auto;width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:var(--app-primary-soft,#eaf2ff);color:var(--app-primary-text,#1d4ed8);font-weight:800;opacity:.35}.theme-radio:checked+.theme-option-card .theme-checkmark{opacity:1;background:var(--app-primary,#2563eb);color:#fff}.theme-preview-card{height:132px;border:1px solid var(--app-border);border-radius:18px;overflow:hidden;display:flex;background:var(--app-bg);box-shadow:0 12px 26px var(--app-shadow)}.theme-preview-sidebar{width:64px;background:linear-gradient(180deg,var(--app-sidebar-start),var(--app-sidebar-end))}.theme-preview-content{flex:1;padding:.8rem;background:var(--app-surface);display:flex;flex-direction:column;gap:.45rem}.theme-preview-top{height:16px;border-radius:999px;background:var(--app-primary-soft)}.theme-preview-line{height:12px;border-radius:999px;background:var(--app-surface-soft);border:1px solid var(--app-border)}.theme-preview-button{margin-top:auto;align-self:flex-start;border-radius:999px;background:var(--app-primary);color:#fff;font-size:.72rem;font-weight:700;padding:.32rem .65rem}.theme-preview-card.theme-dark .theme-preview-line{background:#0f172a}
@media(max-width:575.98px){.theme-option-grid{grid-template-columns:1fr}}
