:root { --accent: #185a9d; --accent-dark: #123f6e; }
body { background: #f3f5f8; font-size: 14px; }
body.signed-out { background: linear-gradient(135deg, #123f6e, #185a9d 60%, #2a7bc4); min-height: 100vh; }
.cr-nav { background: var(--accent-dark); }
.cr-nav .navbar-brand { font-weight: 600; }
.brand-mark { display: inline-block; background: #fff; color: var(--accent-dark); font-weight: 800; border-radius: 6px; padding: 1px 6px; font-size: 13px; letter-spacing: .5px; }
.brand-mark.lg { font-size: 22px; padding: 6px 12px; border-radius: 10px; background: var(--accent); color: #fff; }
.cr-main { padding-top: 16px; padding-bottom: 32px; }
.cr-error { position: sticky; top: 8px; z-index: 50; }
.cr-busy { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2000; overflow: hidden; }
.cr-busy .bar { width: 35%; height: 100%; background: #ffc107; animation: slide 1s linear infinite; }
@keyframes slide { from { transform: translateX(-100%);} to { transform: translateX(300%);} }

.login-wrap { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 32px); }
.login-card { width: 380px; max-width: 95vw; border: 0; border-radius: 12px; }

.page-head { display: flex; flex-wrap: wrap; align-items: center; }
.section { color: #6c757d; font-weight: 700; letter-spacing: .5px; margin: 14px 0 8px; }
.kpis .kpi { background: #fff; border: 1px solid #e3e7ed; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; min-height: 96px; }
.kpi .t { font-size: 11px; font-weight: 700; color: #6c757d; letter-spacing: .5px; }
.kpi .v { font-size: 22px; font-weight: 700; color: #1e1e1e; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v small { font-size: 13px; font-weight: 600; color: #6c757d; }
.kpi .d { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .h { font-size: 11px; color: #8a929b; }
.delta { font-weight: 600; }

.panel { background: #fff; border: 1px solid #e3e7ed; border-radius: 8px; overflow: hidden; }
.panel .ph { padding: 8px 12px; font-weight: 600; border-bottom: 1px solid #eef1f5; background: #fafbfc; }
.panel .ph small { font-weight: 400; }
.chart-wrap { position: relative; height: 280px; padding: 8px; }
.scroll-300 { max-height: 300px; overflow: auto; }
.scroll-400 { max-height: 400px; overflow: auto; }
.table-sm td, .table-sm th { padding: .3rem .5rem; vertical-align: middle; }
.table.clickable tbody tr { cursor: pointer; }
.table thead th { border-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: #6c757d; white-space: nowrap; }
.table th.sortable { cursor: pointer; text-decoration: underline dotted; }
.filters { background: #fff; border: 1px solid #e3e7ed; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.filters label.small { margin-bottom: 2px; color: #6c757d; }
.kv td:first-child { color: #6c757d; }

@media print {
  .cr-nav, .no-print, .cr-busy { display: none !important; }
  body { background: #fff; }
  .panel { border: 0; }
}
