:root { --brand: #1f4e8c; --brand-dark: #153a69; --side-w: 240px; }
body { background: #f3f5f9; padding-top: 56px; font-size: .94rem; }
body.guest { padding-top: 0; background: linear-gradient(160deg, #e8eef8, #f7f9fc); min-height: 100vh; }
.topbar { background: var(--brand); height: 56px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.topbar .search-box { max-width: 560px; }
.search-results { z-index: 1100; max-height: 360px; overflow: auto; }
.sidebar { position: fixed; top: 56px; bottom: 0; left: 0; width: var(--side-w); background: #fff; border-right: 1px solid #dde3ee; overflow-y: auto; padding: .5rem 0; z-index: 1030; }
.sidebar .nav-link { color: #35445a; padding: .55rem 1rem; display: flex; align-items: center; gap: .6rem; }
.sidebar .nav-link:hover { background: #eef3fb; }
.sidebar .nav-link.active { color: var(--brand); font-weight: 600; background: #e6eefa; }
.sidebar .submenu .nav-link { padding-left: 2.6rem; font-size: .9rem; }
.content { margin-left: var(--side-w); padding: 1.25rem 1.5rem 3rem; }
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  .sidebar.show { transform: none; box-shadow: 4px 0 12px rgba(0,0,0,.2); }
  .content { margin-left: 0; padding: 1rem; }
}
.card { border: 1px solid #e0e6f0; box-shadow: 0 1px 2px rgba(20,40,80,.04); }
.card-header { background: #f8fafd; font-weight: 600; }
.stat { border-left: 4px solid var(--brand); }
.stat .num { font-size: 1.6rem; font-weight: 700; color: var(--brand-dark); }
.table thead th { background: #f1f5fb; white-space: nowrap; font-size: .85rem; }
.table-sm td, .table-sm th { vertical-align: middle; }
.money { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.page-head h1 { font-size: 1.4rem; margin: 0; }
.picker { position: relative; }
.picker .results { position: absolute; z-index: 1050; left: 0; right: 0; max-height: 300px; overflow: auto; }
.req::after { content: " *"; color: #c0392b; }
.sticky-total { position: sticky; bottom: 0; background: #fff; border-top: 2px solid var(--brand); padding: .75rem 1rem; }
.login-card { margin-top: 8vh; }
.badge-oblig { background: #fdecea; color: #a93226; }
@media print { .topbar, .sidebar, .no-print { display: none !important; } .content { margin: 0; padding: 0; } body { padding: 0; background: #fff; } .card { border: 0; box-shadow: none; } }
