@import "https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap";:root{--bg-main:#090d16;--bg-surface:#0f172a;--bg-card:#111827d9;--bg-card-hover:#1e293bd9;--bg-glass:#0f172abf;--border-subtle:#ffffff14;--border-active:#6366f166;--text-primary:#f8fafc;--text-secondary:#94a3b8;--text-muted:#64748b;--primary:#3b82f6;--primary-hover:#2563eb;--primary-glow:#3b82f640;--success:#10b981;--success-glow:#10b98133;--warning:#f59e0b;--warning-glow:#f59e0b33;--danger:#ef4444;--danger-glow:#ef444440;--info:#06b6d4;--radius-sm:8px;--radius-md:12px;--radius-lg:16px;--radius-xl:24px;--shadow-sm:0 2px 8px #00000040;--shadow-md:0 8px 24px #00000059;--shadow-lg:0 16px 40px #00000080;--shadow-glow:0 0 25px var(--primary-glow);--transition-fast:.15s cubic-bezier(.4, 0, .2, 1);--transition-normal:.25s cubic-bezier(.4, 0, .2, 1)}*{box-sizing:border-box;margin:0;padding:0}body{background-color:var(--bg-main);color:var(--text-primary);-webkit-font-smoothing:antialiased;background-image:radial-gradient(at 0 0,#3b82f614 0,#0000 50%),radial-gradient(at 100% 0,#8b5cf60f 0,#0000 50%),radial-gradient(at 50% 100%,#10b9810d 0,#0000 50%);background-attachment:fixed;min-height:100vh;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,sans-serif;line-height:1.5}code,.font-mono{font-family:JetBrains Mono,monospace}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--bg-main)}::-webkit-scrollbar-thumb{background:#1e293b;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#334155}h1,h2,h3,h4,h5{color:var(--text-primary);letter-spacing:-.02em;font-weight:700}.app-container{min-height:100vh;display:flex;position:relative}.main-content{flex-direction:column;flex:1;min-width:0;display:flex;overflow:visible}.page-body{width:100%;max-width:1600px;margin:0 auto;padding:24px 32px 48px}.glass-card{background:var(--bg-card);-webkit-backdrop-filter:blur(16px);border:1px solid var(--border-subtle);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);transition:transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal)}.glass-card-hover:hover{box-shadow:var(--shadow-lg);border-color:#ffffff29;transform:translateY(-2px)}.btn{border-radius:var(--radius-md);cursor:pointer;transition:all var(--transition-fast);white-space:nowrap;border:1px solid #0000;justify-content:center;align-items:center;gap:8px;padding:10px 18px;font-size:.875rem;font-weight:600;text-decoration:none;display:inline-flex}.btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.btn-primary{color:#fff;box-shadow:0 4px 14px var(--primary-glow);background:linear-gradient(135deg,#3b82f6 0%,#2563eb 100%)}.btn-primary:hover{background:linear-gradient(135deg,#60a5fa 0%,#3b82f6 100%);transform:translateY(-1px);box-shadow:0 6px 20px #3b82f666}.btn-success{color:#fff;box-shadow:0 4px 14px var(--success-glow);background:linear-gradient(135deg,#10b981 0%,#059669 100%)}.btn-success:hover{background:linear-gradient(135deg,#34d399 0%,#10b981 100%);transform:translateY(-1px)}.btn-secondary{color:var(--text-primary);border-color:var(--border-subtle);background:#ffffff0d}.btn-secondary:hover{background:#ffffff1a;border-color:#fff3}.btn-danger{color:#fff;box-shadow:0 4px 14px var(--danger-glow);background:linear-gradient(135deg,#ef4444 0%,#dc2626 100%)}.btn-danger:hover{background:linear-gradient(135deg,#f87171 0%,#ef4444 100%)}.btn-sm{border-radius:var(--radius-sm);padding:6px 12px;font-size:.8125rem}.btn-icon{border-radius:var(--radius-sm);padding:8px}.badge{letter-spacing:.02em;border-radius:9999px;align-items:center;gap:6px;padding:4px 10px;font-size:.75rem;font-weight:600;display:inline-flex}.badge-admin{color:#c084fc;background:#a855f726;border:1px solid #a855f74d}.badge-operator{color:#60a5fa;background:#3b82f626;border:1px solid #3b82f64d}.badge-viewer{color:#cbd5e1;background:#94a3b826;border:1px solid #94a3b84d}.badge-success{color:#34d399;background:#10b98126;border:1px solid #10b9814d}.badge-warning{color:#fbbf24;background:#f59e0b26;border:1px solid #f59e0b4d}.badge-danger{color:#f87171;background:#ef444426;border:1px solid #ef44444d}.form-group{flex-direction:column;gap:6px;margin-bottom:18px;display:flex}.form-label{color:var(--text-secondary);justify-content:space-between;align-items:center;font-size:.8125rem;font-weight:600;display:flex}.form-control{border:1px solid var(--border-subtle);border-radius:var(--radius-md);width:100%;color:var(--text-primary);transition:all var(--transition-fast);background:#0f172ab3;outline:none;padding:10px 14px;font-family:inherit;font-size:.9375rem}.form-control:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-glow);background:#0f172af2}.form-control:disabled{color:var(--text-muted);cursor:not-allowed;background:#0f172a66}select.form-control{cursor:pointer}.grid-2{grid-template-columns:repeat(2,1fr);gap:16px;display:grid}.grid-3{grid-template-columns:repeat(3,1fr);gap:16px;display:grid}.grid-4{grid-template-columns:repeat(4,1fr);gap:20px;display:grid}.vehicle-kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr))}@media (width<=1100px){.grid-4{grid-template-columns:repeat(2,1fr)}.vehicle-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(2,1fr)}}@media (width<=768px){.grid-4{grid-template-columns:1fr}.vehicle-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3,.grid-2{grid-template-columns:1fr}.page-body{padding:16px}}@media (width<=520px){.vehicle-kpi-grid{grid-template-columns:1fr}}.comparison-page{padding-top:32px}.comparison-header{justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:22px;display:flex}.page-kicker{color:#38bdf8;letter-spacing:.08em;align-items:center;gap:7px;margin-bottom:9px;font-size:.7rem;font-weight:800;display:flex}.comparison-header h1{letter-spacing:0;font-size:1.75rem}.comparison-header p{color:var(--text-secondary);margin-top:5px;font-size:.875rem}.comparison-filters{flex-wrap:wrap;justify-content:flex-end;align-items:flex-end;gap:10px;display:flex}.filter-control{color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;gap:5px;font-size:.7rem;font-weight:700;display:grid}.filter-control .form-control{border-radius:var(--radius-sm);text-transform:none;letter-spacing:0;min-width:138px;padding:8px 10px;font-size:.8125rem}.search-control{border:1px solid var(--border-subtle);border-radius:var(--radius-sm);min-width:205px;height:38px;color:var(--text-muted);background:#0f172ab3;align-items:center;gap:8px;padding:0 11px;display:flex}.search-control:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-glow)}.search-control input{width:100%;color:var(--text-primary);font:inherit;background:0 0;border:0;outline:0;font-size:.8125rem}.comparison-summary{border:1px solid var(--border-subtle);border-radius:var(--radius-sm);color:var(--text-secondary);background:#0f172a73;gap:24px;margin-bottom:20px;padding:12px 15px;font-size:.8125rem;display:flex}.comparison-summary div{align-items:center;gap:8px;display:flex}.comparison-summary svg{color:#38bdf8}.comparison-summary strong{color:var(--text-primary)}.comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.comparison-card{border:1px solid var(--border-subtle);border-radius:var(--radius-md);background:var(--bg-card);box-shadow:var(--shadow-sm);overflow:hidden}.comparison-card-header{border-bottom:1px solid var(--border-subtle);background:#ffffff05;justify-content:space-between;align-items:flex-start;padding:18px 20px 15px;display:flex}.comparison-card-header h2{letter-spacing:0;font-size:1.1rem}.comparison-card-header div>span{color:var(--text-secondary);font-size:.75rem}.vehicle-count{color:#c084fc;white-space:nowrap;background:#a855f71f;border:1px solid #a855f759;border-radius:999px;padding:4px 9px;font-size:.72rem;font-weight:700}.comparison-card-body{padding:18px 20px 20px}.group-average{justify-content:space-between;align-items:baseline;margin-bottom:16px;display:flex}.group-average span{color:var(--text-secondary);font-size:.78rem;font-weight:800}.group-average strong{font-size:1.35rem}.group-average small{color:var(--text-secondary);font-size:.78rem;font-weight:500}.cc-missing-note{color:#fbbf24;background:#f59e0b14;border-left:2px solid #f59e0b;margin:-5px 0 14px;padding:8px 10px;font-size:.72rem;line-height:1.45}.performer-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.performer{border-radius:var(--radius-sm);text-align:center;min-width:0;padding:15px 10px}.performer>span{justify-content:center;align-items:center;gap:5px;font-size:.62rem;font-weight:800;display:flex}.performer strong{text-overflow:ellipsis;white-space:nowrap;margin:8px 0 2px;font-size:.86rem;display:block;overflow:hidden}.performer b{font-size:1.1rem}.performer.best{color:#34d399;background:#10b9811a;border:1px solid #10b9813d}.performer.worst{color:#f87171;background:#ef444417;border:1px solid #ef444438}.performer strong{color:var(--text-primary)}.view-vehicles{width:100%;color:var(--text-secondary);font:inherit;cursor:pointer;background:#94a3b81a;border:0;border-radius:5px;justify-content:center;align-items:center;gap:4px;margin-top:16px;padding:9px;font-size:.8rem;font-weight:700;display:flex}.view-vehicles:hover{color:var(--text-primary);background:#94a3b82b}.vehicle-performance-list{border-top:1px solid var(--border-subtle);margin-top:12px}.vehicle-performance-row{border-bottom:1px solid var(--border-subtle);grid-template-columns:28px minmax(115px,1fr) minmax(80px,1fr) auto;align-items:center;gap:8px;padding:10px 0;font-size:.76rem;display:grid}.rank{color:var(--text-muted);font-weight:700}.vehicle-owner{text-overflow:ellipsis;white-space:nowrap;color:var(--text-secondary);overflow:hidden}.vehicle-mileage{color:#34d399;white-space:nowrap;font-weight:800}.no-data-note,.no-data-state{color:var(--text-muted);text-align:center;margin-top:14px;font-size:.78rem}.comparison-empty{border:1px solid var(--border-subtle);border-radius:var(--radius-md);min-height:300px;color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:9px;font-size:.875rem;display:flex}.comparison-empty strong{color:var(--text-primary)}@media (width<=1100px){.comparison-header{flex-direction:column;align-items:flex-start}.comparison-filters{justify-content:flex-start}.comparison-grid{grid-template-columns:1fr}}@media (width<=620px){.comparison-filters{width:100%}.filter-control,.filter-control .form-control,.search-control{flex:1;min-width:0}.comparison-summary{flex-direction:column;gap:13px}.comparison-card-body,.comparison-card-header{padding-left:14px;padding-right:14px}.vehicle-performance-row{grid-template-columns:24px minmax(90px,1fr) auto}.vehicle-owner{display:none}}.table-responsive{border-radius:var(--radius-lg);width:100%;overflow:visible}.glass-card:has(.table-responsive){overflow:visible!important}.custom-table{table-layout:fixed;border-collapse:collapse;text-align:left;width:100%;font-size:clamp(.68rem,.64rem + .18vw,.875rem)}.custom-table thead{z-index:3;position:sticky;top:0}.custom-table th{z-index:2;box-shadow:0 1px 0 var(--border-subtle);color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid var(--border-subtle);white-space:normal;overflow-wrap:anywhere;background:#0f172a;padding:14px 18px;font-size:clamp(.58rem,.54rem + .12vw,.75rem);font-weight:600;line-height:1.25;position:sticky;top:0}.custom-table td{border-bottom:1px solid var(--border-subtle);color:var(--text-primary);vertical-align:middle;overflow-wrap:anywhere;word-break:break-word;padding:clamp(8px,.65vw,14px) clamp(5px,.8vw,18px)}.custom-table tbody tr{transition:background-color var(--transition-fast)}.custom-table tbody tr:hover{background-color:#ffffff05}.fuel-entries-table{table-layout:fixed;font-size:.78rem}.fuel-entries-table th,.fuel-entries-table td{text-overflow:ellipsis;padding:10px 8px;overflow:hidden}.fuel-entries-table th{letter-spacing:.02em;white-space:normal;font-size:.64rem;line-height:1.25}.fuel-entries-table td{white-space:normal;word-break:break-word}.fuel-entries-table th:first-child,.fuel-entries-table td:first-child{width:6%}.fuel-entries-table th:nth-child(2),.fuel-entries-table td:nth-child(2){width:8%}.fuel-entries-table th:nth-child(3),.fuel-entries-table td:nth-child(3){width:7%}.fuel-entries-table th:nth-child(4),.fuel-entries-table td:nth-child(4){width:6%}.fuel-entries-table th:nth-child(5),.fuel-entries-table td:nth-child(5){width:9%}.fuel-entries-table th:nth-child(6),.fuel-entries-table td:nth-child(6),.fuel-entries-table th:nth-child(7),.fuel-entries-table td:nth-child(7),.fuel-entries-table th:nth-child(8),.fuel-entries-table td:nth-child(8){width:7%}.fuel-entries-table th:nth-child(9),.fuel-entries-table td:nth-child(9){width:8%}.fuel-entries-table th:nth-child(10),.fuel-entries-table td:nth-child(10),.fuel-entries-table th:nth-child(11),.fuel-entries-table td:nth-child(11),.fuel-entries-table th:nth-child(12),.fuel-entries-table td:nth-child(12){width:7%}.fuel-entries-table th:nth-child(13),.fuel-entries-table td:nth-child(13){width:9%}.fuel-entries-table th:nth-child(14),.fuel-entries-table td:nth-child(14){width:7%}.fuel-entries-table th:nth-child(15),.fuel-entries-table td:nth-child(15){width:5%}@media (width<=1100px){.fuel-entries-table{font-size:.72rem}.fuel-entries-table th,.fuel-entries-table td{padding:8px 5px}.fuel-entries-table th:nth-child(5),.fuel-entries-table td:nth-child(5),.fuel-entries-table th:nth-child(7),.fuel-entries-table td:nth-child(7),.fuel-entries-table th:nth-child(9),.fuel-entries-table td:nth-child(9),.fuel-entries-table th:nth-child(12),.fuel-entries-table td:nth-child(12){display:none}}@media (width<=700px){.fuel-entries-table{font-size:.68rem}.fuel-entries-table th,.fuel-entries-table td{padding:7px 4px}.fuel-entries-table th:nth-child(3),.fuel-entries-table td:nth-child(3),.fuel-entries-table th:nth-child(4),.fuel-entries-table td:nth-child(4),.fuel-entries-table th:nth-child(6),.fuel-entries-table td:nth-child(6),.fuel-entries-table th:nth-child(8),.fuel-entries-table td:nth-child(8),.fuel-entries-table th:nth-child(10),.fuel-entries-table td:nth-child(10),.fuel-entries-table th:nth-child(14),.fuel-entries-table td:nth-child(14){display:none}}.modal-overlay{-webkit-backdrop-filter:blur(8px);z-index:1000;background:#030712bf;justify-content:center;align-items:center;padding:20px;animation:.2s ease-out fadeIn;display:flex;position:fixed;inset:0}.modal-content{border-radius:var(--radius-xl);width:100%;max-width:620px;max-height:90vh;box-shadow:var(--shadow-lg);background:#0f172a;border:1px solid #ffffff1f;flex-direction:column;animation:.25s cubic-bezier(.16,1,.3,1) slideUp;display:flex;overflow-y:auto}.modal-header{border-bottom:1px solid var(--border-subtle);justify-content:space-between;align-items:center;padding:20px 24px;display:flex}.modal-body{padding:24px;overflow-y:auto}.modal-footer{border-top:1px solid var(--border-subtle);background:#0f172a80;justify-content:flex-end;align-items:center;gap:12px;padding:18px 24px;display:flex}.inefficiency-alert{border-radius:var(--radius-md);background:linear-gradient(135deg,#ef44441f 0%,#f59e0b14 100%);border:1px solid #ef444466;align-items:flex-start;gap:12px;margin-top:14px;margin-bottom:14px;padding:14px 16px;animation:2s ease-in-out infinite pulseGlow;display:flex}.efficiency-good{border-radius:var(--radius-md);background:linear-gradient(135deg,#10b9811f 0%,#06b6d414 100%);border:1px solid #10b98166;align-items:center;gap:12px;margin-top:14px;margin-bottom:14px;padding:12px 16px;display:flex}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes pulseGlow{0%{box-shadow:0 0 #ef44444d}70%{box-shadow:0 0 0 8px #ef444400}to{box-shadow:0 0 #ef444400}}
