/* Colors and font families from bg.nl's published Elementor design tokens. */
@font-face{font-family:Mulish;src:url('/static/mulish.woff2') format('woff2');font-weight:200 900;font-display:swap}
@font-face{font-family:'Baloo 2';src:url('/static/baloo2.woff2') format('woff2');font-weight:400 800;font-display:swap}
:root{font-family:Mulish,Arial,sans-serif;color:#223035;background:#fafafa;--green:#ff7800;--muted:#67757b;--lime:#ff7800}
.sidebar{background:#223035}.brand{width:150px;background:white;border-radius:16px;padding:8px;line-height:0}.brand img{width:100%;height:auto}.portal-label{color:#c0c9cd}.nav-current{background:#ff7800;border-color:#ff7800;color:#223035;font-weight:800}.nav-arrow{color:#223035}.side-line{background:#ff7800}.side-bottom small{color:#c0c9cd}.side-bottom p{font-family:'Baloo 2',sans-serif;font-size:28px}.workspace header{background:white;color:#67757b;border-color:#e4e8ea}.workspace header strong,.text-button{color:#223035}h1,h2,h3{font-family:'Baloo 2',sans-serif;font-weight:600}h1{font-size:52px;letter-spacing:-1px}.title-dot,.eyebrow{color:#de3814}.eyebrow{letter-spacing:1.2px}.intro,.muted{color:#67757b}.primary{background:#ff7800;color:#223035;border-radius:24px;font-weight:800}.primary:hover:enabled{background:#ed6e00}.secondary{color:#223035;background:white;border-color:#bcc8cd;border-radius:24px}.secondary:hover:enabled{background:#edf7fa}.stats,.gate-card{border-color:#e1e6e8;border-radius:16px}.stats strong{font-family:'Baloo 2';font-size:36px}.stats span,.gate-details span{color:#67757b}.stats>div,.gate-details{border-color:#e1e6e8}.gate-name{font-size:24px}.gate-state{font-family:'Baloo 2';font-size:30px}.gate-scene{background:#edf4f6;border-radius:12px}.scene-grid{background-image:linear-gradient(#c9dbe1 1px,transparent 1px),linear-gradient(90deg,#c9dbe1 1px,transparent 1px)}.gate-post{background:#223035;border-color:#546b75}.gate-leaf{border-color:#425963;background:repeating-linear-gradient(90deg,transparent 0,transparent 12px,#425963 12px,#425963 16px);transition:transform .7s linear}.ground{background:#bccbd0}.connection{background:#e4f5f9;color:#006e86}.connection.stale{background:#fff0e1;color:#884800}.help-strip{background:#e9f5f8;border-color:#c3e1e8}.help-strip p{color:#4c626b}.help-icon{color:#007e99;border-color:#0093b3}.demo-banner{background:#fff1e5;border-color:#ffd5b0;color:#713a11}.diagnostics,.measurement-list>div,footer{border-color:#e1e6e8}.diagnostics summary{color:#007d98}.measurement-list dt{color:#5e7078}.measurement-list small{color:#75848b}.fault-message{background:#fff0eb;color:#a52a0e}.motion-readout{display:grid;grid-template-columns:1fr 1fr;gap:10px;background:#f0f7f9;border-radius:10px;padding:16px;margin-bottom:18px}.motion-readout span{display:block;font-size:10px;color:#586e79}.motion-readout strong{font-family:'Baloo 2';font-size:27px;font-weight:600;font-variant-numeric:tabular-nums}.motion-readout small{grid-column:1/-1;font-size:10px;color:#586e79}.position-progress{grid-column:1/-1;width:100%;height:6px;border:0;accent-color:#0093b3;border-radius:8px;overflow:hidden}.position-progress::-webkit-progress-bar{background:#d4e6ec}.position-progress::-webkit-progress-value{background:#0093b3;transition:width .7s linear}footer{color:#67757b}.login-panel input{border-color:#c3cfd4}.search-row input{border-color:#c3cfd4;border-radius:24px}.search-row label{color:#52636b}button:focus-visible,a:focus-visible,input:focus-visible{outline-color:#0093b3}dialog{color:#223035;border-color:#bccbd0}dialog::backdrop{background:#223035aa}@media(max-width:760px){.brand{width:78px;border-radius:8px;padding:4px}.sidebar{height:86px}.title-row h1{font-size:38px}.side-bottom{display:none}.section-heading{flex-wrap:wrap}.section-heading .small{max-width:none;text-align:left}.motion-readout strong{font-size:25px}}
@media(prefers-reduced-motion:reduce){.gate-leaf,.position-progress::-webkit-progress-value{transition:none}}

.safety-panel{margin-top:24px;padding-top:20px;border-top:1px solid #e1e6e8}.safety-panel h3{font-size:19px;margin:0 0 8px}.safety-panel p{line-height:1.6}.safety-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}.safety-input{padding:12px;border:1px solid #dce5e9;border-radius:9px;background:#f5f8fa;display:flex;flex-direction:column;gap:6px}.safety-input>span{font-size:11px;color:#52656e}.safety-input strong{font-size:13px;color:#405864}.safety-input strong::before{content:"●";margin-right:7px;font-size:10px}.safety-input small{font-size:9px;color:#627781}.safety-input[data-status="Actief"]{background:#fff0e2;border-color:#ffba7d}.safety-input[data-status="Actief"] strong{color:#9c4600}.safety-input[data-status="Verouderd"],.safety-input[data-status="Onbekend"]{background:#f3f3f3;border-style:dashed}.safety-input[data-status="Verouderd"] strong,.safety-input[data-status="Onbekend"] strong{color:#747474}@media(prefers-reduced-motion:no-preference){.gate-leaf,.position-progress::-webkit-progress-value{transition-duration:.5s;transition-timing-function:linear}}

.powered-by{display:inline-flex;align-items:center;gap:9px;color:#67757b;text-decoration:none;white-space:nowrap;min-height:32px;font-size:10px}.powered-by img{display:block;width:110px;height:auto;opacity:.8}.powered-by:hover{color:#223035}.powered-by:hover img{opacity:1}.powered-by:focus-visible{outline:2px solid #0093b3;outline-offset:4px;border-radius:4px}footer{align-items:center;flex-wrap:wrap}@media(max-width:480px){.powered-by img{width:95px}.powered-by{gap:7px}}

.view-switch{display:flex;gap:8px;margin:0 0 18px}.view-switch button[aria-pressed="true"]{background:#223035;color:white;border-color:#223035}#map-panel{padding:14px;background:white;border:1px solid #e1e6e8;border-radius:16px}#gate-map{height:480px;border-radius:10px;z-index:0;font-family:Mulish,Arial,sans-serif}.map-legend{color:#52636b;line-height:1.8}.leaflet-popup-content button{font-size:12px;padding:9px 14px}.leaflet-popup-content p{line-height:1.5}.leaflet-control-attribution{font-size:10px}@media(max-width:760px){#gate-map{height:380px}}

.view-switch button[aria-pressed="true"]:hover:enabled{background:#344852;color:white}.leaflet-interactive:focus-visible{outline:3px solid #223035}

.gate-history{border-top:1px solid #e1e6e8;margin-top:24px;padding-top:20px}.gate-history summary{cursor:pointer;color:#007d98;font-weight:700;font-size:14px}.gate-history p{line-height:1.6}.history-list{list-style:none;padding:0;max-height:360px;overflow:auto}.history-list li{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #e1e6e8;font-size:12px}.history-list time{color:#67757b}

/* Compact position and prominent cycle total. */
.motion-readout{grid-template-columns:1fr}
.gate-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.gate-details .cycle-total{grid-column:1/-1;padding:16px 20px;background:#f0f7f9;border-radius:12px}
.gate-details .cycles{font-family:'Baloo 2',sans-serif;font-size:46px;line-height:1.2;font-weight:600;font-variant-numeric:tabular-nums;color:#223035}
.safety-input[data-status="Inactief"]{background:#edf8f0;border-color:#a8d8b6}
.safety-input[data-status="Inactief"] strong{color:#23743c}
.safety-input[data-status="Actief"]{background:#fff0eb;border-color:#eda493}
.safety-input[data-status="Actief"] strong,.fault-history{color:#a52a0e}
.fault-history{padding-left:20px;font-size:12px;line-height:1.8}

.safety-input[data-status="Hoog (1)"]{background:#e5f4fa;border:2px solid #007d98;color:#00566a}
.safety-input[data-status="Laag (0)"]{background:#f3f5f6;color:#67757b}

.input-summary{font-weight:700;color:#00566a;background:#e5f4fa;border-radius:8px;padding:12px}
.safety-input[data-status="Hoog (1)"] strong{color:#00566a}

.service-panel{margin:18px 0;padding:16px;border:1px solid #dce5e9;border-radius:12px;background:#f3f5f6}
.service-panel h3{font-size:20px;margin:0 0 8px}.service-panel p{line-height:1.5;margin:7px 0}
.service-panel[data-status="due"]{background:#fff0eb;border-color:#eda493}.service-panel[data-status="due"] h3{color:#a52a0e}
.service-panel[data-status="ok"]{background:#edf8f0;border-color:#a8d8b6}.service-panel[data-status="ok"] h3{color:#23743c}

.service-controls{margin:12px 0 20px}.service-form{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:16px 0}.service-form label{display:grid;gap:8px}.service-form input{max-width:220px;padding:12px;border:1px solid #b9c7cd;border-radius:8px;font-size:16px}
