:root{--ov-bg:#d8e3ef;--ov-bg2:#edf3f8;--ov-dark:#0b1f3a;--ov-dark2:#112744;--ov-card:#fff;--ov-line:#d8e2ee;--ov-text:#08172b;--ov-muted:#5d7088;--ov-blue:#2563eb;--ov-green:#149448;--ov-red:#dc2626;--ov-yellow:#f59e0b;--ov-shadow:0 16px 40px rgba(11,31,58,.12)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ov-text);background:linear-gradient(135deg,var(--ov-bg),var(--ov-bg2)) fixed}.ov-shell{display:grid;grid-template-columns:235px 1fr;min-height:100vh}.ov-sidebar{background:linear-gradient(180deg,#08172b,#102642);color:#fff;padding:20px 14px;box-shadow:8px 0 28px rgba(8,23,43,.2);position:sticky;top:0;height:100vh}.ov-brand{display:flex;gap:10px;align-items:center;color:#fff;text-decoration:none;font-size:20px;font-weight:900;margin:4px 6px 14px}.ov-version-pill{font-size:12px;color:#dbeafe;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:8px 10px;margin:0 4px 22px}.ov-version-pill .version-ok,.ov-version-pill .version-warning{color:#dbeafe}.ov-nav-title{letter-spacing:.14em;text-transform:uppercase;color:#9fb2ca;font-size:12px;font-weight:900;margin:0 8px 10px}.ov-nav{display:flex;flex-direction:column;gap:8px}.ov-nav a{display:flex;align-items:center;gap:10px;min-height:45px;padding:11px 14px;border-radius:13px;color:#e8f0fb;text-decoration:none;font-weight:800;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.10);transition:.15s}.ov-nav a:hover{background:rgba(255,255,255,.12);transform:translateX(2px)}.ov-nav a.active{background:#16a34a;color:#fff;box-shadow:0 8px 18px rgba(22,163,74,.25)}.ov-page{min-width:0;display:flex;flex-direction:column}.ov-topbar{height:72px;background:linear-gradient(90deg,#0b1f3a,#102a4a);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px;box-shadow:0 4px 20px rgba(8,23,43,.12)}.ov-top-title{font-weight:900;font-size:18px}.ov-user a{color:#fff;font-weight:800}.ov-content{padding:28px 46px 42px}.ov-content h1{font-size:28px;margin:0 0 22px}.ov-footer{text-align:center;color:#51657d;padding:22px}.grid,.dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(190px,1fr));gap:18px;margin-bottom:22px}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:18px}.card{background:var(--ov-card);border:1px solid var(--ov-line);border-radius:16px;padding:22px;box-shadow:var(--ov-shadow);margin-bottom:18px}.card h2{font-size:23px;margin:0 0 14px;display:flex;gap:9px;align-items:center}.stat{font-size:36px;font-weight:950;letter-spacing:-.03em;margin:5px 0}.muted{color:var(--ov-muted)}.ok{color:#07883f}.bad,.error{color:var(--ov-red)}.warn,.warning{color:var(--ov-yellow)}.actions,.btnbar{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.btn,button.btn,.btn-small{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--ov-blue);color:#fff!important;text-decoration:none;border:0;border-radius:10px;padding:10px 14px;font-weight:900;box-shadow:0 8px 18px rgba(37,99,235,.22);cursor:pointer}.btn:hover,.btn-small:hover{filter:brightness(.96);transform:translateY(-1px)}.btn.secondary,.btn-gray{background:#64748b}.btn.green,.btn-green{background:#149448}.btn.red,.btn-red{background:#dc2626}.btn.yellow,.btn-yellow{background:#d97706}.badge,.pill,.status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-weight:900;font-size:12px;background:#e8eef6;color:#263b55}.badge.ok,.pill.ok{background:#dcfce7;color:#166534}.badge.warn,.pill.warn{background:#fef3c7;color:#92400e}.badge.bad,.pill.bad{background:#fee2e2;color:#991b1b}table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden}th{background:#eaf1f8;text-align:left;font-size:13px}th,td{border-bottom:1px solid #dbe5f0;padding:10px 12px}tr:hover td{background:#f8fbff}.progress{height:12px;border-radius:999px;background:#e5e7eb;overflow:hidden}.progress span{display:block;height:100%;background:var(--ov-blue)}.flash{padding:12px 14px;border-radius:12px;margin:0 0 14px;font-weight:800;border:1px solid}.flash-success{background:#dcfce7;border-color:#86efac;color:#166534}.flash-error{background:#fee2e2;border-color:#fca5a5;color:#991b1b}.flash-info{background:#dbeafe;border-color:#93c5fd;color:#1e3a8a}.flash-warning{background:#fef3c7;border-color:#fcd34d;color:#92400e}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:14px}.form-grid label{display:flex;flex-direction:column;gap:6px;font-weight:800}.form-grid input,.form-grid select,.form-grid textarea,input[type=text],input[type=password],input[type=file],select,textarea{border:1px solid #cbd5e1;border-radius:10px;padding:10px;background:#fff;max-width:100%}.help{font-size:13px;color:var(--ov-muted)}.logbox,.log{background:#0f172a;color:#e5e7eb;border-radius:12px;padding:12px;font-family:Consolas,monospace;font-size:13px;overflow:auto}.nowrap{white-space:nowrap}@media(max-width:1100px){.grid,.dashboard-grid{grid-template-columns:repeat(2,1fr)}.ov-shell{grid-template-columns:210px 1fr}.ov-content{padding:24px}}@media(max-width:760px){.ov-shell{display:block}.ov-sidebar{position:relative;height:auto}.ov-nav{display:grid;grid-template-columns:repeat(2,1fr)}.ov-topbar{height:auto;gap:10px;padding:14px;align-items:flex-start;flex-direction:column}.grid,.dashboard-grid,.grid-2,.form-grid{grid-template-columns:1fr}.ov-content{padding:18px}.card{padding:16px}}

/* OV update v2026.05.25.04 - livekaart zichtbaar + Leaflet/GIS styling */
.map-live.fixed-map,
#map.map-live{
  display:block;
  width:100%;
  height:620px;
  min-height:520px;
  margin-top:16px;
  border-radius:18px;
  border:1px solid var(--ov-line);
  overflow:hidden;
  background:#dbeafe;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.6), 0 12px 28px rgba(11,31,58,.10);
  z-index:1;
}
.leaflet-container{font-family:inherit;border-radius:18px;z-index:1;}
.vehicle-dot{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#2563eb;color:#fff;font-weight:950;border:3px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.35);font-size:12px;line-height:1;}
.vehicle-dot.delay{background:#d97706;}
.vehicle-dot.bad{background:#dc2626;}
.map-toolbar{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:12px 0 8px;}
.map-toolbar label{font-size:13px;color:var(--ov-muted);font-weight:800;}
.map-toolbar select{padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;background:white;min-width:130px;}
.legend{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:8px;}
.legend span{display:inline-flex;align-items:center;gap:6px;}
.legend i{display:inline-block;width:12px;height:12px;border-radius:50%;background:#2563eb;box-shadow:0 0 0 2px #fff;}
.legend .delay i{background:#d97706;}
.legend .bigdelay i{background:#dc2626;}
.notice{padding:12px 14px;border-radius:12px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;font-weight:700;}
.livekaart-card{padding-bottom:26px;}
@media(max-width:760px){.map-live.fixed-map,#map.map-live{height:520px;min-height:420px;border-radius:14px}.leaflet-container{border-radius:14px}}

/* OV update v2026.05.25.05 - routes beheren + routes op live kaart */
.table-scroll{width:100%;overflow:auto;border-radius:14px;border:1px solid var(--ov-line);background:#fff}.route-table{min-width:1100px}.route-table th{position:sticky;top:0;z-index:2}.route-table .line-row td{background:#eaf3ff;font-weight:800}.route-table .route-child td{background:#fff}.route-table input[type=color]{width:54px;height:34px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;padding:2px}.route-table input[type=checkbox]{width:18px;height:18px}.route-toggle{display:inline-flex;align-items:center;gap:6px;font-weight:900;color:var(--ov-muted);padding:9px 10px;background:#eef4fb;border:1px solid var(--ov-line);border-radius:10px}.leaflet-interactive{outline:none}.routes-card code{background:#eef4fb;padding:2px 6px;border-radius:7px}

/* v2026.05.25.14 livekaart status/worker UI */
.livekaart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:10px}
.live-status-card{min-width:135px;border:1px solid #dbeafe;background:#eff6ff;border-radius:14px;padding:10px 14px;text-align:center;box-shadow:0 1px 2px rgba(15,23,42,.06)}
.live-status-card strong{font-size:28px;line-height:1;display:block;color:#0f766e}
.map-toolbar-wrap{flex-wrap:wrap;align-items:end;gap:10px 12px}
.sync-log{margin-top:10px;border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a;border-radius:12px;padding:10px 12px;white-space:pre-wrap}
