.bma-alarm-chip-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.bma-alarm-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #3a5275;
  background: #20354f;
  color: #d8e3f3;
  cursor: pointer;
  text-align: left;
}

.bma-alarm-chip strong {
  font-size: 0.9rem;
  line-height: 1.1;
}

.bma-alarm-chip span {
  font-size: 0.82rem;
  color: #a7bdd8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bma-alarm-chip.active {
  border-color: #ff9800;
  background: #344b68;
  box-shadow: 0 0 0 1px rgba(255, 152, 0, 0.45) inset;
}
:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface2: #243044;
  --border: #2d3a4f;
  --text: #e8edf5;
  --muted: #8b9bb4;
  --accent: #e63946;
  --accent-hover: #ff4d5a;
  --ok: #2ecc71;
  --warn: #f39c12;
  --radius: 10px;
  --font: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); }

.hidden { display: none !important; }

.api-connection-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 0.65rem 1rem;
  background: #7a1f1f;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: center;
  border-bottom: 2px solid #e63946;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.api-banner-restart-btn {
  background: #fff;
  color: #7a1f1f;
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.api-banner-restart-btn:hover {
  background: #ffe8e8;
}

.view-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 12rem;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.view-state.view-error p {
  color: var(--text);
  margin: 0;
}

.view-error-text {
  color: var(--accent);
}

.inline-spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: view-spin 0.8s linear infinite;
}

.vehicle-footer-loading,
.vehicle-footer-error {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.vehicle-footer-error {
  color: var(--accent);
}

@keyframes view-spin {
  to { transform: rotate(360deg); }
}

body.has-api-banner .app-banner {
  margin-top: 2.75rem;
}

body.has-api-banner .api-connection-banner ~ .app-banner {
  margin-top: 0;
}

body:has(.api-connection-banner:not(.hidden)) .app-banner {
  margin-top: 2.75rem;
}

/* Login */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1rem;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.login-card .logo {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto 1.25rem;
}

.app-header .brand {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.app-header .brand img {
  display: block;
  height: 18px;
  width: auto;
  max-height: 18px;
  object-fit: contain;
  margin: 0;
  flex-shrink: 0;
}

.logo-inline {
  display: block;
  height: 18px;
  width: auto;
  max-height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-sm {
  width: 36px;
  margin: 0;
}

.login-card p.sub {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-vehicle-step {
  text-align: left;
}

.login-vehicle-heading {
  margin-bottom: 0.5rem !important;
  font-weight: 700;
  color: var(--text);
}

.login-vehicle-hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.login-vehicle-list {
  display: grid;
  gap: 0.65rem;
  max-height: min(58vh, 480px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.login-vehicle-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.login-vehicle-btn:hover,
.login-vehicle-btn:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
}

.login-vehicle-loading {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

body.login-vehicle-pick {
  overflow: hidden;
}

body.login-vehicle-pick .login-page {
  align-items: stretch;
  overflow: hidden;
  height: 100dvh;
  padding: 1rem;
  box-sizing: border-box;
}

body.login-vehicle-pick .login-card {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow: hidden;
}

body.login-vehicle-pick .login-vehicle-step {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

body.login-vehicle-pick .login-vehicle-list {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

input, select, textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface2);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

textarea { min-height: 80px; resize: vertical; }

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover, .btn:hover { background: var(--accent-hover); }
button.secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
button.secondary:hover { background: var(--border); }
button.block { width: 100%; }

.error-msg {
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid var(--accent);
  color: #ffb4bc;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* App banner – eine Zeile */
.app-banner {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: nowrap;
  min-height: 3rem;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 1;
}

.banner-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.app-banner .brand {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.app-banner .brand img,
.app-banner .logo-inline {
  display: block;
  height: 26px;
  width: auto;
  max-height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.banner-datetime {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  white-space: nowrap;
  padding-right: 1rem;
  margin-right: 0.25rem;
  border-right: 1px solid var(--border);
}

.banner-user-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.banner-auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.banner-auth-actions #logout-btn {
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
}

.feedback-help-btn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
}

.feedback-modal-panel {
  max-width: 520px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.feedback-field > span {
  color: var(--muted);
  font-weight: 600;
}

.feedback-field select,
.feedback-field textarea {
  width: 100%;
}

.feedback-hint {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.feedback-file-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--text);
}

.feedback-file-list li {
  padding: 0.2rem 0;
}

.feedback-file-size {
  color: var(--muted);
}

.feedback-error {
  margin: 0;
  color: #ffb0b0;
  font-size: 0.85rem;
}

.banner-right .btn-shutdown {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.shutdown-card .sub {
  margin-bottom: 1.25rem;
}

.banner-time {
  font-size: 1.45rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1;
}

.banner-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1;
}

.app-banner .user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.app-banner .user-info #logout-btn {
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
}

nav.tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  overflow-x: auto;
}

nav.tabs button {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  white-space: nowrap;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  border-radius: 6px;
}

nav.tabs button.tab-einsatz.active,
nav.tabs button.tab-notruf.active {
  background: #c62828;
  color: #fff;
  border-color: rgba(255,255,255,0.12);
  font-weight: 700;
}

nav.tabs button.tab-einsatz:hover:not(.active),
nav.tabs button.tab-notruf:hover:not(.active) {
  background: rgba(198, 40, 40, 0.35);
  color: #ffcdd2;
}

nav.tabs button.tab-einsatz.active:hover,
nav.tabs button.tab-notruf.active:hover {
  background: #d32f2f;
}

nav.tabs button.tab-bma.active {
  background: #e65100;
  color: #fff;
  border-color: rgba(255,255,255,0.12);
  font-weight: 700;
}

nav.tabs button.tab-bma:hover:not(.active) {
  background: rgba(230, 81, 0, 0.3);
  color: #ffe0b2;
}

nav.tabs button.tab-bma.active:hover {
  background: #ef6c00;
}

nav.tabs button.tab-bma.tab-bma-alarm {
  animation: tab-bma-blink 0.9s ease-in-out infinite;
  background: #c62828 !important;
  color: #fff !important;
  border-color: #ffcdd2;
  box-shadow: 0 0 12px rgba(198, 40, 40, 0.55);
}

nav.tabs button.tab-bma.tab-bma-stoerung {
  animation: tab-bma-stoerung-blink 0.55s ease-in-out infinite;
  background: #f9a825 !important;
  color: #3e2723 !important;
  border-color: #ffeb3b;
  box-shadow: 0 0 12px rgba(255, 235, 59, 0.55);
}

nav.tabs button.tab-bma.tab-bma-generic {
  animation: tab-bma-generic-blink 0.6s ease-in-out infinite;
  background: #1565c0 !important;
  color: #fff !important;
  border-color: #64b5f6;
  box-shadow: 0 0 12px rgba(25, 118, 210, 0.55);
}

@keyframes tab-bma-generic-blink {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.72; filter: brightness(1.1); }
}

@keyframes tab-bma-stoerung-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes tab-bma-blink {
  0%, 100% { background: #c62828; color: #fff; }
  50% { background: #ffcdd2; color: #3e2723; }
}

nav.tabs button.tab-berichte.active {
  background: #3d5a40;
  border-color: #5a8a5e;
  color: #e8f5e9;
  font-weight: 700;
}

nav.tabs button.tab-berichte:hover:not(.active) {
  background: rgba(61, 90, 64, 0.45);
  color: #c8e6c9;
}

nav.tabs button.tab-berichte.active:hover {
  background: #466b4a;
}

nav.tabs button.tab-tagebuch.active {
  background: #2d5a8a;
  border-color: #4a8fd4;
  color: #e3f2fd;
  font-weight: 700;
}

nav.tabs button.tab-tagebuch:hover:not(.active) {
  background: rgba(45, 90, 138, 0.45);
  color: #bbdefb;
}

nav.tabs button.tab-tagebuch.active:hover {
  background: #35699d;
}

nav.tabs button.tab-bordstreifen.active {
  background: #37474f;
  border-color: #546e7a;
  color: #eceff1;
  font-weight: 700;
}

nav.tabs button.tab-bordstreifen:hover:not(.active) {
  background: rgba(55, 71, 79, 0.55);
  color: #cfd8dc;
}

nav.tabs button.tab-bordstreifen.active:hover {
  background: #455a64;
}

nav.tabs button.tab-archiv.active {
  background: #37474f;
  border-color: #546e7a;
  color: #eceff1;
  font-weight: 700;
}

nav.tabs button.tab-archiv:hover:not(.active) {
  background: rgba(55, 71, 79, 0.55);
  color: #cfd8dc;
}

nav.tabs button.tab-archiv.active:hover {
  background: #455a64;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface2);
}

.btn-link:hover { color: var(--text); background: var(--border); }

.notruf-collapse-btn {
  flex: 0 0 22px;
  width: 22px;
  min-width: 22px;
  border: none;
  border-right: 1px solid #2a3f5c;
  background: #1e2f47;
  color: #9fb0c8;
  cursor: pointer;
  padding: 0;
  font-size: 0.65rem;
  z-index: 2;
}

.notruf-collapse-btn:hover {
  background: #2a3f5c;
  color: #fff;
}

.split-main.notruf-collapsed .notruf-column {
  flex: 0 0 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  overflow: hidden;
  border-right: none;
  opacity: 0;
  pointer-events: none;
}

.split-main.notruf-collapsed .notruf-collapse-btn {
  border-left: 1px solid #2a3f5c;
}

.workspace-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.workspace-panel {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.workspace-panel.hidden {
  display: none !important;
}

/* Legacy header alias */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.app-header .user-info { color: var(--muted); font-size: 0.85rem; }

main.app-main {
  padding: 0;
  max-width: none;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  display: flex;
}

.split-main.berichte-tab-active .notruf-column,
.split-main.berichte-tab-active .notruf-collapse-btn,
.split-main.archiv-tab-active .notruf-column,
.split-main.archiv-tab-active .notruf-collapse-btn,
.split-main.tagebuch-tab-active .notruf-column,
.split-main.tagebuch-tab-active .notruf-collapse-btn,
.split-main.bma-tab-active .notruf-column,
.split-main.bma-tab-active .notruf-collapse-btn {
  display: none !important;
}

.split-main.berichte-tab-active .einsatz-column,
.split-main.archiv-tab-active .einsatz-column,
.split-main.tagebuch-tab-active .einsatz-column,
.split-main.bma-tab-active .einsatz-column {
  flex: 1 1 100%;
  max-width: 100%;
}

.split-main.berichte-tab-active #berichte-module-host:not(.hidden),
.split-main:not(.berichte-tab-active):not(.tagebuch-tab-active):not(.bma-tab-active) #einsatz-view-host:not(.hidden) {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  flex: 1 1 100%;
}

.split-main.archiv-tab-active #archiv-module-host:not(.hidden),
.split-main.tagebuch-tab-active #tagebuch-module-host:not(.hidden) {
  display: flex !important;
  flex-direction: column;
  min-height: min(480px, 55vh);
  overflow: hidden;
  flex: 1 1 100%;
  width: 100%;
}

.split-main.bma-tab-active #bma-module-host:not(.hidden) {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  flex: 1 1 100%;
}

.split-main.berichte-tab-active #archiv-module-host,
.split-main.archiv-tab-active #berichte-module-host,
.split-main.tagebuch-tab-active #berichte-module-host,
.split-main.tagebuch-tab-active #archiv-module-host,
.split-main.berichte-tab-active #tagebuch-module-host,
.split-main.archiv-tab-active #tagebuch-module-host {
  display: none !important;
}

.notruf-column.hidden {
  display: none !important;
}

.notruf-collapse-btn.hidden {
  display: none !important;
}

.notruf-column {
  flex: 0 0 16.666%;
  max-width: 16.666%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid #2a3f5c;
  background: #17263a;
}

/* Kein aktiver Einsatz – Notruf-Formular über die volle Arbeitsfläche */
.split-main.notruf-fullscreen .notruf-column {
  flex: 1 1 100%;
  max-width: 100%;
  border-right: none;
  opacity: 1;
  pointer-events: auto;
  overflow: hidden;
}

.split-main.notruf-fullscreen .einsatz-column {
  flex: 0 0 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  border: none;
}

.split-main.notruf-fullscreen .notruf-collapse-btn {
  display: none !important;
}

.notruf-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.notruf-panel.hidden { display: none !important; }

.split-main.disposition-active .notruf-column {
  flex: 0 0 44%;
  max-width: 44%;
  opacity: 1;
  pointer-events: auto;
  overflow: hidden;
}

.split-main.disposition-active .einsatz-column {
  flex: 1;
  min-width: 0;
}

.split-main.nachalarm-active .notruf-column,
.split-main.notruf-side-active .notruf-column {
  flex: 0 0 52%;
  max-width: 52%;
  opacity: 1;
  pointer-events: auto;
  overflow: hidden;
}

.split-main.nachalarm-active .einsatz-column,
.split-main.notruf-side-active .einsatz-column {
  flex: 1;
  min-width: 280px;
  max-width: 48%;
}

.notruf-side-host,
.nachalarm-host {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notruf-side-host.hidden,
.nachalarm-host.hidden { display: none !important; }

.notruf-side-view,
.nachalarm-view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notruf-side-head h3,
.nachalarm-head h3 {
  margin: 0;
  color: #f0f4fa;
  font-size: 1.05rem;
}

.notruf-side-text,
.nachalarm-text {
  width: 100%;
  min-height: 88px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #2a3f5c;
  background: #0f1923;
  color: #e8eef5;
  resize: vertical;
  font-family: inherit;
}

.notruf-side-actions,
.nachalarm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.alarmstufe-level-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alarmstufe-level-box {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alarmstufe-level-label {
  font-size: 0.78rem;
  color: #8fa8c8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.alarmstufe-level-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 8px;
  border: 1px solid #2a3f5c;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.35rem;
}

.alarmstufe-rule-select {
  width: 100%;
  min-height: 52px;
  border-radius: 8px;
  border: 1px solid #2a3f5c;
  background: #0f1923;
  color: #e8eef5;
  font-weight: 700;
  padding: 8px 10px;
}

.alarmstufe-arrow {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #e8eef5;
  font-size: 1.1rem;
}

.alarmstufe-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-height: 160px;
}

.alarmstufe-pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #c5d4e8;
  max-height: 180px;
  overflow-y: auto;
}

.alarmstufe-card { min-height: 0; }

.einsatz-topbar .ev-alarm-action {
  opacity: 1;
  cursor: pointer;
}

.einsatz-topbar .ev-alarm-action:disabled {
  opacity: 1;
  cursor: pointer;
}

.nachalarm-head .module-hint { margin: 4px 0 0; }

.nachalarm-linked {
  margin: 0;
  color: #90caf9;
  font-weight: 600;
}

.nachalarm-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nachalarm-search-row input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #2a3f5c;
  background: #0f1923;
  color: #e8eef5;
}

.nachalarm-units {
  flex: 1;
  min-height: 180px;
  max-height: 42vh;
  overflow-y: auto;
  border: 1px solid #2a3f5c;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
  padding: 6px 4px;
}

.nachalarm-group-header {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 10px 4px;
  margin: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8fa8c8;
  cursor: pointer;
}

.nachalarm-group-header:hover {
  color: #b8cce8;
}

.nachalarm-unit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin: 2px 4px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  color: #e8eef5;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  user-select: none;
}

.nachalarm-unit-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nachalarm-unit-row.selected {
  background: #2e7d32;
  border-color: #1b5e20;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(129, 199, 132, 0.35);
}

.nachalarm-unit-row.selected:hover {
  background: #388e3c;
}

.na-tree-toggle {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.na-tree-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.na-tree-toggle.empty {
  visibility: hidden;
  pointer-events: none;
}

.nachalarm-unit-row.selected .na-tree-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.na-unit-label { flex: 1; min-width: 0; font-weight: 600; }

.na-unit-id {
  font-size: 0.78rem;
  color: #8fa8c8;
  font-family: inherit;
}

.nachalarm-unit-row.selected .na-unit-id {
  color: rgba(255, 255, 255, 0.88);
}

.nachalarm-label {
  font-size: 0.85rem;
  color: #b0bec5;
  margin: 0;
}

.nachalarm-text {
  width: 100%;
  min-height: 88px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #2a3f5c;
  background: #0f1923;
  color: #e8eef5;
  resize: vertical;
  font-family: inherit;
}

.notruf-side-toggle-row {
  margin-top: 0.5rem;
}

.nachalarm-checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.5rem;
}

.nachalarm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 0.5rem;
}

.nachalarm-actions .na-action-btn {
  width: 100%;
  min-height: 3rem;
  font-size: 1rem;
  font-weight: 800;
  justify-content: center;
}

#na-status.na-warn { color: #ffb74d; }

.disposition-host {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.disposition-host.hidden { display: none !important; }

.disposition-view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.disposition-head h3 {
  margin: 0;
  color: #f0f4fa;
  font-size: 1.05rem;
}

.disposition-head .module-hint { margin: 4px 0 0; }

.disposition-data-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.disp-data-row {
  display: grid;
  grid-template-columns: minmax(110px, 38%) 1fr;
  gap: 8px 12px;
  align-items: baseline;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

.disp-data-row:last-child { border-bottom: none; padding-bottom: 0; }

.disp-data-row dt {
  margin: 0;
  color: #8fa3bd;
  font-weight: 600;
}

.disp-data-row dd {
  margin: 0;
  color: #f0f4fa;
  font-weight: 700;
  word-break: break-word;
}

.disp-unit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  overflow-y: auto;
  flex: 1;
  min-height: 120px;
  padding: 2px;
}

.disp-unit-group-section {
  flex: 0 0 100%;
  width: 100%;
}

.disp-unit-group-section + .disp-unit-group-section {
  margin-top: 4px;
}

.disp-unit-group-header {
  padding: 6px 2px 4px;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8fa8c8;
}

.disp-unit-group-body {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.disp-unit-btn,
.disp-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #3a5275;
  background: #243652;
  color: #dce4f0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.disp-unit-btn:hover,
.disp-toggle-btn:hover {
  background: #2d4a6e;
  border-color: #4a6a9a;
}

.disp-unit-btn.active,
.disp-toggle-btn.active {
  background: #2e7d32;
  border-color: #1b5e20;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(129, 199, 132, 0.35);
}

.disp-unit-btn-disabled,
.disp-unit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: #5a3030;
  background: #3a2424;
  color: #c8a0a0;
}

.disp-unit-btn-disabled:hover,
.disp-unit-btn:disabled:hover {
  background: #3a2424;
  border-color: #5a3030;
}

.disposition-substitutions {
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 180, 80, 0.45);
  background: rgba(255, 160, 40, 0.12);
  color: #ffe0b0;
  font-size: 0.85rem;
}

.disposition-substitutions.hidden { display: none !important; }

.disposition-substitutions p { margin: 0; }
.disposition-substitutions p + p { margin-top: 4px; }

.disp-toggle-btn {
  min-width: 120px;
  flex-shrink: 0;
}

.empty-hint {
  width: 100%;
  margin: 0;
  font-style: italic;
}

.disposition-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.disposition-empfehlung {
  margin: 0;
  padding: 8px 10px;
  background: rgba(255, 111, 0, 0.12);
  border: 1px solid rgba(255, 152, 0, 0.35);
  border-radius: 8px;
  color: #ffcc80;
  font-size: 0.85rem;
  font-weight: 700;
}

.disposition-units-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
  min-height: 180px;
}

.disposition-units-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.disp-group-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
}

.disp-group-nav.hidden { display: none !important; }

.disp-group-tab {
  background: #1a2838;
  border: 1px solid #334d6e;
  color: #c8d4e4;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.disp-group-tab:hover {
  border-color: #4a8fd4;
  color: #fff;
}

.disp-group-tab.active {
  background: #2a527d;
  border-color: #4a8fd4;
  color: #fff;
}

.disp-unit-btn-recommended:not(.active):not(:disabled) {
  border-color: #ff9800;
  box-shadow: inset 0 0 0 1px rgba(255, 152, 0, 0.25);
}

/* Einsatz kompakt während Disposition */
.einsatz-compact .einsatz-center-col {
  display: none;
}

.einsatz-compact .einsatz-body {
  grid-template-columns: 1fr;
}

.einsatz-compact .einsatz-side-col {
  max-width: none;
}

.einsatz-view.preview-mode .einsatz-list-card,
.einsatz-view.preview-mode .einsatz-msgs-card {
  opacity: 0.55;
}

.preview-hint {
  font-style: italic;
  color: #8fa3bd !important;
}

@media (max-width: 1100px) {
  .split-main.disposition-active .notruf-column {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .disposition-units-row { grid-template-columns: 1fr; }
  .disposition-units-card { min-height: 160px; }
  .disp-data-row { grid-template-columns: 1fr; }
}

.notruf-column-inner {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
}

.einsatz-column {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #17263a;
  transition: background 0.25s ease;
}

/* Kein aktiver Einsatz – gesamte Seite weißlich / zurückgesetzt */
.einsatz-column.einsatz-idle-mode {
  background: #dfe3ea;
}

.einsatz-idle-mode .einsatz-view {
  color: #8f98a3;
}

.einsatz-idle-mode .einsatz-card {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.72);
}

.einsatz-idle-mode .einsatz-card-title,
.einsatz-idle-mode .einsatz-card-title-row .einsatz-card-title {
  color: #9aa3ad;
}

.einsatz-idle-mode .einsatz-info-grid input,
.einsatz-idle-mode .einsatz-info-grid select {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(190, 198, 208, 0.75);
  color: #98a2ae;
}

.einsatz-idle-mode .einsatz-list li {
  border-bottom-color: rgba(180, 190, 200, 0.4);
  color: #9aa3ad;
}

.einsatz-idle-mode .einsatz-list li.empty {
  color: #b0b8c2;
  font-style: italic;
}

.einsatz-idle-mode .module-hint {
  color: #a8b0ba;
}

.einsatz-idle-mode .einsatz-topbar .ev-alarm-action,
.einsatz-idle-mode .einsatz-topbar #ev-beenden-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.einsatz-idle-mode .einsatz-topbar {
  justify-content: center;
}

.ev-no-active-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #6e7884;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.einsatz-idle-mode .einsatz-msg-list {
  min-height: 80px;
}

.einsatz-idle-mode .einsatz-state-badge {
  opacity: 0.5;
}

.notruf-column .notruf-card {
  flex: 1;
  min-height: 0;
  margin: 0;
}

.notruf-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notruf-card-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notruf-card-head .icon-btn {
  background: #243652;
  border-color: #3a5275;
  color: #dce4f0;
  flex-shrink: 0;
}

.notruf-dispo-wrap {
  position: relative;
}

.notruf-dispo-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 40;
  min-width: 180px;
  background: #1a2a40;
  border: 1px solid #3a5275;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  padding: 4px;
}

.notruf-dispo-menu.hidden {
  display: none !important;
}

.notruf-dispo-menu button {
  text-align: left;
  background: transparent;
  border: none;
  color: #dce4f0;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.notruf-dispo-menu button:hover {
  background: #243652;
}

.notruf-form-host {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.notruf-column .notruf-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #2a3f5c;
  background: #17263a;
}

#notruf-panel .notruf-actions {
  flex-direction: row;
  align-items: stretch;
}

#notruf-panel .notruf-actions > button {
  width: auto;
  flex: 1 1 0;
}

.notruf-actions .btn-voralarm {
  white-space: normal;
  line-height: 1.3;
  text-align: center;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.panel h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.module-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.vehicle-grid {
  display: grid;
  gap: 0.75rem;
}

.vehicle-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.75rem;
  background: var(--surface2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.vehicle-card .meta { font-size: 0.85rem; color: var(--muted); }
.vehicle-card .status-badge {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--border);
}

.status-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.status-picker button {
  min-width: 2.2rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
}

.status-picker button.selected {
  background: var(--accent);
  border-color: var(--accent);
}

.einsatz-list { list-style: none; padding: 0; margin: 0; }
.einsatz-list li {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.einsatz-list li:hover { background: var(--surface2); }
.einsatz-list li:last-child { border-bottom: none; }

.protokoll-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  max-height: 320px;
  overflow-y: auto;
}

.protokoll-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.protokoll-list .time {
  color: var(--muted);
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .creator-split { grid-template-columns: 1fr; }
}

/* ── Notruf (einheitlich mit Einsatz-Panel) ── */
.notruf-panel { position: relative; }

.notruf-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
  min-height: 2rem;
}

.icon-btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  font-size: 1rem;
  line-height: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
}

.icon-btn:hover { background: var(--border); }

.admin-only.hidden { display: none !important; }

.notruf-form-box,
.notruf-form-host .notruf-form-inner {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.notruf-column .notruf-form-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  color: #f0f4fa;
}

.notruf-column .notruf-subtitle {
  margin: 0 0 0.75rem;
  color: #8fa3bd;
  font-size: 0.82rem;
}

.notruf-column .notruf-page-card {
  background: #152238;
  border: 1px solid #2a3f5c;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.notruf-column .notruf-page-badge {
  background: rgba(198, 40, 40, 0.2);
  border-color: rgba(198, 40, 40, 0.45);
  color: #ffcdd2;
}

.notruf-column .notruf-page-title { color: #f0f4fa; font-size: 0.92rem; }
.notruf-column .notruf-page-sub,
.notruf-column .notruf-page-hint { color: #8fa3bd; font-size: 0.78rem; }

.notruf-column .notruf-field-row label {
  color: #9fb0c8;
  font-size: 0.82rem;
  font-weight: 600;
}

.notruf-column .notruf-field-row input,
.notruf-column .notruf-field-row select,
.notruf-column .notruf-field-row textarea {
  background: #0f1a2b;
  border: 1px solid #2a3f5c;
  color: #e8ecf2;
  font-size: 0.85rem;
  padding: 6px 8px;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.notruf-column .notruf-field-row {
  margin-bottom: 0.65rem;
}

.notruf-ort-autocomplete-wrap {
  position: relative;
  width: 100%;
}

.notruf-ort-suggestions {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  max-height: 12rem;
  overflow-y: auto;
  background: #1a2638;
  border: 1px solid #3a5275;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.notruf-ort-suggestion {
  display: block;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: none;
  background: transparent;
  color: #dce4f0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.notruf-ort-suggestion:hover,
.notruf-ort-suggestion.active {
  background: #243652;
}

.notruf-column .notruf-radio-group { display: flex; flex-direction: column; gap: 0.3rem; }

.notruf-column .notruf-page-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.notruf-column .notruf-page-nav button {
  background: #243652;
  border-color: #3a5275;
  color: #dce4f0;
  font-size: 0.82rem;
  padding: 0.35rem 0.6rem;
}

.notruf-actions { margin-top: 0; }

.alarm-btn {
  background: #c62828 !important;
  font-size: 1.1rem;
  font-weight: 900;
  min-height: 3rem;
}

.alarm-btn:hover { background: #d32f2f !important; }

/* Modal / Creator */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.hidden { display: none !important; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 96vw);
  max-height: 92vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.creator-modal-panel {
  width: min(1720px, 98vw);
  height: 96vh;
  max-height: 96vh;
}

#creator-modal.modal {
  padding: 0.5rem;
  align-items: stretch;
}

#creator-modal .modal-body {
  padding: 1rem;
  min-height: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 { margin: 0; font-size: 1rem; }

.modal-body {
  overflow: auto;
  padding: 0.75rem;
  flex: 1;
}

.creator-split {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(480px, 1.35fr);
  gap: 1.25rem;
  min-height: 0;
  height: 100%;
}

.creator-config {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.creator-config .creator-section:last-of-type {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.creator-config #cr-fields {
  flex: 1;
  min-height: 280px;
}

.creator-preview {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.creator-preview .notruf-form-box {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
}

.creator-config label {
  display: block;
  margin-bottom: 0.65rem;
}

.creator-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.creator-row select { flex: 1; min-width: 120px; margin-bottom: 0; }

.creator-section { margin: 0.75rem 0; }

.creator-section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.creator-section select {
  width: 100%;
  margin-bottom: 0;
}

.creator-preview h4 { margin: 0 0 0.25rem; }

.creator-submodal {
  z-index: 1100;
}

.creator-submodal-panel {
  width: min(520px, 94vw);
  max-height: 88vh;
}

.creator-field-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.creator-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  font-size: 0.9rem;
}

.creator-form-row input,
.creator-form-row select,
.creator-form-row textarea {
  width: 100%;
  margin-bottom: 0;
}

.creator-check-row {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.creator-check-row input[type="checkbox"] {
  width: auto;
}

.creator-form-divider {
  height: 1px;
  background: var(--border);
  margin: 0.35rem 0;
}

.creator-form-section {
  margin: 0;
  font-size: 0.95rem;
}

.creator-form-hint {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
}

.creator-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.creator-field-list option {
  padding: 4px 0;
  white-space: normal;
}

.creator-dblclick-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
}

.creator-section .hidden { display: none !important; }

/* ── Einsatz-Ansicht (Desktop-Nähe) ── */
.einsatz-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 8px 10px;
  overflow: hidden;
  color: #e8ecf2;
  box-sizing: border-box;
}

.einsatz-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.einsatz-topbar-spacer { flex: 1; }

.einsatz-body {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.einsatz-center-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.einsatz-side-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.einsatz-list-card {
  flex: 0 0 34%;
  min-height: 0;
  max-height: 40%;
}

.einsatz-center-col .einsatz-msgs-card {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.einsatz-side-col .einsatz-card {
  flex-shrink: 0;
  min-height: 0;
}

.einsatz-side-col .einsatz-card:nth-child(2) {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.einsatz-list-compact {
  max-height: 140px;
  min-height: 60px;
}

.btn-voralarm {
  background: #f9a825 !important;
  color: #1a1200 !important;
  border: 1px solid #f57f17 !important;
  font-weight: 700;
}

.btn-voralarm:hover:not(:disabled) {
  background: #fbc02d !important;
  border-color: #ffa000 !important;
}

.btn-voralarm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.notruf-voralarm-small {
  min-width: auto;
  height: 2rem;
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.notruf-voralarm-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0 12px;
}

.notruf-voralarm-wrap .btn-voralarm {
  width: 100%;
}

.btn-rea {
  margin: 0 8px 6px;
  background: #1f6f8b !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  font-weight: 800;
  min-height: 44px;
}

.btn-rea:hover:not(:disabled) {
  background: #2786a8 !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
}

.btn-rea.hidden {
  display: none !important;
}

.rea-modal-panel {
  width: min(960px, 96vw);
  max-height: 92vh;
}

.rea-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.rea-modal-hint {
  margin: 0;
}

.rea-start-btn {
  background: #f4c542 !important;
  color: #101010 !important;
  font-weight: 900;
  font-size: 1.05rem;
  min-height: 48px;
  border: 1px solid #d4a82a !important;
}

.rea-start-btn:hover:not(:disabled) {
  background: #ffd95a !important;
}

.rea-modal-layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 14px;
  min-height: 280px;
}

.rea-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.rea-nav-item {
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}

.rea-nav-item:hover {
  background: rgba(255, 255, 255, 0.14);
}

.rea-nav-item.active {
  background: #c62828;
  color: #fff;
}

.rea-step-panel {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid #2a3f5c;
  border-radius: 14px;
  padding: 18px;
  min-height: 0;
}

.rea-step-title {
  margin: 0 0 14px;
  font-size: 1.5rem;
  font-weight: 900;
}

.rea-step-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rea-step-lines li {
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 720px) {
  .rea-modal-layout {
    grid-template-columns: 1fr;
  }
}

/* REA – Popup-Fenster (2. Monitor) */
.rea-popup-page {
  margin: 0;
  min-height: 100vh;
  background: #0b1420;
  color: #eef3f8;
  display: flex;
  flex-direction: column;
}

.rea-popup-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #2a3f5c;
  background: #101c2c;
}

.rea-popup-head h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.rea-popup-head-text {
  flex: 1;
  min-width: 0;
}

.rea-popup-head-text .module-hint {
  margin: 2px 0 0;
}

.rea-popup-head-actions {
  display: flex;
  gap: 8px;
}

.rea-popup-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px;
  min-height: 0;
}

.rea-popup-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.rea-popup-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px 18px;
  border-top: 1px solid #2a3f5c;
  background: #101c2c;
}

.rea-step-figure {
  margin: 0 0 16px;
  text-align: center;
}

.rea-step-image {
  max-width: 100%;
  max-height: min(42vh, 320px);
  width: auto;
  height: auto;
  border-radius: 14px;
  border: 1px solid #2a3f5c;
  background: #0f1a28;
}

.rea-creator-panel {
  width: min(760px, 96vw);
  max-height: 92vh;
}

.rea-creator-hint {
  margin-top: 0;
}

.rea-creator-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 52vh;
  overflow-y: auto;
  margin: 12px 0;
}

.rea-creator-step {
  border: 1px solid #2a3f5c;
  border-radius: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.15);
}

.rea-creator-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.rea-creator-step-actions {
  display: flex;
  gap: 6px;
}

@media (max-width: 820px) {
  .rea-popup-layout {
    grid-template-columns: 1fr;
  }

  .rea-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .rea-nav-item {
    flex: 1 1 calc(50% - 6px);
  }
}

.einsatz-topbar .btn-voralarm {
  min-width: 7rem;
}

.voralarm-confirm-panel .nachalarm-text {
  width: 100%;
  box-sizing: border-box;
}

.voralarm-confirm-units {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #2a3f5c;
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.85rem;
  line-height: 1.4;
  color: #dce4f0;
}

.voralarm-confirm-checks {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.ev-voralarm-pick-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ev-voralarm-pick-body .btn-voralarm {
  width: 100%;
}

.va-notruf-panel {
  width: min(520px, 96vw);
}

.va-notruf-form-data {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #2a3f5c;
  background: rgba(0, 0, 0, 0.15);
}

.va-notruf-data-row {
  margin: 0 0 6px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.va-notruf-data-row:last-child {
  margin-bottom: 0;
}

.va-notruf-data-label {
  display: inline-block;
  min-width: 5.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.va-notruf-secondary-row {
  margin: 0 0 14px;
}

.va-notruf-alarm-text {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #f57f17;
  background: rgba(249, 168, 37, 0.12);
  color: #ffe082;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.va-notruf-secondary-label {
  margin-bottom: 6px;
}

.va-voralarm-send-panel {
  width: min(560px, 96vw);
}

.va-voralarm-send-body {
  padding: 8px 20px 16px;
}

.va-voralarm-send-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f0f4fa;
}

.va-voralarm-send-hint {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}

.va-voralarm-send-card {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #2a3f5c;
  background: rgba(0, 0, 0, 0.22);
}

.va-voralarm-send-row {
  display: flex;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #e8edf5;
}

.va-voralarm-send-row:last-of-type {
  margin-bottom: 0;
}

.va-voralarm-send-label {
  flex: 0 0 auto;
  min-width: 5.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.va-voralarm-send-value {
  flex: 1 1 auto;
  font-weight: 800;
  color: #fff;
  word-break: break-word;
}

.va-voralarm-send-fr-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.va-fr-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: left;
}

.va-fr-check {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  flex-shrink: 0;
}

.va-fr-toggle.active {
  background: #2e7d32 !important;
  border-color: #43a047 !important;
  color: #fff !important;
}

.va-fr-toggle.active .va-fr-check {
  border-color: #fff;
  background: #fff;
  box-shadow: inset 0 0 0 3px #2e7d32;
}

.va-voralarm-send-footer {
  justify-content: flex-end;
  gap: 10px;
}

.va-service-toggle {
  min-width: 11rem;
}

.btn-danger {
  background: #c62828 !important;
  border-color: #b71c1c !important;
  color: #fff !important;
  font-weight: 800;
}

.btn-danger:hover:not(:disabled) { background: #d32f2f !important; }

.btn-danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.einsatz-upper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 180px;
}

.einsatz-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
  min-height: 280px;
}

.einsatz-lower-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.einsatz-card {
  background: #1e2f47;
  border: 1px solid #2a3f5c;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.einsatz-msgs-card { min-height: 0; }

.einsatz-card-title {
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: #f0f4fa;
  flex-shrink: 0;
}

.einsatz-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 80px;
}

.einsatz-center-col .einsatz-list {
  max-height: none;
}

.einsatz-list li {
  padding: 8px 10px;
  border-bottom: 1px solid #2a3f5c;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
}

.einsatz-list li:hover { background: rgba(255,255,255,0.04); }

.einsatz-list-item {
  position: relative;
  border-left: 4px solid transparent;
  padding-right: 72px;
}

.einsatz-list-item.einsatz-aktiv {
  border-left-color: #2e7d32;
}

.einsatz-list-item.einsatz-funk-frei {
  border-left-color: #f9a825;
}

.einsatz-list-item.einsatz-funk-frei .einsatz-state-badge {
  background: #f9a825;
  color: #111;
}

.einsatz-list-item.einsatz-funk-frei.selected {
  background: rgba(249, 168, 37, 0.18);
  border-left-color: #fbc02d;
}

.einsatz-list-item .ev-info-send-btn {
  position: absolute;
  top: 30px;
  right: 8px;
  font-size: 0.62rem;
  padding: 3px 7px;
  line-height: 1.2;
  max-width: 108px;
  white-space: normal;
  text-align: center;
}

.einsatz-list-item.einsatz-funk-frei,
.einsatz-list-item.einsatz-aktiv.einsatz-funk-frei {
  padding-bottom: 34px;
}

.bma-alarm-toast--meldung .bat-actions.bat-actions--multi {
  display: flex;
  gap: 8px;
}

.bma-alarm-toast--meldung .bat-actions.bat-actions--multi button {
  width: auto;
  flex: 1;
}

.bma-alarm-toast--meldung .bat-btn-secondary {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid #2e7d32;
  color: #1b5e20;
}

.bma-alarm-toast--meldung .bat-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.75);
}

.einsatz-list-item.einsatz-beendet {
  border-left-color: #c62828;
}

.einsatz-state-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  line-height: 1.3;
}

.einsatz-list-item.einsatz-aktiv .einsatz-state-badge {
  background: #2e7d32;
  color: #fff;
}

.einsatz-list-item.einsatz-beendet .einsatz-state-badge {
  background: #c62828;
  color: #fff;
}

.einsatz-list li.selected {
  border-left-width: 4px;
}

.einsatz-list-item.einsatz-aktiv.selected {
  background: rgba(46, 125, 50, 0.22);
  border-left-color: #43a047;
}

.einsatz-list-item.einsatz-beendet.selected {
  background: rgba(198, 40, 40, 0.25);
  border-left-color: #c62828;
}

.einsatz-list li:not(.einsatz-list-item).selected {
  background: rgba(198, 40, 40, 0.25);
  border-left: 3px solid #c62828;
}

.einsatz-list li.empty,
.einsatz-msg-list li.empty {
  cursor: default;
  color: #8fa3bd;
  font-style: italic;
}

.einsatz-list li span { color: #b8c5d8; }
.einsatz-list li small { color: #8fa3bd; font-size: 0.78rem; }

.einsatz-info-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  align-items: center;
  font-size: 0.88rem;
}

.einsatz-info-grid label { color: #9fb0c8; }
.einsatz-info-grid label.full { grid-column: 1 / -1; margin-top: 4px; }
.einsatz-info-grid .full { grid-column: 1 / -1; }

.einsatz-info-grid input,
.einsatz-info-grid select,
.einsatz-view textarea {
  width: 100%;
  box-sizing: border-box;
  background: #152238;
  border: 1px solid #2a3f5c;
  color: #e8ecf2;
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
}

.einsatz-view textarea { resize: vertical; min-height: 72px; }

.einsatz-msg-actions {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}

.einsatz-msg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 100px;
}

.einsatz-msg-list li {
  padding: 8px 0;
  border-bottom: 1px solid #2a3f5c;
  font-size: 0.88rem;
  line-height: 1.35;
}

.einsatz-msg-list .msg-time {
  color: #8fa3bd;
  font-size: 0.78rem;
  margin-right: 6px;
}

.einsatz-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.einsatz-card-title-row .einsatz-card-title { margin-bottom: 0; }

.ev-meldung-panel,
.ev-kategorie-panel {
  width: min(640px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.ev-streich-panel {
  width: min(360px, 92vw);
}

.ev-streich-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #c5d4e8;
}

.ev-streich-panel .ev-berichte-actions {
  padding: 10px 14px;
}

.ev-streich-panel .modal-body {
  padding: 12px 16px;
}

.ev-streich-panel .modal-header h3 {
  font-size: 0.95rem;
}

.app-dialog-panel {
  max-width: 480px;
}

.app-dialog-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #dce4f0;
}

.app-dialog-body p {
  margin: 0 0 10px;
}

.app-dialog-body p:last-child {
  margin-bottom: 0;
}

.app-dialog-list {
  margin: 8px 0 0;
  padding-left: 1.25rem;
}

.app-dialog-list li {
  margin-bottom: 4px;
}

.ev-meldung-direction {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.ev-meldung-author-row {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.ev-meldung-author {
  display: block;
  font-weight: 700;
  color: #dce4f0;
}

.ev-meldung-user-input {
  width: 100%;
  margin-top: 4px;
}

.ev-meldung-party {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  padding: 10px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 7px;
  min-height: 48px;
}

.ev-meldung-swap {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  align-self: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.ev-meldung-target,
#ev-meldung-target {
  flex: 1;
  min-height: 48px;
  background: #152238;
  border: 1px solid #2a3f5c;
  border-radius: 8px;
  color: #e8ecf2;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}

.ev-meldung-target:focus,
#ev-meldung-target:focus {
  outline: none;
  border-color: #4a8fd4;
  box-shadow: 0 0 0 2px rgba(74, 143, 212, 0.2);
}

.ev-meldung-target option,
#ev-meldung-target option {
  background: #152238;
  color: #e8ecf2;
}

.ev-kategorie-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.ev-kategorie-row select,
#ev-meldung-kategorie {
  flex: 1;
  background: #152238;
  border: 1px solid #2a3f5c;
  border-radius: 8px;
  color: #e8ecf2;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}

.ev-kategorie-row select:focus,
#ev-meldung-kategorie:focus {
  outline: none;
  border-color: #4a8fd4;
  box-shadow: 0 0 0 2px rgba(74, 143, 212, 0.2);
}

.ev-kategorie-row select option,
#ev-meldung-kategorie option {
  background: #152238;
  color: #e8ecf2;
}

#ev-meldung-text {
  width: 100%;
  min-height: 120px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #f0f4fa;
  padding: 8px 10px;
  font-family: inherit;
  resize: vertical;
}

.ev-kategorie-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
}

.ev-kategorie-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 4px;
  border-left: 4px solid #546e7a;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  cursor: pointer;
}

.ev-kategorie-item.selected {
  outline: 1px solid rgba(144, 202, 249, 0.8);
}

.ev-kat-color {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
}

.ev-kategorie-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.einsatz-list-compact li.ev-unit-clickable {
  cursor: pointer;
}

.einsatz-list-compact li.ev-unit-clickable:hover {
  background: rgba(255, 255, 255, 0.06);
}

.einsatz-msg-list .msg-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.einsatz-msg-list .msg-kat-stripe {
  width: 4px;
  border-radius: 3px;
  flex-shrink: 0;
}

.einsatz-msg-list .msg-content { flex: 1; min-width: 0; }

.einsatz-msg-list .msg-route {
  font-size: 0.82rem;
  color: #9fb0c8;
  margin-bottom: 2px;
}

.einsatz-msg-list .msg-author {
  font-size: 0.9rem;
  font-weight: 700;
  color: #dce4f0;
  margin-bottom: 2px;
}

.einsatz-msg-list .msg-kategorie {
  font-size: 0.82rem;
  color: #9fb0c8;
  margin-bottom: 2px;
}

.einsatz-msg-list .msg-body { color: #dce4f0; }

.einsatz-msg-list .msg-kommentar {
  margin-top: 6px;
  padding: 6px 8px;
  border-left: 3px solid #5a7a9a;
  background: rgba(90, 122, 154, 0.12);
  font-size: 0.88rem;
  color: #b8c8dc;
  border-radius: 0 4px 4px 0;
}

.einsatz-msg-list .msg-kommentar-label {
  font-weight: 600;
  color: #8fa8c4;
  margin-right: 4px;
}

.app-dialog-input {
  width: 100%;
  margin-top: 8px;
  box-sizing: border-box;
}

.einsatz-msg-list li.msg-fotos {
  cursor: pointer;
  border-left: 3px solid #3d7ab8;
}

.einsatz-msg-list li.msg-fotos:hover {
  background: rgba(61, 122, 184, 0.12);
}

.ev-foto-meldung-panel {
  max-width: min(920px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.ev-foto-meldung-gallery {
  overflow-y: auto;
  display: grid;
  gap: 12px;
  padding: 8px 4px 12px;
}

.ev-foto-meldung-item img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  background: #0b1728;
}

.einsatz-msg-list li.msg-streichbar {
  cursor: pointer;
}

.einsatz-msg-list li.msg-streichbar:hover {
  background: rgba(255, 255, 255, 0.06);
}

.einsatz-msg-list li.msg-gestrichen {
  opacity: 0.55;
  color: #8fa3bd;
}

.einsatz-msg-list li.msg-gestrichen .msg-content,
.einsatz-msg-list li.msg-gestrichen .msg-content .msg-body,
.einsatz-msg-list li.msg-gestrichen .msg-content .msg-kommentar,
.einsatz-msg-list li.msg-gestrichen .msg-content .msg-route,
.einsatz-msg-list li.msg-gestrichen .msg-content .msg-author,
.einsatz-msg-list li.msg-gestrichen .msg-content .msg-kategorie,
.einsatz-msg-list li.msg-gestrichen .msg-content small {
  text-decoration: line-through;
}

.einsatz-extra-info {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.86rem;
}

.einsatz-card-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ev-assign-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ev-assign-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ev-assign-section > label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #9fb0c8;
}

.ev-assign-pills-host {
  min-height: 28px;
}

.ev-assign-pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ev-assign-pills li {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(36, 54, 82, 0.08);
  font-size: 0.88rem;
}

.ev-info-extra-host {
  display: contents;
}

.ev-info-pair-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.ev-info-pair-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #9fb0c8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ev-info-config-panel {
  max-width: min(920px, 96vw);
}

.ev-info-config-table input,
.ev-info-config-table select {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
  padding: 6px 8px;
  background: #152238;
  border: 1px solid #2a3f5c;
  border-radius: 6px;
  color: #e8ecf2;
  font: inherit;
  font-size: 0.88rem;
}

.ev-info-config-table select {
  min-width: 120px;
}

.ev-info-config-tools {
  margin-top: 10px;
}

.ev-info-fields-host {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.ev-info-fields-host label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ev-info-fields-host input {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #f0f4fa;
  padding: 8px 10px;
}

.ev-assign-body .nachalarm-units {
  min-height: 180px;
  max-height: 42vh;
}

.ev-assign-body .nachalarm-group-body {
  display: block;
}

.ev-assign-body .nachalarm-group-body.hidden {
  display: none;
}

.einsatz-view.einsatz-beendet-locked .ev-active-only,
.einsatz-view.einsatz-beendet-locked .ev-active-only-hint {
  display: none !important;
}

.einsatz-view.einsatz-beendet-locked .einsatz-list-compact li {
  pointer-events: none;
  opacity: 0.7;
}

.einsatz-view.einsatz-beendet-locked #ev-beenden-btn {
  display: none;
}

.einsatz-view.einsatz-beendet-locked select.ev-active-only {
  pointer-events: none;
  opacity: 0.65;
}

.einsatz-view.einsatz-beendet-locked .einsatz-msg-list li {
  pointer-events: none;
  cursor: default;
}

.einsatz-view.einsatz-aktiv-mode .einsatz-msg-list {
  pointer-events: auto;
}

.ev-berichte-panel {
  width: min(720px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.ev-berichte-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.ev-bericht-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: #c5d4e8;
  margin-top: 8px;
}

.ev-berichte-body textarea {
  width: 100%;
  min-height: 100px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #f0f4fa;
  padding: 8px 10px;
  font-family: inherit;
  resize: vertical;
}

.ev-berichte-body textarea:read-only {
  opacity: 0.72;
}

.ev-berichte-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}


.einsatz-view button.secondary {
  background: #243652;
  border-color: #3a5275;
  color: #dce4f0;
}

.einsatz-view button:not(.secondary) {
  background: #2d5a8a;
  border-color: #3d6fa3;
}

.einsatz-side-col .module-hint {
  color: #8fa3bd;
  font-size: 0.78rem;
  margin: 4px 0 0;
}

@media (max-width: 1100px) {
  .einsatz-body { grid-template-columns: 1fr; }
  .einsatz-side-col { overflow-y: visible; }
}

@media (max-width: 900px) {
  .split-main { flex-direction: column; }
  .notruf-column {
    flex: 0 0 auto;
    max-width: none;
    max-height: 40vh;
    border-right: none;
    border-bottom: 1px solid #2a3f5c;
  }
}

@media (max-width: 720px) {
  .banner-datetime { flex-direction: column; align-items: flex-end; gap: 0.15rem; border-right: none; padding-right: 0; margin-right: 0; }
  .banner-user-block { padding-left: 0.75rem; border-left: 1px solid var(--border); }
  .banner-time { font-size: 1.15rem; }
  .banner-date { font-size: 0.75rem; }
  .banner-user-block span:first-child { display: none; }
}

.bma-tab-center {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.bma-tab-left-mymobs {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: #07111f;
  border-right: 1px solid #1e3348;
}

.bma-mymobs-embed-host--bare {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.bma-mymobs-embed-tools-floating {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: flex;
  gap: 4px;
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

.bma-mymobs-embed-host--bare:hover .bma-mymobs-embed-tools-floating,
.bma-mymobs-embed-tools-floating:focus-within {
  opacity: 1;
}

.bma-mymobs-embed-frame-wrap--bare {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.bma-mymobs-window-dock {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  background: #07111f;
}

.bma-mymobs-window-dock-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-height: 120px;
  padding: 16px 14px 20px;
  text-align: center;
  gap: 10px;
}

.bma-mymobs-window-dock-hint {
  margin: 0;
  max-width: 300px;
  color: #6b8299;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

.bma-mymobs-window-dock--blocked .bma-mymobs-window-dock-hint {
  color: #f0a8a8;
}

.bma-mymobs-panel-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  padding: 24px 16px;
  text-align: center;
  gap: 14px;
}

.bma-mymobs-panel-hint {
  margin: 0;
  max-width: 280px;
  color: #8fa3bd;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.bma-mymobs-panel-btn {
  background: #1e3d5c;
  color: #e5edf8;
  border: 1px solid #3d5f82;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.bma-mymobs-panel-btn:hover {
  background: #274765;
  border-color: #5a8ab8;
}

.bma-center-mymobs {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 0.75rem 0.75rem;
  border: 1px solid #1e3348;
  border-radius: 8px;
  overflow: hidden;
}

.bma-schiff-popup-page {
  margin: 0;
  min-height: 100vh;
  background: #07111f;
  color: #dce6f2;
  display: flex;
  flex-direction: column;
}

.bma-schiff-popup-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #0a1628;
  border-bottom: 1px solid #1e3348;
}

.bma-schiff-popup-head h1 {
  margin: 0;
  font-size: 1.05rem;
  color: #fff;
}

.bma-schiff-popup-head .module-hint {
  margin: 0.2rem 0 0;
}

.bma-schiff-popup-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bma-schiff-popup-main .bma-schiff-countdown-wrap {
  margin: 0;
}

.bma-schiff-popup-form-card {
  background: #0d1e33;
  border: 1px solid #1e3348;
  border-radius: 8px;
  padding: 0.75rem;
}

.bma-schiff-popup-form-card .bma-schiff-form-actions {
  margin-top: 0.5rem;
}

/* ── BMA Tab (Schiff links | Aktive Alarme + Countdown rechts) ── */
.bma-tab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-rows: 1fr;
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: #07111f;
}

.bma-tab-layout.bma-has-alarm {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.bma-tab-left {
  display: flex;
  flex-direction: row;
  min-height: 0;
  min-width: 0;
  background: #0a1628;
  border-right: 1px solid #1e3348;
}

.bma-tab-left.hidden {
  display: none !important;
}

.bma-sidebar-toggle {
  flex: 0 0 28px;
  width: 28px;
  min-width: 28px;
  border: none;
  border-right: 1px solid #1e3348;
  background: #0d1e33;
  color: #8fa3bd;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0;
  align-self: stretch;
}

.bma-sidebar-toggle:hover {
  background: #1e3348;
  color: #fff;
}

.bma-tab-left-inner {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bma-tab-layout.bma-sidebar-collapsed .bma-tab-left-inner {
  display: none;
}

.bma-tab-right {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
  min-width: 0;
  width: 320px;
  max-width: 320px;
  height: 100%;
  background: #0a1628;
  border-left: 1px solid #1e3348;
}

.bma-alarm-list-head {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid #1e3348;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8fa3bd;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bma-tab-right .bma-schiff-countdown-wrap {
  margin: 0;
  border-bottom: 1px solid #1e3348;
  padding: 18px 12px 16px;
  background: rgba(0, 0, 0, 0.3);
}

.bma-tab-right .bma-schiff-countdown-wrap .bma-countdown {
  font-size: clamp(4.6rem, 8vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
}

.bma-tab-right .bma-schiff-countdown-wrap .bma-btn-start {
  width: 100%;
  max-width: none;
}

.bma-alarm-list-host {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #0a1628;
}

.bma-alarm-list-empty {
  margin: 0.5rem;
  font-size: 0.85rem;
  color: #6b8299;
  line-height: 1.4;
}

.bma-alarm-list-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #1e3348;
  border-radius: 6px;
  background: #0d1e33;
  color: #dce6f2;
  cursor: pointer;
  text-align: left;
  box-shadow: inset 3px 0 0 transparent;
}

.bma-alarm-list-item strong {
  font-size: 0.95rem;
  color: #fff;
}

.bma-alarm-list-item span {
  font-size: 0.78rem;
  color: #8fa3bd;
  line-height: 1.3;
  word-break: break-word;
}

.bma-alarm-list-countdown {
  display: inline-block;
  margin-top: 0.22rem;
  font-size: 1.05rem !important;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f5c518 !important;
}

.bma-alarm-list-countdown.is-expired {
  color: #ff4d4d !important;
  animation: bma-countdown-expired-blink 0.75s step-start infinite;
}

@keyframes bma-countdown-expired-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.18; }
}

.bma-alarm-list-item:hover {
  background: #142a45;
  border-color: #2a4a6a;
}

.bma-alarm-list-item.active {
  background: #1a3a5c;
  border-color: #3d7ab8;
}

.bma-alarm-list-item--new {
  box-shadow: inset 3px 0 0 #e53935;
}

.bma-alarm-list-item--progress {
  box-shadow: inset 3px 0 0 #f5c518;
}

.bma-alarm-list-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.bma-alarm-list-row--completed {
  padding: 0.45rem 0.5rem 0.45rem 0.65rem;
  border: 1px solid #1e3348;
  border-radius: 6px;
  background: #0a1420;
  opacity: 0.9;
  box-shadow: inset 3px 0 0 #43a047;
}

.bma-alarm-list-item-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
}

.bma-alarm-list-item-text strong {
  font-size: 0.9rem;
  color: #b8c8dc;
}

.bma-alarm-list-item-text span {
  font-size: 0.75rem;
  color: #6b8299;
  line-height: 1.3;
  word-break: break-word;
}

.bma-alarm-list-dismiss {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid #2a4a6a;
  border-radius: 4px;
  background: #142a45;
  color: #dce6f2;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.bma-alarm-list-dismiss:hover {
  background: #1e3d5c;
  border-color: #c44;
  color: #fff;
}

.bma-tab-layout:not(.bma-has-alarm) .bma-tab-right {
  grid-column: 2;
}

.bma-mymobs-embed-host {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.bma-mymobs-embed-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #1e3348;
  background: #0d1e33;
}

.bma-mymobs-embed-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #dce6f5;
}

.bma-mymobs-embed-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bma-mymobs-embed-tools .bma-mymobs-open-btn {
  font-size: 0.78rem;
  padding: 6px 10px;
}

.bma-mymobs-embed-frame-wrap {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  background: #07111f;
}

.bma-mymobs-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

.split-main.bma-tab-active .einsatz-column.einsatz-idle-mode,
.split-main.bma-alarm-active .einsatz-column.einsatz-idle-mode {
  background: #07111f;
}

.bma-tab-layout.bma-has-alarm .bma-tab-center {
  max-width: none;
  width: 100%;
  margin: 0;
  box-shadow: none;
  border: none;
}

.bma-tab-layout.bma-has-alarm .bma-tab-center {
  justify-content: flex-start;
}

.bma-schiff-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.bma-schiff-head-text {
  flex: 1 1 220px;
  min-width: 0;
}

.bma-mymobs-open-btn {
  flex: 0 0 auto;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
  background: #2e5a8a;
  border: 1px solid #4a90d9;
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  align-self: center;
}

.bma-mymobs-open-btn:hover {
  background: #4a90d9;
}

.bma-notruf-alarm-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px 0;
  border-bottom: 1px solid #2a3f5c;
  margin-bottom: 8px;
}

.bma-notruf-alarm-bar.hidden {
  display: none !important;
}

.bma-alert-banner-compact {
  flex: 1 1 100%;
  margin: 0;
  padding: 8px 10px;
  font-size: 0.9rem;
  animation: bma-pulse 1.2s ease-in-out infinite;
}

.bma-notruf-alarm-bar .bma-btn-start {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}

.bma-tab-center {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #07111f;
  padding: 10px 14px;
  box-sizing: border-box;
  border: none;
  box-shadow: none;
}

.bma-schiff-head {
  flex-shrink: 0;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #2a3f5c;
}

.bma-schiff-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #dce6f5;
}

.bma-schiff-countdown-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 12px 18px;
  margin: 0 -14px 10px;
  border-bottom: 1px solid #1e3348;
  background: rgba(0, 0, 0, 0.25);
}

.bma-schiff-countdown-wrap .bma-btn-start {
  width: auto;
  min-width: 160px;
  max-width: 220px;
  margin: 0;
}

.bma-schiff-countdown-wrap.hidden {
  display: none !important;
}

.bma-schiff-countdown-wrap .bma-countdown {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: 1;
  margin: 0;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.bma-schiff-countdown-wrap-inline {
  margin: 0 0 12px;
  border: 1px solid #1e3348;
  border-radius: 10px;
  padding: 18px 12px 16px;
  background: rgba(0, 0, 0, 0.32);
}

.bma-schiff-countdown-wrap-inline .bma-countdown {
  font-size: clamp(4.4rem, 9vw, 7rem);
  line-height: 0.95;
}

.bma-schiff-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 140px;
  padding: 20px 16px;
  color: #8fa3bd;
}

.bma-schiff-idle-text {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #b8c5d8;
}

.bma-schiff-idle-hint {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  max-width: 36ch;
}

.bma-ended-screen {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: min(420px, 55vh);
  padding: 36px 24px;
  margin: 16px 0 8px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14) 0%, rgba(7, 17, 31, 0.55) 100%);
  border: 2px solid rgba(16, 185, 129, 0.4);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.bma-ended-screen.hidden {
  display: none !important;
}

.bma-ended-badge {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  border: 3px solid #10b981;
  color: #10b981;
  font-size: 3rem;
  line-height: 90px;
  margin-bottom: 22px;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.25);
}

.bma-ended-title {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #10b981;
  margin: 0 0 14px;
  text-shadow: 0 0 36px rgba(16, 185, 129, 0.35);
}

.bma-ended-hint {
  margin: 0 0 30px;
  font-size: 1rem;
  line-height: 1.5;
  color: #8fa3bd;
  max-width: 38ch;
}

.bma-ended-refresh {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 13px 32px;
  min-width: 220px;
  border-radius: 8px;
}

.bma-tab-layout.bma-ended-mode .bma-schiff-countdown-wrap,
.bma-tab-layout.bma-ended-mode .bma-schiff-actions,
.bma-tab-layout.bma-ended-mode .bma-tab-left,
.bma-tab-layout.bma-ended-mode .bma-alarm-panel-host {
  display: none !important;
}

.bma-schiff-alarm .bma-fields span {
  color: #e8ecf2;
  word-break: break-word;
}

.bma-meldung-text {
  white-space: pre-wrap;
  line-height: 1.45;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 6px;
  color: #e8ecf2;
}

.bma-alert-banner--stoerung {
  background: #ef6c00;
}

.bma-test-meldung-badge {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-weight: 1000;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1200;
  background: linear-gradient(180deg, #ffe566 0%, #ffb300 48%, #ff8f00 100%);
  border: 5px solid #fff;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 12px;
  box-shadow:
    0 0 0 4px #ff6f00,
    0 10px 28px rgba(0, 0, 0, 0.5);
  animation: bma-test-meldung-pulse 1s ease-in-out infinite;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  line-height: 1.1;
}

.bma-test-meldung-badge--list {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  padding: 7px 8px;
  border-width: 3px;
  margin: 0 0 8px;
  border-radius: 8px;
  box-shadow: 0 0 0 2px #ff6f00, 0 4px 12px rgba(0, 0, 0, 0.35);
}

.bma-test-meldung-badge--toast {
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  padding: 14px 12px;
  margin-bottom: 14px;
}

.bma-alarm-list-item .bma-test-meldung-badge--list {
  width: 100%;
  align-self: stretch;
}

@keyframes bma-test-meldung-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.015); filter: brightness(1.1); }
}

.bma-tab-center.hidden {
  display: none !important;
}

.bma-alarm-panel-host {
  min-height: 0;
  overflow-y: auto;
  flex: 1 1 auto;
}

.bma-schiff-actions {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #1e3348;
}

.bma-schiff-actions .bma-btn-abort {
  grid-column: 1 / -1;
}

.bma-tab-layout:not(.bma-has-alarm) #bma-btn-alarmieren,
.bma-tab-layout:not(.bma-has-alarm) #bma-btn-streife {
  display: none !important;
}

.bma-schiff-actions.hidden {
  display: none !important;
}

.bma-schiff-actions .alarm-btn,
.bma-schiff-actions .bma-btn-streife,
.bma-schiff-actions .bma-btn-abort {
  width: 100%;
  margin: 0;
  padding: 12px 10px;
  font-size: 0.95rem;
  font-weight: 800;
}

.bma-schiff-form-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 8px 8px 0;
  overflow: hidden;
}

.bma-schiff-form-wrap.hidden {
  display: none !important;
}

.bma-schiff-form-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bma-schiff-form-card .notruf-form-host {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.bma-schiff-form-actions {
  flex-shrink: 0;
  display: grid;
  gap: 8px;
}

#bma-notruf-panel .notruf-form-head,
#bma-notruf-panel .notruf-page-title,
#bma-notruf-panel .notruf-page-sub,
.bma-schiff-form-wrap .notruf-form-head,
.bma-schiff-form-wrap .notruf-page-title,
.bma-schiff-form-wrap .notruf-page-sub {
  display: none;
}

.bma-schiff-form-wrap .notruf-form-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  color: #f0f4fa;
}

.bma-schiff-form-wrap .notruf-subtitle {
  margin: 0 0 0.75rem;
  color: #8fa3bd;
  font-size: 0.82rem;
}

.bma-schiff-form-wrap .notruf-page-card {
  background: #152238;
  border: 1px solid #2a3f5c;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.bma-schiff-form-wrap .notruf-page-badge {
  background: rgba(198, 40, 40, 0.2);
  border-color: rgba(198, 40, 40, 0.45);
  color: #ffcdd2;
}

.bma-schiff-form-wrap .notruf-page-title { color: #f0f4fa; font-size: 0.92rem; }
.bma-schiff-form-wrap .notruf-page-sub,
.bma-schiff-form-wrap .notruf-page-hint { color: #8fa3bd; font-size: 0.78rem; }

.bma-schiff-form-wrap .notruf-field-row label {
  color: #9fb0c8;
  font-size: 0.82rem;
  font-weight: 600;
}

.bma-schiff-form-wrap .notruf-field-row input,
.bma-schiff-form-wrap .notruf-field-row select,
.bma-schiff-form-wrap .notruf-field-row textarea {
  background: #0f1a2b;
  border: 1px solid #2a3f5c;
  color: #e8ecf2;
  font-size: 0.85rem;
  padding: 6px 8px;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.bma-schiff-form-wrap .notruf-field-row {
  margin-bottom: 0.65rem;
}

.bma-schiff-form-wrap .notruf-radio-group { display: flex; flex-direction: column; gap: 0.3rem; }

.bma-schiff-form-wrap .notruf-page-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.bma-schiff-form-wrap .notruf-page-nav button {
  background: #243652;
  border-color: #3a5275;
  color: #dce4f0;
  font-size: 0.82rem;
  padding: 0.35rem 0.6rem;
}

.bma-meldung-fields {
  grid-template-columns: minmax(88px, auto) 1fr;
}

.bma-meldung-fields label {
  font-weight: 700;
}

.bma-meldung-fields span {
  font-size: 1rem;
  font-weight: 600;
}

.bma-panel {
  overflow-y: auto;
  min-height: 0;
  height: 100%;
}

.bma-alert-banner {
  background: #c62828;
  color: #fff;
  text-align: center;
  font-weight: 900;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  animation: bma-pulse 1.2s ease-in-out infinite;
}

@keyframes bma-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.bma-countdown {
  font-size: 3.2rem;
  font-weight: 1000;
  text-align: center;
  color: #ffdf5d;
  font-variant-numeric: tabular-nums;
  margin: 8px 0 12px;
}

.bma-btn-start {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;
  font-size: 1.05rem;
  font-weight: 900;
  background: #243652;
  border: 1px solid #3a5275;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
}

.bma-btn-start.running {
  background: #2e7d32 !important;
  border-color: #1b5e20 !important;
  cursor: default;
}

.bma-workflow-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #2a3f5c;
}

.bma-workflow-section.hidden {
  display: none;
}

.bma-workflow-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.bma-workflow-btn {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  background: #243652;
  border: 1px solid #3a5275;
  color: #e8ecf2;
  border-radius: 8px;
  cursor: pointer;
}

.bma-workflow-btn:hover:not(:disabled) {
  background: #2d4568;
}

.bma-workflow-btn.is-done,
.bma-workflow-btn:disabled {
  background: #2e7d32 !important;
  border-color: #1b5e20 !important;
  color: #fff;
  cursor: default;
}

.bma-workflow-log-wrap {
  margin-top: 4px;
}

.bma-workflow-log-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #9fb0c8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bma-workflow-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.bma-workflow-log-table th,
.bma-workflow-log-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #2a3f5c;
  text-align: left;
  vertical-align: top;
}

.bma-workflow-log-table th {
  color: #9fb0c8;
  font-weight: 600;
}

.bma-workflow-log-table td {
  color: #e8ecf2;
}

.bma-workflow-log-empty {
  color: #8fa3bd;
  font-style: italic;
}

.bma-fields {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.bma-fields label { color: #9fb0c8; }
.bma-fields label.full { grid-column: 1 / -1; margin-top: 4px; }
.bma-fields .full { grid-column: 1 / -1; }

.bma-fields input,
.bma-fields textarea {
  background: #152238;
  border: 1px solid #2a3f5c;
  color: #e8ecf2;
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
}

.bma-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.bma-actions-spacer { flex: 1; }

/* Legacy overlay (nicht mehr genutzt) */
.bma-overlay {
  display: none !important;
}

body.bma-active .app-main {
  filter: none;
}

.bma-module-view {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
}

.bma-module-view > .bma-tab-layout {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

#bma-module-host.workspace-panel,
#einsatz-view-host.workspace-panel,
#tagebuch-module-host.workspace-panel,
#berichte-module-host.workspace-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Externe Alarme (App): kein weißer Kartenrahmen, volle Arbeitsfläche */
.split-main.bma-tab-active .einsatz-column,
.split-main.bma-alarm-active .einsatz-column,
.split-main.bma-tab-active .einsatz-column.einsatz-idle-mode,
.split-main.bma-alarm-active .einsatz-column.einsatz-idle-mode {
  background: #07111f;
  border: none;
  padding: 0;
  flex: 1 1 100%;
  max-width: 100%;
  min-height: 0;
}

.split-main.bma-tab-active #bma-module-host:not(.hidden),
.split-main.bma-alarm-active #bma-module-host:not(.hidden) {
  flex: 1 1 100%;
  width: 100%;
  min-height: 0;
  height: 100%;
}

.split-main.bma-tab-active .bma-module-view,
.split-main.bma-alarm-active .bma-module-view {
  flex: 1 1 100%;
  min-height: 0;
  height: 100%;
}

#bma-module-host .einsatz-card,
.bma-module-view .einsatz-card,
.bma-module-view .bma-schiff-form-card,
.split-main.bma-tab-active .einsatz-idle-mode #bma-module-host .einsatz-card,
.split-main.bma-alarm-active .einsatz-idle-mode #bma-module-host .einsatz-card {
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  border-color: transparent;
}

@media (max-width: 1100px) {
  .bma-tab-layout,
  .bma-tab-layout.bma-has-alarm {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .bma-tab-right {
    width: 280px;
    max-width: 280px;
  }
}

@media (max-width: 900px) {
  .bma-tab-layout,
  .bma-tab-layout.bma-has-alarm {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr minmax(200px, 32vh);
  }

  .bma-tab-left {
    order: 1;
    border-right: none;
    border-bottom: 1px solid #1e3348;
  }

  .bma-tab-right {
    order: 2;
    border-left: none;
    border-top: 1px solid #1e3348;
    width: 100%;
    max-width: none;
  }

  .bma-schiff-actions {
    grid-template-columns: 1fr;
  }
}

/* Verwaltung */
.verwaltung-main { padding: 12px; }
.verwaltung-wrap { border-radius: 0; }

.verwaltung-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  max-width: 520px;
}

.verwaltung-form label {
  color: #9fb0c8;
  font-size: 0.88rem;
  margin-top: 8px;
}

.verwaltung-form label.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.verwaltung-form input[type="text"],
.verwaltung-form input[type="email"],
.verwaltung-form input[type="url"],
.verwaltung-form input[type="number"] {
  background: #152238;
  border: 1px solid #2a3f5c;
  color: #e8ecf2;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}

.verwaltung-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .bma-overlay-inner { grid-template-columns: 1fr; height: auto; max-height: calc(100vh - 70px); overflow-y: auto; }
}

/* ── Footer Fahrzeugleiste ── */
.vehicle-footer {
  flex-shrink: 0;
  background: #001b3f;
  border-top: 1px solid rgba(120, 165, 225, 0.22);
  z-index: 50;
}

.vehicle-footer-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: rgba(8, 30, 58, 0.95);
  color: #b8c5d8;
  padding: 6px 16px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
}

.vehicle-footer-toggle:hover {
  background: rgba(16, 45, 82, 0.98);
  color: #fff;
}

.vehicle-footer-count { color: #8fa3bd; font-weight: 600; }
.vehicle-footer-chevron { margin-left: auto; font-size: 0.7rem; }

.vehicle-footer.collapsed .vehicle-footer-body { display: none; }

.vehicle-footer-body {
  padding: 4px 10px 6px;
  max-height: 72px;
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.vehicle-footer-scroll {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: thin;
  align-items: stretch;
}

.vehicle-footer-edit {
  flex-shrink: 0;
  align-self: center;
  width: 36px;
  height: 36px;
  background: #243652;
  border-color: #3a5275;
  color: #dce4f0;
}

.vehicle-footer-tooltip {
  position: fixed;
  z-index: 1050;
  max-width: 260px;
  background: #1e2f47;
  border: 1px solid #4a6a9a;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #e8ecf2;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  pointer-events: none;
}

.vehicle-footer-tooltip.hidden { display: none !important; }

.vehicle-footer-empty {
  margin: 0;
  color: #8fa3bd;
  font-size: 0.85rem;
  font-style: italic;
}

.footer-picker-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-picker-count {
  margin-left: auto;
  font-size: 0.82rem;
  color: #8fa3bd;
  font-weight: 600;
}

.footer-picker-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 200px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding: 0.5rem;
  border: 1px solid rgba(120, 165, 225, 0.22);
  border-radius: 10px;
  background: rgba(4, 18, 36, 0.55);
}

.footer-picker-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.footer-picker-col-title {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #8fa3bd;
}

.footer-picker-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.footer-picker-row-available:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(120, 165, 225, 0.35);
}

.footer-picker-row-selected {
  background: rgba(46, 125, 210, 0.1);
  border-color: rgba(100, 181, 246, 0.28);
}

.footer-picker-row-selected:hover {
  background: rgba(46, 125, 210, 0.16);
  border-color: rgba(100, 181, 246, 0.4);
}

.footer-picker-order {
  flex-shrink: 0;
  width: 1.45rem;
  height: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(25, 118, 210, 0.35);
  border: 1px solid rgba(100, 181, 246, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  color: #b3d4fc;
}

.footer-picker-add {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 7px;
  border: 1px solid rgba(100, 181, 246, 0.45);
  background: rgba(25, 118, 210, 0.25);
  color: #90caf9;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.footer-picker-add:hover {
  background: rgba(25, 118, 210, 0.45);
  border-color: rgba(144, 202, 249, 0.65);
  color: #e3f2fd;
}

.footer-picker-sort-btns {
  display: flex;
  flex-shrink: 0;
  gap: 0.2rem;
}

.footer-picker-sort-btns .icon-btn {
  min-width: 1.65rem;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1;
}

.footer-picker-sort-btns .icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.footer-picker-empty {
  margin: 0.5rem 0;
  padding: 0.35rem 0.25rem;
  font-size: 0.82rem;
  color: #8fa3bd;
  font-style: italic;
  text-align: center;
}

.footer-picker-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.footer-picker-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(120, 165, 225, 0.35);
}

.footer-picker-item.is-selected {
  background: rgba(46, 125, 210, 0.14);
  border-color: rgba(100, 181, 246, 0.45);
  box-shadow: inset 0 0 0 1px rgba(100, 181, 246, 0.12);
}

.footer-picker-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.footer-picker-check {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  border-radius: 4px;
  border: 2px solid rgba(143, 163, 189, 0.65);
  background: rgba(0, 0, 0, 0.25);
  position: relative;
}

.footer-picker-item.is-selected .footer-picker-check {
  border-color: #64b5f6;
  background: #1976d2;
}

.footer-picker-item.is-selected .footer-picker-check::after {
  content: '';
  position: absolute;
  left: 0.28rem;
  top: 0.05rem;
  width: 0.28rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.footer-picker-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.footer-picker-label {
  font-weight: 650;
  font-size: 0.88rem;
  line-height: 1.25;
  color: #e8f0fa;
}

.footer-picker-meta {
  font-size: 0.75rem;
  color: #8fa3bd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-picker-panel {
  max-width: 920px;
  width: min(96vw, 920px);
}

.footer-picker-header {
  align-items: flex-start;
  gap: 1rem;
}

.footer-picker-header h3 {
  margin: 0 0 0.2rem;
}

.footer-picker-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: #8fa3bd;
  font-weight: 500;
}

.footer-picker-hint {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.footer-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-picker-status {
  min-height: 1.25rem;
  margin-top: 0.65rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.footer-picker-status.is-pending { color: #8fa3bd; }
.footer-picker-status.is-success { color: #81c784; }
.footer-picker-status.is-error { color: #ef9a9a; }

@media (max-width: 640px) {
  .footer-picker-columns {
    grid-template-columns: 1fr;
  }
}

.vehicle-footer-card {
  flex: 0 0 auto;
  min-width: 130px;
  max-width: 170px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 48px 6px 12px;
  position: relative;
  background: rgba(8, 30, 58, 0.76);
  border: 1px solid rgba(120, 165, 225, 0.28);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.vehicle-footer-card:hover {
  background: rgba(16, 45, 82, 0.86);
  border-color: rgba(255, 255, 255, 0.45);
}

.vehicle-footer-card.selected {
  background: linear-gradient(180deg, rgba(70, 255, 170, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(110, 255, 185, 0.98);
}

.vehicle-footer-card.selected:hover {
  background: linear-gradient(180deg, rgba(70, 255, 170, 0.22) 0%, rgba(255, 255, 255, 0.10) 100%);
  border-color: rgba(255, 255, 255, 0.52);
}

.vehicle-card-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  margin-right: 4px;
  font-size: 0.78rem;
  font-weight: 900;
  color: #6effb9;
  flex-shrink: 0;
  vertical-align: middle;
}

.vehicle-card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.vehicle-card-name {
  font-weight: 850;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vehicle-card-ruf {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vehicle-card-badge {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 34px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-weight: 950;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.vehicle-card-badge.status-0,
.vehicle-footer-card.status-0 .vehicle-card-badge { background: rgba(255,255,255,0.10); color: #fff; }
.vehicle-card-badge.status-1 { background: rgba(255,140,0,0.70); color: #fff; border-color: rgba(255,175,70,0.95); }
.vehicle-card-badge.status-2 { background: rgba(255,255,255,0.14); color: #fff; }
.vehicle-card-badge.status-3 { background: rgba(0,220,120,0.80); color: #fff; border-color: rgba(70,255,165,0.95); }
.vehicle-card-badge.status-3.blink-off { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.26); }
.vehicle-card-badge.status-4 { background: rgba(0,200,110,0.75); color: #fff; border-color: rgba(60,230,145,0.92); }
.vehicle-card-badge.status-5 { background: rgba(255,220,0,0.90); color: #000; border-color: rgba(255,235,70,0.98); }
.vehicle-card-badge.status-6 { background: rgba(255,60,60,0.78); color: #fff; border-color: rgba(255,95,95,0.95); }

.vehicle-status-menu {
  position: fixed;
  z-index: 1200;
  background: #1e2f47;
  border: 1px solid #2a3f5c;
  border-radius: 10px;
  padding: 6px;
  min-width: 200px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vehicle-status-opt {
  border: 1px solid #2a3f5c;
  border-radius: 6px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: #152238;
}

.vehicle-status-opt:hover { filter: brightness(1.15); }
.vehicle-status-opt.status-1 { background: rgba(255,140,0,0.35); }
.vehicle-status-opt.status-2 { background: rgba(255,255,255,0.08); }
.vehicle-status-opt.status-3 { background: rgba(0,220,120,0.25); }
.vehicle-status-opt.status-4 { background: rgba(0,200,110,0.25); }
.vehicle-status-opt.status-5 { background: rgba(255,220,0,0.35); color: #111; }
.vehicle-status-opt.status-6 { background: rgba(255,60,60,0.35); }

.verwaltung-fahrzeug-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.verwaltung-fahrzeug-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #2a3f5c;
  font-size: 0.88rem;
  color: #dce4f0;
}

.verwaltung-fz-actions { display: flex; gap: 6px; flex-shrink: 0; }
.verwaltung-fz-actions button { font-size: 0.78rem; padding: 4px 8px; }

.verwaltung-fahrzeuge-card { margin-top: 16px; }
.verwaltung-form-inline { max-width: 480px; }

/* Sprechwunsch Toast */
.sprechwunsch-toast {
  position: fixed;
  top: 56px;
  right: 16px;
  z-index: 1100;
  width: min(320px, calc(100vw - 32px));
  background: linear-gradient(180deg, #fff8c4 0%, #ffe082 100%);
  border: 2px solid #f9a825;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  color: #3e2723;
}

.sprechwunsch-toast.hidden { display: none !important; }

.sprechwunsch-toast .sw-title {
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 8px;
}

.sprechwunsch-toast .sw-body {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.sprechwunsch-toast .sw-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sprechwunsch-toast .sw-actions button {
  flex: 1;
  min-width: 120px;
  font-weight: 800;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
}

.sprechwunsch-toast .sw-btn-goto {
  background: #2e7d32;
  border: 1px solid #1b5e20;
  color: #fff;
}

.sprechwunsch-toast .sw-btn-goto:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sprechwunsch-toast .sw-btn-ack {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid #f9a825;
  color: #3e2723;
}

/* Tor öffnen – Leitstelle-Popup (blinkend wie Admin-Chat) */
.tor-oeffnen-toast {
  position: fixed;
  top: 56px;
  right: 16px;
  z-index: 1135;
  width: min(340px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  background: linear-gradient(180deg, #fff8c4 0%, #ffe082 100%);
  border: 3px solid #f9a825;
  color: #3e2723;
  animation: tor-oeffnen-toast-blink 0.55s ease-in-out infinite;
}

@keyframes tor-oeffnen-toast-blink {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.78; filter: brightness(1.15); }
}

.tor-oeffnen-toast.hidden { display: none !important; }

.tor-oeffnen-toast .to-title {
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.tor-oeffnen-toast .to-body {
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 12px;
}

.tor-oeffnen-toast .to-body strong {
  font-weight: 900;
}

.tor-oeffnen-toast .to-actions button {
  width: 100%;
  font-weight: 800;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid #f9a825;
  color: #3e2723;
}

.tor-oeffnen-toast .to-actions button:hover {
  background: #fff;
}

/* BMA Alarm Toast */
.bma-alarm-toast {
  position: fixed;
  top: 56px;
  right: 16px;
  z-index: 1150;
  width: min(340px, calc(100vw - 32px));
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.bma-alarm-toast--brand {
  background: linear-gradient(180deg, #ffcdd2 0%, #e53935 100%);
  border: 3px solid #b71c1c;
  color: #3e2723;
  animation: bma-toast-brand-pulse 1s ease-in-out infinite;
}

.bma-alarm-toast--stoerung {
  background: linear-gradient(180deg, #fff9c4 0%, #fdd835 100%);
  border: 3px solid #f9a825;
  color: #3e2723;
  animation: bma-toast-stoerung-blink 0.55s ease-in-out infinite;
}

.bma-alarm-toast--alarm {
  background: linear-gradient(180deg, #bbdefb 0%, #1976d2 100%);
  border: 3px solid #0d47a1;
  color: #0d2137;
  animation: bma-toast-alarm-pulse 1.1s ease-in-out infinite;
}

.bma-alarm-toast--meldung {
  background: linear-gradient(180deg, #d7f5df 0%, #66bb6a 100%);
  border: 3px solid #2e7d32;
  color: #103118;
}

@keyframes bma-toast-alarm-pulse {
  0%, 100% { box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45); }
  50% { box-shadow: 0 10px 36px rgba(25, 118, 210, 0.75); }
}

@keyframes bma-toast-brand-pulse {
  0%, 100% { box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45); }
  50% { box-shadow: 0 10px 36px rgba(198, 40, 40, 0.75); }
}

@keyframes bma-toast-stoerung-blink {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.72; filter: brightness(1.08); }
}

.bma-alarm-toast.hidden { display: none !important; }

.bma-alarm-toast--brand .bat-title {
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #b71c1c;
}

.bma-alarm-toast--stoerung .bat-title {
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #f57f17;
}

.bma-alarm-toast--alarm .bat-title {
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #0d47a1;
}

.bma-alarm-toast--meldung .bat-title {
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: 8px;
  color: #1b5e20;
}

.bma-alarm-toast .bat-body {
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 12px;
}

.bma-alarm-toast .bat-kv {
  margin-bottom: 8px;
}

.bma-alarm-toast .bat-k {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
  margin-bottom: 2px;
}

.bma-alarm-toast .bat-v {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.bma-alarm-toast--brand .bat-body em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-weight: 800;
  color: #b71c1c;
}

.bma-alarm-toast--stoerung .bat-body em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-weight: 800;
  color: #e65100;
}

.bma-alarm-toast--alarm .bat-body em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-weight: 800;
  color: #0d47a1;
}

.bma-alarm-toast--meldung .bat-body em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-weight: 700;
  color: #1b5e20;
}

.bma-alarm-toast--brand .bat-actions button {
  width: 100%;
  font-weight: 900;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  background: #c62828;
  border: 1px solid #8e0000;
  color: #fff;
}

.bma-alarm-toast--brand .bat-actions button:hover {
  background: #d32f2f;
}

.bma-alarm-toast--stoerung .bat-actions button {
  width: 100%;
  font-weight: 900;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  background: #f9a825;
  border: 1px solid #ef6c00;
  color: #3e2723;
}

.bma-alarm-toast--stoerung .bat-actions button:hover {
  background: #ffb300;
}

.bma-alarm-toast--alarm .bat-actions button {
  width: 100%;
  font-weight: 900;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  background: #1565c0;
  border: 1px solid #0d47a1;
  color: #fff;
}

.bma-alarm-toast--alarm .bat-actions button:hover {
  background: #1976d2;
}

.bma-alarm-toast--meldung .bat-actions button {
  width: 100%;
  font-weight: 800;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  background: #2e7d32;
  border: 1px solid #1b5e20;
  color: #fff;
}

.bma-alarm-toast--meldung .bat-actions button:hover {
  background: #388e3c;
}

/* Admin-Chat Einladung (weiß blinkend, oben rechts) */
.admin-chat-toast {
  position: fixed;
  top: 56px;
  right: 16px;
  z-index: 1140;
  width: min(340px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
  border: 3px solid #bdbdbd;
  color: #212121;
  animation: admin-chat-toast-blink 0.55s ease-in-out infinite;
}

@keyframes admin-chat-toast-blink {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.82; filter: brightness(1.12); }
}

.admin-chat-toast.hidden { display: none !important; }

.admin-chat-toast .act-title {
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #424242;
}

.admin-chat-toast .act-body {
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 12px;
}

.admin-chat-toast .act-body em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-weight: 700;
  color: #1565c0;
}

.admin-chat-toast .act-actions button {
  width: 100%;
  font-weight: 900;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  background: #1565c0;
  border: 1px solid #0d47a1;
  color: #fff;
}

.admin-chat-toast .act-actions button:hover {
  background: #1976d2;
}

/* Admin-Chat neue Nachricht (Toast oben rechts) */
.admin-chat-message-toast {
  position: fixed;
  top: 56px;
  right: 16px;
  z-index: 1135;
  width: min(340px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, #e3f2fd 0%, #bbdefb 100%);
  border: 2px solid #1565c0;
  color: #0d47a1;
  cursor: pointer;
}

.admin-chat-message-toast.hidden { display: none !important; }

.admin-chat-message-toast .acmt-title {
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 8px;
}

.admin-chat-message-toast .acmt-body {
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 12px;
}

.admin-chat-message-toast .acmt-body strong {
  display: block;
  margin-bottom: 4px;
}

.admin-chat-message-toast .acmt-actions button {
  width: 100%;
  font-weight: 800;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
  background: #1565c0;
  border: 1px solid #0d47a1;
  color: #fff;
}

.admin-chat-message-toast .acmt-actions button:hover {
  background: #1976d2;
}

/* Admin-Chat Popup-Fenster (dunkles Theme wie Live-Chat) */
html:has(body.admin-chat-page) {
  height: auto;
  overflow: auto;
}

body.admin-chat-page {
  margin: 0;
  min-height: 100vh;
  height: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
  background: #07111f;
  color: #e5edf8;
  overflow: auto;
}

.admin-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #0a1424;
  border-bottom: 1px solid #1a2f4a;
  color: #eef4fc;
}

.admin-chat-head h1 {
  margin: 0;
  font-size: 1.1rem;
  color: #eef4fc;
}

.admin-chat-head .module-hint {
  margin: 2px 0 0;
  color: #8fa8c8;
  font-size: 0.82rem;
}

.admin-chat-head #acr-close-btn {
  margin-left: auto;
  background: rgba(192, 57, 43, 0.18);
  border: 1px solid rgba(231, 76, 60, 0.45);
  color: #ffb0a8;
}

.admin-chat-head #acr-close-btn:hover {
  background: rgba(192, 57, 43, 0.28);
}

.admin-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px;
  gap: 10px;
}

.admin-chat-waiting,
.admin-chat-closed {
  text-align: center;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(42, 110, 184, 0.12);
  border: 1px solid rgba(42, 110, 184, 0.28);
  color: #9ec8ff;
  font-size: 0.84rem;
}

.admin-chat-closed {
  background: rgba(143, 168, 200, 0.1);
  border-color: rgba(143, 168, 200, 0.25);
  color: #9db4d4;
}

body.admin-chat-page .admin-chat-messages,
body.admin-chat-page #acr-messages {
  flex: 1;
  min-height: 200px;
  overflow-y: auto;
  background: #0d1c30;
  border: 1px solid #1e3554;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #dce8f8;
}

.acr-msg {
  max-width: 92%;
  align-self: flex-start;
}

.acr-msg--own {
  align-self: flex-end;
  text-align: right;
}

.acr-msg-meta {
  font-size: 0.72rem;
  color: #7f97b8;
  margin-bottom: 3px;
}

body.admin-chat-page .acr-msg-text {
  display: inline-block;
  text-align: left;
  background: #12243c;
  border: 1px solid #1e3554;
  border-radius: 14px;
  padding: 10px 12px;
  color: #dce8f8;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

body.admin-chat-page .acr-msg--own .acr-msg-text {
  background: #123628;
  border-color: #1f6b4a;
  color: #d4f5e4;
}

.admin-chat-compose {
  display: flex;
  gap: 8px;
  align-items: stretch;
  padding-top: 4px;
  border-top: 1px solid #1a2f4a;
}

.admin-chat-compose textarea {
  flex: 1;
  resize: vertical;
  min-height: 44px;
  max-height: 120px;
  margin-bottom: 0;
  border-radius: 12px;
  border: 1px solid #2a4568;
  background: #0d1c30;
  color: #eef4fc;
  padding: 10px 12px;
  font: inherit;
}

.admin-chat-compose textarea::placeholder {
  color: #6f8cb0;
}

.admin-chat-compose textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-chat-compose button {
  align-self: flex-end;
  min-width: 88px;
  font-weight: 800;
  border-radius: 12px;
  background: linear-gradient(180deg, #1f6b4a 0%, #185a3e 100%);
  border: 1px solid #2ecc71;
  color: #eafff3;
}

.admin-chat-compose button:hover:not(:disabled) {
  background: linear-gradient(180deg, #258a5e 0%, #1f6b4a 100%);
}

.admin-chat-compose button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-chat-status {
  margin: 0;
  min-height: 1.2em;
  color: #8fa8c8;
}

.alarm-notify-enable-banner {
  position: fixed;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(720px, calc(100vw - 24px));
  padding: 10px 14px;
  border-radius: 10px;
  background: #1a2332;
  border: 1px solid #3d4f6a;
  color: #e8eef7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-size: 0.9rem;
}

.alarm-notify-enable-banner.hidden { display: none !important; }

.alarm-notify-enable-banner .anb-text {
  flex: 1;
  line-height: 1.35;
}

.alarm-notify-enable-banner .anb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.alarm-notify-enable-banner .anb-btn-enable {
  padding: 7px 12px;
  border: none;
  border-radius: 8px;
  background: #1565c0;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.alarm-notify-enable-banner .anb-btn-enable:hover {
  background: #1976d2;
}

.alarm-notify-enable-banner .anb-btn-close {
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #b0bec5;
  font: inherit;
  cursor: pointer;
  line-height: 1;
}

.alarm-notify-enable-banner .anb-btn-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.fz-order-cell { white-space: nowrap; }
.fz-order-cell .icon-btn { padding: 2px 6px; }

.fz-editor-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  max-height: 45vh;
  overflow-y: auto;
}

.fz-editor-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: end;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.fz-editor-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fz-editor-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

.fz-editor-fields input {
  font: inherit;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
}

.fz-editor-add {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.fz-editor-add h4 { margin: 0 0 8px; font-size: 0.95rem; }

.verwaltung-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  overflow: auto;
}

.bma-verwaltung-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 20px;
  align-items: start;
}

.bma-verwaltung-left .verwaltung-form {
  max-width: none;
}

.bma-verwaltung-right {
  min-width: 0;
}

.bma-verwaltung-right .verwaltung-table-wrap {
  margin-top: 8px;
}

.verwaltung-table tbody tr.row-disabled {
  opacity: 0.45;
}

.bma-mail-log-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #2a3f5c;
}

/* Externe Alarme (Verwaltung): sichtbaren Rahmen der Hauptkarte entfernen */
#section-bma.einsatz-card {
  border: none;
  outline: none;
  box-shadow: none;
}

.bma-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.bma-type-badge--bma {
  background: rgba(198, 40, 40, 0.22);
  color: #ff8a80;
  border: 1px solid rgba(198, 40, 40, 0.45);
}

.bma-type-badge--stoerung {
  background: rgba(255, 193, 7, 0.18);
  color: #ffd54f;
  border: 1px solid rgba(255, 193, 7, 0.4);
}

.bma-type-badge--alarm {
  background: rgba(33, 150, 243, 0.2);
  color: #90caf9;
  border: 1px solid rgba(33, 150, 243, 0.45);
}

.bma-type-badge--meldung {
  background: rgba(76, 175, 80, 0.2);
  color: #a5d6a7;
  border: 1px solid rgba(76, 175, 80, 0.45);
}

.bma-type-badge--rejected {
  background: rgba(158, 158, 158, 0.18);
  color: #bdbdbd;
  border: 1px solid rgba(158, 158, 158, 0.4);
}

#bma-mail-log-table tr.row-rejected td {
  opacity: 0.85;
}

#bma-mail-log-table tr.row-rejected td:nth-child(5) {
  color: #ffb74d;
  font-size: 0.85rem;
}

.bma-imap-block {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #2a3f5c;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
  display: grid;
  gap: 10px;
}

.bma-imap-block .einsatz-card-title {
  margin: 0;
}

.bma-imap-gmail-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(33, 150, 243, 0.25);
  background: rgba(33, 150, 243, 0.08);
  line-height: 1.45;
}

.bma-imap-gmail-hint a {
  color: #90caf9;
}

.bma-imap-gmail-hint code {
  font-size: 0.92em;
}

.bma-imap-custom-fields {
  display: grid;
  gap: 10px;
}

.bma-imap-label-text {
  display: block;
  margin-bottom: 4px;
}

.bma-admin-tests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #2a3f5c;
}

@media (max-width: 960px) {
  .bma-verwaltung-layout {
    grid-template-columns: 1fr;
  }
}

.verwaltung-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.verwaltung-nav button {
  background: #243652;
  border: 1px solid #3a5275;
  color: #dce4f0;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
}

.verwaltung-nav button.active {
  background: #2d5a8a;
  border-color: #4a8fd4;
}

.verwaltung-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a3f5c;
}

.verwaltung-subnav button {
  background: #1a2838;
  border: 1px solid #334d6e;
  color: #c8d4e4;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
}

.verwaltung-subnav button.active {
  background: #2a527d;
  border-color: #4a8fd4;
  color: #fff;
}

.alarm-sub-panel { margin-top: 4px; }

/* Message-Creator (Verwaltung → Alarmierung) */
.mc-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mc-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mc-intro {
  margin: 0;
  max-width: 72ch;
}

.mc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.mc-meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #334d6e;
  background: rgba(8, 20, 36, 0.65);
  color: #b8c8dc;
  font-size: 0.8rem;
  font-weight: 600;
}

.mc-meta-badge:empty {
  display: none;
}

.mc-meta-link {
  font-size: 0.82rem;
}

.mc-section {
  border: 1px solid #2a3f5c;
  border-radius: 10px;
  background: rgba(8, 20, 36, 0.35);
  padding: 14px 16px;
}

.mc-section-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.mc-section-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #f0f4fa;
  letter-spacing: 0.01em;
}

.mc-section-head .module-hint {
  margin: 0;
}

.mc-kind-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
}

.mc-kind-nav button {
  background: #1a2838;
  border: 1px solid #334d6e;
  color: #c8d4e4;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.mc-kind-nav button:hover {
  border-color: #4a8fd4;
  color: #fff;
}

.mc-kind-nav button.active {
  background: #2a527d;
  border-color: #4a8fd4;
  color: #fff;
}

.mc-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

@media (min-width: 960px) {
  .mc-body-grid {
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr);
  }
}

.mc-editor-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.12);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  cursor: text;
}

.mc-field.is-active {
  border-color: #4a8fd4;
  background: rgba(42, 82, 125, 0.22);
  box-shadow: 0 0 0 1px rgba(74, 143, 212, 0.25);
}

.mc-field-label {
  color: #9fb0c8;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mc-field input[type="text"],
.mc-field textarea {
  width: 100%;
  box-sizing: border-box;
  background: #152238;
  border: 1px solid #2a3f5c;
  color: #e8ecf2;
  border-radius: 6px;
  padding: 9px 11px;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
}

.mc-field input[type="text"]:focus,
.mc-field textarea:focus {
  outline: none;
  border-color: #4a8fd4;
}

.mc-field textarea {
  min-height: 120px;
  resize: vertical;
}

.mc-option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 2px 0;
  color: #c8d4e4;
  font-size: 0.88rem;
  cursor: pointer;
}

.mc-option-row input {
  flex-shrink: 0;
}

.mc-active-target {
  margin: 0;
  font-size: 0.82rem;
}

.mc-active-target strong {
  color: #7eb8f0;
  font-weight: 700;
}

.mc-sources-host {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: min(52vh, 520px);
  overflow-y: auto;
  padding-right: 4px;
}

.mc-source-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mc-source-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8fa3bd;
}

.mc-source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mc-source-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #334d6e;
  background: #1a2838;
  color: #dce4f0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.mc-source-chip:hover {
  border-color: #5a8a5e;
  background: #243652;
}

.mc-source-chip:active {
  transform: translateY(1px);
}

.mc-chip-label {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
}

.mc-chip-token {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  color: #7eb8f0;
  opacity: 0.92;
  word-break: break-all;
}

.mc-actions {
  margin-top: 0;
  padding-top: 4px;
  border-top: 1px solid #2a3f5c;
}

.mc-ga-key {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6a8ab0;
  margin-left: 4px;
}

.mc-ga-fields-host,
.mc-placeholder-map-host {
  overflow-x: auto;
}

.mc-ga-fields-toolbar,
.mc-map-toolbar {
  margin-top: 10px;
}

.mc-ga-fields-table .mc-ga-key-cell {
  min-width: 160px;
  vertical-align: top;
}

.mc-ga-fields-table .mc-ga-template-cell {
  min-width: 280px;
}

.mc-ga-fields-table .mc-ga-actions-cell {
  white-space: nowrap;
  vertical-align: top;
}

.mc-ga-fields-table tr.is-active {
  background: rgba(56, 120, 200, 0.12);
}

.mc-ga-key-input,
.mc-ph-key-input {
  width: 100%;
  min-width: 120px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #2a3f5c;
  background: #0f1923;
  color: #e8eef5;
  font: inherit;
}

.mc-ga-key-input[readonly],
.mc-ph-key-input[readonly] {
  opacity: 0.85;
  cursor: default;
}

.mc-ga-template {
  width: 100%;
  min-width: 200px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #2a3f5c;
  background: #0f1923;
  color: #e8eef5;
  font: inherit;
  resize: vertical;
}

.mc-ga-key-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #6a8ab0;
}

.mc-ga-edit-btn,
.mc-ga-del-btn,
.mc-ph-del-btn {
  margin-right: 6px;
}

.mc-map-section {
  margin-top: 0;
}

.mc-placeholder-map-host {
  overflow-x: auto;
}

.mc-map-table {
  margin: 0;
}

.mc-map-table code {
  font-size: 0.82rem;
}

.mc-map-label {
  color: #9aadc4;
  font-size: 0.8rem;
  margin-left: 6px;
}

.mc-map-source-hint {
  display: block;
  color: #7a92ad;
  font-size: 0.75rem;
  margin-top: 4px;
  line-height: 1.35;
}

.mc-ref-table {
  margin-top: 0;
}

.mc-ref-table code {
  font-size: 0.82rem;
  color: #d4e4f8;
}

.mc-ref-hint {
  color: #9aadc4;
  font-size: 0.8rem;
}

.mc-ref-note {
  margin: 10px 0 0;
}

.mc-ref-section {
  margin-top: 0;
}

.mc-map-select {
  min-width: 180px;
  width: 100%;
  max-width: 260px;
}

.mc-field-cell { min-width: 220px; }

.mc-field-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 8px 2px 0;
  font-size: 0.8rem;
  white-space: nowrap;
}

.verwaltung-details {
  margin: 8px 0;
  padding: 8px 12px;
  border: 1px solid #2a3f5c;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
}

.verwaltung-details summary {
  cursor: pointer;
  font-weight: 700;
  color: #dce4f0;
}

.users-toolbar {
  align-items: stretch;
}

.users-search {
  flex: 1;
  min-width: 220px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #2a3f5c;
  background: #0f1923;
  color: #e8eef5;
  font: inherit;
}

.user-row-inactive td {
  opacity: 0.55;
}

.users-fn-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-pw-flag {
  font-size: 0.85rem;
}

/* Nutzer-Funktionen: Schnellauswahl-Gruppen */
.fn-picker-host {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fn-groups-row,
.fn-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fn-group-btn {
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #3a5275;
  background: #243652;
  color: #dce4f0;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.fn-group-btn:hover {
  border-color: #5a8a5e;
  background: #2a4035;
}

.fn-group-btn.active {
  background: #3d5a40;
  border-color: #6abf69;
  color: #e8f5e9;
  box-shadow: 0 0 0 1px rgba(106, 191, 105, 0.35);
}

.fn-group-btn.disabled,
.fn-group-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.fn-toggle-btn {
  padding: 8px 14px;
  font-size: 0.88rem;
  border-radius: 20px;
  border: 1px solid #3a5275;
  background: #1a2d45;
  color: #b0bec5;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.fn-toggle-btn:hover {
  border-color: #546e7a;
  color: #eceff1;
}

.fn-toggle-btn.active {
  background: #2e5a8a;
  border-color: #4a90d9;
  color: #fff;
  font-weight: 600;
}

.fn-tab-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.fn-tab-matrix th,
.fn-tab-matrix td {
  padding: 8px 10px;
  border-bottom: 1px solid #2a3f5c;
  vertical-align: middle;
}

.fn-tab-matrix th {
  color: #9fb0c8;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: left;
}

.fn-tab-name {
  white-space: nowrap;
  font-weight: 600;
  color: #dce4f0;
  width: 38%;
}

.fn-tab-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fn-tab-level-btn {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: 16px;
  border: 1px solid #3a5275;
  background: #1a2d45;
  color: #b0bec5;
  cursor: pointer;
}

.fn-tab-level-btn:hover {
  border-color: #546e7a;
  color: #eceff1;
}

.fn-tab-level-btn.active {
  background: #2e5a8a;
  border-color: #4a90d9;
  color: #fff;
  font-weight: 600;
}

.fn-subsection-title {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.fn-admin-row {
  margin-bottom: 12px;
}

.fn-admin-row .disp-toggle-btn {
  min-width: 160px;
}

.fn-def-preview {
  font-size: 0.82rem;
  color: #b0bec5;
  line-height: 1.45;
}

.fn-effective-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fn-effective-preview span {
  padding: 6px 12px;
  border-radius: 16px;
  background: rgba(46, 90, 138, 0.35);
  border: 1px solid #3a5275;
  font-size: 0.84rem;
}

button.secondary.danger {
  border-color: #8b3a3a;
  color: #ffb4b4;
}

.verwaltung-section { flex: 1; min-height: 0; overflow: auto; }

.verwaltung-user-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.verwaltung-user-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #2a3f5c;
  font-size: 0.88rem;
}

.aao-rules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.verwaltung-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}

.verwaltung-subsection {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #2a3f5c;
}

.verwaltung-table-wrap {
  overflow-x: auto;
  border: 1px solid #2a3f5c;
  border-radius: 10px;
}

.verwaltung-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.verwaltung-table th,
.verwaltung-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #2a3f5c;
  vertical-align: middle;
}

.verwaltung-table th {
  background: rgba(8, 20, 36, 0.85);
  color: #9fb0c8;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.verwaltung-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.verwaltung-table .empty-cell {
  color: #8fa3bd;
  font-style: italic;
  text-align: center;
}

.verwaltung-row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap;
}

.icon-btn.danger {
  color: #ff8a80;
  border-color: rgba(198, 40, 40, 0.45);
}

.icon-btn.danger:hover {
  background: rgba(198, 40, 40, 0.2);
}

.module-hint.status-error {
  color: #ff8a80;
}

.verwaltung-modal-panel {
  width: min(560px, 96vw);
}

.verwaltung-form select {
  font: inherit;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #2a3f5c;
  background: #152238;
  color: #e8ecf2;
  width: 100%;
  box-sizing: border-box;
}

.kuerzel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  max-height: 50vh;
  overflow-y: auto;
}

.kuerzel-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.kuerzel-row input {
  flex: 1;
  font: inherit;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #2a3f5c;
  background: #152238;
  color: #e8ecf2;
}

.kuerzel-order-cell {
  white-space: nowrap;
}

.kuerzel-order-cell .icon-btn {
  padding: 2px 6px;
}

.aao-fz-picker-field {
  margin-bottom: 10px;
}

.aao-fz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  min-height: 0;
}

.aao-fz-chip-group {
  flex: 0 0 100%;
  width: 100%;
}

.aao-fz-chip-group + .aao-fz-chip-group {
  margin-top: 4px;
}

.aao-fz-chip-group-body {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-picker-group-section + .footer-picker-group-section {
  margin-top: 0.55rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(120, 165, 225, 0.14);
}

.footer-picker-group-section .disp-unit-group-header {
  padding: 2px 0 4px;
  font-size: 0.74rem;
}

.footer-picker-group-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.aao-fz-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 6px;
  background: #243652;
  border: 1px solid #3a5275;
  color: #dce4f0;
  font-size: 0.8rem;
  line-height: 1.3;
  word-break: break-word;
}

.aao-fz-chips-empty {
  margin: 8px 0 0;
  color: #8fa3bd;
  font-size: 0.85rem;
}

/* Berichte-Tab */
.berichte-view-tab {
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 16px 20px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #152238;
}

.berichte-page-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: #e8edf5;
}

.berichte-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.bv-action-btn {
  font-size: 1rem;
  padding: 10px 20px;
  min-height: 42px;
}

.bv-save-status {
  font-size: 0.78rem;
  color: #8fa8c8;
  min-width: 0;
  flex: 0 1 auto;
}

.bv-save-status.is-error {
  color: #ff8a8a;
}

.berichte-body-wide {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.berichte-sidebar {
  flex: 0 0 clamp(300px, 28vw, 380px);
  max-width: 380px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow: hidden;
  margin-right: 12px;
}

.berichte-collapse-btn {
  flex: 0 0 10px;
  width: 10px;
  min-width: 10px;
  align-self: stretch;
  height: auto;
  border: none;
  border-right: 1px solid #2a4060;
  border-radius: 0;
  background: #1a2d45;
  color: #dce4f0;
  cursor: pointer;
  padding: 0;
  font-size: 0.5rem;
  line-height: 1;
  font-weight: 600;
  z-index: 2;
  transition: background 0.15s, border-color 0.15s;
}

.berichte-collapse-btn:hover {
  background: #243652;
  border-color: #3a5275;
  color: #fff;
}

.berichte-body-wide.berichte-sidebar-collapsed .berichte-sidebar {
  flex: 0 0 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  margin-right: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.berichte-body-wide.berichte-sidebar-collapsed .berichte-collapse-btn {
  border-left: 1px solid #2a4060;
  border-right: none;
}

.berichte-list-section {
  background: #1a2d45;
  border: 1px solid #2a4060;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.berichte-list-archiv {
  flex: 0 1 40%;
  max-height: 42%;
}

.berichte-section-head {
  font-size: 1.05rem;
  font-weight: 600;
  color: #dce4f0;
  margin-bottom: 4px;
}

.berichte-section-hint {
  font-size: 0.82rem;
  color: #8fa3bd;
  margin: 0 0 10px;
}

.berichte-einsatz-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 80px;
}

.berichte-einsatz-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 14px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: #243652;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  border-left-width: 4px;
  border-left-style: solid;
  border-left-color: transparent;
}

.berichte-einsatz-item.berichte-my-task {
  border-left-color: #c62828;
}

.berichte-einsatz-item:hover {
  border-color: #3a5275;
}

.berichte-einsatz-item.selected {
  border-color: #5a8a5e;
  background: #2a4035;
}

.berichte-einsatz-item.archiv {
  opacity: 0.92;
}

.berichte-einsatz-item .einsatz-state-badge {
  grid-row: 1 / 4;
  align-self: start;
  font-size: 0.72rem;
  padding: 4px 8px;
}

.berichte-item-num {
  font-size: 1.05rem;
}

.berichte-item-kw {
  font-size: 0.95rem;
  color: #c5d0de;
}

.berichte-item-meta {
  font-size: 0.82rem;
  color: #8fa3bd;
}

.berichte-detail-col {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.berichte-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  color: #8fa3bd;
  font-size: 1.1rem;
}

.berichte-hero {
  background: linear-gradient(135deg, #1e3350 0%, #243652 100%);
  border: 1px solid #2a4060;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.berichte-status-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.berichte-status-pill.offen {
  background: #3d5a40;
  color: #c8e6c9;
}

.berichte-status-pill.archiv {
  background: #37474f;
  color: #cfd8dc;
}

.berichte-hero-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.berichte-hero-ort {
  margin: 0 0 20px;
  font-size: 1.1rem;
  color: #b0bec5;
}

.berichte-hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px 20px;
}

.berichte-hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.berichte-hero-meta span {
  font-size: 0.8rem;
  color: #8fa3bd;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.berichte-hero-meta strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.berichte-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.berichte-panel {
  background: #1a2d45;
  border: 1px solid #2a4060;
  border-radius: 12px;
  padding: 20px 22px;
}

.berichte-panel-full {
  grid-column: 1 / -1;
}

.berichte-panel-title {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #dce4f0;
  border-bottom: 1px solid #2a4060;
  padding-bottom: 10px;
}

.berichte-panel-msgs .bv-msg-list {
  max-height: 420px;
}

.berichte-textarea {
  width: 100%;
  min-height: 180px;
  font-size: 1rem;
  line-height: 1.5;
  padding: 12px 14px;
  resize: vertical;
}

.berichte-textarea:read-only {
  opacity: 0.75;
}

.berichte-dienst-block {
  margin-bottom: 18px;
}

.bv-einsatzdaten-grid {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bv-einsatzdaten-row {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 8px 12px;
  align-items: baseline;
  padding-bottom: 6px;
  border-bottom: 1px solid #2a4060;
  font-size: 0.88rem;
}

.bv-einsatzdaten-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bv-einsatzdaten-row dt {
  margin: 0;
  color: #8fa3bd;
  font-weight: 600;
}

.bv-einsatzdaten-row dd {
  margin: 0;
  color: #f0f4fa;
  font-weight: 500;
  word-break: break-word;
  white-space: pre-wrap;
}

.berichte-dienst-block .ev-bericht-label {
  font-size: 1rem;
  margin-bottom: 8px;
}

.bv-msg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
}

.bv-msg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.bv-fz-kennung-toolbar {
  margin-bottom: 8px;
}

.bv-fz-checklist {
  display: grid;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 10px;
}

.bv-fz-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bv-fz-search {
  width: 100%;
}

.bv-msg-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px solid #2a4060;
  font-size: 0.95rem;
}

.bv-msg-item .msg-time {
  grid-row: 1 / -1;
  font-weight: 600;
  color: #90caf9;
}

.bv-msg-item .bv-msg-kat {
  grid-column: 2;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--msg-kat-color, #90caf9);
}

.bv-msg-text {
  line-height: 1.45;
}

.bv-msg-route,
.bv-msg-user {
  font-size: 0.82rem;
  color: #8fa3bd;
}

.bv-msg-item.msg-gestrichen {
  opacity: 0.55;
  text-decoration: line-through;
}

.bv-trupp-list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.bv-trupp-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  margin-bottom: 10px;
  background: #243652;
  border-radius: 10px;
  font-size: 0.95rem;
}

.bv-trupp-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bv-trupp-info small {
  color: #8fa3bd;
}

.bv-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 10px;
}

.bv-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.bv-member-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.bv-einsatz-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bv-einsatz-row input[type="time"] {
  font-size: 1rem;
  padding: 8px;
}

.bv-min-label {
  color: var(--muted);
  font-size: 0.9rem;
  min-width: 52px;
}

.bv-trupp-panel {
  max-width: 620px;
  width: 95vw;
}

@media (max-width: 1100px) {
  .berichte-body-wide {
    flex-direction: column;
    overflow-y: auto;
  }

  .berichte-sidebar {
    flex: 0 0 auto;
    max-width: none;
    min-width: 0;
    max-height: 320px;
    margin-right: 0;
  }

  .berichte-collapse-btn {
    flex: 0 0 10px;
    width: 100%;
    min-height: 10px;
    border-right: none;
    border-bottom: 1px solid #2a4060;
  }

  .berichte-body-wide.berichte-sidebar-collapsed .berichte-sidebar {
    display: none;
  }

  .berichte-body-wide.berichte-sidebar-collapsed .berichte-collapse-btn {
    border-left: none;
  }

  .berichte-panels {
    grid-template-columns: 1fr;
  }
}

.archiv-search {
  min-width: 280px;
  max-width: 420px;
  padding: 10px 14px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #3a5275;
  background: #1a2d45;
  color: #e8edf5;
}

.archiv-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 0 8px;
}

.archiv-action-bar .bv-action-btn {
  min-width: 160px;
}

.archiv-readonly-panel {
  max-width: 720px;
  width: 96vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.archiv-readonly-panel .modal-body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.archiv-modal-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #2a4060;
}

.archiv-einstufung-list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.archiv-einstufung-list li {
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #243652;
  border-radius: 8px;
  border: 1px solid #2a4060;
}

.berichte-readonly-text {
  background: #243652;
  border: 1px solid #2a4060;
  border-radius: 8px;
  padding: 14px 16px;
  min-height: 100px;
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 1rem;
}

.bv-upload-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 14px;
}

.bv-upload-empty {
  margin: 0;
}

.bv-upload-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.bv-upload-del {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1;
  background: rgba(15, 27, 42, 0.82);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.bv-upload-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
}

.bv-upload-open.is-static {
  cursor: default;
  opacity: 0.72;
}

.bv-upload-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  background: #1a2d45;
  border: 1px solid #2f4562;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bv-upload-open:not(.is-static):hover .bv-upload-thumb,
.bv-upload-open:not(.is-static):focus-visible .bv-upload-thumb {
  border-color: #4a7ab8;
  box-shadow: 0 0 0 2px rgba(74, 122, 184, 0.35);
}

.bv-upload-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bv-upload-kind-icon {
  font-size: 1.35rem;
  font-weight: 700;
  color: #9eb4cc;
  letter-spacing: 0.02em;
}

.bv-upload-kind-icon.hidden {
  display: none;
}

.bv-upload-thumb-pdf .bv-upload-kind-icon {
  color: #ff8a80;
}

.bv-upload-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 0 2px;
}

.bv-upload-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.bv-upload-input {
  flex: 1;
  min-width: 200px;
  font-size: 0.95rem;
}

.bv-upload-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bv-upload-meta {
  font-size: 0.72rem;
  color: #8fa3bd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-preview-panel {
  max-width: 920px;
  width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.upload-preview-body {
  flex: 1;
  min-height: 360px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1b2a;
}

.upload-preview-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.upload-preview-pdf {
  width: 100%;
  min-height: 65vh;
  border: none;
  background: #fff;
}

.va-log-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.va-log-toolbar input[type="search"] {
  flex: 1 1 180px;
  min-width: 140px;
}

.va-table-wrap {
  max-height: min(70vh, 720px);
  overflow: auto;
}

.va-cell-wrap {
  max-width: 360px;
  white-space: normal;
  word-break: break-word;
  font-size: 0.85rem;
}

/* Verwaltung Archiv */
.va-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.va-stat-card {
  background: #1a2d45;
  border: 1px solid #2a4060;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.va-stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e8f0fa;
}

.va-stat-label {
  font-size: 0.78rem;
  color: #8fa3bd;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.va-subnav {
  margin-bottom: 12px;
}

.va-filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.va-filter-panel input[type="search"] {
  flex: 1 1 180px;
  min-width: 140px;
}

.va-typ-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.va-typ-login { background: rgba(21, 101, 192, 0.25); color: #90caf9; }
.va-typ-aenderung { background: rgba(230, 81, 0, 0.22); color: #ffcc80; }
.va-typ-durchfuehrung { background: rgba(46, 125, 50, 0.22); color: #a5d6a7; }
.va-typ-alarm { background: rgba(198, 40, 40, 0.22); color: #ef9a9a; }

/* Berichte Statistik */
.bv-statistik-section {
  flex: 0 0 auto;
  max-height: 42%;
}

.bv-statistik-summary {
  overflow-y: auto;
  max-height: 220px;
}

.vs-statistik-summary {
  max-height: none;
  overflow: visible;
}

.vs-stat-kat-head-empty {
  opacity: 0.72;
}

.vs-stat-row-zero {
  opacity: 0.55;
}

.vs-stat-row-zero strong {
  font-weight: 500;
}

.bv-stat-total {
  font-size: 0.88rem;
  font-weight: 600;
  color: #c5d0de;
  margin-bottom: 10px;
}

.bv-stat-kat {
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 3px solid var(--kat-color, #546e7a);
}

.bv-stat-kat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #dce4f0;
  margin-bottom: 4px;
}

.bv-stat-kat-count {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.bv-stat-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  color: #8fa3bd;
}

.bv-stat-sub li {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}

.vs-stat-clickable {
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s ease;
}

.vs-stat-clickable:hover,
.vs-stat-clickable:focus-visible {
  background: rgba(66, 165, 245, 0.12);
  outline: none;
}

.bv-stat-kat-head.vs-stat-clickable {
  padding: 2px 4px;
  margin: -2px -4px 4px;
}

.bv-stat-sub .vs-stat-clickable {
  padding: 2px 4px;
  margin: 0 -4px;
}

.bv-stat-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.bv-stat-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bv-stat-einstufungen {
  margin: 0;
  font-size: 0.95rem;
  color: #c5d0de;
}

.bv-einstufung-kat {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.bv-einstufung-select-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #9fb0c8;
  margin: 12px 0 6px;
}

.bv-einstufung-select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #2a3f5c;
  background: #152238;
  color: #e8ecf2;
}

.bv-einstufung-select option {
  padding: 6px 8px;
  border-radius: 4px;
}

.bv-einstufung-select option:checked {
  background: linear-gradient(0deg, #1e4a7a 0%, #1e4a7a 100%);
  color: #fff;
}

.bv-einstufung-desc {
  margin: 8px 0 0;
  min-height: 2.4em;
  color: #c5d4e8;
  font-style: italic;
}

.bv-statistik-dropdown-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bv-einstufung-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 50vh;
  overflow-y: auto;
}

.bv-einstufung-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Einsatzeinstufung-Buttons: ruhiges Blau in allen Kategorien (Kategorie-Farbe nur am Pill) */
.bv-einstufung-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(74, 123, 167, 0.42);
  background: rgba(30, 74, 122, 0.2);
  color: #d6e4f2;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.bv-einstufung-btn:hover:not(:disabled) {
  background: rgba(30, 74, 122, 0.34);
  border-color: rgba(90, 150, 200, 0.58);
}

.bv-einstufung-btn.is-selected {
  background: #1e4a7a;
  border-color: #3d7ab0;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(61, 122, 176, 0.35);
}

.bv-einstufung-btn.is-selected:hover:not(:disabled) {
  background: #235a92;
  border-color: #4a8bc4;
}

.bv-einstufung-btn:disabled {
  cursor: default;
}

.bv-einstufung-btn.is-selected:disabled {
  opacity: 1;
}

.bv-einstufung-btn:not(.is-selected):disabled {
  opacity: 0.45;
}

.bv-einstufung-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.92rem;
}

.bv-einstufung-opt-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bv-einstufung-opt-name {
  font-weight: 600;
  color: #e8ecf2;
}

.bv-einstufung-opt-desc {
  font-size: 0.85rem;
  color: #9fb0c8;
  line-height: 1.35;
}

.bv-einstufung-opt input {
  margin-top: 3px;
}

/* Berichte Atemschutzstatistik */
.bv-atemschutz-stats-section {
  flex: 0 0 auto;
  max-height: 38%;
}

.bv-atemschutz-stats {
  overflow-y: auto;
  max-height: 200px;
}

.bv-as-total {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c5d0de;
  margin-bottom: 8px;
}

.bv-as-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.bv-as-table th,
.bv-as-table td {
  padding: 4px 6px;
  text-align: left;
  border-bottom: 1px solid #2a4060;
}

.bv-as-table th {
  color: #8fa3bd;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.bv-as-table td:nth-child(2),
.bv-as-table td:nth-child(3),
.bv-as-table th:nth-child(2),
.bv-as-table th:nth-child(3) {
  text-align: right;
  width: 2.5rem;
}

.bv-as-table .vs-as-user-row {
  cursor: pointer;
}

.bv-as-table .vs-as-user-row:hover td {
  background: rgba(66, 165, 245, 0.12);
}

.vs-as-modal-panel {
  width: min(720px, 96vw);
}

.vs-as-modal-body {
  max-height: 60vh;
  overflow: auto;
}

.vs-as-einsaetze-table .vs-as-min {
  text-align: right;
  white-space: nowrap;
}

.vs-as-einsatz-link {
  font: inherit;
  color: #64b5f6;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vs-as-einsatz-link:hover {
  color: #90caf9;
}

.bv-atemschutz-summary {
  margin-bottom: 12px;
}

.bv-as-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bv-as-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.bv-as-ja {
  background: rgba(46, 125, 50, 0.35);
  color: #a5d6a7;
}

.bv-as-nein {
  background: rgba(84, 110, 122, 0.35);
  color: #b0bec5;
}

.bv-as-meta {
  font-size: 0.85rem;
  color: #8fa3bd;
}

.bv-as-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.bv-as-detail-table th,
.bv-as-detail-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid #2a4060;
  vertical-align: top;
}

.bv-as-detail-table th {
  color: #8fa3bd;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

.bv-as-trupp-summary-table .bv-as-traeger-names {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bv-as-traeger-name {
  display: block;
  line-height: 1.35;
}

.bv-as-trupp-row-clickable {
  cursor: pointer;
}

.bv-as-trupp-row-clickable:hover td {
  background: rgba(66, 165, 245, 0.12);
}

.bv-as-trupp-row-open td {
  background: rgba(66, 165, 245, 0.08);
}

.bv-as-trupp-summary-table td.bv-as-num,
.bv-as-trupp-summary-table th:nth-child(2),
.bv-as-trupp-summary-table th:nth-child(3) {
  text-align: right;
  width: 5.5rem;
}

.bv-as-trupp-row-clickable td:first-child::before {
  content: '▸ ';
  color: #8fa3bd;
  font-size: 0.7rem;
}

.bv-as-trupp-row-open.bv-as-trupp-row-clickable td:first-child::before {
  content: '▾ ';
}

.bv-as-einsatz-list {
  list-style: none;
  margin: 0;
  padding: 4px 8px 8px 16px;
}

.bv-as-einsatz-list li {
  font-size: 0.82rem;
  color: #8fa3bd;
  padding: 2px 0;
}

.bv-as-trupp-einsaetze td {
  padding-top: 0;
  border-top: none;
  background: rgba(15, 23, 42, 0.35);
}

.bv-as-einsatz-empty {
  margin: 0;
  padding: 4px 8px 8px 16px;
}

.bv-as-trupp-table td:last-child {
  font-size: 0.8rem;
  color: #8fa3bd;
}

.banner-quick-tab.active {
  border-color: #5a8a5e;
  background: rgba(90, 138, 94, 0.2);
}

.bv-as-choice-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.bv-as-choice {
  min-width: 100px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #2a4060;
  background: #1a2d45;
  color: #e8f0fa;
  font-size: 0.95rem;
}

.tagebuch-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tagebuch-wa-select {
  min-width: 160px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #2a4060;
  background: #1a2d45;
  color: #e8f0fa;
}

.tagebuch-day-meta {
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid #2a4060;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.tagebuch-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.88rem;
  color: #c5d4e8;
}

.tagebuch-compose {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #2a4060;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.tagebuch-compose-row {
  display: grid;
  grid-template-columns: auto 1fr auto 120px auto 1fr;
  gap: 8px;
  align-items: center;
}

.tagebuch-compose-row label {
  color: #9fb0c8;
  font-size: 0.82rem;
}

.tagebuch-compose textarea,
.tagebuch-compose input,
.tagebuch-compose select {
  width: 100%;
  box-sizing: border-box;
}

.tagebuch-msg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.tagebuch-msg-item {
  border: 1px solid #2a4060;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
}

.tagebuch-msg-item.done {
  opacity: 0.72;
}

.tagebuch-msg-item.gestrichen .tagebuch-msg-body {
  text-decoration: line-through;
  opacity: 0.55;
}

.tagebuch-msg-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  margin-bottom: 6px;
}

.tagebuch-msg-time {
  font-weight: 700;
  color: #dce8f8;
}

.tagebuch-msg-topic {
  color: #8ec0ff;
  font-size: 0.88rem;
}

.tagebuch-msg-body {
  white-space: pre-wrap;
  color: #e8f0fa;
  line-height: 1.45;
}

.tagebuch-msg-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.tagebuch-detail-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

#tagebuch-module-host.workspace-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tagebuch-bootstrap-placeholder {
  opacity: 0.85;
}

/* Tagebuch – Alarm4Port-Layout */
.split-main.tagebuch-tab-active .einsatz-column.einsatz-idle-mode {
  background: #17263a;
}

.tagebuch-app-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  gap: 10px;
  padding: 12px 14px;
  background: #152238;
  color: #e8edf5;
  overflow: hidden;
}

@media (max-width: 900px) {
  .tagebuch-compose-row {
    grid-template-columns: 1fr 1fr;
  }
}

.ve-new-input {
  flex: 1 1 240px;
  min-width: 180px;
}

.tagebuch-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tagebuch-state-label {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #e8edf5;
}

.tagebuch-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tb-btn-primary {
  background: rgba(0, 200, 110, 0.9);
  color: #111;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
}

.tagebuch-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0.9;
}

.tagebuch-workspace {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 10px;
}

.tagebuch-day-bar {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 4px 8px;
  align-items: center;
  padding: 6px 10px;
  background: #1e2f47;
  border: 1px solid #2a3f5c;
  border-radius: 8px;
}

.tagebuch-day-bar label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #9fb0c8;
  white-space: nowrap;
}

.tagebuch-day-bar select {
  font-family: inherit;
  font-size: 0.78rem;
  padding: 4px 6px;
  height: 28px;
  border: 1px solid #2a3f5c;
  border-radius: 6px;
  background: #152238;
  color: #e8ecf2;
  min-width: 0;
}

.tagebuch-mid-split {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.tagebuch-messages-panel,
.tagebuch-side-panel {
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #1a2d45;
  border: 1px solid #2a4060;
  border-radius: 12px;
  padding: 10px 12px;
  overflow: hidden;
}

.tagebuch-messages-panel {
  flex: 1;
  --tb-col-zeit: 118px;
  --tb-col-kat: 96px;
  --tb-col-created: 110px;
  --tb-blue-header: #1a3d6b;
  --tb-blue-row: #1c3352;
  --tb-blue-row-alt: #243f62;
  --tb-blue-hover: #2d5078;
  --tb-blue-border: #3a5f8a;
  --tb-blue-strip: rgba(42, 90, 138, 0.22);
  --tb-blue-input: #152238;
}

.tagebuch-messages-panel h3,
.tagebuch-side-panel h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

#tb-topic {
  background: #152238;
  border: 1px solid #2a3f5c;
  color: #e8ecf2;
  border-radius: 8px;
  padding: 5px 8px;
  font: inherit;
  font-size: 0.85rem;
  height: 30px;
  box-sizing: border-box;
}

#tb-topic:focus {
  outline: none;
  border-color: #4a8fd4;
  box-shadow: 0 0 0 2px rgba(74, 143, 212, 0.2);
}

#tb-topic option {
  background: #152238;
  color: #e8ecf2;
}

.tagebuch-compose-block textarea,
.tagebuch-compose-block input,
.tagebuch-compose-block select,
.tagebuch-search {
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text);
}

.tagebuch-compose-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid #2a3f5c;
  border-radius: 10px;
  background: #1e2f47;
}

/* Compose: Kategorie + Meldender nebeneinander, Meldung darunter */
.tagebuch-compose-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.tagebuch-compose-row-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
  width: 100%;
  min-width: 0;
}

.tagebuch-compose-row-pair .tb-compose-label {
  text-align: center;
}

.tagebuch-compose-row-pair .tagebuch-compose-control {
  max-width: none;
}

.tagebuch-compose-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  min-width: 0;
}

.tagebuch-compose-field-wide {
  width: 100%;
}

.tb-compose-label {
  margin: 0;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9fb0c8;
  text-align: left;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.tagebuch-compose-field-wide textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  max-height: 120px;
  resize: vertical;
  padding: 6px 10px;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid #2a3f5c;
  border-radius: 8px;
  background: #152238;
}

.tagebuch-compose-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.tagebuch-compose-field-wide .tagebuch-compose-control {
  max-width: none;
}

.tagebuch-compose-control .tb-compose-accent-btn.admin-only {
  padding: 0 6px;
  font-size: 0.72rem;
  min-width: 28px;
}

.tagebuch-compose-control #tb-topic,
.tagebuch-compose-control #tb-meldender-display {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  margin-bottom: 0;
}

.tagebuch-compose-block textarea:focus,
.tagebuch-search:focus {
  outline: none;
  border-color: #4a8fd4;
  box-shadow: 0 0 0 2px rgba(74, 143, 212, 0.2);
}

.tagebuch-compose-block textarea::placeholder {
  color: #8fa3bd;
  opacity: 1;
}

.tagebuch-compose-block select {
  margin-bottom: 0;
}

.tb-compose-accent-btn,
.tb-meldender-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 30px;
  height: 30px;
  margin: 0;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #4a90d9;
  background: #2e5a8a;
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.tb-meldender-plus {
  width: 30px;
  padding: 0;
  font-size: 1rem;
}

.tb-compose-accent-btn:hover,
.tb-meldender-plus:hover {
  background: #4a90d9;
  border-color: #6aa8e8;
}

.tb-compose-accent-btn:disabled,
.tb-meldender-plus:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#tb-meldender-display {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 7px 9px;
  margin-bottom: 0;
  border: 1px solid #2a3f5c;
  border-radius: 8px;
  background: #152238;
  color: var(--text);
  height: 34px;
  box-sizing: border-box;
}

.tb-nachtrag-panel {
  max-width: min(420px, 96vw);
}

.tb-nachtrag-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: #9fb0c8;
}

.tb-nachtrag-panel input[type="time"] {
  margin-bottom: 0;
  padding: 10px 12px;
  border: 1px solid #2a3f5c;
  border-radius: 8px;
  background: #152238;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.tagebuch-compose-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  margin: 4px auto 0;
  padding-top: 2px;
}

.tagebuch-compose-actions button {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  min-height: 28px;
  border-radius: 6px;
  line-height: 1.2;
  width: 100%;
  text-align: center;
  justify-content: center;
}

.tagebuch-compose-actions button.secondary {
  padding: 5px 10px;
}

.tagebuch-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--tb-blue-border);
  border-radius: 8px;
  background: var(--tb-blue-input);
  box-sizing: border-box;
}

.tagebuch-msg-table-wrap {
  flex: 1 1 auto;
  min-height: min(480px, 55vh);
  overflow: auto;
  border-radius: 10px;
}

.tagebuch-msg-table-wrap.verwaltung-table-wrap {
  border: 1px solid var(--tb-blue-border);
  background: var(--tb-blue-row);
  box-shadow: none;
}

.tagebuch-msg-table.verwaltung-table {
  table-layout: fixed;
  font-size: 0.82rem;
}

.tagebuch-msg-table.verwaltung-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.tagebuch-msg-table.verwaltung-table th {
  padding: 6px 8px;
  font-size: 0.72rem;
  background: var(--tb-blue-header);
  color: #c5d8f0;
  border-bottom: 1px solid var(--tb-blue-border);
  border-right: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tagebuch-msg-table.verwaltung-table td {
  padding: 6px 8px;
  font-size: 0.82rem;
  line-height: 1.35;
  border-bottom: 1px solid #2a3f5c;
  border-right: none;
  vertical-align: top;
}

.tagebuch-msg-table.verwaltung-table tbody tr {
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.tagebuch-msg-table.verwaltung-table tbody tr:hover:not(.mark-red):not(.mark-yellow):not(.mark-green) {
  background: var(--tb-blue-hover);
}

.tagebuch-msg-table.verwaltung-table tbody tr:nth-child(odd) {
  background: var(--tb-blue-row);
}

.tagebuch-msg-table.verwaltung-table tbody tr:nth-child(even) {
  background: var(--tb-blue-row-alt);
}

.tagebuch-msg-table tr.done { opacity: 0.65; }
.tagebuch-msg-table tr.gestrichen td { text-decoration: line-through; opacity: 0.5; }
.tagebuch-msg-table tr.mark-red td { background: rgba(230, 57, 70, 0.22) !important; }
.tagebuch-msg-table tr.mark-yellow td { background: rgba(243, 156, 18, 0.22) !important; }
.tagebuch-msg-table tr.mark-green td { background: rgba(46, 204, 113, 0.18) !important; }
.tagebuch-msg-table .tb-col-zeit {
  white-space: nowrap;
  width: var(--tb-col-zeit);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  color: #8fa3bd;
}
.tagebuch-msg-table .tb-col-kat {
  width: var(--tb-col-kat);
  max-width: var(--tb-col-kat);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.tagebuch-msg-table .tb-msg-kat {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--msg-kat-color, #90caf9);
}

.tagebuch-msg-table .tb-col-created {
  white-space: nowrap;
  width: var(--tb-col-created);
  max-width: var(--tb-col-created);
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.82rem;
}
.tagebuch-msg-table .tb-col-text {
  width: auto;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #e8eef8;
  min-width: 0;
  vertical-align: top;
  padding-top: 10px;
  padding-bottom: 10px;
}

.tagebuch-msg-table td.empty,
.tagebuch-msg-table .empty {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 24px 12px;
  border-right: none;
}

.tagebuch-side-card {
  background: #1e2f47;
  border: 1px solid #2a3f5c;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tagebuch-side-card h3 {
  margin: 0 0 8px;
  flex-shrink: 0;
}

.tagebuch-uebergabe-card {
  flex: 1 1 50%;
  min-height: 200px;
}

.tagebuch-einsatz-card,
.tagebuch-status-card {
  flex: 0 0 auto;
}

.tagebuch-side-table-wrap,
.tagebuch-uebergabe-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.tagebuch-einsatz-card .tagebuch-side-table-wrap,
.tagebuch-status-card .tagebuch-side-table-wrap {
  flex: 0 0 auto;
  max-height: 200px;
}

.tagebuch-uebergabe-card .tagebuch-uebergabe-table-wrap {
  max-height: none;
  min-height: 140px;
}

.tagebuch-uebergabe-table tbody tr {
  cursor: pointer;
}

.tagebuch-uebergabe-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ev-personen-host {
  margin-top: 4px;
}

.ev-personen-host .bv-personen-table-wrap {
  max-height: 220px;
}

.ev-personen-panel,
.ev-medien-panel {
  width: min(920px, 96vw);
  max-height: 90vh;
}

.ev-personen-modal-body .bv-personen-table-wrap {
  max-height: min(52vh, 480px);
  overflow: auto;
}

.ev-medien-panel .bv-upload-gallery {
  max-height: min(58vh, 520px);
  overflow: auto;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.bma-einstufung-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tagebuch-einsatz-table tr.einsatz-aktiv td:last-child {
  color: #7dcea0;
}

.tagebuch-einsatz-table tr.einsatz-done td:last-child {
  color: var(--muted);
}

.tagebuch-mini-table th {
  padding: 4px 6px;
  text-align: left;
  font-size: 0.78rem;
  color: #9fb0c8;
  border-bottom: 1px solid #2a3f5c;
  position: sticky;
  top: 0;
  background: #1a3d6b;
  z-index: 1;
}

.tagebuch-status-table td:nth-child(3) {
  font-family: Consolas, monospace;
  font-size: 0.8rem;
}

.tb-user-picker-panel {
  max-width: min(520px, 96vw);
  width: 96vw;
}

.tb-user-picker-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  max-height: min(50vh, 420px);
  overflow: auto;
}

.tb-user-picker-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 4px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.tb-user-picker-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tb-user-picker-item.selected {
  background: #2e7d32;
  border: 1px solid #1b5e20;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(129, 199, 132, 0.35);
}

.tb-user-picker-item.selected:hover {
  background: #388e3c;
  border-color: #1b5e20;
}

.tb-user-picker-item.selected .tb-user-picker-wa {
  color: rgba(255, 255, 255, 0.85);
}

.bv-trupp-members-list {
  margin-bottom: 8px;
}

.bv-trupp-member-pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bv-trupp-member-pills li {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(36, 54, 82, 0.08);
  font-size: 0.88rem;
}

.bv-personen-table-wrap {
  overflow-x: auto;
  margin-bottom: 10px;
}

.bv-personen-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.bv-personen-table th,
.bv-personen-table td {
  border: 1px solid #2a4060;
  padding: 6px 8px;
  text-align: left;
  vertical-align: middle;
}

.bv-personen-table th {
  background: #243652;
  color: #c5d8f0;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bv-personen-table td {
  background: #1a2d45;
  color: #dce4f0;
}

.bv-personen-table input,
.bv-personen-table select,
.bp-person-name,
.bp-person-pnr,
.bp-person-firma,
.bp-person-telefon,
.bp-person-art {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #243652;
  border: 1px solid #3a5275;
  color: #dce4f0;
}

.bv-personen-table .verwaltung-row-actions {
  display: table-cell;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  padding: 4px 6px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.bv-personen-table .verwaltung-row-actions .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
}

.berichte-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #2a4060;
  padding-bottom: 10px;
}

.berichte-panel-head .berichte-panel-title {
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
  flex: 1;
}

.berichte-panel-head .icon-btn {
  background: #243652;
  border-color: #3a5275;
  color: #dce4f0;
  flex-shrink: 0;
  margin-top: 2px;
}

.berichte-panel-head-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.berichte-panel-head-actions .icon-btn {
  margin-top: 2px;
}

.bv-personen-empty-hint {
  margin-bottom: 8px;
}

.bv-personen-edit-table th:last-child {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  padding: 4px 6px;
}

.berichte-panel-head .icon-btn.is-active {
  background: #1565c0;
  border-color: #1976d2;
  color: #fff;
}

#bv-personen-view.hidden,
#bv-personen-schema.hidden {
  display: none;
}

.bv-fz-kennung-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdf-fz-kennung-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pdf-fz-kennung-list .pdf-fz-kennung-chip {
  display: inline-block;
  font-size: 9.5pt;
  padding: 4px 10px;
  border: 1px solid #b8c4d4;
  border-radius: 6px;
  background: #eef2f7;
  color: #1a1a1a;
  line-height: 1.3;
}

.bv-fz-kennung-btn {
  font-size: 0.9rem;
}

.bv-personen-schema-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.bv-personen-schema-actions input[type="text"] {
  flex: 1 1 180px;
  min-width: 0;
}

.ve-section-divider {
  margin: 28px 0 20px;
  border: 0;
  border-top: 1px solid var(--border, #d8dee8);
}

.va-variant-row {
  margin-bottom: 10px;
}

.va-variant-select {
  width: 100%;
}

.va-typ-badge.bma_schiff,
.va-typ-badge.va-typ-bma_schiff {
  background: #8b4513;
  color: #fff;
}

.tb-user-picker-wa {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.tb-mel-picker-row {
  grid-column: 1 / -1;
}

.tb-ctx-menu hr.tb-ctx-sep {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

.tagebuch-mini-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
}

.tagebuch-mini-table td {
  padding: 4px 6px;
  border-bottom: 1px solid rgba(42, 63, 92, 0.65);
  color: #dce4f0;
}

.tagebuch-mini-table .tb-mini-col-dt {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  color: #8fa3bd;
}

.tagebuch-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
  font-family: Consolas, monospace;
  font-size: 0.8rem;
}

.tagebuch-status-list li {
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tb-st-zeit { opacity: 0.75; margin-right: 6px; }

.tb-checklist-panel {
  max-width: min(920px, 96vw);
  width: 96vw;
}

.tb-check-hint {
  margin: 0 0 10px;
  font-weight: 800;
}

.tb-check-wa-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 12px;
}

#tb-check-table-wrap {
  max-height: min(52vh, 480px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 10px;
}

.tb-checklist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.tb-checklist-table th,
.tb-checklist-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: middle;
}

.tb-checklist-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #1f2f45;
  font-weight: 800;
}

.tb-checklist-table .tb-cl-kat {
  font-weight: 800;
  color: #b8d4f8;
  width: 18%;
  vertical-align: top;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.tb-checklist-table .tb-cl-title {
  width: 32%;
}

.tb-checklist-table .tb-cl-ok {
  width: 56px;
  text-align: center;
  white-space: nowrap;
}

.tb-checklist-table .tb-cl-ok label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.tb-checklist-table .tb-cl-reason {
  width: 28%;
}

.tb-checklist-table .tb-cl-why {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #2a4060;
  background: #152238;
  color: inherit;
  font: inherit;
}

.tb-checklist-table .tb-cl-why:disabled {
  opacity: 0.45;
}

.tb-checklist-table tr:has(.tb-cl-no:checked) .tb-cl-why {
  border-color: #4a8fd4;
}

.tb-check-editor {
  width: 100%;
  font-family: Consolas, monospace;
  font-size: 0.85rem;
}

.tagebuch-compose-field-wide textarea#tb-content {
  min-height: 110px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.tb-msg-dialog {
  width: min(720px, 96vw);
  max-height: 92vh;
}

.tb-msg-dialog-header {
  gap: 12px;
  align-items: flex-start;
}

.tb-msg-dialog-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.tb-msg-dialog-heading .tb-msg-kat {
  flex-shrink: 0;
  margin-top: 2px;
}

.tb-msg-dialog-titles {
  min-width: 0;
}

.tb-msg-dialog-titles h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #e8eef8;
}

.tb-msg-dialog-meta {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.tb-msg-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px 14px;
}

.tb-msg-section-card {
  border: 1px solid var(--border, #2a3f5c);
  border-radius: 10px;
  background: rgba(8, 20, 36, 0.35);
  overflow: hidden;
}

.tb-msg-section-header {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.tb-msg-section-header h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #dce4f0;
}

.tb-msg-section-body {
  padding: 12px 14px 14px;
}

.tb-msg-section h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.tb-msg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-bottom: 10px;
}

.tb-msg-grid-wide {
  grid-column: 1 / -1;
}

.tb-msg-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--muted);
}

.tb-msg-grid label input {
  font: inherit;
  font-size: 0.92rem;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #2a3f5c;
  background: #152238;
  color: #e8eef8;
}

.tb-msg-grid label input:focus {
  outline: none;
  border-color: #3d6fa3;
}

.tb-msg-grid label input[readonly] {
  opacity: 0.88;
  cursor: default;
}

.tb-msg-text {
  white-space: pre-wrap;
  line-height: 1.45;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.tb-msg-content-edit {
  width: 100%;
  box-sizing: border-box;
  min-height: 180px;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #2a3f5c;
  background: #152238;
  color: #e8eef8;
  resize: vertical;
  margin-bottom: 10px;
}

.tb-msg-content-edit:focus {
  outline: none;
  border-color: #3d6fa3;
}

.tb-msg-content-edit[readonly] {
  opacity: 0.88;
  resize: none;
  background: rgba(0, 0, 0, 0.18);
}

.tb-comment-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  max-height: 220px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tb-comment-item {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tb-comment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.tb-comment-author {
  font-size: 0.86rem;
  color: #dce4f0;
}

.tb-comment-time {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.tb-comment-text {
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.tb-comment-compose {
  display: flex;
  gap: 8px;
}

.tb-comment-compose input {
  flex: 1;
  font: inherit;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #2a3f5c;
  background: #152238;
  color: #e8eef8;
}

.tb-comment-compose input:focus {
  outline: none;
  border-color: #3d6fa3;
}

.tb-msg-dialog-footer {
  border-top: 1px solid var(--border);
}

.tagebuch-uebergabe-table .tb-col-created {
  width: 22%;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #9eb0c8;
  font-size: 0.82rem;
}

.tb-topics-panel {
  width: min(520px, 96vw);
}

.tb-topics-table-wrap {
  border-color: var(--tb-blue-border, #2a3f5c);
  background: rgba(8, 20, 36, 0.45);
}

.tb-topics-table th.tb-topics-actions-col,
.tb-topics-table td.verwaltung-row-actions {
  width: 190px;
  text-align: right;
}

.tb-topics-table .tb-topic-name-cell {
  color: #dce4f0;
}

.tb-topics-table input.tb-topic-input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #2a3f5c;
  background: #152238;
  color: #e8ecf2;
}

.tb-topics-table input.tb-topic-input:focus {
  outline: none;
  border-color: #3d6fa3;
}

.tb-topics-tools {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.tb-msg-spacer { flex: 1; }

.tb-ctx-menu {
  position: fixed;
  z-index: 2000;
  background: #1e2f47;
  border: 1px solid #2a3f5c;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 160px;
}

.tb-ctx-menu button {
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

.tb-ctx-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tb-archiv-list { list-style: none; padding: 0; margin: 0; max-height: 50vh; overflow: auto; }
.tb-archiv-item {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  margin-bottom: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: inherit;
  cursor: pointer;
}

/* ELW Uebergabe-Status im Einsatz */
#ev-elw-btn.elw-uebernimmt {
  background: #2e7d32;
  border-color: #1b5e20;
  color: #fff;
}

#ev-elw-btn.elw-uebergibt {
  background: #c62828;
  border-color: #8e0000;
  color: #fff;
}

#ev-list-msgs li.msg-elw-uebernimmt .msg-content {
  background: rgba(46, 125, 50, 0.24);
  border: 1px solid rgba(46, 125, 50, 0.55);
  border-radius: 8px;
  padding: 6px 8px;
}

#ev-list-msgs li.msg-elw-uebergibt .msg-content {
  background: rgba(198, 40, 40, 0.22);
  border: 1px solid rgba(198, 40, 40, 0.55);
  border-radius: 8px;
  padding: 6px 8px;
}

.db-reset-form { max-width: 480px; }
.db-backup-form { max-width: 640px; margin-bottom: 1rem; }

.backup-path-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.backup-path-row input[type="text"] {
  flex: 1;
  min-width: 0;
}

.backup-path-row button {
  flex-shrink: 0;
  white-space: nowrap;
}

.backup-path-picker-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Verwaltung Statistik */
#section-statistik.verwaltung-section {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 20px;
}

.vs-statistik-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
}

.vs-statistik-intro .einsatz-card-title {
  margin-bottom: 4px;
}

.vs-statistik-intro .module-hint {
  margin: 0;
}

.vs-statistik-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 960px) {
  .vs-statistik-grid {
    grid-template-columns: 1fr;
  }
}

.vs-panel {
  margin-top: 0;
  padding: 14px 16px;
  background: #1a2940;
  border: 1px solid #2a3f5c;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.vs-panel-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vs-panel-head .einsatz-card-title {
  margin-bottom: 0;
}

.vs-panel-head .module-hint {
  margin: 0;
}

.vs-filter-row {
  margin: 0;
  gap: 10px 14px;
}

.vs-filter-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 0;
}

.vs-statistik-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
  max-height: none;
  overflow: visible;
}

.vs-statistik-summary .bv-stat-total {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.vs-statistik-summary .bv-stat-kat {
  margin-bottom: 0;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  border-left-width: 4px;
  min-height: 0;
}

.vs-statistik-summary .bv-stat-sub li {
  padding: 4px 0;
}

.vs-atemschutz-stats {
  max-height: none;
  overflow: visible;
}

.vs-atemschutz-stats .bv-as-table {
  font-size: 0.84rem;
}

.vs-atemschutz-stats .bv-as-table th,
.vs-atemschutz-stats .bv-as-table td {
  padding: 6px 8px;
}

.vs-export-form {
  max-width: 640px;
  margin: 0;
}

.vs-export-form label:not(.checkbox-row) {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vs-export-form input[type="text"] {
  width: 100%;
  max-width: none;
}

.vs-logo-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  padding: 0 4px 8px;
}

.vs-logo-preview {
  width: 120px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a2a40;
  border: 1px dashed #3a5275;
  border-radius: 8px;
  padding: 8px;
}

.vs-logo-preview-img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

.vs-logo-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.vs-logo-actions .button-like {
  display: inline-block;
  cursor: pointer;
}

/* Berichte Druck */
@page {
  size: A4 portrait;
  margin: 14mm 12mm;
}

.bv-print-panel,
.bv-pdf-panel { max-width: min(860px, 96vw); width: 100%; }
.bv-print-preview-wrap,
.bv-pdf-preview-wrap {
  max-height: 72vh;
  overflow: auto;
  background: #dde3ea;
  padding: 20px 16px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.bv-print-preview-host,
.bv-pdf-preview-host {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.berichte-print-doc {
  width: 210mm;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  color: #1a1a1a;
  padding: 16mm 14mm 14mm;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 8px 28px rgba(0, 0, 0, 0.12);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 10.5pt;
  line-height: 1.5;
  box-sizing: border-box;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.berichte-print-doc .pdf-body {
  overflow: visible;
  flex: none;
  min-height: auto;
}

.berichte-print-doc .pdf-table th,
.berichte-print-doc .pdf-table td {
  color: #1a1a1a;
  border-color: #ccd4de;
}
.berichte-print-doc .pdf-table th {
  background: #eef2f7;
  color: #333;
}
.berichte-print-doc .pdf-table td {
  background: #fff;
}
.berichte-print-doc .pdf-meldungen-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}
.berichte-print-doc .bv-as-trupp-summary-table th {
  color: #444;
  text-transform: none;
  font-size: 10pt;
  border-bottom: 1px solid #ccd4de;
}
.berichte-print-doc .bv-as-trupp-summary-table td {
  color: #1a1a1a;
  border-bottom: 1px solid #e4e9f0;
  vertical-align: top;
}
.berichte-print-doc .bv-as-traeger-name {
  color: #1a1a1a;
}
.berichte-print-doc .bv-stat-pill {
  color: #fff !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.berichte-print-doc p,
.berichte-print-doc li,
.berichte-print-doc dt,
.berichte-print-doc dd {
  color: #1a1a1a;
}
.berichte-print-doc .pdf-meta-grid div {
  background: #f3f6fa;
  color: #1a1a1a;
}
.berichte-print-doc .pdf-meta-grid span {
  color: #666;
}
.berichte-print-doc .pdf-meldung-entry {
  background: #fafbfc;
  border-color: #d8dfe8;
}
.berichte-print-doc .pdf-meldung-kat {
  color: #fff;
  background: #546e7a;
}

.berichte-print-window {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #1a1a1a;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  display: block !important;
}

html.berichte-print-root {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.berichte-print-window .berichte-print-doc {
  width: 100%;
  max-width: none;
  min-height: auto;
  height: auto;
  max-height: none;
  padding: 0;
  box-shadow: none;
  overflow: visible;
  display: block;
}

.bv-pdf-pages-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding-bottom: 8px;
}
.pdf-a4-page {
  display: flex;
  flex-direction: column;
  width: 210mm;
  min-height: 297mm;
  background: #fff;
  color: #1a1a1a;
  padding: 16mm 14mm 14mm;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 8px 28px rgba(0, 0, 0, 0.12);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 10.5pt;
  line-height: 1.5;
  box-sizing: border-box;
  position: relative;
}
.pdf-a4-page-sized {
  min-height: 297mm;
  height: 297mm;
  max-height: 297mm;
  overflow: hidden;
  page-break-after: always;
  break-after: page;
}
.pdf-a4-page-sized .pdf-body {
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}
.pdf-a4-page.pdf-a4-measure {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
.pdf-page-num {
  flex: 0 0 auto;
  margin: auto 0 0;
  padding: 8px 0 0;
  min-height: 28px;
  font-size: 8.5pt;
  color: #888;
  text-align: center;
  border-top: 1px solid #e8ecf1;
}
.pdf-footer-note {
  flex: 0 0 auto;
  margin: auto 0 0;
  padding: 8px 0 0;
  min-height: 28px;
  font-size: 8.5pt;
  color: #888;
  text-align: center;
  border-top: 1px solid #e8ecf1;
}
.pdf-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; flex-shrink: 0; padding-bottom: 10px; border-bottom: 2px solid #c62828; }
.pdf-header-left { flex: 1; min-width: 0; }
.pdf-logo { width: 200px; max-width: 45%; max-height: 72mm; height: auto; object-fit: contain; flex-shrink: 0; align-self: flex-start; margin-left: auto; }
.pdf-header-continued {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  flex-shrink: 0;
  border-bottom: 1px solid #dde3ea;
}
.pdf-header-continued-title {
  font-size: 9.5pt;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-logo-continued {
  width: 72px;
  max-height: 54px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.pdf-body { flex: 1 1 0; min-height: 0; overflow: hidden; }
.pdf-title { margin: 0 0 4px; font-size: 16pt; line-height: 1.25; font-weight: 700; color: #1a1a1a; }
.pdf-sub { margin: 0; color: #555; font-size: 10.5pt; }
.pdf-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0 16px;
}
.pdf-meta-grid div { background: #f3f6fa; border-radius: 6px; padding: 8px 10px; font-size: 10pt; }
.pdf-meta-grid span { display: block; color: #666; font-size: 9pt; margin-bottom: 2px; }
.pdf-table { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 9.5pt; }
.pdf-table th, .pdf-table td { border: 1px solid #c5ced9; padding: 5px 8px; text-align: left; vertical-align: top; }
.pdf-table th { background: #e8edf3; font-weight: 600; color: #333; font-size: 9pt; }
.pdf-table tbody tr:nth-child(even) td { background: #f7f9fb; }
.pdf-data-grid { margin: 0 0 12px; padding: 0; }
.pdf-data-row {
  display: grid;
  grid-template-columns: minmax(110px, 32%) 1fr;
  gap: 6px 10px;
  padding: 4px 0;
  border-bottom: 1px solid #e4e9f0;
  font-size: 10pt;
}
.pdf-data-row:last-child { border-bottom: none; }
.pdf-data-row dt { margin: 0; color: #555; font-weight: 600; }
.pdf-data-row dd { margin: 0; color: #1a1a1a; word-break: break-word; }
.pdf-section { margin: 10px 0 14px; page-break-inside: avoid; }
.pdf-section[data-pdf-split-mode="table-flow"] {
  page-break-inside: auto;
  break-inside: auto;
  margin-bottom: 0;
}
.pdf-section-table-continued {
  margin: 0;
  padding: 0;
  page-break-inside: auto;
  break-inside: auto;
}
.pdf-section-table-continued .pdf-meldungen-table {
  margin-top: 0;
  margin-bottom: 0;
}
.pdf-section-table-continued .pdf-meldungen-table tbody tr:first-child td {
  border-top: 1px solid #ccd4de;
}
.pdf-body-page-break {
  padding-bottom: 6mm;
  box-sizing: border-box;
}
.pdf-section-continued h3 { font-size: 10.5pt; color: #555; }
.pdf-section h3,
.pdf-section-heading {
  margin: 12px 0 6px;
  font-size: 11pt;
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 1px solid #e0e5ec;
  padding-bottom: 4px;
}
.pdf-section-heading:first-child,
.pdf-body > .pdf-section-heading:first-child {
  margin-top: 0;
}
.pdf-section-heading-continued {
  font-size: 10.5pt;
  color: #555;
}
.pdf-section h3 { margin: 0 0 8px; font-size: 11pt; font-weight: 700; color: #1a1a1a; border-bottom: 1px solid #e0e5ec; padding-bottom: 5px; }
.pdf-section h3::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.95em;
  background: #c62828;
  margin-right: 8px;
  vertical-align: text-bottom;
  border-radius: 1px;
}
.pdf-meldungen-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.pdf-meldung-entry {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #d8dfe8;
  border-radius: 6px;
  background: #fafbfc;
  page-break-inside: avoid;
  break-inside: avoid;
}
.pdf-meldung-entry:last-child {
  margin-bottom: 0;
}
.pdf-meldung-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid #e4e9f0;
}
.pdf-meldung-zeit {
  font-weight: 700;
  font-size: 10pt;
  color: #1a1a1a;
  white-space: nowrap;
}
.pdf-meldung-kat {
  display: inline-block;
  font-size: 8.5pt;
  font-weight: 600;
  color: #fff;
  background: #546e7a;
  border-radius: 4px;
  padding: 2px 7px;
  line-height: 1.3;
}
.pdf-meldung-route {
  font-size: 9pt;
  color: #555;
}
.pdf-meldung-body {
  font-size: 10pt;
  line-height: 1.5;
  color: #1a1a1a;
  white-space: pre-wrap;
  word-break: break-word;
}
.pdf-meldung-foot {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dashed #e0e5ec;
}
.pdf-meldung-user {
  font-size: 8.5pt;
  color: #666;
}
.pdf-meldung-kommentar {
  margin-top: 6px;
  font-size: 9pt;
  color: #444;
  font-style: italic;
}
.pdf-meldung-entry.pdf-meldung-gestrichen .pdf-meldung-body,
.pdf-meldung-entry.pdf-meldung-gestrichen .pdf-meldung-kommentar {
  text-decoration: line-through;
  color: #888;
}
.pdf-meldungen-table {
  table-layout: fixed;
  width: 100%;
}
.pdf-meldungen-table th,
.pdf-meldungen-table td {
  vertical-align: top;
  padding: 7px 10px;
  line-height: 1.45;
}
.pdf-meldungen-table .pdf-col-zeit {
  width: 68px;
  white-space: nowrap;
  font-weight: 600;
  color: #1a1a1a;
}
.pdf-meldungen-table col.pdf-col-route { width: 17%; }
.pdf-meldungen-table .pdf-col-route {
  font-size: 9pt;
  color: #555;
  word-break: break-word;
}
.pdf-meldungen-table col.pdf-col-user { width: 13%; }
.pdf-meldungen-table .pdf-col-user {
  font-size: 9pt;
  color: #555;
  word-break: break-word;
}
.pdf-meldungen-table .pdf-meldung-text {
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #1a1a1a;
}
.pdf-meldungen-table tr.pdf-meldung-gestrichen td {
  opacity: 0.55;
  text-decoration: line-through;
}
.pdf-meldungen-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}
.pdf-meldungen-table col.pdf-col-kat { width: 14%; }
.pdf-meldungen-table .pdf-col-kat {
  font-size: 9pt;
  color: #444;
  word-break: break-word;
}
.pdf-meldungen-table tbody tr {
  break-inside: avoid;
  page-break-inside: avoid;
}
.pdf-table thead { display: table-header-group; }
.pdf-table tfoot { display: table-footer-group; }
.pdf-table { page-break-inside: auto; break-inside: auto; }
.pdf-table tr { break-inside: avoid; page-break-inside: avoid; }
.pdf-stat-detail { margin: 0; }
.pdf-stat-kat { margin: 0 0 8px; }
.pdf-stat-einstufungen { margin: 0 0 6px; font-size: 10.5pt; font-weight: 600; color: #1a1a1a; line-height: 1.4; }
.pdf-stat-meta { margin: 0; font-size: 9pt; color: #666; }
.pdf-dienst { margin-bottom: 12px; }
.pdf-dienst h3 { margin: 0 0 6px; font-size: 12pt; }
.pdf-text { white-space: pre-wrap; background: #fafbfc; border: 1px solid #e3e8ef; border-radius: 6px; padding: 8px 10px; min-height: 48px; }
.pdf-footer-note { margin-top: 0; font-size: 8.5pt; color: #888; }
.pdf-upload-list { margin: 0 0 10px; padding-left: 18px; font-size: 10pt; }

.planalarm-weekdays {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
}

.planalarm-weekday-chip {
  flex: 1 1 0;
  min-width: 2.1rem;
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid #3a5275;
  background: #1a2d45;
  color: #b0bec5;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.planalarm-weekday-chip:hover {
  background: #243652;
  border-color: #4a6a9a;
  color: #dce4f0;
}

.planalarm-weekday-chip.active {
  background: #2e5a8a;
  border-color: #4a90d9;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(74, 144, 217, 0.35) inset;
}

.planalarm-weekdays-cell {
  min-width: 11.5rem;
}

.planalarm-last-run {
  margin-top: 4px;
  font-size: 0.8rem;
}

#planalarm-table textarea {
  min-width: 160px;
  min-height: 2.5em;
  resize: vertical;
}

.planalarm-historie-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #2a3f5c;
}

.planalarm-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.planalarm-status-badge--success {
  background: rgba(76, 175, 80, 0.2);
  color: #a5d6a7;
  border: 1px solid rgba(76, 175, 80, 0.45);
}

.planalarm-status-badge--error {
  background: rgba(198, 40, 40, 0.22);
  color: #ff8a80;
  border: 1px solid rgba(198, 40, 40, 0.45);
}

.planalarm-status-badge--neutral {
  background: rgba(144, 164, 174, 0.18);
  color: #b0bec5;
  border: 1px solid rgba(144, 164, 174, 0.35);
}

.vas-chip-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.vas-chip-status--ok {
  background: rgba(76, 175, 80, 0.2);
  color: #a5d6a7;
  border: 1px solid rgba(76, 175, 80, 0.45);
}

.vas-chip-status--warning {
  background: rgba(255, 193, 7, 0.2);
  color: #ffe082;
  border: 1px solid rgba(255, 193, 7, 0.45);
}

.vas-chip-status--expired,
.vas-chip-status--missing {
  background: rgba(198, 40, 40, 0.22);
  color: #ff8a80;
  border: 1px solid rgba(198, 40, 40, 0.45);
}

.vas-validity-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vas-validity-date {
  font-size: 0.82rem;
  color: #b0bec5;
}

.vas-validity-date small {
  color: #90a4ae;
}

#planalarm-historie-table tr.row-error td {
  background: rgba(198, 40, 40, 0.08);
}

.planalarm-historie-details {
  max-width: 22rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
  color: #b0bec5;
}

@media (max-width: 900px) {
  .planalarm-weekdays {
    flex-wrap: wrap;
    max-width: 12rem;
  }

  .planalarm-weekday-chip {
    flex: 0 1 calc(25% - 4px);
    min-width: 2.4rem;
  }
}
.pdf-upload-meta { color: #666; font-size: 9pt; }
.pdf-upload-list { margin: 0; padding-left: 1.2em; }
.pdf-upload-list li { margin: 4px 0; }
.pdf-photo-gallery {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}
.pdf-gallery-figure-wrap {
  page-break-inside: avoid;
  break-inside: avoid;
  margin: 0 0 14px;
}
.pdf-gallery-title {
  margin: 16px 0 10px;
  font-size: 11pt;
  color: #333;
}
.pdf-upload-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.pdf-upload-figure { margin: 0; page-break-inside: avoid; }
.pdf-upload-img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border: 1px solid #ccd4de;
  border-radius: 4px;
  background: #fafbfc;
}
.pdf-gallery-img {
  max-height: 300px;
  min-height: 120px;
  border: 1px solid #b8c4d4;
  border-radius: 4px;
  background: #f5f7fa;
}
.pdf-upload-img-missing { display: none; }
.pdf-upload-figure figcaption {
  font-size: 9pt;
  color: #444;
  margin-top: 6px;
  word-break: break-word;
  line-height: 1.35;
}
.pdf-upload-figure figcaption strong { font-weight: 600; color: #1a1a1a; }
.pdf-dienst h4 { margin: 0 0 6px; font-size: 11pt; }
.pdf-a4-page .bv-as-trupp-einsaetze-pdf td {
  padding-top: 0;
  padding-bottom: 10px;
  font-size: 9.5pt;
  color: #444;
}
.pdf-a4-page .bv-as-trupp-einsaetze-pdf .bv-as-einsatz-list {
  margin: 0;
  padding-left: 1.2em;
}

/* PDF: isolate from dark app theme during preview & html2canvas export */
.pdf-a4-page {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.pdf-a4-page .pdf-table th,
.pdf-a4-page .pdf-table td {
  color: #1a1a1a;
  border-color: #ccd4de;
}
.pdf-a4-page .pdf-table th {
  background: #eef2f7;
  color: #333;
}
.pdf-a4-page .pdf-table td {
  background: #fff;
}
.pdf-a4-page .pdf-meldungen-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}
.pdf-a4-page .bv-as-trupp-summary-table th {
  color: #444;
  text-transform: none;
  font-size: 10pt;
  border-bottom: 1px solid #ccd4de;
}
.pdf-a4-page .bv-as-trupp-summary-table td {
  color: #1a1a1a;
  border-bottom: 1px solid #e4e9f0;
  vertical-align: top;
}
.pdf-a4-page .bv-as-traeger-name {
  color: #1a1a1a;
}
.pdf-a4-page .bv-stat-pill {
  color: #fff !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.pdf-a4-page p,
.pdf-a4-page li {
  color: #1a1a1a;
}

@media print {
  html, body {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0;
    padding: 0;
    overflow: visible !important;
    display: block !important;
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .berichte-print-doc,
  .pdf-a4-page {
    width: 100%;
    min-height: auto;
    height: auto;
    max-height: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    page-break-after: auto;
    break-after: auto;
    overflow: visible;
    display: block;
  }

  .pdf-a4-page-sized {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    page-break-after: auto;
    break-after: auto;
  }

  .berichte-print-doc .pdf-body,
  .pdf-a4-page .pdf-body,
  .pdf-body {
    overflow: visible !important;
    flex: none !important;
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
  }

  .pdf-a4-page:last-child,
  .berichte-print-doc:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  .pdf-header {
    page-break-after: avoid;
    break-after: avoid;
  }

  .pdf-section,
  .pdf-gallery-figure-wrap,
  .pdf-dienst {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .pdf-section[data-pdf-split-mode="table-flow"],
  .pdf-section[data-pdf-splittable="rows"],
  .pdf-section-table-continued {
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  .pdf-table {
    page-break-inside: auto;
    break-inside: auto;
  }

  .pdf-table thead {
    display: table-header-group;
  }

  .pdf-table tfoot {
    display: table-footer-group;
  }

  .pdf-table tr,
  .pdf-meldungen-table tbody tr {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .pdf-logo {
    width: 50mm;
    max-width: 45%;
    max-height: 55mm;
  }

  .bv-print-preview-wrap,
  .bv-pdf-preview-wrap {
    overflow: visible;
    max-height: none;
    background: #fff;
    padding: 0;
  }
}
.pdf-canvas-capture .pdf-logo,
.pdf-canvas-capture .pdf-logo-continued {
  opacity: 1 !important;
  visibility: visible !important;
}
.pdf-export-mode .pdf-a4-page:not(.pdf-canvas-capture),
.pdf-export-mode .pdf-a4-page-sized:not(.pdf-canvas-capture) {
  box-shadow: none !important;
  overflow: hidden !important;
  height: 297mm !important;
  max-height: 297mm !important;
}
.pdf-canvas-capture {
  overflow: hidden !important;
  box-shadow: none !important;
  min-height: 297mm;
}
.pdf-canvas-capture .pdf-body {
  overflow: visible !important;
  max-height: none !important;
  min-height: auto !important;
}
.pdf-export-mode .bv-pdf-pages-stack {
  gap: 0;
}

@media (max-width: 1100px) {
  .tagebuch-mid-split { grid-template-columns: 1fr; }
  .tagebuch-day-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .tagebuch-compose-row-pair {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Verwaltung – Datenbank (3 feste Gruppen) */
.vdb-pflege-toolbar {
  margin-top: 8px;
}

.vdb-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
  align-items: start;
}

@media (max-width: 1200px) {
  .vdb-columns {
    grid-template-columns: 1fr;
  }
}

.vdb-gruppe-col {
  border: 1px solid #2a3f5c;
  border-radius: 12px;
  background: rgba(8, 20, 36, 0.55);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
}

.vdb-gruppe-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #2a3f5c;
  background: rgba(12, 28, 48, 0.75);
}

.vdb-gruppe-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.vdb-gruppe-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #e5edf8;
}

.vdb-gruppe-meta {
  font-size: 0.78rem;
  color: #8fa3bd;
}

.vdb-gruppe-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #2a3f5c;
}

.vdb-gruppe-tree {
  flex: 1;
  min-height: 160px;
  max-height: 280px;
  overflow: auto;
  padding: 10px 8px;
}

.vdb-gruppe-docs {
  border-top: 1px solid #2a3f5c;
  padding: 12px;
  background: rgba(6, 16, 28, 0.4);
}

.vdb-docs-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.vdb-pflege-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(240px, 0.9fr);
  gap: 16px;
  margin-top: 12px;
  min-height: 420px;
}

@media (max-width: 960px) {
  .vdb-pflege-layout {
    grid-template-columns: 1fr;
  }
}

.vdb-tree-panel,
.vdb-detail-panel {
  border: 1px solid #2a3f5c;
  border-radius: 12px;
  background: rgba(8, 20, 36, 0.55);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
}

.vdb-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #2a3f5c;
  background: rgba(12, 28, 48, 0.75);
}

.vdb-panel-title {
  font-weight: 700;
  color: #c5d4ea;
  font-size: 0.92rem;
}

.vdb-tree-count {
  font-size: 0.78rem;
  color: #8fa3bd;
  white-space: nowrap;
}

.vdb-tree {
  flex: 1;
  overflow: auto;
  padding: 10px 8px 14px;
}

.vdb-tree-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 4px;
  padding: 9px 10px 9px calc(10px + var(--vdb-depth, 0) * 18px);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #e5edf8;
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.vdb-tree-row:hover {
  background: rgba(30, 60, 100, 0.28);
  border-color: #2a4568;
}

.vdb-tree-row.active {
  background: rgba(30, 70, 120, 0.42);
  border-color: #4a8fd4;
}

.vdb-tree-row.inactive {
  opacity: 0.55;
}

.vdb-tree-icon {
  font-size: 1rem;
  line-height: 1;
}

.vdb-tree-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.vdb-tree-type {
  font-size: 0.72rem;
  color: #8fa3bd;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vdb-tree-werft { --vdb-accent: #6ba3e8; }
.vdb-tree-schiff { --vdb-accent: #5ec9a8; }
.vdb-tree-ordner { --vdb-accent: #c9a85e; }
.vdb-tree-gangwayplan { --vdb-accent: #c9a85e; }

.vdb-detail {
  padding: 16px 14px 18px;
  flex: 1;
}

.vdb-empty-hint {
  color: #8fa3bd;
  font-size: 0.88rem;
  margin: 8px 4px;
  line-height: 1.45;
}

.vdb-detail-type {
  font-size: 0.82rem;
  color: #9fb0c8;
  margin-bottom: 6px;
}

.vdb-detail-name {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.3;
}

.vdb-detail-path {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: #7eb8f0;
  line-height: 1.4;
  word-break: break-word;
}

.vdb-detail-meta {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #2a3f5c;
  border-radius: 8px;
  background: rgba(12, 28, 48, 0.45);
}

.vdb-detail-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
}

.vdb-detail-meta dt {
  margin: 0;
  color: #8fa3bd;
}

.vdb-detail-meta dd {
  margin: 0;
  color: #e5edf8;
  font-weight: 600;
}

.vdb-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vdb-delete-message {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #e5edf8;
}

button.danger {
  border-color: #8b3a3a;
  background: #6b2a2a;
  color: #ffe8e8;
}

button.danger:hover {
  background: #7a3232;
}

.vdb-tree-docs {
  font-size: 0.72rem;
  font-weight: 600;
  color: #8fa3bd;
  margin-left: 4px;
}

.vdb-docs-section {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #2a3f5c;
  border-radius: 8px;
  background: rgba(12, 28, 48, 0.45);
}

.vdb-docs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 700;
  color: #c5d4ea;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.vdb-doc-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vdb-doc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #2a3f5c;
  border-radius: 8px;
  background: rgba(8, 20, 36, 0.5);
}

.vdb-doc-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
}

.vdb-doc-meta {
  font-size: 0.75rem;
  color: #8fa3bd;
  white-space: nowrap;
}

.vdb-upload-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.vdb-upload-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.split-main.bordstreifen-tab-active .notruf-column,
.split-main.bordstreifen-tab-active .notruf-collapse-btn,
.split-main.dienstplan-tab-active .notruf-column,
.split-main.dienstplan-tab-active .notruf-collapse-btn {
  display: none !important;
}

.split-main.bordstreifen-tab-active .einsatz-column,
.split-main.dienstplan-tab-active .einsatz-column {
  flex: 1 1 100%;
  max-width: 100%;
}

.split-main.dienstplan-tab-active #dienstplan-module-host:not(.hidden) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.split-main.bordstreifen-tab-active #bordstreifen-module-host:not(.hidden) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.bordstreifen-app-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 12px;
  padding: 12px 14px;
  background: #152238;
  color: #e8edf5;
  overflow: auto;
}

.bordstreifen-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bordstreifen-title {
  margin: 0;
  font-size: 1.2rem;
}

.bordstreifen-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.bordstreifen-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 14px;
  min-height: 0;
}

.bordstreifen-grid-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 10px;
}

.bordstreifen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  flex: 1;
  min-height: 420px;
}

@media (max-width: 900px) {
  .bordstreifen-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }
}

.bordstreifen-quadrant {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #0f1a2e;
  border: 1px solid #1a2f4a;
  border-radius: 10px;
  overflow: hidden;
}

.bordstreifen-quadrant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #0a1424;
  border-bottom: 1px solid #1a2f4a;
  flex-wrap: wrap;
}

.bordstreifen-quadrant-title {
  font-size: 1rem;
  color: #e8f0ff;
}

.bordstreifen-quadrant-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bordstreifen-quadrant-body {
  flex: 1;
  overflow: auto;
  padding: 8px 12px 12px;
}

.bordstreifen-user-onboard {
  background: rgba(46, 204, 113, 0.06);
  border-radius: 6px;
  padding: 8px 10px !important;
  margin-bottom: 6px;
  border-top: none !important;
}

.bordstreifen-user-onboard .bordstreifen-user-name {
  font-size: 1rem;
  color: #6ee7a0;
}

.bordstreifen-deck {
  font-weight: 600;
  color: #a8d4b8;
}

.bordstreifen-time {
  opacity: 0.75;
}

.bordstreifen-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 0;
}

.bordstreifen-pagination.hidden {
  display: none;
}

.bordstreifen-page-label {
  font-size: 0.85rem;
  color: #8fa8c8;
}

.bsv-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bsv-modal.hidden {
  display: none;
}

.bsv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.bsv-modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #0f1a2e;
  border: 1px solid #1a2f4a;
  border-radius: 12px;
  overflow: hidden;
}

.bsv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #1a2f4a;
}

.bsv-modal-header h3 {
  margin: 0;
  font-size: 1rem;
}

.bsv-modal-body {
  overflow: auto;
  padding: 12px 16px 16px;
}

.bsv-session-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bsv-session-item {
  padding: 10px 0;
  border-bottom: 1px solid #1a2f4a;
}

.bsv-session-person {
  font-weight: 700;
  margin-bottom: 4px;
}

.bsv-session-times {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.85rem;
  color: #c8d8ef;
}

.bsv-session-on strong {
  color: #6ee7a0;
}

.bsv-session-off strong {
  color: #f5b87a;
}

.bsv-session-arrow {
  color: #8fa8c8;
}

.bsv-session-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #8fa8c8;
}

.bsv-session-duration {
  margin-left: auto;
  font-weight: 600;
}

.bs-key-icon {
  display: inline-block;
  vertical-align: middle;
  color: #f5c842;
  flex-shrink: 0;
}

.bs-key-indicator {
  display: inline-flex;
  align-items: center;
  color: #f5c842;
}

@media (max-width: 1100px) {
  .bordstreifen-split {
    grid-template-columns: 1fr;
  }
}

.bordstreifen-panel {
  background: #0f1a2e;
  border: 1px solid #1a2f4a;
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 200px;
}

.bordstreifen-group-card {
  border: 1px solid #243652;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #0a1424;
}

.bordstreifen-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.bordstreifen-count {
  font-size: 0.8rem;
  color: #8fa8c8;
}

.bordstreifen-user-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bordstreifen-user-list li {
  padding: 6px 0;
  border-top: 1px solid #1a2f4a;
}

.bordstreifen-user-name {
  display: block;
  font-weight: 600;
}

.bordstreifen-user-meta {
  display: block;
  font-size: 0.82rem;
  color: #8fa8c8;
}

.bordstreifen-empty {
  margin: 0;
  color: #8fa8c8;
  font-size: 0.9rem;
}

.bsv-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.bsv-status--an_bord {
  background: rgba(46, 204, 113, 0.15);
  color: #6ee7a0;
}

.bsv-status--von_bord {
  background: rgba(230, 126, 34, 0.15);
  color: #f5b87a;
}

.vbs-nfc-row {
  display: flex;
  gap: 8px;
}

.vbs-nfc-row input,
.admin-nfc-row input {
  flex: 1;
  min-width: 0;
}

.admin-nfc-hint--blocked {
  color: #e67e22;
}

.admin-nfc-input--scanned {
  animation: admin-nfc-flash 1.2s ease;
}

@keyframes admin-nfc-flash {
  0%, 100% { box-shadow: none; }
  15%, 45% { box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.55); }
}
