:root { --navy: #102a43; --blue: #1769e0; --cyan: #25a9e0; --ink: #243b53; --muted: #708090; --surface: #fff; --background: #f4f7fb; }
* { box-sizing: border-box; }
body { background: var(--background); color: var(--ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.dashboard-width { max-width: 1600px; }
.topbar { background: linear-gradient(115deg, var(--navy), #164e78); box-shadow: 0 4px 18px rgba(16, 42, 67, .16); }
.app-header { background: linear-gradient(115deg, #0c253b, #164e78); box-shadow: 0 4px 18px rgba(16,42,67,.18); color: #fff; }
.header-main { align-items: center; display: flex; justify-content: space-between; min-height: 76px; padding-bottom: .75rem; padding-top: .75rem; }
.brand { align-items: center; color: #fff; display: flex; gap: .75rem; min-width: 0; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { align-items: center; background: linear-gradient(135deg,#25a9e0,#1769e0); border: 1px solid rgba(255,255,255,.28); border-radius: 11px; box-shadow: 0 4px 12px rgba(0,0,0,.16); display: flex; flex: 0 0 42px; font-size: 1.2rem; font-weight: 900; height: 42px; justify-content: center; }
.brand strong { display: block; font-size: clamp(.9rem,2vw,1.08rem); letter-spacing: .01em; line-height: 1.25; }
.brand small { color: #a9c9df; display: block; font-size: .72rem; margin-top: .15rem; }
.header-status { align-items: center; color: #c5dceb; display: flex; font-size: .72rem; gap: .45rem; white-space: nowrap; }
.header-status i { background: #42d392; border-radius: 50%; box-shadow: 0 0 0 4px rgba(66,211,146,.13); display: inline-block; height: 7px; width: 7px; }
.header-account { align-items: center; display: flex; gap: .75rem; }
.account-name { border-left: 1px solid rgba(255,255,255,.18); color: #fff; font-size: .75rem; padding-left: .75rem; }
.logout-link { color: #a9c9df; font-size: .72rem; text-decoration: none; }
.logout-link:hover { color: #fff; }
.app-nav { background: rgba(7,29,46,.35); border-top: 1px solid rgba(255,255,255,.08); }
.nav-scroll { display: flex; gap: .25rem; overflow-x: auto; padding-bottom: .45rem; padding-top: .45rem; scrollbar-width: thin; }
.nav-item { border-radius: 7px; color: #c8dce9; flex: 0 0 auto; font-size: .76rem; font-weight: 650; padding: .52rem .78rem; text-decoration: none; transition: background-color .15s,color .15s; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.eyebrow { color: #7dd3fc; display: block; font-size: .67rem; font-weight: 800; letter-spacing: .13em; }
.updated { color: #d9e8f5; font-size: .78rem; }
.filter-card, .metric-card, .panel-card { background: var(--surface); border: 1px solid #e6edf5; border-radius: 14px; box-shadow: 0 4px 16px rgba(30, 64, 100, .05); }
.filter-card { margin-inline: 0; padding: 1rem; }
.form-label { color: #52677a; font-size: .78rem; font-weight: 700; }
.form-control, .form-select { border-color: #d8e2ed; min-height: 42px; }
.btn-primary { background: var(--blue); border-color: var(--blue); font-weight: 650; min-height: 42px; }
.metric-card { padding: 1.15rem; border-top: 3px solid var(--cyan); }
.metric-title { color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.metric-value { color: var(--navy); font-size: clamp(1.35rem, 2vw, 1.85rem); font-weight: 800; line-height: 1.25; margin-top: .3rem; white-space: nowrap; }
.metric-description { color: #8293a4; font-size: .72rem; margin-top: .3rem; }
.panel-card { padding: 1.15rem; }
.panel-title { color: var(--navy); font-size: .92rem; font-weight: 800; }
.chart-lg { height: 330px; }
.chart-md { height: 285px; }
.table { --bs-table-bg: transparent; font-size: .82rem; }
.table thead th { color: #718295; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; border-bottom-color: #e5edf5; }
.event-name { max-width: 520px; }
.badge-soft { background: #e5f2ff; color: #1163b7; border-radius: 999px; display: inline-block; font-weight: 700; padding: .3rem .55rem; }
.text-navy { color: var(--navy); }
.progress-tall { height: 1.6rem; background: #e8eef5; }
.progress-tall .progress-bar { background: linear-gradient(90deg, var(--blue), var(--cyan)); font-size: .72rem; font-weight: 800; min-width: 2.5rem; }
.summary-list { margin: 0; }
.summary-list > div { align-items: center; border-bottom: 1px solid #edf2f7; display: flex; justify-content: space-between; padding: .65rem 0; }
.summary-list dt { color: var(--muted); font-size: .78rem; font-weight: 600; }
.summary-list dd { color: var(--navy); font-size: .88rem; font-weight: 800; margin: 0; }
.method-note { color: #8393a3; font-size: .68rem; line-height: 1.45; margin: .8rem 0 0; }
.funnel-grid { align-items: stretch; display: grid; gap: .75rem; grid-template-columns: 1fr auto 1fr auto 1fr; }
.funnel-grid article { background: #fff; border: 1px solid #e1eaf3; border-radius: 14px; padding: 1.15rem; text-align: center; }
.funnel-grid article.approved { background: linear-gradient(135deg,#effbf6,#fff); border-color: #bdebd6; }
.funnel-grid span,.funnel-grid small { color: var(--muted); display: block; font-size: .75rem; }
.funnel-grid strong { color: var(--navy); display: block; font-size: 1.8rem; margin: .25rem; }
.funnel-arrow { align-self: center; color: #8ba0b3; font-size: 1.3rem; text-align: center; }
.funnel-arrow b { color: var(--blue); display: block; font-size: .72rem; }
.methodology-alert { background: #edf6ff; border: 1px solid #cfe6fb; color: #3d5d79; font-size: .78rem; }
.migration-table th,.migration-table td { min-width: 105px; padding: .85rem; }
.migration-active { background: #e8f3ff !important; color: #125fae !important; font-weight: 800; }
.geo-map { border-radius: 10px; height: 390px; overflow: hidden; z-index: 1; }
.empty-state { align-items: center; color: #8797a8; display: flex; height: 330px; justify-content: center; padding: 2rem; text-align: center; }
.cross-filter { max-width: 180px; }
.operational-alert { font-size: .78rem; }
.quality-item { align-items: center; background: #f5f8fb; border-radius: 10px; display: flex; justify-content: space-between; padding: .8rem; }
.quality-item span { color: var(--muted); font-size: .75rem; }
.quality-item strong { color: var(--navy); font-size: 1.05rem; }
.auth-body { background: radial-gradient(circle at 15% 15%,#1b5f8d 0,#0c253b 38%,#071a2a 100%); min-height: 100vh; }
.auth-shell { align-items: center; display: flex; justify-content: center; min-height: 100vh; padding: 1.5rem; }
.auth-card { background: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.3); max-width: 420px; padding: clamp(1.5rem,4vw,2.2rem); width: 100%; }
.auth-card-wide { max-width: 620px; }
.auth-brand { align-items: center; display: flex; gap: .75rem; margin-bottom: 2rem; }
.auth-brand strong { color: var(--navy); display: block; font-size: .95rem; }
.auth-brand small { color: var(--muted); display: block; font-size: .72rem; }
.auth-heading h1 { color: var(--navy); font-size: 1.55rem; font-weight: 800; margin-bottom: .35rem; }
.auth-heading p { color: var(--muted); font-size: .82rem; margin-bottom: 1.5rem; }
.auth-footer { color: #93a3b2; font-size: .67rem; margin: 1.4rem 0 0; text-align: center; }
.user-form-card { top: 1rem; }
.role-badge { background: #eef3f7; border-radius: 999px; color: #52677a; display: inline-block; font-size: .68rem; font-weight: 700; padding: .3rem .55rem; }
.role-badge.admin { background: #e8f2ff; color: #1769e0; }
.status-dot { align-items: center; color: #8b99a7; display: inline-flex; font-size: .72rem; gap: .4rem; }
.status-dot::before { background: #aeb9c3; border-radius: 50%; content: ''; height: 7px; width: 7px; }
.status-dot.active { color: #21845a; }
.status-dot.active::before { background: #31b77a; box-shadow: 0 0 0 3px rgba(49,183,122,.12); }
@media(max-width:767.98px){.funnel-grid{grid-template-columns:1fr}.funnel-arrow{transform:rotate(90deg);height:28px}.funnel-grid strong{font-size:1.5rem}}
@media (max-width: 575.98px) { .updated,.header-status { display: none; } .header-main { min-height: 68px; } .brand-mark { flex-basis: 38px; height: 38px; } .chart-lg { height: 280px; } .metric-card { padding: 1rem; } }
