

:root {
    --radio-scale: 1;
    --handheld-radio-scale: 1;
    --pager-scale: 1;
    /* F9-Tablet Design-System */
    --ra-bg-main: #0b1520;
    --ra-bg-sidebar: #070e17;
    --ra-bg-panel: rgba(12, 22, 38, 0.82);
    --ra-bg-panel-deep: rgba(8, 15, 28, 0.55);
    --ra-bg-toolbar: #060d16;
    --ra-border: rgba(80, 130, 200, 0.18);
    --ra-border-strong: rgba(80, 130, 200, 0.28);
    --ra-accent: #84cbff;
    --ra-text: #ddeeff;
    --ra-text-muted: rgba(180, 210, 255, 0.55);
    --ra-radius: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: transparent;
    font-family: "Rajdhani", Arial, Helvetica, sans-serif;
    user-select: none;
}

.hidden {
    display: none !important;
}

.ra-ingame-hidden {
    display: none !important;
}

/* ── Wrapper ── */
.radio-shell {
    position: fixed;
    left: 40px;
    bottom: 40px;
    cursor: default;
    transform-origin: left bottom;
    transform: scale(var(--radio-scale));
    transition: transform 0.15s ease;
    z-index: 30;
}

.radio-shell[data-device="bap850s"] {
    transform: scale(var(--handheld-radio-scale, var(--radio-scale)));
}

/* Motorola-Namensleiste oben am Gerät — natürliche Greifzone */
.drag-handle {
    position: absolute;
    top: 40%;
    left: 8%;
    width: 84%;
    height: 6%;
    z-index: 10;
    cursor: grab;
    border-radius: 2px;
}

.drag-handle:active {
    cursor: grabbing;
}

.radio-wrap {
    position: relative;
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.65));
}

.radio-image {
    position: absolute;
    inset: 0;
    z-index: 15;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    display: block;
}

/* ── Screen overlay ──
   These % values are tuned to sit exactly on the MTP5500 display cutout.
   The image is 800×800, display sits roughly at:
     left 226px → 28.25%   top 376px → 47%
     width 202px → 25.25%  height 153px → 19.1%
*/
.screen {
    position: absolute;
    left: 28.25%;
    top:  47%;
    width: 25.25%;
    height: 19.1%;

    display: flex;
    flex-direction: column;

    /* Referenz: Hauptfläche weiß */
    background: #ffffff;
    overflow: hidden;
    isolation: isolate; /* eigener Stacking-Context: z-index Vergleich bleibt intern */
    z-index: 5;
}

/* 5%-Weiß-Overlay über dem gesamten Screen (bei Status-Senden aktiv) */
.screen.status-dim::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    z-index: 25;
}

/* Standby: Display leicht abgedunkelt (über Statusleiste, damit Icons mitdimmen) */
.screen-standby-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.44);
    pointer-events: none;
    z-index: 55;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.screen-standby-overlay.visible {
    opacity: 1;
}

/* ── Status bar ── */
.screen-statusbar {
    flex: 0 0 16%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    gap: 3px;
    background: transparent;
    border-bottom: none;
    position: relative;
    z-index: 50;  /* immer über allen Overlays */
}

.statusbar-left {
    display: flex;
    align-items: center;
    gap: 2px;
}

.statusbar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    pointer-events: none;
}

.icon-speaker-lcd {
    width: 12px;
    height: 9px;
    color: #0d1d25;
    image-rendering: pixelated;
}

.icon-sds-status {
    width: 12px;
    height: 12px;
    object-fit: contain;
    image-rendering: pixelated;
}

.statusbar-right {
    display: flex;
    align-items: center;
    position: absolute;
    right: 31%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

/* Status-Kreisel: 4s Pause, dann 5s durchblinken */
.status-beacon {
    position: absolute;
    left: 86.7%;
    top: 55.8%;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #1f6e2f;
    border: 1px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 rgba(46, 204, 64, 0);
    z-index: 35;
    animation: statusPulse10s 9s linear infinite;
}

@keyframes statusPulse10s {
    /* 0-4s: aus */
    0%, 44.44% {
        background: #1f6e2f;
        box-shadow: 0 0 0 rgba(46, 204, 64, 0);
    }
    /* 4-9s: grün blinken */
    44.45%, 50%,
    55.56%, 61.11%,
    66.67%, 72.22%,
    77.78%, 83.33%,
    88.89%, 94.44% {
        background: #34e259;
        box-shadow:
            0 0 4px rgba(52, 226, 89, 0.95),
            0 0 8px rgba(52, 226, 89, 0.55);
    }
    50.01%, 55.55%,
    61.12%, 66.66%,
    72.23%, 77.77%,
    83.34%, 88.88%,
    94.45%, 100% {
        background: #1f6e2f;
        box-shadow: 0 0 0 rgba(46, 204, 64, 0);
    }
}

/* Debug-Helfer zum Positionieren */
body.debug-zones .status-beacon {
    outline: 1px dashed #ff4d4d;
    outline-offset: 3px;
}

body.debug-zones .status-beacon::after {
    content: 'STATUS';
    position: absolute;
    top: -14px;
    left: -10px;
    font-size: 8px;
    font-weight: 900;
    color: #ff4d4d;
    text-shadow: 0 0 2px #000;
    white-space: nowrap;
}

/* Akku: img/moto/ — siehe motorola-icons.css */

/* ── Signal-Icon (SVG Balken) ── */
.icon-signal-svg {
    width: 14px;
    height: 9px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.sig-bar                        { fill: #2a2a2a; transition: fill 0.3s ease; }

/* 0 Balken – kein Signal */
[data-bars="0"] .b1             { fill: #c0392b; }
[data-bars="0"] .b2,
[data-bars="0"] .b3,
[data-bars="0"] .b4             { fill: #2a2a2a; }

/* 1 Balken – rot */
[data-bars="1"] .b1             { fill: #e74c3c; }
[data-bars="1"] .b2,
[data-bars="1"] .b3,
[data-bars="1"] .b4             { fill: #2a2a2a; }

/* 2 Balken – orange */
[data-bars="2"] .b1,
[data-bars="2"] .b2             { fill: #e67e22; }
[data-bars="2"] .b3,
[data-bars="2"] .b4             { fill: #2a2a2a; }

/* 3 Balken – grün */
[data-bars="3"] .b1,
[data-bars="3"] .b2,
[data-bars="3"] .b3             { fill: #2ecc71; }
[data-bars="3"] .b4             { fill: #2a2a2a; }

/* 4 Balken – alle grün */
[data-bars="4"] .b1,
[data-bars="4"] .b2,
[data-bars="4"] .b3,
[data-bars="4"] .b4             { fill: #2ecc71; }

/* Akku: img/moto/ — siehe motorola-icons.css */

.icon-circle {
    display: block;
    width: 11px;
    height: 11px;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    flex-shrink: 0;
}

.status-text {
    font-size: 9.5px;
    font-weight: 700;
    color: #1a4a5e;
    letter-spacing: 0.01em;
}

/* ── Body: text area + softkeys ── */
.screen-body {
    flex: 1 1 auto;
    display: flex;
    overflow: hidden;
}

#screenNormal {
    position: relative;
    overflow: visible;
}

/* ── Four main lines ── */
.display-lines {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 0 4px;
    overflow: hidden;
    position: relative;
    transform: translateY(-2px);
}

#screenNormal .display-lines {
    flex: 0 0 71%;
    width: 71%;
    max-width: 71%;
    padding-right: 2px;
}

.display-line {
    flex: 0 0 auto;
    width: 100%;
    color: #0d1d25;
    font-weight: 900;
    font-size: 14px;
    line-height: 1.08;
    text-align: center;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* Zeile 4: Datum+Uhrzeit — etwas kleiner */
.display-line-clock {
    font-size: 9px;
    opacity: 0.65;
}


#channelLine {
    font-size: 14.2px;
}


#resourceLine,
#statusLine {
    font-size: 15px;
    font-weight: 800;
}

#statusLine {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    margin: 0;
}

/* ── Softkey column ── */
.softkeys {
    flex: 0 0 29%;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(80, 130, 155, 0.22);
    background: #d7e8f5;
    padding: 0;
    gap: 0;
}

#screenNormal .softkeys {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 29%;
    z-index: 2;
}

.softkey {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d1d25;
    font-weight: 800;
    font-size: 11px;
    line-height: 1;
    text-align: center;
    background: linear-gradient(180deg, #eaf3fa 0%, #d6e7f4 100%);
    border: 1px solid rgba(115, 156, 180, 0.35);
    border-radius: 10px;
    margin: 1px 1px 1px 0;
}

.softkey + .softkey {
    border-top: none;
}

.icon-menu {
    display: block;
    width: 14px;
    height: 18px;
    object-fit: contain;
    image-rendering: pixelated;
    flex-shrink: 0;
}

/* ── Einzelruf-Eingabe (Overlay-Banner) ── */
.direct-input-box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 42%;
    background: #b2dfb2;
    z-index: 18;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.direct-input-box.hidden { display: none; }

.dci-header {
    background: #4a9f4a;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    min-height: 20px;
    flex-shrink: 0;
}

.dci-icon {
    width: 13px;
    height: 13px;
    object-fit: contain;
    flex-shrink: 0;
}

.dci-label {
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    font-family: sans-serif;
    letter-spacing: 0.2px;
}

.dci-number {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 14px;
    font-weight: bold;
    color: #111;
    font-family: monospace;
    padding: 0 7px;
    letter-spacing: 1px;
}

/* ── Funk-Overlay (Referenz: Bild 2) ── */
.talking-overlay {
    background: #d6f0f8;
    position: relative;
    overflow: visible;
}

/* ── Call-Screens + Talking-Overlay als echte Absolut-Overlays ── */
/* right: 29% → Softkeys-Spalte (29%) bleibt immer sichtbar, kein Durchscheinen-Problem */
#screenCallOut,
#screenCallIn,
#screenCallActive {
    position: absolute;
    top: 16%;
    left: 0;
    right: 29%;
    bottom: 0;
    z-index: 20;
    flex: none;
}

/* Talking-Overlay: right: 29% → screenNormal Softkeys bleiben sichtbar */
#screenTalking {
    position: absolute;
    top: 16%;
    left: 0;
    right: 29%;
    bottom: 0;
    z-index: 35;
    flex: none;
}

/* Talk-Softkeys immer ausblenden – screenNormal Softkeys übernehmen die Spalte */
#screenTalking .talk-softkeys {
    display: none;
}

/* Hauptbereich links */
.talk-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#screenTalking .talk-main,
#screenCallOut .talk-main,
#screenCallIn .talk-main,
#screenCallActive .talk-main {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
}

/* Cyan-Header-Bar mit Icon + "Gruppe aktiv" */
.talk-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 4px;
    background: #1ec8d8;
    border-bottom: 1px solid #0fa8b8;
}

.talk-header-title {
    color: #000;
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* Content: ID + Kanal zentriert, grau */
.talk-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28em;
    padding: 0.35em 6px;
    min-height: 0;
}

.talk-resource {
    color: #111;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.14;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    font-family: 'Inter', sans-serif;
}

.talk-id {
    color: #111;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.14;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    text-shadow: none;
}

.talk-channel {
    color: #111;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.14;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    text-shadow: none;
}

/* Rechte Softkey-Spalte */
.talk-softkeys {
    flex: 0 0 26%;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(80, 130, 155, 0.35);
    background: #c8e8f4;
}

#screenTalking .talk-softkeys {
    position: absolute;
    top: -19%;
    right: 0;
    width: 26%;
    height: 117%;
    z-index: 3;
}

.talk-softkey {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d1d25;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.talk-softkey + .talk-softkey {
    border-top: 1px solid rgba(80, 130, 155, 0.3);
}

/* ── Kanalwahl-Klickzonen ── */
.btn-zone {
    position: absolute;
    z-index: 30;
    cursor: pointer;
    border-radius: 3px;
}

/* Radio aus: ALLES sperren außer Power-Knopf */
.radio-off * {
    pointer-events: none !important;
}
.radio-off #btnPower {
    pointer-events: auto !important;
}

.radio-off .drag-handle {
    pointer-events: auto !important;
    z-index: 40;
}

/* Debug-Modus: Zonen sichtbar machen */
body.debug-zones .btn-zone {
    background: rgba(255, 0, 0, 0.35);
    outline: 1px solid red;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 3px #000;
}

/* Statusbuttons mit Nummer beschriften (nur im Debug) */
body.debug-zones .btn-num::after {
    content: attr(data-status);
    font-size: 10px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 3px #000;
}

/* Knob-Label (nur im Debug) */
body.debug-zones #btnKnob::after     { content: 'KNOB'; font-size: 8px; font-weight: 900; color: #fff; text-shadow: 0 0 3px #000; }
body.debug-zones #btnNavLeft::after  { content: '◄'; font-size: 10px; font-weight: 900; color: #fff; text-shadow: 0 0 3px #000; }
body.debug-zones #btnNavRight::after { content: '►'; font-size: 10px; font-weight: 900; color: #fff; text-shadow: 0 0 3px #000; }
body.debug-zones #btnSDS::after       { content: 'SDS'; font-size: 8px; font-weight: 900; color: #fff; text-shadow: 0 0 3px #000; }
body.debug-zones #btnCallDial::after  { content: 'DIAL'; font-size: 8px; font-weight: 900; color: #fff; text-shadow: 0 0 3px #000; }
body.debug-zones #btnOption::after    { content: 'OPTION'; font-size: 8px; font-weight: 900; color: #fff; text-shadow: 0 0 3px #000; }
body.debug-zones #btnNavUp::after     { content: 'UP'; font-size: 8px; font-weight: 900; color: #fff; text-shadow: 0 0 3px #000; }
body.debug-zones #btnNavDown::after   { content: 'DOWN'; font-size: 8px; font-weight: 900; color: #fff; text-shadow: 0 0 3px #000; }
body.debug-zones #btnVolumeDown::after { content: 'VOL-'; font-size: 8px; font-weight: 900; color: #fff; text-shadow: 0 0 3px #000; }
body.debug-zones #btnVolumeUp::after   { content: 'VOL+'; font-size: 8px; font-weight: 900; color: #fff; text-shadow: 0 0 3px #000; }
body.debug-zones #btnHomeChannel::after { content: 'HOME'; font-size: 8px; font-weight: 900; color: #fff; text-shadow: 0 0 3px #000; }

/* Linkes Drehrad / Hauptknopf */
#btnKnob {
    left: 15%;
    top: 45%;
    width: 8%;
    height: 10%;
    border-radius: 50%;
}

/* Linker Navpfeil (◄ zurück) — links vom Nav-Kreuz */
#btnNavLeft {
    left: 60%;
    top: 54%;
    width: 3%;
    height: 6%;
    border-radius: 3px;
}

/* Rechter Navpfeil (► vorwärts) — rechts vom Nav-Kreuz */
#btnNavRight {
    left: 67%;
    top: 54%;
    width: 3%;
    height: 6%;
    border-radius: 3px;
}

#btnNavUp {
    left: 63%;
    top: 50%;
    width: 4%;
    height: 4%;
    border-radius: 3px;
}

#btnNavDown {
    left: 63%;
    top: 60%;
    width: 4%;
    height: 4%;
    border-radius: 3px;
}

/* Home-/SDS-Button — Mitte Nav-Kreuz, eine Reihe über NavLeft/Right */
#btnSDS {
    left: 56.5%;
    top: 53%;
    width: 3.5%;
    height: 7%;
    border-radius: 4px;
}

#btnKwList {
    left: 56.5%;
    top: 45%;
    width: 3.5%;
    height: 7%;
    border-radius: 4px;
}

/* Power-Knopf oben links am Funkgerät */
#btnPower {
    left: 62.5%;
    top: 45%;
    width: 5.5%;
    height: 7%;
    border-radius: 4px;
}

/* Einzelruf-Wähltaste (Anruf starten) — initial neben Power, manuell verschiebbar */
#btnCallDial {
    left: 62.5%;
    top: 60.5%;
    width: 5.5%;
    height: 7%;
    border-radius: 4px;
}

/* Neuer frei belegbarer Option-Button */
#btnOption {
    left: 56.5%;
    top: 60.5%;
    width: 5.5%;
    height: 7%;
    border-radius: 4px;
}

#btnVolumeDown {
    left: 10%;
    top: 37%;
    width: 5%;
    height: 8%;
    border-radius: 50%;
}

#btnVolumeUp {
    left: 85%;
    top: 37%;
    width: 5%;
    height: 8%;
    border-radius: 50%;
}

#btnHomeChannel {
    left: 50%;
    top: 37%;
    width: 5%;
    height: 8%;
    border-radius: 50%;
}

/* Screen off — schwarzer Bildschirm */
.screen-off {
    background: #000;
    z-index: 30;
}

/* Splash-Screen */
.screen-splash {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px 4px;
    gap: 4px;
    z-index: 25;
    position: relative;
    overflow: hidden;
}

.splash-logo {
    flex: 1 1 auto;
    width: auto;
    max-width: 78%;
    max-height: 72%;
    height: auto;
    object-fit: contain;
    image-rendering: auto;
}

.splash-footer {
    flex: 0 0 auto;
    width: 100%;
    padding: 2px 4px 1px;
    text-align: center;
    color: #0057b8;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.1;
}

.screen-splash.splash-shutdown {
    justify-content: center;
}

.screen-splash.splash-issi {
    justify-content: flex-end;
}

.screen-splash.splash-issi.splash-shutdown {
    justify-content: flex-end;
}

.screen-splash.splash-issi .splash-footer {
    flex: 0 0 auto;
    width: 100%;
    padding: 2px 4px 1px;
    text-align: center;
    color: #0057b8;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.1;
}

/* ── Numpad-Klickzonen (3×3, rechts außen) ── */
.btn-num {
    width: 3%;
    height: 3%;
    border-radius: 3px;
    overflow: hidden;
}

/* Zeile 1: 1, 2, 3 */
#btnNum1 { left: 71.1%; top: 46%; }
#btnNum2 { left: 76.1%; top: 46%; }
#btnNum3 { left: 81.1%; top: 46%; }

#btnNum4 { left: 71.1%; top: 51%; }
#btnNum5 { left: 76.1%; top: 51%; }
#btnNum6 { left: 81.1%; top: 51%; }

#btnNum7 { left: 71.1%; top: 55.5%; }
#btnNum8 { left: 76.1%; top: 55.5%; }
#btnNum9 { left: 81.1%; top: 55.5%; }
#btnNum0 { left: 76.1%; top: 59.2%; }


/* ── Status-Bestätigung Toast ── */
/* Liegt ÜBER dem normalen Display, mittig */
.status-confirm {
    display: none;
    position: absolute;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 96%;
    height: 40%;
    z-index: 30;
    flex-direction: row;
    align-items: stretch;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    background: rgba(232, 239, 228, 0.95);
    border: 1px solid rgba(72, 108, 76, 0.45);
    overflow: hidden;
}

.status-confirm.visible {
    display: flex;
}

/* Linker dunkelgrüner Block mit Häkchen */
.status-icon {
    width: 21%;
    background: #2a9a5c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    position: relative;
    z-index: 2;
}

.status-warn-icon,
.status-sds-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    image-rendering: pixelated;
}

.status-check-mark {
    color: #ffe066;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-1px);
    text-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

/* Rechter hellgrüner Block mit Text */
.status-msg {
    flex: 1 1 auto;
    background: rgba(237, 244, 232, 0.93);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    position: relative;
    z-index: 2;
}

.status-msg-label {
    font-size: 13px;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.1;
}

.volume-overlay {
    position: absolute;
    inset: 16% 0 0 0;
    z-index: 28;
    background: #dcfbff;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    color: #0d1d25;
}

.volume-overlay.hidden {
    display: none;
}

.volume-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.volume-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    background: #1ec8d8;
    border-bottom: 1px solid #0fa8b8;
}

.volume-header-icon {
    width: 12px;
    height: 16px;
    object-fit: contain;
    image-rendering: pixelated;
    flex: 0 0 auto;
}

.volume-header-title {
    color: #000;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.volume-content {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 6px 0;
}

.volume-panel {
    flex: 0 0 auto;
    width: 105px;
    min-width: 0;
    text-align: center;
}

.volume-title {
    font-size: 8px;
    font-weight: 900;
    line-height: 1.05;
}

.volume-meter-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 0;
}

.volume-arrow {
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    width: 10px;
    text-align: center;
}

.volume-arrow.hidden {
    visibility: hidden;
}

.volume-meter {
    display: block;
    width: 78px;
    height: 11px;
    padding: 2px;
    border: 1px solid #7c4800;
    background: linear-gradient(90deg, #f08c00 var(--volume-fill, 0%), #ffd35a var(--volume-fill, 0%));
}

.volume-value {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 900;
}


/* Telefon-Icon (bleibt) */
.icon-phone {
    display: inline-block;
    width: 13px;
    height: 13px;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAK7wAACu8BfXaKSAAAACt0RVh0Q3JlYXRpb24gVGltZQBGciAxOSBEZXogMjAwMyAwMTo0Mzo0OSArMDEwMA+E4ZgAAAAHdElNRQfTAhoWCQzdxQgaAAAB60lEQVQ4T7XTT4gSYRjHcfEsglAeRBA8ePRQGG6QLBqIk5GmjSJp00wsg7OrzTo7oaMiO0uhpYEQu+QhkqJDbbAF5Ua0EBRBsIeKIpb+EMEe9rB7CIqt5dfb8l7fTvW5zpcH5plnLP9NPp/fk8vluAyRTqfD5XL5M8dxT+njv7LWarVLvV5uu91uo9VqoVQqQVEUJJPJL7RhkyRJH41GGCwM0Dl/EbN1EzXNwNnJaYTHw29pxmYYxvvlh8s4N6uj8ZFH4wOP6usM1McnkD6WWqcZW7PZ3FxavIfUzHGs4w3Wfr3A6s59DHcMHIke/U4zNl3Xv96+dQfZmQxWtx9gZfMm5jcUXPjB4/AYt0EzNrKsd8NrQ4jVU5j7lkB1axxzP+O4jBwO7Qt/ohkbWeLLwdUBlIkpnFEF6A0Nk1MKhJMSxg4cfEUztmw2+6Tf74MMAp/iIU/IEAUJgnAafr//Oc3YEonEUqfTATkedLtdVCoVyLIMTdPg8/ke0YwtGo3eME0T8Xgc5IvsHtGfAfV6HS6Xa5FmbKFQaIFcIsggkPOFKIooFAooFotwOBzXacYWCARMVVURiUR290BeCbFYDOQ/gM1mu0IzNo/HszcYDK6QhW15vd41t9v9zOl03rXb7fNWq3U/zf4Vi+U3ZNbow3aa1L8AAAAASUVORK5CYII=");
    background-size: contain;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    flex-shrink: 0;
}

/* ── Tablet Modul 3 — Geräterahmen (Standard) / Leitstelle Vollbild ── */
.tablet-shell {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 100;
}

.tablet-shell.leit-fullscreen {
    align-items: stretch;
    justify-content: stretch;
    background: var(--ra-bg-main, #060d16);
}

.tablet-shell.leit-fullscreen .ra-device {
    flex: 1;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.tablet-shell.leit-fullscreen .ra-device-frame {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
    border-radius: 0;
    background: var(--ra-bg-main, #060d16);
    box-shadow: none;
}

.tablet-shell.leit-fullscreen .ra-device-frame::before,
.tablet-shell.leit-fullscreen .ra-device-btn,
.tablet-shell.leit-fullscreen .ra-device-top,
.tablet-shell.leit-fullscreen .ra-device-bottom {
    display: none !important;
}

.tablet-shell.leit-fullscreen .ra-device-screen {
    flex: 1;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Physisches Tablet (Ressourcen, Einstellungen, Admin) */
.ra-device {
    position: relative;
    animation: raTabletIn 0.28s ease-out;
}

@keyframes raTabletIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ra-device-frame {
    position: relative;
    width: min(calc(98vw - 24px), 1560px);
    height: min(calc(94vh - 24px), 940px);
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(145deg, #2b2b31 0%, #1a1a1e 42%, #0e0e12 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -2px 6px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 0 3px #0a0a0c,
        0 20px 40px rgba(0, 0, 0, 0.55),
        0 8px 16px rgba(0, 0, 0, 0.35);
}

.ra-device-frame::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.ra-device-top {
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    pointer-events: none;
}

.ra-device-camera {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #3a4a5a, #0a0e14 70%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 0 2px rgba(0, 0, 0, 0.35);
}

.ra-device-speaker {
    width: 42px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(180deg, #1a1a1f, #0a0a0d);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.ra-device-bottom {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.ra-device-home {
    display: block;
    width: 34px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.ra-device-btn {
    position: absolute;
    border-radius: 3px;
    background: linear-gradient(180deg, #3a3a42, #1e1e24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.ra-device-btn-power {
    top: 18%;
    right: -5px;
    width: 4px;
    height: 46px;
}

.ra-device-btn-vol-up {
    top: 28%;
    left: -5px;
    width: 4px;
    height: 28px;
}

.ra-device-btn-vol-down {
    top: 38%;
    left: -5px;
    width: 4px;
    height: 28px;
}

.ra-device-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #111114;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.85);
}

.tablet-frame {
    width: 100%;
    height: 100%;
    display: flex;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    font-family: "Rajdhani", Arial, sans-serif;
    color: #ddeeff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Sidebar ── */
.tablet-sidebar {
    width: 210px;
    flex-shrink: 0;
    background: #070e17;
    border-right: 1px solid rgba(100,160,220,0.14);
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px 18px;
    border-bottom: 1px solid rgba(100,160,220,0.1);
}

.sidebar-logo-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a6fbf, #0d3f7a);
    border: 1px solid rgba(100,180,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #84cbff;
    flex-shrink: 0;
    letter-spacing: 0;
}

.sidebar-brand-name {
    font-size: 17px;
    font-weight: 700;
    color: #edf4ff;
    line-height: 1;
}

.sidebar-brand-sub {
    font-size: 12px;
    opacity: 0.55;
    margin-top: 3px;
    line-height: 1;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 10px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(200,220,255,0.6);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: background 0.1s, color 0.1s;
}

.sidebar-nav-item:hover {
    background: rgba(100,160,220,0.08);
    color: #c8e0ff;
}

.sidebar-nav-item.active {
    background: rgba(40,100,190,0.22);
    border-color: rgba(80,160,255,0.28);
    color: #84cbff;
}

.sidebar-nav-item.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.snav-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-footer {
    padding: 14px 12px;
    border-top: 1px solid rgba(100,160,220,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-clock {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #84cbff;
    letter-spacing: 0.06em;
}

.sidebar-close-btn {
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid rgba(231,86,98,0.4);
    background: rgba(231,86,98,0.12);
    color: #ffd7da;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

/* ── Main area ── */
.tablet-main {
    flex: 1;
    background: #0b1520;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tablet-tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    padding: 24px 28px;
}

.tablet-tab-content.active {
    display: flex;
}

/* ── Tab: Ressourcen ── */
.tcontent-header {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.tcontent-title {
    font-size: 26px;
    font-weight: 700;
    color: #edf4ff;
    line-height: 1;
}

.tcontent-sub {
    margin-top: 5px;
    font-size: 14px;
    opacity: 0.6;
}

.tcontent-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.resource-header {
    margin-bottom: 12px;
}

.res-current-badge {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(80,160,255,0.28);
    background: linear-gradient(90deg, rgba(35,88,170,0.26), rgba(8,18,34,0.74));
    color: #a9d8ff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    box-shadow: inset 0 0 18px rgba(80,160,255,0.06);
}

.resource-current-panel::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 9px;
    background: #64748b;
    box-shadow: 0 0 8px rgba(100,116,139,0.45);
}

.resource-current {
    padding: 14px;
    border-radius: 10px;
    border: 1px dashed rgba(100,160,255,0.20);
    color: rgba(190,220,255,0.52);
    background: rgba(8,18,34,0.42);
    font-size: 14px;
    font-weight: 700;
}

.resource-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 9px;
    align-content: start;
    padding-right: 4px;
}

/* Tab Ressourcen: Liste nutzt verfügbare Höhe, Leitstellen-Karte bleibt unten sichtbar */
#tabResources {
    min-height: 0;
}

#tabResources > .tcontent-header,
#tabResources > .res-current-badge {
    flex-shrink: 0;
}

#tabResources > .res-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
}

#tabResources > #serviceDutySection,
#tabResources > #dispatchDutySection {
    flex-shrink: 0;
}

.service-duty-section {
    border: 1px solid var(--ra-border);
    background: var(--ra-bg-panel-deep);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}

.service-duty-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.service-duty-list {
    display: grid;
    gap: 8px;
}

.service-duty-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(100,160,220,0.18);
    background: rgba(8,18,34,0.54);
}

.service-duty-row.active {
    border-color: rgba(70, 210, 150, 0.42);
    background: rgba(22, 86, 62, 0.18);
}

.service-duty-row.disabled {
    opacity: 0.68;
}

.service-duty-main {
    min-width: 0;
}

.service-duty-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.service-duty-org {
    color: #e7f2ff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.service-duty-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 6px;
    color: rgba(210, 228, 250, 0.68);
    font-size: 12px;
    font-weight: 700;
}

.service-duty-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    color: rgba(225, 238, 255, 0.86);
    background: rgba(100, 116, 139, 0.26);
    border: 1px solid rgba(160, 180, 210, 0.16);
}

.service-duty-pill.on {
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.34);
}

.service-duty-pill.off {
    color: #cbd5e1;
}

.service-duty-pill.switch {
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.16);
    border-color: rgba(14, 165, 233, 0.28);
}

.service-duty-hint {
    color: rgba(255, 206, 132, 0.88);
}

.service-duty-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.service-duty-action {
    min-width: 132px;
}

.service-duty-empty {
    padding: 12px;
    border: 1px dashed rgba(130, 170, 220, 0.25);
    border-radius: 8px;
    color: rgba(210, 228, 250, 0.64);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    background: rgba(8, 18, 34, 0.34);
}

.resource-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(100,160,220,0.18);
    background: linear-gradient(180deg, rgba(18,38,68,0.78), rgba(8,17,31,0.86));
    color: #d8eaff;
    border-radius: 10px;
    padding: 10px 11px;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-height: 106px;
    box-shadow: inset 0 0 18px rgba(80,160,255,0.035);
    transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.resource-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(100,160,255,0.28);
}

.resource-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.res-job-badge {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
    background: rgba(30,200,216,0.15);
    color: #1ec8d8;
    border: 1px solid rgba(30,200,216,0.3);
    border-radius: 4px;
    padding: 1px 5px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.resource-callsign {
    color: #f4f8ff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.resource-label {
    color: rgba(214,232,255,0.76);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    min-height: 15px;
}

.resource-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.resource-status-pill {
    min-width: 0;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(100,160,255,0.20);
    color: rgba(180,215,255,0.58);
    background: rgba(100,160,255,0.07);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.resource-crew-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(100,160,255,0.22);
    background: rgba(100,160,255,0.08);
    color: #84cbff;
    font-size: 11px;
    font-weight: 900;
}

.resource-crew {
    color: rgba(214,232,255,0.58);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-item:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(28,62,112,0.84), rgba(10,22,42,0.9));
    border-color: rgba(100,180,255,0.42);
}

.resource-item.active {
    border-color: rgba(34,197,94,0.56);
    background: linear-gradient(180deg, rgba(20,86,57,0.58), rgba(8,24,28,0.9));
    color: #84cbff;
}

.resource-item.active::before {
    background: #4ade80;
    box-shadow: 0 0 12px rgba(74,222,128,0.65);
}

.resource-item.active .resource-status-pill {
    border-color: rgba(34,197,94,0.40);
    color: #4ade80;
    background: rgba(34,197,94,0.12);
}

.resource-item.active .resource-crew-count {
    border-color: rgba(34,197,94,0.35);
    background: rgba(34,197,94,0.12);
    color: #4ade80;
}

/* ── Tab: Einstellungen ── */
.tablet-tab-settings {
    overflow-y: auto;
}

.settings-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.settings-section {
    margin-bottom: 0;
}

.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.settings-item {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(80, 130, 200, 0.16);
    background: rgba(8, 15, 28, 0.55);
}

.settings-item-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
}

.settings-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(40, 100, 200, 0.18);
    border: 1px solid rgba(80, 160, 255, 0.22);
    flex-shrink: 0;
}

.settings-item-label {
    font-size: 16px;
    font-weight: 700;
    color: #e8f2ff;
    line-height: 1.2;
}

.settings-item-desc {
    margin-top: 3px;
    font-size: 12px;
    color: rgba(180, 210, 255, 0.52);
    line-height: 1.35;
}

.settings-value {
    font-size: 17px;
    font-weight: 700;
    color: #84cbff;
    min-width: 52px;
    text-align: right;
    padding-top: 2px;
}

.settings-range {
    width: 100%;
    height: 6px;
    margin: 0;
    accent-color: #4da6ff;
    cursor: pointer;
}


@media (max-width: 900px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Shared buttons ── */
.tablet-btn {
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(80,160,255,0.4);
    background: rgba(30,80,180,0.25);
    color: #c8deff;
    white-space: nowrap;
}

.tablet-btn:hover {
    background: rgba(40,100,220,0.35);
}

.tablet-btn.ghost {
    border-color: rgba(100,160,220,0.28);
    background: rgba(100,160,220,0.08);
    color: #a0c8f0;
}

.tablet-btn.danger {
    border-color: rgba(231,86,98,0.45);
    background: rgba(200,40,55,0.18);
    color: #ffd7da;
}

.tablet-btn.danger:hover {
    background: rgba(220,50,65,0.28);
}

.tablet-btn.full-w {
    width: 100%;
    margin-top: 10px;
}

.tablet-btn.small-btn {
    padding: 6px 10px;
    font-size: 18px;
}

/* ════════════════════════════════════════════════════════════
   LEITSTELLEN-TABLEAU (HUD oben rechts, nur Ansicht)
════════════════════════════════════════════════════════════ */
.tableau-shell {
    position: fixed;
    top: 50px;
    right: 8px;
    z-index: 8500;
    width: auto;
    max-width: 55vw;
    pointer-events: none;
}

.tableau-shell.tableau-focused {
    pointer-events: auto;
}

.tableau-shell.tableau-focused .tableau-frame {
    pointer-events: auto;
    cursor: grab;
}

.tableau-shell.tableau-dragging .tableau-frame {
    cursor: grabbing;
}

.tableau-shell.hidden {
    display: none !important;
}

.tableau-frame {
    display: inline-flex;
    flex-direction: column;
    width: max-content;
    max-width: 62vw;
    pointer-events: none;
    padding: 10px 12px 12px;
    background: rgba(6, 14, 28, 0.88);
    border: 1px solid rgba(80, 140, 220, 0.28);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    overflow: visible;
}

.tableau-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 8px;
    margin-bottom: 6px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(80, 140, 220, 0.2);
    min-height: 28px;
    pointer-events: none;
}

.tableau-shell.tableau-focused .tableau-header {
    pointer-events: auto;
    cursor: grab;
}

.tableau-shell.tableau-dragging .tableau-header {
    cursor: grabbing;
}

.tableau-f10-hint {
    font-size: 10px;
    color: rgba(160, 200, 255, 0.45);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.tableau-shell.tableau-focused .tableau-f10-hint {
    display: none;
}

.tableau-title {
    font-size: 14px;
    font-weight: 800;
    color: #84cbff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.tableau-stat-line {
    font-size: 13px;
    color: rgba(180, 210, 255, 0.8);
    letter-spacing: 0.04em;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.tableau-stat-line b {
    color: #f59e0b;
    font-weight: 800;
}

.tableau-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.tableau-icon-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid rgba(72, 130, 210, 0.35);
    background: rgba(16, 32, 56, 0.75);
    color: rgba(190, 215, 255, 0.9);
    font-size: 12px;
    line-height: 24px;
    cursor: pointer;
    padding: 0;
}

.tableau-icon-btn:hover {
    background: rgba(36, 72, 120, 0.85);
    color: #fff;
}

.tableau-icon-btn.danger {
    border-color: rgba(220, 70, 85, 0.5);
    color: #ff9aa5;
}

.tableau-board-main {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 16px;
    padding: 2px 0 0;
    overflow: visible;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-end;
}

.tableau-col {
    flex: 0 0 auto;
    width: 210px;
    display: flex;
    flex-direction: column;
    background: rgba(10, 22, 40, 0.55);
    border: 1px solid rgba(70, 120, 200, 0.18);
    border-radius: 8px;
    overflow: visible;
    padding: 6px 8px 8px;
}

.tableau-col-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 0 0 6px;
    margin-bottom: 4px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(100, 160, 230, 0.3);
    min-height: 22px;
}

.tableau-col-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a8d4ff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 155px;
}

.tableau-col-count {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: #84cbff;
    background: rgba(60, 120, 200, 0.25);
    border-radius: 10px;
    padding: 1px 8px;
    line-height: 18px;
}

.tableau-cards {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 2px 0 0;
    overflow: visible;
}

.tableau-card {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    text-align: left;
    padding: 4px 0;
    color: #e8f2ff;
    pointer-events: none;
    user-select: none;
    border-bottom: 1px solid rgba(80, 130, 200, 0.12);
}

.tableau-card:last-child {
    border-bottom: none;
}

.tableau-card-dot {
    flex-shrink: 0;
    width: 5px;
    height: 100%;
    min-height: 30px;
    border-radius: 3px;
    margin-top: 2px;
}

.tableau-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tableau-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
}

.tableau-card-name {
    font-size: 12px;
    font-weight: 700;
    color: #f0f6ff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.tableau-card-sid {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    opacity: 0.95;
}

.tableau-card-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    line-height: 1.25;
    color: rgba(200, 220, 255, 0.8);
    overflow: hidden;
}

.tableau-card-status {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

.tableau-card-sep {
    opacity: 0.4;
    flex-shrink: 0;
}

.tableau-card-crew {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.tableau-empty {
    font-size: 12px;
    color: rgba(160, 200, 255, 0.55);
    padding: 8px 12px;
    font-style: italic;
}

/* ════════════════════════════════════════════════════════════
   LEITSTELLE TAB
════════════════════════════════════════════════════════════ */
.leitstelle-layout {
    padding: 0 !important;
    gap: 0;
    flex: 1;
    min-height: 0;
}

/* Toolbar: stats + subtabs */
.leit-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #060d16;
    border-bottom: 1px solid rgba(80,130,200,0.18);
    flex-shrink: 0;
    gap: 14px;
}

.leit-statbar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.leit-stat-pill {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(20,40,70,0.7);
    border: 1px solid rgba(80,130,200,0.2);
}

.pill-val {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.pill-label {
    font-size: 12px;
    opacity: 0.65;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.leit-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Notruf 144: Umschalter N144 / FW-Leitstelle */
.notruf-leit-context-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
    padding: 6px;
    border-radius: 10px;
    background: rgba(12, 24, 42, 0.55);
    border: 1px solid rgba(80, 130, 200, 0.22);
}

.notruf-leit-context-btn {
    flex: 1 1 auto;
    min-width: 140px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(80, 130, 200, 0.28);
    background: rgba(20, 36, 58, 0.85);
    color: rgba(200, 220, 245, 0.88);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.notruf-leit-context-btn:hover {
    border-color: rgba(120, 170, 230, 0.45);
    color: #fff;
}

.notruf-leit-context-btn.active {
    border-color: rgba(59, 130, 246, 0.75);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.55) 0%, rgba(29, 78, 216, 0.4) 100%);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.25);
}

/* Alte Definitionen jetzt im Schema-Block — hier Platzhalter */
.leitstelle-subtabs {
    /* via .tablet-subtabs im Schema */
}

.leitstelle-subtab {
    /* via einheitlichem Block */
}

.leitstelle-subtab.active {
    /* via einheitlichem Block */
}

.leit-denied {
    /* Stile jetzt im einheitlichen Schema-Block am Ende der Datei */
}

/* subpanes */
.leitstelle-subpane {
    display: none;
    flex: 1;
    overflow: hidden;
    flex-direction: column;
}

.leitstelle-subpane.active {
    display: flex;
}

.leit-subtabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 28px 10px;
}

.leit-workspace-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.leit-workspace-tool {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(80,130,200,0.25);
    background: rgba(12,24,40,0.85);
    color: #9ec5ff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.leit-workspace-tool:hover {
    background: rgba(30,60,100,0.9);
    color: #edf4ff;
}

.leit-split-hint {
    font-size: 11px;
    opacity: 0.55;
    max-width: 220px;
    line-height: 1.3;
}

.leit-workspace.leit-simple-tabs .leit-pane-head {
  display: none;
}

.leit-workspace.leit-simple-tabs .leit-pane-wrap.open {
  border: none;
  box-shadow: none;
}

.leit-workspace.leit-simple-tabs .leit-pane-body {
  padding: 0;
}

.leit-workspace {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.leit-split {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.leit-split.axis-row {
    flex-direction: row;
}

.leit-split.axis-col {
    flex-direction: column;
}

.leit-split-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.leit-pane-pool {
    display: none !important;
}

.leit-pane-wrap {
    display: none;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: rgba(4,10,18,0.35);
}

.leit-pane-wrap.open {
    display: flex;
}

.leit-pane-wrap.focused {
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.leit-dnd-tabs .leitstelle-subtab {
    cursor: grab;
    user-select: none;
}

.leitstelle-subtab.leit-dragging,
.leit-pane-wrap.leit-dragging {
    opacity: 0.45;
}

body.leit-dnd-active {
    cursor: grabbing;
}

.leit-pane-grip {
    color: rgba(158, 197, 255, 0.45);
    font-size: 11px;
    margin-right: 6px;
    cursor: grab;
}

.leit-pane-wrap.leit-drop-left {
    box-shadow: inset 4px 0 0 #38bdf8;
}

.leit-pane-wrap.leit-drop-right {
    box-shadow: inset -4px 0 0 #38bdf8;
}

.leit-pane-wrap.leit-drop-top {
    box-shadow: inset 0 4px 0 #38bdf8;
}

.leit-pane-wrap.leit-drop-bottom {
    box-shadow: inset 0 -4px 0 #38bdf8;
}

.leit-pane-wrap.leit-drop-center {
    box-shadow: inset 0 0 0 2px rgba(56, 189, 248, 0.55);
}

.leit-drop-overlay {
    position: fixed;
    z-index: 14000;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    grid-template-rows: 1fr 1.2fr 1fr;
    gap: 4px;
    padding: 4px;
    pointer-events: none;
    background: rgba(2, 8, 16, 0.45);
    border: 1px dashed rgba(56, 189, 248, 0.45);
    border-radius: 8px;
}

body.leit-dnd-active .leit-drop-overlay {
    pointer-events: auto;
}

.leit-drop-overlay.hidden {
    display: none !important;
}

.leit-drop-zone {
    border: 1px solid rgba(80, 130, 200, 0.25);
    border-radius: 6px;
    background: rgba(8, 16, 28, 0.75);
    color: rgba(200, 220, 255, 0.75);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.45;
    transition: opacity 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

body.leit-dnd-active .leit-drop-zone {
    pointer-events: auto;
    cursor: pointer;
}

.leit-drop-zone.active {
    opacity: 1;
    background: rgba(56, 189, 248, 0.28);
    border-color: rgba(56, 189, 248, 0.85);
    color: #edf4ff;
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.5);
}

.leit-drop-zone.zone-top { grid-column: 2; grid-row: 1; }
.leit-drop-zone.zone-left { grid-column: 1; grid-row: 2; }
.leit-drop-zone.zone-center { grid-column: 2; grid-row: 2; }
.leit-drop-zone.zone-right { grid-column: 3; grid-row: 2; }
.leit-drop-zone.zone-bottom { grid-column: 2; grid-row: 3; }

.leit-pane-add {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: rgba(158, 197, 255, 0.55);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.leit-pane-add:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #9ec5ff;
}

.leit-add-menu {
    position: fixed;
    z-index: 14500;
    min-width: 160px;
    padding: 6px;
    border-radius: 10px;
    background: rgba(8, 16, 28, 0.98);
    border: 1px solid rgba(80, 130, 200, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.leit-add-menu.hidden {
    display: none !important;
}

.leit-add-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #ddeeff;
    font: inherit;
    cursor: pointer;
}

.leit-add-menu-item:hover {
    background: rgba(56, 189, 248, 0.12);
    color: #edf4ff;
}

.leit-pane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(8,16,28,0.92);
    border-bottom: 1px solid rgba(80,130,200,0.15);
    flex-shrink: 0;
    cursor: grab;
}

.leit-pane-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ec5ff;
}

.leit-pane-head-actions {
    display: flex;
    gap: 4px;
}

.leit-pane-close {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(200,220,255,0.65);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.leit-pane-close:hover {
    background: rgba(239,68,68,0.15);
    color: #fca5a5;
}

.leit-pane-body {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.leit-pane-body > .leitstelle-subpane {
    display: flex !important;
    flex: 1;
    min-height: 0;
}

.leit-pane-body .einsatz-layout,
.leit-pane-body .einsatz-pane-layout,
.leit-pane-body .notruf-calls-section .einsatz-layout,
.leit-pane-body .boskom-layout,
.leit-pane-body .leit-ascom-wrap,
.leit-pane-body .leit-board,
.leit-pane-body .leit-map-shell,
.leit-pane-body .leit-actions-split {
    flex: 1;
    min-height: 0;
    height: 100%;
}

.leit-pane-body #leitSubOverview {
    padding: 12px 16px;
}

.leit-pane-resizer {
    flex: 0 0 6px;
    background: rgba(80,130,200,0.08);
    cursor: col-resize;
    position: relative;
    z-index: 2;
}

.leit-split.axis-col > .leit-pane-resizer {
    cursor: row-resize;
    flex-basis: 6px;
    width: auto;
}

.leit-pane-resizer:hover,
body.leit-resize-active .leit-pane-resizer {
    background: rgba(56,189,248,0.35);
}

.leitstelle-subtab.open:not(.active) {
    box-shadow: inset 0 -2px 0 rgba(56,189,248,0.45);
}

body.dispatch-duty-modal-open {
    overflow: hidden;
}

.dispatch-duty-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(2,8,16,0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.dispatch-duty-modal {
    position: relative;
    width: min(760px, 100%);
    max-height: min(88vh, 900px);
    overflow: auto;
}

.dispatch-duty-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: rgba(8,16,28,0.9);
    color: #cbd5e1;
    cursor: pointer;
}

.dispatch-duty-modal-close:hover {
    background: rgba(239,68,68,0.2);
    color: #fca5a5;
}

.dispatch-duty-fab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(80,130,200,0.35);
    background: rgba(12,24,40,0.92);
    color: #edf4ff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.dispatch-duty-fab.off-duty {
    border-color: rgba(34,197,94,0.45);
    background: rgba(20,60,40,0.85);
    color: #86efac;
}

.dispatch-duty-fab.on-duty.avail-ready {
    border-color: rgba(34,197,94,0.45);
}

.dispatch-duty-fab.on-duty.avail-pause {
    border-color: rgba(239,68,68,0.45);
}

.dispatch-duty-fab.on-duty.avail-talking {
    border-color: rgba(245,158,11,0.45);
}

.dispatch-duty-fab-role {
    font-weight: 800;
    letter-spacing: 0.04em;
}

.dispatch-duty-fab-sep {
    opacity: 0.45;
}

/* ── Übersicht subpane ── */
#leitSubOverview {
    padding: 18px 20px;
    overflow-y: auto;
}

.leit-overview-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}

.leit-overview-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leit-overview-scope-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(186, 230, 253, 0.95);
    background: rgba(14, 116, 144, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.28);
}

.leit-overview-scope-icon {
    opacity: 0.85;
}

.leit-overview-channels-panel {
    min-height: 0;
}

.leit-panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.leit-panel-title-row .leit-panel-title {
    margin-bottom: 0;
}

.leit-overview-count {
    font-size: 12px;
    color: rgba(158, 197, 255, 0.55);
}

.leit-channel-overview {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leit-overview-empty {
    padding: 28px 16px;
    text-align: center;
}

.leit-channel-group {
    border: 1px solid rgba(80, 130, 200, 0.16);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(10, 18, 32, 0.72);
}

.leit-channel-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(20, 40, 70, 0.55);
    border-bottom: 1px solid rgba(80, 130, 200, 0.12);
}

.leit-channel-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.leit-channel-group-name {
    font-size: 14px;
    font-weight: 700;
    color: rgba(230, 240, 255, 0.95);
}

.leit-channel-group-short {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(158, 197, 255, 0.65);
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.18);
}

.leit-channel-group-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 12px;
    color: rgba(158, 197, 255, 0.62);
}

.leit-channel-group-freq {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.leit-channel-group-rows {
    display: flex;
    flex-direction: column;
}

.leit-channel-player-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    border-top: 1px solid rgba(80, 130, 200, 0.08);
}

.leit-channel-player-row:first-child {
    border-top: none;
}

.leit-channel-player-row.talking {
    background: rgba(20, 60, 30, 0.42);
    box-shadow: inset 3px 0 0 rgba(34, 197, 94, 0.85);
}

.leit-channel-player-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.leit-channel-issi {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    font-weight: 700;
    color: #7dd3fc;
    letter-spacing: 0.06em;
    min-width: 72px;
}

.leit-channel-player-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(230, 240, 255, 0.94);
}

.leit-job-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: rgba(226, 232, 240, 0.92);
    background: rgba(51, 65, 85, 0.45);
}

.leit-job-badge.job-asb,
.leit-job-badge.job-notruf {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(127, 29, 29, 0.28);
}

.leit-job-badge.job-fw {
    color: #fed7aa;
    border-color: rgba(251, 146, 60, 0.35);
    background: rgba(124, 45, 18, 0.28);
}

.leit-job-badge.job-lpd {
    color: #bfdbfe;
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(30, 58, 138, 0.28);
}

.leit-channel-player-sub {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(158, 197, 255, 0.58);
}

.leit-channel-resource {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.leit-channel-source {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.leit-panel {
    background: rgba(12,22,38,0.8);
    border: 1px solid rgba(80,130,200,0.18);
    border-radius: 10px;
    padding: 16px;
}

.leit-panel-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(130,180,255,0.7);
    margin-bottom: 12px;
}

.leit-panel-divider {
    margin: 18px 0 14px;
    border: none;
    border-top: 1px solid rgba(80,130,200,0.18);
}

/* Channel list */
.leit-channel-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leit-channel-row {
    display: grid;
    grid-template-columns: 160px 90px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(20,40,70,0.5);
    border: 1px solid rgba(80,130,200,0.15);
    font-size: 14px;
}

.leit-channel-row.talking {
    border-color: rgba(34,197,94,0.5);
    background: rgba(20,60,30,0.5);
}

.leit-ch-name {
    font-weight: 700;
    color: #84cbff;
}

.leit-ch-freq {
    color: rgba(200,220,255,0.5);
    font-size: 13px;
}

.leit-ch-live {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 4px;
    background: #22c55e;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
    animation: liveFlash 1s infinite;
}

@keyframes liveFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.leit-empty {
    color: rgba(180,210,255,0.4);
    font-size: 14px;
    font-style: italic;
    padding: 8px 0;
}

/* ── Tableau subpane ── */
#leitSubBoard {
    overflow-x: auto;
    overflow-y: auto;
    padding: 16px 18px;
}

.leit-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap: 14px;
    width: 100%;
    align-items: start;
}

.leit-board-empty {
    color: rgba(180,210,255,0.4);
    font-size: 15px;
    font-style: italic;
    padding: 20px;
    grid-column: 1 / -1;
}

.leit-map-shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    padding: 10px 14px 14px;
    gap: 8px;
}

.leit-map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.leit-map-legend {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    flex-wrap: wrap;
}

.leit-map-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #e8f0ff;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.leit-map-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.leit-map-dot.resource {
    background: #4caf50;
    border-color: #1b5e20;
}

.leit-map-dot.event-active {
    width: 0;
    height: 0;
    border-radius: 0;
    border: none;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 9px solid #ef5350;
    background: transparent;
}

.leit-map-stats {
    color: #e8f0ff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

.leit-map-viewport {
    position: relative;
    flex: 1;
    min-height: 240px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(80, 130, 200, 0.22);
    background: #0d1117;
}

#leitMapCanvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.leit-map-popup {
    position: absolute;
    z-index: 4;
    min-width: 160px;
    max-width: 260px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(8, 14, 24, 0.96);
    border: 1px solid rgba(120, 170, 255, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

.leit-map-popup-title {
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 5px;
    line-height: 1.3;
}

.leit-map-popup-line {
    font-size: 12px;
    font-weight: 500;
    color: #dce8ff;
    line-height: 1.45;
}

.incident-plz-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.incident-plz-row .leit-input {
    flex: 1;
    min-width: 0;
}

.incident-map-pin-btn {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid rgba(80, 130, 200, 0.35);
    background: rgba(20, 40, 70, 0.9);
    color: #9ec5ff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.incident-map-pin-btn:hover {
    background: rgba(35, 70, 120, 0.95);
    color: #ffffff;
}

.incident-map-pin-btn.active {
    border-color: rgba(255, 112, 67, 0.75);
    background: rgba(255, 112, 67, 0.18);
    color: #ffab91;
}

.incident-map-pin-hint {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #ffab91;
}

.leit-map-picker-modal {
    width: min(920px, 96vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.leit-map-picker-hint {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #dce8ff;
}

.leit-map-picker-viewport {
    position: relative;
    height: min(56vh, 520px);
    min-height: 280px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(80, 130, 200, 0.25);
    background: #0d1117;
    margin-bottom: 12px;
}

#leitMapPickerCanvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: crosshair;
}

body.leit-map-picker-open {
    overflow: hidden;
}

.leit-col {
    flex-shrink: 0;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: linear-gradient(180deg, rgba(12,24,42,0.96) 0%, rgba(8,16,28,0.92) 100%);
    border: 1px solid rgba(80,130,200,0.22);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.leit-col-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    background: linear-gradient(90deg, rgba(24,58,110,0.55) 0%, rgba(18,40,72,0.35) 100%);
    border-bottom: 1px solid rgba(80,130,200,0.24);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(170,210,255,0.92);
}

.leit-col-head > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leit-col-count {
    flex-shrink: 0;
    background: rgba(80,140,255,0.2);
    border: 1px solid rgba(80,140,255,0.35);
    border-radius: 999px;
    min-width: 26px;
    text-align: center;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #9fd4ff;
}

.leit-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    overflow-y: auto;
    max-height: min(680px, calc(100vh - 260px));
}

.leit-card {
    appearance: none;
    width: 100%;
    text-align: left;
    border-radius: 10px;
    border: 1px solid rgba(80,130,200,0.14);
    border-left: 4px solid #475569;
    background: rgba(14,26,44,0.88);
    padding: 10px 11px;
    cursor: context-menu;
    color: #ddeeff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.12s, border-color 0.12s, transform 0.12s;
}

.leit-card:hover {
    background: rgba(24,46,78,0.92);
    border-color: rgba(100,160,240,0.28);
    transform: translateY(-1px);
}

.leit-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.leit-card-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.leit-card-job-badge {
    align-self: flex-start;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(80,130,200,0.16);
    color: rgba(160,200,255,0.85);
    border: 1px solid rgba(80,130,200,0.22);
}

.leit-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #e8f2ff;
    line-height: 1.25;
    word-break: break-word;
}

.leit-card-sid {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    border: 1px solid;
    line-height: 1;
}

.leit-card-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.leit-card-status {
    font-size: 11px;
    color: rgba(190,215,255,0.82);
    line-height: 1.2;
}

.leit-card-assigned {
    font-size: 11px;
    color: rgba(150,185,230,0.62);
    line-height: 1.2;
}

.leit-card-comment {
    font-size: 10px;
    color: rgba(255,220,140,0.85);
    line-height: 1.25;
    padding-top: 2px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Aktionen subpane ── */
#leitSubActions {
    overflow: hidden;
}

.leit-actions-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    padding-right: 4px;
}

@media (max-width: 1100px) {
    .leit-actions-split {
        grid-template-columns: 1fr;
    }
}

.leit-action-panel {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.leit-action-mode-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.leit-action-mode {
    flex: 1;
    min-width: 88px;
    padding: 7px 10px;
    border-radius: 7px;
    border: 1px solid rgba(80,130,200,0.22);
    background: transparent;
    color: rgba(180,210,255,0.55);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    font-family: inherit;
}

.leit-action-mode.active {
    background: rgba(40,100,200,0.28);
    border-color: rgba(80,160,255,0.5);
    color: #84cbff;
}

.leit-action-target-wrap {
    margin-top: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.leit-issi-send-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.leit-issi-send-row .admin-ric-issi-input {
    flex: 1 1 auto;
    min-width: 0;
}

.leit-issi-send-add {
    flex: 0 0 auto;
    padding: 8px 12px;
    white-space: nowrap;
}

.leit-issi-send-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
    margin-bottom: 6px;
}

.leit-issi-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(80, 160, 255, 0.15);
    border: 1px solid rgba(80, 160, 255, 0.35);
    font-size: 12px;
    font-weight: 600;
}

.leit-issi-chip-remove {
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 14px;
    opacity: 0.75;
}

.leit-issi-chip-remove:hover {
    opacity: 1;
}

.leit-action-hint {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(180,210,255,0.55);
    line-height: 1.4;
}

.leit-action-send-btn {
    margin-top: auto;
}

.alarm-panel {
    border-color: rgba(220,60,70,0.3);
    background: rgba(14,20,30,0.85);
    max-width: 860px;
}

.alarm-panel-title {
    color: rgba(255,140,140,0.8);
}

.leit-alarm-form {
    display: grid;
    grid-template-columns: 1fr 140px 1fr;
    gap: 12px;
}

.leit-form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.leit-check-row {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.leit-check-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #c8deff;
}

.leit-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(130,180,255,0.65);
}

.leit-select,
.leit-input {
    width: 100%;
    padding: 9px 12px;
    border-radius: 7px;
    border: 1px solid rgba(80,130,200,0.28);
    background: rgba(8,15,28,0.9);
    color: #c8deff;
    font-size: 14px;
    font-family: inherit;
}

.leit-select:focus,
.leit-input:focus {
    outline: none;
    border-color: rgba(80,160,255,0.5);
}

.rd-code-field,
.street-field {
    position: relative;
}

.rd-code-input-row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 150px;
    gap: 10px;
    align-items: end;
}

.rd-code-level-wrap {
    min-width: 0;
}

.rd-code-level-slot {
    min-height: 38px;
    display: flex;
    align-items: center;
}

.rd-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.2;
    white-space: nowrap;
}

.rd-code-option-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.rd-code-option-code {
    color: #7aacff;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.rd-code-option .rd-level-badge {
    flex-shrink: 0;
    font-size: 10px;
    padding: 2px 8px;
}

.rd-code-current-label {
    color: rgba(210, 226, 255, 0.58);
    background: rgba(8, 15, 28, 0.45);
    border-color: rgba(80, 130, 200, 0.14);
    cursor: default;
}

.rd-code-suggest {
    position: absolute;
    z-index: 50;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid rgba(80,160,255,0.35);
    border-radius: 8px;
    background: rgba(5, 12, 24, 0.98);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
}

.rd-code-option {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(80,130,200,0.16);
    background: transparent;
    color: #c8deff;
    padding: 8px 10px;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.rd-code-option:last-child {
    border-bottom: 0;
}

.rd-code-option span {
    display: block;
}

.rd-code-option .rd-code-option-head span.rd-code-option-code {
    display: inline;
}

.rd-code-option small {
    display: block;
    margin-top: 2px;
    color: rgba(210, 226, 255, 0.78);
    font-size: 12px;
    line-height: 1.15;
}

.rd-code-option small.street-postal-hint {
    margin-top: 1px;
    opacity: 0.72;
}

.rd-code-option:hover,
.rd-code-option.active {
    background: rgba(80,160,255,0.16);
}

.rd-code-empty {
    padding: 10px;
    color: rgba(210, 226, 255, 0.65);
    font-size: 13px;
}

/* Alarm resource checkboxes */
.alarm-resource-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.alarm-resource-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 7px;
    background: rgba(20,40,70,0.5);
    border: 1px solid rgba(80,130,200,0.16);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #c8deff;
}

.alarm-resource-item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #ef4444;
    flex-shrink: 0;
}

.alarm-res-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 4px;
}

/* ════════════════════════════════════════════════════════════
   EINSATZVERWALTUNG
════════════════════════════════════════════════════════════ */
#leitSubEinsaetze {
    overflow: hidden;
    padding: 0;
}

.einsatz-layout {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    height: 100%;
    overflow: hidden;
    gap: 0;
}

.einsatz-pane-layout {
    display: grid;
    grid-template-columns: minmax(340px, 42fr) minmax(0, 58fr);
    height: 100%;
    min-height: 0;
    overflow: hidden;
    gap: 0;
}

.einsatz-detail-pane {
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(80,130,200,0.22);
    background: var(--ra-bg-panel-deep, rgba(8, 16, 28, 0.55));
}

.einsatz-right-stack {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.einsatz-list-section {
    flex: 1 1 0;
    min-height: 64px;
    max-height: 34%;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(80,130,200,0.22);
    background: rgba(8,16,28,0.55);
}

.einsatz-resources-section {
    flex: 1 1 0;
    min-height: 64px;
    max-height: 34%;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(80,130,200,0.22);
    background: rgba(8,16,28,0.55);
}

.einsatz-massnahmen-section {
    flex: 1 1 0;
    min-height: 168px;
    max-height: none;
    display: flex;
    flex-direction: column;
    background: rgba(8,16,28,0.55);
}

.einsatz-massnahmen-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px 6px;
    flex-shrink: 0;
}

.einsatz-massnahmen-head h3 {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(184,220,255,0.75);
}

.einsatz-massnahmen-board {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.einsatz-massnahmen-table-wrap {
    overflow: auto;
    flex-shrink: 0;
}

.einsatz-massnahmen-table tbody tr.massnahme-disabled {
    opacity: 0.55;
}

.einsatz-resources-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px 6px;
    flex-shrink: 0;
}

.einsatz-resources-head h3 {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(184,220,255,0.75);
}

.einsatz-resources-board {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.einsatz-resources-table-wrap {
    overflow: auto;
    flex-shrink: 0;
}

.einsatz-resources-incident {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.einsatz-resources-incident.hidden {
    display: none;
}

.einsatz-res-table tbody tr.assigned-to-incident td {
    box-shadow: inset 3px 0 0 rgba(56,189,248,0.75);
}

.einsatz-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px 6px;
    flex-shrink: 0;
}

.einsatz-list-head h3 {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(184,220,255,0.75);
}

.einsatz-list-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.einsatz-list-board {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0 10px 8px;
}

.einsatz-list-empty-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    font-size: 12px;
    color: rgba(158,197,255,0.45);
}

.einsatz-list-table-wrap {
    overflow: auto;
}

.einsatz-queue-table {
    width: 100%;
}

.einsatz-queue-table th,
.einsatz-queue-table td {
    border-bottom: none;
}

.einsatz-queue-table tbody tr {
    cursor: pointer;
}

.einsatz-queue-table tbody tr.inc-active td,
.einsatz-queue-table tbody tr.inc-draft td {
    background: rgba(245, 158, 11, 0.14);
}

.einsatz-queue-table tbody tr.inc-closed td {
    background: rgba(34, 197, 94, 0.12);
}

.einsatz-queue-table tbody tr.selected td {
    filter: brightness(1.08);
}

.einsatz-queue-table tbody tr:hover td {
    filter: brightness(1.06);
}

.notruf-pane-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.notruf-chat-pane {
    flex: 3;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
}

.notruf-chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(158,197,255,0.45);
    font-size: 13px;
}

.notruf-chat-pane .notruf-chat-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 10px;
}

.notruf-chat-pane .notruf-chat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(80,130,200,0.16);
}

.notruf-chat-pane .notruf-chat-section {
    flex: 1;
    min-height: 0;
}

.notruf-chat-pane .notruf-chat-log {
    flex: 1;
    min-height: 0;
    max-height: none;
}

.notruf-telephony-section {
    flex: 1;
    min-height: 0;
    max-height: 28%;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(80,130,200,0.22);
    background: rgba(8,16,28,0.55);
}

.notruf-telephony-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px 6px;
    flex-shrink: 0;
}

.notruf-telephony-head h3 {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(184,220,255,0.75);
}

.notruf-telephony-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notruf-telephony-board {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0 10px 8px;
}

.notruf-telephony-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    font-size: 12px;
    color: rgba(158,197,255,0.45);
}

.notruf-telephony-table-wrap {
    overflow: auto;
}

.notruf-telephony-table {
    width: 100%;
}

.notruf-queue-table tbody tr {
    cursor: pointer;
}

.notruf-queue-table tbody tr.selected td {
    box-shadow: inset 3px 0 0 rgba(56,189,248,0.85);
}

.notruf-queue-table tbody tr.notruf-ringing td {
    animation: notrufRowPulse 1.4s ease-in-out infinite;
}

.notruf-queue-table tbody tr.on-hold td {
    background: rgba(147, 197, 253, 0.08);
}

@keyframes notrufRowPulse {
    0%, 100% { background: rgba(245, 158, 11, 0.06); }
    50% { background: rgba(245, 158, 11, 0.16); }
}

.funkverkehr-pane-layout {
    display: flex;
    flex-direction: row;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    gap: 12px;
}

.funkverkehr-list-pane {
    flex: 0 0 42%;
    min-width: 280px;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: rgba(8, 16, 28, 0.55);
    border: 1px solid rgba(80, 130, 200, 0.18);
    border-radius: 10px;
    overflow: hidden;
}

.funkverkehr-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(80, 130, 200, 0.14);
    flex-shrink: 0;
}

.funkverkehr-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.funkverkehr-toolbar-top h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(210, 230, 255, 0.88);
}

.funkverkehr-toolbar-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.funkverkehr-filter-select {
    min-width: 0;
    padding: 8px 32px 8px 11px;
    font-size: 12px;
    border-radius: 8px;
    appearance: none;
    background-color: rgba(8, 15, 28, 0.92);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ec5ff' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}

.funkverkehr-filter-select:hover {
    border-color: rgba(80, 160, 255, 0.38);
}

.funkverkehr-search-wrap {
    grid-column: 1 / -1;
    position: relative;
    display: flex;
    align-items: center;
}

.funkverkehr-search-wrap > i {
    position: absolute;
    left: 11px;
    font-size: 12px;
    color: rgba(158, 197, 255, 0.45);
    pointer-events: none;
}

.funkverkehr-search-input {
    padding-left: 32px;
    font-size: 12px;
    border-radius: 8px;
}

.funkverkehr-search-input::-webkit-search-cancel-button {
    filter: invert(0.75);
}

.funkverkehr-stats {
    font-size: 12px;
    font-weight: 600;
    color: rgba(125, 211, 252, 0.72);
    letter-spacing: 0.02em;
}

.funkverkehr-history-board {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.funkverkehr-history-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
}

.funkverkehr-card {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(80, 130, 200, 0.16);
    border-radius: 10px;
    background: rgba(12, 22, 38, 0.82);
    padding: 10px 12px;
    cursor: pointer;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.funkverkehr-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(16, 32, 56, 0.92);
}

.funkverkehr-card.selected {
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: inset 3px 0 0 rgba(56, 189, 248, 0.85);
}

.funkverkehr-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.funkverkehr-card-issi {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    font-weight: 700;
    color: #7dd3fc;
    letter-spacing: 0.05em;
}

.funkverkehr-card-duration {
    font-size: 11px;
    color: rgba(158, 197, 255, 0.55);
}

.funkverkehr-card-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(230, 240, 255, 0.94);
}

.funkverkehr-card-sub,
.funkverkehr-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(158, 197, 255, 0.62);
}

.funkverkehr-card-sub {
    margin-top: 4px;
}

.funkverkehr-card-meta {
    margin-top: 6px;
}

.funkverkehr-card-job {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.funkverkehr-card-job.job-asb,
.funkverkehr-card-job.job-notruf {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(127, 29, 29, 0.28);
}

.funkverkehr-card-job.job-fw {
    color: #fed7aa;
    border-color: rgba(251, 146, 60, 0.35);
    background: rgba(124, 45, 18, 0.28);
}

.funkverkehr-card-job.job-lpd {
    color: #bfdbfe;
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(30, 58, 138, 0.28);
}

.funkverkehr-detail-pane {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    padding: 16px 18px;
    background: rgba(10, 18, 32, 0.72);
    border: 1px solid rgba(80, 130, 200, 0.18);
    border-radius: 10px;
}

.funkverkehr-detail-empty-hint {
    font-size: 12px;
    color: rgba(158, 197, 255, 0.45);
    max-width: 280px;
    text-align: center;
}

.funkverkehr-detail-issi {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 22px;
    font-weight: 700;
    color: #7dd3fc;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.funkverkehr-detail-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.funkverkehr-detail-channel {
    font-size: 12px;
    color: rgba(158, 197, 255, 0.65);
    text-align: right;
}

.funkverkehr-audio-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.funkverkehr-detail-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(158,197,255,0.45);
    font-size: 13px;
    min-height: 180px;
}

.funkverkehr-detail-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.funkverkehr-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(80,130,200,0.16);
}

.funkverkehr-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px 14px;
}

.funkverkehr-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
}

.funkverkehr-meta-item span {
    color: rgba(158,197,255,0.55);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.funkverkehr-meta-item strong {
    color: rgba(230,240,255,0.92);
    font-weight: 600;
    word-break: break-word;
}

.funkverkehr-meta-item strong.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
}

.funkverkehr-audio-section {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(80,130,200,0.12);
}

.funkverkehr-audio-player {
    width: 100%;
    margin-top: 8px;
}

.funkverkehr-audio-status {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(158,197,255,0.55);
}

.funkverkehr-history-section {
    flex: 1;
    min-height: 0;
    max-height: 32%;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(80,130,200,0.22);
    background: rgba(8,16,28,0.55);
}

.funkverkehr-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px 6px;
    flex-shrink: 0;
}

.funkverkehr-history-head h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(210,230,255,0.9);
}

.funkverkehr-history-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.funkverkehr-history-tools .tablet-select.compact,
.funkverkehr-history-tools .tablet-input.compact {
    min-width: 120px;
    max-width: 180px;
}

.funkverkehr-history-board {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.funkverkehr-history-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(158,197,255,0.45);
    font-size: 13px;
    padding: 16px;
}

.funkverkehr-history-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.funkverkehr-history-table tbody tr {
    cursor: pointer;
}

.funkverkehr-history-table tbody tr.selected td {
    box-shadow: inset 3px 0 0 rgba(56,189,248,0.85);
}

.leit-context-menu .ctx-submenu-wrap {
    position: relative;
}

.leit-context-menu .ctx-submenu-wrap > button::after {
    content: '›';
    float: right;
    opacity: 0.65;
}

.leit-context-menu .ctx-submenu {
    display: none;
    margin-top: 4px;
    padding-left: 8px;
    border-left: 2px solid rgba(80,130,200,0.25);
}

.leit-context-menu .ctx-submenu-wrap.open .ctx-submenu {
    display: block;
}

/* ── Liste (links) ── */
.einsatz-list-col {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(80,130,200,0.18);
    overflow: hidden;
}

.einsatz-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 12px 10px;
    border-bottom: 1px solid rgba(80,130,200,0.14);
    flex-shrink: 0;
}

.einsatz-filter-tabs {
    display: flex;
    gap: 4px;
}

/* via Schema-Block */
.einsatz-ftab { }
.einsatz-ftab.active { }

.einsatz-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.einsatz-list-empty {
    color: rgba(160,200,255,0.4);
    font-size: 13px;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.einsatz-list-card {
    appearance: none;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    border: 1px solid rgba(80,130,200,0.2);
    background: rgba(15,28,50,0.8);
    padding: 10px 12px;
    cursor: pointer;
    color: #c8deff;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: background 0.1s, border-color 0.1s;
    font-family: inherit;
}

.einsatz-list-card:hover {
    background: rgba(25,50,90,0.7);
}

.einsatz-list-card.selected {
    border-color: rgba(80,160,255,0.55);
    background: rgba(30,70,150,0.3);
}

.einsatz-list-card.closed {
    opacity: 0.55;
}

.einsatz-list-card.draft {
    border-style: dashed;
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(40, 32, 12, 0.55);
}

.einsatz-list-card.draft .elc-status.draft {
    color: #fbbf24;
}

.einsatz-detail-empty .einsatz-draft-resume {
    margin-top: 14px;
}

.elc-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.elc-id {
    font-size: 11px;
    font-weight: 700;
    color: rgba(130,180,255,0.6);
    flex-shrink: 0;
}

.elc-prio {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid;
    letter-spacing: 0.04em;
}

.elc-status {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.elc-status.active  { color: #22c55e; }
.elc-status.closed  { color: #6b7280; }
.elc-status.draft   { color: #fbbf24; }
.elc-status.ringing { color: #fbbf24; animation: notruf-pulse 1.2s ease-in-out infinite; }
.elc-status.voice-live { color: #22c55e; }

.einsatz-list-card.notruf-ringing {
    border-color: rgba(251, 191, 36, 0.55);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2), inset 0 0 24px rgba(251, 191, 36, 0.06);
    animation: notruf-pulse 1.4s ease-in-out infinite;
}

@keyframes notruf-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

.elc-title {
    font-size: 14px;
    font-weight: 700;
    color: #edf4ff;
    line-height: 1.2;
}

.elc-meta {
    font-size: 11px;
    color: rgba(160,200,255,0.5);
    line-height: 1.3;
}

/* ── Detail (rechts) ── */
.einsatz-detail-col {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.einsatz-detail-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(160,200,255,0.35);
    font-size: 15px;
}

.einsatz-empty-icon {
    font-size: 36px;
    opacity: 0.35;
    line-height: 1;
    margin-bottom: 6px;
}

.einsatz-detail-inner {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.einsatz-panel {
    padding: 14px 16px;
    margin-bottom: 0;
}

.einsatz-meta-panel .einsatz-detail-header {
    margin-bottom: 10px;
}

.einsatz-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #edf4ff;
    line-height: 1.25;
    word-break: break-word;
}

.einsatz-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 4px;
}

.edm-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 14px;
    align-items: stretch;
    min-width: 0;
}

.edm-row.edm-row-wide {
    grid-column: 1 / -1;
}

.edm-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(130, 180, 255, 0.55);
    min-width: 0;
}

.edm-row > span:last-child {
    color: #dceaff;
    line-height: 1.35;
    word-break: break-word;
}

.einsatz-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.einsatz-detail-id {
    font-size: 12px;
    color: rgba(130,180,255,0.55);
    font-weight: 700;
    margin-bottom: 4px;
}

.einsatz-detail-badges {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

.einsatz-detail-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.einsatz-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(130, 180, 255, 0.7);
    margin-bottom: 8px;
}

.einsatz-inc-res-section {
    margin-top: 0;
}

.einsatz-inc-res-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.inc-alarm-suggest-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(56,189,248,0.45);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(14,116,144,0.35), rgba(59,130,246,0.28));
    color: #dbeafe;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.12s, border-color 0.12s;
}

.inc-alarm-suggest-btn i {
    font-size: 14px;
    color: #7dd3fc;
}

.inc-alarm-suggest-btn:hover:not(.busy) {
    filter: brightness(1.08);
    border-color: rgba(125,211,252,0.65);
}

.inc-alarm-suggest-btn.busy {
    opacity: 0.65;
    cursor: wait;
}

.inc-alarm-suggest-btn.ready {
    border-color: rgba(34,197,94,0.55);
    background: linear-gradient(135deg, rgba(21,128,61,0.45), rgba(34,197,94,0.32));
    color: #dcfce7;
}

.inc-alarm-suggest-btn.ready i {
    color: #86efac;
}

.inc-alarm-suggest-btn.ready:hover:not(.busy) {
    filter: brightness(1.08);
    border-color: rgba(134,239,172,0.75);
}

.inc-alarm-suggest-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(56,189,248,0.28);
    border-radius: 8px;
    background: rgba(8,24,48,0.72);
}

.inc-alarm-suggest-bar.hidden {
    display: none;
}

.inc-alarm-suggest-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.inc-alarm-suggest-text {
    font-size: 12px;
    color: #c8deff;
}

.inc-alarm-suggest-note {
    font-size: 10px;
    color: rgba(158,197,255,0.55);
}

.inc-alarm-suggest-msg {
    font-size: 12px;
    color: rgba(158,197,255,0.75);
}

.inc-alarm-suggest-msg.warn {
    color: #fcd34d;
}

.inc-alarm-suggest-apply {
    flex-shrink: 0;
    white-space: nowrap;
}

.einsatz-inc-res-table .duty-avail {
    white-space: nowrap;
}

.einsatz-inc-res-table tbody tr.inc-res-done td {
    opacity: 0.72;
}

.einsatz-inc-res-table tbody tr.inc-res-pager td {
    opacity: 0.88;
}

.einsatz-inc-res-table tbody tr.inc-res-suggest td {
    box-shadow: inset 3px 0 0 rgba(56,189,248,0.75);
    background: rgba(56,189,248,0.06);
}

.einsatz-inc-res-table-wrap {
    overflow: auto;
    margin-top: 4px;
}

.einsatz-res-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 2px;
}

.einsatz-res-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 7px;
    background: rgba(20,40,70,0.5);
    border: 1px solid rgba(80,130,200,0.15);
    font-size: 14px;
    font-weight: 600;
}

.einsatz-res-row.einsatz-res-pager {
    border-color: rgba(160, 120, 220, 0.35);
    background: rgba(36, 24, 52, 0.55);
}

.einsatz-res-name {
    color: #c8deff;
}

.einsatz-res-remove {
    appearance: none;
    border: none;
    background: transparent;
    color: rgba(231,86,98,0.7);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: inherit;
}

.einsatz-res-remove:hover {
    background: rgba(231,86,98,0.15);
    color: #ffd7da;
}

.einsatz-assign-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}

.einsatz-assign-row .leit-select {
    flex: 1;
}

.einsatz-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(80,130,200,0.12);
    margin-top: 12px;
    flex-shrink: 0;
}

.einsatz-detail-pane .einsatz-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 6;
    margin-top: 14px;
    padding: 12px 0 10px;
    background: linear-gradient(180deg, transparent 0%, var(--ra-bg-panel-deep, rgba(8, 16, 28, 0.97)) 28%);
}

/* Neu-Formular */
.einsatz-new-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.einsatz-form-row2 {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 12px;
}

.einsatz-address-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 120px;
    gap: 12px;
}

.einsatz-form-row-asb {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.leit-textarea {
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
}

/* ════════════════════════════════════════════════════════════
   SDS – Radio-Inbox-Overlay  (gleicher Stil wie screenTalking)
════════════════════════════════════════════════════════════ */
.sds-overlay {
    /* flex-child wie .screen-body — sitzt UNTER der Statusbar */
    flex: 1 1 auto;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 20;
}

/* Cyan-Header identisch zu .talk-header */
.sds-overlay-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 4px;
    background: #8fd8e4;
    border-bottom: 1px solid rgba(0,0,0,0.18);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.sds-overlay-header::before,
.sds-overlay-header::after {
    content: none;
}

.sds-header-icon {
    font-size: 10px;
    color: #000;
    line-height: 1;
}

.sds-header-img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    image-rendering: pixelated;
}

.sds-header-title {
    color: #000;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.05;
}

.sds-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    background: #ffffff;
    padding: 2px 0 1px;
    scroll-padding-top: 2px;
    scroll-padding-bottom: 2px;
    box-sizing: border-box;
}

.sds-list::-webkit-scrollbar {
    display: none;
}

.sds-empty {
    color: #555;
    font-size: 9px;
    text-align: center;
    padding: 10px 4px;
    font-style: italic;
}

/* ── Hauptmenü ─────────────────────────────── */
#sdsViewMenu {
    flex-direction: column;
}

#sdsViewList,
#sdsViewDetail,
#sdsViewMore,
#sdsViewMyInfo,
#sdsViewRadioInfo {
    flex-direction: column;
    min-height: 0;
}

#sdsViewMyInfo .sds-overlay-header,
#sdsViewRadioInfo .sds-overlay-header {
    border-bottom: none;
}

#sdsViewMyInfo .sds-overlay-header::before,
#sdsViewMyInfo .sds-overlay-header::after,
#sdsViewRadioInfo .sds-overlay-header::before,
#sdsViewRadioInfo .sds-overlay-header::after {
    content: none;
    display: none;
}

.sds-menu-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sds-menu-list {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

/* Kein linker lila Auswahl-Rail in Funk-Menüs */
.sds-menu-list::before,
.sds-menu-list::after,
.option-menu-list::before,
.option-menu-list::after,
.folder-menu-list::before,
.folder-menu-list::after,
.group-menu-list::before,
.group-menu-list::after,
.kw-list::before,
.kw-list::after,
.sds-list::before,
.sds-list::after,
.radio-menu-thumb,
.radio-menu-selection {
    content: none !important;
    display: none !important;
}

.sds-menu-item::after,
.sds-menu-item.active::after,
.option-menu-item::after,
.option-menu-item.active::after,
.folder-menu-item::after,
.folder-menu-item.active::after,
.group-menu-item::after,
.group-menu-item.active::after,
.kw-item::after,
.kw-item.active::after,
.sds-msg-row::after,
.sds-msg-row.active::after {
    content: none !important;
    display: none !important;
}

.sds-radio-info-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #ffffff;
}

.sds-radio-info-body {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 6px 4px 10px;
    scrollbar-width: none;
}

.sds-radio-info-body::-webkit-scrollbar {
    display: none;
}

.sds-radio-info-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1px;
    padding: 6px 4px 12px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.12;
    color: #0d1d25;
}

.sds-radio-info-lines span {
    display: block;
    width: 100%;
}

.sds-radio-info-actions .sds-softkey-open:empty {
    visibility: hidden;
}

.sds-menu-item {
    flex: 0 0 18px;
    min-height: 18px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 5px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    color: #0d1d25;
    cursor: default;
    position: relative;
}

.sds-menu-item.active {
    background: #8fd8e4;
    color: #000;
}

.sds-menu-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    image-rendering: pixelated;
    flex: 0 0 14px;
}

.sds-menu-label {
    flex: 1;
}

.sds-menu-badge {
    background: #e53e3e;
    color: #fff;
    font-size: 7px;
    font-weight: 900;
    border-radius: 8px;
    padding: 0 4px;
    line-height: 12px;
}

.sds-menu-softkeys {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #b0d8e8;
    padding: 2px 6px;
    border-top: 1px solid rgba(0,0,0,0.15);
}

.sds-softkey-right {
    font-size: 9px;
    font-weight: 900;
    color: #0d1d25;
    letter-spacing: .03em;
}

/* ── Optionen-Menü ─────────────────────────── */
.option-overlay {
    flex-direction: column;
    background: #dceff7;
    color: #10242d;
}

.folder-overlay {
    flex-direction: column;
    background: #ffffff;
    color: #10242d;
}

.group-overlay {
    flex-direction: column;
    background: #ffffff;
    color: #10242d;
}

.option-menu-title,
.folder-menu-title {
    flex: 0 0 auto;
    padding: 3px 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 900;
    background: #8fd8e4;
    color: #0d1d25;
    border-bottom: 1px solid rgba(0,0,0,0.16);
}

.group-menu-title {
    flex: 0 0 auto;
    padding: 2px 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 900;
    background: #8fd8e4;
    color: #0d1d25;
    border-bottom: 1px solid rgba(0,0,0,0.16);
}

.option-menu-list,
.folder-menu-list {
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.group-menu-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    scroll-padding-top: 2px;
    scroll-padding-bottom: 2px;
}

.group-menu-list::-webkit-scrollbar {
    display: none;
}

.folder-menu-list {
    background: #ffffff;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    scroll-padding-top: 2px;
    scroll-padding-bottom: 2px;
}

.folder-menu-list::-webkit-scrollbar {
    display: none;
}

.option-menu-item,
.folder-menu-item {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 0;
    padding: 2px 5px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.05;
    cursor: default;
    position: relative;
}

.folder-menu-item {
    flex: 0 0 18px;
    min-height: 18px;
    flex-shrink: 0;
    padding-top: 0;
    padding-bottom: 0;
    scroll-margin-block: 2px;
}

.group-menu-item {
    flex: 0 0 18px;
    min-height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 5px 0 20px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.05;
    cursor: default;
    white-space: nowrap;
    position: relative;
    scroll-margin-block: 2px;
}

.option-menu-item.active,
.folder-menu-item.active {
    background: #8fd8e4;
}

.group-menu-item.active {
    background: #8fd8e4;
}

.option-menu-icon,
.folder-menu-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    image-rendering: pixelated;
    flex: 0 0 14px;
}

.option-menu-icon-empty,
.folder-menu-icon-empty {
    display: inline-block;
}

.option-menu-softkeys {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.18);
    position: relative;
    z-index: 2;
}

.option-menu-softkeys span {
    flex: 0 0 36%;
    padding: 3px 5px;
    font-size: 11px;
    font-weight: 900;
    color: #0d1d25;
    background: #b8dde2;
}

.option-menu-softkeys span:last-child {
    text-align: right;
}

.group-menu-softkeys {
    position: relative;
}

.group-softkey-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    image-rendering: pixelated;
    object-fit: contain;
}

/* Listen-Zeile (nur Nummer + Uhrzeit) */
.sds-msg-row {
    border-bottom: 1px solid rgba(0,0,0,0.12);
    padding: 4px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    cursor: default;
    user-select: none;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    scroll-margin-block: 2px;
}

.sds-msg-row:first-child {
    margin-top: 0;
}

#sdsViewList .sds-msg-row.active {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.sds-msg-row:hover {
    background: rgba(30,200,216,0.18);
}

.sds-msg-row.active {
    background: #1ec8d8;
    color: #000;
    z-index: 1;
}

.sds-msg-row.active .sds-msg-nr,
.sds-msg-row.active .sds-msg-time-small {
    color: #000;
}

.sds-msg-nr {
    font-size: 9.5px;
    font-weight: 900;
    color: #0d1d25;
    line-height: 1;
}

.sds-msg-time-small {
    font-size: 8px;
    color: #555;
    line-height: 1;
}

/* Detail-Ansicht */
.sds-detail-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    padding: 4px 5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #fff;
}

.sds-detail-body::-webkit-scrollbar {
    display: none;
}

.sds-alarm-text {
    flex: 1 1 auto;
    min-height: 0;
    background: #ffffff;
    color: #0d1d25;
    font-size: 10px;
    line-height: 1.25;
    padding: 4px 5px;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: pre-wrap;
    scrollbar-width: none;
}

.sds-alarm-text::-webkit-scrollbar {
    display: none;
}

.sds-alarm-time {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 5px;
    background: #ffffff;
    color: #0d1d25;
    font-size: 9px;
    line-height: 1;
}

.sds-alarm-time img {
    width: 12px;
    height: 12px;
    object-fit: contain;
    image-rendering: pixelated;
}

.sds-detail-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 4px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 2px;
}

.sds-detail-subject {
    font-weight: 700;
}

.sds-detail-label {
    font-size: 7.5px;
    font-weight: 900;
    color: #777;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding-top: 1px;
}

.sds-detail-val {
    font-size: 9px;
    color: #0d1d25;
    font-weight: 600;
    line-height: 1.3;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sds-detail-msg {
    font-size: 8.5px;
    color: #222;
    line-height: 1.4;
    padding: 4px 0 2px;
    white-space: pre-wrap;
}

/* SDS-Softkey: aktiv-State (wie gedrückte Taste) */
.softkey-sds {
    cursor: pointer;
}

.softkey-icon-mid {
    position: relative;
}

.softkey-sds.active {
    background: linear-gradient(180deg, #1ec8d8 0%, #0fa8b8 100%);
    color: #fff;
    border-color: rgba(0,150,180,0.5);
}

.sds-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: #fff;
    font-size: 7px;
    font-weight: 700;
    min-width: 11px;
    height: 11px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    line-height: 1;
}

/* ── Context menu ── */
.leit-context-menu {
    position: fixed;
    z-index: 99999;
    min-width: 220px;
    max-height: min(72vh, 520px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(80,160,255,0.3);
    border-radius: 8px;
    background: rgba(6,12,22,0.98);
    box-shadow: 0 14px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 6px;
}

.leit-context-menu button {
    border: none;
    border-radius: 5px;
    background: transparent;
    color: #c8deff;
    text-align: left;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.leit-context-menu button:hover {
    background: rgba(40,100,200,0.28);
    color: #84cbff;
}

/* ── HiOrg-Verwaltung Panel ───────────────────────────────── */
.admin-tab-top {
    flex-shrink: 0;
    padding: 20px 28px 0;
}

.admin-subtabs {
    margin-top: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(80, 130, 200, 0.14);
}

.admin-subpane {
    display: none;
}

.admin-subpane.active {
    display: block;
}

.admin-resources-pane {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1100px;
}

.admin-resources-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.admin-form-column,
.admin-list-column {
    min-width: 0;
}

.admin-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-list-head .leit-panel-title {
    margin-bottom: 0;
}

.admin-list-count {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(180, 210, 255, 0.55);
    background: rgba(80, 130, 200, 0.14);
    border: 1px solid rgba(80, 130, 200, 0.22);
    border-radius: 999px;
    padding: 4px 10px;
}

.admin-create-card.is-editing {
    border-color: rgba(80, 180, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(80, 180, 255, 0.12);
}

.admin-create-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-cancel-btn {
    min-width: 110px;
}

.admin-create-footer .tablet-btn {
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-create-card {
    padding-bottom: 16px;
}

.admin-create-header {
    margin-bottom: 14px;
}

.admin-create-sub {
    margin: 4px 0 0;
    font-size: 12px;
    color: rgba(200, 222, 255, 0.55);
    line-height: 1.45;
}

.admin-create-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-create-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 14px;
    align-items: start;
}

.admin-create-section {
    background: rgba(6, 12, 24, 0.55);
    border: 1px solid rgba(80, 130, 200, 0.18);
    border-radius: 10px;
    padding: 14px 14px 12px;
}

.admin-create-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(180, 210, 255, 0.85);
}

.admin-create-section-title i {
    color: #5eb0ff;
    font-size: 13px;
}

.admin-create-section-title-row {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-create-section-title-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-form-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-form-stack .leit-form-row {
    margin-bottom: 0;
}

.admin-fleet-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(200, 222, 255, 0.75);
    cursor: pointer;
    user-select: none;
}

.admin-fleet-toggle input {
    accent-color: #3d9eff;
    width: 15px;
    height: 15px;
}

.admin-fleet-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-fleet-fields.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.admin-fleet-advanced {
    border: 1px solid rgba(80, 130, 200, 0.14);
    border-radius: 8px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.15);
}

.admin-fleet-advanced summary {
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(180, 210, 255, 0.65);
    list-style: none;
}

.admin-fleet-advanced summary::-webkit-details-marker {
    display: none;
}

.admin-fleet-advanced-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.admin-fleet-access-row {
    margin-bottom: 0;
}

.admin-hint-inline {
    margin: 4px 0 0;
    font-size: 11px;
    line-height: 1.4;
}

.admin-create-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-create-footer .tablet-btn {
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-create-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.7fr) minmax(140px, 0.9fr) auto;
    gap: 10px;
    align-items: end;
}

.admin-create-grid .leit-form-row {
    margin-bottom: 0;
}

.admin-create-action .tablet-btn {
    min-width: 120px;
}

.admin-fleet-section.hidden,
.admin-create-fleet.hidden {
    display: none;
}

.admin-fleet-access {
    min-height: 48px;
    resize: vertical;
}

.admin-res-fleet-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 4px;
    background: rgba(0, 140, 220, 0.25);
    color: #7ec8ff;
    vertical-align: middle;
}

.admin-list-card .admin-res-list {
    max-height: min(480px, 52vh);
}

.admin-res-job-tabs {
    margin: 0 0 12px;
    flex-wrap: wrap;
}

.admin-res-job-tabs .leitstelle-subtab {
    font-size: 12px;
    padding: 6px 14px;
}

.admin-res-row.no-job-col {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.admin-tools-card {
    max-width: 520px;
}

.admin-tableau-card {
    margin-bottom: 14px;
}

.admin-tableau-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.admin-tableau-toolbar .leit-select {
    flex: 1;
}

.admin-tableau-col-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    max-height: 220px;
    overflow-y: auto;
}

.admin-tableau-col-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(12,24,42,0.75);
    border: 1px solid rgba(80,130,200,0.16);
}

.admin-tableau-col-item.is-fallback {
    border-color: rgba(255,190,90,0.28);
}

.admin-tableau-col-main {
    min-width: 0;
}

.admin-tableau-col-label {
    font-size: 13px;
    font-weight: 700;
    color: #e8f2ff;
}

.admin-tableau-col-meta {
    font-size: 10px;
    color: rgba(160,190,230,0.62);
    margin-top: 2px;
}

.admin-tableau-col-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.admin-tableau-form-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.admin-tableau-fallback-toggle {
    margin-bottom: 8px;
}

.admin-tableau-form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-radio-zone-card {
    margin-top: 0;
}

.admin-zone-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-zone-controls .leit-select {
    min-width: 150px;
}

body.radio-zone-editor-active .radio-shell {
    z-index: 9999;
}

body.radio-zone-editor-active .btn-zone {
    cursor: move;
    pointer-events: auto !important;
}

body.radio-zone-editor-active .btn-zone.zone-editor-selected {
    background: rgba(0, 210, 255, 0.38);
    outline: 2px solid #00d2ff;
}

.admin-tools-btn {
    min-width: 200px;
}

.admin-form-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-form-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-hint {
    font-size: 12px;
    color: rgba(180, 210, 255, 0.55);
    margin: -4px 0 12px;
    line-height: 1.45;
}

.admin-primary-btn {
    margin-top: 0;
}

.admin-card .leit-panel-title {
    margin-bottom: 14px;
}

.admin-msg {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    padding: 7px 12px;
}

.admin-msg.ok {
    background: rgba(0, 200, 80, 0.14);
    color: #5eff9b;
    border: 1px solid rgba(0, 200, 80, 0.3);
}

.admin-msg.err {
    background: rgba(255, 60, 60, 0.14);
    color: #ff7070;
    border: 1px solid rgba(255, 60, 60, 0.3);
}

.admin-web-char-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    margin-top: 6px;
}

.admin-web-char-result {
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(80, 130, 200, 0.2);
    background: rgba(8, 16, 28, 0.85);
    color: #d8e8ff;
    font: inherit;
    cursor: pointer;
}

.admin-web-char-result:hover {
    border-color: rgba(80, 160, 255, 0.4);
    background: rgba(12, 24, 42, 0.95);
}

.admin-web-char-pick {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(40, 90, 160, 0.15);
    border: 1px solid rgba(80, 160, 255, 0.25);
    font-size: 13px;
    color: #b8d4ff;
}

.admin-res-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: min(560px, 58vh);
    overflow-y: auto;
    padding-right: 4px;
}

.admin-res-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, rgba(10, 18, 32, 0.92), rgba(8, 14, 26, 0.88));
    border: 1px solid rgba(80, 130, 200, 0.18);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-res-card:hover {
    border-color: rgba(80, 160, 255, 0.32);
    background: rgba(12, 22, 38, 0.95);
}

.admin-res-card.is-active {
    border-color: rgba(80, 180, 255, 0.55);
    background: rgba(14, 28, 48, 0.98);
    box-shadow: inset 0 0 0 1px rgba(80, 180, 255, 0.12);
}

.admin-res-card-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.admin-res-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(40, 100, 200, 0.18);
    border: 1px solid rgba(80, 160, 255, 0.22);
    color: #7ec8ff;
    font-size: 14px;
}

.admin-res-card-icon.is-fleet {
    background: rgba(0, 140, 220, 0.16);
    color: #9ed8ff;
}

.admin-res-card-body {
    min-width: 0;
    flex: 1;
}

.admin-res-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #e8f2ff;
    line-height: 1.3;
    word-break: break-word;
}

.admin-res-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.admin-res-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 3px 8px;
    white-space: nowrap;
    color: rgba(200, 222, 255, 0.78);
    background: rgba(80, 130, 200, 0.12);
    border: 1px solid rgba(80, 130, 200, 0.18);
}

.admin-res-tag.fleet {
    color: #9ed8ff;
    background: rgba(0, 140, 220, 0.14);
    border-color: rgba(0, 140, 220, 0.24);
}

.admin-res-tag.access {
    color: #ffd68a;
    background: rgba(220, 160, 0, 0.12);
    border-color: rgba(220, 160, 0, 0.22);
}

.admin-res-card-actions {
    display: flex;
    flex-shrink: 0;
    gap: 6px;
}

.admin-res-edit,
.admin-res-card .admin-res-del {
    border: none;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-res-edit {
    background: rgba(40, 100, 200, 0.18);
    color: #9ed0ff;
    border: 1px solid rgba(80, 160, 255, 0.28);
}

.admin-res-edit:hover {
    background: rgba(40, 100, 200, 0.32);
}

.admin-res-card .admin-res-del {
    background: rgba(200, 40, 55, 0.14);
    color: #ff8a96;
    border: 1px solid rgba(255, 80, 90, 0.28);
}

.admin-res-card .admin-res-del:hover {
    background: rgba(200, 40, 55, 0.28);
}

.admin-res-empty {
    color: rgba(180, 210, 255, 0.5);
    font-size: 13px;
    padding: 20px 8px;
    text-align: center;
    border: 1px dashed rgba(80, 130, 200, 0.22);
    border-radius: 8px;
    background: rgba(8, 15, 28, 0.35);
}

/* Admin-Tab: scrollbarer Inhalt */
.tablet-tab-admin {
    padding: 0;
    overflow: hidden;
}

.tablet-tab-admin .admin-tab-header {
    margin-bottom: 0;
    padding: 0;
}

.admin-tab-scroll {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px 28px 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(77, 166, 255, 0.45) transparent;
}

.admin-tab-scroll::-webkit-scrollbar { width: 6px; }
.admin-tab-scroll::-webkit-scrollbar-thumb {
    background: rgba(77, 166, 255, 0.35);
    border-radius: 4px;
}

.admin-res-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 10px;
    background: rgba(8, 15, 28, 0.72);
    border: 1px solid rgba(80, 130, 200, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #c8deff;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-res-row:hover {
    border-color: rgba(80, 160, 255, 0.38);
    background: rgba(12, 22, 38, 0.88);
}

.admin-res-row .admin-res-name {
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-res-row .admin-res-job,
.admin-res-row .admin-res-col {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 3px 9px;
    white-space: nowrap;
}

.admin-res-row .admin-res-job {
    color: #84cbff;
    background: rgba(40, 100, 200, 0.22);
    border: 1px solid rgba(80, 160, 255, 0.28);
}

.admin-res-row .admin-res-col {
    color: rgba(200, 222, 255, 0.75);
    background: rgba(80, 130, 200, 0.12);
    border: 1px solid rgba(80, 130, 200, 0.18);
}

.admin-res-del {
    background: rgba(200, 40, 55, 0.16);
    border: 1px solid rgba(231, 86, 98, 0.35);
    border-radius: 6px;
    color: #ffd7da;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.admin-res-del:hover {
    background: rgba(220, 50, 65, 0.28);
}

#tabAdminBtn .snav-icon {
    color: #84cbff;
}

.admin-ric-section {
    margin-bottom: 0;
}

.admin-ric-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 12px;
    align-items: stretch;
}

.admin-ric-subpanel {
    padding: 14px;
    min-height: 280px;
}

.admin-ric-col {
    min-width: 0;
}

.admin-ric-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: rgba(130, 180, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 10px;
}

.admin-ric-form {
    margin-bottom: 12px;
}

.admin-ric-group-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: min(220px, 30vh);
    overflow-y: auto;
}

.admin-ric-group-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(80, 130, 200, 0.22);
    background: rgba(8, 15, 28, 0.65);
    color: #c8deff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-ric-group-btn:hover {
    border-color: rgba(80, 160, 255, 0.4);
    background: rgba(20, 35, 58, 0.85);
}

.admin-ric-group-btn.active {
    border-color: rgba(80, 160, 255, 0.55);
    background: rgba(40, 100, 200, 0.22);
    color: #e8f2ff;
}

.admin-ric-group-btn .ric-count {
    font-size: 11px;
    font-weight: 700;
    color: #84cbff;
    background: rgba(40, 100, 200, 0.18);
    border-radius: 999px;
    padding: 2px 8px;
}

.admin-ric-detail-col {
    min-height: 0;
    overflow: hidden;
}

.admin-ric-empty {
    color: rgba(180, 210, 255, 0.45);
    font-size: 13px;
    padding: 48px 12px;
    text-align: center;
    border: 1px dashed rgba(80, 130, 200, 0.2);
    border-radius: 8px;
}

.admin-ric-detail {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.admin-ric-detail-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, 130px) auto auto;
    gap: 8px;
    align-items: end;
}

.admin-ric-detail-head .leit-form-row {
    margin-bottom: 0;
}

.admin-ric-detail-head .tablet-btn {
    white-space: nowrap;
    padding: 9px 12px;
    font-size: 12px;
    height: fit-content;
}

.admin-ric-desc {
    min-height: 56px;
    max-height: 96px;
    resize: vertical;
}

.admin-ric-member-form {
    flex-wrap: nowrap;
    gap: 8px;
}

.admin-ric-player-select,
.admin-ric-issi-input {
    flex: 1;
    min-width: 0;
}

.admin-ric-member-form .tablet-btn {
    flex-shrink: 0;
}

.admin-ric-member-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: min(180px, 24vh);
    overflow-y: auto;
}

.admin-ric-member-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(8, 15, 28, 0.65);
    border: 1px solid rgba(80, 130, 200, 0.16);
    font-size: 12px;
}

.admin-ric-member-row .ric-member-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.admin-ric-member-row .ric-member-id {
    font-size: 10px;
    color: rgba(160, 200, 255, 0.45);
    word-break: break-all;
}

.admin-ric-member-row .admin-res-del {
    flex-shrink: 0;
    margin-top: 1px;
}

@media (max-width: 1100px) {
    .admin-resources-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .admin-create-columns {
        grid-template-columns: 1fr;
    }

    .admin-fleet-advanced-grid {
        grid-template-columns: 1fr;
    }

    .admin-res-card {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-res-card-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 960px) {
    .admin-create-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-create-action {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .admin-ric-layout {
        grid-template-columns: 1fr;
    }

    .admin-ric-detail-head {
        grid-template-columns: 1fr;
    }

    .admin-ric-member-form {
        flex-wrap: wrap;
    }

    .admin-res-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "name del"
            "meta meta";
    }

    .admin-res-row .admin-res-name { grid-area: name; }
    .admin-res-row .admin-res-del { grid-area: del; }
    .admin-res-row .admin-res-job,
    .admin-res-row .admin-res-col {
        grid-area: meta;
        justify-self: start;
    }
}

/* ── Resource Picker ──────────────────────────────────────── */
.res-picker { display: flex; flex-direction: column; gap: 8px; }
.res-picker-empty { color: #7aacff; font-size: 13px; padding: 8px 0; }
.res-picker-search-row { display: flex; }
.res-picker-search {
    width: 100%; background: rgba(20,30,50,0.9); border: 1px solid rgba(80,160,255,0.28);
    border-radius: 7px; color: #c8deff; font-size: 13px; padding: 7px 12px;
    font-family: inherit; outline: none;
}
.res-picker-search:focus { border-color: #4da6ff; }
.res-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 7px;
    max-height: 220px;
    overflow-y: auto;
}
.res-picker-card {
    background: rgba(20,35,60,0.85);
    border: 1px solid rgba(80,160,255,0.2);
    border-radius: 9px;
    padding: 9px 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
    user-select: none;
}
.res-picker-card:hover { border-color: rgba(80,160,255,0.5); background: rgba(30,55,100,0.7); }
.res-picker-card.selected {
    border-color: #4da6ff;
    background: rgba(30,80,180,0.3);
    box-shadow: 0 0 0 2px rgba(77,166,255,0.25);
}
.res-picker-card.not-alarmable {
    opacity: 0.45;
    cursor: not-allowed;
    border-style: dashed;
}
.rpc-job { font-size: 10px; font-weight: 700; color: #7aacff; letter-spacing: 0.5px; margin-bottom: 3px; }
.rpc-name { font-size: 13px; font-weight: 700; color: #c8deff; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpc-status { font-size: 10px; padding: 2px 6px; border-radius: 4px; display: inline-block; }
.rpc-status.offline   { background: rgba(107, 114, 128, 0.22); color: #9ca3af; }
.rpc-status.available { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.rpc-status.active    { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }
.rpc-status.busy      { background: rgba(239, 68, 68, 0.18); color: #f87171; }
.rpc-status.alarmable { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.rpc-status.blocked   { background: rgba(239, 68, 68, 0.18); color: #f87171; }
.rpc-check { position: absolute; top: 6px; right: 8px; color: #4da6ff; font-size: 14px; font-weight: 900; }

/* ── Einsatzprotokoll ─────────────────────────────────────── */
.einsatz-log-section { margin-top: 14px; }
#incLogContent {
    max-height: min(280px, 32vh);
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(77, 166, 255, 0.45) transparent;
}
#incLogContent::-webkit-scrollbar { width: 6px; }
#incLogContent::-webkit-scrollbar-thumb {
    background: rgba(77, 166, 255, 0.45);
    border-radius: 999px;
}
.inc-log-table { margin-top: 0; }
.inc-log-table .inc-log-text-cell {
    font-weight: 600;
    color: #c8deff;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}
.einsatz-assign-section {
    margin-top: 0;
}

.einsatz-assign-panel .einsatz-section-title {
    margin-bottom: 10px;
}

.einsatz-assign-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    margin: 0 0 12px;
}

.einsatz-assign-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.einsatz-assign-field.einsatz-assign-res-cards {
    grid-column: 1 / -1;
}

.einsatz-assign-field .leit-label {
    font-size: 10px;
    color: rgba(130, 180, 255, 0.65);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.einsatz-assign-check {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(8, 15, 28, 0.45);
    border: 1px solid rgba(80, 130, 200, 0.14);
    grid-column: 1 / -1;
}

.einsatz-assign-check label {
    font-size: 13px;
    color: #c8deff;
    cursor: pointer;
    line-height: 1.35;
}

.res-picker-card-police {
    border-color: rgba(122, 172, 255, 0.55);
    background: rgba(77, 166, 255, 0.08);
}

.res-picker-card-police-action {
    cursor: pointer;
}

.res-picker-card-police-action:hover {
    border-color: rgba(122, 172, 255, 0.9);
    background: rgba(77, 166, 255, 0.18);
}

.res-picker-card-police-action.busy {
    opacity: 0.55;
    pointer-events: none;
}

.res-picker-card-police-action .police-card-hint {
    font-size: 10px;
    line-height: 1.25;
    white-space: normal;
}

.res-picker-card-police.selected {
    border-color: rgba(122, 172, 255, 0.9);
    background: rgba(77, 166, 255, 0.2);
}

.einsatz-alarm-btn {
    margin-top: 8px;
}

.einsatz-assign-panel .res-picker-grid {
    max-height: 200px;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}

@media (max-width: 1100px) {
    .einsatz-detail-meta,
    .einsatz-assign-grid {
        grid-template-columns: 1fr;
    }
}

.compact-ms { width: 100%; }
.compact-ms-empty { font-size: 12px; color: #7aacff; padding: 6px 0; }
.compact-ms-details { position: relative; }
.compact-ms-trigger {
    list-style: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(80, 160, 255, 0.35);
    background: rgba(20, 40, 75, 0.65);
    color: #c8deff;
    font-size: 13px;
    font-weight: 600;
}
.compact-ms-trigger::-webkit-details-marker { display: none; }
.compact-ms-details[open] .compact-ms-trigger {
    border-color: #4da6ff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.compact-ms-list {
    max-height: 160px;
    overflow-y: auto;
    border: 1px solid rgba(80, 160, 255, 0.35);
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: rgba(12, 28, 55, 0.95);
    padding: 4px 0;
}
.compact-ms-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 12px;
    color: #c8deff;
    cursor: pointer;
}
.compact-ms-option:hover { background: rgba(77, 166, 255, 0.12); }
.compact-ms-option.disabled { opacity: 0.45; cursor: not-allowed; }
.compact-ms-option input { accent-color: #4da6ff; flex-shrink: 0; }
.compact-ms-option span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.einsatz-res-row.einsatz-res-released {
    opacity: 0.72;
    background: rgba(15, 30, 50, 0.45);
    border-style: dashed;
}

.einsatz-res-released-tag {
    color: #94a3b8 !important;
    font-style: italic;
}

.einsatz-res-status { color: #7aacff; font-size: 11px; font-weight: 400; opacity: 0.85; }

/* ── Einsatz bearbeiten ───────────────────────────────────── */
.einsatz-edit-section { margin-top: 14px; border-top: 1px solid rgba(80,160,255,0.12); padding-top: 12px; }
.einsatz-edit-section.hidden { display: none; }
.einsatz-edit-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ── Leitstelle Tableau Card – Kommentar ───────────────────── */
.leit-card-comment {
    font-size: 10.5px;
    color: #f0c060;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.85;
}

/* ── Kontext-Menü Kommentar-Zeile ──────────────────────────── */
.ctx-header {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #5a7ca0;
    text-transform: uppercase;
    padding: 4px 10px 2px;
    pointer-events: none;
}
.ctx-comment-row {
    display: flex;
    gap: 6px;
    padding: 6px 10px 8px;
}
.ctx-comment-input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(80,160,255,0.25);
    border-radius: 5px;
    color: #c8deff;
    font-size: 12px;
    padding: 4px 8px;
    outline: none;
}
.ctx-comment-input:focus { border-color: rgba(80,160,255,0.55); }
.ctx-comment-save {
    background: rgba(80,160,255,0.18);
    border: 1px solid rgba(80,160,255,0.35);
    border-radius: 5px;
    color: #4da6ff;
    font-size: 14px;
    font-weight: 700;
    padding: 2px 10px;
    cursor: pointer;
}
.ctx-comment-save:hover { background: rgba(80,160,255,0.3); }
.ctx-empty {
    font-size: 11px;
    color: #6a8499;
    padding: 2px 10px 6px;
    pointer-events: none;
}
.leit-context-menu button.ctx-member-clear {
    color: #ffb0a8;
}
.leit-context-menu button.ctx-member-clear:hover {
    background: rgba(255,90,80,0.14);
    color: #ffc8c2;
}

/* ── KwList Direktruf ─────────────────────────────────────── */
.kw-overlay {
    flex-direction: column;
    background: #ffffff;
    color: #10242d;
}

.kw-menu-title {
    flex: 0 0 auto;
    padding: 3px 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 900;
    background: #8fd8e4;
    color: #0d1d25;
    border-bottom: 1px solid rgba(0,0,0,0.16);
}

.kw-list {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow-y: auto;
    scrollbar-width: none;
    background: #ffffff;
}

.kw-list::-webkit-scrollbar {
    display: none;
}

.kw-item {
    flex: 0 0 18px;
    min-height: 18px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 5px;
    cursor: default;
    border-bottom: none;
    font-size: 12px;
    font-family: inherit;
    color: #1a2d3a;
    line-height: 1.05;
    position: relative;
}
.kw-item:last-child { border-bottom: none; }
.kw-item:hover, .kw-item:active, .kw-item.active { background: #8fd8e4; }
.kw-item-unoccupied { color: #62707a; }
.kw-item-unoccupied .kw-item-name { color: #62707a; }
.kw-item-phone { width: 13px; height: 13px; object-fit: contain; opacity: 0.75; flex-shrink: 0; margin-left: auto; }
.kw-item-job { font-size: 8px; font-weight: 700; color: #0077aa; text-transform: uppercase; flex-shrink: 0; min-width: 24px; }
.kw-item-name { flex: 1; font-weight: 800; font-size: inherit; color: #0d1f2d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kw-item-status { font-size: 8px; color: #336; opacity: 0.75; flex-shrink: 0; }

/* Call-Header-Farben */
.call-out-header    { background: #1a6090 !important; }
.call-in-header     { background: #1a7a3a !important; animation: callInPulse 1s ease-in-out infinite; }
.call-active-header { background: #0e4a70 !important; }
.call-status-label  { font-size: 10px; opacity: 0.75; letter-spacing: 0.3px; font-family: inherit; color: #1a2d3a; }
.call-end-btn       { color: #cc2200 !important; font-weight: 700; cursor: pointer; font-size: 10px; }
.call-ring-icon     { font-size: 13px; animation: callInPulse 0.8s ease-in-out infinite; }

@keyframes callInPulse {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

/* ── Leitstelle Dienst ────────────────────────────────────── */
.dispatch-duty-card {
    margin-top: 16px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(80,160,255,0.18);
    background: linear-gradient(165deg, rgba(8,18,34,0.92) 0%, rgba(6,12,22,0.88) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.dispatch-duty-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(80,160,255,0.12);
}

.dispatch-duty-head .tcontent-title {
    font-size: 20px;
    margin-bottom: 4px;
}

.dispatch-duty-head .tcontent-sub {
    font-size: 12px;
    color: rgba(200, 215, 235, 0.68);
    line-height: 1.35;
}

.dispatch-block-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(180, 205, 235, 0.72);
    margin-bottom: 8px;
}

.dispatch-setup-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.dispatch-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 6px;
}

.dispatch-role-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 10px 10px 11px;
    border-radius: 10px;
    border: 1px solid rgba(80,160,255,0.16);
    background: rgba(10, 20, 36, 0.72);
    color: rgba(230, 240, 255, 0.92);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.dispatch-role-card:hover:not(:disabled) {
    border-color: rgba(100, 180, 255, 0.38);
    background: rgba(14, 28, 48, 0.88);
}

.dispatch-role-card.active {
    border-color: rgba(62, 207, 142, 0.55);
    background: rgba(18, 52, 38, 0.55);
    box-shadow: inset 0 0 0 1px rgba(62, 207, 142, 0.18);
}

.dispatch-role-card:disabled {
    cursor: default;
    opacity: 0.92;
}

.dispatch-role-card-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: rgba(140, 210, 255, 0.95);
}

.dispatch-role-card.active .dispatch-role-card-kicker {
    color: #86efac;
}

.dispatch-role-card-title {
    font-size: 13px;
    font-weight: 700;
}

.dispatch-role-card-desc {
    font-size: 10px;
    line-height: 1.3;
    color: rgba(200, 215, 235, 0.62);
}

.dispatch-duty-cta {
    width: 100%;
    margin-top: 4px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
}

.dispatch-active-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.dispatch-status-hero {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(80,160,255,0.14);
    background: rgba(8, 16, 30, 0.65);
}

.dispatch-status-hero.avail-ready {
    border-color: rgba(34, 197, 94, 0.35);
    background: linear-gradient(135deg, rgba(20, 70, 45, 0.35) 0%, rgba(8, 16, 30, 0.7) 100%);
}

.dispatch-status-hero.avail-talking {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, rgba(90, 60, 10, 0.35) 0%, rgba(8, 16, 30, 0.7) 100%);
}

.dispatch-status-hero.avail-pause {
    border-color: rgba(239, 68, 68, 0.38);
    background: linear-gradient(135deg, rgba(80, 20, 20, 0.35) 0%, rgba(8, 16, 30, 0.7) 100%);
}

.dispatch-status-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.dispatch-status-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dispatch-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dispatch-pill.role {
    background: rgba(80, 160, 255, 0.18);
    color: #b8dcff;
    border: 1px solid rgba(80, 160, 255, 0.28);
}

.dispatch-pill.avail-ready { background: rgba(34, 197, 94, 0.22); color: #86efac; }
.dispatch-pill.avail-talking { background: rgba(245, 158, 11, 0.22); color: #fcd34d; }
.dispatch-pill.avail-pause { background: rgba(239, 68, 68, 0.22); color: #fca5a5; }
.dispatch-pill.talking { background: rgba(245, 158, 11, 0.28); color: #fde68a; }

.dispatch-status-since {
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: rgba(220, 235, 255, 0.78);
}

.dispatch-status-hint {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(200, 215, 235, 0.72);
}

.dispatch-segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px;
    border-radius: 10px;
    background: rgba(6, 12, 22, 0.75);
    border: 1px solid rgba(80,160,255,0.12);
}

.dispatch-segment {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(210, 225, 245, 0.82);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.dispatch-segment:hover:not(:disabled) {
    background: rgba(255,255,255,0.04);
}

.dispatch-segment.ready.active {
    background: rgba(34, 197, 94, 0.22);
    border-color: rgba(34, 197, 94, 0.45);
    color: #bbf7d0;
}

.dispatch-segment.not-ready.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.42);
    color: #fecaca;
}

.dispatch-segment:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dispatch-duty-end {
    width: 100%;
    margin-top: 2px;
}

.dispatch-team-block {
    padding-top: 14px;
    border-top: 1px solid rgba(80,160,255,0.12);
}

.dispatch-team-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.dispatch-team-head .dispatch-block-label {
    margin-bottom: 0;
}

.dispatch-team-count {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    background: rgba(80, 160, 255, 0.16);
    color: #b8dcff;
    border: 1px solid rgba(80, 160, 255, 0.24);
}

.dispatch-duty-list {
    min-height: 48px;
}

.dispatch-table-wrap {
    border-radius: 10px;
    border: 1px solid rgba(80,160,255,0.14);
    overflow: hidden;
    background: rgba(4, 10, 18, 0.55);
    max-height: 180px;
    overflow-y: auto;
}

.dispatch-team-empty {
    padding: 18px 12px;
    text-align: center;
    font-size: 12px;
    color: rgba(200, 215, 235, 0.55);
    border-radius: 10px;
    border: 1px dashed rgba(80,160,255,0.18);
    background: rgba(6, 12, 22, 0.45);
}

.dispatch-duty-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.dispatch-duty-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(12, 22, 38, 0.98);
}

.dispatch-duty-table th {
    position: relative;
    text-align: left;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(180, 200, 225, 0.72);
    padding: 8px 10px;
    border-bottom: 1px solid rgba(80,160,255,0.16);
}

.dispatch-duty-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(80,160,255,0.06);
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ra-resizable-table th,
.ra-resizable-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ra-resizable-th {
    padding-right: 16px !important;
}

.ra-col-resize-handle {
    position: absolute;
    top: 0;
    right: -4px;
    width: 8px;
    height: 100%;
    cursor: col-resize;
    z-index: 3;
    touch-action: none;
}

.ra-col-resize-handle::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 3px;
    width: 1px;
    height: 60%;
    background: rgba(132, 203, 255, 0.35);
}

.ra-col-resize-handle:hover::after,
body.ra-table-resizing .ra-col-resize-handle::after {
    background: rgba(132, 203, 255, 0.9);
}

body.ra-table-resizing {
    cursor: col-resize !important;
    user-select: none !important;
}

.dispatch-duty-table tbody tr:last-child td {
    border-bottom: none;
}

.dispatch-duty-table tr.avail-ready td { background: rgba(34, 197, 94, 0.08); }
.dispatch-duty-table tr.avail-talking td { background: rgba(245, 158, 11, 0.1); }
.dispatch-duty-table tr.avail-pause td { background: rgba(239, 68, 68, 0.08); }

.dispatch-duty-table tr.is-self td {
    box-shadow: inset 3px 0 0 rgba(100, 180, 255, 0.75);
}

.dispatch-duty-table .duty-name-cell {
    font-weight: 600;
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dispatch-duty-table .duty-role-tag {
    display: inline-flex;
    min-width: 34px;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: rgba(80, 160, 255, 0.14);
    color: #b8dcff;
}

.dispatch-duty-table .duty-klappe {
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    font-weight: 800;
    color: rgba(184, 220, 255, 0.9);
    white-space: nowrap;
}

.dispatch-duty-table .duty-since {
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    color: rgba(210, 225, 245, 0.78);
    white-space: nowrap;
}

.dispatch-duty-table .duty-avail {
    display: inline-flex;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dispatch-duty-table .duty-avail.avail-ready { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.dispatch-duty-table .duty-avail.avail-talking { background: rgba(245, 158, 11, 0.22); color: #fcd34d; }
.dispatch-duty-table .duty-avail.avail-pause { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.duty-avail {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
}

.duty-avail.avail-ready { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.duty-avail.avail-talking { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.duty-avail.avail-pause { background: rgba(148, 163, 184, 0.18); color: #cbd5e1; }

.res-current-badge.avail-talking { border-color: rgba(245, 158, 11, 0.45); }
.res-current-badge.avail-pause { border-color: rgba(148, 163, 184, 0.45); }

.res-current-badge.duty-active {
    background: rgba(34,197,94,0.12);
    border-color: rgba(34,197,94,0.35);
    color: #4ade80;
    margin-bottom: 8px;
}
.dispatch-duty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border-radius: 8px;
    background: rgba(14,30,54,0.72);
    border: 1px solid rgba(80,160,255,0.14);
}
.duty-name     { flex: 1; font-size: 14px; font-weight: 600; color: #c8deff; }
.duty-self { border-color: rgba(34,197,94,0.25); background: rgba(34,197,94,0.05); }
.duty-callsign {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(34,197,94,0.15);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.3);
}

/* ── RapidAlert Pager ─────────────────────────────────────── */
.pager-shell {
    position: fixed;
    right: 44px;
    bottom: 36px;
    z-index: 45;
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.72));
    font-family: "Rajdhani", Arial, Helvetica, sans-serif;
    transform: scale(var(--pager-scale));
    transform-origin: right bottom;
    cursor: grab;
}

/* Über Tablet/Leitstelle, solange eine Nachricht sichtbar ist (Alarm/Text) */
.pager-shell:not(.hidden):not(.pager-idle) {
    z-index: 120;
}

.pager-shell:active {
    cursor: grabbing;
}

.pager-wrap {
    position: relative;
    width: min(330px, 26vw);
    isolation: isolate;
}

/* LCD unter dem Gehäuse (PNG mit transparentem Display-Fenster) */
.pager-screen {
    position: absolute;
    z-index: 1;
    left: 16.7%;
    top: 11.8%;
    width: 66.5%;
    height: 28.2%;
    padding: 5px 7px 4px;
    border-radius: 2px;
    background: #a9bca3;
    border: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -2px 6px rgba(0, 0, 0, 0.28),
        inset 0 0 10px rgba(0, 0, 0, 0.22);
    color: rgba(37, 48, 42, 0.72);
    display: grid;
    grid-template-rows: 14px 1fr 14px;
    overflow: hidden;
    pointer-events: none;
}

.pager-image {
    position: relative;
    z-index: 2;
    width: 100%;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.pager-shell.alerting .pager-screen {
    animation: pagerAlertPulse 0.75s step-end infinite;
}

.pager-shell.pager-pending-ack .pager-screen {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -2px 6px rgba(0, 0, 0, 0.28),
        inset 0 0 0 1px rgba(210, 120, 40, 0.55),
        inset 0 0 10px rgba(0, 0, 0, 0.22);
}

.pager-statusbar {
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(37, 48, 42, 0.58);
}

.pager-signal {
    position: relative;
    width: 21px;
    height: 13px;
    display: inline-block;
}

.pager-signal span {
    position: absolute;
    left: 0;
    bottom: 1px;
    border: 1.6px solid currentColor;
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 0 11px 0 0;
}

.pager-signal span:nth-child(1) {
    width: 7px;
    height: 7px;
}

.pager-signal span:nth-child(2) {
    width: 12px;
    height: 11px;
}

.pager-signal span:nth-child(3) {
    width: 17px;
    height: 15px;
}

.pager-battery {
    width: 24px;
    height: 13px;
    flex: 0 0 auto;
    opacity: 0.58;
}

.pager-job {
    font-family: Arial, Helvetica, sans-serif;
    align-self: center;
    justify-self: center;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: rgba(37, 48, 42, 0.66);
    text-shadow: none;
    white-space: nowrap;
    text-align: center;
}

.pager-message {
    display: none;
    align-self: stretch;
    justify-self: stretch;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: rgba(37, 48, 42, 0.70);
    text-shadow: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 48, 42, 0.35) transparent;
}

.pager-message::-webkit-scrollbar {
    width: 3px;
}

.pager-message::-webkit-scrollbar-thumb {
    background: rgba(37, 48, 42, 0.35);
    border-radius: 2px;
}

.pager-shell.pager-idle .pager-job {
    display: block;
}

.pager-shell:not(.pager-idle) .pager-job {
    display: none;
}

.pager-shell:not(.pager-idle) .pager-message {
    display: block;
}

.pager-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    line-height: 1;
    color: rgba(37, 48, 42, 0.62);
}

.pager-date {
    font-size: 14px;
    letter-spacing: -0.07em;
    white-space: nowrap;
}

.pager-time {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
    color: rgba(37, 48, 42, 0.62);
}

@keyframes pagerAlertPulse {
    0%, 100% {
        background: #a9bca3;
    }
    50% {
        background: #bdcbb8;
    }
}

.pager-ack-zone {
    position: absolute;
    left: 20%;
    top: 52%;
    width: 28%;
    height: 22%;
    z-index: 3;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    appearance: none;
    padding: 0;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.pager-ack-zone:focus,
.pager-ack-zone:focus-visible,
.pager-ack-zone:active {
    outline: none;
    box-shadow: none;
}

body.debug-zones .pager-ack-zone {
    background: rgba(255, 0, 0, 0.35);
    outline: 1px solid red;
}

body.debug-zones .pager-ack-zone::after {
    content: 'ACK';
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-shadow: 0 0 3px #000;
}

/* ── Notruf-Chat (Leitstelle) ── */
.notruf-chat-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
}

.notruf-chat-log {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(80, 160, 255, 0.15);
}

.notruf-chat-msg {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 92%;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.35;
}

.notruf-chat-msg.me {
    align-self: flex-end;
    background: rgba(37, 99, 235, 0.28);
    border: 1px solid rgba(96, 165, 250, 0.35);
}

.notruf-chat-msg.them {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.notruf-chat-from {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.75;
}

.notruf-chat-system {
    align-self: center;
    font-size: 11px;
    opacity: 0.65;
    font-style: italic;
    text-align: center;
}

.notruf-chat-compose {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notruf-chat-compose .leit-textarea {
    min-height: 72px;
    resize: vertical;
}

.notruf-event-hint {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.28);
    color: #cfe1ff;
    font-size: 12px;
    line-height: 1.45;
}

.inc-log-compose {
    display: flex;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.inc-log-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(45, 212, 191, 0.45);
    background: rgba(45, 212, 191, 0.16);
    color: #5eead4;
    font-weight: 700;
}

.inc-log-new-btn:hover {
    background: rgba(45, 212, 191, 0.28);
    border-color: rgba(45, 212, 191, 0.65);
    color: #99f6e4;
}

.inc-log-new-icon {
    font-size: 14px;
    line-height: 1;
}

.inc-log-modal {
    width: min(480px, 100%);
}

.inc-log-modal-text {
    width: 100%;
    min-height: 120px;
    margin-bottom: 14px;
    resize: vertical;
}

.inc-log-save-btn {
    border: 1px solid rgba(45, 212, 191, 0.45);
    background: rgba(45, 212, 191, 0.2);
    color: #5eead4;
    font-weight: 700;
}

.inc-log-save-btn:hover {
    background: rgba(45, 212, 191, 0.32);
    color: #99f6e4;
}

.leit-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(4, 8, 16, 0.72);
    backdrop-filter: blur(4px);
}

.leit-modal {
    width: min(420px, 100%);
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: linear-gradient(165deg, rgba(12, 22, 40, 0.98), rgba(8, 14, 24, 0.98));
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.leit-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.leit-modal-head h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #e8f4ff;
}

.leit-modal-close {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #e8f4ff;
    cursor: pointer;
}

.leit-modal-close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.leit-confirm-text {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(232, 244, 255, 0.82);
}

.leit-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.leit-confirm-modal .tablet-btn.danger {
    background: rgba(220, 38, 38, 0.85);
    border-color: rgba(248, 113, 113, 0.45);
}

.leit-confirm-modal .tablet-btn.danger:hover {
    background: rgba(220, 38, 38, 1);
}

/* ════════════════════════════════════════════════════════════
   F9-TABLET — Einheitliches UI-Schema
════════════════════════════════════════════════════════════ */

/* ── Basis-Farben via Tokens ── */
.tablet-main {
    background: var(--ra-bg-main);
    color: var(--ra-text);
}

.tablet-sidebar {
    background: var(--ra-bg-sidebar);
}

/* ── Einheitlicher Seitenkopf für alle Tabs ── */
.tablet-page-top,
.admin-tab-top {
    flex-shrink: 0;
    padding: 20px 28px 0;
    background: var(--ra-bg-main);
    border-bottom: 1px solid var(--ra-border);
}

.tablet-page-top .tcontent-header,
.admin-tab-top .tcontent-header {
    margin-bottom: 0;
}

.tcontent-title { color: #edf4ff; }
.tcontent-sub { color: var(--ra-text-muted); }

/* ── Subtabs (alle gleich) ── */
.tablet-subtabs,
.admin-subtabs.leitstelle-subtabs,
.leitstelle-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 14px;
    padding-bottom: 12px;
}

.leitstelle-subtab,
.einsatz-ftab,
.leit-action-mode {
    padding: 7px 16px;
    border-radius: 7px;
    border: 1px solid rgba(80, 130, 200, 0.22);
    background: transparent;
    color: var(--ra-text-muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    font-family: inherit;
    transition: background 0.1s, border-color 0.1s, color 0.1s;
}

.leitstelle-subtab:hover,
.einsatz-ftab:hover,
.leit-action-mode:hover {
    background: rgba(80, 130, 200, 0.12);
    color: #c8deff;
}

.leitstelle-subtab.active,
.einsatz-ftab.active,
.leit-action-mode.active {
    background: rgba(40, 100, 200, 0.28);
    border-color: rgba(80, 160, 255, 0.5);
    color: var(--ra-accent);
}

/* ── Icon-Button (z.B. Refresh ↻) ── */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    border: 1px solid rgba(80, 130, 200, 0.22);
    background: transparent;
    color: var(--ra-text-muted);
    font-size: 18px;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
    transition: background 0.1s, color 0.1s;
}

.icon-btn:hover {
    background: rgba(80, 130, 200, 0.14);
    color: #c8deff;
}

/* ── Panels ── */
.leit-panel {
    background: var(--ra-bg-panel);
    border-color: var(--ra-border);
}

.settings-item {
    background: var(--ra-bg-panel-deep);
    border-color: var(--ra-border);
}

/* ── Ressourcen-Badge ── */
.res-current-badge {
    border-color: var(--ra-border-strong);
    background: linear-gradient(90deg, rgba(35, 88, 170, 0.22), rgba(8, 18, 34, 0.74));
    color: #a9d8ff;
}

/* ── Disponenten-Karte ── */
.leit-panel.dispatch-duty-card {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--ra-radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dispatch-role-card {
    border-color: var(--ra-border);
    background: var(--ra-bg-panel-deep);
}

/* ── Events & Notrufe Spalten ── */
.einsatz-list-col {
    background: rgba(7, 14, 23, 0.6);
}

.einsatz-detail-col {
    background: var(--ra-bg-panel-deep);
}

.einsatz-list-header {
    background: var(--ra-bg-toolbar);
    border-bottom-color: var(--ra-border);
    padding: 10px 12px;
}

.einsatz-list-card {
    border-color: var(--ra-border);
    background: var(--ra-bg-panel);
}

.einsatz-list-card:hover {
    background: rgba(28, 52, 90, 0.7);
    border-color: rgba(80, 130, 200, 0.35);
}

.einsatz-list-card.selected {
    border-color: rgba(80, 160, 255, 0.55);
    background: rgba(30, 70, 150, 0.3);
}

/* ── "Zugriff verweigert"-Hinweise (BOSKOM etc.) ── */
.leit-denied,
.boskom-denied {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 28px auto;
    max-width: 520px;
    padding: 16px 20px;
    border-radius: var(--ra-radius);
    border: 1px solid rgba(231, 86, 98, 0.35);
    background: rgba(200, 40, 55, 0.1);
    color: rgba(255, 215, 218, 0.85);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
}

.leit-denied > i,
.boskom-denied > i,
.leit-denied-icon {
    flex: 0 0 auto;
    font-size: 18px;
    color: #f87171;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.leit-denied > span:not(.leit-denied-icon),
.boskom-denied > span {
    flex: 1 1 auto;
    min-width: 0;
}

#tabLeitstelle.leit-no-access .tablet-page-top,
#tabLeitstelle.leit-no-access .leitstelle-subpane,
#tabLeitstelle.leit-no-access .leit-workspace,
#tabLeitstelle.leit-no-access .leit-subtabs-bar {
    display: none !important;
}

#tabLeitstelle.leit-no-access #leitstelleDenied {
    display: flex !important;
    flex: 1;
    align-self: center;
    margin: auto;
}

/* ── Übersicht padding ── */
#leitSubOverview { padding: 18px 28px; }

/* ── Aktionen padding ── */
.leit-actions-split {
    padding: 18px 28px;
    max-height: none;
    overflow-y: auto;
}

/* ── Ressourcen-Tabelle ── */
#tabResources > .res-table-wrap {
    border-color: var(--ra-border);
    background: var(--ra-bg-panel-deep);
}

/* ── tablet-btn Hover vereinheitlichen ── */
.tablet-btn {
    transition: background 0.1s, border-color 0.1s;
}

.tablet-btn:hover {
    background: rgba(40, 100, 220, 0.38);
    border-color: rgba(80, 160, 255, 0.55);
}

.tablet-btn.ghost:hover {
    background: rgba(100, 160, 220, 0.16);
    color: #c8deff;
}

.tablet-btn.danger:hover {
    background: rgba(220, 50, 65, 0.32);
}

#tabResourcesBtn.ra-ingame-hidden,
#tabLeitstelleBtn.ra-ingame-hidden,
#dispatchDutySection.ra-ingame-hidden {
    display: none !important;
}

@media (max-width: 720px) {
    .service-duty-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .service-duty-actions {
        justify-content: stretch;
    }

    .service-duty-action {
        width: 100%;
    }
}
