:root { --sidebar-w: 250px; }
body { background: #f5f6f8; }
.topbar { position: sticky; top: 0; z-index: 1030; height: 52px; }
.sidebar { width: var(--sidebar-w); min-height: calc(100vh - 52px); position: sticky; top: 52px; max-height: calc(100vh - 52px); overflow-y: auto; }
@media (min-width: 992px) { .sidebar { flex-shrink: 0; } }
.sidebar .nav-link { color: #333; padding: .28rem 1rem; border-left: 3px solid transparent; }
.sidebar .nav-link:hover { background: #e9ecef; }
.sidebar .nav-link.active { background: #e7f0ff; border-left-color: #0d6efd; color: #0d6efd; font-weight: 600; }
.sidebar .nav-link i { width: 1.3rem; display: inline-block; }
.nav-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #888; padding: .8rem 1rem .2rem; }
.main-content { min-width: 0; }
.card { border: 0; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.table-clickable tbody tr[data-href] { cursor: pointer; }
.table-clickable tbody tr[data-href]:hover { background: #f1f6ff; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-sm td, .table-sm th { padding: .3rem .45rem; }
.kpi .value { font-size: 1.45rem; font-weight: 600; }
.kpi .label { font-size: .8rem; color: #6c757d; text-transform: uppercase; letter-spacing: .04em; }
.page-header { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.page-header h1 { font-size: 1.4rem; margin: 0; }
.items-table input, .items-table select { min-width: 60px; }
.items-table td { vertical-align: top; }
.items-table .desc { min-width: 260px; }
.text-neg { color: #b02a37; }
.report-table td.indent-1 { padding-left: 1.5rem; }
.report-table td.indent-2 { padding-left: 2.5rem; }
.report-table tr.total td { font-weight: 700; border-top: 2px solid #333; }
.report-table tr.group td { font-weight: 600; background: #f8f9fa; }
.form-label { font-size: .85rem; margin-bottom: .15rem; color: #444; }
.helptext, .form-text { font-size: .75rem; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1d3557, #457b9d); }
.login-card { width: 380px; }
@media print {
  .topbar, .sidebar, .no-print, .btn { display: none !important; }
  .main-content { padding: 0 !important; }
  body { background: #fff; }
}
