/* Zentrale Design-Schicht: Dichte, Hierarchie und Bausteine der Arbeitsoberfläche.
   Wird nach app.css geladen und gleicht die luftigen MDB5-Standardwerte an eine Fachanwendung an.
   Die Vendor-Dateien bleiben unverändert (CLAUDE.md, UI-Framework). Alle Maße stehen als Tokens oben,
   damit die Dichte an einer Stelle steuerbar ist.

   Drei Stufen: Daten (normal, dunkel) > Bedienelemente (klein, ruhig) > Beschriftungen (klein, grau).

   Selektoren beginnen mit "body", weil MDB seine Werte mit mehreren gleich gewichteten Regeln setzt
   (.btn, .btn-sm, .btn-light …); die höhere Spezifität ersetzt dort !important. */

:root {
    /* Fokus der Eingabefelder: zart gelber Grund statt blauem Rand (Abschnitt „Fokus aller Eingabefelder“ am Ende) */
    --aqc-focus-bg: #fff8d6;

    /* Schrift */
    --aqc-font-size: 0.875rem;          /* Fließtext und Tabellendaten, 14 px */
    --aqc-font-size-control: 0.875rem;  /* Eingabefelder, 14 px */
    --aqc-font-size-button: 0.8125rem;  /* Buttons, 13 px */
    --aqc-font-size-label: 0.6875rem;   /* Labels und Spaltenköpfe, 11 px */
    --aqc-text: #1f1f1f;
    --aqc-text-label: #6b7280;
    --aqc-text-subtle: #8a919c;

    /* Maße */
    --aqc-control-height: 1.875rem;     /* Eingabefelder, MDB-Selects und Buttons, 30 px */
    --aqc-control-padding-x: 0.625rem;
    --aqc-radius: 0.1875rem;            /* Eingabefelder, Buttons: eckiger */
    --aqc-radius-card: 0.25rem;
    --aqc-label-gap: 0.125rem;          /* Label direkt über dem Feld */
    --aqc-card-padding-y: 0.75rem;
    --aqc-card-padding-x: 1rem;

    /* Linien und Flächen */
    --aqc-border: #cdd2d9;
    --aqc-border-subtle: #e0e3e8;
    --aqc-surface-muted: #f5f6f8;
}

body {
    font-size: var(--aqc-font-size);
    color: var(--aqc-text);
}

/* ---------- Buttons: kein Schatten, keine Versalien, klare Kontur */
body .btn {
    --mdb-btn-box-shadow: none;
    --mdb-btn-hover-box-shadow: none;
    --mdb-btn-focus-box-shadow: none;
    --mdb-btn-active-box-shadow: none;
    --mdb-btn-box-shadow-state: none;
    min-height: var(--aqc-control-height);
    padding: 0.25rem 0.75rem;
    font-size: var(--aqc-font-size-button);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    border-radius: var(--aqc-radius);
    box-shadow: none;
    vertical-align: middle;
}

body .btn:hover,
body .btn:focus,
body .btn:active,
body .btn.active {
    box-shadow: none;
}

body .btn:focus-visible {
    outline: 2px solid rgba(var(--mdb-primary-rgb, 0, 61, 253), 0.45);
    outline-offset: 1px;
}

body .btn-sm {
    min-height: 1.75rem;
    padding: 0.125rem 0.5rem;
    font-size: var(--aqc-font-size-button);
}

/* "Hell" war grau auf grau und verschwamm mit der Fläche: weißer Grund, feine Kontur, dunkle Schrift */
body .btn-light {
    --mdb-btn-bg: #fff;
    --mdb-btn-hover-bg: #f1f3f5;
    --mdb-btn-focus-bg: #f1f3f5;
    --mdb-btn-active-bg: #e7eaee;
    --mdb-btn-color: var(--aqc-text);
    --mdb-btn-hover-color: var(--aqc-text);
    --mdb-btn-focus-color: var(--aqc-text);
    --mdb-btn-active-color: var(--aqc-text);
    background-color: #fff;
    color: var(--aqc-text);
    border: 1px solid var(--aqc-border);
}

body .btn-light:hover,
body .btn-light:focus {
    background-color: #f1f3f5;
    color: var(--aqc-text);
}

/* Outline-Buttons: 1 px statt 2 px */
body [class*="btn-outline-"].btn {
    border-width: 1px;
    background-color: transparent;
}

/* Icon im Button: kleiner Abstand, gleiche Farbe wie der Text */
body .btn:not(.aqc-footer-button) > i.fa-solid,
body .btn:not(.aqc-footer-button) > i[class*="fa-"] {
    font-size: 0.85em;
}

body .btn > i.me-2 {
    margin-right: 0.4rem !important;
}

/* Icon-only-Buttons (Tabellenzeilen, neben Feldern) ruhiger und kleiner */
body .aqc-icon-btn {
    min-width: 1.75rem;
    height: 1.75rem;
    /* font-size: 1rem; */
}

/* ---------- Eingabefelder */
body .form-control,
body .form-select {
    min-height: var(--aqc-control-height);
    padding: 0.25rem var(--aqc-control-padding-x);
    font-size: var(--aqc-font-size-control);
    line-height: 1.5;
    border-radius: var(--aqc-radius);
    border-color: var(--aqc-border);
    box-shadow: none;
    color: var(--aqc-text);
}

body textarea.form-control {
    min-height: 4rem;
}

/* Große Variante (form-control-lg, z. B. einzelnes Eingabefeld im Dialog): die Regel oben würde sie sonst auf Normalgröße drücken */
body .form-control.form-control-lg {
    min-height: 2.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
}

/* Gesperrte Felder (disabled/readonly, Text und Select): MDB nutzt #e0e0e0 über diese Variable; heller, passend zu den
   schreibgeschützten Feldern (aqc-readonly in app.css). Eine Stelle für alle Feldtypen, damit Select und Textfeld gleich aussehen. */
body {
    --mdb-form-control-disabled-bg: #f0f1f3;
}

/* MDB-Select: Eingabefeld mit derselben Höhe wie die Textfelder */
body .select-input.form-control {
    height: var(--aqc-control-height);
    min-height: var(--aqc-control-height);
    padding: 0.25rem 1.75rem 0.25rem var(--aqc-control-padding-x);
    font-size: var(--aqc-font-size-control);
}

body .form-outline .select-arrow,
body .select-arrow {
    font-size: 0.8rem;
}

body .select-clear-btn {
    font-size: 0.8rem;
}

body .select-dropdown-container .select-option,
body .select-dropdown-container .select-option .select-option-text {
    font-size: var(--aqc-font-size-control);
}

/* Auswahlliste: Zeilenhöhe, Abstände und Farben neutral statt MDB-Vorgabe (38 px, 16 px Rand, blaue Markierung, graue Schrift).
   !important bei der Höhe: MDB setzt die Höhe als Inline-Style; die Select-Komponente setzt zusätzlich optionHeight (mdb-select.js),
   die interne Auswahl „Zeilen pro Seite“ der Datatable kennt diese Option nicht. */
body .select-dropdown-container .select-option {
    --mdb-form-outline-select-option-color: var(--aqc-text);
    --mdb-form-outline-select-option-padding-left: var(--aqc-control-padding-x);
    --mdb-form-outline-select-option-padding-right: var(--aqc-control-padding-x);
    --mdb-form-outline-select-option-hover-not-disabled-bg: #eef0f3;
    --mdb-form-outline-select-option-active-bg: #eef0f3;
    --mdb-form-outline-select-option-selected-bg: #e4e7ec;
    --mdb-form-outline-select-option-selected-hover-bg: #dce0e6;
    --mdb-form-outline-select-option-selected-active-bg: #dce0e6;
    height: 2rem !important;
    line-height: 2rem;
}

body .select-dropdown-container .select-option.selected {
    font-weight: 500;
}

/* Liste wächst mit den Einträgen (ohne feste Inline-Höhe aus 38-px-Zeilen) und scrollt ab 8 Zeilen */
body .select-dropdown-container .select-options-wrapper {
    height: auto !important;
    max-height: 16rem !important;
}

body .select-dropdown-container .select-options-list {
    height: auto !important;
}

/* MDB setzt die Listenbreite als Inline-Style auf die Feldbreite; min-width lässt sie bis zum längsten Eintrag wachsen,
   die Feldbreite bleibt dabei die Untergrenze. Sehr lange Texte werden ab 32rem weiter mit … gekürzt. */
body .select-dropdown-container {
    min-width: max-content;
}

body .select-dropdown-container .select-option-text {
    max-width: min(32rem, calc(100vw - 3rem));
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Beschriftungen: klein, grau, direkt am Feld */
body .aqc-field-label {
    margin-bottom: var(--aqc-label-gap);
    font-size: var(--aqc-font-size-label);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: var(--aqc-text-label);
}

body .form-check-label {
    font-size: var(--aqc-font-size-control);
}

/* Pflichtfeld: rotes Sternchen hinter der Beschriftung (Vorgabe Nutzer 06.11.2026). Als Klasse statt " *" im Text, damit alle
   Beschriftungen (über dem Feld, Feldgruppe, Feld-App) gleich aussehen; die Feldgruppe setzt es per :has() selbst (field-group.css) */
body .aqc-required::after {
    content: "*";
    margin-left: 0.125rem;
    color: #dc3545;
    font-weight: 600;
}

/* ---------- Filterleiste: ruhige Fläche, kein Schatten, kompakte Zeile */
body .aqc-start-filter {
    border-radius: var(--aqc-radius-card);
    background-color: var(--aqc-surface-muted);
    border: 1px solid var(--aqc-border-subtle);
    box-shadow: none;
}

body .aqc-start-filter > .card-body {
    padding: 0.5rem var(--aqc-card-padding-x) 0.625rem;
}

/* Datumsfeld: native Kalender-Schaltfläche kleiner, "Leeren" nur als dezentes Symbol */
body .aqc-start-filter .aqc-date-filter {
    width: 8.75rem;
}

body .aqc-start-filter .aqc-icon-btn-danger,
body .aqc-start-filter .aqc-icon-btn-danger:hover:not(:disabled) {
    color: var(--aqc-text-subtle);
    min-width: 1.5rem;
    font-size: 0.9rem;
}

body .aqc-start-filter .aqc-icon-btn-danger:hover:not(:disabled) {
    color: #dc3545;
}

/* ---------- Karten: kleine Titel, kompaktes Padding, kein Schatten */
body .card {
    box-shadow: none;
    border: 1px solid var(--aqc-border-subtle);
    border-radius: var(--aqc-radius-card);
}

/* Oben weniger Innenabstand (Titel sitzt höher), unten etwas mehr als oben; der Feldabstand des letzten Elements (mb-3) entfällt,
   sonst lag unter dem letzten Feld fast doppelt so viel Luft wie über dem Titel (Vorgabe Nutzer 06.11.2026) */
body .card-body {
    padding: 0.5rem var(--aqc-card-padding-x) 0.625rem;
}

body .card > .card-body > :last-child,
body .card > .card-body > :last-child > .mb-3:last-child {
    margin-bottom: 0 !important;
}

body .card-title {
    margin-bottom: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--aqc-text);
}

body .card-title.mb-3,
body .card-title.mb-4 {
    margin-bottom: 0.375rem !important;
}

/* Icons vor dem Kartentitel bewusst ohne eigene Regel: gleiche Größe und Farbe wie der Titeltext (Vorbild Objekt → Stammdaten).
   Eine frühere Regel machte nur Icons direkt im Titel grau und kleiner – Karten mit Icon in einem <span> blieben schwarz (uneinheitlich). */

body .card-header {
    padding: 0.5rem var(--aqc-card-padding-x);
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Abstände zwischen Karten und Zeilen */
body .card.mb-3 { margin-bottom: 0.75rem !important; }
body .card.mb-4 { margin-bottom: 0.75rem !important; }

/* ---------- Tabelle (Datatable) */
/* Spaltenköpfe: klein, grau, mittleres Gewicht, flache Zeile – die Daten bleiben der Blickfang */
body .aqc-datatable .datatable-header th {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    font-size: var(--aqc-font-size-label);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--aqc-text-label);
    background-color: #fff;
    border-bottom: 1px solid var(--aqc-border);
}

body .aqc-datatable .datatable-body td {
    font-size: var(--aqc-font-size);
}

/* Sortierpfeile: in jeder sortierbaren Spalte immer sichtbar (inaktiv grau, aktive Richtung farbig) */
body .aqc-datatable .aqc-sort {
    font-size: 0.6rem;
    opacity: 1;
}

body .aqc-datatable .aqc-sort i {
    color: rgba(0, 0, 0, 0.3);
}

body .aqc-datatable .aqc-sort i.active {
    color: var(--mdb-primary, #003DFD);
}

/* Toolbar über der Tabelle: Zähler links, ruhig; Aktionen rechtsbündig (siehe .aqc-table-toolbar) */
.aqc-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.aqc-table-toolbar .aqc-table-count {
    font-size: var(--aqc-font-size-control);
    color: var(--aqc-text-label);
    white-space: nowrap;
}

.aqc-table-toolbar .aqc-table-count strong {
    color: var(--aqc-text);
    font-weight: 600;
}

.aqc-table-toolbar .aqc-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-left: auto;
}

/* ---------- Seitenwahl unter der Tabelle: kompakt, Auswahl auf Zeilenhöhe */
/* Oben etwas mehr Luft: die Leiste klebte an der letzten Tabellenzeile (Vorgabe Nutzer 06.11.2026) */
body .datatable-pagination,
body .aqc-datatable.datatable .datatable-pagination {
    padding: 0.5rem 0 0.25rem;
}

body .datatable-select-wrapper {
    padding: 0 0.5rem;
    font-size: var(--aqc-font-size-label);
    color: var(--aqc-text-label);
}

body .datatable-select-wrapper .select-input.form-control {
    height: 1.75rem;
    min-height: 1.75rem;
    max-width: 4rem;
    padding: 0 1.5rem 0 0.5rem;
    /* Zeilenhöhe = Feldhöhe minus Rahmen, sonst sitzt die Zahl zu hoch (globale Select-Regel nutzt die Höhe der Textfelder) */
    line-height: calc(1.75rem - 2px);
    font-size: var(--aqc-font-size-control);
    color: var(--aqc-text);
    cursor: pointer;
}

/* Pfeil deutlich sichtbar und mittig: nur so erkennt man, dass hier gewählt werden kann */
body .datatable-select-wrapper .select-arrow {
    right: 0.5rem;
    font-size: 0.7rem;
    color: var(--aqc-text);
}

body .datatable-select-wrapper .select-input.form-control:hover {
    border-color: var(--mdb-primary);
}

body .datatable-select-text {
    margin: 0 0.5rem;
}

body .datatable-pagination-nav {
    font-size: var(--aqc-font-size-label);
    color: var(--aqc-text-label);
}

/* Seiten-Buttons wie im Auswahl-Modal (feiner Rahmen, grau, ruhig), aber so hoch wie die Zeilenauswahl und mit Symbolen in deren Schriftgröße.
   Symbole mittig: als Text gesetzt saßen sie 2 px über der Button-Mitte. */
body .datatable-pagination .btn.datatable-pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    min-height: 1.75rem;
    margin-left: 0.25rem;
    padding: 0 0.375rem;
    line-height: 1;
    color: var(--aqc-text-label);
    background: transparent;
    border: 1px solid var(--aqc-border-subtle);
    border-radius: var(--aqc-radius);
    box-shadow: none;
}

body .datatable-pagination .btn.datatable-pagination-button > i[class*="fa"]:only-child {
    font-size: var(--aqc-font-size-control);
    line-height: 1;
}

body .datatable-pagination .btn.datatable-pagination-button:hover:not(:disabled) {
    background-color: var(--aqc-surface-muted);
    color: var(--aqc-text);
}

body .datatable-pagination .btn.datatable-pagination-button:disabled,
body .datatable-pagination .btn.datatable-pagination-button.disabled {
    opacity: 0.4;
}

/* ---------- Badges: heller Grund, farbige Schrift (Fristen, Hinweise) */
body .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.45rem;
    box-shadow: none;
    text-transform: none;
}

/* ---------- Seitenkopf: ruhiger */
body .aqc-page-header {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

body .aqc-page-header #page-title {
    font-size: 1rem;
    font-weight: 500;
}

/* ---------- Fristen und Hinweise: heller Grund, farbige Schrift statt volle Farbflächen (Bedeutung bleibt: rot/orange/grün) */
body .aqc-due {
    padding: 0.1rem 0.45rem;
    font-size: 0.8125rem;
    font-weight: 500;
}
body .aqc-due.is-overdue { background-color: #fde7ec; color: #b3112f; }
body .aqc-due.is-due_soon { background-color: #fff0cc; color: #8a5a00; }
body .aqc-due.is-ok { background-color: #dcf4e4; color: #0b6b30; }

body .aqc-hint {
    padding: 0.1rem 0.45rem;
    font-size: 0.8125rem;
    color: var(--aqc-text);
}
body .aqc-hint.is-interrupted { background-color: #fde7ec; color: #b3112f; }

/* Detail-Buttons in Tabellenzeilen: schwarz bleibt (Vorgabe), aber leichter */
body .aqc-datatable .aqc-icon-btn {
    /* font-size: 1rem; */
}

/* ---------- Register in Kartenoptik: gleiche Größe wie Kartentitel, aktives Register unterstrichen */
body .aqc-card-tab {
    font-size: 0.9375rem;
    font-weight: 600;
    padding-bottom: 0.15rem;
}

body .aqc-card-tab > i.fa-solid,
body .aqc-card-tab > i[class*="fa-"] {
    font-size: 0.85em;
}

/* Zwischenüberschriften in Karten (h5/h6): nicht größer als der Kartentitel */
body .card-body h5,
body .card-body .h5,
body .card-body h6,
body .card-body .h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Checkbox und Schalter behalten die MDB-Größe (Haken und Schalterknopf sind darauf gezeichnet); nur der Zeilenabstand ist enger */
body .form-check {
    min-height: 1.4rem;
    margin-bottom: 0.25rem;
}

/* ---------- Eingabefelder: Text vertikal mittig (kein Zusatzabstand unten), 14 px, eckiger */
body .form-outline .form-control,
body input.form-control,
body .form-select {
    height: var(--aqc-control-height);
    padding: 0 var(--aqc-control-padding-x);
    line-height: calc(var(--aqc-control-height) - 2px);
    font-size: var(--aqc-font-size-control);
}

body textarea.form-control,
body .form-outline textarea.form-control {
    height: auto;
    padding: 0.3rem var(--aqc-control-padding-x);
    line-height: 1.5;
}

body .select-input.form-control {
    padding: 0 1.75rem 0 var(--aqc-control-padding-x);
    line-height: calc(var(--aqc-control-height) - 2px);
}

body .form-notch div,
body .select-dropdown-container {
    border-radius: var(--aqc-radius);
}

/* Absicherung: eine zugeklappte, aber noch an body hängende Auswahlliste (unsichtbar, opacity 0) darf keine Klicks auf darunterliegende Felder abfangen */
body .select-dropdown-container:not(:has(.select-dropdown.open)) {
    pointer-events: none;
}

/* ---------- Zeilenabstand: Formularzeilen und Tabellenzeilen enger */
body .card-body .mb-3,
body .card-body .row > [class*="col"].mb-3 {
    margin-bottom: 0.5rem !important;
}

body .card-body .mb-4 {
    margin-bottom: 0.625rem !important;
}

body .card-body .row.g-3,
body .card-body .row.gy-3 {
    --bs-gutter-y: 0.5rem;
    --mdb-gutter-y: 0.5rem;
}

body .aqc-datatable .datatable-body td {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

/* Fußleiste: Buttons passen in 40 px Höhe */
body .btn.aqc-footer-button {
    font-size: 0.75rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

/* ---------- Tabellentext wie Eingabetext: gleiche Größe, Stärke (MDB setzt in Tabellen 300 = hell) und Farbe */
body .aqc-datatable table,
body .aqc-datatable .datatable-body tr,
body .aqc-table,
body .aqc-table td,
body .aqc-table th {
    font-size: var(--aqc-font-size);
    font-weight: 400;
    color: var(--aqc-text);
}

body .aqc-datatable .datatable-body td,
body .aqc-datatable .datatable-body td > *:not(.aqc-icon-btn):not(.badge):not(.aqc-due):not(.aqc-hint):not(.aqc-type-code) {
    font-size: var(--aqc-font-size);
    font-weight: 400;
    line-height: 1.5;
}

/* Icon-Buttons in Zellen: gleiche Größe in allen Tabellen (1,25 rem wie die Grundgröße), egal ob der Button direkt in der Zelle oder in einer
   Button-Gruppe (span) steht – vorher galt 1 rem nur für direkt eingesetzte Buttons, die Startseite zeigte dadurch kleinere Buttons als die Listen */
body .aqc-datatable .datatable-body td .aqc-icon-btn,
body .aqc-table td .aqc-icon-btn {
    font-size: 1.25rem;
    vertical-align: middle;
}

body .aqc-icon-btn > i {
    line-height: 1;
}

/* Schloss in der Aktionsspalte (gesperrte Dokumente): gleiche Box und Symbolgröße wie die Icon-Buttons daneben, grau */
body .aqc-row-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    font-size: 1.25rem;
    color: var(--aqc-text-subtle);
    vertical-align: middle;
    cursor: help;
}

body .aqc-row-lock > i {
    line-height: 1;
}

/* Datei-Symbol in „Hinterlegte Dokumente“: gleiche Box und Symbolgröße wie die Icon-Buttons der Aktionsspalte; Farbe wie diese (Dateiname im Tooltip) */
body .aqc-doc-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    font-size: 1.25rem;
    color: var(--mdb-body-color, #4f4f4f);
    vertical-align: middle;
    cursor: help;
}

body .aqc-doc-file-icon > i {
    line-height: 1;
}

/* Vorschau eines Dokuments im Modal: PDF füllt die nutzbare Höhe (Kopf/Fuß des Modals abgezogen), Bilder skalieren nur verkleinernd */
body .aqc-doc-preview {
    display: flex;
    justify-content: center;
}

body .aqc-doc-preview iframe {
    width: 100%;
    height: calc(100vh - 14rem);
    border: 0;
}

body .aqc-doc-preview img {
    max-width: 100%;
    max-height: calc(100vh - 14rem);
    object-fit: contain;
}

/* Spaltenköpfe bleiben klein und grau */
body .aqc-table th {
    font-size: var(--aqc-font-size-label);
    font-weight: 500;
    color: var(--aqc-text-label);
}

/* Datatable: MDB erzwingt für die letzte Zeile eine Mindesthöhe (sm: 55 px, sonst 71 px), vermutlich als Reserve für die Bildlaufleiste;
   dadurch war die letzte Zeile deutlich höher als die übrigen. Mit "auto" richtet sie sich wie alle nach ihrem Inhalt. */
body .aqc-datatable,
body .datatable {
    --mdb-datatable-tbody-tr-last-child-height: auto;
    --mdb-datatable-sm-tbody-tr-last-child-height: auto;
}

/* ---------- Leere Datumsfelder: Platzhalter ("tt.mm.jjjj") wie der Platzhalter der Auswahlfelder, nicht dominant.
   Die Klasse aqc-empty setzt core/ui/date-empty.js; beim Fokus ist der Platzhalter wieder lesbar. */
body input.aqc-empty:not(:focus)::-webkit-datetime-edit {
    color: var(--aqc-text-subtle);
}

/* Kalender-/Uhr-Symbol: Chrome nimmt sein eigenes Symbol nach Tag/Monat/Jahr in die Tab-Reihenfolge auf, Tab landete auf dem Symbol statt im nächsten Feld.
   Das eigene Symbol wird deshalb ausgeblendet und gedämpft als Hintergrundbild gezeichnet; den Klick darauf öffnet core/ui/date-empty.js (initDatePickerIcon).
   Gilt nur mit der Klasse aqc-date-icon, die erst dieses Skript setzt: Lädt der Browser neues CSS mit altem Skript aus dem Cache, wäre die Auswahl sonst nicht erreichbar.
   Nur wo es das Chrome-Symbol gibt – Firefox zeichnet seine eigene Schaltfläche, dort käme sonst ein zweites Symbol dazu. */
@supports selector(::-webkit-calendar-picker-indicator) {
    html.aqc-date-icon body input[type="date"]::-webkit-calendar-picker-indicator,
    html.aqc-date-icon body input[type="time"]::-webkit-calendar-picker-indicator,
    html.aqc-date-icon body input[type="datetime-local"]::-webkit-calendar-picker-indicator,
    html.aqc-date-icon body input[type="month"]::-webkit-calendar-picker-indicator {
        display: none;
    }
    html.aqc-date-icon body input[type="date"],
    html.aqc-date-icon body input[type="datetime-local"],
    html.aqc-date-icon body input[type="month"],
    html.aqc-date-icon body input[type="time"] {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' fill-opacity='.55' d='M4 0a.75.75 0 0 1 .75.75V2h6.5V.75a.75.75 0 0 1 1.5 0V2H14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h1.25V.75A.75.75 0 0 1 4 0ZM1.5 6v8c0 .28.22.5.5.5h12a.5.5 0 0 0 .5-.5V6Z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.6rem center;
        background-size: 14px 14px;
        padding-right: 2rem;
    }
    html.aqc-date-icon body input[type="time"] {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' fill-opacity='.55' d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13Zm.75 2.75v3.44l2.28 2.28a.75.75 0 0 1-1.06 1.06L7.47 8.53A.75.75 0 0 1 7.25 8V4.25a.75.75 0 0 1 1.5 0Z'/%3E%3C/svg%3E");
    }
}


/* ---------- Auswahlfelder: Rand wie bei den Textfeldern.
   Der MDB-Select zeichnet seinen Rand über .form-notch mit --mdb-form-control-border-color (dunkler als --aqc-border);
   Fokus- und Offen-Zustand setzt MDB über eigene Variablen und bleibt unberührt. */
:root {
    --mdb-form-control-border-color: var(--aqc-border);
}

body .form-outline .form-notch .form-notch-leading {
    border-radius: var(--aqc-radius) 0 0 var(--aqc-radius);
}

body .form-outline .form-notch .form-notch-trailing {
    border-radius: 0 var(--aqc-radius) var(--aqc-radius) 0;
}

/* ---------- Kompakte Felder (form-control-sm in Terminen, Unterlisten): gleiche Größe und Schrift wie alle Felder.
   MDB setzt .form-control.form-control-sm auf 12,4 px mit höherer Spezifität als die Grundregel oben. */
body .form-control.form-control-sm,
body .form-outline .form-control.form-control-sm,
body .form-select.form-select-sm {
    height: var(--aqc-control-height);
    min-height: var(--aqc-control-height);
    padding: 0 var(--aqc-control-padding-x);
    font-size: var(--aqc-font-size-control);
    line-height: calc(var(--aqc-control-height) - 2px);
    border-radius: var(--aqc-radius);
}

body textarea.form-control.form-control-sm {
    height: auto;
    padding: 0.3rem var(--aqc-control-padding-x);
    line-height: 1.5;
}

/* ---------- Einfache Tabellen (Einstellungen: Kategorien, Merkmale, Titel): Zellen so kompakt wie die Datatable, Felder in der Zeile bündig */
body .aqc-table > :not(caption) > * > * {
    padding: 0.125rem 0.5rem;
}

body .aqc-table thead th {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

/* Auswahl-Modale: weniger Abstand zum Kopf, feste Spalten (einzeilig mit Auslassung), schmale Aktionsspalte */
body .modal-body:has(> .aqc-select-modal) {
    padding-top: 0.5rem;
}

body .aqc-select-table {
    table-layout: fixed;
}

body .aqc-select-table th,
body .aqc-select-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .aqc-select-table .aqc-select-action-col {
    width: 3rem;
}

body .aqc-select-table td.aqc-select-empty {
    white-space: normal;
}

body .aqc-select-filter {
    max-width: 14rem;
}

/* Bereits gewählter Datensatz beim Wechseln: markiert, aber nicht wählbar */
body .aqc-select-table > tbody > tr.aqc-select-current:nth-child(n) > td {
    background-color: var(--aqc-surface-muted);
    color: var(--aqc-text-label);
    cursor: default;
}

/* Sichtbar, aber nicht wählbar (z. B. gekündigtes Objekt): Text gedämpft, Hand zeigt „nicht erlaubt“; das Status-Badge behält seine Farbe */
body .aqc-select-table > tbody > tr.aqc-select-disabled > td {
    color: var(--aqc-text-label);
    cursor: not-allowed;
}

/* Haken und Stecknadel gleich breit, damit die Symbole untereinander stehen */
body .aqc-select-table td.aqc-row-actions .aqc-icon-btn {
    width: 2rem;
}

body .aqc-icon-btn.aqc-select-current-mark {
    color: var(--aqc-text-subtle);
    cursor: default;
}

/* Zeilen wie die Datatables: gleiche Innenabstände und Zeilenhöhe, Streifen 1 %, Hover 2,5 % (Vorgabe Nutzer 06.11.2026).
   Text 1 px tiefer: Roboto lässt unten Platz für Unterlängen, neben dem Haken wirkte die Schrift sonst zu hoch. */
body .aqc-select-table > tbody > tr > td {
    padding: calc(0.125rem + 1px) 0.4rem calc(0.125rem - 1px);
    line-height: 1.5;
    background-color: transparent;
    box-shadow: none;
}

body .aqc-select-table > tbody > tr > td.aqc-row-actions {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

body .aqc-select-table > thead > tr > th {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

body .aqc-select-table > tbody > tr:nth-child(odd) > td {
    background-color: rgba(var(--mdb-emphasis-color-rgb), 0.01);
}

body .aqc-select-table > tbody > tr:not(.aqc-select-current):hover > td {
    background-color: rgba(var(--mdb-emphasis-color-rgb), 0.025);
    transition: background-color 0.2s ease-in;
}

/* Feste Einschränkung der Liste (z. B. Ansprechpartner eines Kunden) unter der Suche: gelbe Pill über die volle Breite,
   Name nur minimal größer als die Erklärung und fett */
body .aqc-select-scope {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem;
    margin: 0 0 0.375rem;
    padding: 0.0625rem 0.625rem;
    border-radius: 50rem;
    background-color: var(--mdb-warning-bg-subtle);
    border: 1px solid var(--mdb-warning-border-subtle);
    color: var(--mdb-warning-text-emphasis);
    line-height: 1.4;
}

body .aqc-select-scope-label {
    font-size: 0.6875rem;
}

body .aqc-select-scope-value {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Seitenwechsel: klein und zurückhaltend, kein Button-Kontrast. Die globale Regel für Icon-only-Buttons (17 px) gilt hier nicht. */
body .btn.aqc-select-pager-btn {
    min-height: 1.375rem;
    height: 1.375rem;
    padding: 0 0.375rem;
    line-height: 1;
    color: var(--aqc-text-label);
    background: transparent;
    border: 1px solid var(--aqc-border-subtle);
    box-shadow: none;
}

body .aqc-select-pager .btn.aqc-select-pager-btn > i[class*="fa-"]:only-child {
    font-size: 0.625rem;
}

body .btn.aqc-select-pager-btn:hover:not(:disabled) {
    background-color: var(--aqc-surface-muted);
    color: var(--aqc-text);
    box-shadow: none;
}

/* Suchbereich im Auswahl-Modal: symmetrisches, kleines Padding (die Filterleiste der Listen hat unten mehr Platz – hier wirkten Feld und
   Buttons dadurch zu hoch) und weniger Abstand zum Hinweis darunter */
body .aqc-select-modal .aqc-start-filter {
    margin-bottom: 0.375rem !important;
}

body .aqc-select-modal .aqc-start-filter > .card-body {
    padding: 0.375rem 0.5rem;
}

/* Suchleiste im Auswahl-Modal kleiner als die normalen Felder (global sind -sm-Felder bewusst 30 px hoch): etwa Bootstrap form-control-sm */
body .aqc-select-modal .aqc-start-filter .form-control.form-control-sm,
body .aqc-select-modal .aqc-start-filter .form-select.form-select-sm {
    height: 1.625rem;
    min-height: 1.625rem;
    font-size: 0.8125rem;
    line-height: 1.5rem;
}

body .aqc-select-modal .aqc-start-filter .btn.btn-sm {
    min-height: 1.625rem;
    height: 1.625rem;
    padding: 0 0.625rem;
    line-height: 1;
}

body .aqc-select-modal .aqc-start-filter .btn.btn-sm > i[class*="fa-"]:only-child {
    font-size: 0.8125rem;
}

body .btn.aqc-select-pager-btn:disabled {
    opacity: 0.4;
}

body .aqc-table .form-control.form-control-sm {
    min-width: 4rem;
}

/* ---------- Register (Pills, z. B. Einstellungen): normale Schreibweise, kompakte Höhe */
body .nav-pills .nav-link {
    padding: 0.375rem 0.75rem;
    font-size: var(--aqc-font-size-button);
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    border-radius: var(--aqc-radius);
}

body .nav-pills.nav-justified {
    gap: 0.375rem;
}

/* ---------- Checkbox mit Beschriftung: Beschriftung auf Höhe der Box (Mitte), nicht an der Textgrundlinie.
   Schalter (form-switch) gibt es nicht mehr; die Ausnahme bleibt nur für Fremdkomponenten. */
body .form-check:not(.form-switch) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0;
}

body .form-check:not(.form-switch) > .form-check-input {
    float: none;
    margin: 0;
    flex: 0 0 auto;
}

body .form-check:not(.form-switch) > .form-check-label {
    margin: 0;
    line-height: 1.3;
}

/* Fokus ohne MDB-Kreis (Schatten hinter der Box, Vorgabe Nutzer 06.11.2026); nur bei Tastaturbedienung eine feine Kontur wie bei den Buttons */
body .form-check-input:focus,
body .form-check-input:checked:focus {
    box-shadow: none;
}

body .form-check-input:focus::before,
body .form-check-input:checked:focus::before {
    box-shadow: none;
    opacity: 0;
}

body .form-check-input:focus-visible {
    outline: 2px solid rgba(var(--mdb-primary-rgb, 0, 61, 253), 0.45);
    outline-offset: 2px;
}

/* ---------- Checkbox-Farben statt MDB-Blau (Vorgabe Nutzer 06.11.2026, alle vier behalten): Klasse an .form-check-input bzw.
   createCheckbox( { tone } ) – ink (Tinte), brand (Marke hell), ok (Grün wie Ja/Nein), outline (Kontur). Muster: #/ui/field-groups.
   Alle: 1 px Rand wie die Eingabefelder statt MDBs 2-px-Grau, Haken als gezeichnetes Symbol in der Variantenfarbe. */
/* Auch im Fokus (nach dem Klick) und ohne Übergang: MDB färbt :checked:focus sonst bis zum Wegklicken blau und animiert den Rand */
body .form-check-input:is(.aqc-check-ink, .aqc-check-brand, .aqc-check-ok, .aqc-check-outline),
body .form-check-input:is(.aqc-check-ink, .aqc-check-brand, .aqc-check-ok, .aqc-check-outline):focus {
    border-width: 1px;
    border-color: #9aa3b2;
    transition: none;
}

body .form-check-input:is(.aqc-check-ink, .aqc-check-brand, .aqc-check-ok, .aqc-check-outline):hover:not(:disabled) {
    border-color: var(--aq-ink-3);
}

/* Haken als gezeichnetes Symbol statt MDBs gedrehtem Rahmen (der hat feste Abstände für 2-px-Rand und saß mit 1 px schief):
   Maske über die ganze Box, Farbe über --aqc-check-mark – dadurch exakt mittig und mit scale mitwachsend */
body .form-check-input:is(.aqc-check-ink, .aqc-check-brand, .aqc-check-ok, .aqc-check-outline) {
    position: relative;
}

body .form-check-input:is(.aqc-check-ink, .aqc-check-brand, .aqc-check-ok, .aqc-check-outline):checked::after {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    border: 0;
    transform: none;
    background-color: var(--aqc-check-mark, #fff);
    -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.6' d='m5.5 10.5 3 3 6-6.5'/%3e%3c/svg%3e") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.6' d='m5.5 10.5 3 3 6-6.5'/%3e%3c/svg%3e") center / 100% 100% no-repeat;
}

/* ink „Tinte“: dunkles Blau-Schwarz der Schrift, weißer Haken – ruhig, passt zu schwarzen Titeln und Symbolen */
body .form-check-input.aqc-check-ink:checked,
body .form-check-input.aqc-check-ink:checked:focus { background-color: var(--aq-ink); border-color: var(--aq-ink); }
body .form-check-input.aqc-check-ink:checked { --aqc-check-mark: #fff; }

/* brand „Marke hell“: helles Markenblau als Fläche, Haken und Rand in Markenblau – Marke ohne volle blaue Fläche */
body .form-check-input.aqc-check-brand:checked,
body .form-check-input.aqc-check-brand:checked:focus { background-color: var(--aq-brand-soft); border-color: var(--aq-brand); }
body .form-check-input.aqc-check-brand:checked { --aqc-check-mark: var(--aq-brand); }

/* ok „Grün wie Ja/Nein“: wie die aktive Ja/Nein-Schaltfläche (hellgrün, dunkelgrüner Haken) */
body .form-check-input.aqc-check-ok:checked,
body .form-check-input.aqc-check-ok:checked:focus { background-color: #d3efdc; border-color: var(--aq-ok-ink); }
body .form-check-input.aqc-check-ok:checked { --aqc-check-mark: var(--aq-ok-ink); }

/* outline „Kontur“: weiß bleibend, nur Rand und Haken dunkel – am zurückhaltendsten */
body .form-check-input.aqc-check-outline:checked,
body .form-check-input.aqc-check-outline:checked:focus { background-color: #fff; border-color: var(--aq-ink-2); }
body .form-check-input.aqc-check-outline:checked { --aqc-check-mark: var(--aq-ink); }

body .form-check-input:is(.aqc-check-ink, .aqc-check-brand, .aqc-check-ok, .aqc-check-outline):disabled { opacity: 0.45; }

/* Checkbox-Größen (Klasse an .form-check; createCheckbox( { size } )): die Box wird skaliert, damit MDBs Haken mitwächst. scale ändert den
   Platz im Layout nicht – deshalb gleichen Rand und Mindesthöhe die Vergrößerung aus, berechnet aus dem Faktor (Box 18 px = 1.125rem)
   statt fester Pixelwerte; Box und Text stehen über Flex mittig zueinander */
body .form-check.aqc-check-sm { --aqc-check-scale: 0.8; }
body .form-check.aqc-check-lg { --aqc-check-scale: 1.3; }
body .form-check.aqc-check-xl { --aqc-check-scale: 1.6; }

body .form-check:is(.aqc-check-sm, .aqc-check-lg, .aqc-check-xl) {
    min-height: calc(1.125rem * var(--aqc-check-scale));
}

body .form-check:is(.aqc-check-sm, .aqc-check-lg, .aqc-check-xl) > .form-check-input {
    margin: 0 calc(1.125rem * (var(--aqc-check-scale) - 1) / 2);
    scale: var(--aqc-check-scale);
}

body .form-check.aqc-check-lg > .form-check-label { font-size: 1rem; }
body .form-check.aqc-check-xl > .form-check-label { font-size: 1.125rem; }

/* Zweittext der Auswahlliste (z. B. Bezeichnung hinter dem Kürzel) in derselben Zeile, damit die feste Zeilenhöhe der Liste passt */
body .select-option-secondary-text {
    display: inline-block !important;
    margin-left: 0.5rem;
    font-size: var(--aqc-font-size-label);
    line-height: 1;
}

body .select-option .select-option-text {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

/* ---------- Badges in Tabellen: eigene kleine Größe (die Zellenregel gilt nicht für sie) */
body .badge {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    padding: 0.15rem 0.45rem;
}

/* Zeilenaktionen (Detail, Löschen) in allen Tabellen rechtsbündig (ui-guidelines.md, Ausrichtung in Tabellen) */
body .aqc-datatable .datatable-body td.aqc-row-actions,
body table.table > tbody > tr > td.aqc-row-actions,
body .aqc-table td.aqc-row-actions {
    text-align: right;
    white-space: nowrap;
}

/* ---------- Gespeicherte Geheimnisse (Passwort, App-Passwort): Punkte als Platzhalter, deutlich lesbar, damit man sieht, dass ein Wert gesetzt ist.
   Der Wert selbst wird nie geladen; das Feld bleibt leer und bedeutet "unverändert". */
body input.aqc-secret-set::placeholder {
    color: var(--aqc-text);
    opacity: 0.55;
    letter-spacing: 0.1em;
}

/* Auswahl des Standard-Kalenders: grauer Haken, beim Überfahren dunkler; der aktive Standard ist grün (aqc-icon-btn-success) */
body .aqc-calendar-default,
body .aqc-calendar-default:hover:not(:disabled) {
    color: #b0b6bf;
}

body .aqc-calendar-default:hover:not(:disabled),
body .aqc-calendar-default:focus-visible {
    color: #198754;
}

/* Kalendertabelle neben den Zugangsfeldern: der Tabellenkopf steht auf der Höhe der Feldbeschriftung „Apple-ID“ (kein oberer Abstand) */
body .aqc-calendar-table thead th {
    padding-top: 0;
    padding-bottom: 0.25rem;
    line-height: 1.3;
}

/* ---------- Dialoge und Modale: kompakter Kopf, Fuß mit gleich breiten Buttons */
/* Roboto lässt unter der Grundlinie Platz für Unterlängen; Titel ohne Unterlängen wirkten dadurch 2 px zu hoch.
   Asymmetrisches Padding setzt Icon und Großbuchstaben optisch auf die Mitte (gleiche Gesamthöhe). */
body .modal-header {
    padding: calc(0.5rem + 2px) 1rem calc(0.5rem - 2px);
}

body .modal-header .modal-title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

body .modal-body {
    padding: 1rem;
}

body .modal-footer {
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

body .modal-footer .btn {
    min-width: 6.5rem;
    margin: 0;
}

/* ---------- Lade-Overlay der Maske (#page-loading): deckt den Inhaltsbereich ab, Spinner und Text in der Mitte.
   Die Kopfzeile (sticky, z-index 900) bleibt darüber sichtbar; Navigation und Aktionsleiste liegen außerhalb. */
body .aqc-page {
    position: relative;
}

body .aqc-page-loading {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem 0; /* oben Platz der Kopfzeile, damit die Mitte des Inhaltsbereichs getroffen wird */
    background-color: rgba(255, 255, 255, 0.85);
}

body .aqc-page-loading .aqc-page-loading-spinner {
    width: 4rem;
    height: 4rem;
    border-width: 0.35rem;
}

body .aqc-page-loading .aqc-page-loading-text {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--aqc-text-label);
}

/* ---------- Tabellen und Listen beim Nachladen (Sortieren, Blättern, Suchen): dunkles Overlay mit Spinner.
   Die Klasse aqc-list-loading setzen die Listen selbst; die Feld-App (PWA, body.aqc-standalone) nutzt sie anders und bleibt beim alten Abblenden. */
body:not(.aqc-standalone) .aqc-list-loading {
    position: relative;
    min-height: 8rem;
    opacity: 1;
    pointer-events: none;
}

body:not(.aqc-standalone) .aqc-list-loading::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    border-radius: inherit;
    background-color: rgba(33, 37, 41, 0.45);
}

body:not(.aqc-standalone) .aqc-list-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 21;
    width: 2.75rem;
    height: 2.75rem;
    margin: -1.375rem 0 0 -1.375rem;
    border: 0.3rem solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: aqc-spin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    body:not(.aqc-standalone) .aqc-list-loading::after { animation-duration: 2.4s; }
}

/* ---------- Objektstruktur: Baum (Hauseingang → Etage → Nutzeinheit → Entnahmestelle) */
body .aqc-struct-row {
    display: flex;
    align-items: center;
    /* Alle Zeilen gleich hoch – auch Entnahmestellen ohne Buttons (Höhe der Icon-Buttons); kompakter seit 06.11.2026 (Buttons 22 px) */
    min-height: 1.75rem;
    padding: 0.2rem 0.375rem;
    border-radius: var(--aqc-radius);
}

body .aqc-struct-row:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Aktiver Knoten: blasses Gelb, schwarze fette Schrift, Caret und Symbol dunkel getönt (die Ampelfarbe der Nutzeinheit bleibt) */
body .aqc-struct-row.is-selected {
    background-color: #fff3bf;
}

body .aqc-struct-row.is-selected .aqc-struct-label {
    color: #000;
    font-weight: 700;
}

body .aqc-struct-row.is-selected .aqc-struct-toggle,
body .aqc-struct-row.is-selected .aqc-struct-icon {
    color: #7a5b00;
}

body .aqc-struct-toggle {
    flex: 0 0 auto;
    width: 1.1rem;
    margin-right: 0.6rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--aqc-text-label);
    text-align: center;
}

body .aqc-struct-label {
    display: inline-flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--aqc-text);
    text-align: left;
}

/* Abstand Caret ↔ Symbol ↔ Zähler ↔ Bezeichnung */
/* Farben getauscht (Nutzer 06.11.2026): Carets hell wie früher die Symbole, Symbole dunkel wie früher die Carets */
body .aqc-struct-icon {
    width: 1.1rem;
    margin-right: 0.5rem;
    text-align: center;
    color: var(--aqc-text);
}


/* Ebenen des Baums (Nutzer 06.11.2026): einheitliche Schriftgröße; Hauseingänge fett in Primärfarbe als eigene Blöcke mit Abstand und
   Trennlinie, Etagen halbfett mit etwas Abstand. Entnahmestellen eingerückt: das Wasserhahn-Symbol beginnt dort, wo der Text „Lage – Mieter“ der Nutzeinheit beginnt.
   Symbole je Ebene wie in der Feld-App (Gebäude, Ebenen, Tür, Wasserhahn). */
body .aqc-struct-building > .aqc-struct-row .aqc-struct-label,
body .aqc-struct-building > .aqc-struct-row .aqc-struct-icon {
    color: var(--mdb-primary);
    font-size: var(--aqc-font-size);
    font-weight: 700;
}

body .aqc-struct-floor > .aqc-struct-row .aqc-struct-label {
    font-weight: 600;
}

body .aqc-struct-floor + .aqc-struct-floor {
    margin-top: 0.375rem;
}

body .aqc-struct-unit > ul {
    padding-left: 4.55rem !important;
}

body .aqc-struct-samplingPoint > .aqc-struct-row > .aqc-struct-toggle-empty {
    display: none;
}

body .aqc-struct-tree > .aqc-struct-building + .aqc-struct-building {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--aqc-border-subtle);
}

/* Zeile wie im Baum der Feld-App (pwa.css „Objektbaum“): Bezeichnung füllt die Zeile; rechts Sonder-Buttons, Anzahl-Badge und „+“ in festen Spalten */
body .aqc-struct-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Merkmale der Stelle (Endleitung, Abbruch): gleich hohe Rahmen direkt am Namen, Abbruch in Warnfarbe */
body .aqc-struct-tag {
    display: inline-block;
    margin-left: 0.75rem;
    padding: 0 0.375rem;
    border: 1px solid var(--aqc-border);
    border-radius: var(--aqc-radius);
    color: var(--aqc-text-label);
    font-size: var(--aqc-font-size-label);
    font-weight: 500;
    line-height: 1.125rem;
    vertical-align: 1px;
    white-space: nowrap;
}

body .aqc-struct-tag + .aqc-struct-tag {
    margin-left: 0.375rem;
}

body .aqc-struct-tag.is-warn {
    border-color: var(--aq-warn);
    background-color: var(--aq-warn-soft);
    color: var(--aq-warn-ink);
}

/* Lage der Nutzeinheit ohne Rahmen; alle Lagen im Baum gleich breit (structure.js misst die breiteste: --aqc-position-width),
   damit die Mieter untereinander beginnen – auch wenn nur manche Lagen einen Index haben */
body .aqc-struct-position {
    display: inline-block;
    min-width: var(--aqc-position-width, auto);
}

body .aqc-struct-tenant {
    margin-left: 1.25rem;
}


/* Ampel-Punkt der Nutzeinheit zwischen Tür-Symbol und Bezeichnung; ohne Ampel bleibt der Platz leer (Texte fluchten) */
body .aqc-struct-light {
    flex: 0 0 auto;
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.5rem;
    border: 1px solid var(--aqc-border);
    border-radius: 50%;
}

body .aqc-struct-light.is-none { visibility: hidden; }
body .aqc-struct-light.is-green { background-color: var(--aq-light-green); }
body .aqc-struct-light.is-yellow { background-color: var(--aq-light-yellow); }
body .aqc-struct-light.is-red { background-color: var(--aq-light-red); }

/* Indizes (Lage-, Raum-, Stellen-Index) als <code> im grauen Badge: Schrift wie Code (Monospace), feste Breite für drei Stellen, mittig –
   alle Indizes gleich breit. Farbe, Größe und Gewicht fest, damit weder MDB-code noch die Zeile (fett, Primärfarbe) durchschlagen. */
body .aqc-struct-text code.aqc-struct-index {
    display: inline-block;
    width: calc(3ch + 0.6rem);
    margin-left: 0.375rem;
    padding: 0;
    border-radius: var(--aqc-radius);
    background-color: var(--aqc-surface-muted);
    color: var(--aqc-text-label);
    font-family: var(--aq-font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25rem;
    text-align: center;
    vertical-align: 1px;
}

/* Raum und Stelle einer Entnahmestelle mit deutlichem Abstand */
body .aqc-struct-part-next {
    margin-left: 1.5rem;
}

/* Anzahl der nächsten Ebene: eckiges Badge fester Breite (Platz für drei Stellen), Zahl mittig; bei Entnahmestellen leer mit gleicher Breite */
body .aqc-struct-count.badge {
    flex: 0 0 auto;
    width: 1.875rem;
    margin-left: 0.5rem;
    padding: 0.1rem 0;
    border: 1px solid var(--aqc-text);
    border-radius: var(--aqc-radius);
    background-color: transparent;
    color: var(--aqc-text);
    font-size: 0.6875rem;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

body .aqc-struct-count.badge.is-empty { visibility: hidden; }

/* „+“ ganz rechts in Standardfarbe, immer sichtbar; bei Entnahmestellen ein leerer Platz gleicher Breite */
body .aqc-struct-add {
    flex: 0 0 auto;
    width: 1.375rem;
    margin-left: 0.25rem;
}

/* Icon-Buttons im Baum (Anlegen „+“, Mieterwechsel) kleiner als die Standard-Icon-Buttons: 22 px, Symbol 14 px (Vorgabe Nutzer 06.11.2026) */
body .aqc-struct-row .aqc-icon-btn {
    min-width: 1.375rem;
    width: 1.375rem;
    height: 1.375rem;
    padding: 0;
    font-size: 0.875rem;
}

body span.aqc-struct-add.is-empty { display: inline-block; }

/* Sonder-Buttons der Ebene (z. B. Mieterwechsel) links vom Anzahl-Badge, dauerhaft sichtbar */
body .aqc-struct-actions {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.125rem;
    margin-left: 0.5rem;
}

/* Mieterwechsel: Eingabe im grauen Balken wie die Suche der Listen (aqc-start-filter), Feld in voller Breite und groß */
body .aqc-tenant-input {
    padding: 0.75rem 1rem;
    border-radius: var(--aqc-radius-card);
}

body .aqc-tenant-input .form-control.form-control-lg {
    height: 2.75rem;
    background-color: #fff;
    font-size: 1.0625rem;
}

/* Entnahmestelle und andere Knoten: Eingaben in einer Zeile; Indexfelder schmal und mittig */
body .aqc-struct-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.5rem;
}

body .aqc-struct-fields > * {
    flex: 1 1 8rem;
    min-width: 0;
}

body .aqc-struct-fields > .aqc-struct-narrow {
    flex: 0 0 5.5rem;
}

/* Felder mit fester Breite (structure.js: width), auf schmalen Bildschirmen höchstens so breit wie die Zeile */
body .aqc-struct-fields > .aqc-struct-sized {
    flex: 0 1 var(--aqc-field-width);
}

/* Kopfzeile der Struktur: Pfad der Auswahl als Breadcrumb (etwas größer als die frühere Pfadzeile der Detailkarte), rechts die Zähler.
   Vorstufen sind Buttons im Link-Stil, die aktuelle Stufe dunkel und fett; Objektangaben durch kleine Punkte, Stufen durch › getrennt */
body .aqc-struct-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    min-width: 0;
    font-size: 1rem;
}

body .aqc-struct-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Vorstufen als Link: Grau wie die inaktiven Register-Texte (aqc-tabs), unterstrichen; Hintergrund und Farbe nicht auf die Badge anwenden */
body .aqc-struct-breadcrumb-item:not(.is-current) {
    padding: 0;
    border: 0;
    background: none;
    color: var(--aqc-text-label);
    font-size: inherit;
    cursor: pointer;
}

body .aqc-struct-breadcrumb-item:not(.is-current) > .aqc-struct-breadcrumb-text {
    text-decoration: underline;
    text-decoration-color: rgba(107, 114, 128, 0.4);
    text-underline-offset: 0.2em;
}

body .aqc-struct-breadcrumb-item:not(.is-current):hover {
    color: var(--aqc-text);
}

body .aqc-struct-breadcrumb-item:not(.is-current):hover > .aqc-struct-breadcrumb-text {
    text-decoration-color: currentColor;
}

/* Zwischenstufen (weder Wurzel noch aktuell) kursiv */
body .aqc-struct-breadcrumb-item.is-between {
    font-style: italic;
}

/* Wurzel (Objekt): immer gleich, fett in der Größe des Pfads; „::“ davor rot und größer (Vorgabe Nutzer 06.11.2026) */
body .aqc-struct-breadcrumb-item.is-root {
    font-weight: 700;
}

body .aqc-struct-breadcrumb-root {
    color: #dc3545;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
}

/* Aktuelle Stufe als grüne Badge wie „aktiv“ (badge-success), in der Schriftgröße etwas unter dem Pfad */
body .aqc-struct-breadcrumb-item.is-current.badge {
    padding: 0.25rem 0.55rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: default;
}

body .aqc-struct-breadcrumb-dot {
    color: var(--aqc-text-subtle);
    font-weight: 700;
    line-height: 1;
}

body .aqc-struct-breadcrumb-sep {
    color: var(--aqc-text-subtle);
    font-size: 0.75rem;
}

/* ---------- Farbauswahl (createMdbSelect( { colorDots: true } ), z. B. Ampel der Nutzeinheit; Vorgabe Nutzer 06.11.2026): Feld und Liste zeigen
   nur Farbkreise, so groß wie eine Checkbox (1.25rem), ohne Pfeil. Kreis als radial-gradient mit der Farbe aus --aqc-color-dot (setzt das JS je
   Eintrag); der Text (z. B. „rot“) bleibt für Screenreader, ist aber unsichtbar. Einträge ohne Farbe („–“) erscheinen als Text. */
body .aqc-color-select .select-arrow {
    display: none;
}

body .aqc-color-select .select-input.form-control {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

body .aqc-color-select .select-input.has-color,
body .aqc-color-select-dropdown .select-option.has-color .select-option-text {
    background-image: radial-gradient(circle closest-side, var(--aqc-color-dot) calc(100% - 1px), transparent 100%);
    background-position: center;
    background-size: 1.25rem 1.25rem;
    background-repeat: no-repeat;
    color: transparent;
}

/* MDB gibt dem Inhalt der Liste eine Mindestbreite von 100 px – bei schmalen Farbfeldern ragte er über den Fensterrand */
body .aqc-color-select-dropdown .select-dropdown {
    min-width: 0;
    width: 100%;
}

body .aqc-color-select-dropdown .select-option {
    padding-left: 0;
    padding-right: 0;
}

body .aqc-color-select-dropdown .select-option-text {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 2rem;
    text-align: center;
}

/* Übersicht der nächsten Ebene (Hauseingang → Etagen, Etage → Nutzeinheiten): ganze Zeile anklickbar, Mietertexte einzeilig mit Tooltip */
body .aqc-struct-overview tbody tr.aqc-row-clickable {
    cursor: pointer;
}

body .aqc-struct-overview .aqc-struct-overview-text {
    max-width: 16rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body .aqc-struct-overview .aqc-struct-light {
    display: inline-block;
    margin-right: 0;
    vertical-align: middle;
}

/* Eingaben der Strukturmaske in einer hellen Fläche, abgesetzt von Kopf und Pfad der Karte */
body .aqc-struct-form {
    padding: 1rem 1rem 0.25rem;
    border-radius: var(--aqc-radius-card);
    background-color: var(--aqc-surface-muted);
}

body .aqc-struct-form .aqc-struct-fields {
    gap: 0 0.75rem;
}

/* Datatable ohne Daten: nur Kopfzeile und Warn-Alert; die leere MDB-Zeile und die Seitenwahl entfallen */
body .aqc-datatable.aqc-datatable-empty .datatable-body,
body .aqc-datatable.aqc-datatable-empty .datatable-pagination {
    display: none;
}

/* Warn-Alert für leere Bereiche: kompakt, Symbol und Text in einer Zeile */
body .alert.alert-warning[data-mdb-color="warning"] {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    font-size: var(--aqc-font-size);
}

/* Nutzeinheit: Eingaben im 12-Spalten-Raster (Breite je Feld über --aqc-span), auf schmalen Bildschirmen untereinander */
body .aqc-struct-grid,
body .aqc-grid-12 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 0.5rem;
}

body .aqc-struct-grid > *,
body .aqc-grid-12 > * {
    grid-column: span 12;
}

@media (min-width: 768px) {
    body .aqc-struct-grid > *,
    body .aqc-grid-12 > * {
        grid-column: span var(--aqc-span, 12);
    }
}

/* Entnahmestelle: Kennzeichen (Endleitung, Aushang) in der Eingabezeile, vertikal auf Höhe der Felder (Feldabstand unten ist 1 rem) */
body .aqc-struct-fields > .aqc-struct-flag {
    flex: 0 0 auto;
    align-self: flex-end;
    margin: 0 0 2.1rem;
    white-space: nowrap;
}

/* ---------- Ja/Nein-Auswahl (core/ui/yes-no.js): Beschriftung wie bei Eingaben, das Element mittig darunter, beide Schaltflächen gleich breit;
   die gewählte Schaltfläche ist grün. Höhe, Rand und Rundung wie ein Eingabefeld. */
body .aqc-yesno-field {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

body .aqc-yesno-label {
    text-align: center;
    white-space: nowrap;
}

body .aqc-yesno {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    height: var(--aqc-control-height);
    border: 1px solid var(--aqc-border);
    border-radius: var(--aqc-radius);
    background-color: #fff;
    overflow: hidden;
}

body .aqc-yesno-option {
    min-width: 3.5rem;
    padding: 0;
    text-align: center;
    border: 0;
    background: transparent;
    color: var(--aqc-text-label);
    font-size: var(--aqc-font-size-control);
    line-height: calc(var(--aqc-control-height) - 2px);
    cursor: pointer;
}

/* Trennlinie als innerer Schatten statt Rand, damit beide Schaltflächen exakt gleich breit sind und der Text mittig steht */
body .aqc-yesno-option + .aqc-yesno-option {
    box-shadow: inset 1px 0 0 var(--aqc-border);
}

body .aqc-yesno-option:hover:not(:disabled):not(.is-active) {
    background-color: #f1f3f5;
}

body .aqc-yesno-option.is-active {
    background-color: #d3efdc;
    color: #0b6b30;
    font-weight: 600;
}

body .aqc-yesno-option:focus-visible {
    outline: 2px solid rgba(var(--mdb-primary-rgb, 0, 61, 253), 0.45);
    outline-offset: -2px;
}

body .aqc-yesno-option:disabled {
    cursor: default;
    opacity: 0.6;
}

body .aqc-yesno-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Ja/Nein in der Eingabezeile der Entnahmestelle: behält seine Breite und steht auf einer Linie mit den Feldern */
body .aqc-struct-fields > .aqc-struct-yesno {
    flex: 0 0 auto;
}

/* Fehlerdialog: Beschriftung und Wert in zwei Spalten */
body .aqc-error-grid {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.5rem 1rem;
    align-items: baseline;
    word-break: break-word;
}

/* Gegliederte Meldungen aus dem Status-Code-Katalog (Markup title/p/hint/badges, MRKP bzw. core/status-texts.js):
   Überschrift fett, darunter die Aufforderung, dann die betroffenen Felder als helle Badges – der Nutzer sieht sofort, was zu tun ist */
body .aqc-msg-title {
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--mdb-body-color, #212529);
}

body .aqc-msg-p {
    margin-bottom: 0.5rem;
}

body .aqc-msg-hint {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--mdb-secondary-color, #6c757d);
}

body .aqc-msg-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

body .aqc-msg-badge {
    padding: 0.375rem 0.625rem;
    border: 1px solid var(--mdb-border-color, #e0e0e0);
    background-color: var(--aqc-surface-muted, #f5f5f5);
    color: var(--mdb-body-color, #212529);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Ergebniszeilen in Meldungen (z. B. Ausfertigen: je Empfänger ein Status-Badge): Beschriftung links, so breit wie die längste, Wert rechts daneben */
body .aqc-msg-rows {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.375rem 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

body .aqc-msg-row-label {
    color: var(--aqc-text-label);
}

body .aqc-msg-code {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--mdb-secondary-color, #6c757d);
}

/* Lade-Overlay im Modal (Upload, Speichern mit längerer Laufzeit): deckt den Dialog ab, Spinner und Text mittig */
body .modal-content {
    position: relative;
}

body .aqc-modal-busy {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background-color: rgba(255, 255, 255, 0.88);
}

body .aqc-modal-busy .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* ---------- Kleine Upload-Fläche (Dokumente, Variante "tile"): 200 × 200 px, gestrichelter Rahmen, Wolke mit Pfeil */
body .aqc-upload-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    max-width: 100%;
    padding: 0.75rem;
    border: 2px dashed var(--aqc-border);
    border-radius: var(--aqc-radius-card);
    background-color: var(--aqc-surface-muted);
    color: var(--aqc-text-label);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

body .aqc-upload-tile:hover,
body .aqc-upload-tile:focus-visible {
    border-color: var(--mdb-primary, #003DFD);
    background-color: rgba(var(--mdb-primary-rgb, 0, 61, 253), 0.05);
    outline: none;
}

body .aqc-upload-tile-icon {
    margin-bottom: 0.75rem;
    font-size: 3rem;
    color: var(--aqc-text-label);
}

body .aqc-upload-tile-text {
    font-size: var(--aqc-font-size-control);
    font-weight: 500;
    color: var(--aqc-text);
}

body .aqc-upload-tile-hint {
    margin-top: 0.25rem;
    font-size: var(--aqc-font-size-label);
}

/* Kachel mit hinterlegtem Dokument: kleineres Symbol, damit Name, Button und Hinweis in 200 px passen */
body .aqc-upload-tile.has-file .aqc-upload-tile-icon {
    margin-bottom: 0.4rem;
    font-size: 2.25rem;
}

/* ---------- Popover mit Kopfzeile wie ein Modal (Klasse aqc-popover-lg): breiter, Titel in Modal-Schrift, Upload-Kachel füllt die Breite */
body .popover.aqc-popover-lg {
    --mdb-popover-max-width: 26rem;
    max-width: 26rem;
    width: 26rem;
    border: 1px solid var(--aqc-border-subtle);
    border-radius: var(--aqc-radius-card);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.18);
}

body .popover.aqc-popover-lg .popover-header {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--aqc-text);
    background-color: #fff;
    border-bottom: 1px solid var(--aqc-border-subtle);
    border-radius: var(--aqc-radius-card) var(--aqc-radius-card) 0 0;
}

body .popover.aqc-popover-lg .popover-body {
    padding: 1rem;
}

body .popover.aqc-popover-lg .aqc-upload-tile {
    width: 100%;
    height: 14rem;
}

/* Pfeil des Popovers: MDB blendet ihn aus (display: none); hier sichtbar, Füllung wie die Kopfzeile, Rand wie die Felder */
body .popover.aqc-popover-lg > .popover-arrow {
    display: block;
}

body .popover.aqc-popover-lg {
    --mdb-popover-arrow-border: var(--aqc-border);
}

/* Buttons, die nur ein Symbol enthalten (Büroklammer am Feld, Filter zurücksetzen …): das Symbol ist die Beschriftung und deshalb in normaler Größe,
   nicht auf 85 % wie neben einem Text */
body .btn:not(.aqc-footer-button) > i.fa-solid:only-child,
body .btn:not(.aqc-footer-button) > i[class*="fa-"]:only-child {
    font-size: 1.0625rem;
    line-height: 1;
}

/* Button, dessen Aktion gerade läuft (createButton): sichtbar gesperrt, weitere Klicks gehen ins Leere */
body .btn.aqc-btn-busy,
body .aqc-icon-btn.aqc-btn-busy {
    pointer-events: none;
    opacity: 0.65;
}

/* PDF-Vorschau im Dialog (core/ui/pdf-preview.js): füllt den Dialog */
.aqc-pdf-preview { width: 100%; height: 70vh; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 0.25rem; }

/* ---------- Register (core/ui/tabs.js): Segment-Leiste. Die MDB-Pills unterscheiden aktiv (blasses Blau) und inaktiv (hellgrau) kaum;
   hier trägt das aktive Register die volle Primärfarbe. Eigene Klasse statt .nav-pills, damit andere Pills (z. B. Mail-Editor) unberührt bleiben. */
body .nav.aqc-tabs {
    gap: 3px;
    margin-left: 0;
    margin-right: 0;
    padding: 3px;
    background-color: var(--aqc-surface-muted);
    border: 1px solid var(--aqc-border-subtle);
    border-radius: var(--aqc-radius-card);
}

/* Alle Register einer Zeile gleich hoch und der Inhalt mittig: ein Register mit Badge ist sonst höher und seine Schrift sitzt versetzt */
body .nav.aqc-tabs > .nav-item {
    display: flex;
}

body .nav.aqc-tabs .nav-link {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.4375rem 0.875rem;
    font-size: var(--aqc-font-size);
    font-weight: 500;
    line-height: 1.25;
    text-transform: none;
    color: var(--aqc-text-label);
    background-color: transparent;
    border-radius: var(--aqc-radius);
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body .nav.aqc-tabs .nav-link:hover {
    color: var(--aqc-text);
    background-color: #fff;
}

body .nav.aqc-tabs .nav-link.active {
    color: #fff;
    font-weight: 600;
    background-color: var(--mdb-primary);
    box-shadow: 0 1px 3px rgba(var(--mdb-primary-rgb, 0, 61, 253), 0.35);
}

/* Hauptebene: feine senkrechte Trennlinie zwischen den Registern; neben dem aktiven Register entfällt sie, weil dessen Fläche schon abgrenzt.
   Die Linie sitzt mittig in der Lücke (gap 3px), deshalb left: -2px. Erst ab xl: auf schmalen Bildschirmen brechen die Register um,
   und CSS erkennt den Zeilenanfang nicht – dort stünde sonst eine Linie vor dem ersten Register der neuen Zeile */
@media (min-width: 1200px) {
    body .nav.aqc-tabs:not(.aqc-tabs-sub) > .nav-item {
        position: relative;
    }

    body .nav.aqc-tabs:not(.aqc-tabs-sub) > .nav-item + .nav-item::before {
        content: "";
        position: absolute;
        top: 25%;
        bottom: 25%;
        left: -2px;
        width: 1px;
        background-color: var(--aqc-border);
    }

    body .nav.aqc-tabs:not(.aqc-tabs-sub) > .nav-item:has(> .nav-link.active)::before,
    body .nav.aqc-tabs:not(.aqc-tabs-sub) > .nav-item:has(> .nav-link.active) + .nav-item::before {
        display: none;
    }
}

body .nav.aqc-tabs .nav-link:focus-visible {
    outline: 2px solid rgba(var(--mdb-primary-rgb, 0, 61, 253), 0.45);
    outline-offset: 1px;
}

/* Zähler hinter dem Label (tab.count): im inaktiven Register grau, im aktiven invertiert, damit er auf der Primärfläche lesbar bleibt */
body .nav.aqc-tabs .aqc-tab-count {
    margin-left: 0.375rem;
    padding: 0.1875rem 0.4375rem;
    font-size: var(--aqc-font-size-label);
    font-weight: 600;
    line-height: 1;
    color: var(--aqc-text);
    background-color: var(--aqc-border-subtle);
}

body .nav.aqc-tabs .nav-link.active .aqc-tab-count {
    color: var(--mdb-primary);
    background-color: #fff;
}

/* Unterregister (verschachtelt, eigener Query-Parameter): ohne Leiste, nicht über die volle Breite gedehnt, aktive Fläche nur getönt –
   so bleibt die Hauptebene das kräftigste Element und die Hierarchie ist sofort erkennbar */
body .nav.aqc-tabs.aqc-tabs-sub {
    padding: 0 0 0.375rem;
    background-color: transparent;
    border: 0;
    border-bottom: 1px solid var(--aqc-border-subtle);
    border-radius: 0;
}

body .nav.aqc-tabs.aqc-tabs-sub > .nav-item {
    flex: 0 0 auto;
}

body .nav.aqc-tabs.aqc-tabs-sub .nav-link {
    padding: 0.3125rem 0.75rem;
    font-size: var(--aqc-font-size-button);
}

body .nav.aqc-tabs.aqc-tabs-sub .nav-link:hover {
    background-color: var(--aqc-surface-muted);
}

body .nav.aqc-tabs.aqc-tabs-sub .nav-link.active {
    color: var(--mdb-primary);
    background-color: rgba(var(--mdb-primary-rgb, 0, 61, 253), 0.12);
    box-shadow: none;
}

body .nav.aqc-tabs.aqc-tabs-sub .nav-link.active .aqc-tab-count {
    color: #fff;
    background-color: var(--mdb-primary);
}

@media (prefers-reduced-motion: reduce) {
    body .nav.aqc-tabs .nav-link { transition: none; }
}

/* ---------- Kacheln für Anzeigewerte in Detailkarten (Geräte, App-Sync): wie die Kennzahl-Kacheln im Dashboard der Feld-App, nur kleiner.
   Beschriftung oben, Wert darunter, heller Grund ohne Rahmen; optional eine kleine graue Zeile darunter (Zeitabstand). */
body .aqc-tile {
    height: 100%;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    border-radius: var(--aqc-radius-card);
    background-color: var(--aqc-surface-muted);
}

body .aqc-tile-label {
    font-size: var(--aqc-font-size-label);
    color: var(--aqc-text-label);
    line-height: 1.3;
}

body .aqc-tile-value {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--aqc-text);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

body .aqc-tile-value.is-empty {
    color: var(--aqc-text-subtle);
    font-weight: 400;
}

body .aqc-tile-sub {
    display: block;
    margin-top: 0.125rem;
}

/* Zeitabstand unter dem Wert einer Kachel: klein, grau wie eine Fußzeile; überschrittene Fälligkeit gelb */
body .aqc-relative-subtle {
    font-size: var(--aqc-font-size-label);
    color: var(--aqc-text-subtle);
    font-variant-numeric: tabular-nums;
}

body .aqc-relative-subtle.is-overdue {
    color: #b26a00;
    font-weight: 600;
}

/* Zeitpunkt mit mitlaufendem Abstand („vor 15 Minuten und 25 Sekunden“) */
body .aqc-datetime-relative {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

body .badge.aqc-relative-pill {
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

/* Plattform-Symbol (Apple, Android) vor Gerätenamen; feste Breite, damit Namen untereinander bündig stehen */
body .aqc-platform-icon {
    width: 1.1em;
    text-align: center;
    margin-right: 0.375rem;
}

body .aqc-platform-icon.fa-android {
    color: #3ddc84;
}

/* Icon-Button in Primärfarbe (fachliche Zeilenaktion wie „Einbuchen“ in App-Sync) */
body .aqc-icon-btn-primary,
body .aqc-icon-btn-primary:hover:not(:disabled),
body .aqc-icon-btn-primary:focus-visible {
    color: var(--mdb-primary);
}

body .aqc-icon-btn-primary:hover:not(:disabled) {
    opacity: 0.7;
}

/* Tabellen mit festen Spaltenbreiten (colgroup), z. B. mehrere Karten untereinander mit bündigen Spalten */
body table.aqc-table-fixed {
    table-layout: fixed;
}

body table.aqc-table-fixed td {
    overflow-wrap: anywhere;
}

/* Zwischenüberschrift in Formular-Dialogen (z. B. Probe ändern): wie ein kleiner Kartentitel mit Linie */
body .aqc-form-section {
    font-size: var(--aqc-font-size);
    font-weight: 600;
    color: var(--aqc-text);
    padding-bottom: 0.25rem;
    margin: 0.25rem 0 0.75rem;
    border-bottom: 1px solid var(--aqc-border-subtle);
}

body .aqc-form-section .fa-solid {
    color: var(--aqc-text-label);
}

/* Checkbox neben einem Feld mit Beschriftung: auf Höhe des Eingabefelds */
body .form-check.aqc-form-check-aligned {
    min-height: var(--aqc-control-height);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* ---------- Erklärungen zu Karten und Masken (infoNote in core/ui/dom.js): wie ein dezenter Hinweis-Badge (Vorbild „Terminieren“), nur kleiner
   und blasser – Info-Symbol, dann der Text, heller gelber Grund. Die Box ist nur so breit wie ihr Text. */
body .aqc-info-note {
    display: flex;
    align-items: baseline;
    gap: 0.3125rem;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 0;
    padding: 0.125rem 0.5rem;
    border-radius: var(--aqc-radius);
    background-color: #fffdf5;
    font-size: 0.625rem;
    line-height: 1.45;
    color: #a08a52;
}

/* Hinweis direkt unter dem Kartentitel (bzw. der Titelzeile mit Aktionen): eng anrücken, sonst wirkt er vom Titel gelöst (Vorgabe Nutzer 06.11.2026) */
body .card-body > .card-title + .aqc-info-note,
body .card-body > :first-child + .aqc-info-note {
    margin-top: -0.125rem;
}

body .aqc-info-note > i {
    flex: 0 0 auto;
    font-size: 0.6875rem;
    color: #b08a2e;
}

/* ---------- Aktionen am Feld (attachInputActions in core/ui/form.js; Vorgabe Nutzer 06.11.2026)
   Feld und Buttons bilden eine Gruppe: Rahmen in Feldfarbe, Buttons nur mit kleinem, grauem Symbol, untereinander ein feiner Strich.
   Höhe wie das Feld, damit die Gruppe in Zeilen mit anderen Feldern bündig steht. */
body .aqc-input-actions {
    flex-wrap: nowrap;
}

/* MDB gibt Feldern in einer Input-Group eigene Höhe und Innenabstände (35 px) – hier gilt die normale Feldhöhe */
body .aqc-input-actions > .form-control {
    height: var(--aqc-control-height);
    min-height: var(--aqc-control-height);
    padding-top: 0;
    padding-bottom: 0;
    line-height: calc(var(--aqc-control-height) - 2px);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

body .aqc-input-actions > .aqc-icon-btn.aqc-input-action {
    min-width: 1.875rem;
    height: var(--aqc-control-height);
    margin: 0 0 0 -1px;
    padding: 0 0.375rem;
    font-size: 0.8125rem;
    color: var(--aqc-text-label);
    background-color: #fff;
    border: 1px solid var(--aqc-border);
    border-left-color: var(--aqc-border-subtle);
    border-radius: 0;
    opacity: 1;
}

/* Zwischen Feld und erstem Button bleibt die Feldkante sichtbar */
body .aqc-input-actions > .form-control + .aqc-input-action {
    border-left-color: var(--aqc-border);
}

body .aqc-input-actions > .aqc-input-action:last-child {
    border-top-right-radius: var(--aqc-radius);
    border-bottom-right-radius: var(--aqc-radius);
}

body .aqc-input-actions > .aqc-input-action:hover:not(:disabled) {
    background-color: var(--aqc-surface-muted);
    color: var(--aqc-text);
}

body .aqc-input-actions > .aqc-input-action:disabled {
    opacity: 1;
}

body .aqc-input-actions > .aqc-input-action:disabled > i {
    opacity: 0.35;
}

/* Native Auswahl (form-select) mit Feld-Buttons, z. B. Erklär-Popover: gleiche Höhe und eckige rechte Kante wie ein Textfeld */
body .aqc-input-actions > .form-select {
    height: var(--aqc-control-height);
    min-height: var(--aqc-control-height);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

body .aqc-input-actions > .form-select:focus {
    z-index: 5;
}

/* MDB-Auswahl mit Erklär-Button (mdb-select.js, options.info): Auswahl füllt die Zeile, rechte Feldkante eckig wie bei Textfeldern */
body .aqc-select-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

body .aqc-select-actions > .select-wrapper {
    flex: 1 1 auto;
    min-width: 0;
}

body .aqc-select-actions > .select-wrapper .select-input.form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Den sichtbaren Rahmen zeichnet MDB nicht am Feld, sondern über .form-notch – ohne diese Regel bleibt die rechte Kante gerundet
   und das Fragezeichen wirkt abgesetzt statt angehängt. Selektor über die volle MDB-Kette, sonst gewinnt MDBs spezifischere Regel */
body .aqc-select-actions > .select-wrapper .form-outline .form-control ~ .form-notch .form-notch-trailing {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

body .aqc-select-actions > .aqc-icon-btn.aqc-input-action {
    border-left-color: var(--aqc-border);
    border-top-right-radius: var(--aqc-radius);
    border-bottom-right-radius: var(--aqc-radius);
}

/* Fokus des Felds liegt über den Buttons (überlappende Kante) */
body .aqc-input-actions > .form-control:focus {
    z-index: 5;
}

/* ---------- Löschen-Symbol: im Ruhezustand blasses Rot, beim Überfahren kräftiges Rot (vorher umgekehrt) */
body .aqc-icon-btn-danger {
    color: rgba(220, 53, 69, 0.6);
    opacity: 1;
}

body .aqc-icon-btn-danger:hover:not(:disabled),
body .aqc-icon-btn-danger:focus-visible,
body .aqc-input-actions > .aqc-icon-btn-danger.aqc-input-action:hover:not(:disabled) {
    color: #dc3545;
    opacity: 1;
}

body .aqc-input-actions > .aqc-icon-btn-danger.aqc-input-action {
    color: rgba(220, 53, 69, 0.6);
}

/* ---------- Aktionen im Kartentitel (z. B. Kunde/Hausmeister wechseln): kleiner, grau und ohne Einfluss auf die Höhe des Titels –
   vorher machten 28 px hohe Buttons den Kopf höher als bei Karten ohne Aktion, der Inhalt rutschte nach unten */
body .card-title .aqc-icon-btn {
    min-width: 1.5rem;
    height: 1.25rem;
    margin-top: -0.25rem;
    margin-bottom: -0.25rem;
    padding: 0 0.25rem;
    font-size: 0.875rem;
}

body .card-title .aqc-icon-btn:not(.aqc-icon-btn-danger) {
    color: var(--aqc-text-label);
}

body .card-title .aqc-icon-btn:not(.aqc-icon-btn-danger):hover:not(:disabled) {
    color: var(--aqc-text);
}

/* ---------- Mehrere Aktionen im Kartenkopf: senkrechter Trennstrich dazwischen (wie Bootstrap-Stack mit .vr; Vorgabe Nutzer 06.11.2026).
   Buttons direkt an einem Feld trennt dagegen der feine Strich der Input-Group. */
body .card-title .aqc-icon-btn + .aqc-icon-btn {
    position: relative;
    margin-left: 0.5rem;
}

body .card-title .aqc-icon-btn + .aqc-icon-btn::before,
body .aqc-card-actions > * + *::before {
    content: "";
    position: absolute;
    top: 15%;
    bottom: 15%;
    left: -0.3125rem;
    width: 1px;
    background-color: var(--aqc-border);
    pointer-events: none;
}

body .aqc-card-actions > * + * {
    position: relative;
    margin-left: 0.25rem;
}

/* Strich genau in die Mitte der Lücke: gap-2 (0.5rem) + margin-left (0.25rem) = 0.75rem, halbe Lücke minus halbe Strichbreite.
   Mit den 5 px der Titel-Icons oben stand er links 7 px, rechts 4 px vom Button. */
body .aqc-card-actions > * + *::before {
    left: calc(-0.375rem - 0.5px);
}

/* Icon-Buttons im Titel: Lücke nur margin-left (0.5rem), Strich ebenso mittig */
body .card-title .aqc-icon-btn + .aqc-icon-btn::before {
    left: calc(-0.25rem - 0.5px);
}

/* ---------- Kopfzeile einer Karte (createCard): gleicher Abstand nach unten wie ein Kartentitel ohne Aktionen, damit Inhalt und Hinweis
   bei allen Karten gleich weit vom Titel stehen (Vorgabe Nutzer 06.11.2026) */
body .aqc-card-head {
    margin-bottom: 0.375rem;
}

/* ---------- Text-Buttons rechts im Kartenkopf (z. B. „Neue Grundkonfiguration“; Vorgabe Nutzer 06.11.2026): Gegenstück zu den kleinen
   Icon-Buttons im Titel. Ein normaler btn-sm (28 px) machte den Kopf höher als den Titeltext, Hinweis und Inhalt rutschten nach unten.
   Die negativen Ränder halten die Zeilenhöhe beim Titel, auch wenn der Button minimal höher ist als die Schrift. */
body .aqc-card-head-btn.btn {
    display: inline-flex;
    align-items: center;
    height: 1.375rem;
    min-height: 0;  /* Buttons haben sonst app-weit die Feldhöhe (--aqc-control-height) als Mindesthöhe */
    margin-top: -0.125rem;
    margin-bottom: -0.125rem;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    line-height: 1;
}

body .aqc-card-head-btn.btn > i {
    font-size: 0.6875rem;
    margin-right: 0.3125rem !important;
}

/* TEST (Nutzer 06.11.2026): Kartentitel in der Schriftfarbe der inaktiven Register (grau). Zum Zurücknehmen diesen Block entfernen. */
body .card-title {
    color: var(--aqc-text-label);
}

/* ---------- Einheitliche Lücke zwischen Feldern nebeneinander (Vorgabe Nutzer 06.11.2026): 8 px in allen Formularen – Bootstrap-Zeilen in Karten
   und Modalen ebenso wie das 12er-Raster (aqc-grid-12). Zeilen mit ausdrücklicher Lücke (g-…, gx-…) behalten ihre. */
body .card-body .row:not([class*="g-"]):not([class*="gx-"]),
body .modal-body .row:not([class*="g-"]):not([class*="gx-"]) {
    --mdb-gutter-x: 0.5rem;
    --bs-gutter-x: 0.5rem;
}

/* ---------- Datatable: Streifen (ungerade Zeilen) heller als der Hover (Vorgabe Nutzer 06.11.2026). MDB setzt beide fast gleich
   (2,0 % bzw. 2,5 %), die überfahrene Zeile war dadurch kaum zu erkennen; der Hover bleibt, die Streifen werden halb so stark. */
body .aqc-datatable {
    --mdb-datatable-accent-bg: rgba(var(--mdb-emphasis-color-rgb), 0.01);
}

/* ---------- Datatables: Text optisch mittig wie in den Auswahl-Modalen (Vorgabe Nutzer 06.11.2026). Roboto lässt unten Platz für Unterlängen,
   die Schrift wirkte neben Symbolen und Badges 1 px zu hoch. Die Zelle verschiebt ihren Inhalt um 1 px nach unten; Elemente mit eigener Box
   (Badges, Hinweis-/Fristen-Pills, Symbole, Icon-Buttons, Ankreuzfelder) in der Zelle nehmen das zurück und bleiben geometrisch mittig. */
body .aqc-datatable .datatable-body td:not(.aqc-row-actions) {
    padding-top: calc(0.125rem + 1px);
    padding-bottom: calc(0.125rem - 1px);
}

body .aqc-datatable .datatable-body td:not(.aqc-row-actions) .badge,
body .aqc-datatable .datatable-body td:not(.aqc-row-actions) .aqc-hint,
body .aqc-datatable .datatable-body td:not(.aqc-row-actions) .aqc-due,
body .aqc-datatable .datatable-body td:not(.aqc-row-actions) i:not(.badge i):not(.aqc-icon-btn i):not(.btn i),
body .aqc-datatable .datatable-body td:not(.aqc-row-actions) .aqc-icon-btn,
body .aqc-datatable .datatable-body td:not(.aqc-row-actions) .form-check,
body .aqc-datatable .datatable-body td:not(.aqc-row-actions) input {
    position: relative;
    top: -1px;
}

/* ---------- Benachrichtigungs-Badge im Hauptmenü (z. B. App-Sync: Anzahl der Rückmeldungen; Vorgabe Nutzer 06.11.2026):
   kleine rote Pill oben rechts am Symbol, verdeckt den Text nicht. Kräftiges Rot mit weißer Schrift – das helle Badge-Rot ging im Menü unter. */
body .aqc-nav-link .aqc-nav-badge.badge {
    background-color: var(--mdb-danger);
    color: #fff;
    position: absolute;
    top: 0.125rem;
    left: calc(50% + 0.375rem);
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
}

/* ---------- Werkzeuggruppen rechts in der Fußleiste (shell.setFooterTools; Startseite: Route, Sync – Vorgabe Nutzer 06.11.2026):
   je Gruppe eine Input-Group wie die Aktionen am Feld: Titel (durchsichtig, weiße Schrift) │ Zähler-Badge │ Symbol-Buttons (weiß), feine Trennstriche.
   Zähler rot bei 0, grün sobald etwas gewählt ist; Buttons grau, Zurücksetzen/Aufheben rot wie Löschen. */
body .aqc-footer-tools {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

body .aqc-footer-tool {
    display: flex;
    flex-wrap: nowrap;
    width: auto;
    height: 1.625rem;
    background-color: transparent;
    border: 1px solid var(--aqc-border);
    border-radius: var(--aqc-radius);
    overflow: hidden;
}

body .aqc-footer-tool > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    border-left: 1px solid var(--aqc-border-subtle);
}

body .aqc-footer-tool > :first-child {
    border-left: 0;
}

body .aqc-footer-tool-label {
    padding: 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 400;
    color: #fff;
    background-color: transparent;
}

body .aqc-footer-tool-cell {
    padding: 0 0.375rem;
    background-color: #fff;
}

body .aqc-footer-tool-count.badge {
    min-width: 1.25rem;
    border-radius: var(--aqc-radius);
    padding: 0.2rem 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
}

body .aqc-footer-tool-count.badge.is-zero {
    background-color: var(--mdb-danger);
}

body .aqc-footer-tool-count.badge.is-set {
    background-color: #22c55e;
}

body .aqc-footer-tool > .aqc-icon-btn.aqc-footer-tool-btn {
    min-width: 1.75rem;
    padding: 0 0.375rem;
    font-size: 0.8125rem;
    border-radius: 0;
    background-color: #fff;
}

body .aqc-footer-tool > .aqc-icon-btn.aqc-footer-tool-btn:not(.aqc-icon-btn-danger) {
    color: var(--aqc-text-label);
}

body .aqc-footer-tool > .aqc-icon-btn.aqc-footer-tool-btn:hover:not(:disabled) {
    background-color: var(--aqc-surface-muted);
}

body .aqc-footer-tool > .aqc-icon-btn.aqc-footer-tool-btn:not(.aqc-icon-btn-danger):hover:not(:disabled) {
    color: var(--aqc-text);
}

/* Blätterleiste (shell.setFooterPager): mittig in der Fußleiste, unabhängig davon, wie breit links Metadaten/Aktionen und rechts
   Löschen/Speichern sind; unter lg reiht sie sich normal ein, sonst überlagerte sie die Buttons */
body .aqc-footer-pager {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

body .aqc-footer-pager:empty {
    display: none;
}

@media (min-width: 992px) {
    body .aqc-footer-pager {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

body .aqc-footer-pager .aqc-footer-pager-position {
    min-width: 4.5rem;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

/* Helle Variante der Werkzeuggruppe für Karten (Strukturbaum: Ansicht): Titel grau auf hellem Grund */
body .aqc-footer-tool.aqc-tool-light .aqc-footer-tool-label {
    color: var(--aqc-text-label);
    background-color: var(--aqc-surface-muted);
}

/* Gewählte Stufe wie eine überfahrene Tabellenzeile: grauer Grund, dunkles Symbol (nicht blau) */
body .aqc-footer-tool.aqc-tool-light > .aqc-icon-btn.aqc-footer-tool-btn.is-active,
body .aqc-footer-tool.aqc-tool-light > .aqc-icon-btn.aqc-footer-tool-btn.is-active:hover:not(:disabled) {
    color: var(--aqc-text);
    background-color: var(--aqc-surface-muted);
}

/* ---------- Checkbox für temporäre Auswahl (Vormerken, Route, Markieren; Vorgabe Nutzer 06.11.2026): Klasse aqc-check-temp an .form-check-input.
   Form und Größe wie jede Checkbox; ausgewählt aber grün mit Pinnadel (fa-thumbtack) statt blau mit Haken. So sieht man, dass
   hier nur vorgemerkt wird und keine Einstellung gespeichert ist. Normale Checkboxen (Einstellungen, Formulare) bleiben blau. */
/* Feinerer Rand als die normale Checkbox (1 statt 2 px; Vorgabe Nutzer 06.11.2026) */
body .form-check-input.aqc-check-temp {
    border-width: 1px;
}

/* Leer ohne weißen Grund: Zeilenstreifen und Hover scheinen durch */
body .form-check-input.aqc-check-temp:not(:checked) {
    background-color: transparent;
}

body .form-check-input.aqc-check-temp:checked {
    background-color: #22c55e;
    border-color: #22c55e;
}

body .form-check-input.aqc-check-temp:checked::after {
    content: "\f08d";
    /* Über den Rand gelegt: Symbolfläche = ganzes Kästchen (20 × 20 statt 18 × 18 innerhalb des 1-px-Rands) */
    position: absolute;
    top: -1px;
    left: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    margin: 0;
    border: 0;
    transform: none;
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    font-size: 0.6875rem;
    line-height: 1;
    color: #fff;
    background: none;
}

body .form-check-input.aqc-check-temp:hover:not(:checked):not(:disabled) {
    border-color: #22c55e;
}

body .form-check-input.aqc-check-temp:focus,
body .form-check-input.aqc-check-temp:checked:focus {
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.25);
}

body .form-check-input.aqc-check-temp:checked:focus::before,
body .form-check-input.aqc-check-temp:focus::before {
    box-shadow: none;
}

/* ---------- Checkboxen in Listenzellen (Vorgabe Nutzer 06.11.2026): so groß wie der I-Button (20 px), ohne den MDB-Außenabstand
   (oben 2,7 px, rechts 6 px – die Checkbox saß dadurch unter der Zeilenmitte und links von der Spaltenmitte) */
body .aqc-datatable .datatable-body td input.form-check-input[type="checkbox"] {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0 auto;
}

body .aqc-datatable .datatable-body td input.form-check-input.aqc-check-temp:checked::after {
    font-size: 0.75rem;
}

/* app.css zieht Icon-Buttons um 0,3 rem zusammen – hier trennt der eigene Strich (bewusst ohne Bootstraps .input-group, die alles um 1 px überlappt) */
body .aqc-footer-tool > .aqc-icon-btn + .aqc-icon-btn {
    margin-left: 0;
}

/* ---------- Ticket-ID (UUID) in der schmalen Grunddaten-Karte: kleiner, Monospace, wenig Innenabstand (vorher Inline-Stile in tickets/detail.js) */
body .form-control.aqc-uuid-field {
    font-size: 0.72rem;
    padding-left: 0.5rem;
    padding-right: 0.25rem;
}

/* ---------- Ablagefläche für Dokumente (Drag & Drop): gestrichelter Rahmen (vorher Inline-Stil in documents.js) */
body .aqc-drop-zone {
    border: 2px dashed var(--aqc-border);
}

/* ---------- Datensatz-Modal (core/ui/record-modal.js): Datensatz über der Ursprungsmaske bearbeiten.
   Kopf: Titel links, Hinweis auf Änderungen rechts (kein Kreuz); Fuß: Erstellt/Geändert links, Buttons rechts.
   Selektoren über die direkte Kette: eine Rückfrage als Overlay im Modal (aqc-modal-inner-dialog) hat eigenen Kopf und Fuß und darf die Regeln nicht erben. */
body .aqc-record-modal > .modal-dialog > .modal-content > .modal-header {
    gap: 0.75rem;
}

body .aqc-record-modal-dirty {
    flex: 0 0 auto;
    font-size: var(--aqc-font-size-label);
    font-weight: 500;
}

body .aqc-record-modal > .modal-dialog > .modal-content > .modal-header > .modal-title {
    min-width: 0;
}

/* Kontext oben im Körper direkt unter dem Kopf: normales Badge, so breit wie der Text; lange Namen mit „…“ (voller Text im Tooltip).
   Negativer Abstand oben hebt einen Teil des Body-Paddings (1rem) auf: das Badge gehört optisch zum Kopf, nicht zum Inhalt.
   flex: die Zeile ist genau so hoch wie das Badge (als Inline-Element kämen Zeilenhöhe und Unterlänge dazu). */
body .aqc-record-modal-context-row {
    display: flex;
    margin: -0.625rem 0 0.375rem;
}

body .aqc-record-modal-context {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 400;
}

/* Karten im Modal: kein zusätzlicher Abstand unter der letzten Karte */
body .aqc-record-modal .modal-body > form > .card:last-child {
    margin-bottom: 0;
}

body .aqc-record-modal > .modal-dialog > .modal-content > .modal-footer {
    justify-content: space-between;
    flex-wrap: nowrap;
}

body .aqc-record-modal-meta {
    min-width: 0;
    color: var(--aqc-text-label);
    font-size: var(--aqc-font-size-label);
    line-height: 1.35;
}

body .aqc-record-modal-meta-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .aqc-record-modal-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.5rem;
}

/* ---------- Rückfrage als Overlay in einem offenen Modal (dialog.js, createInlineDialog): kein zweites Modal, kein zweiter Seiten-Hintergrund.
   Der Inhalt des Modals wird abgedunkelt, die Dialogbox steht mittig darin; über dem Lade-Overlay (z-index 10). */
body .aqc-modal-inner-dialog {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: inherit;
    background-color: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.15s linear;
}

body .aqc-modal-inner-dialog.show {
    opacity: 1;
}

body .aqc-modal-inner-dialog .modal-dialog {
    width: 100%;
    max-width: 31.25rem;
    margin: 0;
    pointer-events: auto;
}

body .aqc-modal-inner-dialog .modal-content {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
}

@media (prefers-reduced-motion: reduce) {
    body .aqc-modal-inner-dialog {
        transition: none;
    }
}

/* ---------- Mail-Protokoll (core/components/mail-log.js): Spalten wie die Log-Ansicht des Altsystems.
   Empfänger je Zeile; Typ der Adresse (TO/CC/BCC) klein und grau dahinter; Template-Code in Festbreitenschrift. */
body .aqc-mail-log .aqc-mail-log-list > div {
    white-space: nowrap;
}

/* In der Datatable (Stammdaten) kürzt MDB jede Zelle auf 250 px: Empfänger und Vorlage stehen vollständig (eine Adresse muss lesbar bleiben),
   Anhänge stehen nur noch als Anzahl (Namen im Tooltip und im Detail-Modal) */
body .aqc-mail-log .aqc-datatable .datatable-body td.aqc-mail-log-list,
body .aqc-mail-log .aqc-datatable .datatable-body td.aqc-mail-log-template {
    max-width: none;
}

body .aqc-mail-log-type {
    margin-left: 0.375rem;
    font-size: var(--aqc-font-size-label);
    font-weight: 600;
    color: var(--aqc-text-label);
}

body .aqc-mail-log-code {
    font-family: var(--bs-font-monospace, monospace);
    font-size: 0.75rem;
    color: var(--aqc-text-label);
    white-space: nowrap;
}

/* Fehlermeldung liegt als Tooltip auf dem Status-Badge: Hilfe-Cursor zeigt, dass es dort mehr zu sehen gibt */
body .aqc-mail-log-has-tip {
    cursor: help;
}

/* Detail-Modal einer Mail (showMailLog): Kopf mit Status und Zeitpunkt, Angaben als Raster Beschriftung → Wert, Mailtext im abgesetzten Kasten */
body .aqc-mail-detail-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

body .aqc-mail-detail-meta {
    color: var(--aqc-text-label);
}

body .aqc-mail-detail-template {
    margin-top: 0.25rem;
    font-weight: 600;
}

/* Betreff und Empfänger als Feldgruppen zwischen zwei Linien (Vorgabe Nutzer 16.11.2026: knappe Abstände zu den Linien) */
body .aqc-mail-detail-facts {
    margin: 0.5rem 0 0.75rem;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--mdb-border-color, #e0e0e0);
    border-bottom: 1px solid var(--mdb-border-color, #e0e0e0);
}

body .aqc-mail-detail-facts .aqc-field-group-value {
    overflow-wrap: anywhere;
}

/* Versendetes HTML der Mail; weißer Grund wie im Mailprogramm, auch im dunklen Modus */
body .aqc-mail-detail-html {
    display: block;
    width: 100%;
    height: calc(100vh - 25rem);
    min-height: 18rem;
    padding: 15px;
    border: 1px solid var(--aqc-border);
    border-radius: var(--aqc-radius);
    background-color: #ffffff;
}

body .aqc-mail-detail-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 1rem;
    border: 1px solid var(--mdb-border-color, #e0e0e0);
    border-radius: 0.5rem;
    background-color: var(--mdb-tertiary-bg, #f8f9fa);
    max-height: 50vh;
    overflow-y: auto;
}


/* Kundenfilter einer Liste (modules/customers/filter-chip.js): Hinweiszeile über den Filterfeldern */
.aqc-customer-filter-chip { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 1rem; font-size: 0.875rem; background-color: rgba(var(--mdb-primary-rgb, 59, 113, 202), 0.08); }
.aqc-customer-filter-chip .aqc-customer-filter-remove { color: var(--mdb-secondary-color, #757575); line-height: 1; }

/* ---------- Filterbereich der Listen (core/ui/list.js: createFilterCard, Vorlage Musterseite #/ui/field-groups):
   hellgrauer Kasten wie die frühere Filter-Card (gleicher Grund, Rand, Rundung), darin eine durchgehende kleine Eingabegruppe (26 px) –
   Labels in der Gruppe statt Beschriftungen über den Feldern; Optionen (Checkboxen) und Zusatz-Buttons stehen rechts daneben. */
body .aqc-search-bar {
    margin-bottom: 0.75rem;
    padding: 0.5rem var(--aqc-card-padding-x);
    background-color: var(--aqc-surface-muted);
    border: 1px solid var(--aqc-border-subtle);
    border-radius: var(--aqc-radius-card);
}

/* Weniger Luft zum blauen Seitenkopf: der Inhaltsbereich hat oben 16 px Innenabstand, der Filterbereich rückt auf 8 px heran */
body .aqc-page-content > .aqc-search-bar:first-child {
    margin-top: calc(var(--aqc-page-padding) * -0.5);
}

/* Zeile: Gruppe in ihrer eigenen Breite (nicht über die ganze Zeile gestreckt), Optionen dahinter; bei Platzmangel rutschen die Optionen in die nächste Zeile */
body .aqc-search-bar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

/* Optionen (nur aktive, gruppieren …) auf der Höhe der Gruppe; Schrift wie die Felder (MDB setzt die Checkbox-Beschriftung eigens größer) */
body .aqc-search-bar-row > .aqc-filter-option {
    height: 1.625rem;
}

body .aqc-search-bar-row > .aqc-filter-option .form-check-label {
    font-size: 0.8125rem;
}

/* Gruppe nicht stauchen: als Flex-Kind der Leiste würde sie sonst schmaler als ihr Inhalt, Suchfeld und Symbol-Label schrumpften mit.
   Reicht die Fensterbreite nicht (viele Filter, schmaler Bildschirm), lässt sich die Gruppe waagerecht scrollen statt umzubrechen */
body .aqc-search-bar-group {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    width: auto;
    max-width: 100%;
    overflow-x: auto;
    /* overflow-x: auto macht auch die Senkrechte scrollbar – ein Pixel Überstand (z. B. Löschen-Kreuz der Mehrfachauswahl) gäbe sonst einen Rollbalken */
    overflow-y: hidden;
}

/* Suchfeld mit fester Breite (mit flex-shrink rechnete der Browser die Gruppenbreite zu knapp, das Feld blieb bei ca. 160 px) */
body .aqc-search-bar .aqc-search-bar-search {
    flex: 0 0 16rem;
    width: 16rem;
}

/* Ticketliste hat die meisten Filter: schmaleres Suchfeld */
body .aqc-tickets-filter .aqc-search-bar-search {
    flex-basis: 12rem;
    width: 12rem;
}

body .aqc-search-bar .aqc-search-bar-date {
    flex: 0 0 8.75rem;
    width: 8.75rem;
}

body .aqc-search-bar .aqc-search-bar-number {
    flex: 0 0 5.5rem;
    width: 5.5rem;
}

/* MDB-Auswahl: feste Breite (das Feld hat keine Inhaltsbreite); die Aufklappliste wächst trotzdem bis zum längsten Eintrag */
body .aqc-search-bar .aqc-search-bar-select {
    flex: 0 0 8rem;
    width: 8rem;
}

body .aqc-search-bar .aqc-search-bar-select.is-wide {
    flex-basis: 14rem;
    width: 14rem;
}

body .aqc-search-bar .aqc-search-bar-select.is-narrow {
    flex-basis: 5.5rem;
    width: 5.5rem;
}

/* Label der Eingabegruppe: MDB randet es mit #e0e0e0, heller als das Feld daneben (--aqc-border) – wirkte, als hätte das Feld einen dunkleren Rand */
body .aqc-search-bar .input-group-text {
    border: 1px solid var(--aqc-border);
}

/* Höhe und Schrift wie die kleine Feldgruppe (field-group.css, aqc-field-group-sm: 26 px) statt der globalen 30 px für -sm-Felder.
   Doppelte Klasse .input-group.input-group-sm: MDB setzt die Label-Höhe mit genau dieser Spezifität (calc(1.66rem + 2px)). */
body .aqc-search-bar .input-group.input-group-sm .input-group-text,
body .aqc-search-bar .input-group.input-group-sm .form-select,
body .aqc-search-bar .form-control {
    height: 1.625rem;
    min-height: 1.625rem;
    padding: 0 0.5rem;
    font-size: 0.8125rem;
    line-height: calc(1.625rem - 2px);
}

/* MDB-Auswahl in der Gruppe: 26 px hoch wie die Nachbarn; Rand zeichnet MDB über .form-notch – innen ohne Rundung,
   damit die Kanten wie bei Bootstrap-Gruppenfeldern bündig aneinanderstoßen (die Auswahl steht hier nie am Rand der Gruppe) */
body .aqc-search-bar .aqc-search-bar-select .select-input.form-control {
    height: 1.625rem;
    min-height: 1.625rem;
    padding: 0 1.75rem 0 0.5rem;
    font-size: 0.8125rem;
    line-height: calc(1.625rem - 2px);
}

body .aqc-search-bar .aqc-search-bar-select .form-notch div {
    border-radius: 0 !important;
}

/* Die gemeinsame Kante mit dem Label davor nicht doppelt zeichnen (wie Bootstraps -1 px bei Gruppenfeldern) */
body .aqc-search-bar .aqc-search-bar-select {
    margin-left: -1px;
}


/* Pfeil und Löschen-Kreuz (Mehrfachauswahl) mittig: MDB setzt beide mit top 7 px für die 30-px-Felder (Höhe ca. 20 px);
   in 26 px ragte das Kreuz 1 px unter die Gruppe */
body .aqc-search-bar .aqc-search-bar-select .select-arrow {
    top: calc((1.625rem - 1.28rem) / 2);
    right: 0.5rem;
}

body .aqc-search-bar .aqc-search-bar-select .select-clear-btn {
    top: calc((1.625rem - 1.25rem) / 2);
}

/* „alle“ (Wert '') zeigt MDB als eigenes Platzhalter-Element mit Abstand nach oben – auf Höhe und Schrift des Feldes bringen */
body .aqc-search-bar .aqc-search-bar-select .select-fake-value {
    padding: 0;
    left: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.625rem;
}

/* Labels wie die Beschriftungen der kleinen Feldgruppe (field-group.css): gleicher Grund, gleiche Farbe, 11 px; die Lupe einen Tick größer.
   Gleicher Selektor wie die Höhenregel oben, steht danach und gewinnt deshalb bei der Schriftgröße */
body .aqc-search-bar .input-group.input-group-sm .input-group-text {
    background-color: var(--aqc-surface-muted);
    color: var(--aqc-text-label);
    font-size: 0.6875rem;
}

body .aqc-search-bar .input-group.input-group-sm .input-group-text > i[class*="fa-"] {
    font-size: calc(0.6875rem + 2px);
}

/* MDB-Auswahl hat einen durchsichtigen Grund – auf dem grauen Balken muss sie weiß sein wie die Textfelder.
   Weiß an der Hülle, nicht am Feld: „alle“ (Platzhalter-Element) liegt hinter dem Feld und wäre sonst verdeckt */
body .aqc-search-bar .aqc-search-bar-select .form-outline {
    background-color: #fff;
}

/* Symbol-Teile der Gruppe (Lupen-Label, Zurücksetzen, Suchen) gleich breit: Buttons nie schmaler als ein Symbol-Label */
body .aqc-search-bar {
    --aqc-search-bar-icon-width: 2rem;
}

body .aqc-search-bar .input-group.input-group-sm > label.input-group-text:has(> i[class*="fa-"]) {
    flex: 0 0 var(--aqc-search-bar-icon-width);
    justify-content: center;
    width: var(--aqc-search-bar-icon-width);
    padding: 0;
}

/* Zurücksetzen-Button in der Gruppe – wie die Aktionen der Feldgruppe (field-group.css, aqc-field-group-action):
   weißes Feld, Symbol blassrot, beim Überfahren grauer Grund und kräftiges Rot. Rand wie die Felder; Rundung hat nur das letzte Glied (Suchen) */
body .aqc-search-bar .input-group > .aqc-icon-btn.aqc-search-bar-action {
    display: inline-flex;
    flex: 0 0 var(--aqc-search-bar-icon-width);
    align-items: center;
    justify-content: center;
    width: var(--aqc-search-bar-icon-width);
    min-width: 0;
    height: 1.625rem;
    margin-left: -1px;
    padding: 0;
    border: 1px solid var(--aqc-border);
    border-radius: 0;
    background-color: #fff;
    color: #dc3545;
    font-size: calc(0.6875rem + 2px);  /* wie die Lupe im Label */
}

body .aqc-search-bar .input-group > .aqc-icon-btn.aqc-search-bar-action > i {
    opacity: 0.65;
}

body .aqc-search-bar .input-group > .aqc-icon-btn.aqc-search-bar-action:hover:not(:disabled),
body .aqc-search-bar .input-group > .aqc-icon-btn.aqc-search-bar-action:focus-visible {
    background-color: var(--aqc-surface-muted);
    color: #dc3545;
}

body .aqc-search-bar .input-group > .aqc-icon-btn.aqc-search-bar-action:hover:not(:disabled) > i,
body .aqc-search-bar .input-group > .aqc-icon-btn.aqc-search-bar-action:focus-visible > i {
    opacity: 1;
}

/* Leeren-Symbol der Datumsfelder grau wie die Aktionen der Feldgruppe – Rot bleibt dem Zurücksetzen aller Filter vorbehalten */
body .aqc-search-bar .input-group > .aqc-icon-btn.aqc-search-bar-action[data-filter-clear],
body .aqc-search-bar .input-group > .aqc-icon-btn.aqc-search-bar-action[data-filter-clear]:hover:not(:disabled) {
    color: var(--aqc-text-label);
}

/* Suchen: grün mit weißer Lupe wie in der Filterleiste der Listen; gleiche Maße wie die anderen Symbol-Teile (Vorgabe Nutzer), rechte Rundung als letztes Glied.
   MDB-Buttons haben Schatten, eigene Höhe/Breite (app.css: aqc-filter-submit 3,5rem, body .btn min-height 30 px) – hier wie die Symbol-Teile */
body .aqc-search-bar .input-group.input-group-sm > .btn.aqc-search-bar-submit {
    display: inline-flex;
    flex: 0 0 var(--aqc-search-bar-icon-width);
    align-items: center;
    justify-content: center;
    width: var(--aqc-search-bar-icon-width);
    min-width: 0;
    height: 1.625rem;
    min-height: 1.625rem;
    margin-left: -1px;
    padding: 0;
    border-radius: 0 var(--aqc-radius) var(--aqc-radius) 0;
    box-shadow: none;
    font-size: calc(0.6875rem + 2px);  /* wie die Lupe im Label */
    line-height: 1;
    z-index: 2;
}

/* Symbol im Suchen-Button: die allgemeine Regel für Symbol-Buttons (body .btn:not(.aqc-footer-button) > i:only-child → 1.0625rem)
   machte die Lupe 17 px groß – hier gleich groß wie die Symbole der anderen Gruppenteile (Größe vom Button) */
body .aqc-search-bar .input-group.input-group-sm > .btn.aqc-search-bar-submit > i[class*="fa-"]:only-child {
    font-size: inherit;
}

/* ---------- Fokus aller Eingabefelder (Vorgabe Nutzer 16.11.2026): kein blauer Rand, kein Schatten, stattdessen zart gelber Grund.
   Der Rand bleibt grau wie ohne Fokus. MDB legt sonst bei Textfeldern 1 px Schatten nach innen und beim Rahmen der Outline-Felder
   (.form-notch, auch MDB-Select) 1 px nach außen dazu – in Eingabegruppen wirkte der Rand dadurch doppelt so dick.
   Checkboxen, Buttons und die Feld-App (eigener Fokusring, pwa.css) sind nicht betroffen. */
body .form-control:not(.select-input):focus,
body .form-select:focus,
body .input-group > .form-control:not(.select-input):focus {
    border-color: var(--aqc-border);
    background-color: var(--aqc-focus-bg);
    box-shadow: none !important;
    transition: none;
}

/* MDB-Select: der angezeigte Wert „alle“ (Platzhalter-Element) liegt hinter dem Eingabefeld – deshalb färbt sich die Hülle, das Feld wird durchsichtig.
   .focused setzt MDB auch, solange die Liste offen ist; nicht .active – das trägt jede Auswahl mit gewähltem Wert */
body .form-outline:has(> .select-input:is(:focus, .focused)) {
    background-color: var(--aqc-focus-bg);
}

body .select-input.form-control:is(:focus, .focused) {
    background-color: transparent;
    box-shadow: none !important;
}

body .form-outline .form-control:is(:focus, .focused) ~ .form-notch > div {
    border-color: var(--aqc-border);
    box-shadow: none !important;
}

/* Mittelteil des Rahmens: MDB macht die obere Kante im Fokus durchsichtig (Lücke für eine schwebende Beschriftung).
   Nur ohne eigene Beschriftung im Feld schließen – sonst liefe die Linie durch den Text */
body .form-outline:not(:has(> label.form-label)) .form-control:is(:focus, .focused) ~ .form-notch .form-notch-middle {
    border-top: 1px solid var(--aqc-border);
}

/* Gruppier-Option (list.js: filterGroupingHtml) als eigene kleine Gruppe rechts neben den Filtern: Symbol-Label, Kurz-Label,
   Checkbox in weißem Feld wie die Ja/Nein-Checkbox der kleinen Feldgruppe (grün, 14 px sichtbar), dahinter das Kurz-Label mit der rechten Rundung */
body .aqc-search-bar .input-group.input-group-sm > .input-group-text.aqc-search-bar-check {
    justify-content: center;
    width: var(--aqc-search-bar-icon-width);
    flex: 0 0 var(--aqc-search-bar-icon-width);
    padding: 0;
    background-color: #fff;
    cursor: pointer;
}

body .aqc-search-bar .aqc-search-bar-check > .form-check-input {
    margin: 0;
    scale: 0.78;
    cursor: pointer;
}

body .aqc-search-bar .aqc-search-bar-grouping > label.input-group-text {
    cursor: pointer;
}
