:root { --sidebar-width: 250px; --primary: #1F4E79; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #f4f6f9; min-height: 100vh; }
#wrapper { min-height: 100vh; }
#sidebar { width: var(--sidebar-width); min-height: 100vh; position: sticky; top: 0; flex-shrink: 0; transition: margin-left .25s; }
#sidebar .nav-link { border-radius: .375rem; margin-bottom: 2px; padding: .55rem .85rem; font-size: .92rem; }
#sidebar .nav-link:hover { background: rgba(255,255,255,.1); }
#sidebar .nav-link.active { background: var(--primary); font-weight: 600; }
#sidebar.collapsed { margin-left: calc(-1 * var(--sidebar-width)); }
#page-content { min-width: 0; }
.card { border: none; box-shadow: 0 1px 3px rgba(0,0,0,.08); border-radius: .5rem; }
.card-header { background: #fff; border-bottom: 1px solid #eee; font-weight: 600; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #6c757d; font-weight: 600; white-space: nowrap; }
.table td { vertical-align: middle; font-size: .9rem; }
.bg-debit { background-color: #e8f5e9 !important; }
.bg-credit { background-color: #ffebee !important; }
.bg-balance { background-color: #e3f2fd !important; }
.stat-card { border-left: 4px solid var(--primary); }
.stat-card .stat-value { font-size: 1.35rem; font-weight: 700; color: var(--primary); }
.neraca-section { background: #e8f4fd; font-weight: 600; color: #1F4E79; }
.neraca-total { background: #fff3e0; font-weight: 700; }
.table-number { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1F4E79, #2E86AB); }
.login-card { width: 100%; max-width: 400px; border-radius: 1rem; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
@media (max-width: 768px) {
  #sidebar { position: fixed; z-index: 1040; height: 100%; margin-left: calc(-1 * var(--sidebar-width)); }
  #sidebar.show { margin-left: 0; }
}
@media print {
  #sidebar, .navbar, footer, .no-print { display: none !important; }
  #page-content { margin: 0 !important; }
}
