:root { --navy: #1F3A68; --navy2: #2B4F8A; --gold: #E8C66A; --cream: #F6F1E7; --red: #A8201A; --good: #2E7D32; --warn: #C06A00; }
body { background: #F4F1EA; font-size: .94rem; }
.bg-navy { background: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.text-red { color: var(--red) !important; }
.text-good { color: var(--good) !important; }
.text-warn { color: var(--warn) !important; }
.brand-badge { background: var(--gold); color: var(--navy); font-weight: 700; border-radius: 6px; padding: 2px 8px; font-size: .9rem; }
.card { border-color: #D8CBB2; border-radius: 10px; }
.card-header { background: #FBF8F2; border-bottom-color: #E6DCC8; font-weight: 600; color: var(--navy); }
h1.page-title { font-size: 1.35rem; color: var(--navy); font-weight: 700; margin-bottom: .2rem; }
.page-sub { color: #6B6B6B; font-size: .88rem; margin-bottom: 1rem; }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy2); color: #fff; }
.kpi { font-size: 2rem; font-weight: 700; line-height: 1; }
.table-entry td, .table-entry th { vertical-align: middle; }
.table-entry input.num { text-align: right; min-width: 110px; }
.table-entry .sec td { background: #EEF3FA; font-weight: 600; color: var(--navy); }
.table-entry tr.warn-row td { background: #FFF6E5; }
.ref { color: #6B6B6B; font-size: .82rem; white-space: nowrap; }
.chart-page { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); margin: 0 auto 24px; max-width: 900px; }
.chart-page svg { width: 100%; height: auto; display: block; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1F3A68 0%, #2B4F8A 60%, #F6F1E7 60%); }
.login-card { width: 100%; max-width: 420px; }
.status-flow .step { border-left: 3px solid #D8CBB2; padding-left: .6rem; margin-bottom: .4rem; }
.small-muted { font-size: .82rem; color: #6B6B6B; }
@media print { nav, footer, .no-print, .alert { display: none !important; } .chart-page { box-shadow: none; page-break-after: always; margin: 0; max-width: none; } main { padding: 0 !important; } }

.navbar-nav.me-auto .nav-link { font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
@media (min-width: 1200px) { .navbar-nav.me-auto .nav-link { padding-left: .55rem; padding-right: .55rem; } }
.navbar .nav-link { white-space: nowrap; }
.navbar .user-name { display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
