/* Einsatzzentrale Lab — Desktop-Dashboard, unabhängig vom übrigen Member-Layout */

html.ez2-html,
html.ez2-html body.ez2-body {
    height: 100%;
    margin: 0;
}

.ez2-body {
    overflow: hidden;
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    background: #e8e8ea;
    color: #111;
}

main#member-main.ez2-page-main.page-wrap {
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.ez2-command-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    background: #ececee;
}

/* ——— Top bar ——— */
.ez2-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 10px 20px;
    background: #c00;
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.ez2-topbar__start {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.ez2-topbar__start .ez2-topbar__brand {
    min-width: 0;
}

.ez2-topbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Malteser-Wappen (transparent) in der Einsatzzentrale-Leiste */
.ez2-topbar__logo-img {
    height: 40px;
    width: 40px;
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.ez2-topbar__titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ez2-topbar__title {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ez2-topbar__subtitle {
    font-size: 11px;
    opacity: 0.88;
    font-weight: 500;
}

.ez2-topbar__status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 18px;
    font-size: 13px;
    font-weight: 600;
}

.ez2-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.04em;
}

.ez2-live__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ez2-live--online .ez2-live__dot {
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    animation: ez2-live-dot-blink 1.15s ease-in-out infinite;
}

.ez2-live--pending .ez2-live__dot {
    background: #94a3b8;
    box-shadow: none;
    animation: none;
}

.ez2-live--offline .ez2-live__dot {
    background: #f87171;
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.45);
    animation: none;
}

.ez2-live--offline {
    opacity: 0.92;
}

@keyframes ez2-pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.ez2-clock {
    font-variant-numeric: tabular-nums;
    opacity: 0.95;
}

.ez2-operator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ez2-operator__avatar {
    font-size: 18px;
    opacity: 0.9;
}

.ez2-operator__name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ez2-topbar__logout {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
}

.ez2-topbar__logout:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Desktop: linkes Portal-Menü (Dashboard/Mitgliedernavigation) ein- und ausklappen */
.ez2-portal-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
}

.ez2-portal-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
}

.ez2-portal-sidebar-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.ez2-portal-sidebar-toggle__icon::before {
    content: "‹";
    font-size: 22px;
    line-height: 1;
    font-weight: 300;
    display: block;
    margin-top: -2px;
}

.ez2-workspace--portal.ez2-portal-sidebar--collapsed .ez2-portal-sidebar-toggle__icon::before {
    content: "›";
}

@media (min-width: 900px) {
    .ez2-portal-sidebar-toggle {
        display: inline-flex;
    }

    .ez2-workspace--portal .member-portal-sidebar {
        transition:
            width 0.22s ease,
            min-width 0.22s ease,
            opacity 0.18s ease,
            border-color 0.2s ease;
    }

    .ez2-workspace--portal.ez2-portal-sidebar--collapsed .member-portal-sidebar {
        width: 0 !important;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
        border-right-width: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
    }
}

/* ——— Workspace ——— */
.ez2-workspace {
    flex: 1 1 auto;
    display: flex;
    min-height: 0;
}

.ez2-mission-rail {
    width: 52px;
    flex-shrink: 0;
    background: #d8d8dc;
    border-right: 1px solid #c4c4c8;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
}

.ez2-rail-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #444;
    position: relative;
    font-family: inherit;
}

.ez2-rail-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.ez2-rail-btn.is-active {
    background: #c00;
    color: #fff;
    box-shadow: 0 2px 8px rgba(204, 0, 0, 0.35);
}

.ez2-rail-btn.is-active::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #c00;
}

.ez2-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 12px 16px 14px;
    gap: 12px;
    overflow: hidden;
}

/* ——— Stats ——— */
.ez2-stats {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1100px) {
    .ez2-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ez2-stat {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.ez2-stat--accent {
    background: #c00;
    color: #fff;
    border-color: rgba(0, 46, 46, 0.08);
}

.ez2-stat__value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.ez2-stat__label {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
    line-height: 1.35;
    hyphens: auto;
}

.ez2-stat--accent .ez2-stat__label {
    opacity: 0.92;
}

/* ——— Map + missions ——— */
.ez2-map-split {
    flex: 1 1 auto;
    display: flex;
    gap: 12px;
    min-height: 0;
    align-items: stretch;
}

@media (max-width: 900px) {
    .ez2-map-split {
        flex-direction: column;
    }

    .ez2-missions-panel {
        width: 100% !important;
        flex: 0 0 auto;
        max-height: min(42vh, 360px);
    }

    .ez2-map-stage {
        flex: 1 1 55%;
        min-height: 220px;
    }
}

/* Wrapper: Karte + optionales Formular-iframe übereinander */
.ez2-map-stage {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 0;
}

.ez2-map-stage .ez2-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.ez2-map {
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.ez2-dispatch-embed {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 8;
    flex-direction: column;
    background: #f1f5f9;
}

.ez2-dispatch-embed.is-visible {
    display: flex;
    z-index: 1400;
}

/* Einsatzkarte über der Karte (Marker / Flugzeug-Klick) */
.ez2-map-dispatch-popover {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 750;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.ez2-map-dispatch-popover.is-open {
    display: flex;
}

.ez2-map-dispatch-popover__backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: rgba(15, 23, 42, 0.22);
    cursor: pointer;
}

.ez2-map-dispatch-popover__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(400px, calc(100vw - 24px));
    max-height: min(85vh, 100%);
    overflow: auto;
    margin: 0;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    box-sizing: border-box;
}

.ez2-map-dispatch-popover__close {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.ez2-map-dispatch-popover__close:hover {
    background: rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

.ez2-map-dispatch-popover__body {
    padding: 10px 40px 12px 12px;
}

.ez2-map-dispatch-popover__body .ez2-mission-card {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ez2-map-dispatch-popover__body .ez2-mission-card:hover {
    box-shadow: none;
    background: rgba(15, 23, 42, 0.06);
}

.ez2-map-dispatch-popover__body .ez2-mission-card.is-active {
    background: rgba(185, 28, 28, 0.1);
}

.ez2-map-dispatch-popover__body .ez2-mission-card:focus-visible {
    outline: 2px solid #c00;
    outline-offset: 2px;
}

.ez2-dispatch-iframe {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 0;
    background: #fff;
}

/* Karten-Filter (Welt / Einsatzort / Flugroute) — helle Leiste, Icons gut lesbar */
.ez2-map-filter-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    max-width: calc(100% - 120px);
    padding: 6px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
    pointer-events: auto;
}

.ez2-map-filter-bar__filters {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ez2-map-view-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 8px;
    margin-left: 4px;
    border-left: 1px solid rgba(15, 23, 42, 0.12);
}

.ez2-map-view-btn {
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ez2-map-view-btn:hover {
    background: #e2e8f0;
    border-color: rgba(15, 23, 42, 0.28);
}

.ez2-map-filter-btn {
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    background: #f1f5f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ez2-map-filter-btn:hover {
    background: #e8eef4;
    border-color: rgba(15, 23, 42, 0.14);
}

.ez2-map-filter-btn.is-active {
    background: rgba(204, 0, 0, 0.12);
    border-color: rgba(204, 0, 0, 0.45);
    box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.35);
}

.ez2-map-filter-btn:focus-visible {
    outline: 2px solid #c00;
    outline-offset: 2px;
}

.ez2-map-filter-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.ez2-map-stage--pws .ez2-map-filter-bar {
    visibility: hidden;
    pointer-events: none;
}

/* ——— Patient / Transport — Workspace im Kartenframe ——— */
.ez2-patient-workspace {
    position: absolute;
    inset: 0;
    z-index: 1200;
    display: none;
    flex-direction: column;
    background: linear-gradient(165deg, #f8fafc 0%, #eef2f7 45%, #f1f5f9 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.ez2-patient-workspace.is-visible {
    display: flex;
}

.ez2-pws-top {
    flex-shrink: 0;
    padding: 14px 16px 12px;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

.ez2-pws-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ez2-pws-top-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    justify-content: flex-end;
}

.ez2-pws-push-status {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    max-width: 220px;
    line-height: 1.35;
}

.ez2-pws-push-status.is-err {
    color: #b91c1c;
}

.ez2-pws-push-btn {
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #991b1b;
    background: linear-gradient(180deg, #b91c1c 0%, #991b1b 100%);
    color: #fff;
    cursor: pointer;
    transition: filter 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.ez2-pws-push-btn:hover:not(:disabled) {
    filter: brightness(1.06);
}

.ez2-pws-push-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ez2-pws-ez-legend {
    margin: 8px 0 0;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.4;
    max-width: 48rem;
}

.ez2-pws-field.ez2-pws-field--ez-source,
.ez2-pws-check.ez2-pws-field--ez-source {
    position: relative;
    border-left: 3px solid #2563eb;
    padding-left: 10px;
    margin-left: -2px;
    background: rgba(37, 99, 235, 0.06);
    border-radius: 0 8px 8px 0;
}

.pd-leg-feld.ez2-pws-field--ez-source,
.pd-leg-dt-field.ez2-pws-field--ez-source {
    outline: 2px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
    border-radius: 6px;
}

.ez2-pws-crew-status {
    margin-top: 10px;
}

.ez2-pws-crew-status[hidden] {
    display: none !important;
}

.ez2-pws-crew-status-stack {
    margin: 0;
}

/* Fall-Detail: Planung (neutral), Kontakt blinkend — ergänzt member.css .dash-einsatz-status */
.dash-einsatz-status--planung {
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
}

.dash-einsatz-status-dot--planung {
    background: #9ca3af;
}

.dash-einsatz-status-dot--blink {
    background: #22c55e;
    animation: ez2-contact-blink 1.1s ease-in-out infinite;
}

@keyframes ez2-contact-blink {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(0.88);
    }
}

/* Posteingang von mindestens einem Empfänger quittiert (Import in App) */
.ez2-pws-pill--accepted {
    color: #1e3a8a;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.ez2-pws-pill-dot--accepted {
    background: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.ez2-pws-case-label {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.ez2-pws-back-btn {
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ez2-pws-back-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.ez2-pws-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.ez2-pws-nav {
    flex: 0 0 auto;
    width: 200px;
    min-width: 180px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(15, 23, 42, 0.04);
    border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.ez2-pws-nav__btn {
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ez2-pws-nav__btn:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.08);
}

.ez2-pws-nav__btn.is-active {
    background: #fff;
    color: #991b1b;
    border-color: rgba(185, 28, 28, 0.35);
    box-shadow: 0 2px 10px rgba(185, 28, 28, 0.1);
}

.ez2-pws-nav__btn--accent.is-active {
    background: rgba(185, 28, 28, 0.12);
    color: #7f1d1d;
}

.ez2-pws-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* [hidden] sonst durch display:flex der Klasse wirkungslos (Liste + Detail + Nav) */
.ez2-pws-list-view[hidden],
.ez2-pws-detail-view[hidden],
.ez2-pws-nav[hidden] {
    display: none !important;
}

.ez2-pws-list-view {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 10px 12px 12px;
    overflow: hidden;
}

.ez2-pws-pick-hint {
    margin: 0;
    max-width: 28rem;
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
    text-align: center;
}

.ez2-pws-pick-hint__kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35em;
    height: 1.35em;
    padding: 0 6px;
    margin: 0 2px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 13px;
    background: rgba(185, 28, 28, 0.12);
    color: #991b1b;
    vertical-align: middle;
}

/* Patient/Transport: Fallliste (Archiv-artige Zeilen) + Filterleiste */
.ez2-pws-sug-wrap {
    position: relative;
    display: block;
    width: 100%;
}
.ez2-pws-sug-wrap .pd-sug-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 4px 0 0;
    z-index: 40;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.ez2-pws-case-browser {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    flex: 1;
    width: 100%;
}
.ez2-pws-case-browser__rail {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 10px 12px;
    background: rgba(255, 255, 255, 0.72);
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    min-width: 148px;
}
.ez2-pws-filter-btn {
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    color: #334155;
    cursor: pointer;
    line-height: 1.25;
}
.ez2-pws-filter-btn:hover {
    border-color: rgba(153, 27, 27, 0.35);
    color: #991b1b;
}
.ez2-pws-filter-btn.is-active {
    background: linear-gradient(180deg, #b91c1c 0%, #991b1b 100%);
    color: #fff;
    border-color: #7f1d1d;
}
.ez2-pws-case-browser__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 4px 0 0 12px;
    overflow: hidden;
}
.ez2-pws-dispatch-list-host {
    flex: 1;
    overflow-y: auto;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ez2-pws-dispatch-row {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) auto 7.5rem;
    align-items: center;
    gap: 10px 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    margin: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 2px 8px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    font: inherit;
    text-align: left;
    color: inherit;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.ez2-pws-dispatch-row:hover {
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 20px rgba(15, 23, 42, 0.07);
}
.ez2-pws-dispatch-row__id {
    font-weight: 800;
    font-size: 12px;
    color: #991b1b;
    font-variant-numeric: tabular-nums;
}
.ez2-pws-dispatch-row__lead {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ez2-pws-dispatch-row__patient {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ez2-pws-dispatch-row__ort {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ez2-pws-dispatch-row__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.ez2-pws-dispatch-row__meta .ez2-pill {
    white-space: nowrap;
}
.ez2-pws-dispatch-row__phase {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    max-width: 8rem;
    text-align: right;
}
.ez2-pws-dispatch-row__dt {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    text-align: right;
    line-height: 1.25;
}
.ez2-pws-dispatch-list-empty {
    margin: 24px 8px;
    color: #64748b;
    font-size: 14px;
}
.ez2-pws-arch-loading {
    margin: 16px 8px;
    color: #64748b;
    font-size: 14px;
}
.ez2-pws-prot-arch-list.prot-arch-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 4px 0;
    list-style: none;
}
.ez2-pws-prot-arch-list .prot-arch-card {
    max-width: 100%;
}
/* Wie Protokoll-Archiv: eine kompakte Zeile mit TP, Einsatz-Nr., PDF-Pills in einer Reihe */
.ez2-pws-dispatch-list-host .ez2-pws-prot-arch-list .prot-arch-card__sum-row {
    grid-template-columns: 3rem minmax(5rem, 0.35fr) minmax(0, 1fr) auto;
    gap: 10px 12px;
}
.ez2-pws-dispatch-list-host .ez2-pws-prot-arch-list .prot-arch-card__docs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.ez2-pws-dispatch-list-host .ez2-pws-prot-arch-list .prot-arch-orga-stack {
    flex-shrink: 0;
}
.ez2-pws-pick-hint--footer {
    flex-shrink: 0;
    margin: 12px 0 0;
    font-size: 12px;
    text-align: left;
    max-width: none;
}

.ez2-pws-list-head {
    flex-shrink: 0;
    margin-bottom: 12px;
}

.ez2-pws-list-title {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.ez2-pws-list-lead {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

.ez2-pws-cta-new {
    margin-top: 4px;
    margin-bottom: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    box-shadow: 0 4px 14px rgba(185, 28, 28, 0.35);
    transition: filter 0.15s ease, transform 0.12s ease;
}

.ez2-pws-cta-new:hover {
    filter: brightness(1.06);
}

.ez2-pws-cta-new:active {
    transform: scale(0.98);
}

.ez2-pws-missions-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ez2-pws-missions-list .ez2-mission-card {
    margin: 0;
}

.ez2-pws-detail-view {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 18px 18px;
    gap: 0;
}

/* Kein eigenes max-height/overflow: vermeidet „Mini-Scroll“ in #ez2-pws-scroll — ein Scrollbereich für die ganze Fallansicht. */
.ez2-pws-medcrew-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px 14px;
    margin: 0 0 4px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: #fafbfc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ez2-pws-medcrew-scroll-hint {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}

.ez2-pws-medcrew-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    cursor: pointer;
    margin: 0;
    font: inherit;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.ez2-pws-medcrew-row:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.14);
}

.ez2-pws-medcrew-row:has(input:focus-visible) {
    outline: 2px solid rgba(185, 28, 28, 0.45);
    outline-offset: 1px;
}

.ez2-pws-medcrew-row input {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #991b1b;
    cursor: pointer;
}

.ez2-pws-medcrew-row__main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ez2-pws-medcrew-row__meta {
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
    word-break: break-word;
}

.ez2-pws-medcrew-actions {
    margin-top: 14px;
    margin-bottom: 8px;
}

.ez2-pws-scroll {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 0 0;
    scrollbar-gutter: stable;
    scrollbar-color: #94a3b8 #e8eef4;
}

/* Fallansicht: Scrollbalken etwas greifbarer (WebKit) */
.ez2-pws-scroll::-webkit-scrollbar {
    width: 11px;
}
.ez2-pws-scroll::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.85);
    border-radius: 8px;
    margin: 4px 0;
}
.ez2-pws-scroll::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 8px;
    border: 2px solid rgba(226, 232, 240, 0.85);
}
.ez2-pws-scroll::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Med-Evac: nur klassisches Formular — gesamte Detailfläche */
.ez2-pws-detail-view--form-full .ez2-pws-scroll {
    display: none !important;
}

.ez2-pws-detail-view--form-full {
    padding: 0 0 12px;
}

.ez2-pws-detail-view--form-full .ez2-pws-form-wrap {
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.ez2-pws-dynamic {
    max-width: none;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.ez2-pws-placeholder-card {
    padding: 20px 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    margin-bottom: 14px;
}

.ez2-pws-placeholder-card h3 {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.ez2-pws-placeholder-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
}

.ez2-pws-summary {
    display: grid;
    gap: 12px 20px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    padding: 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    margin-bottom: 14px;
}

.ez2-pws-summary__cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ez2-pws-summary__cell--full {
    grid-column: 1 / -1;
}

.ez2-pws-summary__dt {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.ez2-pws-summary__dd {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
}

.ez2-pws-summary__dd--mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.ez2-pws-summary__hint {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.3;
    margin-top: 2px;
}

.ez2-pws-form-wrap[hidden] {
    display: none !important;
}

.ez2-pws-form-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

.ez2-pws-form-wrap__bar {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(90deg, #fef2f2 0%, #fff 100%);
    border-bottom: 1px solid #fecaca;
}

.ez2-pws-form-wrap__title {
    font-size: 13px;
    font-weight: 800;
    color: #991b1b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ez2-pws-form-wrap__hint {
    font-size: 12px;
    color: #64748b;
}

.ez2-pws-form-iframe {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 0;
    background: #f8fafc;
}

.ez2-pws-quick-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
}

.ez2-pws-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px 18px;
    margin-bottom: 14px;
}

.ez2-pws-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font: inherit;
}

.ez2-pws-field--wide {
    grid-column: 1 / -1;
}

.ez2-pws-field__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.ez2-pws-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 1.25em;
}

.ez2-pws-field__label-row > .ez2-pws-field__label {
    flex: 1;
    min-width: 0;
}

.ez2-pws-pull-app {
    flex-shrink: 0;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    line-height: 1.2;
}

.ez2-pws-pull-app:hover:not(:disabled) {
    border-color: #991b1b;
    color: #991b1b;
    background: #fff1f2;
}

.ez2-pws-pull-app:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ez2-pws-card-title-pull {
    margin-bottom: 8px;
}

.ez2-pws-card-title-pull h3 {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.ez2-pws-check-with-app {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.ez2-pws-check-with-app .ez2-pws-check {
    flex: 1;
    min-width: 0;
}

.ez2-pws-input {
    font: inherit;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
}

.ez2-pws-input:focus {
    outline: none;
    border-color: #991b1b;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}

.ez2-pws-form-msg {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.ez2-pws-form-msg.is-err {
    color: #b91c1c;
}

.ez2-pws-autosave-hint {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    min-height: 1.2em;
}

.ez2-pws-autosave-hint.is-err {
    color: #b91c1c;
    font-weight: 600;
}

.ez2-pws-upload-card {
    padding: 4px 0 8px;
}

.ez2-pws-upload-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    background: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ez2-pws-upload-zone:hover {
    border-color: #94a3b8;
    background: #fff;
}

.ez2-pws-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}

.ez2-pws-upload-zone__text {
    font-size: 14px;
    color: #475569;
    text-align: center;
}

.ez2-pws-doc-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ez2-pws-doc-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.ez2-pws-doc-row__line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    width: 100%;
}

.ez2-pws-doc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.ez2-pws-doc-view {
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #86efac;
    background: #ecfdf5;
    color: #065f46;
    cursor: pointer;
}

.ez2-pws-doc-view:hover {
    background: #d1fae5;
}

.ez2-pws-doc-noview {
    font-size: 12px;
    color: #94a3b8;
}

.ez2-pws-doc-thumb-wrap {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.ez2-pws-doc-thumb {
    display: block;
    width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.ez2-pws-doc-loading,
.ez2-pws-doc-row--empty {
    font-size: 13px;
    color: #64748b;
    padding: 8px 0;
    list-style: none;
}

.ez2-pws-doc-row--err {
    color: #991b1b;
    font-size: 13px;
    padding: 10px 12px;
    list-style: none;
}

.ez2-pws-doc-name {
    font-weight: 600;
    color: #0f172a;
    flex: 1 1 160px;
    min-width: 0;
    word-break: break-word;
}

.ez2-pws-doc-meta {
    font-size: 12px;
    color: #64748b;
}

.ez2-pws-doc-del {
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
}

.ez2-pws-doc-del:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.ez2-pws-dummy p {
    font-style: italic;
    color: #64748b;
}

.ez2-pws-dummy--solo {
    flex: 1 1 auto;
    min-height: min(320px, 70vh);
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .ez2-pws-body {
        flex-direction: column;
    }

    .ez2-pws-nav {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
        border-right: none;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .ez2-pws-nav__btn {
        flex: 1 1 auto;
        text-align: center;
        min-width: 120px;
    }

    .ez2-pws-progress {
        flex-wrap: wrap;
    }

    .ez2-pws-progress__step {
        flex: 1 1 45%;
    }
}

.ez2-map .leaflet-container {
    z-index: 0;
}

/* Zoom/Attribution über Markern und unter Modals (Filterleiste bleibt klickbar) */
#ez2-map .leaflet-control-container {
    z-index: 4500;
}

#ez2-map .leaflet-top.leaflet-right {
    margin-top: 10px;
    margin-right: 10px;
}

.leaflet-container {
    font-family: inherit;
}

.ez2-missions-panel {
    width: min(320px, 36vw);
    flex: 0 0 auto;
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.ez2-missions-panel__head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px 14px;
    background: #c00;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ez2-missions-panel__head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ez2-missions-panel__title-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ez2-missions-panel__vorlage-sel {
    flex: 1 1 0;
    min-width: 0;
    max-width: 200px;
    height: 28px;
    padding: 0 28px 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.22)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='12' viewBox='0 0 10 12'%3E%3Cpath fill='%23ffffff' d='M5 8L0 2h10z'/%3E%3C/svg%3E")
        no-repeat right 8px center;
    color: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 26px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.ez2-missions-panel__vorlage-sel:hover {
    background-color: rgba(255, 255, 255, 0.32);
}

.ez2-missions-panel__vorlage-sel option {
    color: #111;
    font-weight: 600;
    background: #fff;
}

.ez2-missions-panel__new-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
}

.ez2-missions-panel__new-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.ez2-missions-panel__new-btn:active {
    transform: scale(0.96);
}

.ez2-missions-panel__tabs {
    display: flex;
    gap: 6px;
    width: 100%;
}

.ez2-mission-tab {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-family: inherit;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 7px 5px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1.25;
}

.ez2-mission-tab:hover {
    background: rgba(255, 255, 255, 0.24);
}

.ez2-mission-tab.is-active {
    background: #fff;
    color: #c00;
    border-color: #fff;
}

.ez2-mission-tab:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.ez2-missions-panel__crest {
    height: 30px;
    width: auto;
    max-width: 64px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.ez2-missions-empty {
    margin: 0;
    padding: 20px 12px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}

.ez2-missions-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
}

.ez2-mission-card {
    border: 1px solid #e2e2e6;
    border-radius: 10px;
    padding: 12px;
    background: #fafafa;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.ez2-mission-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.ez2-mission-card.is-active {
    background: #fef2f2;
    border-color: rgba(185, 28, 28, 0.4);
    box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.15);
}

.ez2-mission-card.is-active:hover {
    background: #feecec;
    border-color: rgba(185, 28, 28, 0.5);
}

.ez2-mission-card:focus-visible {
    outline: 2px solid #b91c1c;
    outline-offset: 2px;
}

.ez2-mission-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.ez2-mission-card__head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.ez2-mission-card__patient {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    line-height: 1.25;
    word-break: break-word;
}

@keyframes ez2-live-dot-blink {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.45), 0 0 10px rgba(34, 197, 94, 0.55);
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.2);
        transform: scale(0.9);
    }
}

.ez2-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #16a34a;
    flex-shrink: 0;
    animation: ez2-live-dot-blink 1.1s ease-in-out infinite;
}

.ez2-live-dot--contact {
    background: #059669;
    animation-delay: 0.55s;
}

.ez2-mission-card__top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    max-width: min(240px, 52%);
}

.ez2-mission-card__phase-tr-wrap {
    width: 100%;
    text-align: right;
}

.ez2-mission-card__phase--tr {
    text-align: right;
}

.ez2-mission-card__tr-tools {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

/* Todos & Einsatzstatus (Patient-Workspace) */
.ez2-pws-todo-status-dialog {
    border: none;
    padding: 0;
    max-width: min(480px, 96vw);
    background: transparent;
}

.ez2-pws-todo-status-dialog::backdrop {
    background: rgba(15, 23, 42, 0.5);
}

.ez2-pws-todo-status-dialog__panel {
    background: #fff;
    color: #0f172a;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.ez2-pws-todo-status-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.ez2-pws-todo-status-dialog__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.ez2-pws-todo-status-dialog__close {
    border: none;
    background: rgba(15, 23, 42, 0.08);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: #0f172a;
}

.ez2-pws-todo-status-dialog__close:hover {
    background: rgba(15, 23, 42, 0.14);
}

.ez2-pws-todo-status-dialog__body {
    padding: 16px;
    max-height: min(70vh, 520px);
    overflow: auto;
}

.ez2-pws-todo-status-dialog__section {
    margin-bottom: 20px;
}

.ez2-pws-todo-status-dialog__section:last-child {
    margin-bottom: 0;
}

.ez2-pws-todo-status-dialog__h3 {
    margin: 0 0 8px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.ez2-pws-todo-status-dialog__hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}

.ez2-pws-todo-status-dialog__placeholder {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
}

.ez2-pws-einsatz-phase-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ez2-pws-phase-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.ez2-pws-phase-option:hover {
    background: #f1f5f9;
}

.ez2-pws-phase-option input {
    margin-top: 3px;
    flex-shrink: 0;
}

.ez2-pws-todo-status-dialog__foot {
    padding: 12px 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.ez2-pws-todo-status-dialog__msg {
    flex: 1 1 100%;
    font-size: 13px;
    color: #166534;
}

.ez2-pws-todo-status-dialog__msg.is-err {
    color: #b91c1c;
}

.ez2-pws-todo-status-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.ez2-mission-card__route-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    margin: 0;
    border: none;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    cursor: pointer;
    line-height: 0;
    position: relative;
    z-index: 1;
}

.ez2-mission-card__route-toggle:hover {
    background: rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

.ez2-mission-card__route-toggle.is-route-hidden {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.2);
}

.ez2-mission-card__route-toggle:focus-visible {
    outline: 2px solid #c00;
    outline-offset: 1px;
}

.ez2-route-toggle__icon {
    display: block;
}

.ez2-mission-card__id {
    font-weight: 800;
    font-size: 14px;
    color: #0f172a;
}

.ez2-mission-card__flag {
    font-size: 20px;
    line-height: 1;
}

.ez2-mission-card__place {
    font-size: 13px;
    color: #334155;
    margin-bottom: 8px;
}

.ez2-mission-card__ort {
    font-size: 13px;
    color: #334155;
    margin-bottom: 8px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.ez2-mission-card__eta {
    margin: -4px 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
}

.ez2-mission-card__eta-k {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ez2-mission-card__eta-uhr {
    color: #0f172a;
}

.ez2-mission-card__eta-timer {
    color: #b45309;
}

.ez2-mission-card__status-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
}

.ez2-mission-card__status-line {
    line-height: 1;
}

/* Einsatzphase: nur Farbe, keine Pille */
.ez2-mission-card__phase {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    color: #475569;
}

.ez2-mission-card__phase--anreise {
    color: #0369a1;
}

.ez2-mission-card__phase--standby_vor_ort {
    color: #c2410c;
}

.ez2-mission-card__phase--visite {
    color: #6d28d9;
}

.ez2-mission-card__phase--patient_uebernommen {
    color: #0f766e;
}

.ez2-mission-card__phase--antransport {
    color: #15803d;
}

.ez2-mission-card__phase--im_flug {
    color: #1d4ed8;
}

.ez2-mission-card__phase--abtransport {
    color: #a21caf;
}

.ez2-mission-card__phase--pat_uebergeben {
    color: #57534e;
}

.ez2-mission-card__phase--unknown {
    color: #334155;
}

/* Einsatz-Fortschritt im geöffneten Fall */
.ez2-pws-status-timeline {
    margin: 0 0 12px;
}

.ez2-status-timeline-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    padding: 14px;
}

.ez2-status-timeline-card__head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 12px;
}

.ez2-status-timeline-card__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.ez2-status-timeline-card__head h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
}

.ez2-status-timeline-card__stats {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.ez2-status-timeline-card__head .is-error {
    color: #b91c1c;
}

.ez2-status-timeline-refresh {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    background: #f1f5f9;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 10px;
    cursor: pointer;
}

.ez2-status-timeline-refresh:hover {
    background: #e2e8f0;
}

.ez2-status-timeline-err {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 12px;
    line-height: 1.4;
}

.ez2-status-timeline {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scrollbar-width: thin;
}

/* Horizontale Pipeline: scrollbar, kompakt; Verbinder zwischen Schritten sichtbar */
.ez2-status-timeline--flow {
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 8px 14px;
    margin: 2px 0 0;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.9) 0%, rgba(248, 250, 252, 0.55) 100%);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ez2-status-timeline--flow .ez2-status-step {
    flex: 0 0 auto;
    scroll-snap-align: center;
    max-width: 220px;
}

.ez2-status-timeline--flow .ez2-status-step__line {
    display: block;
}

.ez2-status-step__now {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 6px;
    padding: 3px 9px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #991b1b, #dc2626);
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(185, 28, 28, 0.35);
}

.ez2-status-log-details {
    margin-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    padding-top: 8px;
}

.ez2-status-log-summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    color: #334155;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.ez2-status-log-summary::-webkit-details-marker {
    display: none;
}

.ez2-status-log-summary::before {
    content: "";
    flex-shrink: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 7px;
    border-color: transparent transparent transparent #64748b;
    transform: rotate(0deg);
    transition: transform 0.15s ease;
}

.ez2-status-log-details[open] .ez2-status-log-summary::before {
    transform: rotate(90deg);
}

.ez2-status-log-details[open] .ez2-status-log-summary {
    margin-bottom: 6px;
}

.ez2-status-timeline-empty {
    margin: 0 0 8px;
    font-size: 13px;
    color: #64748b;
}

.ez2-status-log {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.ez2-status-log__head {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.ez2-status-log__row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 5px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.ez2-status-log__row:last-child {
    border-bottom: none;
}

.ez2-status-log__label {
    font-weight: 600;
    color: #334155;
}

.ez2-status-log__meta {
    color: #64748b;
}

.ez2-mission-card__status-line--crew {
    font-size: 12px;
    line-height: 1.35;
    color: #475569;
}

.ez2-mission-card__status-line--crew strong {
    font-weight: 700;
    color: #334155;
}

.ez2-status-step {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(166px, 220px);
    grid-template-rows: auto 1fr;
    flex: 0 0 auto;
    color: #64748b;
    outline: none;
}

.ez2-status-step[role="button"] {
    cursor: pointer;
}

.ez2-status-step[role="button"]:hover .ez2-status-step__body,
.ez2-status-step[role="button"]:focus-visible .ez2-status-step__body {
    border-color: rgba(34, 197, 94, 0.55);
    background: #f0fdf4;
}

.ez2-status-step__dot {
    grid-column: 1;
    grid-row: 1;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    margin: 8px 5px 0;
    background: #e2e8f0;
    border: 2px solid #cbd5e1;
    z-index: 3;
}

.ez2-status-step__line {
    position: absolute;
    top: 16px;
    left: 28px;
    right: -4px;
    height: 4px;
    border-radius: 999px;
    background: #e2e8f0;
    z-index: 0;
}

.ez2-status-step.is-done .ez2-status-step__dot,
.ez2-status-step__line.is-done {
    background: #22c55e;
    border-color: #16a34a;
}

.ez2-status-step.is-current:not(.is-done) .ez2-status-step__body {
    border-width: 2px;
    border-color: rgba(185, 28, 28, 0.55);
    background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%);
    box-shadow:
        0 0 0 3px rgba(220, 38, 38, 0.14),
        0 10px 26px rgba(15, 23, 42, 0.07);
}

.ez2-status-step.is-current:not(.is-done) .ez2-status-step__label {
    color: #7f1d1d;
}

.ez2-status-step.is-current:not(.is-done) .ez2-status-step__meta {
    color: #991b1b;
}

.ez2-status-step.is-current:not(.is-done).ez2-status-step--route_flight .ez2-status-step__label,
.ez2-status-step.is-current:not(.is-done).ez2-status-step--route_landing .ez2-status-step__label {
    color: #1e3a8a;
}

.ez2-status-step.is-current:not(.is-done).ez2-status-step--route_flight .ez2-status-step__meta,
.ez2-status-step.is-current:not(.is-done).ez2-status-step--route_landing .ez2-status-step__meta {
    color: #1d4ed8;
}

.ez2-status-step.is-current:not(.is-done) .ez2-status-step__dot {
    background: #fff;
    border-width: 3px;
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.22);
}

.ez2-status-step.is-saving .ez2-status-step__dot {
    animation: ez2StatusPulse 0.8s ease-in-out infinite alternate;
}

.ez2-status-step__body {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: relative;
    z-index: 2;
    min-height: 64px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    padding: 10px 12px;
    background: #f8fafc;
}

.ez2-status-step.is-done .ez2-status-step__body {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-color: rgba(22, 163, 74, 0.45);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.ez2-status-step__label,
.ez2-status-step__meta {
    display: block;
}

.ez2-status-step__label {
    font-size: 12px;
    line-height: 1.25;
    font-weight: 800;
    color: #0f172a;
}

.ez2-status-step__meta {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 700;
    color: #64748b;
}

.ez2-status-step--route_flight .ez2-status-step__label,
.ez2-status-step--route_landing .ez2-status-step__label {
    color: #1d4ed8;
}

.ez2-status-step.is-done .ez2-status-step__label {
    color: #14532d;
}

.ez2-status-step.is-done .ez2-status-step__meta {
    color: #166534;
}

@keyframes ez2StatusPulse {
    from { opacity: 0.45; }
    to { opacity: 1; }
}

@media (max-width: 760px) {
    .ez2-status-timeline:not(.ez2-status-timeline--flow) {
        flex-direction: column;
        gap: 8px;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .ez2-status-timeline:not(.ez2-status-timeline--flow) .ez2-status-step {
        grid-template-columns: 28px 1fr;
    }

    .ez2-status-timeline:not(.ez2-status-timeline--flow) .ez2-status-step__line {
        top: 26px;
        bottom: -12px;
        left: 14px;
        right: auto;
        width: 4px;
        height: auto;
    }

    .ez2-status-timeline--flow {
        padding: 8px 6px 12px;
        -webkit-overflow-scrolling: touch;
    }

    .ez2-status-timeline--flow .ez2-status-step {
        max-width: min(200px, 78vw);
    }

    .ez2-status-timeline--flow .ez2-status-step__body {
        min-height: 56px;
        padding: 8px 10px;
    }
}

.ez2-comm-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 6px;
}

.ez2-comm-pill--online {
    background: #dcfce7;
    color: #166534;
}

.ez2-comm-pill--offline {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.ez2-comm-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #94a3b8;
}

.ez2-comm-pill--online .ez2-comm-pill__dot {
    background: #16a34a;
}

.ez2-comm-pill__dot--blink {
    animation: ez2-live-dot-blink 1.1s ease-in-out infinite;
}

.ez2-mission-card__medcrew {
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 4px;
    word-break: break-word;
}

.ez2-mission-card__medcrew-label {
    font-weight: 700;
    color: #64748b;
}

.ez2-mission-card__sub {
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
    margin-bottom: 8px;
}

.ez2-mission-card__docs {
    font-size: 11px;
    color: #0f766e;
    line-height: 1.35;
    margin: 0 0 8px;
}

.ez2-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 6px;
    vertical-align: middle;
}

.ez2-pill--red {
    background: #fee2e2;
    color: #991b1b;
}

.ez2-pill--yellow {
    background: #fef9c3;
    color: #854d0e;
}

.ez2-pill--green {
    background: #dcfce7;
    color: #166534;
}

.ez2-mission-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    align-items: center;
    margin-top: 8px;
}

.ez2-mission-card__link {
    margin-top: 0;
    font-size: 12px;
    font-weight: 700;
    color: #c00;
    text-decoration: none;
    border: none;
    background: none;
    padding: 0;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.ez2-mission-card__link:hover {
    text-decoration: underline;
}

.ez2-mission-card__delete {
    font-size: 12px;
    font-weight: 600;
    color: #991b1b;
    text-decoration: underline;
    border: none;
    background: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.ez2-mission-card__delete:hover {
    color: #7f1d1d;
}

.ez2-mission-card__delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Leaflet custom layers */
.ez2-hub-icon.leaflet-div-icon {
    background: transparent !important;
    border: none !important;
}

.ez2-hub-marker-core {
    width: 16px;
    height: 16px;
    margin: 6px;
    border-radius: 50%;
    background: #1e40af;
    border: 3px solid #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.ez2-route-end-icon.leaflet-div-icon {
    background: transparent !important;
    border: none !important;
}

.ez2-route-end-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cc0000;
    border: 2px solid #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.ez2-pulse-wrap {
    position: relative;
    width: 22px;
    height: 22px;
}

.ez2-pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(204, 0, 0, 0.55);
    /* Puls erst bei Hover über die Fallkarte (Klasse .ez2-pulse-active am Leaflet-Icon) */
    animation: none;
    transform: scale(1);
    opacity: 0.5;
}

.ez2-hospital-einsatz-icon.ez2-pulse-active .ez2-pulse-ring,
.ez2-pulse-marker.ez2-pulse-active .ez2-pulse-ring {
    animation: ez2-pulse-ring 2s ease-out infinite;
    opacity: 1;
}

.ez2-pulse-core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #c00;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 12px rgba(204, 0, 0, 0.8);
}

@keyframes ez2-pulse-ring {
    0% {
        transform: scale(0.65);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.ez2-map-city-label {
    font-size: 12px;
    font-weight: 800;
    color: #c00;
    text-shadow: 0 0 4px #fff, 0 0 8px #fff, 0 1px 0 #fff;
    white-space: nowrap;
}

.ez2-plane-icon.leaflet-div-icon {
    background: transparent !important;
    border: none !important;
}

.ez2-plane-marker {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: 50% 50%;
    line-height: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.ez2-plane-marker__img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
    pointer-events: none;
}

.ez2-hospital-einsatz-icon.leaflet-div-icon {
    background: transparent !important;
    border: none !important;
}

.ez2-hospital-pulse-root {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.ez2-hospital-pulse-card {
    background: #fff;
    color: #0f172a;
    border: 2px solid #cc0000;
    border-radius: 8px;
    padding: 5px 8px 6px;
    min-width: 76px;
    max-width: 112px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.25;
}

.ez2-hospital-pulse-nr {
    display: block;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.02em;
    color: #991b1b;
}

.ez2-hospital-clock {
    display: block;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #111;
    margin-top: 2px;
}

.ez2-pulse-wrap--patient {
    width: 32px;
    height: 32px;
    position: relative;
    flex-shrink: 0;
}

/* Leaflet: Karte füllt den Flex-Container */
#ez2-map.leaflet-container {
    height: 100%;
    width: 100%;
}

/* ——— Ticker ——— */
.ez2-ticker {
    flex-shrink: 0;
    background: #a00;
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ez2-ticker__inner {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ez2-ticker__track {
    display: inline-block;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    animation: ez2-ticker-scroll 42s linear infinite;
}

@keyframes ez2-ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ez2-ticker__track {
        animation: none;
        white-space: normal;
        max-width: 100%;
    }
}

/* 2FA-/Lade-Gate: gleicher Hintergrund und Zentrierung wie Protokolle / Einsatzzentrale (member.css + .prot-step-*) */
html.ez2-html body.ez2-body #auth-gate.auth-gate {
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 100dvh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse 90% 70% at 50% 0%, #ffe4e8 0, #fce7e9 35%, transparent 70%),
        radial-gradient(ellipse 70% 60% at 100% 100%, #fecaca 0, #fef2f2 40%, transparent 65%),
        linear-gradient(180deg, #fff5f6 0%, #fef2f2 100%);
}

/* --- Demo-Org: Beispiel-Einsätze --- */
.ez2-demo-seed-bar {
    margin: 4px 0 16px;
    padding: 12px 14px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(199, 15, 46, 0.09), rgba(15, 23, 42, 0.05));
    border: 1px solid rgba(199, 15, 46, 0.22);
    max-width: 100%;
    box-sizing: border-box;
}

.ez2-demo-seed-bar__text {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #374151;
}

.ez2-demo-seed-bar__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.ez2-demo-seed-bar__label {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ez2-demo-seed-bar__select {
    font: inherit;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
}

.ez2-demo-seed-bar__btn {
    font: inherit;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: #c70f2e;
    color: #fff;
}

.ez2-demo-seed-bar__btn:hover {
    filter: brightness(1.06);
}

.ez2-demo-seed-bar__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ez2-demo-seed-bar__msg {
    font-size: 13px;
    color: #4b5563;
    flex: 1;
    min-width: 140px;
}

.ez2-demo-seed-bar__msg.is-err {
    color: #b91c1c;
    font-weight: 600;
}

.ez2-pws-check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 10px;
}

.ez2-pws-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.ez2-pws-check input {
    width: 18px;
    height: 18px;
    accent-color: #c70f2e;
}

.ez2-pws-form-hint {
    font-size: 13px;
    color: #4b5563;
    margin-top: 8px;
    line-height: 1.4;
}

/* ——— Team-ToDos, Chat, Briefumschlag ——— */
.ez2-stat__value--with-envelope {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ez2-stat-envelope {
    font-size: 1.15em;
    line-height: 1;
}

.ez2-stat--crew-chat.ez2-stat--has-unread .ez2-stat-envelope {
    animation: ez2-envelope-blink 0.9s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(199, 15, 46, 0.55));
}

@keyframes ez2-envelope-blink {
    0%,
    100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.35;
        transform: translateY(1px);
    }
}

.ez2-mission-card__envelope {
    font-size: 16px;
    margin-left: 4px;
    line-height: 1;
    animation: ez2-envelope-blink 0.9s ease-in-out infinite;
}

.ez2-pws-chat {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
}

.ez2-pws-chat-log {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fafafa;
    padding: 12px;
    max-height: 360px;
    overflow-y: auto;
    font-size: 14px;
}

.ez2-pws-chat-msg {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    line-height: 1.35;
}

.ez2-pws-chat-msg--ez {
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.ez2-pws-chat-msg--crew {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.ez2-pws-chat-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
}

.ez2-pws-chat-meta__line {
    flex: 1 1 auto;
    min-width: 0;
}

.ez2-pws-chat-read-receipt {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: #4b5563;
    opacity: 0.92;
}

.ez2-pws-chat-read-receipt__icon {
    width: 1.1em;
    height: 1.1em;
    vertical-align: middle;
}

.ez2-pws-chat-compose {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ez2-pws-chat-compose__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ez2-pws-chat-compose textarea {
    font: inherit;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    min-height: 72px;
    resize: vertical;
}

.ez2-pws-list-view:has(.ez2-team-todos-panel) {
    padding: 0;
}

.ez2-team-todos-panel {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px 14px 14px;
    box-sizing: border-box;
}

.ez2-team-todos-panel__composer {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ez2-team-todos-panel__composer .ez2-pws-form-hint {
    margin: 0;
}

.ez2-team-todos-panel__h {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.ez2-team-todos-panel__composer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 2px;
}

.ez2-team-todos-panel__list-section {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: 12px;
    gap: 10px;
    overflow: hidden;
}

.ez2-team-todos-panel__list-heading {
    flex: 0 0 auto;
}

.ez2-team-todos-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    list-style: none;
    margin: 0;
    padding: 0 4px 8px 0;
}

.ez2-team-todos-panel .pd-leg-feld {
    margin-bottom: 0;
}

.ez2-team-todos-list li {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #fff;
}

.ez2-team-todos-list li:last-child {
    margin-bottom: 0;
}

.ez2-team-todos-li-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 8px;
}

.ez2-team-todos-li-title {
    flex: 1 1 12rem;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
}

.ez2-team-todos-li-body {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.45;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
}

.ez2-team-todos-li-meta {
    margin: 0 0 4px;
}

.ez2-team-todos-badge {
    flex: 0 0 auto;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.ez2-todo-li-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.ez2-todo-inline-history {
    list-style: none;
    margin: 10px 0 0;
    padding: 8px 0 0;
    border-top: 1px solid #eef2f7;
    font-size: 12px;
    color: #4b5563;
}

.ez2-todo-inline-history li {
    margin-bottom: 6px;
}

.ez2-todo-h-meta {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 2px;
}

.ez2-todo-edit-dlg {
    max-width: min(96vw, 520px);
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.ez2-todo-edit-dlg::backdrop {
    background: rgba(15, 23, 42, 0.45);
}

.ez2-todo-edit-dlg-inner {
    padding: 20px 22px;
    max-height: 85vh;
    overflow: auto;
}

.ez2-todo-edit-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.ez2-todo-edit-history {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow: auto;
}

.ez2-todo-edit-history li {
    border-bottom: 1px solid #f3f4f6;
    padding: 8px 0;
    font-size: 13px;
}

/* ——— Logistik (Rail Flugzeug) ——— */
.ez2-logistics-workspace {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 1100;
    flex-direction: column;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    padding: 12px 14px 16px;
    box-sizing: border-box;
    overflow: hidden;
    gap: 10px;
    /* Luftfahrzeug: Spalte ✥ + Spalte (Wartung, Kennzeichen) + ✈ — genug Luft für Unterblock */
    --ez2-log-week-gutter: 188px;
}

.ez2-logistics-workspace.is-visible {
    display: flex;
}

.ez2-logistics-head {
    flex: 0 0 auto;
}

.ez2-logistics-head__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 12px;
}

.ez2-logistics-fs-btn {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, 0.85);
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.ez2-logistics-fs-btn:hover {
    border-color: #c00;
    color: #b91c1c;
}

.ez2-logistics-fs-btn[aria-pressed="true"] {
    border-color: #991b1b;
    background: #fef2f2;
    color: #991b1b;
}

.ez2-logistics-workspace:fullscreen {
    overflow: auto;
    padding: 14px 16px 18px;
    gap: 12px;
    z-index: 1200;
}

.ez2-logistics-workspace:-webkit-full-screen {
    overflow: auto;
    padding: 14px 16px 18px;
    gap: 12px;
    z-index: 1200;
}

.ez2-logistics-title {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.ez2-logistics-sub {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #475569;
    max-width: 960px;
}

.ez2-logistics-columns {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(90px, 0.22fr) minmax(280px, 1fr);
    gap: 10px;
    align-items: stretch;
}

@media (max-width: 1100px) {
    .ez2-logistics-columns {
        grid-template-columns: 1fr;
        overflow: auto;
    }
}

.ez2-logistics-col {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    padding: 10px 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.ez2-logistics-col--aircraft {
    overflow: hidden;
}

.ez2-logistics-col--faelle {
    opacity: 0.92;
    background: #fafbfc;
    box-shadow: none;
    border-style: dashed;
    padding: 8px 10px;
}

.ez2-logistics-col--side {
    min-width: 0;
}

.ez2-logistics-h3--subtle {
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
    color: #64748b;
}

.ez2-logistics-hint--subtle {
    font-size: 10px;
    line-height: 1.35;
    color: #94a3b8;
}

.ez2-logistics-col--faelle .ez2-logistics-pool {
    min-height: 44px;
    max-height: min(38vh, 300px);
}

.ez2-logistics-h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #334155;
}

.ez2-logistics-h4 {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.ez2-logistics-hint {
    margin: 0;
    font-size: 11px;
    color: #94a3b8;
}

.ez2-logistics-pool {
    flex: 1 1 auto;
    min-height: 80px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ez2-logistics-pool--crew {
    min-height: 44px;
    max-height: 220px;
    font-size: 11px;
}

.ez2-logistics-crew-buckets {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
}

.ez2-logistics-qual-bucket {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 10px;
    padding: 6px 8px 8px;
    background: #fafbfc;
}

.ez2-logistics-qual-h {
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.ez2-logistics-commercial-foot {
    flex: 0 0 auto;
    align-self: stretch;
    margin-top: 6px;
    padding: 10px 6px 4px;
    text-align: center;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.6);
    border-radius: 0 0 8px 8px;
}

.ez2-btn-add-commercial {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px dashed #94a3b8;
    background: #fff;
    color: #334155;
    cursor: pointer;
    width: 100%;
    max-width: 280px;
}

.ez2-btn-add-commercial:hover {
    background: #f1f5f9;
    border-color: #64748b;
}

/* Mittelspalte Logistik: ein Scrollbereich unter der KW-Leiste; oben klebt die Crew-Woche */
.ez2-logistics-aircraft-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    scrollbar-gutter: stable;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-right: 2px;
}

.ez2-logistics-week-crew-strip-wrap {
    position: sticky;
    top: 0;
    z-index: 25;
    flex: 0 0 auto;
    margin: 0 0 6px;
    padding: 8px 8px 10px;
    background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 96%, #eef2f7 100%);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ez2-logistics-week-strip-heading {
    margin: 0 0 8px calc(var(--ez2-log-week-gutter) + 10px);
    padding-right: 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    color: #64748b;
}

.ez2-logistics-week-crew-strip {
    min-height: 36px;
}

.ez2-logistics-week-strip-align {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.ez2-logistics-week-strip-spacer {
    flex: 0 0 var(--ez2-log-week-gutter);
    min-width: var(--ez2-log-week-gutter);
    pointer-events: none;
}

.ez2-logistics-week-strip-scroll-inner {
    flex: 1 1 auto;
    min-width: 0;
}

.ez2-logistics-week-strip-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.ez2-logistics-week-strip-dow {
    min-width: 0;
    border-radius: 8px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    padding: 4px 5px 6px;
    background: #fff;
}

.ez2-logistics-week-strip-dow__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.ez2-dow__crewline-label {
    display: block;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
    margin: 4px 0 3px;
}

.ez2-logistics-week-strip-cell {
    min-height: 28px;
    border-radius: 6px;
    padding: 3px;
    border: 1px dashed rgba(203, 213, 225, 0.95);
    font-size: 10px;
    line-height: 1.3;
    background: rgba(249, 250, 251, 0.6);
}

.ez2-logistics-week-strip-cell--arzt,
.ez2-logistics-week-strip-cell--med {
    border-color: rgba(203, 213, 225, 0.95);
    background: rgba(249, 250, 251, 0.65);
}

.ez2-logistics-crew-strip-item {
    margin-bottom: 4px;
}

.ez2-logistics-crew-strip-item:last-child {
    margin-bottom: 0;
}

.ez2-logistics-crew-strip-item .ez2-logistics-chip--crew--strip {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 10px;
    padding: 3px 4px;
    line-height: 1.25;
}

.ez2-strip-empty {
    color: #cbd5e1;
    font-size: 11px;
    padding: 2px;
    display: inline-block;
}

.ez2-logistics-week-toolbar {
    flex: 0 0 auto;
    margin-bottom: 4px;
}

.ez2-logistics-week-toolbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 6px 8px;
    background: #f1f5f9;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.ez2-logistics-week-hint {
    margin: 4px 0 0;
    font-size: 10px;
    line-height: 1.35;
    color: #94a3b8;
    text-align: center;
}

.ez2-logistics-week-label {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    min-width: 120px;
    text-align: center;
}

.ez2-logistics-week-nav {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #334155;
    padding: 0;
}

.ez2-logistics-week-nav:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.ez2-logistics-week-today {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #94a3b8;
    background: #fff;
    color: #475569;
    cursor: pointer;
}

.ez2-logistics-week-today:hover {
    background: #e2e8f0;
}

.ez2-logistics-aircraft-grid {
    flex: 0 0 auto;
    min-height: 120px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-content: start;
    padding: 2px 0 8px;
}

.ez2-logistics-aircard {
    border-radius: 12px;
    background: linear-gradient(145deg, #fff 0%, #f1f5f9 100%);
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 8px 8px 8px 10px;
    min-height: 150px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.ez2-logistics-aircard__head {
    flex: 0 0 var(--ez2-log-week-gutter);
    width: var(--ez2-log-week-gutter);
    min-width: var(--ez2-log-week-gutter);
    max-width: var(--ez2-log-week-gutter);
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
    overflow: visible;
}

.ez2-logistics-aircard__head-leading {
    flex: 0 0 auto;
}

.ez2-logistics-aircard__head-wart-column {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
}

.ez2-logistics-aircard__head-wart-column .ez2-logistics-air-maint {
    align-self: flex-start;
}

.ez2-logistics-aircard__reg-under-maint {
    min-width: 0;
}

.ez2-logistics-aircard__reg-under-maint .ez2-logistics-aircard__sub,
.ez2-logistics-aircard__reg-under-maint .ez2-logistics-aircard__blurb {
    max-width: 100%;
}

.ez2-logistics-aircard--commercial {
    border-style: dashed;
    background: linear-gradient(145deg, #fffef8 0%, #f8fafc 100%);
}

.ez2-logistics-aircard--commercial .ez2-logistics-aircard__name {
    color: #475569;
}

.ez2-logistics-aircard.is-drop-target,
.ez2-logistics-aircard.ez2-drag-over {
    border-color: #c00;
    box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.2);
}

.ez2-logistics-aircard__head .ez2-logistics-aircard__icon {
    flex: 0 0 auto;
    width: 36px;
    text-align: center;
    font-size: 24px;
    line-height: 1;
    margin-bottom: 0;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.08));
}

.ez2-logistics-aircard__name {
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    color: #0f172a;
    margin-bottom: 2px;
    letter-spacing: 0.02em;
}

.ez2-logistics-aircard__sub {
    font-size: 10px;
    font-weight: 600;
    text-align: left;
    color: #334155;
    margin-bottom: 2px;
    line-height: 1.2;
}

.ez2-logistics-aircard__blurb {
    font-size: 9px;
    line-height: 1.3;
    color: #64748b;
    text-align: left;
    margin-bottom: 0;
    min-height: 0;
}

.ez2-logistics-aircard__week {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
}

.ez2-logistics-aircard__week .ez2-logistics-weekstrip {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

/* Dropdown Crew-Picker */
.ez2-logistics-crew-dropdown {
    position: fixed;
    z-index: 12050;
    min-width: 200px;
    max-width: min(320px, calc(100vw - 24px));
    max-height: min(380px, 70vh);
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.85);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    padding: 6px 0;
    box-sizing: border-box;
}

.ez2-logistics-crew-dd__ttl {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    padding: 6px 10px 2px;
    margin: 0;
}

.ez2-logistics-crew-dd__btn {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    padding: 6px 10px;
    color: #0f172a;
    line-height: 1.3;
}

.ez2-logistics-crew-dd__btn:hover,
.ez2-logistics-crew-dd__btn:focus-visible {
    background: rgba(241, 245, 249, 0.95);
    outline: none;
}

.ez2-logistics-crew-dd__empty {
    font-size: 10px;
    color: #94a3b8;
    padding: 6px 10px;
    margin: 0;
}

.ez2-dow__slot-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 2px;
    width: 100%;
    flex-grow: 1;
}

.ez2-dow__slot--crew .ez2-logistics-chip:last-child {
    margin-bottom: 0;
}

.ez2-dow__slot-head {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2px;
    margin-bottom: 1px;
    min-height: 14px;
}

.ez2-logistics-weekstrip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.ez2-logistics-dow {
    min-width: 0;
    border-radius: 8px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: #fff;
    padding: 4px 2px 5px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;
    text-align: center;
    line-height: 1.2;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.ez2-dow__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    margin-bottom: 1px;
}

.ez2-dow__slot {
    flex: 0 0 auto;
    min-height: 32px;
    max-height: 80px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    background: rgba(248, 250, 252, 0.85);
    padding: 2px 3px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.ez2-dow__slot.ez2-dow__slot--crew {
    max-height: 120px;
    min-height: 38px;
    cursor: pointer;
}

.ez2-dow__slot--crew .ez2-logistics-chip {
    cursor: grab;
}

.ez2-dow__slot.ez2-drop-target {
    border-color: #c00;
    background: #fff1f2;
}

.ez2-dow__placeholder {
    font-size: 9px;
    color: #64748b;
    line-height: 1.25;
}

.ez2-dow__placeholder--hint {
    display: block;
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    text-align: center;
    padding: 8px 2px;
    line-height: 1.3;
    opacity: 0.92;
}

.ez2-strip-empty.ez2-dow__placeholder--hint {
    padding: 10px 2px;
}

.ez2-logistics-slot-tags {
    display: none;
}

.ez2-logistics-slot-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.15;
    padding: 3px 5px;
    border-radius: 5px;
    background: rgba(219, 234, 254, 0.95);
    color: #1e3a8a;
    border: 1px solid rgba(147, 197, 253, 0.75);
}

.ez2-logistics-crew-pool-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-bottom: 6px;
}

.ez2-dow__crewline-label {
    display: block;
    font-size: 7px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    text-align: left;
    margin: 4px 0 1px;
    padding-left: 1px;
}

.ez2-dow__slot.ez2-dow__slot--crew-arzt {
    min-height: 38px;
    max-height: 120px;
    border-style: dashed;
    border-color: rgba(30, 64, 175, 0.35);
}

.ez2-dow__slot.ez2-dow__slot--crew-med {
    min-height: 38px;
    max-height: 120px;
    border-style: dashed;
    border-color: rgba(22, 101, 52, 0.35);
}

.ez2-logistics-dow--busy {
    background: #fee2e2;
    border-color: #f87171;
    color: #7f1d1d;
}

/* Mehrtägiger Einsatz in der Wochenansicht: zusätzliche Markierung */
.ez2-logistics-dow--multiday.ez2-logistics-dow--busy {
    box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.45);
}

.ez2-logistics-dow__name {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.ez2-logistics-dow--busy .ez2-logistics-dow__name {
    color: #991b1b;
}

.ez2-logistics-dow__date {
    font-size: 10px;
    font-weight: 600;
    color: #334155;
}

.ez2-logistics-dow--busy .ez2-logistics-dow__date {
    color: #7f1d1d;
}

.ez2-logistics-dow__mark {
    font-size: 8px;
    line-height: 1;
    color: #dc2626;
}

.ez2-logistics-air-drag {
    flex: 0 0 auto;
    width: 22px;
    min-height: 28px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    line-height: 1;
    cursor: grab;
    opacity: 0.85;
    border-radius: 6px;
}

.ez2-logistics-air-drag:hover {
    background: rgba(226, 232, 240, 0.9);
    color: #0f172a;
}

.ez2-logistics-air-drag:active {
    cursor: grabbing;
}

.ez2-logistics-air-maint {
    flex: 0 0 auto;
    width: auto;
    align-self: flex-start;
    padding: 4px 6px;
    margin: 0 2px;
    border: 1px solid rgba(148, 163, 184, 0.65);
    background: rgba(248, 250, 252, 0.95);
    color: #334155;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.15;
    cursor: pointer;
    border-radius: 6px;
}

.ez2-logistics-air-maint:hover {
    border-color: #f59e0b;
    background: rgba(254, 243, 199, 0.45);
}

.ez2-logistics-air-maint[aria-pressed="true"] {
    border-color: #d97706;
    background: rgba(251, 191, 36, 0.3);
    color: #92400e;
}

.ez2-logistics-aircard--maintenance {
    border-style: dashed;
    border-color: rgba(217, 119, 6, 0.7);
}

/* Wochenstreifen bleibt klickbar (Planungsmodus, einzelne Wartungstage). Nur dezentes Dimmen. */
.ez2-logistics-aircard--maintenance .ez2-logistics-aircard__week {
    opacity: 0.94;
}

/* Einzel-Kalendertag Wartung (Splash) — „cool“ ohne Fall/Besatzung */
.ez2-logistics-dow--maintenance-day {
    background: linear-gradient(160deg, #fffbeb 0%, #fde68a 38%, #f59e0b 120%);
    border-color: rgba(180, 83, 9, 0.75);
    color: #78350f;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 1px 4px rgba(217, 119, 6, 0.25);
    position: relative;
    min-height: 62px;
    justify-content: center;
}

.ez2-logistics-dow--maintenance-day .ez2-dow__head {
    flex-shrink: 0;
    margin-bottom: 2px;
}

.ez2-logistics-dow--maintenance-day .ez2-logistics-dow__name {
    color: #92400e;
}

.ez2-logistics-dow--maintenance-day .ez2-logistics-dow__date {
    color: #78350f;
    font-weight: 700;
}

.ez2-logistics-maint-splash {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin: 1px 0 0;
    border-radius: 6px;
    border: 1px solid rgba(180, 83, 9, 0.45);
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.95) 0%, rgba(254, 215, 170, 0.55) 100%);
}

.ez2-logistics-maint-splash__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 2px;
}

.ez2-logistics-maint-splash__word {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b45309;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ez2-logistics-maint-splash__sub {
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(120, 53, 15, 0.85);
}

.ez2-logistics-dow--maint-pick-target:not(.ez2-logistics-dow--maintenance-day) {
    cursor: pointer;
    outline: 1px dashed rgba(245, 158, 11, 0.55);
    outline-offset: 0;
}

.ez2-logistics-dow--maint-pick-target.ez2-logistics-dow--maintenance-day {
    cursor: pointer;
    outline: 1px dashed rgba(180, 83, 9, 0.6);
    outline-offset: 0;
}

.ez2-logistics-aircard__head .ez2-logistics-air-drag,
.ez2-logistics-aircard__head .ez2-logistics-air-maint {
    pointer-events: auto;
}

.ez2-logistics-chip__txt {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ez2-logistics-chip-remove {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    padding: 0;
    margin: -2px -2px -2px 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.ez2-logistics-chip-remove:hover {
    background: rgba(248, 113, 113, 0.25);
    color: #991b1b;
}

.ez2-logistics-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 6px;
    background: #e2e8f0;
    color: #0f172a;
    cursor: grab;
    user-select: none;
    border: 0;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.ez2-logistics-chip--case {
    background: #dbeafe;
    color: #1e3a8a;
    border: 1px solid #93c5fd;
}

.ez2-logistics-chip--crew {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.ez2-logistics-window-info {
    font-size: 12px;
    line-height: 1.4;
    color: #0f172a;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 10px;
    min-height: 36px;
}

/* HTML5-DnD: sichtbares Drag-Bild (Pool + Crew-Qual., nicht nur bei Kalender-internem Ziehen) */
.ez2-logistics-drag-ghost .ez2-logistics-chip {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
    opacity: 0.95;
}

/* Handover-Phase MEZ (orphan archives, Protokolle-Verweis) */
.ez2-handover-subh {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 8px 0 6px;
}
.ez2-handover-orphans {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}
.ez2-handover-orphans li {
    margin: 4px 0;
}
button.ez2-handover-archive-link {
    cursor: pointer;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
    width: 100%;
    text-align: left;
}
button.ez2-handover-archive-link:hover {
    background: #f3f4f6;
}
.ez2-handover-muted {
    font-size: 12px;
    color: #6b7280;
}

/* Routen-Flugzeit-Dialog (Status-Verlauf) */
.ez2-pws-flight-route-dialog {
    border: none;
    border-radius: 12px;
    padding: 0;
    max-width: min(420px, 96vw);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.25);
}
.ez2-pws-flight-route-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
}
.ez2-pws-flight-route-dialog__form {
    padding: 16px 18px 14px;
}
.ez2-pws-flight-route-dialog__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
}
.ez2-pws-flight-route-dialog__lead {
    margin: 0 0 12px;
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
}
.ez2-pws-flight-route-dialog__field {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    color: #334155;
}
.ez2-pws-flight-route-dialog__field input {
    display: block;
    width: 100%;
    margin-top: 4px;
    box-sizing: border-box;
    font: inherit;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}
.ez2-pws-flight-route-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 14px;
}
