.status-panel{border-top:4px solid var(--blue)}.status-pill{display:inline-grid;place-items:center;min-width:32px;height:32px;border-radius:8px;background:#e6edf7;color:#1d416c;font-weight:800;vertical-align:middle}.status-pill.s3{background:#fff0cf;color:#7c4e00}.status-pill.s4,.status-pill.s1,.status-pill.s2{background:#def4e8;color:#126b40}.status-pill.s0,.status-pill.s6{background:#ffe1e4;color:#a10e26}.status-pill.s5{background:#eee3ff;color:#6135a0}.status-location{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px;padding:16px;background:#f4f7fb;border-radius:8px}.status-location div>*{display:block}.status-location small{color:var(--muted)}.status-location strong{font-size:18px}.status-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}.status-key{border:1px solid #d4deeb;border-radius:10px;background:#fff;padding:14px 10px;text-align:center;color:#183b63;min-height:100px}.status-key b{display:block;font-size:30px;line-height:1.2}.status-key span{display:block;font-size:13px;margin-top:6px}.status-key.selected{background:#edf5ff;border:2px solid var(--blue)}.status-key:disabled{cursor:default;background:#f5f6f8}.status-key[data-set-status="0"]{grid-column:2}.route-list{padding-left:24px}.route-list li{padding:6px}.route-list li.current{font-weight:600;background:#eaf3ff;border-radius:4px}.route-template{margin-top:24px;padding:15px;background:#f5f8fc;border-radius:8px}.route-template summary{font-weight:700;cursor:pointer}.route-template form{display:grid;gap:12px;margin-top:16px}#ops-editor{margin-top:24px}.station-row{border:1px solid #d7e0eb;border-radius:8px;padding:16px;margin:14px 0}.station-row legend{font-weight:700;padding:0 7px}.station-row .fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.station-row input{width:100%}.station-row input[type=checkbox]{width:auto}.station-coordinates{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:12px}.station-coordinates label{font-size:13px}.search-results{display:grid;gap:8px;margin-top:8px}.ops-map{height:480px;border:1px solid #ced7e3;border-radius:10px;margin:16px 0;z-index:0}#station-map{height:420px}.table-scroll{overflow:auto}.status-table{width:100%;border-collapse:collapse;min-width:1000px;font-size:14px}.status-table th{text-align:left;padding:14px 12px;background:#f0f5fb}.status-table td{padding:14px 12px;border-bottom:1px solid #dde5ef;vertical-align:top}.status-table small{display:block;color:var(--muted);margin-top:5px;max-width:210px}.group-map-icon{background:transparent;border:none}.vehicle-pin{display:flex;align-items:center;gap:5px;border:2px solid var(--pin);border-radius:7px;padding:4px 6px;background:#fff;color:var(--pin);box-shadow:0 2px 7px #0003;white-space:nowrap;height:36px}.vehicle-pin.estimated{border-style:dashed;background:#fffaed}.vehicle-pin svg{width:25px;min-width:25px;height:20px}.vehicle-pin b{font-size:11px;overflow:hidden;text-overflow:ellipsis}.vehicle-pin span{font-weight:800;border-left:1px solid #ddd;padding-left:4px;margin-left:auto}.leaflet-popup-content{line-height:1.7}.leaflet-control-attribution a{color:#174984}#leader-connection{padding:10px 14px;background:#eaf1fb;border-radius:6px}#group-access-panel select{width:100%}.route-template input,.route-template select{max-width:100%}.status-panel dialog p{margin-bottom:12px}.status-panel dialog{max-width:520px;width:calc(100% - 30px)}
@media(max-width:750px){.status-location,.station-row .fields,.station-coordinates{grid-template-columns:1fr}.status-keypad{gap:7px}.status-key{padding:12px 5px;min-height:104px}.status-key span{font-size:12px}.ops-map{height:380px}.station-row{padding:12px}header nav{flex-wrap:wrap;gap:10px}.status-panel .section-top{flex-wrap:wrap;gap:10px}}

.radio-address-note{padding:12px 16px;border-left:4px solid var(--blue,#0757cd);background:#edf4ff;border-radius:6px}
.projection-filter-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;padding:8px 12px;border:1px solid var(--line,#d7e0eb);border-radius:8px;background:var(--theme-surface,#fff);font-size:14px;min-width:0}.projection-filter-controls>strong{overflow-wrap:anywhere}.status-window-page .projection-filter-controls{flex:none;font-size:13px}.status-window-page .projection-filter-controls .button{min-height:32px;padding:5px 10px}#projector-location-legend .projection-filter-controls{margin-top:8px}
.radio-channel-note{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 16px;padding:12px 16px;border:1px solid var(--line,#d7e0eb);border-left:4px solid var(--blue,#0757cd);border-radius:6px}.radio-channel-note>span{color:var(--muted);font-size:14px}.radio-channel-note>strong{font-size:18px;overflow-wrap:anywhere;min-width:0;max-width:100%}
.group-strength-cell{min-width:130px;max-width:190px}.group-strength-value{display:block;overflow-wrap:anywhere;margin-bottom:8px}.group-strength-display{display:block;overflow-wrap:anywhere;font-size:.8em;font-weight:650;margin-top:4px}#group-strength-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}#group-strength-dialog input{width:100%}#group-strength-dialog .form-error{white-space:normal;overflow-wrap:anywhere}
.vehicle-pin.speech-wanted{outline:3px solid #dc2626;outline-offset:3px;box-shadow:0 0 0 6px #fee2e2}
.speech-card{padding:16px;border:1px solid #d7deea;border-radius:10px;margin:12px 0;overflow-wrap:anywhere}
.speech-card.pending{border-left:5px solid #dc2626;background:#fff5f5}
.speech-card.handled{border-left:5px solid #29804a;background:#f3faf5}
.speech-card p{margin:8px 0}.speech-card small{display:block;color:#4b5563}
.speech-card .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
#speech-popup{width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow-y:auto}
#speech-popup-content{min-width:0}
.vehicle-pin{box-sizing:border-box;width:136px;height:28px;border-radius:5px;padding:0 4px;gap:3px}.vehicle-pin b{flex:1;min-width:0;font-size:11px;line-height:1.1}
.vehicle-pin .tactical-symbol{width:34px;min-width:34px;height:24px;flex:none}
.vehicle-pin.position-gps{background:#166534;border-color:#14532d}.vehicle-pin.position-estimated{background:#fffaed;border-color:#a16207;border-style:dashed}.vehicle-pin.position-gps-waiting{background:#fff7ed;border-color:#b45309;border-style:dashed}
.position-source{font-size:12px;font-weight:700}.position-source.gps{color:#166534}.position-source.fallback{color:#9a6700}.map-position-legend{display:flex;gap:8px 16px;flex-wrap:wrap;font-size:12px;margin:10px 0}.map-position-legend span{white-space:nowrap}.map-position-legend .gps{color:#166534}.map-position-legend .estimated{color:#a16207}
.map-position-legend span::before{content:"";display:inline-block;width:18px;height:12px;border:2px solid #0757cd;border-radius:3px;background:#fff;margin-right:5px;vertical-align:-2px;box-sizing:border-box}.map-position-legend .gps::before{border-color:#14532d;background:#166534}.map-position-legend .estimated::before{border-color:#a16207;border-style:dashed;background:#fffaed}.map-position-legend .gps-waiting::before{border-color:#b45309;border-style:dashed;background:#fff7ed}
.tactical-editor{margin-bottom:20px}.tactical-editor small{display:block;color:var(--muted);margin-top:6px}.tactical-symbol-preview{display:flex;align-items:center;gap:12px;margin-top:10px}.tactical-symbol-preview svg{width:90px;height:66px;flex:none}.tactical-symbol-preview span{font-size:14px}
.vehicle-pin.emergency{border:2px solid #b91c1c;background:#fee2e2;color:#991b1b;outline:3px solid #dc2626;outline-offset:3px}
.emergency-card{padding:16px;border:2px solid #b91c1c;border-radius:10px;background:#fff1f2;margin:12px 0;overflow-wrap:anywhere}
.emergency-card>strong{color:#991b1b;font-size:20px}.emergency-card p{margin:8px 0}.emergency-card small{display:block}.emergency-card .actions{margin-top:14px}
#emergency-popup{width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow-y:auto;border:3px solid #b91c1c}
#emergency-popup::backdrop{background:#450a0a80}
#emergency-banner{position:fixed;z-index:1100;left:16px;right:16px;bottom:16px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 20px;max-height:35dvh;overflow:auto;padding:12px 16px;border:2px solid #b91c1c;border-radius:10px;background:#fff1f2;color:#991b1b;box-shadow:0 3px 16px #0003}
#emergency-banner[hidden]{display:none}.status-table tr.has-emergency td{background:#fff1f2}.status-table .emergency-label{color:#991b1b;font-weight:700}
@media(max-width:520px){#emergency-banner{left:8px;right:8px;bottom:8px;font-size:14px}.emergency-card{padding:12px}}
@media(max-width:520px){.speech-card .actions{flex-direction:column}.speech-card .button{width:100%}.speech-card{padding:12px}}

/* Nahe Gruppen teilen einen kompakten Kartenkasten. Das äußere Element wird
   anhand seiner tatsächlichen Größe am geografischen Kartenpunkt zentriert. */
.group-map-icon{overflow:visible}
.vehicle-pin{display:flex;flex-direction:column;align-items:stretch;width:max-content;min-width:76px;max-width:190px;height:auto;padding:0;gap:0;border:1px solid #a9b8cb;border-radius:4px;background:#fff;color:#172b46;white-space:normal;box-shadow:0 1px 4px #0003;transform:translate(-50%,calc(-50% - var(--pin-offset,0px)))}
.vehicle-pin .vehicle-pin-row{position:relative;display:flex;align-items:center;gap:3px;min-height:22px;min-width:0;padding:0 3px;background:#fff;color:#172b46;--row-source:var(--pin,#0757cd)}
.vehicle-pin .vehicle-pin-row+.vehicle-pin-row{border-top:1px solid #dce3ed}
.vehicle-pin .vehicle-pin-row::before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:2px;background:var(--row-source);pointer-events:none}
.vehicle-pin .tactical-symbol{width:28px;min-width:28px;height:21px;flex:none;background:#fff;border-radius:2px}
.vehicle-pin .vehicle-pin-row b{display:block;flex:1;min-width:0;margin:0;padding:0;font-size:11px;line-height:14px;font-weight:750;color:inherit;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:normal}
.vehicle-pin .vehicle-pin-row.position-gps{background:#166534;--row-source:#14532d}
.vehicle-pin .vehicle-pin-row.position-gps:not(.speech-wanted):not(.emergency){color:#fff}
.vehicle-pin .vehicle-pin-row.position-estimated{background:#fffcf4;--row-source:#a16207}
.vehicle-pin .vehicle-pin-row.position-gps-waiting{background:#fff8f0;--row-source:#b45309}
.vehicle-pin .vehicle-pin-row.position-estimated::before,.vehicle-pin .vehicle-pin-row.position-gps-waiting::before{background:repeating-linear-gradient(to bottom,var(--row-source) 0 3px,transparent 3px 5px)}
.vehicle-pin .vehicle-pin-row.speech-wanted{background:#fff1f2;box-shadow:inset 0 0 0 1px #dc2626;--row-source:#dc2626}
.vehicle-pin .vehicle-pin-row.emergency{background:#fee2e2;color:#991b1b;box-shadow:inset 0 0 0 2px #b91c1c;--row-source:#b91c1c}
.vehicle-pin.vehicle-pin-cluster{border-color:#8799b0}
.vehicle-pin.speech-wanted{outline:2px solid #dc2626;outline-offset:1px;box-shadow:0 1px 4px #0003}
.vehicle-pin.emergency{border:1px solid #b91c1c;outline:2px solid #dc2626;outline-offset:1px;background:#fee2e2;box-shadow:0 1px 4px #0003}
.map-group-popup+.map-group-popup{border-top:1px solid #dce3ed;margin-top:8px;padding-top:8px}
