@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");:root{--bg:#eef1f6;--surface:#ffffff;--text:#1a1d26;--muted:#6b7280;--border:#e5e7eb;--blue:#2563eb;--blue-soft:#dbeafe;--orange:#f97316;--orange-soft:#ffedd5;--red:#dc2626;--red-soft:#fee2e2;--shadow:0 1px 2px rgba(16,24,40,0.04),0 4px 16px rgba(16,24,40,0.04);--radius:16px}*{box-sizing:border-box;margin:0;padding:0}body{font-family:DM Sans,system-ui,sans-serif;background:var(--bg);color:var(--text);min-height:100vh}a{color:inherit}button,input{font:inherit}.page-pad{padding:20px 28px 40px;box-sizing:border-box;min-height:100vh}.app{max-width:1280px;margin:0 auto;background:#f7f8fb;border-radius:24px;box-shadow:var(--shadow);overflow:hidden;border:1px solid #e8ebf0;display:flex;flex-direction:column;max-height:calc(100vh - 60px)}.topbar{gap:24px;padding:14px 28px;background:var(--surface);border-bottom:1px solid var(--border);flex-shrink:0;position:-webkit-sticky;position:sticky;top:0;z-index:40}.logo,.topbar{display:flex;align-items:center}.logo{gap:10px;font-weight:700;font-size:18px;letter-spacing:-.02em;min-width:0;text-decoration:none;color:inherit}.logo-img{height:32px;max-width:140px}.logo-img,.logo-img-lg{display:block;width:auto;object-fit:contain;border-radius:6px}.logo-img-lg{height:40px;max-width:180px}.logo-mark{width:32px;height:32px;border-radius:9px;background:linear-gradient(145deg,#2563eb,#1d4ed8);display:grid;place-items:center;color:#fff;font-size:14px;font-weight:700}.nav{display:flex;gap:4px;flex:1 1;justify-content:center;flex-wrap:wrap}.nav a{text-decoration:none;color:var(--muted);font-size:14px;font-weight:500;padding:8px 16px;border-radius:999px}.nav a.active{background:var(--blue);color:#fff}.top-actions{display:flex;align-items:center;gap:14px;margin-left:auto}.icon-btn{width:36px;height:36px;border-radius:50%;border:1px solid var(--border);background:#fff;display:grid;place-items:center;color:var(--muted);position:relative}.icon-btn,.profile{text-decoration:none}.profile{display:flex;align-items:center;gap:10px;padding-left:6px;color:inherit}.avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(145deg,#94a3b8,#64748b);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:600}.profile strong{display:block;font-size:13px;line-height:1.2}.profile small{color:var(--muted);font-size:11px}.main{padding:24px 28px 32px;flex:1 1;overflow-y:auto;min-height:0}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;flex-wrap:wrap}.page-head h1{font-size:28px;font-weight:600;letter-spacing:-.03em}.page-head .sub{font-size:14px;color:var(--muted);margin-top:4px}.page-head .sub a{color:var(--blue);text-decoration:none}.card{background:var(--surface);border-radius:var(--radius);border:1px solid #eef0f4;box-shadow:var(--shadow);padding:18px}.annot{font-size:10px;color:#94a3b8;text-transform:uppercase;letter-spacing:.06em;margin-bottom:6px}.card-title{font-size:15px;font-weight:600;margin-bottom:14px}.field{margin-bottom:12px}.field label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:6px}.field input{width:100%;border:1px solid var(--border);padding:10px 12px}.btn,.field input{border-radius:10px;background:#fff}.btn{padding:10px 14px;font-size:13px;font-weight:500;border:1px solid var(--border);color:var(--text);display:inline-flex;align-items:center;gap:8px;cursor:pointer;text-decoration:none}.btn-primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn:disabled{opacity:.7;cursor:wait}.form-error{color:var(--red)}.form-error,.form-ok{font-size:13px;margin:8px 0}.form-ok{color:#16a34a}.stack{flex-direction:column;max-width:320px}.head-actions,.stack{display:flex;gap:10px}.head-actions{flex-wrap:wrap}.btn-sm{padding:6px 10px;font-size:12px}.status-pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:500;padding:4px 10px;border-radius:999px}.status-pill .dot{width:7px;height:7px;border-radius:50%;background:currentColor}.status-pill.active{background:var(--orange-soft);color:#c2410c}.status-pill.suspended{background:var(--red-soft);color:#b91c1c}.status-pill.stock{background:#f1f5f9;color:#475569}.status-pill.moving{background:var(--orange-soft);color:#c2410c}.status-pill.offline{background:var(--red-soft);color:#b91c1c}.status-pill.online,.status-pill.stopped{background:var(--blue-soft);color:#1d4ed8}.toolbar{gap:10px;flex-wrap:wrap;margin-bottom:14px}.search,.toolbar{display:flex;align-items:center}.search{flex:1 1;min-width:200px;gap:8px;background:#fff;border:1px solid var(--border);border-radius:10px;padding:10px 12px;color:var(--muted);font-size:13px}.search input{border:none;outline:none;flex:1 1;font:inherit;color:var(--text);background:transparent}.filters{display:flex;gap:8px;flex-wrap:wrap}.chip{border:1px solid var(--border);background:#fff;border-radius:999px;padding:8px 12px;font-size:12px;color:var(--muted);text-decoration:none}.chip.on{background:var(--blue-soft);border-color:#bfdbfe;color:var(--blue);font-weight:600}.table-wrap{overflow-x:auto}table.data{width:100%;border-collapse:collapse;font-size:13px}table.data th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:600;padding:10px 12px;border-bottom:1px solid var(--border)}table.data td{padding:14px 12px;border-bottom:1px solid #f1f5f9;vertical-align:middle}table.data tr:last-child td{border-bottom:none}table.data .name{font-weight:600}table.data .muted{color:var(--muted);font-size:12px}table.data .actions{display:flex;gap:6px;justify-content:flex-end}.form-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:14px;gap:14px}.form-grid .full{grid-column:1/-1}.detail-grid{display:grid;grid-template-columns:1.2fr .8fr;grid-gap:14px;gap:14px}.stat-row{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:12px;gap:12px;margin-bottom:14px}.stat-mini{background:#f8fafc;border-radius:12px;padding:14px}.stat-mini .l{font-size:12px;color:var(--muted)}.stat-mini .v{font-size:22px;font-weight:700;letter-spacing:-.03em;margin-top:4px}.list-item{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #f1f5f9}.list-item:last-child{border-bottom:none}.list-item .grow{flex:1 1;min-width:0}.list-item .title{font-weight:600;font-size:14px}.list-item .meta{font-size:12px;margin-top:2px}.empty-note,.list-item .meta,.muted{color:var(--muted)}.empty-note{font-size:13px;padding:8px 0}.switch-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #f1f5f9;font-size:14px;gap:12px}.switch-row:last-of-type{border-bottom:none}.switch{width:40px;height:22px;border-radius:999px;background:#e2e8f0;position:relative;border:none;padding:0;cursor:pointer;flex-shrink:0}.switch.on{background:var(--blue)}.switch:after{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:#fff;top:3px;left:3px;transition:left .15s ease}.switch.on:after{left:21px}.row-selected{background:#eff6ff}.map-stub{height:280px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(90deg,rgba(148,163,184,.12) 1px,transparent 0),linear-gradient(rgba(148,163,184,.12) 1px,transparent 0),linear-gradient(160deg,#e8eef5,#dce6f0 45%,#cfdceb);background-size:28px 28px,28px 28px,auto;position:relative;overflow:hidden}.modal-overlay{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:24px;background:rgba(26,29,38,.45)}.modal-panel{width:min(440px,100%);max-height:min(90vh,720px);overflow:auto;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px 22px 20px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.modal-close{border:none;background:transparent;color:var(--muted);font-size:22px;line-height:1;cursor:pointer;padding:2px 6px;border-radius:8px}.modal-close:hover{background:var(--bg);color:var(--text)}.kpis{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:14px;gap:14px;margin-bottom:14px}.kpi .label{font-size:13px;color:var(--muted);margin-bottom:8px}.kpi .value{font-size:32px;font-weight:700;letter-spacing:-.04em;line-height:1;margin-bottom:8px}.kpi .meta{font-size:12px;color:var(--muted);margin-bottom:14px}.kpi .meta em{font-style:normal;color:#16a34a;font-weight:600}.kpi .meta em.down{color:var(--red)}.bars{display:flex;align-items:flex-end;gap:6px;height:48px}.bars span{flex:1 1;background:var(--blue-soft);border-radius:4px 4px 2px 2px;min-height:8px}.bars span.on{background:var(--blue)}.donut-wrap{display:flex;align-items:center;gap:14px}.donut{width:58px;height:58px;border-radius:50%;flex-shrink:0;mask:radial-gradient(circle at center,transparent 55%,#000 56%);-webkit-mask:radial-gradient(circle at center,transparent 55%,#000 56%)}.legend{font-size:11px;color:var(--muted);display:grid;grid-gap:4px;gap:4px}.legend i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}.spark{height:40px;margin-top:4px}.spark svg{width:100%;height:100%;display:block}.dash-grid{display:grid;grid-template-columns:240px 260px 1fr;grid-gap:14px;gap:14px;align-items:stretch}.dash-grid-sa{grid-template-columns:240px minmax(280px,340px) 1fr}.dash-grid-billing{display:grid;grid-template-columns:1fr 1fr;grid-gap:14px;gap:14px;align-items:stretch}.sub-status-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.dash-stack{display:flex;flex-direction:column;gap:14px}.week{display:grid;grid-template-columns:repeat(7,1fr);grid-gap:6px;gap:6px;margin-bottom:10px}.week .d{aspect-ratio:1;border-radius:8px;background:#f1f5f9;font-size:10px;color:var(--muted);display:grid;place-items:center;font-weight:500}.week .d.online{background:var(--blue);color:#fff}.week .d.alert{background:var(--orange);color:#fff}.week .d.both{background:linear-gradient(135deg,var(--blue) 50%,var(--orange) 50%);color:#fff}.week-legend{display:flex;gap:12px;font-size:11px;color:var(--muted)}.week-legend i{width:8px;height:8px;border-radius:2px;display:inline-block;margin-right:4px;vertical-align:middle}.vehicle-card{position:relative;overflow:hidden;min-height:168px}.vehicle-card .v-name{font-size:18px;font-weight:700;letter-spacing:-.02em}.vehicle-card .v-plate{margin:4px 0 12px}.v-stats,.vehicle-card .v-plate{font-size:12px;color:var(--muted)}.v-stats{margin-top:14px;display:grid;grid-gap:6px;gap:6px}.v-stats strong{color:var(--text);font-weight:600}.car-illo{position:absolute;right:-8px;bottom:8px;width:110px;opacity:.9}.timeline{display:flex;flex-direction:column;position:relative;padding-left:4px;min-height:200px}.tl-item{display:grid;grid-template-columns:18px 1fr auto;grid-gap:10px;gap:10px;align-items:start;padding-bottom:18px;position:relative}.tl-item:not(:last-child):before{content:"";position:absolute;left:7px;top:16px;bottom:0;width:2px;background:#e5e7eb}.tl-dot{width:14px;height:14px;border-radius:50%;border:2px solid var(--blue);background:#fff;margin-top:2px;z-index:1}.tl-item.end .tl-dot,.tl-item.start .tl-dot{background:var(--blue);border-color:var(--blue)}.tl-item.alert .tl-dot{border-color:var(--orange);background:var(--orange)}.tl-label{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.tl-place{font-size:14px;font-weight:600;margin-top:2px}.tl-sub{margin-top:2px}.tl-sub,.tl-time{font-size:12px;color:var(--muted)}.tl-time{white-space:nowrap;padding-top:14px}.duration{margin-top:auto;padding-top:12px;border-top:1px solid var(--border);font-size:13px;color:var(--muted)}.duration strong{color:var(--text)}.map-card{padding:0;overflow:hidden;display:flex;flex-direction:column;min-height:420px;height:420px}.map-card .map-head{padding:16px 18px 0;display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.map-card .map-body{flex:1 1;margin:12px;border-radius:14px;overflow:hidden;min-height:0;position:relative}.dash-alerts{height:420px;max-height:420px;display:flex;flex-direction:column;overflow:hidden}.dash-alerts .dash-alerts-body{flex:1 1;min-height:0;overflow-y:auto;padding-right:4px}.dash-alerts .timeline{min-height:0}@media (max-width:900px){.dash-grid,.dash-grid-billing,.detail-grid,.form-grid,.kpis,.stat-row{grid-template-columns:1fr}}@media (min-width:901px) and (max-width:1100px){.kpis{grid-template-columns:repeat(2,1fr)}.dash-grid,.dash-grid-sa{grid-template-columns:1fr 1fr}.map-card{grid-column:1/-1}}