:root { --brand: #E31E24; --ink: #121212; --side: 240px; }
body { background: #f5f6f8; color: #1a1a1a; font-size: .92rem; }
.topbar { position: sticky; top: 0; z-index: 1030; height: 56px; background: var(--ink); color: #fff; }
.brand { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.brand-mark { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); align-items: center; justify-content: center; font-size: 1.1rem; margin-right: 6px; }
.layout { display: flex; min-height: calc(100vh - 56px); }
.sidebar { width: var(--side); background: #fff; border-right: 1px solid #e6e6e6; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; flex: 0 0 var(--side); } }
.sidebar .nav-link { color: #333; padding: .42rem 1rem; border-left: 3px solid transparent; font-size: .9rem; }
.sidebar .nav-link i { width: 20px; display: inline-block; color: #777; }
.sidebar .nav-link:hover { background: #f6f6f6; }
.sidebar .nav-link.active { border-left-color: var(--brand); background: #fff3f3; color: var(--ink); font-weight: 600; }
.sidebar .nav-link.active i { color: var(--brand); }
.nav-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #999; padding: .9rem 1rem .25rem; }
.content { flex: 1; min-width: 0; padding: 1.25rem 1.5rem; }
.content-full { max-width: 460px; margin: 6vh auto; padding: 1rem; }
@media (max-width: 576px) { .content { padding: 1rem; } }
.card { border: 1px solid #e8e8e8; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.card-header { background: #fff; font-weight: 600; border-bottom: 1px solid #eee; }
.kpi-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: .8rem 1rem; height: 100%; color: #1a1a1a; }
.kpi-card .kpi-label { font-size: .75rem; color: #666; text-transform: uppercase; letter-spacing: .04em; }
.kpi-card .kpi-value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.kpi-card .kpi-sub { font-size: .75rem; color: #777; }
.kpi-card.danger { border-left: 4px solid #dc3545; } .kpi-card.warn { border-left: 4px solid #f0ad4e; } .kpi-card.good { border-left: 4px solid #198754; } .kpi-card.brand { border-left: 4px solid var(--brand); }
a .kpi-card:hover { border-color: #ccc; }
.table { background: #fff; margin-bottom: 0; }
.table thead th { background: #fafafa; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: #555; white-space: nowrap; }
.table td { vertical-align: middle; }
.table-wrap { overflow-x: auto; border: 1px solid #e8e8e8; border-radius: 10px; background: #fff; }
.btn-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-brand:hover { background: #c0171c; color: #fff; }
.form-label { font-weight: 600; font-size: .8rem; margin-bottom: .2rem; }
.timeline { list-style: none; padding-left: 0; }
.timeline li { border-left: 2px solid #e0e0e0; padding: 0 0 .8rem 1rem; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.pipeline { display: flex; flex-wrap: wrap; gap: 4px; }
.pipeline .step { font-size: .7rem; padding: 3px 7px; border-radius: 12px; background: #eee; color: #777; }
.pipeline .step.done { background: #d1e7dd; color: #0f5132; }
.pipeline .step.now { background: var(--brand); color: #fff; }
.filters .form-select, .filters .form-control { min-width: 140px; width: auto; max-width: 100%; }
.small-muted { font-size: .78rem; color: #777; }
.score-cell { font-weight: 600; }
@media print {
  .topbar, .sidebar, #page-actions, .no-print, footer { display: none !important; }
  .content { padding: 0; } body { background: #fff; }
  .card { break-inside: avoid; }
}
