/* WABEO App Styles */

:root {
  /* bestehend */
  --wabeo-primary:        #e5007e;
  --wabeo-hover:          #73003f;
  --wabeo-secondary:      #212a59;
  --wabeo-bg-light:       #dcedf9;
  --wabeo-bg-neutral:     #f7f7f7;
  --wabeo-text:           #364249;
  /* --nav-bar-height stammt aus app.css (gemeinsam für Header und Footer) */
  --nav-bottom-height:    var(--nav-bar-height);

  /* NEU — Auswertungs-Erweiterung.
   *
   * Vorher standen hier selbst-referenzielle Definitionen wie
   * `--wabeo-success: var(--wabeo-success);`. Da app-app2.css NACH app.css
   * lädt, hat das die in app.css gesetzten Werte (#198754 etc.) durch eine
   * zirkuläre Referenz überschrieben → die Variable wurde ungültig, der
   * Toast bekam keinen Hintergrund und stand „weiß auf weiß" (Bug-Report
   * 27.5.2026). Die guten Werte sind in app.css und müssen hier nicht
   * doubliert werden — entfernt. Nur die Tokens, die app.css nicht kennt
   * (warning, info, Fonts) bleiben hier.
   */
  --wabeo-warning:        #ff9800;
  --wabeo-info:           #0d6efd;
  --wabeo-font-body:      'Titillium Web','Helvetica Neue',Arial,sans-serif;
  --wabeo-font-heading:   'Roboto Slab','Times New Roman',serif;
}

/* ===== Layout ===== */
html, body {
  height: 100%;
  overflow: hidden;
  color: var(--wabeo-text);
}

.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--wabeo-warning);
  color: #fff;
  text-align: center;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.offline-banner[hidden] {
  display: none;
}

body.is-offline .nav-top {
  top: 28px;
}
body.is-offline .main-content {
  top: calc(var(--nav-bar-height) + 28px);
}

/* .nav-top-Layout (Drei-Spalten-Grid, Höhe, sticky) wird zentral in
   app.css definiert. Hier nur position:fixed-Spezifik für den App-
   Modus, die mit der Sticky-Variante in app.css koexistiert. */
.nav-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.main-content {
  position: fixed;
  top: var(--nav-bar-height);
  bottom: var(--nav-bar-height);
  left: 0;
  right: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Default-Hintergrund (Datenblatt-/Drucken-Workflow im Main-Modus,
     Select- und Landing-Modus): #f7f7f7, helles Grau. */
  background: var(--wabeo-bg-neutral);
}
/* Wenn der Sub-Tab-Strip aktiv ist (Main-Modus), liegt der Main-Content
   um seine Höhe (40 px) nach unten versetzt. */
body.has-sub-tabs .main-content {
  top: calc(var(--nav-bar-height) + 40px);
}
/* Auswertungs-App-Views (Auswertung + Public) bekommen den App-View-
   Hintergrund #dcedf9 laut Architektur-Rahmen. Body-Klasse wird in
   shell.js#showAuswertungApp / showPublicApp gesetzt. */
body.shell-auswertung .main-content {
  background: var(--wabeo-bg-light);
}
.main-content > .container {
  padding-bottom: 70px;
}

.nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-bottom-height);
  z-index: 1050;
  background: #fff;
  border-top: 1px solid var(--wabeo-border-color);
  display: flex;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-bottom .nav-link {
  flex: 1 1 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wabeo-text);
  padding: 6px 4px;
  white-space: nowrap;
  border-top: 2px solid transparent;
}

.nav-bottom .nav-link.active {
  color: var(--wabeo-primary);
  border-top-color: var(--wabeo-primary);
}

.nav-bottom .nav-link:hover {
  color: var(--wabeo-hover);
}

/* ===== Tab bars (sub-navigation within views) ===== */
.nav-tabs-bottom {
  border-bottom: none;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.nav-tabs-bottom .nav-link {
  font-size: 0.8rem;
  white-space: nowrap;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--wabeo-text);
  padding: 8px 12px;
}

.nav-tabs-bottom .nav-link.active {
  color: var(--wabeo-primary);
  border-bottom-color: var(--wabeo-primary);
  background: transparent;
}

/* ===== Number inputs (touch-optimized) ===== */
.number-input {
  font-size: 1.1rem;
  text-align: right;
  min-width: 70px;
  max-width: 110px;
  padding: 6px 8px;
  -moz-appearance: textfield;
}

.number-input::-webkit-outer-spin-button,
.number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.number-input-group {
  display: flex;
  flex-direction: column;
}

.number-label {
  font-size: 0.75rem;
  margin-bottom: 2px;
  color: var(--wabeo-text);
}

/* ===== Result tables ===== */
.result-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9rem;
}

.result-table th,
.result-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--wabeo-border-color);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-table thead th {
  background: var(--wabeo-secondary);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  position: sticky;
  top: 0;
  z-index: 2;
}

.result-table .row-sum td {
  font-weight: 700;
  background: var(--wabeo-bg-light);
}

.result-table .row-check td {
  font-style: italic;
  font-size: 0.85rem;
}

.result-table .row-check.is-ok td {
  color: var(--wabeo-success);
}

.result-table .row-check.is-error td {
  color: var(--wabeo-danger);
  font-weight: 700;
}

.result-table .cell-label {
  font-weight: 600;
  white-space: nowrap;
}

.result-table .cell-narrow {
  width: 80px;
}

.result-table input.form-control {
  font-size: 0.95rem;
  text-align: right;
  padding: 4px 6px;
}

/* ===== Readonly fields ===== */
.readonly-field {
  padding: 4px 0;
}

/* ===== Section headings ===== */
.section-heading {
  color: var(--wabeo-secondary);
  font-size: 1.1rem;
  border-bottom: 2px solid var(--wabeo-primary);
  padding-bottom: 4px;
}

/* ===== Toast notifications ===== */
.toast-container {
  position: fixed;
  bottom: calc(var(--nav-bottom-height) + 12px);
  right: 12px;
  z-index: 1200;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: auto;
  max-width: 360px;
}

.toast-item.toast-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast-info    { background: var(--wabeo-secondary); }
/* Erfolgs-Toast in WABEO-Pink statt Bootstrap-Grün (Brand-Konvention,
 * Bug-Report 27.5.2026). Der Toast soll wie eine WABEO-Aktion aussehen, nicht
 * wie ein OS-Erfolgsbanner. */
.toast-success { background: var(--wabeo-primary, #e5007e); }
.toast-warning { background: var(--wabeo-warning); }
.toast-error   { background: var(--wabeo-danger); }

/* ===== Modal ===== */
.modal-backdrop-custom {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1300;
}

.modal-container {
  position: fixed;
  inset: 0;
  z-index: 1310;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-dialog-custom {
  background: #fff;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.modal-header-custom {
  padding: 16px 20px 8px;
  border-bottom: 2px solid var(--wabeo-primary);
}

.modal-title-custom {
  margin: 0;
  color: var(--wabeo-secondary);
  font-size: 1.1rem;
}

.modal-body-custom {
  padding: 16px 20px;
}

.modal-footer-custom {
  padding: 8px 20px 16px;
  display: flex;
  justify-content: flex-end;
}

/* ===== No-bottom-nav mode (landing, select) ===== */
body.no-bottom-nav .main-content {
  bottom: 0;
}

/* ===== Home link in top nav ===== */
.nav-top .nav-home-link {
  flex: 0 0 auto;
  font-size: 1.3rem;
  padding: 0 12px;
  border-bottom: none;
}

.nav-top .nav-tab-brand {
  flex: 0 1 auto;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: none;
}

/* ===== Landing page ===== */
.landing-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.landing-section-title {
  color: var(--wabeo-secondary);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.landing-card {
  background: #fff;
  border: 2px solid var(--wabeo-border-color, #dee2e6);
  padding: 16px;
}

.landing-card-upcoming {
  border-left: 4px solid var(--wabeo-primary);
}

.landing-card-past {
  border-left: 4px solid var(--wabeo-secondary);
  opacity: 0.85;
}

.landing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.landing-card-name {
  font-weight: 700;
  color: var(--wabeo-secondary);
  font-size: 0.95rem;
}

.landing-card-date {
  font-size: 0.8rem;
  color: var(--wabeo-text-muted, #6c757d);
  white-space: nowrap;
}

/* Steps */
.landing-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.landing-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.landing-step .step-icon {
  flex: 0 0 20px;
  text-align: center;
  font-size: 0.9rem;
}

.landing-step .step-label {
  font-weight: 600;
}

.landing-step .step-hint {
  font-size: 0.75rem;
  color: var(--wabeo-text-muted, #6c757d);
  margin-left: auto;
}

.landing-step .step-arrow {
  font-size: 0.85rem;
  opacity: 0.6;
}

.step-done {
  color: var(--wabeo-success, #198754);
}

.step-done .step-icon {
  color: var(--wabeo-success, #198754);
}

.step-active {
  background: var(--wabeo-bg-light);
  color: var(--wabeo-primary);
}

.step-active .step-icon {
  color: var(--wabeo-primary);
}

.step-locked {
  color: var(--wabeo-text-muted, #6c757d);
}

.step-locked .step-icon {
  color: var(--wabeo-text-muted, #6c757d);
}

/* Divider */
.landing-divider {
  height: 1px;
  background: var(--wabeo-border-color, #dee2e6);
  margin: 10px 0;
}

/* Auswertung section in card */
.landing-auswertung {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.landing-auswertung-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--wabeo-secondary);
}

.landing-auswertung-hint {
  font-size: 0.75rem;
  color: var(--wabeo-text-muted, #6c757d);
  font-style: italic;
}

.landing-auswertung-locked {
  opacity: 0.6;
}

.landing-auswertung-sub {
  width: 100%;
  font-size: 0.75rem;
  color: var(--wabeo-text-muted, #6c757d);
}

/* Older elections toggle */
.landing-older-toggle {
  text-decoration: none;
  font-size: 0.8rem;
  padding: 4px 0;
}

.landing-older-elections[hidden] {
  display: none;
}

.landing-older-elections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== Election select cards ===== */
.election-card {
  background: #fff;
  border: 2px solid var(--wabeo-border-color);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.election-card:hover,
.election-card:focus {
  border-color: var(--wabeo-primary);
  box-shadow: 0 2px 8px rgba(229, 0, 126, 0.15);
}

.election-card.selected {
  border-color: var(--wabeo-primary);
  background: #fef0f7;
}

.election-card h5 {
  color: var(--wabeo-secondary);
  margin-bottom: 8px;
}

.election-card .meta {
  font-size: 0.85rem;
  color: var(--wabeo-text-muted);
}

/* ===== Violation items ===== */
.violation-item {
  border: 1px solid var(--wabeo-border-color);
  background: #fff;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.violation-item .question-text {
  font-weight: 600;
  margin-bottom: 8px;
}

.violation-item .btn-group .btn {
  min-width: 60px;
}

.violation-followup {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--wabeo-bg-light);
  border-left: 3px solid var(--wabeo-primary);
}

/* ===== Signature ===== */
.signature-canvas-wrapper {
  border: 2px solid var(--wabeo-border-color);
  background: #fff;
  display: inline-block;
  touch-action: none;
}

.signature-canvas-wrapper canvas {
  display: block;
}

/* ===== Plausibility warnings ===== */
.plausibility-error {
  background: #f8d7da;
  border: 1px solid #f5c2c7;
  color: #842029;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.plausibility-warning {
  background: #fff3cd;
  border: 1px solid #ffecb5;
  color: #664d03;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.plausibility-ok {
  background: #d1e7dd;
  border: 1px solid #badbcc;
  color: #0f5132;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

/* ===== Step indicator (for signature flow) ===== */
.step-indicator {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.step-dot {
  width: 28px;
  height: 4px;
  background: var(--wabeo-border-color);
}

.step-dot.active {
  background: var(--wabeo-primary);
}

.step-dot.done {
  background: var(--wabeo-secondary);
}

/* ===== Collapsible sections ===== */
.collapsible-header {
  cursor: pointer;
  user-select: none;
  padding: 8px 12px;
  background: var(--wabeo-bg-light);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.collapsible-header::after {
  content: '\25BC';
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.collapsible-header.collapsed::after {
  transform: rotate(-90deg);
}

.collapsible-body {
  padding: 8px 12px;
  border: 1px solid var(--wabeo-border-color);
  border-top: none;
}

.collapsible-body[hidden] {
  display: none;
}

/* ===== Print Area (visible on screen as preview) ===== */
.print-area {
  margin-top: 16px;
}

.print-header {
  border-bottom: 2px solid var(--wabeo-secondary);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.print-title {
  color: var(--wabeo-secondary);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.print-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  font-size: 0.9rem;
}

.print-meta-row {
  display: flex;
  gap: 6px;
}

.print-meta-label {
  font-weight: 700;
  min-width: 130px;
  color: var(--wabeo-secondary);
}

.print-section {
  margin-bottom: 24px;
}

.print-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--wabeo-primary);
  padding-bottom: 4px;
  margin-bottom: 12px;
}

.print-section-header h4 {
  color: var(--wabeo-secondary);
  font-size: 1.1rem;
  margin: 0;
}

.print-page-num {
  font-size: 0.85rem;
  color: var(--wabeo-text-muted);
  font-weight: 600;
}

.print-headline {
  margin-top: 12px;
  margin-bottom: 6px;
}

.print-headline h5 {
  color: var(--wabeo-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--wabeo-border-color);
  padding-bottom: 2px;
  margin: 0;
}

.print-item {
  padding: 6px 0 6px 12px;
  border-bottom: 1px solid #eee;
}

.print-item-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.print-choices {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  margin-left: 8px;
}

.print-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1rem;
}

.print-followup {
  margin-top: 4px;
  margin-left: 8px;
  font-size: 0.85rem;
  color: #555;
}

.print-followup-label {
  font-style: italic;
}

.print-line {
  border-bottom: 1px solid #999;
  height: 22px;
  margin-top: 2px;
}

.print-freetext-lines {
  margin-left: 8px;
}

.print-time-field {
  margin-left: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.print-footer-note {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--wabeo-border-color);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--wabeo-text-muted);
}

.print-page-break {
  height: 0;
}

/* ===== Print ===== */
@media print {
  .nav-top, .nav-bottom, .offline-banner, .toast-container,
  .no-print, .alert { display: none !important; }

  html, body {
    height: auto;
    overflow: visible;
  }

  .main-content {
    position: static;
    overflow: visible;
    height: auto;
  }

  .print-area {
    margin-top: 0;
  }

  .print-meta {
    grid-template-columns: 1fr 1fr;
    font-size: 10pt;
  }

  .print-title {
    font-size: 14pt;
  }

  .print-section-header h4 {
    font-size: 12pt;
  }

  .print-headline h5 {
    font-size: 10pt;
  }

  .print-item {
    page-break-inside: avoid;
  }

  .print-item-label {
    font-size: 9pt;
  }

  .print-choices {
    font-size: 10pt;
  }

  .print-line {
    height: 20px;
  }

  .print-page-break {
    page-break-before: always;
  }

  .print-footer-note {
    page-break-inside: avoid;
  }
}

/* ===== Schnellmeldung table ===== */
.schnellmeldung-table input.number-input {
  max-width: 100px;
}

/* ===== Schnellmeldung diff highlighting ===== */
.schnell-differs {
  color: var(--wabeo-danger);
  font-weight: 700;
}

.schnell-input-differs {
  border-color: var(--wabeo-danger) !important;
  background-color: #fff5f5 !important;
}

.schnellmeldung-table .cell-narrow {
  width: 100px;
}

/* ===== Responsive ===== */
@media (max-width: 575.98px) {
  .nav-top .nav-tab {
    font-size: 0.78rem;
    padding: 0 4px;
  }
  .nav-bottom .nav-link {
    font-size: 0.72rem;
  }
  .result-table {
    font-size: 0.75rem;
  }
  .result-table th,
  .result-table td {
    padding: 3px 2px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .result-table th:first-child,
  .result-table td:first-child {
    width: 28px;
  }
  .result-table .cell-narrow {
    width: 50px;
  }
  .result-table .cell-label {
    width: 28px;
    font-size: 0.7rem;
  }
  .result-table input.form-control {
    font-size: 0.8rem;
    padding: 2px 2px;
    min-width: 0;
    width: 100%;
  }
  .schnellmeldung-table input.number-input {
    max-width: 80px;
  }
}

/* ===== Hilfe tabs ===== */
.hilfe-content h6 {
  color: var(--wabeo-secondary);
  margin-top: 16px;
}

.hilfe-content a[href^="tel:"] {
  font-weight: 700;
  color: var(--wabeo-primary);
}

/* ===== Finalized state ===== */
.is-finalized input,
.is-finalized textarea,
.is-finalized select {
  pointer-events: none;
  opacity: 0.7;
  background: #e9ecef;
}

/* ===== Button overrides to match WABEO theme ===== */
/* Reset style.min.css theme overrides (margin-top, text-align, border-radius) */
.btn-primary {
  background-color: var(--wabeo-primary);
  border-color: var(--wabeo-primary);
  margin-top: 0;
  text-align: center;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--wabeo-hover);
  border-color: var(--wabeo-hover);
  border-radius: var(--bs-btn-border-radius);
}

.btn-secondary {
  background-color: var(--wabeo-secondary);
  border-color: var(--wabeo-secondary);
}

/* ===== Floating Validate Button ===== */
.btn-validate-fab {
  position: fixed;
  bottom: calc(var(--nav-bottom-height) + 16px);
  right: 16px;
  z-index: 1000;
  background: var(--wabeo-primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-validate-fab:hover {
  background: var(--wabeo-hover);
  transform: translateY(-1px);
}
.btn-validate-fab:active {
  transform: translateY(0);
}

/* ===== Validation Panel ===== */
.validation-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: flex-end;
}
.validation-panel {
  width: min(440px, 100vw);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 16px rgba(0,0,0,0.15);
  animation: slide-in-right 0.2s ease-out;
}
@keyframes slide-in-right {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.validation-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--wabeo-border-color);
}
.validation-panel-summary {
  padding: 8px 20px;
  background: var(--wabeo-bg-neutral);
  font-size: 0.85rem;
  color: #555;
  border-bottom: 1px solid var(--wabeo-border-color);
}
.validation-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}
.validation-panel-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--wabeo-border-color);
  text-align: right;
}

/* Validation list entries */
.validation-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.validation-entry {
  border: 1px solid var(--wabeo-border-color);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  border-left: 4px solid var(--wabeo-text-muted);
}
.validation-entry:hover {
  background: #f8f9fa;
}
.validation-entry.validation-error {
  border-left-color: var(--wabeo-danger);
}
.validation-entry.validation-warning {
  border-left-color: #fd7e14;
}
.validation-entry.validation-info {
  border-left-color: var(--wabeo-info);
}
.validation-entry.dismissed {
  opacity: 0.5;
  text-decoration: line-through;
}
.validation-entry.dismissed:hover {
  opacity: 0.7;
}
.validation-entry-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.validation-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  background: var(--wabeo-text-muted);
}
.validation-badge.validation-error { background: var(--wabeo-danger); }
.validation-badge.validation-warning { background: #fd7e14; }
.validation-badge.validation-info { background: var(--wabeo-info); }
.validation-area {
  font-size: 0.8rem;
  color: var(--wabeo-text-muted);
}
.validation-entry-body {
  font-size: 0.85rem;
}
.validation-entry-body strong {
  display: block;
  margin-bottom: 2px;
}
.validation-message {
  color: #555;
}
.validation-dismiss-btn {
  margin-top: 6px;
  font-size: 0.75rem;
}
.validation-dismissed-label {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #999;
  font-style: italic;
}

/* Highlight animation for navigated-to fields */
@keyframes validation-flash {
  0%, 100% { box-shadow: none; }
  25%, 75% { box-shadow: 0 0 0 3px var(--wabeo-primary); }
}
.validation-highlight {
  animation: validation-flash 0.6s ease-in-out 3;
  border-radius: 4px;
}
