:root { --sb-bg: #14213d; --sb-w: 250px; --accent: #fca311; }
body { background: #f4f6fb; font-size: .92rem; }
.sidebar { width: var(--sb-w); min-height: 100vh; background: var(--sb-bg); color: #cdd5e5; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 1rem 1.1rem; font-weight: 600; color: #fff; display: flex; align-items: center; gap: .6rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .brand i { color: var(--accent); font-size: 1.3rem; }
.brand-logo { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; background: #fff; }
.sidebar .nav-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #7d8aa5; padding: .9rem 1.1rem .3rem; }
.sidebar .nav-link { color: #cdd5e5; padding: .42rem 1.1rem; border-left: 3px solid transparent; }
.sidebar .nav-link i { width: 1.4rem; display: inline-block; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .nav-link.active { background: rgba(252,163,17,.12); color: #fff; border-left-color: var(--accent); }
.main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.main main { flex: 1; }
.topbar { height: 56px; background: #fff; border-bottom: 1px solid #e5e8ef; position: sticky; top: 0; z-index: 10; }
.card { border: 1px solid #e5e8ef; border-radius: .6rem; }
.card-header { background: #fff; font-weight: 600; }
.kpi { border-radius: .6rem; background: #fff; border: 1px solid #e5e8ef; padding: 1rem 1.1rem; height: 100%; }
.kpi .label { font-size: .75rem; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }
.kpi .value { font-size: 1.45rem; font-weight: 600; color: #111827; }
.kpi i { font-size: 1.6rem; opacity: .35; }
.table > :not(caption) > * > * { padding: .45rem .6rem; }
.table thead th { font-size: .75rem; text-transform: uppercase; color: #6b7280; letter-spacing: .03em; background: #f8f9fc; white-space: nowrap; }
.lines-table input, .lines-table select { min-width: 80px; }
.login-bg { background: linear-gradient(135deg, #14213d, #1f3b73); }
.login-icon { width: 56px; height: 56px; border-radius: 14px; background: #14213d; color: #fca311; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; }
@media (max-width: 991.98px) {
  .sidebar { position: fixed; left: calc(-1 * var(--sb-w)); z-index: 1040; transition: left .2s; }
  body.sb-open .sidebar { left: 0; box-shadow: 0 0 40px rgba(0,0,0,.4); }
}
@media print { .sidebar, .topbar, footer, .no-print { display: none !important; } body { background: #fff; } }
