/* Brand colours from sectech.pl. The original logo is preserved in the SVG lockup. */
:root{color-scheme:dark;--bg:#060c15;--surface:#08182d;--surface-high:#102139;--line:#20354e;--text:#edf3fb;--muted:#a6b4c8;--blue:#0d5db9;--accent:#71b3ff}
body{background:var(--bg);color:var(--text)}
.shell{grid-template-rows:124px 1fr}
.brandbar{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:17px 34px 14px 26px;gap:30px;background:#050a11;border-bottom:1px solid var(--line)}
.brand{margin:0;display:block;line-height:0;letter-spacing:normal;width:min(430px,100%)}
.brand img{display:block;width:100%;height:auto}
.brandbar-caption{text-align:right;color:var(--muted);font-size:11px;letter-spacing:2px;line-height:1.8}
.brandbar-caption span{display:block;color:var(--accent);font-size:12px;letter-spacing:3px}
.sidebar{grid-row:2;background:#050a11;top:0;height:calc(100vh - 124px);min-height:540px;border-right:1px solid var(--line)}
.nav button{color:#b5c4d8;border:1px solid transparent}.nav button.active{background:#102e52;color:#b4d7ff;border-color:#204975}.nav button:hover{background:var(--surface-high);color:#fff}
.sidefoot{border-color:var(--line)}.sidefoot button{border-color:#2d4766;color:#dfeaf8}
.topbar{background:var(--surface);border-color:var(--line)}
button,.button{border-color:#2b4463;background:#102139;color:var(--text)}button:hover,.button:hover{background:#183353;border-color:#41719f}
button.primary{background:var(--blue);border-color:#2475d1;color:white}button.primary:hover{background:#176dc9}
button.danger{color:#ffaba5}.avatar{background:#133660;color:#a9d2ff}
.selectors select,input,select,textarea{background:#070f1d;border-color:#2d4562;color:var(--text)}input::placeholder,textarea::placeholder{color:#8194ae}
input:focus,select:focus,textarea:focus,button:focus-visible{outline-color:var(--accent)}
.muted,.micro,.stat .label,.stat .foot,.row small,td small,.devicecard p,.field small,.guide p,.loginbox p,.check .order,.loading{color:var(--muted)}
.eyebrow{color:var(--accent)}.stat,.panel,.devicecard{background:var(--surface);border-color:var(--line)}
.stat{box-shadow:inset 0 2px 0 #183b64}.stat .number{color:#f2f7ff}.panelhead,.row,td,.modalhead,.check{border-color:var(--line)}
.empty{color:var(--muted)}.empty h3{color:var(--text)}.empty .icon{color:#6484a8}
.badge{background:#1a2c42;color:#c7d4e5}.badge.green{background:#10392f;color:#90dfbe}.badge.amber{background:#43331b;color:#f0cd87}.badge.red{background:#482326;color:#ffb0ac}.badge.blue{background:#123861;color:#a8d0ff}
.notice{background:#0d2037;border-color:#29496a;color:#c2d3e8}.notice.amber{background:#302a1d;border-color:#5e4a27;color:#eed19c}
th{background:#0d2037;color:#b1c4dc;border-color:var(--line)}
.num{background:#133960;color:#b3d8ff}.devicecard .deviceicon{background:#10243d;color:#8cafd5}.progress{background:#24364c}.progress span{background:#408fe9}
.field label{color:#d2e2f4}.checks{border-color:var(--line)}.code{background:#050d19;color:#bddcff}.hr{background:var(--line)}
dialog{background:var(--surface);color:var(--text);border:1px solid #304a69;box-shadow:0 25px 90px #0008}dialog::backdrop{background:#020710c9}
.error{color:#ffb3ac}#toast{background:#18395b;border:1px solid #416389;box-shadow:0 6px 25px #0006}
.tagline,.map-footnote{background:#102139;color:#b1c9e4;font-size:12px;padding:13px 20px;line-height:1.6}
.point{background:var(--blue)}.point:hover{background:#064990}.map .maplabel,.map .hint{color:#234563;color-scheme:light}
.login{background:radial-gradient(ellipse at 50% 20%,#102e50 0%,#060c15 65%)}.loginbox{background:#08182d;border:1px solid #274361;width:min(520px,100%);padding:40px;box-shadow:0 20px 90px #0005}.loginbox .brand{margin:0 auto 38px;width:100%}
.map-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 18px}.map-tabs{display:flex;gap:7px}.map-search{display:flex;gap:10px;margin-bottom:18px}.map-search input{flex:1;min-width:0}.map-search button{flex-shrink:0}
.google-map-host,.google-map-canvas{height:480px;width:100%}.google-map-host{color-scheme:light;background:#102139;color:#173247}.google-map-host .loading{color:#b9d1ee}.google-map-host.maps-error{display:grid;place-items:center;padding:36px;text-align:center;color:#ffb3ac}
.google-map-host button{color-scheme:light}.geo-marker{width:35px;height:35px;border-radius:50%;border:3px solid #fff;background:var(--blue);color:#fff;padding:0;box-shadow:0 2px 10px #0006;font:700 13px Arial,sans-serif}.geo-marker:hover{background:#073f81;color:white}
.map-unconfigured{min-height:370px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 28px;text-align:center;background:radial-gradient(ellipse at center,#112d4b 0%,#091a30 65%,#08182d 100%)}
.google-label{display:flex;align-items:center;gap:10px;color:var(--accent);font-size:12px;letter-spacing:2px;margin-bottom:25px}.google-label .icon{width:26px;height:26px}.map-unconfigured h3{font-size:23px;letter-spacing:-.4px;margin:0 0 6px}.map-unconfigured p{color:#b1c3d9;font-size:14px;max-width:450px;margin:10px 0 18px}.map-pending{margin-bottom:23px}.map-unconfigured .actions{justify-content:center}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1050px){.brandbar{padding-right:22px}.brand{width:400px}.brandbar-caption{font-size:10px}.sidebar{padding-top:24px}}
@media(max-width:720px){.shell{display:block}.brandbar{padding:19px 20px;justify-content:center;min-height:108px}.brand{width:min(400px,100%)}.brandbar-caption{display:none}.sidebar{height:auto;min-height:0;position:static;padding:12px;border-bottom:1px solid var(--line);border-right:0}.nav button{padding:10px 12px}.google-map-host,.google-map-canvas{height:420px}.map-unconfigured{min-height:350px;padding:30px 20px}.map-unconfigured h3{font-size:21px}.map-toolbar{align-items:stretch}.map-search{flex-wrap:wrap}.map-search input{flex-basis:220px}.loginbox{padding:28px}.loginbox .brand{margin-bottom:30px}}

.compact{border:0;padding:9px 5px}.compact input{width:auto}.weekday-grid{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 22px}.rulematrix{margin:15px 0 20px;border:1px solid var(--line);border-radius:8px}.rulematrix th,.rulematrix td{padding:12px 9px;font-size:12px}.rulematrix input{width:18px;height:18px}.route-points{margin:15px 0 25px}.route-point{display:grid;grid-template-columns:minmax(120px,1fr) 75px 85px;gap:10px;border-bottom:1px solid var(--line);padding:12px 0;align-items:center}.route-point label{font-size:12px;color:var(--muted)}.route-point input[type=checkbox]{width:auto}.route-point input[type=number]{margin-top:5px}.status-strip{margin-bottom:20px}.incident-row{border-bottom:1px solid var(--line)}.delivery-list{display:grid;gap:7px;color:var(--muted);font-size:12px;padding:4px 21px 18px;overflow-wrap:anywhere}.incident-note{padding:0 21px 12px}.camera-dialog{width:min(1100px,calc(100vw - 28px))}.camera-stage{min-height:320px;background:#020710;display:grid;place-items:center}.camera-stage img{width:100%;max-height:70vh;object-fit:contain}.camera-stage .stream-error{padding:30px;color:#ffb3ac}.sidebar{min-height:630px}.nav{scrollbar-width:thin;scrollbar-color:#355578 #08182d}.row .actions{justify-content:flex-end}.devicecard .actions{margin-top:14px}.tablewrap.rulematrix table{min-width:420px}@media(max-width:720px){.sidebar{min-height:0}.row .actions{max-width:140px}.camera-stage{min-height:240px}.rulematrix input{width:20px;height:20px}}

#patrolAlarm{position:fixed;bottom:20px;left:248px;right:24px;z-index:8;background:#482326;border:1px solid #b96766;border-radius:10px;padding:14px 18px;display:flex;gap:18px;align-items:center;justify-content:space-between;box-shadow:0 8px 30px #0006}#patrolAlarm strong{color:#ffb0ac;display:block;font-size:14px}#patrolAlarm span{font-size:12px;display:block;margin-top:5px}#patrolAlarm button{flex-shrink:0}@media(max-width:720px){#patrolAlarm{left:12px;right:12px;bottom:12px;padding:12px;gap:8px}#patrolAlarm button{font-size:12px}}

.sound-controls{display:flex;flex-direction:column;gap:4px;max-width:320px}.sound-controls>div{display:flex;gap:6px;flex-wrap:wrap}.sound-controls button{font-size:12px;padding:8px 10px}.sound-controls [aria-pressed="true"]{border-color:#549ec2;color:#a7e0ff}.sound-controls [data-sound-status]:empty{display:none}.topbar{flex-wrap:wrap}@media(max-width:720px){.sound-controls{width:100%;max-width:none}.sound-controls>div{justify-content:flex-end}}

.google-map-canvas.leaflet-container{background:#cad6d9;font-family:inherit}.leaflet-container .leaflet-control-attribution{background:#fffffff2;color:#172536;font-size:11px;line-height:1.6;padding:2px 6px}.leaflet-container .leaflet-control-attribution a{color:#075db0}.patrol-map-marker{display:flex;align-items:center;justify-content:center;background:#0d5db9;color:#fff;border:2px solid white;border-radius:50%;font-size:14px;font-weight:700;box-shadow:0 2px 6px #0008}.leaflet-container .leaflet-control-zoom a{color:#172536;background:#fff}.leaflet-container img.leaflet-tile{max-width:none!important;max-height:none!important}.leaflet-container{z-index:1}.google-map-host{isolation:isolate}

.map-layer-options{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:10px 0 16px}.map-layer-options label{display:flex;align-items:center;gap:10px;white-space:nowrap}.map-layer-options select{width:auto}.map-layer-options .micro{flex:1;min-width:220px}

.leaflet-container .leaflet-control-scale-line{background:#fffffff0;color:#172536;border-color:#172536;font-size:13px;font-weight:700;line-height:1.5;text-shadow:none;box-shadow:0 1px 4px #0005}.leaflet-control-scale{margin-bottom:12px!important}

button.point-location{border:0;background:transparent;color:#8fc4ff;padding:4px 0;justify-content:flex-start;text-align:left;font-size:12px;text-decoration:underline;white-space:normal}button.point-location:hover{color:#fff;background:transparent}

.maptiler-point{width:32px;height:32px;border:3px solid white;border-radius:50%;background:#0D5DB9;color:#fff;padding:0;box-shadow:0 2px 6px #0008;font-size:12px}.maptiler-point:hover{background:#1472d3}.maplibregl-ctrl-scale{background:#fffffff0!important;color:#172536!important;font-size:13px;font-weight:700}.maplibregl-ctrl-attrib{color:#172536}.map-layer-options .check input{width:auto}

/* Account identity and private employee profiles. */
.account-trigger{display:flex;align-items:center;gap:12px;text-align:right;border:0;background:transparent;padding:4px 6px;max-width:430px;color:inherit}
.account-trigger:hover,.account-trigger:focus-visible{background:#193149;outline:2px solid #358ceb;outline-offset:2px}
.account-identity{display:flex;flex-direction:column;min-width:0;gap:3px}.account-identity strong{font-size:15px}.account-identity small{font-size:11px;color:#afc5df;overflow-wrap:anywhere;line-height:1.4}
.avatar.profile-avatar{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;border-radius:50%;overflow:hidden;background:#163c67;color:#eef5ff;font-weight:700;letter-spacing:.04em;flex-shrink:0}
.profile-avatar img{width:100%;height:100%;object-fit:cover}.avatar.profile-avatar-large{width:96px;height:96px;min-width:96px;font-size:30px}
.account-panel{max-width:900px}.profile-photo-row{display:flex;align-items:center;gap:24px;margin-bottom:24px}.profile-photo-row h2{margin:0 0 8px}.profile-photo-row input[type=file]{display:block;margin-top:8px;max-width:100%;height:auto;padding:8px}.profile-photo-row label{font-weight:600}
.profile-details{margin:24px 0;display:grid;gap:0}.profile-details>div{display:grid;grid-template-columns:180px 1fr;gap:16px;padding:12px 0;border-bottom:1px solid #263e57}.profile-details dt{color:#afc5df}.profile-details dd{margin:0;overflow-wrap:anywhere}.profile-reminder{display:flex;align-items:center;justify-content:space-between;gap:20px}
.user-profile-link{display:flex;align-items:center;gap:14px;flex:1;min-width:0;border:0;background:transparent;color:inherit;text-align:left;padding:8px}.user-profile-link:hover,.user-profile-link:focus-visible{background:#193149}.user-profile-link .text{white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){.profile-photo-row{align-items:flex-start;gap:14px;flex-direction:column}.profile-details>div{grid-template-columns:1fr;gap:4px}.account-identity{max-width:220px}.profile-reminder{align-items:flex-start;flex-direction:column}.account-trigger{max-width:100%}}

#profileRemoveAvatar[hidden]{display:none!important}

.topbar .account{display:flex;min-width:0;max-width:100%}.account .account-identity{display:flex}.account .profile-avatar{display:inline-flex}
@media(max-width:720px){.topbar .account{width:100%;justify-content:flex-end}.account-identity small{font-size:11px}.account-trigger{padding:8px 4px}}

/* Keep the logout footer visible while the navigation itself scrolls. */
@media(min-width:721px){.sidebar{min-height:0;height:calc(100dvh - 124px);overflow:hidden;padding-top:22px;padding-bottom:18px;align-self:start}.sidebar>.eyebrow{flex-shrink:0}.sidebar .nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.sidefoot{flex:none;margin-top:12px;padding-top:12px}.sidefoot button{margin-top:10px}.sidebar-account{font-size:12px}}
@media(max-width:720px){.sidebar .nav{overflow-x:auto;overflow-y:hidden}.sidebar .sidefoot{display:flex;justify-content:flex-end;flex-shrink:0;margin-top:10px;padding:0;border:0}.sidebar-account{display:none}.sidebar .sidefoot button{width:auto;margin:0;padding:8px 14px}}
#overviewPatrolBadge[hidden]{display:none!important}.map-title{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.map-title .badge{font-size:11px;letter-spacing:.02em}
.overview-patrol{padding:14px 20px;border-top:1px solid var(--line)}.overview-patrol>p{margin:0}.patrol-map-summary{display:flex;gap:6px 18px;flex-wrap:wrap;font-size:13px;color:var(--muted)}.patrol-map-summary>strong{color:var(--text)}.patrol-next{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:14px 0 8px}.patrol-next>div{display:grid;gap:5px;font-size:13px}.patrol-next strong{font-size:16px}.patrol-next button{flex-shrink:0}.patrol-map-completed{color:#90dfbe;font-weight:600}.patrol-map-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:11px;color:var(--muted);margin-top:12px}.patrol-map-legend span{display:flex;align-items:center;gap:6px}.patrol-map-legend i{width:10px;height:10px;border-radius:50%}.legend-read{background:#16804f}.legend-next{background:#c87808}.legend-pending{background:#0d5db9}.legend-skipped{background:#b43e46}
.maptiler-point[data-status=read],.patrol-map-marker[data-status=read],.patrol-map-marker.marker-read{background:#16804f!important}.maptiler-point[data-status=next],.patrol-map-marker.marker-next{background:#b86b00!important}.maptiler-point[data-status=skipped],.patrol-map-marker.marker-skipped{background:#b43e46!important}.maptiler-point[data-status=read]:hover{background:#0c643b!important}
.patrol-point-popup{font:13px/1.45 Patrol,Arial,sans-serif;color:#173247;min-width:180px;max-width:270px}.patrol-point-popup>strong{font-size:16px;display:block;padding-right:14px;overflow-wrap:anywhere}.patrol-point-popup dl{margin:10px 0}.patrol-point-popup dt{font-size:11px;color:#53697b}.patrol-point-popup dd{margin:0 0 7px;overflow-wrap:anywhere}.patrol-point-popup p{margin:7px 0}.patrol-point-popup .point-status{font-weight:700}.patrol-point-popup .point-status-read{color:#126a3f}.patrol-point-popup .point-status-next{color:#8f5100}.patrol-point-popup .point-status-skipped{color:#9d2732}.patrol-point-popup button{background:#0d5db9;color:white;margin-top:5px}.maplibregl-popup-close-button{color:#173247!important;background:transparent!important;border:0!important;padding:2px 8px!important;font-size:20px!important}.maplibregl-popup-content{padding:16px!important;border-radius:9px!important;background:#fff!important}.leaflet-popup-content{margin:16px}.leaflet-popup-close-button{color:#173247!important}

.sos-map-info{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;background:#482326;color:#ffd6d3}.sos-map-info[hidden]{display:none}.sos-map-info p{font-size:13px;margin:6px 0}.maptiler-point[data-status=sos],.patrol-map-marker.marker-sos{background:#bf2536;width:42px!important;height:42px!important;font-size:11px;border:3px solid white;animation:sos-colors 1.8s steps(1,end) infinite}.incident-gps{color:#e7bc91}
@keyframes sos-colors{0%,100%{background:#d51f37;box-shadow:0 0 0 7px #d51f3744}50%{background:#1267ed;box-shadow:0 0 0 7px #1267ed44}}
.maptiler-point[data-status=sos-ack],.patrol-map-marker.marker-sos-ack{background:#657080!important;width:42px!important;height:42px!important;font-size:11px;border:3px solid white}
.sidefoot{display:flex;align-items:center;justify-content:space-between;gap:12px}.sidebar-account{min-width:0;overflow-wrap:anywhere}.sound-bell{width:44px;height:44px;padding:9px;flex:0 0 44px;border-radius:50%;background:#0b192a}.sound-bell svg{width:24px;height:24px}.sound-bell.sound-on{color:#5de3ae;border-color:#27805c}.sound-bell.sound-off{color:#ff7a83;border-color:#a8404b}.sound-bell:focus-visible{outline:3px solid #61b8ff;outline-offset:3px}
.company-limits,.company-modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}fieldset{border:1px solid #29435f;border-radius:10px;margin:0 0 20px;padding:18px}legend{font-weight:700;padding:0 8px}.building-plan{display:block;max-width:100%;max-height:70vh;margin:auto}.incident-title{font-size:21px;line-height:1.35}#patrolAlarm span{margin-top:6px}.alarm-fullscreen{box-sizing:border-box;width:100vw!important;max-width:100vw!important;height:100dvh;max-height:100dvh!important;margin:0!important;border-radius:0!important;padding:20px}.alarm-fullscreen .camera-stage{height:calc(100dvh - 150px)}.alarm-fullscreen .camera-stage img{max-height:100%;object-fit:contain}.intrusion-plan{height:calc(100dvh - 190px);display:grid;place-items:center}.intrusion-plan img{width:100%;height:100%;object-fit:contain}.alarm-map-fullscreen{position:fixed!important;inset:0;z-index:1200;margin:0!important;border-radius:0!important;display:flex;flex-direction:column}.alarm-map-fullscreen #googleMap{flex:1;min-height:0;height:auto}.alarm-map-fullscreen #overviewPatrol,.alarm-map-fullscreen .tagline{display:none}.alarm-map-fullscreen .panelhead{flex-wrap:wrap}.alarm-map-exit{margin-left:auto}
@media(prefers-reduced-motion:reduce){.maptiler-point[data-status=sos],.patrol-map-marker.marker-sos{animation:none;background:linear-gradient(135deg,#d51f37 50%,#1267ed 50%)}}
@media(max-width:600px){.company-limits,.company-modules{grid-template-columns:1fr}.alarm-fullscreen{padding:12px}.incident-title{font-size:18px}}
.alarm-map-fullscreen .google-map-canvas{height:100%}

.sound-controls{max-width:350px}.alarm-volume{display:flex;align-items:center;gap:8px;color:#afc5df;font-size:11px}.alarm-volume input{width:110px;padding:0;height:18px;accent-color:#4b9aed}.alarm-volume output{min-width:30px}

.workspace{display:flex;flex-direction:column}.workspace>.content{flex:1}.platform-footer{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:18px 34px;border-top:1px solid var(--line);color:#93abc7;font-size:11px;line-height:1.6}.sidebar-account .badge{margin-top:7px}@media(max-width:720px){.sidebar .sidebar-account{display:block}.sidebar .sidefoot{justify-content:flex-start;padding:8px 12px;border-top:1px solid var(--line)}.platform-footer{padding:16px}}
