/* Alarmierung in der Leitstelle (Skizze alarmierung.html; A3, R1, F3-5 … F3-15): Einsatzspalte, Alarmstatus, PME,
   Folgeeinsätze, Alarm-Protokoll; Karten-Ebene „Einsatzmittel-Standorte“ (R4). */
.al-zu .chip.err, .al-fenster .chip.err, .al-spalte-info .chip.err { background: var(--err-bg); border-color: var(--err); color: var(--err-tx); }
.al-st .btn .k, .al-fenster .btn .k { font-family: var(--mono); font-size: 11px; padding: 0 5px; border-radius: 3px; background: #0006; color: var(--info-tx); line-height: 16px; }
.al-ok { color: var(--ok-tx); }
.al-no { color: var(--err-tx); }
.al-wa { color: var(--warn-tx); }

/* Einsatzspalte: Karte je zugeordneter Einheit */
.al-zu { display: flex; flex-direction: column; gap: 3px; padding: 4px; border-radius: 6px; background: var(--p2); border: 1px solid var(--ln); flex: none; }
.al-zu.warn { border-color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn); }
.al-zu.err { border-color: var(--err); box-shadow: inset 0 0 0 1px var(--err); }
.sna-spalte .drop .al-zu .emk { min-height: 50px; }
.sna-spalte .pn.wachsen > .b > * { flex: none; } /* Ablagen nicht stauchen – der Bereich scrollt */
.al-st { display: flex; align-items: center; gap: 5px; font-size: 12.5px; flex-wrap: wrap; color: var(--tx); }
.al-st .btn.klein { height: 24px; padding: 0 7px; font-size: 12.5px; }
.al-chip { height: 20px; font-size: 11.5px; padding: 0 7px; }
.al-folge-chip { background: var(--warn-bg); border-color: #8a6d00; color: var(--warn-tx); }
.al-ant { display: inline-flex; gap: 3px; align-items: center; font-size: 12px; }
.al-ant b { font-family: var(--mono); font-weight: 600; }
.al-rechts { margin-left: auto; white-space: nowrap; }
.al-hinweis { font-size: 11.5px; line-height: 1.25; }
.al-spalte-info { display: flex; flex-direction: column; gap: 3px; }
.al-spalte-info .pf-sec { margin-top: 6px; font-size: 11px; }
.al-li { font-size: 12.5px; padding: 3px 6px; gap: 6px; }
.al-li.klickbar { cursor: pointer; }
.al-li.klickbar:hover, .al-li.klickbar:focus-visible { background: var(--p3); outline: none; }
.al-li-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.al-li .chip { flex: none; }
.al-pr-knopf { align-self: flex-start; margin-top: auto; flex: none; }

/* Fenster (stapelbar, alarm/fenster.js) */
.al-fenster { max-height: 1000px; }
.al-fenster .dlg-kopf { gap: 8px; }
.al-ftitel { display: flex; align-items: baseline; gap: 4px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-inhalt { flex: 1; min-height: 0; }
.al-knoepfe .btn.links + .btn:not(.links) { margin-left: auto; }
.al-knoepfe:has(.btn.links) { justify-content: flex-start; }
.al-chip-x { background: none; border: none; color: inherit; cursor: pointer; padding: 0 0 0 4px; font-size: 12px; opacity: .8; }
.al-chip-x:hover, .al-chip-x:focus-visible { opacity: 1; outline: 1px solid currentColor; border-radius: 3px; }

/* Alarmstatus */
.al-status-fenster { height: 680px; }
.al-status { display: flex; flex-direction: column; gap: 8px; min-height: 0; flex: 1; }
.al-st-kopf { align-items: flex-start; gap: 14px; }
.al-st-kopf > .emk { width: 330px; min-height: 46px; flex: none; }
.al-st-kopf .kv { grid-template-columns: 80px 1fr; flex: 1; }
.al-tab-huelle { overflow: auto; max-height: 260px; flex: none; }
.al-tab td { white-space: normal; }
.al-verlauf { overflow: auto; min-height: 60px; flex: 1; }
.al-verlauf .li.warnung { box-shadow: inset 3px 0 0 var(--warn); }
.al-verlauf .li.fehler { box-shadow: inset 3px 0 0 var(--err); }

/* PME */
.al-pme-fenster { height: 640px; }
.al-pme-empf { position: relative; }
.al-pme-chips { flex-wrap: wrap; gap: 5px; }
.al-pme-chips .chip { height: 26px; }
.al-chip-err { border-color: var(--err) !important; }
.al-chip-knopf { cursor: pointer; }
.al-chip-knopf:hover { background: var(--p4); }
.al-pme-suche { height: 26px; width: 240px; font-size: 13px; }
.al-pme-treffer { position: absolute; z-index: 5; left: 0; top: calc(100% + 2px); width: 460px; background: var(--p2); border: 1px solid var(--ln2); border-radius: 6px; box-shadow: 0 8px 24px #000a; padding: 4px; display: flex; flex-direction: column; gap: 1px; }
.al-pme-text { height: 150px; padding: 8px 9px; font-size: 15px; resize: none; line-height: 1.4; }
.al-pme-letzte { overflow: auto; max-height: 120px; }

/* Folgeeinsätze */
.al-folgen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 520px; overflow: auto; }
.al-folge { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 5px; background: var(--p2); border: 1px solid var(--ln); }
.al-folge:focus-within { border-color: var(--ac); }
.al-platz { font: 700 16px var(--mono); width: 28px; flex: none; }
.al-folge-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }

/* Alarm-Protokoll */
.al-pr-fenster .al-inhalt { padding: 10px 14px; }
.al-pr-fenster-inhalt { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.al-pr { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; height: 100%; }
.al-pr-leiste { flex-wrap: wrap; }
.al-pr-suche { width: 280px; }
.al-pr-leiste .chip { cursor: pointer; height: 30px; font-size: 13px; }
.al-pr-huelle { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--ln); border-radius: 6px; }
.al-pr-tab thead th { position: sticky; top: 0; background: var(--p2); z-index: 1; }
.al-pr-zeile { cursor: pointer; }
.al-pr-zeile:hover { background: var(--p2); }
.al-pr-zeile:focus-visible { outline: 2px solid var(--ac); outline-offset: -2px; }
.al-pr-tab td.al-pr-inhalt { white-space: normal; min-width: 260px; }
.al-pr-tab td:nth-child(3) { white-space: normal; min-width: 160px; }

/* Tools › Alarme */
.al-tools-b { overflow: hidden !important; }
.al-tools { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.al-toene { flex-wrap: wrap; gap: 6px 14px; padding-top: 6px; border-top: 1px solid var(--ln); flex: none; }

/* Karte: Ebene „Einsatzmittel-Standorte“ (R4) */
.kt-em { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px 0 3px; border-radius: 12px; border: 2px solid #fff; box-shadow: 0 2px 6px #0009; font-size: 12px; font-weight: 700; white-space: nowrap; }
.kt-em b { display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: #0005; font: 800 11px var(--mono); }
