/* DICO Architekt - Hauptstil */

/* =====================================================
   KONFIGURIERBARER SCREEN ZOOM
   ===================================================== */
:root {
    --screen-zoom: 85%; /* Hier kannst du den Zoom-Wert ändern (z.B. 80%, 90%, 100%, 110%) */
    /** Abstand: untere Kante Hauptlisten-card → globale Seitenfußleiste (.card-hauptliste) */
    --layout-hauptliste-karte-abstand-unten: 80px;
    /** Farbfilter über dem Hintergrundbild back.jpg (Verlauf oben links → unten rechts).
        Blau des Anmelden-Buttons (#12253C) statt des früheren Grüns. */
    --hintergrund-filter-oben: rgba(18, 37, 60, 0.9);
    --hintergrund-filter-unten: rgba(120, 152, 186, 0.9);

    /* =====================================================
       AKZENTFARBEN DES BACKOFFICE
       -----------------------------------------------------
       Buttons, Fokusringe, Tab-Unterstriche, Rahmen, Kanten
       von Header/Footer und Scrollbalken. Hier zentral
       geändert wirkt die Farbe im GESAMTEN Backoffice.

       Die *-rgb-Varianten enthalten nur das Zahlentripel und
       sind für rgba()-Aufrufe mit eigener Deckkraft gedacht:
       rgba(var(--akzent-rgb), 0.45)

       Diese Variablen stehen jedem Modul-Stylesheet zur
       Verfügung, weil style.css über includes/html_head.php
       auf jeder Backoffice-Seite geladen wird.
       ===================================================== */
    --akzent: #3B7C78;
    --akzent-rgb: 59, 124, 120;
    --akzent-hell: #B0CCBC;
    --akzent-hell-rgb: 176, 204, 188;
}

/* Grundlegende Einstellungen */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    zoom: var(--screen-zoom); /* Wendet den konfigurierbaren Zoom an */
}

body {
    font-family: 'Arial', sans-serif;
    background-image: 
        linear-gradient(to bottom right, var(--hintergrund-filter-oben), var(--hintergrund-filter-unten)),
        url('../bilder/back.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

/* Login-Seite */
.login-card {
    background-color: #E2E3D8;
    border: 2px solid #132C4D;
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    color: #132A4A;
    padding: 10px;
    max-width: 450px;
    margin: 0 auto;
}

.login-card .btn-primary {
    background-color: #12253C;
    border-color: #12253C;
}

.login-card .btn-primary:hover {
    background-color: #1e3a5c;
    border-color: #1e3a5c;
}

.login-card a {
    color: #12253C;
}

/* Header */
.header {
    background-color: #12253C;
    color: #FFFFFF;
    padding: 15px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    font-size: 1.1rem;
    overflow: visible;
}

/* Dropdowns im Header: nicht von body { overflow: hidden } abschneiden */
.header .navigation-container,
.header .navbar,
.header .navbar-collapse,
.header .hauptnavigation {
    overflow: visible;
}

.header .nav-item.dropdown .dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2000 !important;
    zoom: 1 !important;
    pointer-events: auto !important;
}

.header .dropdown-menu {
    z-index: 2000;
}

.header .logo {
    display: inline-block;
}

.header .logo a {
    display: inline-block;
    padding: 5px;
 
}

.header .logo img {
    max-height: 50px;
    display: block;
}

.header .nav-link {
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    position: relative;
    font-size: 1.2rem;
    background: transparent;
}

.header .nav-link:hover {
    color: #A0D3CA;
}

/* Aktiver Menüpunkt mit aufgeklapptem Untermenü */
.header .nav-item.show > .nav-link:not(.active),
.header .dropdown-toggle.show:not(.active) {
    color: #FFFFFF !important;
    background: transparent !important;
}

.header .dropdown-item {
    color: #FFFFFF;
    font-size: 1.1rem;
    background: transparent;
}

.header .dropdown-item:hover {
    background: transparent;
    color: #A0D3CA;
}

.header .user-info {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.header .user-info i {
    margin-right: 8px;
}

/* Fullscreen Icon im Footer */
#fullscreenIcon {
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    vertical-align: middle;
}

#fullscreenIcon:hover {
    color: #A0D3CA;
    transform: scale(1.1);
}

/* Kacheln */
.content-card, .tab-content {
    background-color: #94C9BF;
    border: 2px solid #132C4D;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    margin-bottom: 80px;
    color: #132A4A;
    overflow: hidden;
    display: flex;
    flex-direction: column;

}

.content-card .card-header {
    background-color: #12253C;
    color: #FFFFFF;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    padding: 0 15px;
    border-bottom: 2px solid var(--akzent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

/* ID-Anzeige im Card-Header (rechts oben) */
.content-card .card-header .card-header-id {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
}

/* Header-Aktionsbuttons (Listen-Kartenkopf) – einheitlich wie verwaltung_kunden (#neuerButton) */
#neuerButton,
.card-header .action-button {
    background-color: var(--akzent);
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
    text-decoration: none;
}

#neuerButton:hover,
.card-header .action-button:hover {
    background-color: #A0D3CA;
    color: #12253C;
    transform: scale(1.05);
}

/* Breite Variante des Header-Action-Buttons (mit Text statt nur Icon) */
.card-header .action-button.action-button--breit {
    width: auto;
    padding: 0 14px;
    white-space: nowrap;
    font-size: 14px;
}

#neuerButton:focus,
.card-header .action-button:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(var(--akzent-rgb), 0.45);
}

#neuerButton i,
.card-header .action-button i {
    font-size: 14px;
    margin: 0;
}

.card-header .action-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.op-subkachel .action-button,
.card-body .action-button {
    background-color: var(--akzent);
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.op-subkachel .action-button:hover,
.card-body .action-button:hover {
    background-color: #A0D3CA;
    color: #12253C;
}

.op-subkachel .action-button i,
.card-body .action-button i {
    font-size: 14px;
    margin: 0;
}

.card-header .action-buttons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Waschbahn-Darstellung */
.waschbahn {
    background-color: #6F8481;
    border: 2px solid #132C4D;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

/* Formulare */
.form-control, input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea,
.form-select, .form-select-sm, .form-control-sm {
    border: 1px solid #12253C;
    border-radius: 5px;
    margin: 4px 0;
    padding: 6px 10px;
    height: 32px; /* Höhe angepasst für größere Schrift */
    font-size: 16px; /* Schriftgröße um 2 Pixel erhöht */
}

/* Einheitliche Höhe für kleine Formularelemente */
.form-control-sm, .form-select-sm {
    padding: 4px 8px;
    height: 35px; /* Höhe angepasst für größere Schrift */
    font-size: calc(0.875rem + 2px); /* Schriftgröße um 2 Pixel erhöht */
}

/* Fokus-Stil für alle Formularelemente */
.form-control:focus, .form-select:focus, input:focus, select:focus, textarea:focus,
.form-control-sm:focus, .form-select-sm:focus {
    border-color: #12253C;
    box-shadow: 0 0 0 0.2rem rgba(18, 37, 60, 0.25);
    outline: none;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="password"], input[type="number"], select, textarea {
    width: 100%;
    height: 28px;
    padding: 2px 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    font-size: 14px;
}

textarea {
    height: 50px !important;
    resize: vertical;
    padding: 5px;
}

input:focus, select:focus, textarea:focus {
    border-color: #12253C !important;
    outline: none;
    box-shadow: 0 0 3px rgba(18, 37, 60, 0.5);
}

.form-label {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.form-group {
    margin-bottom: 8px;
    padding: 0;
}

.form-check {
    margin-top: 15px;
}

.form-check-input {
    vertical-align: middle;
}

.form-check-label {
    font-size: 12px;
    vertical-align: middle;
    margin-left: 5px;
}

.form-label, label {
    color: #132A4A;
    font-weight: 500;
    margin: 8px 0 2px 0;
    display: block;
}

/* Kompaktere Labels für kleine Formularelemente */
.form-label.small, label.small {
    margin: 4px 0 1px 0;
    font-size: 0.8rem;
}

/* Reduzierter Abstand zwischen Formulargruppen */
.mb-1 {
    margin-bottom: 0.25rem !important;
}

/* Buttons */
.btn {
    position: relative;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 255, 255, 0.1);
    border: 1px solid #12253C;
    margin: 10px 5px;
    padding: 8px 16px;
    overflow: hidden;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1));
}

/* Hilfe-Button - DiVe Corporate Blau */
.hilfe-button {
    background-color: #12253C !important;
    border-color: #12253C !important;
    color: white !important;
    transition: all 0.2s ease !important;
}

.hilfe-button:hover {
    background-color: #0f1e2e !important;
    border-color: #0f1e2e !important;
    color: #7dd3c0 !important;
}

/* Ausgeblendet wenn Hilfe deaktiviert */
.hilfe-button.hidden {
    display: none !important;
}

/* Zurück-Button - DiVe Corporate Blau */
.btn-zurueck {
    background-color: #12253C !important;
    border-color: #12253C !important;
    color: white !important;
    transition: all 0.2s ease !important;
}

.btn-zurueck:hover {
    background-color: #0f1e2e !important;
    border-color: #0f1e2e !important;
    color: #7dd3c0 !important;
}


/* Glasmorphismus-Effekt für Buttons */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 10px;
    height: 1px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 5px 0 15px 3px rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 0;
    width: 1px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 5px 15px 3px rgba(255, 255, 255, 0.7);
    z-index: 1;
}

/* Zusätzliche Lichtpunkte an den Ecken */
.btn::before,
.btn::after {
    animation: glowPulse 3s infinite alternate;
}

.btn::before {
    box-shadow: 5px 0 15px 3px rgba(255, 255, 255, 0.7), 
                0 0 5px 2px rgba(255, 255, 255, 0.5);
}

.btn::after {
    box-shadow: 0 5px 15px 3px rgba(255, 255, 255, 0.7),
                0 0 5px 2px rgba(255, 255, 255, 0.5);
}

/* Lichtpunkte an den anderen Ecken */
.btn::before {
    box-shadow: 5px 0 15px 3px rgba(255, 255, 255, 0.7),
                0 0 5px 2px rgba(255, 255, 255, 0.5);
}

.btn::after {
    box-shadow: 0 5px 15px 3px rgba(255, 255, 255, 0.7),
                0 0 5px 2px rgba(255, 255, 255, 0.5);
}

/* Pulsierender Effekt für die Lichtpunkte */
@keyframes glowPulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

/* Zurück-Button mit blauem Rand */
.btn-zurück, a[href*="zurück"], a[href*="Zurück"], a[href*="zurueck"], a[href*="Zurueck"] {
    border: 2px solid #12253C !important;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}



.btn:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn:active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: #12253C;
    border-color: #12253C;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: #1e3a5c;
    border-color: #1e3a5c;
    color: #A0D3CA;
}

.btn-secondary {
    background-color: var(--akzent);
    border-color: var(--akzent);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background-color: #2d605e;
    border-color: #2d605e;
    color: #12253C;
}

/* Warning-Button im DICO Design-System */
.btn-warning {
    background-color: var(--akzent);
    border-color: var(--akzent);
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-warning:hover {
    background-color: #2d605e;
    border-color: #2d605e;
    color: #A0D3CA;
}

/* Tabellen */
.table {
    color: #132A4A;
}

.table thead {
    background-color: #12253C;
    color: #CBD7CC;
}

.table-hover tbody tr:hover {
    background-color: rgba(var(--akzent-rgb), 0.1);
}

/* Dashboard-Karten */
.dashboard-card {
    background-color: #94C9BF;
    border: 2px solid #132C4D;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.dashboard-card .card-header {
    background-color: #12253C;
    color: #CBD7CC;
    padding: 10px 15px;
    border-bottom: 2px solid #132C4D;
    font-weight: bold;
}

.dashboard-card .card-body {
    padding: 20px;
    background-color: #94C9BF;
}

/* Widgets */
.widget {
    background-color: #94C9BF;
    border: 2px solid #132C4D;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    margin-bottom: 20px;
}

.widget h3 {
    color: #12253C;
    margin-bottom: 15px;
}

.widget .display-4 {
    color: #132A4A;
}

/* Content Cards */
.content-card {
    background-color: #94C9BF;
    border: 2px solid #132C4D;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    margin-bottom: 20px;
}

.content-card .card-body {
    padding: 20px;
}

/*
 * „Artikeldaten“-Kachel – verwaltung_artikel/artikel_bearbeiten.php (linke Spalte).
 * Zusätzlich für gleich aufgebaute kompakte Formular-Karten (z. B. X-Bericht Parameter).
 * Unterer Außenabstand wie Hauptlisten-Karte (--layout-hauptliste-karte-abstand-unten), damit die Karte oberhalb der fixierten Seitenfußleiste endet.
 */
.content-card.content-card-artikeldaten {
    margin-bottom: var(--layout-hauptliste-karte-abstand-unten, 80px);
}

.content-card.content-card-artikeldaten > .card-body {
    position: relative;
    padding: 0;
    padding-bottom: 70px;
}

.content-card.content-card-artikeldaten > .card-body > form > .content-card-artikeldaten-feldzone {
    padding: 20px 15px 0 15px;
}

/* Subkachel wie artikel_bearbeiten.php (Allgemein-Block); Feldzone nur X-Bericht Parameter */
.content-card-artikeldaten-feldzone .artikeldaten-subkachel {
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 15px 15px 15px;
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-card-artikeldaten-feldzone .artikeldaten-subkachel-kopf {
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #12253C;
}

.content-card-artikeldaten-feldzone .artikeldaten-subkachel-kopf h6 {
    margin: 0;
    color: #12253C;
    font-weight: bold;
}

.content-card-artikeldaten-feldzone .form-group {
    padding: 0 0 0 10px;
    margin: 8px 0;
}

.content-card.content-card-artikeldaten .content-card-artikeldaten-aktionen {
    position: absolute;
    bottom: 0;
    left: 10px;
}

.content-card.content-card-artikeldaten .form-label {
    margin-bottom: 2px;
    padding-left: 0;
    display: block;
    margin-left: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.content-card.content-card-artikeldaten .form-label.fw-bold {
    font-weight: 700;
}

.content-card.content-card-artikeldaten .form-control,
.content-card.content-card-artikeldaten .form-select,
.content-card.content-card-artikeldaten input[type="date"],
.content-card.content-card-artikeldaten input[type="number"] {
    height: 32px;
    padding: 2px 5px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    width: 95%;
    margin: 0;
    box-sizing: border-box;
}

.content-card.content-card-artikeldaten .form-control:focus,
.content-card.content-card-artikeldaten .form-select:focus,
.content-card.content-card-artikeldaten input[type="date"]:focus,
.content-card.content-card-artikeldaten input[type="number"]:focus {
    border: 2px solid #12253C;
    outline: none;
    box-shadow: 0 0 5px rgba(18, 37, 60, 0.6);
}

/* Seiten-Titel */
h1 {
    font-weight: 700;
    color: var(--akzent-hell);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 28px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Suchfeld-Container in Listen-Karten */
.card-header .search-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    margin-top: -7px;
    gap: 15px;
}

/* Typ-Filter-Gruppe im Card-Header (mit Icon davor) */
.card-header .search-container .boxen-typ-filter {
    width: auto;
    position: relative;
    top: 2px;
    height: 31px;
}

.card-header .search-container .boxen-typ-filter .input-group-text {
    background: transparent;
    border: none;
    padding: 0 0.35rem 0 0;
    color: rgba(203, 215, 204, 0.95);
}

.card-header .search-container .boxen-typ-filter select.form-control {
    height: 31px;
    min-height: 31px;
    padding: 0 0.45rem;
    font-size: 0.8rem;
    line-height: 1;
}

/* Suchfeld in Listen-Karten */
.card-header .search-input-group {
    max-width: 250px;
    height: 31px;
    margin-top: -7px; /* 1px höher als zuvor (-6px): Icon, Input und Button gemeinsam */
}

/* Icon-Präfix im Suchfeld */
.search-input-group .input-group-text {
    background: transparent;
    border: none;
    padding-right: 8px;
    color: white;
}

/* Suchfeld-Input (global, ohne Karten-Header) */
.search-input-group input {
    height: 26px;
    font-size: 0.8rem;
    border: none;
    border-radius: 3px 0 0 3px;
}

/* Suchfeld-Input im Karten-Header: 31px, optisch um 1px nach oben */
.card-header .search-input-group input {
    height: 31px;
    min-height: 31px;
    position: relative;
    top: -1px;
}

/* Selects im Karten-Header: 31px (Global .form-select-sm wäre sonst höher) */
.card-header .search-input-group.input-group {
    align-items: center;
}

.card-header .search-input-group .form-select,
.card-header .search-input-group select.form-select-sm {
    height: 31px;
    min-height: 31px;
    padding: 0 0.45rem;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.2;
    position: relative;
    top: 8px;
}

/* Icons vor Select-Feldern (nicht vor Text-Suche): vertikal +8px, Passung zu Select top */
.card-header .search-input-group.input-group:has(select) .input-group-text {
    position: relative;
    top: 8px;
}

/* Suchfeld-Button */
.search-input-group button {
    height: 31px;
    padding: 0 8px;
    font-size: 0.8rem;
    background-color: #A0D3CA;
    color: #12253C;
    border: none;
    border-radius: 0 3px 3px 0;
    margin-left: -1px;
    margin-top: 4px;
}

/* Suchfeld-Button im Karten-Header: 2px nach unten gegenüber früherem Stand (war 6px) */
.card-header .search-input-group button {
    margin-top: 8px;
}

/* Datentabelle in Listen-Karten */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border: 2px solid #12253C;
    border-top: none;
    border-bottom: none;
    table-layout: fixed;
}

.data-table thead {
    background-color: #12253C;
    color: white;
}

.data-table thead th:first-child {
    border-top-left-radius: 0;
}

.data-table thead th:last-child {
    border-top-right-radius: 0;
}

/* Tabellen-Footer: blauer Dekorbalken direkt unter der Tabelle (ohne Inhalt).
   Paginierung liegt im eigenen Bootstrap-.card-footer darunter (siehe .card-hauptliste). */
.table-footer {
    background-color: #12253C;
    color: #FFFFFF;
    border-top: 2px solid var(--akzent);
    border-radius: 0;
    padding: 0.28rem 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 26px;
    box-sizing: border-box;
}

/* Leerer Dekorbalken (Standard): möglichst niedrig — keine vertikalen Innenabstände */
.table-footer:empty {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 10px;
}

/* Legacy: Paginierung noch innerhalb von .table-footer — ausreichend Klickfläche */
.table-footer:not(:empty) {
    min-height: 40px;
    padding: 0.5rem 1rem;
}

.table-responsive > .table-footer {
    width: 100%;
}

/* Unterste Kartenzeile ohne Paginierung: Dekorbalken mit unterer Abrundung */
.content-card.card-hauptliste:not(:has(> .card-footer)) > .card-body .table-responsive > .table-footer {
    border-radius: 0 0 6px 6px;
}

.content-card.card-hauptliste:not(:has(> .card-footer)) > .card-body > .table-footer {
    border-radius: 0 0 6px 6px;
}

/* Paginierung im Card-Footer unterhalb des Table-Footers */
.content-card.card-hauptliste > .card-footer {
    background-color: #12253C;
    color: #FFFFFF;
    border-top: 2px solid var(--akzent);
    padding: 0.5rem 1rem;
    border-radius: 0 0 6px 6px;
}

.content-card.card-hauptliste > .card-footer .pagination {
    margin-bottom: 0;
}

.content-card.card-hauptliste > .card-footer .page-link {
    color: #FFFFFF;
    background-color: transparent;
    border: 1px solid var(--akzent);
}

.content-card.card-hauptliste > .card-footer .page-link:hover {
    background-color: var(--akzent);
    color: #FFFFFF;
}

.content-card.card-hauptliste > .card-footer .page-item.active .page-link {
    background-color: var(--akzent);
    border-color: var(--akzent);
}

.content-card.card-hauptliste > .card-footer .text-center {
    color: #FFFFFF;
}

/* Legacy: Paginierung noch innerhalb eines gemeinsamen .table-footer (Teilviews/Ajax) */
.table-footer .pagination {
    margin-bottom: 0;
}

.table-footer .page-link {
    color: #FFFFFF;
    background-color: transparent;
    border: 1px solid var(--akzent);
}

.table-footer .page-link:hover {
    background-color: var(--akzent);
    color: #FFFFFF;
}

.table-footer .page-item.active .page-link {
    background-color: var(--akzent);
    border-color: var(--akzent);
}

.table-footer .text-center {
    color: #FFFFFF;
}

.data-table th {
    padding: 6px 12px;
    text-align: left;
    font-weight: 500;
    border-bottom: 2px solid var(--akzent);
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(18, 37, 60, 0.1);
    transition: background-color 0.2s ease;
    background-color: #FFFFFF;
    cursor: pointer;
}

.data-table tbody tr:hover {
    background-color: rgba(160, 211, 202, 0.2);
}

.data-table td {
    padding: 0px 12px;
    vertical-align: middle;
}

/* Akkordeon/Karten-Inhalt: nur thead als Tabellenkopf, tbody ohne Rasterlinien */
.data-table.data-table--karten-inhalt {
    border: none;
}

.data-table.data-table--karten-inhalt tbody tr {
    border-bottom: none;
    background-color: transparent;
    cursor: default;
}

.data-table.data-table--karten-inhalt tbody tr:hover {
    background-color: rgba(160, 211, 202, 0.12);
}

.data-table.data-table--karten-inhalt th,
.data-table.data-table--karten-inhalt td {
    padding-top: 3px;
    padding-bottom: 3px;
}

.card-body--flush .table-responsive:has(.data-table--karten-inhalt) .table-footer {
    display: none;
}

/* verwaltung_rechnungen/bearbeiten.php — siehe rechnung_bearbeiten.css (nur dort geladen) */

/* verwaltung_kassen/index – Spaltenbreiten & Typografie */
.data-table.verwaltung-kassen-tabelle {
    width: 100%;
    min-width: 62rem;
}

/*
 * Zeilentrenner auf td statt tr: Bei border-collapse + overflow:hidden auf einzelnen Zellen
 * rendert Chromium/Firefox die tr-border-bottom unter diesen Spalten oft anders (Farbe/Lücken).
 */
.data-table.verwaltung-kassen-tabelle tbody tr {
    border-bottom: none;
}

.data-table.verwaltung-kassen-tabelle col.vk-col-id { width: 4%; }
.data-table.verwaltung-kassen-tabelle col.vk-col-name { width: 16%; }
.data-table.verwaltung-kassen-tabelle col.vk-col-standort { width: 14%; }
.data-table.verwaltung-kassen-tabelle col.vk-col-typ { width: 10%; }
.data-table.verwaltung-kassen-tabelle col.vk-col-ip { width: 12%; }
.data-table.verwaltung-kassen-tabelle col.vk-col-version { width: 8%; }
.data-table.verwaltung-kassen-tabelle col.vk-col-os { width: 17%; }
.data-table.verwaltung-kassen-tabelle col.vk-col-tse { width: 6%; }
.data-table.verwaltung-kassen-tabelle col.vk-col-status { width: 6%; }
.data-table.verwaltung-kassen-tabelle col.vk-col-aktionen { width: 7%; }

/* Name, Standort, Betriebssystem umbrechen; Typ/IP/DiVe-App: Ellipse im inneren .vk-zellen-ellipsis */
.data-table.verwaltung-kassen-tabelle tbody td:nth-child(2),
.data-table.verwaltung-kassen-tabelle tbody td:nth-child(3),
.data-table.verwaltung-kassen-tabelle tbody td:nth-child(7) {
    white-space: normal;
    word-break: break-word;
}

/* Ellipsis im Span – nicht auf der td (overflow:hidden ließ den mint/grünen Seitenhintergrund durchscheinen) */
.data-table.verwaltung-kassen-tabelle tbody td .vk-zellen-ellipsis {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table.verwaltung-kassen-tabelle tbody td {
    border-bottom: 1px solid rgba(18, 37, 60, 0.1);
    font-size: 1rem;
    color: #212529;
}

.data-table.verwaltung-kassen-tabelle tbody td .badge {
    font-size: inherit;
    font-weight: 600;
    vertical-align: middle;
}

/* verwaltung_anpr_kameras/index – Spaltenbreiten (Hauptliste) */
.data-table.verwaltung-anpr-kameras-tabelle {
    width: 100%;
    table-layout: fixed;
    min-width: 56rem;
}

.data-table.verwaltung-anpr-kameras-tabelle tbody tr {
    border-bottom: none;
}

.data-table.verwaltung-anpr-kameras-tabelle col.anpr-col-id { width: 3.25rem; }
.data-table.verwaltung-anpr-kameras-tabelle col.anpr-col-name { width: 17%; }
.data-table.verwaltung-anpr-kameras-tabelle col.anpr-col-hersteller { width: 10%; }
.data-table.verwaltung-anpr-kameras-tabelle col.anpr-col-standort { width: 22%; }
.data-table.verwaltung-anpr-kameras-tabelle col.anpr-col-typ { width: 11%; }
.data-table.verwaltung-anpr-kameras-tabelle col.anpr-col-kasse { width: 19%; }
.data-table.verwaltung-anpr-kameras-tabelle col.anpr-col-aktiv { width: 5.5rem; }
.data-table.verwaltung-anpr-kameras-tabelle col.anpr-col-aktionen { width: 7rem; }

.data-table.verwaltung-anpr-kameras-tabelle thead th {
    white-space: nowrap;
}

.data-table.verwaltung-anpr-kameras-tabelle tbody td {
    border-bottom: 1px solid rgba(18, 37, 60, 0.1);
}

.data-table.verwaltung-anpr-kameras-tabelle tbody td .anpr-zellen-ellipsis {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table.verwaltung-anpr-kameras-tabelle tbody td.anpr-td-standort code.anpr-code-ellipsis {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.92em;
}

.data-table.verwaltung-anpr-kameras-tabelle tbody td.anpr-td-hersteller .badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

/* verwaltung_mobile-app/index – App-Design-Liste Spaltenbreiten (gleiche Klasse: verwaltung_mobile-app-ma/index) */
.data-table.verwaltung-mobile-app-designs-tabelle {
    width: 100%;
    table-layout: fixed;
    min-width: 48rem;
}

.data-table.verwaltung-mobile-app-designs-tabelle tbody tr {
    border-bottom: none;
}

.data-table.verwaltung-mobile-app-designs-tabelle col.mad-col-id { width: 3.25rem; }
.data-table.verwaltung-mobile-app-designs-tabelle col.mad-col-name { width: 16%; }
.data-table.verwaltung-mobile-app-designs-tabelle col.mad-col-beschreibung { width: 36%; }
.data-table.verwaltung-mobile-app-designs-tabelle col.mad-col-status { width: 6.5rem; }
.data-table.verwaltung-mobile-app-designs-tabelle col.mad-col-geaendert { width: 9rem; }
.data-table.verwaltung-mobile-app-designs-tabelle col.mad-col-aktionen { width: 8.75rem; }

.data-table.verwaltung-mobile-app-designs-tabelle thead th {
    white-space: nowrap;
}

.data-table.verwaltung-mobile-app-designs-tabelle tbody td {
    border-bottom: 1px solid rgba(18, 37, 60, 0.1);
}

.data-table.verwaltung-mobile-app-designs-tabelle tbody td .mad-zellen-ellipsis {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table.verwaltung-mobile-app-designs-tabelle tbody td.mad-td-status .badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* verwaltung_pos-design_artikellayout/index – POS-Artikel-Layout-Liste */
.data-table.verwaltung-pos-artikellayout-tabelle {
    width: 100%;
    table-layout: fixed;
    min-width: 56rem;
}

.data-table.verwaltung-pos-artikellayout-tabelle tbody tr {
    border-bottom: none;
}

.data-table.verwaltung-pos-artikellayout-tabelle col.pal-col-id { width: 3.25rem; }
.data-table.verwaltung-pos-artikellayout-tabelle col.pal-col-star { width: 2.25rem; }
.data-table.verwaltung-pos-artikellayout-tabelle col.pal-col-bezeichnung { width: 20%; }
.data-table.verwaltung-pos-artikellayout-tabelle col.pal-col-anzeige { width: 12%; }
.data-table.verwaltung-pos-artikellayout-tabelle col.pal-col-von { width: 5.75rem; }
.data-table.verwaltung-pos-artikellayout-tabelle col.pal-col-bis { width: 5.75rem; }
.data-table.verwaltung-pos-artikellayout-tabelle col.pal-col-positionen { width: 5.25rem; }
.data-table.verwaltung-pos-artikellayout-tabelle col.pal-col-status { width: 8rem; }
.data-table.verwaltung-pos-artikellayout-tabelle col.pal-col-aktionen { width: 8.75rem; }

.data-table.verwaltung-pos-artikellayout-tabelle thead th {
    white-space: nowrap;
}

.data-table.verwaltung-pos-artikellayout-tabelle tbody td .pal-zellen-ellipsis {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* verwaltung_designer_dokumente/index – Dokument-Designs-Liste */
.data-table.verwaltung-designer-dokumente-tabelle {
    width: 100%;
    table-layout: fixed;
    min-width: 52rem;
}

.data-table.verwaltung-designer-dokumente-tabelle tbody tr {
    border-bottom: none;
}

.data-table.verwaltung-designer-dokumente-tabelle col.ddd-col-id { width: 3.25rem; }
.data-table.verwaltung-designer-dokumente-tabelle col.ddd-col-name { width: 22%; }
.data-table.verwaltung-designer-dokumente-tabelle col.ddd-col-dokumenttyp { width: 11%; }
.data-table.verwaltung-designer-dokumente-tabelle col.ddd-col-template { width: 12%; }
.data-table.verwaltung-designer-dokumente-tabelle col.ddd-col-aktiv { width: 6rem; }
.data-table.verwaltung-designer-dokumente-tabelle col.ddd-col-standard { width: 5rem; }
.data-table.verwaltung-designer-dokumente-tabelle col.ddd-col-erstellt { width: 9rem; }
.data-table.verwaltung-designer-dokumente-tabelle col.ddd-col-aktionen { width: 7rem; }

.data-table.verwaltung-designer-dokumente-tabelle thead th {
    white-space: nowrap;
}

.data-table.verwaltung-designer-dokumente-tabelle tbody td {
    border-bottom: 1px solid rgba(18, 37, 60, 0.1);
}

.data-table.verwaltung-designer-dokumente-tabelle tbody td .ddd-zellen-ellipsis {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* verwaltung_mitarbeiter_stamm/index.php – Mitarbeiterliste */
.data-table.verwaltung-mitarbeiter-stamm-tabelle {
    width: 100%;
    table-layout: fixed;
    min-width: 56rem;
}

.data-table.verwaltung-mitarbeiter-stamm-tabelle tbody tr {
    border-bottom: none;
}

.data-table.verwaltung-mitarbeiter-stamm-tabelle col.vms-col-pnr { width: 6.5rem; }
.data-table.verwaltung-mitarbeiter-stamm-tabelle col.vms-col-name { width: 18%; }
.data-table.verwaltung-mitarbeiter-stamm-tabelle col.vms-col-rolle { width: 11%; }
.data-table.verwaltung-mitarbeiter-stamm-tabelle col.vms-col-besch { width: 18%; }
.data-table.verwaltung-mitarbeiter-stamm-tabelle col.vms-col-stunden { width: 6.5rem; }
.data-table.verwaltung-mitarbeiter-stamm-tabelle col.vms-col-urlaub { width: 8rem; }
.data-table.verwaltung-mitarbeiter-stamm-tabelle col.vms-col-status { width: 5.5rem; }
.data-table.verwaltung-mitarbeiter-stamm-tabelle col.vms-col-aktionen { width: 6rem; }

.data-table.verwaltung-mitarbeiter-stamm-tabelle thead th {
    white-space: nowrap;
}

.data-table.verwaltung-mitarbeiter-stamm-tabelle tbody td {
    border-bottom: 1px solid rgba(18, 37, 60, 0.1);
}

/* verwaltung_mwst/index.php — Steuersätze */
.data-table.verwaltung-mwst-tabelle {
    width: 100%;
    table-layout: fixed;
    min-width: 52rem;
}

.data-table.verwaltung-mwst-tabelle tbody tr {
    border-bottom: none;
}

.data-table.verwaltung-mwst-tabelle col.vmwst-col-id { width: 5%; }
.data-table.verwaltung-mwst-tabelle col.vmwst-col-aktiv { width: 9%; }
.data-table.verwaltung-mwst-tabelle col.vmwst-col-bezeichnung { width: 22%; }
.data-table.verwaltung-mwst-tabelle col.vmwst-col-satz { width: 7%; }
.data-table.verwaltung-mwst-tabelle col.vmwst-col-von { width: 11%; }
.data-table.verwaltung-mwst-tabelle col.vmwst-col-bis { width: 11%; }
.data-table.verwaltung-mwst-tabelle col.vmwst-col-beschreibung { width: 26%; }
.data-table.verwaltung-mwst-tabelle col.vmwst-col-aktionen { width: 9%; }

.data-table.verwaltung-mwst-tabelle thead th {
    white-space: nowrap;
}

.data-table.verwaltung-mwst-tabelle tbody td {
    border-bottom: 1px solid rgba(18, 37, 60, 0.1);
}

.data-table.verwaltung-mwst-tabelle tbody td:nth-child(2) {
    white-space: normal;
    word-break: break-word;
}

.data-table.verwaltung-mwst-tabelle tbody td .mwst-zellen-ellipsis {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
 * verwaltung_rabatte/index.php — Modal „Performance-Test-Ergebnis“
 * WARUM: Root-zoom (:root) und Bootstrap-Backdrop — stabiler Karten-Schatten unabhängig vom Body-Inhalt;
 * Ziel-Badges mit ausreichender Schriftgröße/Kontrast (vorher zu klein / weiß schwer lesbar).
 * Modal-Fläche wie DiVe-.content-card (#94C9BF); Primäraktion wie Listen-card-header (#12253C).
 */
#performanceModal.rabatte-performance-modal .modal-content {
    background-color: #94C9BF;
    border: 2px solid #132C4D;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

#performanceModal.rabatte-performance-modal .modal-body {
    background-color: #94C9BF;
}

#performanceModal.rabatte-performance-modal .modal-footer {
    background-color: #94C9BF;
    border-top: 2px solid #132C4D;
}

#performanceModal .rabatte-performance-modal-header {
    background-color: #12253C;
    color: #fff;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid var(--akzent);
}

#performanceModal .rabatte-performance-modal-header .modal-title {
    font-weight: 600;
}

/**
 * Primäraktion „Test wiederholen“ — gleiche Lesart wie .content-card .card-header (DiVe-Blau).
 */
#performanceModal .rabatte-perf-modal-btn-wiederholen {
    background-color: #12253C;
    color: #fff;
    border: 2px solid #12253C;
    font-weight: 600;
    border-radius: 4px;
}

#performanceModal .rabatte-perf-modal-btn-wiederholen:hover {
    background-color: #1a3355;
    color: #fff;
    border-color: var(--akzent);
}

#performanceModal .rabatte-perf-modal-btn-wiederholen:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(var(--akzent-rgb), 0.45);
}

/*
 * verwaltung_rabatte/index.php — Modal „Regel testen“
 * WARUM: Nur #testRegelModal (ohne Zusatzklasse) — gleiche Fläche wie .content-card (#94C9BF / #132C4D).
 */
#testRegelModal .modal-content {
    background-color: #94C9BF;
    border: 2px solid #132C4D;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

#testRegelModal .modal-body {
    background-color: #94C9BF;
}

#testRegelModal .modal-footer {
    background-color: #94C9BF;
    border-top: 2px solid #132C4D;
}

#testRegelModal .rabatte-regeltest-modal-header {
    background-color: #12253C;
    color: #fff;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid var(--akzent);
}

#testRegelModal .rabatte-regeltest-modal-header .modal-title {
    font-weight: 600;
}

#testRegelModal .rabatte-regeltest-modal-btn-wiederholen {
    background-color: #12253C;
    color: #fff;
    border: 2px solid #12253C;
    font-weight: 600;
    border-radius: 4px;
}

#testRegelModal .rabatte-regeltest-modal-btn-wiederholen:hover {
    background-color: #1a3355;
    color: #fff;
    border-color: var(--akzent);
}

#testRegelModal .rabatte-regeltest-modal-btn-wiederholen:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(var(--akzent-rgb), 0.45);
}

#performanceModal .rabatte-perf-status-banner {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    padding: 1rem 1.15rem;
    border-radius: 8px;
    gap: 0.75rem;
}

#performanceModal .rabatte-perf-status-banner .rabatte-perf-status-icon {
    font-size: 1.85rem;
    flex-shrink: 0;
}

#performanceModal .rabatte-perf-metric-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    background: #f8f9fa;
}

#performanceModal .rabatte-perf-metric-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: #12253C;
    line-height: 1.2;
}

#performanceModal .rabatte-perf-ziel-legende {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

#performanceModal .rabatte-perf-ziel-badge {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    line-height: 1.35;
    white-space: normal;
    max-width: 100%;
    text-align: left;
}

#performanceModal .rabatte-perf-ziel-badge.bg-success {
    color: #fff;
}

#performanceModal .rabatte-perf-ziel-badge.bg-danger {
    color: #fff;
}

#performanceModal .rabatte-perf-regel-info {
    font-size: 1rem;
}

/*
 * verwaltung_rollen/system_uebersicht.php — Stat-Kacheln im DiVe-Stil (Rand/Farben wie Hierarchie-Karten auf index.php).
 */
.system-uebersicht-stat-grid .system-uebersicht-stat-card {
    background: #ffffff;
    border: 2px solid #132C4D;
    border-radius: 8px;
    border-left-width: 4px;
    box-shadow: 0 4px 14px rgba(18, 37, 60, 0.14);
}

.system-uebersicht-stat-grid .system-uebersicht-stat-card .card-body {
    padding: 0.75rem 0.85rem;
}

.system-uebersicht-stat-grid .stat-zahl {
    font-size: 1.65rem;
    font-weight: 700;
    color: #12253C;
    line-height: 1.15;
}

.system-uebersicht-stat-grid .stat-label {
    font-size: 0.76rem;
    color: #495057;
    margin-top: 0.25rem;
    line-height: 1.25;
}

.system-uebersicht-stat-card.stat-akzent-rollen {
    border-left-color: #12253C;
}

.system-uebersicht-stat-card.stat-akzent-menue {
    border-left-color: var(--akzent);
}

.system-uebersicht-stat-card.stat-akzent-sub {
    border-left-color: #5DADE2;
}

.system-uebersicht-stat-card.stat-akzent-ber {
    border-left-color: #A0D3CA;
}

.system-uebersicht-stat-card.stat-akzent-user {
    border-left-color: #6F8481;
}

.system-uebersicht-stat-card.stat-akzent-system {
    border-left-color: #132C4D;
}

/* verwaltung_uebersetzungen/index.php — Filter im card-header wie andere Hauptlisten */
.content-card.card-hauptliste > .card-header.ue-editor-card-header {
    flex-shrink: 0;
}

.content-card.card-hauptliste > .card-header.ue-editor-card-header .ue-editor-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/*
 * Übersetzungseditor-Kopf: globale .card-header-Suchfeld-Hacks (negative margins, top-Verschiebungen)
 * sind für eine einzeilige Suche gedacht — mit Selects + zweiter Button-Zeile wirkt das wie „halbe Elemente im/halbe unter dem Balken“.
 */
.content-card.card-hauptliste > .card-header.ue-editor-card-header .search-container {
    margin-top: 0;
    align-self: center;
}

.content-card.card-hauptliste > .card-header.ue-editor-card-header .ue-editor-suche .search-input-group.input-group {
    margin-top: 0;
    max-width: none;
    min-height: 31px;
    height: 31px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.content-card.card-hauptliste > .card-header.ue-editor-card-header .ue-editor-suche .search-input-group.input-group > .form-control {
    top: 0;
    height: 31px;
    min-height: 31px;
    flex: 1 1 auto;
}

/* Nach input-group-sm keine zusätzliche top-Verschiebung — sonst wirken Buttons zu tief */
.content-card.card-hauptliste > .card-header.ue-editor-card-header .ue-editor-suche .search-input-group.input-group > button.btn {
    margin-top: 0;
    margin-bottom: 0;
    height: 31px;
    min-height: 31px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.content-card.card-hauptliste > .card-header.ue-editor-card-header .ue-editor-suche .search-input-group.input-group > a.btn {
    margin-top: 0;
    margin-bottom: 0;
    height: 31px;
    min-height: 31px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.content-card.card-hauptliste .ue-editor-filter-form .ue-editor-header-links {
    flex: 1 1 auto;
}

.content-card.card-hauptliste .ue-editor-filter-form #ueSelectSprache {
    max-width: 12rem;
    min-width: 8rem;
}

.content-card.card-hauptliste .ue-editor-filter-form #ueSelectKategorie {
    max-width: 26rem;
    min-width: 14rem;
}

.content-card.card-hauptliste .ue-editor-filter-form .ue-editor-suche {
    flex: 1 1 14rem;
    min-width: 12rem;
    max-width: 28rem;
}

.content-card.card-hauptliste .ue-editor-filter-form .ue-editor-header-actions {
    flex-shrink: 0;
}

.data-table.verwaltung-uebersetzungen-tabelle {
    width: 100%;
    table-layout: fixed;
    min-width: 48rem;
    margin-bottom: 0;
}

.data-table.verwaltung-uebersetzungen-tabelle col.vue-col-schluessel { width: 22%; }
.data-table.verwaltung-uebersetzungen-tabelle col.vue-col-standard { width: 28%; }
.data-table.verwaltung-uebersetzungen-tabelle col.vue-col-wert { width: 38%; }
.data-table.verwaltung-uebersetzungen-tabelle col.vue-col-aktionen { width: 8rem; }

.data-table.verwaltung-uebersetzungen-tabelle thead th {
    padding: 3px 8px;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
}

.data-table.verwaltung-uebersetzungen-tabelle tbody tr.ue-kategorie-kopfzeile td {
    border-bottom: none;
    padding: 0.14rem 8px 0;
}

.data-table.verwaltung-uebersetzungen-tabelle .ue-kategorie-header {
    background: #12253C;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.35;
}

.data-table.verwaltung-uebersetzungen-tabelle tbody tr.uebersetzung-zeile td {
    vertical-align: middle;
    border-bottom: 1px solid rgba(18, 37, 60, 0.08);
    padding: 2px 8px;
    font-weight: 700;
}

.data-table.verwaltung-uebersetzungen-tabelle .ue-schluessel-wrap {
    gap: 0.125rem;
}

.data-table.verwaltung-uebersetzungen-tabelle tbody tr.uebersetzung-zeile .edit-input.form-control-sm {
    padding: 2px 6px;
    font-size: 1rem;
    line-height: 1.28;
    min-height: 1.8125rem;
    height: auto;
    font-weight: 700;
}

.data-table.verwaltung-uebersetzungen-tabelle tbody tr.uebersetzung-zeile .action-buttons .btn-sm {
    padding: 0.1rem 0.35rem;
    font-size: 0.875rem;
    line-height: 1.22;
}

.data-table.verwaltung-uebersetzungen-tabelle tbody tr.uebersetzung-zeile:hover td {
    background-color: rgba(160, 211, 202, 0.12);
}

.data-table.verwaltung-uebersetzungen-tabelle .schluessel-badge {
    font-size: 0.875rem;
    font-family: monospace;
    background: #e9ecef;
    color: #495057;
    padding: 0 4px;
    line-height: 1.35;
    border-radius: 3px;
    font-weight: 700;
}

.data-table.verwaltung-uebersetzungen-tabelle .override-badge {
    font-size: 0.8125rem;
    background: #d4edda;
    color: #155724;
    padding: 0 4px;
    line-height: 1.35;
    border-radius: 3px;
    font-weight: 700;
}

.data-table.verwaltung-uebersetzungen-tabelle .standard-text {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
}

.data-table.verwaltung-uebersetzungen-tabelle .standard-text .fa-xs,
.data-table.verwaltung-uebersetzungen-tabelle .btn-sm .fa-xs {
    font-size: 0.8125rem;
    vertical-align: -0.05em;
}

.data-table.verwaltung-uebersetzungen-tabelle .ue-zellen-ellipsis {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table.verwaltung-uebersetzungen-tabelle .action-buttons {
    gap: 3px;
}

/* Aktionsbuttons in der Tabelle */
.data-table .action-buttons {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}


.data-table tbody tr.zeile-inaktiv {
    background-color: #f8d7da;
}

.data-table tbody tr.zeile-aktiv {
    background-color: #d1e7dd;
}

.data-table .action-button {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.btn-tabelle {
    font-size: 0.72rem !important;
    padding: 1px 6px !important;
    line-height: 1.3 !important;
    height: auto !important;
}

.data-table .action-button.rollen-berechtigungen {
    background-color: #198754;
    color: #FFFFFF;
}

.data-table .action-button.rollen-berechtigungen:hover {
    background-color: #157347;
    color: #FFFFFF;
}

.data-table.verwaltung-rollen-tabelle tbody tr {
    cursor: default;
}

/* verwaltung_rollen — Zwei-Spalten Bearbeiten-Layout + Hierarchie-Leiter */
.row.rollen-verwaltung-hauptzeile {
    flex: 1 1 auto;
    min-height: 0;
}

.rollen-verwaltung-rechts.dive-seite-hoehe-spalte {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.rollen-hierarchie-karte.dive-content-card-hoehe-fill {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.content-card.rollen-hierarchie-karte > .card-body.rollen-hierarchie-karte-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rollen-hierarchie-tabellenbereich {
    flex: 0 0 auto;
    overflow: hidden;
    max-width: 100%;
}

.rollen-hierarchie-karte .rollen-hierarchie-table-responsive {
    overflow: visible;
}

.rollen-hierarchie-karte .data-table.rollen-hierarchie-tabelle {
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
}

.content-card.rollen-hierarchie-karte .rollen-hierarchie-tabellenbereich .table-footer {
    border-radius: 0 0 6px 6px;
}

.rollen-uebersicht-hauptkarte > .card-body {
    overflow-y: auto;
}

/*
 * Rollen-Übersicht (index.php links): globale Suchfeld-Hacks (margin-top: -7px, top: -1px)
 * sitzen im 40px-Header zu hoch — wie ue-editor-card-header neutralisieren und zentrieren.
 */
.rollen-uebersicht-hauptkarte > .card-header .search-container {
    margin-top: 0;
    align-self: center;
}

.rollen-uebersicht-hauptkarte > .card-header .rollen-uebersicht-suche-form {
    display: flex;
    align-items: center;
    margin: 0;
}

.rollen-uebersicht-hauptkarte > .card-header .search-input-group.input-group {
    margin-top: 0;
    height: 31px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.rollen-uebersicht-hauptkarte > .card-header .search-input-group.input-group > .input-group-text {
    display: flex;
    align-items: center;
    height: 31px;
    position: static;
}

.rollen-uebersicht-hauptkarte > .card-header .search-input-group.input-group > .form-control {
    top: 0;
    height: 31px;
    min-height: 31px;
}

.rollen-uebersicht-hauptkarte > .card-header .search-input-group.input-group > button.btn,
.rollen-uebersicht-hauptkarte > .card-header .search-input-group.input-group > a.btn {
    margin-top: 0;
    margin-bottom: 0;
    height: 31px;
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hierarchie-Tabelle (index.php rechts) */

.data-table.rollen-hierarchie-tabelle {
    font-size: 0.875rem;
}

.data-table.rollen-hierarchie-tabelle col.rollen-hierarchie-col-rolle {
    width: 30%;
}

.data-table.rollen-hierarchie-tabelle col.rollen-hierarchie-col-benutzer {
    width: 18%;
}

.data-table.rollen-hierarchie-tabelle col.rollen-hierarchie-col-berechtigungen {
    width: 52%;
}

.data-table.rollen-hierarchie-tabelle thead .rollen-hierarchie-spalte-rolle {
    white-space: nowrap;
}

.data-table.rollen-hierarchie-tabelle .rollen-hierarchie-spalte-benutzer,
.data-table.rollen-hierarchie-tabelle .rollen-hierarchie-spalte-berechtigungen {
    white-space: nowrap;
}

.data-table.rollen-hierarchie-tabelle .rollen-hierarchie-spalte-berechtigungen {
    font-size: 0.8rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.data-table.rollen-hierarchie-tabelle tbody tr {
    transition: none;
    border-bottom: none;
    background-color: #fff;
    cursor: default;
}

.data-table.rollen-hierarchie-tabelle tbody tr:hover {
    background-color: #fff;
}

.data-table.rollen-hierarchie-tabelle .rollen-hierarchie-level-zeile td {
    background-color: #12253C;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
    border-bottom: 1px solid rgba(18, 37, 60, 0.1);
}

.data-table.rollen-hierarchie-tabelle .rollen-hierarchie-level-zeile:hover td {
    background-color: #12253C;
}

.data-table.rollen-hierarchie-tabelle .rollen-hierarchie-zeile {
    cursor: pointer;
    border-bottom: none;
}

/*
 * Zeilentrenner + Hintergrund auf td (nicht tr): overflow:hidden auf td:first-child
 * ließ mint/grünen Hover-Hintergrund nur unter dem Rollennamen durchscheinen
 * (siehe Kommentar bei .verwaltung-kassen-tabelle).
 */
.data-table.rollen-hierarchie-tabelle .rollen-hierarchie-zeile td {
    border-bottom: 1px solid rgba(18, 37, 60, 0.1);
    background-color: #fff;
}

.data-table.rollen-hierarchie-tabelle .rollen-hierarchie-zeile:hover td {
    background-color: #f8f9fa;
    border-bottom-color: rgba(18, 37, 60, 0.1);
}

.data-table.rollen-hierarchie-tabelle .rollen-hierarchie-zeile--aktiv td,
.data-table.rollen-hierarchie-tabelle .rollen-hierarchie-zeile--aktiv:hover td {
    background-color: #f1f3f5;
    border-bottom-color: rgba(18, 37, 60, 0.1);
}

.rollen-hierarchie-zeile-inhalt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.rollen-hierarchie-zeile-inhalt strong {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.rollen-hierarchie-zeile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    color: #fff;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.rollen-farbe-punkt {
    font-size: 0.55rem;
    vertical-align: middle;
}

/* rolle_details.php */
.rollen-detail-kopf {
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
}

.rollen-detail-kopf-id {
    color: rgba(255, 255, 255, 0.75);
}

.rollen-detail-dl {
    display: grid;
    gap: 0.45rem;
}

.rollen-detail-dl-zeile {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 0.5rem;
    align-items: baseline;
}

.rollen-detail-dl-zeile dt {
    font-weight: 600;
    color: #12253C;
    margin: 0;
}

.rollen-detail-dl-zeile dd {
    margin: 0;
}

.rollen-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.rollen-stat-kachel {
    text-align: center;
    padding: 0.75rem 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
}

.rollen-stat-icon {
    font-size: 1.25rem;
    color: var(--akzent);
    margin-bottom: 0.25rem;
}

.rollen-stat-zahl {
    font-size: 1.35rem;
    font-weight: 700;
    color: #12253C;
    line-height: 1.2;
}

.rollen-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
}

.rollen-bericht-zeile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.rollen-bericht-zeile--unterpunkt {
    padding-left: 1.5rem;
}

.rollen-bericht-zeile--subkachel {
    padding-left: 2rem;
}

.rollen-bericht-zeile--subkachel-tief {
    padding-left: 2.75rem;
}

.rollen-bericht-name {
    min-width: 0;
    font-size: 0.875rem;
}

.rollen-bericht-gruppe {
    border-top: 1px solid #d0d7de;
}

.rollen-bericht-gruppe:first-child {
    border-top: none;
}

.rollen-bericht-gruppe-kopf {
    font-size: 0.9rem;
}

.rollen-details-akkordeon .card-header.dive-akkordeon-header,
.rollen-benutzer-akkordeon .card-header.dive-akkordeon-header {
    cursor: pointer;
}

.data-table .action-button.edit {
    background-color: #A0D3CA;
    color: #12253C;
}

.data-table .action-button.copy {
    background-color: #5DADE2;
    color: white;
}

.data-table .action-button.view {
    background-color: var(--akzent);
    color: white;
}

.data-table .action-button.delete {
    background-color: #E74C3C;
    color: white;
}

.data-table.verwaltung-rollen-tabelle .action-buttons button.rollen-loeschen-icon-deaktiviert:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.data-table.verwaltung-rollen-tabelle .action-buttons button.action-button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.data-table .action-button.download {
    background-color: #12253C;
    color: #FFFFFF;
}

.data-table .action-button.send {
    background-color: #E8C547;
    color: #12253C;
}

.data-table .action-button.paid {
    background-color: #2d8f5f;
    color: #FFFFFF;
}

.data-table .action-button.paid-done {
    background-color: #2d8f5f;
    color: #FFFFFF;
    cursor: default;
}

.data-table .action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

/* Globaler DiVe-Modal-Header- und Footer-Stil */
.modal-header.dive-modal-header {
    background-color: #12253C !important;
    color: #fff !important;
    border-radius: 8px 8px 0 0 !important;
    border-bottom: 2px solid var(--akzent) !important;
}
.modal-header.dive-modal-header .modal-title {
    color: #fff !important;
    font-weight: 600;
}
.modal-header.dive-modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
    opacity: 1 !important;
}
/* Semantische Header-Variante: Fehler (rot) */
.modal-header.dive-modal-header-danger {
    background-color: #b02a37 !important;
    color: #fff !important;
    border-radius: 8px 8px 0 0 !important;
    border-bottom: 2px solid #7a1c25 !important;
}
.modal-header.dive-modal-header-danger .modal-title {
    color: #fff !important;
    font-weight: 600;
}
.modal-header.dive-modal-header-danger .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
    opacity: 1 !important;
}
/* Semantische Header-Variante: Warnung (orange) */
.modal-header.dive-modal-header-warning {
    background-color: #cc7a00 !important;
    color: #fff !important;
    border-radius: 8px 8px 0 0 !important;
    border-bottom: 2px solid #995c00 !important;
}
.modal-header.dive-modal-header-warning .modal-title {
    color: #fff !important;
    font-weight: 600;
}
.modal-header.dive-modal-header-warning .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
    opacity: 1 !important;
}
.modal-body.dive-modal-body {
    background-color: #94C9BF !important;
}
.modal-footer.dive-modal-footer {
    background-color: #94C9BF !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
}

/* Buchhaltung: Arbeitszeitkarten (Badges / Gesamtzeile; keine Inline-Farben) */
.stundenzettel-summe-badge {
    background-color: var(--akzent);
    color: #ffffff;
}

/* Arbeitszeitkarte: Status-Zellen gut lesbar (Kontrast, Rahmen, Icon) */
.data-table.stundenzettel-detail-tabelle tbody tr {
    cursor: default;
}

.data-table td .stundenzettel-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.42em 0.72em;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 6px;
    border: 2px solid rgba(18, 37, 60, 0.45);
    white-space: nowrap;
    line-height: 1.25;
    box-shadow: 0 1px 2px rgba(18, 37, 60, 0.08);
}

.data-table td .stundenzettel-status i {
    font-size: 1.05em;
    flex-shrink: 0;
}

.data-table .stundenzettel-status--anwesend {
    background-color: #157347;
    color: #ffffff;
    border-color: #0f5132;
}

.data-table .stundenzettel-status--beendet {
    background-color: #495057;
    color: #ffffff;
    border-color: #343a40;
}

.data-table .stundenzettel-status--pause {
    background-color: #ffc107;
    color: #12253c;
    border-color: #856404;
}

.data-table .stundenzettel-status--unbekannt,
.data-table .stundenzettel-status--sonstig {
    background-color: #e8eef3;
    color: #12253c;
    border-color: #12253c;
}

.data-table tbody tr.stundenzettel-gesamtzeile td {
    border-top: 2px solid rgba(var(--akzent-rgb), 0.35);
    background-color: rgba(160, 211, 202, 0.12);
}

.stundenzettel-leer-wrapper {
    min-height: 0;
}

/* Glasmorphismus-Effekt für Dashboard-Karten */
.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 10px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 5px 0 15px 2px rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.dashboard-card::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 0;
    width: 1px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 15px 2px rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

/* Icons in Kachel-Titeln */
.card-header i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.card-header h5 {
    margin: 0;
    padding: 5px 0;
    display: flex;
    align-items: center;
}

/* Styling für den Plus-Button in Akkordeon-Titelleisten */
.akkordeon-add-button {
    background-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: all 0.3s ease;
    margin-left: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2), inset 0 0 3px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.akkordeon-add-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.akkordeon-add-button:hover::before {
    left: 100%;
}

.akkordeon-add-button:hover {
    background-color: #A0D3CA;
    color: #12253C;
    transform: scale(1.1);
    border-color: #FFFFFF;
    box-shadow: 0 0 8px rgba(160, 211, 202, 0.7), inset 0 0 5px rgba(255, 255, 255, 0.5);
}

.akkordeon-add-button i {
    font-size: 11px;
    margin: 0;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

/* Kontakte-Tabelle im Akkordeon */
.kontakte-tabelle {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background-color: white;
    color: #12253C;
}

.kontakte-tabelle th {
    background-color: #366A89;
    color: white;
    padding: 4px 8px;
    text-align: left;
    font-weight: normal;
    border: none;
    height: 28px;
}

.kontakte-tabelle td {
    padding: 2px 8px;
    border-bottom: 1px solid rgba(18, 37, 60, 0.1);
    height: 24px;
    vertical-align: middle;
}

.kontakte-tabelle tr:hover td {
    background-color: rgba(18, 37, 60, 0.05);
}

.kontakte-tabelle .keine-daten {
    text-align: center;
    padding: 8px 0;
    color: #12253C;
    font-weight: bold;
}

.kontakte-tabelle .aktionen-zelle {
    text-align: right;
    white-space: nowrap;
}

.kontakte-tabelle .info-icon i.fa-info-circle {
    color: #376A89;
}

.kontakte-tabelle a {
    color: #12253C;
    text-decoration: none;
}

.kontakte-tabelle a:hover {
    text-decoration: underline;
}

/* Flachere Icons in der Kontakte-Tabelle */
.kontakte-tabelle .btn {
    padding: 0px 4px;
    line-height: 1.2;
    font-size: 0.8rem;
    margin: 0 1px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kontakte-tabelle .info-icon {
    font-size: 0.85rem;
    vertical-align: middle;
    margin-right: 4px;
}

/* Kontakt-Modal Styling - NUR für kontaktModal */
#kontaktModal.modal .modal-dialog .modal-content {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    background-color: #12253C;
}

#kontaktModal .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    background-color: #12253C;
    color: white;
    padding: 12px 15px;
}

#kontaktModal .card-body {
    padding: 0;
    padding-bottom: 80px;
    min-height: 480px;
    position: relative;
}

#kontaktModal .form-group {
    margin-bottom: 15px;
    margin-top: 10px;
}

#kontaktModal .form-control {
    font-size: calc(0.9rem + 2px);
    height: auto;
    padding: 0.375rem 0.75rem;
}

#kontaktModal .form-label {
    font-size: calc(0.9rem + 2px);
    margin-bottom: 0.25rem;
}

#kontaktModal select.form-control {
    height: calc(1.5em + 0.75rem + 2px);
}

#kontaktModal textarea {
    min-height: 100px;
    margin-bottom: 90px;
    font-size: calc(0.9rem + 2px);
}

#kontaktModal .btn-close {
    color: white;
    opacity: 0.8;
}

#kontaktModal .btn-close:hover {
    opacity: 1;
}

.table-sm.table-hover thead th {
    background-color: #12253C;
    color: #FFFFFF;
    font-weight: 500;
    padding: 6px 8px;
    border-bottom: 2px solid var(--akzent);
}

.info-icon {
    cursor: help;
    margin-right: 8px;
    display: inline-block;
}

.info-icon i {
    font-size: 1rem;
}

/* Dynamische Textareas */
.dynamic-textarea {
    resize: vertical;
    min-height: 150px;
    height: 200px; /* Standardhöhe, wird durch JS überschrieben */
    max-height: none;
    overflow-y: auto;
    transition: height 0.3s ease;
}

/* Seiten-Titel */
h1 {
    font-weight: 700;
    color: var(--akzent-hell);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2), 0 0 5px rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--akzent-hell), transparent);
    border-radius: 3px;
}

/* Abstände für Container und Formularbereiche */
.form-group, .filter-group, .row.mb-3 {
    margin-bottom: 10px !important;
    padding: 0 10px;
}

/* Spezifisch für Einstellungen */
.tab-pane .row.mb-3 {
    margin-bottom: 6px !important;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: auto;
}

.tab-pane {
    padding: 15px;
}

.filter-container {
    padding: 15px;
    margin-bottom: 20px;
}

/* Abstand für Select-Elemente */
select.form-control {
    padding-right: 30px; /* Mehr Platz für den Dropdown-Pfeil */
    padding-top: 3px; /* 3px weniger als Standard (6px) – programmweit für alle Selects */
    /* Bootstrap entfernt bei .form-control den nativen Pfeil (appearance: none).
       Da DiVe Selects mit .form-control auszeichnet, eigenen Pfeil ergänzen. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2312253C'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 22px;
}

/* Tabs Styling */
.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link {
    color: #FFFFFF;
    background-color: var(--akzent);
    border: 2px solid #132C4D;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    background-color: #2d605e;
    color: #FFFFFF;
}

.nav-tabs .nav-link.active {
    background-color: #12253C;
    color: #FFFFFF;
    border: 2px solid #132C4D;
    border-bottom: none;
}

.tab-content {
    border-top-left-radius: 0;
}

#einstellungenTabContent {
    border: 2px solid #132C4D;
    border-top-left-radius: 0;
    border-top-right-radius: 8px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .header .logo img {
        max-height: 40px;
    }
    
    .dashboard-card {
        margin-bottom: 20px;
    }
}

/* Benutzerdefinierter Confirm-Dialog */
.dico-confirm-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

/*
 * RKSV-Einrichtung: gesamter Dialog-Inhalt wie .content-card (#94C9BF), ohne Trennlinien
 */
.dico-confirm-dialog.rksv-dico-dialog {
    background-color: #94C9BF;
    border: none;
}

.rksv-dico-dialog .dico-confirm-header {
    border-bottom: none;
}

.rksv-dico-dialog .dico-confirm-body,
.rksv-dico-dialog .dico-confirm-footer {
    background-color: #94C9BF;
    border: none;
}

.rksv-dico-dialog .dico-confirm-footer {
    margin: 0 -20px -20px -20px;
    padding: 15px 20px;
    border-radius: 0 0 6px 6px;
}

.rksv-dico-dialog .dico-confirm-footer .btn-primary {
    background-color: #12253C;
    border-color: #12253C;
    color: #fff;
}

.rksv-dico-dialog .dico-confirm-footer .btn-primary:hover {
    background-color: #1e3a5c;
    border-color: #1e3a5c;
    color: #A0D3CA;
}

.dico-confirm-dialog {
    background-color: #E2E3D8;
    border: 2px solid #132C4D;
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    color: #132A4A;
    padding: 20px;
    max-width: 450px;
    width: 100%;
    animation: dico-confirm-appear 0.3s ease-out;
}

@keyframes dico-confirm-appear {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dico-confirm-header {
    background-color: #12253C;
    color: #FFFFFF;
    margin: -20px -20px 15px -20px;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
}

.dico-confirm-header i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.dico-confirm-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.dico-confirm-body {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.dico-confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.dico-confirm-footer .btn {
    margin: 0;
}

/* Header mit besserem Kontrast und Glanzeffekt */
.header {
    background-color: #12253C;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(255, 255, 255, 0.1) !important;
    border-bottom: 2px solid rgba(var(--akzent-hell-rgb), 0.7) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1030 !important;
    padding: 10px 0;
    height: 80px; /* Feste Höhe für den Header */
}

/* Entfernung des grünen Bereichs über dem Header */
body {
    margin-top: 0 !important;
    padding-top: 80px !important; /* Anpassung für Header-Höhe + 10px mehr Abstand */
}

/* Mehr Abstand für Seitentitel */
.container h1:first-of-type,
.container .d-flex:first-of-type h1 {
    margin-top: 15px !important;
    margin-bottom: 20px !important;
    padding-top: 5px !important;
}

/* Glanzeffekt am unteren Rand des Headers */
.header:after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(to right, rgba(255,255,255,0.1), rgba(255,255,255,0.5), rgba(255,255,255,0.1)) !important;
}

/* Logo-Container mit verbessertem Styling */
.header .logo-container {
    display: inline-block;
    border-radius: 8px;
    padding: 5px;
    transition: all 0.3s ease !important;
}

.header .logo-image {
    max-height: 50px;
    display: block;
}

/* Full HD Header Layout */
.container-fluid {
    padding-left: 30px;
    padding-right: 30px;
}

/* Logo-Bereich ganz links */
.header .logo {
    padding-right: 20px;
}

/* Navigations-Container */
.navigation-container {
    padding-left: 0;
    padding-right: 0;
}

/* Benutzer-Container ganz rechts */
.benutzer-container {
    padding-left: 20px;
}

/* Verbesserte Hauptnavigation */
.hauptnavigation {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.header .nav-link {
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    position: relative;
    font-size: 1.1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: transparent;
}

.header .nav-link:hover {
    color: #A0D3CA;
    background-color: transparent;
}

.header .nav-link.active {
    background-color: #A0D3CA !important;
    color: #12253C !important;
    font-weight: 500;
}

/* Dropdown-Menü-Styling */
.header .dropdown-menu {
    background-color: #12253C;
    border: 1px solid var(--akzent);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    padding: 8px;
    margin-top: 10px;
    border-radius: 8px;
}

.header .dropdown-item {
    color: #FFFFFF;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.header .dropdown-item:hover {
    background-color: transparent;
    color: #A0D3CA;
}

/* Button-Farbton wie Haupt-Header (.header background #12253C, Rand wie Header-Unterkante) */
.btn.btn-headerfarbe,
a.btn.btn-headerfarbe {
    background-color: #12253C;
    color: #FFFFFF !important;
    border: 1px solid rgba(var(--akzent-hell-rgb), 0.55);
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn.btn-headerfarbe:hover,
a.btn.btn-headerfarbe:hover {
    background-color: #A0D3CA;
    color: #12253C !important;
    border-color: #A0D3CA;
}

.btn.btn-headerfarbe:focus,
a.btn.btn-headerfarbe:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(18, 37, 60, 0.35);
}

.header .dropdown-item.active {
    background-color: #A0D3CA;
    color: #12253C;
    font-weight: 500;
}

/* Pfeil für Menüpunkte mit Unterpunkten */
.nav-link .fa-chevron-right,
.dropdown-item .fa-chevron-right {
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.nav-link:hover .fa-chevron-right,
.dropdown-item:hover .fa-chevron-right {
    transform: translateX(2px);
    opacity: 1;
}

/* Dropdown-Submenu (für Designer in Konfiguration) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -8px;
    margin-left: 0;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Submenu-Trigger als Flex-Zeile: Pfeil bleibt garantiert in derselben
   Zeile rechts neben dem Text (z.B. "Mitarbeiter-Verwaltung") */
.dropdown-submenu > a.dropdown-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding-right: 12px;
}

.dropdown-submenu > a.dropdown-item::after {
    float: none;
    margin-top: 0;
    margin-left: auto;
    padding-left: 14px;
}

/* Pfeil für Submenu-Items (rechts positioniert) */
.dropdown-submenu > a::after {
    content: "\f054"; /* Font Awesome chevron-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    float: right;
    margin-left: 10px;
    opacity: 0.7;
    font-size: 0.75em;
    transition: all 0.3s ease;
}

.dropdown-submenu > a:hover::after {
    opacity: 1;
    transform: translateX(2px);
}

/* Benutzer-Dropdown */
.benutzer-dropdown .user-info {
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: transparent;
    padding: 8px 0;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.benutzer-dropdown .user-info:hover {
    background-color: transparent;
}

.benutzer-dropdown .user-info:hover .benutzer-name,
.benutzer-dropdown .user-info:hover i {
    color: #A0D3CA;
}

.benutzer-dropdown .user-info i {
    font-size: 1.2rem;
    margin-right: 8px;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.benutzer-dropdown .benutzer-name {
    font-weight: 500;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

/* User Avatar (für Icons wie Zeiterfassung und Aufgaben) */
.user-avatar {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #12253C;
    transition: background-color 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.user-avatar i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
    font-size: 20px;
    color: #12253C;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* User Avatar mit Namen (z.B. Benutzer-Dropdown) */
.benutzer-dropdown .user-avatar {
    margin-right: 10px;
}

/* User-Info Container für Icon-Only (ohne Padding) */
.aufgaben-icon .user-info,
.zeiterfassung-icon .user-info {
    padding: 0;
    margin: 0;
}

/* Sicherstellen, dass Icons immer sichtbar sind */
.aufgaben-icon .user-avatar i,
.zeiterfassung-icon .user-avatar i {
    color: #12253C !important;
    font-size: 20px !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Gleichmäßige Abstände zwischen den Icons */
.aufgaben-icon,
.zeiterfassung-icon {
    margin-right: 20px;
}

.user-info:hover .user-avatar {
    transform: none;
    background-color: #A0D3CA;
    color: #12253C;
}

/* Profilbild im Header */
.profilbild-header {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Mobile Navigation */
.navbar-toggler {
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 1.2rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Responsive Anpassungen für den Header */
@media (max-width: 1600px) {
    .hauptnavigation {
        gap: 10px;
    }
}

@media (max-width: 1400px) {
    .header .nav-link {
        font-size: 1rem;
        padding: 0.4rem 0.7rem;
    }
}

@media (max-width: 1200px) {
    .hauptnavigation {
        gap: 5px;
    }
    
    .header .nav-link {
        padding: 0.4rem 0.5rem;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #12253C;
        padding: 15px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);        z-index: 1000;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }
    
    .hauptnavigation {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .header .nav-link {
        width: 100%;
        text-align: left;
    }
    
    .header .dropdown-menu {
        width: 100%;
        margin-top: 5px;
        position: static !important;
        transform: none !important;
    }
    
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 576px) {
    .benutzer-name {
        display: none;
    }
    
    .benutzer-dropdown .user-info i {
        margin-right: 0;
    }
    
    .header .logo-image {
        max-height: 40px;
    }
}

/* Aktionen-Spalte rechts angeschlagen */
.table th:last-child,
.table td:last-child {
    text-align: right !important;
    white-space: nowrap !important;
    min-width: 120px !important;
}

/* Buttons in Tabellen */
.table .btn {
    margin: 2px !important;
}

/* Tabellenstile für bessere Lesbarkeit */
.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.table th {
    background-color: #12253C !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    padding: 10px 15px !important;
}

/* Titelzeile der Tabelle (Überschrift) */
.card-header h5 {
    color: #FFFFFF !important;
}

.table td {
    padding: 10px 15px !important;
    vertical-align: middle !important;
}

/*
 * DiVe-Datenlisten: Referenz backoffice/verwaltung_kunden/index.php — dort nur .data-table (ohne Bootstrap-.table).
 * Liegt zusätzlich .table auf derselben Tabelle, würden die Regeln oben die Zellen breiter/höher machen.
 */
.table.data-table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

.table.data-table th {
    padding: 6px 12px !important;
    font-weight: 500 !important;
}

.table.data-table td {
    padding: 0 12px !important;
    vertical-align: middle !important;
}

/* Hover-Effekt für Tabellenzeilen */
.table tbody tr:hover {
    background-color: rgba(19, 42, 74, 0.05) !important;
}

/* SEPA-Lastschrift: Zeile zur Detailansicht klickbar */
.data-table tbody tr.sepa-lauf-zeile {
    cursor: pointer;
}

/* Hervorhebung für Suchergebnisse */
.suchbegriff-hervorhebung {
    background-color: #A0D3CA;
    color: #12253C;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Footer-Styles */
.footer {
    background-color: #12253C;
    color: #FFFFFF;
    min-height: 40px; /* Mindesthöhe statt fester Höhe */
    padding: 8px 0; /* Padding hinzufügen */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    font-size: 0.9rem;
    box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.5), 0 -2px 4px rgba(255, 255, 255, 0.1) !important;
    border-top: 2px solid rgba(var(--akzent-hell-rgb), 0.7) !important;
}

/* Glanzeffekt am oberen Rand des Footers */
.footer:before {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(to right, rgba(var(--akzent-rgb), 1), rgba(var(--akzent-hell-rgb), 1), rgba(var(--akzent-rgb), 1)) !important;
    box-shadow: 0 -5px 15px 2px rgba(var(--akzent-rgb), 0.8) !important;
    z-index: 1001 !important;
}

.footer .container-fluid {
    height: 100%;
    padding-left: 30px;
    padding-right: 30px;
}

.footer .row {
    height: 100%;
    align-items: center; /* Vertikale Zentrierung verbessern */
}

.footer .copyright {
    font-weight: 500;
}

/* Zentrierter Button im Footer */
.footer .col.text-center .btn {
    margin: 0 auto;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: #CBD7CC;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-nav a:hover {
    color: #A0D3CA;
    text-decoration: none;
}

.footer-nav a i {
    margin-right: 5px;
}

/* Hauptcontainer für den Inhalt mit Scrollbar */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding-top: 0; /* Kein Abstand zum Header */
    margin-top: 0; /* Entspricht der Header-Höhe */
    padding-bottom: 20px; /* Abstand zum Footer */
    height: calc(100vh - 120px); /* 80px Header + 40px Footer */
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--akzent) rgba(255, 255, 255, 0.1);
    border-left: 2px solid rgba(var(--akzent-hell-rgb), 0.7) !important;
    border-right: 2px solid rgba(var(--akzent-hell-rgb), 0.7) !important;
    position: relative;
}

/*
 * ─── DiVe: Flex-Kette „Inhalt bis unteren Rand des scrollbaren .main-content“ ───
 *
 * Markup (minimal):
 *   .main-content.dive-seite-hoehe-kette
 *     > .dive-seite-hoehe-inner
 *         > .dive-seitenkopf-block          (optional: position:relative für Buttons absolut rechts)
 *         > .row.dive-seite-hoehe-zeile
 *             > .col *.dive-seite-hoehe-spalte
 *                 > .content-card.dive-content-card-hoehe-fill > .card-header + .card-body
 *
 * WARUM: Eine feste Klassen-Kette; Abstand zur fixierten Seitenfußleiste wie bei .card-hauptliste
 * (margin-bottom: var(--layout-hauptliste-karte-abstand-unten)).
 */
.main-content.dive-seite-hoehe-kette {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.main-content.dive-seite-hoehe-kette > .dive-seite-hoehe-inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.dive-seite-hoehe-inner > .dive-seitenkopf-block {
    flex-shrink: 0;
    position: relative;
}

.dive-seite-hoehe-inner > .row.dive-seite-hoehe-zeile,
.dive-seite-hoehe-inner > form.dive-seite-hoehe-zeile {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
}

.dive-seite-hoehe-spalte {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.dive-seite-hoehe-spalte > .content-card.dive-content-card-hoehe-fill {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* WARUM: Wie .content-card.card-hauptliste — Karte endet sichtbar vor der fixierten Seitenfußleiste */
    margin-bottom: var(--layout-hauptliste-karte-abstand-unten, 80px);
}

.content-card.dive-content-card-hoehe-fill > .card-header {
    flex-shrink: 0;
}

.content-card.dive-content-card-hoehe-fill > .card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.content-card.dive-content-card-hoehe-fill > .card-footer {
    flex-shrink: 0;
}

/*
 * verwaltung_rechnungen/bearbeiten.php — zusätzlicher Abstand unten bei „Rechnungsdetails“.
 * WARUM: padding-bottom auf der äußeren .content-card ist kaum sichtbar; der .card-body mit flex:1 füllt die volle Höhe.
 *        Zuschlag auf dem Card-Body (einheitlich 40px unten = Standard 20px + 20px Extra).
 */
.main-content.dive-seite-hoehe-kette .rechnung-bearbeiten-details-spalte > .content-card.dive-content-card-hoehe-fill > .card-body {
    padding-bottom: 40px !important;
}

/*
 * ─── info/version.php – Changelog (`table.version-changelog-tabelle`)
 * WARUM: Karte ist oft nur halbbreit; feste px auf `<th>` drücken die Beschreibung — Prozent + `table-layout:fixed`.
 */
.content-card .table-responsive .version-changelog-tabelle {
    table-layout: fixed;
    width: 100%;
}

.content-card .table-responsive .version-changelog-tabelle col.version-changelog-col-version {
    width: 12%;
}

.content-card .table-responsive .version-changelog-tabelle col.version-changelog-col-datum {
    width: 21%;
}

.content-card .table-responsive .version-changelog-tabelle col.version-changelog-col-beschreibung {
    width: 41%;
}

.content-card .table-responsive .version-changelog-tabelle col.version-changelog-col-datei {
    width: 26%;
}

.content-card .table-responsive .version-changelog-tabelle thead th,
.content-card .table-responsive .version-changelog-tabelle tbody td {
    overflow-wrap: anywhere;
    word-wrap: break-word;
    vertical-align: top !important;
}

.content-card .table-responsive .version-changelog-tabelle td:nth-child(1) strong {
    white-space: nowrap;
}

.content-card .table-responsive .version-changelog-tabelle td:nth-child(2),
.content-card .table-responsive .version-changelog-tabelle th:nth-child(2) {
    white-space: nowrap;
}

/* „Backup-Datei“: global `.table … :last-child` ist rechtsbündig (Aktionsspalte) — hier links + mehr Luft; breitere Spalte + eine Zeile */
.content-card .table-responsive .version-changelog-tabelle thead th:last-child,
.content-card .table-responsive .version-changelog-tabelle tbody td:last-child {
    text-align: left !important;
    white-space: nowrap !important;
    min-width: 0 !important;
    padding-right: 1.5rem !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*
 * ─── Hauptliste (Standard-Verwaltungsseiten: eine Haupt-content-card Liste) ───
 * Kombination: .main-content.hauptliste-flex-shell > .hauptliste-inner >
 *              .content-card.card-hauptliste [.hauptliste-tabellenbereich]
 * Höhe wird per Flex gesteuert; dynamic-card.js wird auf diesen Seiten nicht ausgeführt.
 * Abstand Liste → globale Footer-Zeile: Variable --layout-hauptliste-karte-abstand-unten (oben bei :root).
 */

.main-content.hauptliste-flex-shell {
    padding-bottom: 4px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.main-content.hauptliste-flex-shell > .hauptliste-inner {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.hauptliste-inner > h1,
.hauptliste-inner > .alert {
    flex-shrink: 0;
}

/* X-Bericht Parameter (x_bericht_neu.php): Formular-Karte füllt die Höhe unter der Kopfzeile */
.hauptliste-inner > .row.xbericht-neu-hauptzeile {
    flex: 1 1 auto;
    min-height: 0;
}

.hauptliste-inner > .row.xbericht-neu-hauptzeile > .col-md-6 {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.hauptliste-inner .content-card.content-card-artikeldaten.xbericht-neu-karte-fill {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.hauptliste-inner .content-card.content-card-artikeldaten.xbericht-neu-karte-fill > .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.hauptliste-inner .content-card.content-card-artikeldaten.xbericht-neu-karte-fill #formXBerichtParameter {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.hauptliste-inner .content-card.content-card-artikeldaten.xbericht-neu-karte-fill .content-card-artikeldaten-feldzone {
    flex: 1 1 auto;
    min-height: 0;
}

/* DSFinV-K Export — gleiches Layout wie X-Bericht Parameter (x_bericht_neu.php) */
.hauptliste-inner > .row.dsfinvk-export-hauptzeile {
    flex: 1 1 auto;
    min-height: 0;
}

.hauptliste-inner > .row.dsfinvk-export-hauptzeile > .col-md-6 {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.hauptliste-inner .content-card.content-card-artikeldaten.dsfinvk-export-karte-fill {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.hauptliste-inner .content-card.content-card-artikeldaten.dsfinvk-export-karte-fill > .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.hauptliste-inner .content-card.content-card-artikeldaten.dsfinvk-export-karte-fill #exportForm {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.hauptliste-inner .content-card.content-card-artikeldaten.dsfinvk-export-karte-fill .content-card-artikeldaten-feldzone {
    flex: 1 1 auto;
    min-height: 0;
}

/* Feedback-Bereich (Fortschritt/Ergebnis) unter den Subkacheln */
.content-card.content-card-artikeldaten.dsfinvk-export-karte-fill .dsfinvk-export-feedback {
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 12px;
    margin-bottom: 58px;
}

/* RKSV Buchhaltung — zwei Karten nebeneinander bis zur Seitenfußleiste */
.hauptliste-inner > .row.rksv-belege-hauptzeile {
    flex: 1 1 auto;
    min-height: 0;
}

.hauptliste-inner > .row.rksv-belege-hauptzeile > .col-md-6 {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.hauptliste-inner .content-card.rksv-belege-karte-fill {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-bottom: var(--layout-hauptliste-karte-abstand-unten, 80px);
}

.hauptliste-inner .content-card.rksv-belege-karte-fill > .card-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.hauptliste-inner .content-card.rksv-belege-karte-fill > .card-body > .table-responsive {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
}

.hauptliste-inner .content-card.rksv-dep7-karte .rksv-dep7-aktionen {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 12px;
}

.content-card.card-hauptliste {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: var(--layout-hauptliste-karte-abstand-unten, 80px);
    display: flex;
    flex-direction: column;
}

.content-card.card-hauptliste > .card-header {
    flex-shrink: 0;
}

.content-card.card-hauptliste > .card-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-card.card-hauptliste > .card-footer {
    flex-shrink: 0;
}

/* AJAX-/listen-Zone (z. B. id="werbeaktionenListe"): Tabelle scrollt im Card-Body */
.hauptliste-tabellenbereich {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.hauptliste-tabellenbereich > .table-responsive {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
}

.hauptliste-tabellenbereich > .table-responsive > .data-table {
    margin-bottom: 0;
}

.hauptliste-tabellenbereich > .text-center {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

/* Statische Liste: .table-responsive direkt im Card-Body */
.content-card.card-hauptliste > .card-body > .table-responsive {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
}

.content-card.card-hauptliste > .card-body > .table-responsive > .data-table {
    margin-bottom: 0;
}

/* verwaltung_gutscheine/index.php — feste Seitengröße (22/Seite), daher kein vertikaler Scrollbalken an der Tabelle */
.content-card.card-hauptliste > .card-body > .table-responsive.gts-tabelle-responsive {
    overflow-y: hidden;
}

/** Rechnungsliste: gleiche Höhenfüllung wie andere Hauptlisten; kompakte Zeilen (reduziertes Zellen-Padding unten) */
.main-content.hauptliste-flex-shell.seite-rechnungen-scroll-haupt {
    overflow-x: hidden;
    overflow-y: auto;
}

.content-card.card-hauptliste.rechnungsliste-layout-kompakt {
    flex: 1 1 auto;
    min-height: 0;
}

.content-card.card-hauptliste.rechnungsliste-layout-kompakt > .card-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-card.card-hauptliste.rechnungsliste-layout-kompakt > .card-body > .table-responsive {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
}

.content-card.card-hauptliste.rechnungsliste-layout-kompakt > .card-body > .table-responsive > .data-table thead th,
.content-card.card-hauptliste.rechnungsliste-layout-kompakt > .card-body > .table-responsive > .data-table tbody td {
    padding-top: 4px;
    padding-bottom: 4px;
    vertical-align: middle;
}

/* Grüne Linien an den Seiten des Contentbereichs */
.main-content::before,
.main-content::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 3px !important;
    background: linear-gradient(to bottom, rgba(var(--akzent-rgb), 1), rgba(var(--akzent-hell-rgb), 1), rgba(var(--akzent-rgb), 1)) !important;
    z-index: 10 !important;
}

.main-content::before {
    left: -2px !important;
    box-shadow: 6px 0 12px rgba(0, 0, 0, 0.5), 2px 0 4px rgba(255, 255, 255, 0.1) !important;
}

.main-content::after {
    right: -2px !important;
    box-shadow: -6px 0 12px rgba(0, 0, 0, 0.5), -2px 0 4px rgba(255, 255, 255, 0.1) !important;
}

/* Scrollbar-Styling */
.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb {
    background-color: var(--akzent);
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background-color: #12253C;
}

/* Seitentitel nach oben verschieben */
.main-content h1 {
    margin-top: 10px; /* 60 Pixel nach oben verschieben */
}

/* 3D-Modell-Vorschau Hintergrund */
#model-container {
    background-color: #A0D3CA !important;
}

/* Portal-Vorschau Rahmen */
.portal-preview {
    border: 2px solid #12253C !important;
}

/* ========================================
   SLOT MACHINE STYLES
   ======================================== */

/* Slot Machine Modal Overlay für Integration */
.slot-machine-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
}

.slot-machine-overlay.active {
    display: block;
}

/* Slot Machine Container für mobile Ansicht */
.slot-machine-mobile {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Gewinn-Animation für Freiwäsche */
@keyframes freiwasche-gewinn {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.freiwasche-gewinn {
    animation: freiwasche-gewinn 0.5s ease-in-out;
}

/* Mobile Touch-Optimierung */
.slot-machine-touch {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Slot Machine Button Integration */
.slot-machine-trigger {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2em;
    box-shadow: 0 5px 20px rgba(238, 90, 36, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.slot-machine-trigger:hover {
    transform: scale(1.1);
}

.slot-machine-trigger:active {
    transform: scale(0.95);
}

/* Dashboard Tagesstatistik Navigation */
.tagesstatistik-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
}

.tagesstatistik-navigation .datum-pfeil {
    text-decoration: none;
    color: #333;
    font-size: 20px;
    padding: 0 15px;
    transition: color 0.3s ease;
}

.tagesstatistik-navigation .datum-pfeil:hover {
    color: var(--akzent);
}

.tagesstatistik-navigation .datum-pfeil.inaktiv {
    color: #ccc;
    cursor: not-allowed;
}

.tagesstatistik-navigation .datum-text {
    flex: 0 0 auto;
    text-align: center;
    padding: 0 20px;
    min-width: 300px;
}

/* Kennzeichen-Anzeige */
.kennzeichen-container {
    position: relative;
    margin-top: 10px;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.kennzeichen-platte {
    width: 180px;
    height: auto;
    max-width: 90%;
}

.kennzeichen-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'DIN 1451', 'Arial Narrow', Arial, sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Responsive Anpassung für kleinere Bildschirme */
@media (max-width: 768px) {
    .kennzeichen-platte {
        width: 150px;
    }
    
    .kennzeichen-text {
        font-size: 16px;
    }
}

.kennzeichen-anzeige {
    background-image: url('/terminal/bilder/kennzeichen.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    max-width: 300px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.kennzeichen-text {
    font-family: 'DIN 1451', 'Arial Narrow', Arial, sans-serif;
    font-weight: bold;
    color: #000;
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
    margin-top: -5px;
}

/* Blink-Animation für Auffahrschutz */
@keyframes blink-animation {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Blink-Animation für Waschbahn-Linie */
@keyframes blink-line {
    0% { 
        background: linear-gradient(90deg, transparent 20px, #dc3545 20px, #dc3545 calc(100% - 20px), transparent calc(100% - 20px));
        opacity: 1; 
    }
    50% { 
        background: linear-gradient(90deg, transparent 20px, #dc3545 20px, #dc3545 calc(100% - 20px), transparent calc(100% - 20px));
        opacity: 0.3; 
    }
    100% { 
        background: linear-gradient(90deg, transparent 20px, #dc3545 20px, #dc3545 calc(100% - 20px), transparent calc(100% - 20px));
        opacity: 1; 
    }
}

/* Wettervorhersage Styles */
.wetter-detail {
    text-align: center;
    padding: 1rem;
}

.wetter-detail h5 {
    color: #12253C;
    font-weight: 600;
    margin-bottom: 1rem;
}

.wetter-detail .wetter-icon {
    color: #17a2b8;
    margin-bottom: 0.5rem;
}

.wetter-detail .temperatur {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.wetter-detail .wetter-info {
    color: #666;
}

/* Wetter-Kachel Spalten gleichmäßig verteilen */
.content-card:has(.fa-cloud-sun) .card-body {
    padding: 0.5rem 0 !important;
}

.content-card:has(.fa-cloud-sun) .row.g-0 {
    margin: 0 !important;
    width: 100%;
}

.content-card:has(.fa-cloud-sun) .row.g-0 > .col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0;
}

.content-card:has(.fa-cloud-sun) .row.g-0 > .col-4:first-child {
    padding-left: 0;
}

.content-card:has(.fa-cloud-sun) .row.g-0 > .col-4:last-child {
    padding-right: 0;
}

.content-card .card-body .row.g-0 > .col-4.border-start {
    border-left: 1px solid #dee2e6 !important;
}

.content-card .card-body .row.g-0 > .col-4.border-end {
    border-right: 1px solid #dee2e6 !important;
}

/* Dashboard Saugplatz-Visualisierung */
.saugplatz-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
    margin: 10px 20px !important;
    padding: 0 !important;
}

.saugplatz-box {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.saugplatz-box:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Dashboard Waschbahn-Visualisierung */
.waschbahn-container {
    position: relative;
    height: 40px;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Spezielle Regel für Waschbahn-Kachel - überschreibt Bootstrap Padding */
.waschbahn-kachel .card-body {
    padding: 0 !important;
}

.waschbahn-kachel .waschbahn-container {
    margin: 0 !important;
    width: 100% !important;
    position: relative !important;
}

/* Entferne alle zusätzlichen Margins von den Karten */
.dashboard-card .card-body {
    padding: 15px !important;
}

.dashboard-card .text-center {
    margin: 0 !important;
    padding: 0 !important;
}

/* Bootstrap-Überschreibungen für Dashboard */
.dashboard-card .mb-2,
.dashboard-card .mb-3,
.dashboard-card .mt-2,
.dashboard-card .mt-3 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Spezifisch für Saugplatz und Waschbahn */
.dashboard-card .saugplatz-grid.mb-2 {
    margin-bottom: 10px !important;
}

.dashboard-card .waschbahn-container.mt-3.mb-3 {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

/* ======================================
   CHECKBOX GLOBAL STYLES
   ====================================== */

/* Checkbox Styles */
.form-check-input[type="checkbox"] {
    width: 32px !important;
    height: 32px !important;
    margin-right: 0 !important;
    cursor: pointer;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    background-color: #fff !important;
    vertical-align: middle !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.form-check-input[type="checkbox"]:checked {
    background-color: #12253C !important;
    border-color: #12253C !important;
}

.form-check-input[type="checkbox"]:focus {
    border: 2px solid #12253C !important;
    outline: none !important;
    box-shadow: 0 0 5px rgba(18, 37, 60, 0.6) !important;
}

/* Steuerung / SPS: Radiobuttons in Markenblau (analog zu den Checkboxen) - bewusst auf die Kachel gescopt */
#steuerungSpsKachel .form-check-input[type="radio"]:checked {
    background-color: #12253C !important;
    border-color: #12253C !important;
}

#steuerungSpsKachel .form-check-input[type="radio"]:focus {
    border-color: #12253C !important;
    outline: none !important;
    box-shadow: 0 0 5px rgba(18, 37, 60, 0.6) !important;
}

.form-check {
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 8px !important;
}

.form-check-label {
    cursor: pointer !important;
    user-select: none !important;
    line-height: 32px !important;
    padding-left: 10px !important;
    margin-left: 0 !important;
}

/* Extra starke Regel für Bootstrap-Override */
.form-check .form-check-label {
    padding-left: 10px !important;
    margin-left: 0 !important;
}

/* Noch stärkere Regel */
input[type="checkbox"] + label,
input[type="checkbox"] + .form-check-label {
    padding-left: 10px !important;
    margin-left: 0 !important;
}

/* Dropdown Submenu Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -1px;
    border-radius: 0 6px 6px 6px;
    background-color: #12253C;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
    min-width: 200px;
    display: none;
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

.dropdown-submenu > .dropdown-item::after {
    content: "▶";
    float: right;
    margin-top: 3px;
    font-size: 0.8rem;
    color: #A0D3CA;
}

.dropdown-submenu:hover > .dropdown-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #A0D3CA;
}

/* Gleiche Einrückung wie normale Dropdown-Einträge (.header .dropdown-item) */
.dropdown-submenu .dropdown-item {
    color: #FFFFFF;
    padding: 8px 12px;
}

.dropdown-submenu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #A0D3CA;
}

.dropdown-submenu .dropdown-item.active {
    background-color: #A0D3CA;
    color: #12253C;
    font-weight: 500;
}

/* =====================================================
   ROLLEN- UND BERECHTIGUNGSVERWALTUNG STYLES
   ===================================================== */

/* Rollen-Verwaltung Badges und Icons */
.rolle-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4em 0.8em;
    font-size: 0.95em;
    border-radius: 4px;
    margin: 0.2em;
}

/* Berechtigungen - Toggle Icons und Text */
.toggle-icon {
    font-size: 20px;
    margin-right: 8px;
    transition: all 0.2s ease;
}

.toggle-icon.aktiv {
    color: #28a745;
}

.toggle-icon.inaktiv {
    color: #dc3545;
}

.toggle-text {
    font-weight: 500;
    font-size: 14px;
    user-select: none;
}

.toggle-text.aktiv {
    color: #28a745;
}

.toggle-text.inaktiv {
    color: #dc3545;
}

/* Berechtigungen - Zeilen Layout */
.berechtigung-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    background-color: #fff;
    transition: background-color 0.15s ease;
}

.berechtigung-row:hover {
    background-color: #f8f9fa;
}

.berechtigung-name {
    flex: 1;
    font-size: 15px;
}

.berechtigung-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.recht-select {
    width: 130px !important;
    margin: 0 !important;
}

/* Subkacheln - eingerückt unter Menüpunkten */
.subkachel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px 10px 45px;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    transition: background-color 0.15s ease;
}

.subkachel-row:hover {
    background-color: #e9ecef;
}

.subkachel-row .berechtigung-name {
    font-size: 14px;
    color: #495057;
}

/* Subkacheln Toggle (Chevron) */
.subkachel-toggle {
    cursor: pointer;
    margin-right: 8px;
    transition: transform 0.2s ease;
    color: #6c757d;
    font-size: 14px;
    width: 22px;
    display: inline-block;
    text-align: center;
}

.subkachel-toggle.rotated {
    transform: rotate(90deg);
}

/* Berechtigungs-Verwaltung — Bearbeiten-Layout (dive-seite-hoehe-kette) */
.berecht-rollen-tabelle tbody tr.berecht-rolle-aktiv {
    background-color: rgba(var(--akzent-rgb), 0.12);
}

.berecht-rollen-tabelle tbody tr {
    cursor: pointer;
}

/* Akkordeon-Kopf rechts: Zähler-Badge im DiVe-Look (wie halbautomatischer_lauf) */
.content-card .card-header .badge.berecht-gruppe-zaehler-badge {
    background-color: #A0D3CA;
    color: #12253C;
    font-weight: 600;
    font-size: 0.8em;
}

/* Gruppe deaktivieren im dunklen Card-Header */
.content-card .card-header .action-button.berecht-header-btn-deaktiv {
    background-color: #E74C3C;
    color: #FFFFFF;
}

.content-card .card-header .action-button.berecht-header-btn-deaktiv:hover {
    background-color: #c0392b;
    color: #FFFFFF;
    transform: scale(1.05);
}

/* Filter-Umschalter: inaktiv = Teal, aktiv = Dunkelblau (DiVe-Palette) */
.berecht-filter-gruppe .btn-check:checked + .btn-secondary {
    background-color: #12253C;
    border-color: #12253C;
    color: #fff;
}

.berecht-filter-gruppe .btn-check:checked + .btn-secondary:hover {
    background-color: #1e3a5c;
    border-color: #1e3a5c;
    color: #A0D3CA;
}

.berecht-akkordeon .content-card {
    margin-bottom: 8px;
}

.berecht-akkordeon .card-header.berecht-gruppe-kopf {
    cursor: pointer;
}

.berechtigung-row.berechtigung-row--kompakt {
    padding: 8px 12px;
}

.berechtigung-row.berechtigung-row--unterpunkt {
    padding-left: 28px;
    background-color: #fafbfc;
}

.berechtigung-row.berechtigung-row--subkachel {
    padding-left: 42px;
    background-color: #f8f9fa;
}

.berechtigung-row.berechtigung-row--subkachel-tief {
    padding-left: 56px;
}

.berechtigung-row.berechtigung-row--ausgeblendet,
.subkachel-row.berechtigung-row--ausgeblendet {
    display: none;
}

.berechtigung-controls--kompakt {
    gap: 10px;
}

.berecht-toggle-btn {
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    min-width: 32px;
    justify-content: center;
}

.berecht-toggle-btn .toggle-icon {
    margin-right: 0;
}

.berecht-recht-select {
    width: 130px;
    min-width: 130px;
}

.berecht-modus-select {
    width: 130px;
    min-width: 130px;
}

.berecht-stat-badge {
    font-size: 0.9em;
}

.berecht-leer-hinweis {
    padding: 2rem 1rem;
    color: #6c757d;
    text-align: center;
}

.berecht-gruppe-wrap--leer {
    display: none;
}

#berechtFehlerModal.modal {
    z-index: 1055;
}

/* Statistik Kacheln in Rollen-Verwaltung */
.statistik-kachel {
    text-align: center;
    padding: 15px;
}

.statistik-kachel .statistik-zahl {
    font-size: 2.5em;
    font-weight: bold;
    color: #12253C;
    margin: 10px 0;
}

.statistik-kachel .statistik-label {
    font-size: 0.95em;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Rolle erstellen/bearbeiten - Preview Badge */
#previewBadge {
    transition: all 0.3s ease;
}

/* Rollendetail - Tabellen */
.rolle-detail-table {
    font-size: 14px;
}

.rolle-detail-table th {
    background-color: #12253C;
    color: #FFFFFF;
    font-weight: 500;
    padding: 10px;
}

.rolle-detail-table td {
    padding: 8px 10px;
}

/* DSFinV-K Export — verwaltung_buchhaltung-export/index.php */
.dsfinvk-export-progress-area {
    display: none;
    margin-top: 20px;
}

.dsfinvk-export-result {
    display: none;
    margin-top: 20px;
}

.dsfinvk-export-result--success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.dsfinvk-export-result--error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.dsfinvk-export-progress-track {
    height: 30px;
}

.dsfinvk-export-progress-bar {
    width: 0%;
}

/* ─── Profil (`verwaltung_user_profile/index.php`): Layout + Felder wie Kunden bearbeiten ─── */

.main-content.profil-seite-main {
    display: flex;
    flex-direction: column;
    /* WARUM: Abstand zur fixierten Footer-Leiste wie übriges Backoffice (~20px in .main-content) */
    padding-bottom: 20px;
}

.main-content.profil-seite-main > .profil-seite-inner-wrap {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.profil-seite-inner-wrap > .profil-stammdaten-geraete-zeile.row {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
}

.profil-seite-spalte-links {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.profil-seite-spalte-rechts {
    align-self: flex-start;
}

.profil-stammdaten-karte.profil-stammdaten-karte-fill {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.profil-stammdaten-karte-fill > .profil-stammdaten-karte-body.card-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.profil-stammdaten-karte-fill #profilForm {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Rechte Geräte-Karte: Höhe nur nach Inhalt (keine Mindesthöhe) */
/* WARUM: Exakt 20px Luft zwischen letztem Listen-/Lade-Inhalt und Card-Footer */
.profil-geraete-karte .hauptliste-tabellenbereich {
    padding-bottom: 20px;
}

/* Subkacheln — kompakt, linke Karte wächst per Flex bis zum unteren Rand */
.profil-stammdaten-karte .profil-feld-subkachel {
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 5px 12px;
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profil-stammdaten-karte .profil-feld-subkachel:first-of-type {
    margin-top: 5px;
}

.profil-stammdaten-karte .profil-feld-subkachel-kopf {
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid #12253c;
}

.profil-stammdaten-karte .profil-feld-subkachel-kopf h6 {
    margin: 0;
    color: #12253c;
    font-weight: bold;
    font-size: 0.95rem;
}

.profil-stammdaten-karte > .card-body.profil-stammdaten-karte-body {
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
}

#profilForm .form-group {
    padding: 0 0 0 10px !important;
    margin: 4px 0 !important;
}

/* Formularfelder wie `#kundenForm` in kunde_bearbeiten.php */
#profilForm .form-control,
#profilForm .form-select,
#profilForm input[type="text"],
#profilForm input[type="email"],
#profilForm input[type="tel"],
#profilForm input[type="password"],
#profilForm select {
    height: 32px !important;
    padding: 2px 5px !important;
    font-size: 16px !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    background-color: #fff !important;
    width: 95% !important;
    margin: 0 !important;
}

#profilForm .form-control:focus,
#profilForm .form-select:focus,
#profilForm input[type="text"]:focus,
#profilForm input[type="email"]:focus,
#profilForm input[type="tel"]:focus,
#profilForm input[type="password"]:focus,
#profilForm textarea:focus,
#profilForm select:focus {
    border: 2px solid #12253c !important;
    outline: none !important;
    box-shadow: 0 0 5px rgba(18, 37, 60, 0.6) !important;
}

#profilForm label,
#profilForm .form-label {
    margin-bottom: 2px !important;
    padding-left: 0 !important;
    display: block !important;
    margin-left: 0 !important;
}

#profilForm input[type="range"].form-range {
    height: auto !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

#profilForm .form-check-input {
    height: 32px;
    width: 20px;
    margin-right: 8px;
}

/* WARUM: Zoom-Anzeige unter dem Range bleibt lesbar außerhalb der kompakten Input-Höhe */
#profilForm .zoom-value-display {
    margin-top: 6px;
}

/* ── Offene Posten: Mahnung-Versand-Modal (Standard-DiVe-Design wie performanceModal / testRegelModal) ── */
#modalMahnungVersand .op-mahn-versand-modal-content {
    background-color: #94C9BF;
    border: 2px solid #132C4D;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

#modalMahnungVersand .op-mahn-versand-modal-header {
    background-color: #12253C;
    color: #fff;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid var(--akzent);
}

#modalMahnungVersand .op-mahn-versand-modal-header .modal-title {
    color: #fff;
    font-weight: 600;
}

#modalMahnungVersand .op-mahn-versand-modal-body {
    background-color: #94C9BF;
}

#modalMahnungVersand .op-mahn-versand-modal-body .form-text {
    color: #12253C;
    opacity: 0.75;
}

#modalMahnungVersand .op-mahn-versand-stufe-txt {
    color: #12253C;
}

#modalMahnungVersand .op-mahn-versand-modal-footer {
    background-color: #94C9BF;
    border-top: 2px solid #132C4D;
}

/* ======================================
   DiVe: Globale Komponenten-Klassen
   ====================================== */

/* ─── Subkachel (grauer Inhaltsbereich in Bearbeitungsseiten) ─── */
.op-subkachel {
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 15px;
    margin: 8px 15px;
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.op-subkachel-titel {
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #12253C;
}

.op-subkachel-titel h6 {
    margin: 0;
    color: #12253C;
    font-weight: bold;
}

/* Mahntext-Editor: Textarea auf ca. 4 Zeilen Hoehe.
   WARUM: Die globale Regel `textarea { height: 50px !important; }` (style.css)
   laesst sich nur mit !important ueberschreiben. */
.mahntext-textarea {
    height: 96px !important;
    min-height: 96px;
    line-height: 1.4;
    resize: vertical;
}

/* Live-Vorschau-Box im Mahntext-Editor */
.op-vorschau-box {
    border: 1px dashed #d0d7de;
    border-radius: 6px;
    padding: 10px 12px;
    background-color: #ffffff;
    color: #12253C;
    min-height: 48px;
    white-space: pre-wrap;
    font-size: 0.9rem;
}

/* ─── Scrollbarer Akkordeon-Container (rechte Spalte Bearbeiten-Seite) ─── */
/* Höhe (max-height) wird per JavaScript gesetzt (passeAkkordeonHoeheAn()) */
.akkordeon-scroll-container {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: #12253C #f1f1f1;
}

.akkordeon-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.akkordeon-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.akkordeon-scroll-container::-webkit-scrollbar-thumb {
    background: #12253C;
    border-radius: 4px;
}

.akkordeon-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #0d1a2a;
}

.rksv-rk-tabelle-scroll {
    max-height: 40vh;
    overflow-y: auto !important;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--akzent) #f1f1f1;
}

.rksv-rk-tabelle-scroll::-webkit-scrollbar {
    width: 6px;
}

.rksv-rk-tabelle-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.rksv-rk-tabelle-scroll::-webkit-scrollbar-thumb {
    background: var(--akzent);
    border-radius: 4px;
}

.rksv-rk-tabelle-scroll::-webkit-scrollbar-thumb:hover {
    background: #12253C;
}



/* Akkordeon-Header als Collapse-Toggle (gesamter Card-Header klickbar) */
.dive-akkordeon-header {
    cursor: pointer;
}

/* ─── Akkordeon-Card-Header Toggle ─── */
.card-header-toggle {
    cursor: pointer;
    display: flex;
    flex-grow: 1;
}

/* ─── content-card ohne unteren Abstand (für Stretch-Layouts mit flex-fill) ─── */
.content-card--kein-abstand {
    margin-bottom: 0 !important;
}

/* ─── input-group: align-items center damit input-group-text nicht gestreckt wird ─── */
.input-group:not(.search-input-group) {
    align-items: center;
}

/* ─── input-group-text: Höhe und Padding passend zum DiVe-Inputfeld (height: 32px, margin: 4px 0) ─── */
.input-group:not(.search-input-group) .input-group-text {
    height: 32px;
    padding: 0 10px;
    margin: 4px 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* ─── card-body ohne Padding (für Akkordeon-Inhalte, Tabellen etc.) ─── */
.card-body--flush {
    padding: 0 !important;
}

/* ─── card-body mit Platz für absolut positionierte Buttons unten ─── */
.card-body--with-buttons {
    position: relative;
    padding: 0;
    padding-bottom: 70px;
    flex-grow: 1;
}

/* ─── Buttons absolut unten links in card-body ─── */
.card-body-buttons {
    position: absolute;
    bottom: 0;
    left: 10px;
    display: flex;
    gap: 8px;
    padding-bottom: 15px;
}

/* ─── Seiten-Header-Wrapper (relative Positionierung für absoluten Zurück-Button) ─── */
.dive-seite-wrapper {
    position: relative;
}

/* ─── Seiten-Header-Buttons (absolut oben rechts) ─── */
.dive-seite-header-buttons {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 10px;
}

/* ─── Kleines Warn-Modal (35% Breite) ─── */
.dive-modal-sm .modal-dialog {
    max-width: 35%;
    margin: 1.75rem auto;
}

.dive-modal-sm .modal-content {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    border: 4px solid white;
}

/* ─── Modal card-header Trennlinie ─── */
.modal-card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* ─── Modal card-body Standard-Padding ─── */
.card-body--modal {
    padding: 15px;
}

/* ─── Alert ohne äußeren Abstand (innerhalb von card-body) ─── */
.alert--flush {
    margin: 0;
    padding: 12px;
}

/* ─── Rechtsbündige Aktionszeile (z.B. unter Alert in Modal) ─── */
.modal-action-row {
    margin-top: 15px;
    text-align: right;
}

/* ─── row mit kleinem Abstand oben ─── */
.row--mt-sm {
    margin-top: 8px;
}

/* ─── card-body als Flex-Spalte (z.B. für Text-Editor-Seiten) ─── */
.card-body--flex-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* ─── Rich-Text-Editor Toolbar ─── */
.text-editor-toolbar {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
    padding: 0.5rem;
    display: flex;
    gap: 0.25rem;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.text-editor-toolbar button {
    padding: 0.25rem 0.5rem;
    border: 1px solid #dee2e6;
    background-color: white;
    border-radius: 0.25rem;
    cursor: pointer;
    white-space: nowrap;
}

.text-editor-toolbar button:hover {
    background-color: #e9ecef;
}

.text-editor-toolbar button.active {
    background-color: #0d6efd;
    color: white;
}

.text-editor-toolbar-separator {
    border-left: 1px solid #dee2e6;
    margin: 0 0.25rem;
}

.text-editor-toolbar-select {
    padding: 0.25rem;
    max-width: 100px;
    white-space: nowrap;
}

/* ─── Nummernkreis: Vorschau-Container ─── */
.nk-vorschau-wrapper {
    padding: 20px;
    text-align: center;
}

.nk-vorschau-label-wrapper {
    margin-bottom: 15px;
}

.nk-vorschau-container {
    background-color: #f8f9fa;
    border: 3px solid #12253C;
    border-radius: 8px;
    padding: 30px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nk-vorschau-nummer {
    font-size: 48px;
    font-weight: bold;
    color: #12253C;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.nk-info-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #e7f3ff;
    border-left: 4px solid #0066cc;
    border-radius: 4px;
}

.nk-info-box h6 {
    margin: 0 0 10px 0;
    color: #0066cc;
}

.nk-info-box-content {
    text-align: left;
    font-size: 14px;
    line-height: 1.8;
}

.nk-beispiel-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.nk-beispiel-box h6 {
    margin: 0 0 10px 0;
    color: #856404;
}

.nk-beispiel-box-content {
    text-align: left;
    font-size: 13px;
    line-height: 1.8;
    font-family: 'Courier New', monospace;
}

.nk-api-test-wrapper {
    margin-top: 20px;
    text-align: center;
}

/* ─── Nummernkreis: API-Test-Modal ─── */
.nk-modal-body {
    position: relative;
    padding: 0;
    min-height: 510px;
    max-height: 510px;
    overflow-y: auto;
}

.nk-modal-body::-webkit-scrollbar {
    width: 8px;
}

.nk-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.nk-modal-body::-webkit-scrollbar-thumb {
    background: rgba(18, 37, 60, 0.3);
    border-radius: 4px;
}

.nk-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(18, 37, 60, 0.5);
}

.nk-modal-steps-container {
    min-height: 450px;
}

.nk-modal-dialog {
    max-width: 45%;
    margin: 1.75rem auto;
}

/* ─── Nummernkreis: Status-Anzeige-Box (grüner Kreis) ─── */
.nk-status-icon {
    width: 30px;
    height: 30px;
    background-color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Nummernkreis: Nummer-Anzeige Subkachel ─── */
.nk-nummer-display {
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 15px;
    margin: 15px;
    background-color: #8EADA0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nk-nummer-display-titel {
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255,255,255,0.5);
}

.nk-nummer-display-titel h6 {
    margin: 0;
    color: #000;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nk-nummer-display-body {
    text-align: center;
    padding: 25px 15px;
}

.nk-nummer-display-label {
    font-size: 12px;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.nk-nummer-display-value {
    font-size: 42px;
    font-weight: bold;
    color: #000;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    margin-bottom: 20px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nk-nummer-display-meta {
    padding: 12px;
    background-color: rgba(255,255,255,0.4);
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.3);
    color: #000;
    font-size: 14px;
}

/* ─── Nummernkreis: Fehler-Box im Modal ─── */
.nk-fehler-box {
    padding: 15px;
    background-color: #f8d7da;
    border-radius: 5px;
    border-left: 4px solid #dc3545;
}

/* ─── Nummernkreis: Animationen ─── */
@keyframes nk-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes nk-fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.status-step {
    animation: nk-fadeIn 0.5s ease-in;
}

#apiTestModal.modal {
    z-index: 1055 !important;
}

body.modal-open .main-content,
body.modal-open .main-content::before,
body.modal-open .main-content::after {
    z-index: 1 !important;
}

/* ─── Rich-Text-Editor Inhaltsbereich ─── */
.text-editor-content {
    min-height: 300px;
    max-height: 400px;
    border: 1px solid #dee2e6;
    border-radius: 0 0 0.375rem 0.375rem;
    padding: 1rem;
    background-color: white;
    overflow-y: auto;
}

.text-editor-content:focus {
    outline: 2px solid #0d6efd;
    outline-offset: -2px;
}

/* ─── Utility: Monospace-Code klein (11px) ─── */
.fs-mono-small {
    font-size: 11px;
}

/* ─── Artikel: Bildupload ─── */
.image-upload-container {
    width: 100%;
    margin-bottom: 15px;
}

.image-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #fafafa;
    min-height: 150px;
}

.image-upload-area:hover {
    border-color: #12253C;
    background-color: #f5f5f5;
}

.image-upload-area.dragover {
    border-color: #12253C;
    background-color: #e8f4f8;
    transform: scale(1.02);
}

.upload-placeholder {
    color: #666;
}

.upload-placeholder i {
    color: #12253C;
}

.image-preview {
    position: relative;
    display: inline-block;
}

.image-preview img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-actions {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.image-actions .btn {
    font-size: 12px;
    padding: 2px 8px;
}

/* ─── Artikel: Set-/Such-Container ─── */
.artikel-set-container {
    min-height: 60px;
    max-height: 220px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px;
}

.artikel-suche-container {
    max-height: 220px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px;
}

.artikel-set-item,
.artikel-suche-item {
    background-color: #003755;
    color: white;
    padding: 4px 12px;
    margin-bottom: 6px;
    border-radius: 5px;
    cursor: move;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 16px;
    line-height: 1.2;
    min-height: 38px;
    max-height: 38px;
    height: 38px;
}

.artikel-set-item:hover,
.artikel-suche-item:hover {
    background-color: var(--akzent);
    transform: translateX(5px);
}

.artikel-set-item.dragging,
.artikel-suche-item.dragging {
    opacity: 0.5;
}

.artikel-set-item.drag-over {
    border-top: 3px solid var(--akzent);
}

.artikel-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.artikel-item-info strong {
    margin: 0;
    padding: 0;
}

.artikel-item-info span {
    opacity: 0.8;
    margin: 0;
    padding: 0;
}

.artikel-item-aktionen {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.artikel-item-aktionen strong {
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.artikel-item-aktionen .btn-sm {
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1;
}

.artikel-grip-icon {
    opacity: 0.7;
}

/* ─── Utility: Cursor nicht erlaubt ─── */
.cursor-not-allowed {
    cursor: not-allowed !important;
}

/* ─── Artikel: Terminal-Leistungen Textarea ─── */
.textarea-terminal-leistungen {
    font-family: monospace;
    resize: vertical;
    min-height: 140px;
    height: 140px;
}

/* ─── Artikel: Suchfeld im Bundle ─── */
.input-suche-bundle {
    height: 38px;
}

/* === TSE Monitoring === */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-ok { background-color: #28a745; }
.status-warnung { background-color: #ffc107; }
.status-kritisch { background-color: #dc3545; }
.status-unbekannt { background-color: #6c757d; }

.monitoring-card {
    transition: all 0.3s ease;
}

.monitoring-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.performance-gauge {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(#28a745 0deg, #28a745 var(--percentage), #e9ecef var(--percentage));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.performance-gauge::before {
    content: '';
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    position: absolute;
}

.performance-value {
    position: relative;
    z-index: 1;
    font-weight: bold;
    font-size: 14px;
}

.auto-refresh-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 1000;
}

/* === TSE Logs === */
.log-entry {
    border-left: 3px solid #d0d7de;
    padding: 12px 16px;
    margin-bottom: 4px;
    background-color: #fff;
}

.log-entry.log-fehler,
.log-entry.log-error {
    border-left-color: #dc3545;
    background-color: #fff5f5;
}

.log-entry.log-warnung,
.log-entry.log-warning {
    border-left-color: #ffc107;
    background-color: #fffdf0;
}

.log-entry.log-info,
.log-entry.log-information {
    border-left-color: #0dcaf0;
    background-color: #f0faff;
}

.log-entry.log-debug {
    border-left-color: #6c757d;
    background-color: #f8f9fa;
}

.log-entry.log-status_check {
    border-left-color: #0d6efd;
    background-color: #f0f5ff;
}

.log-details {
    font-family: monospace;
    font-size: 12px;
    background: #f8f9fa;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    padding: 8px;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
    color: #555;
}

/* =========================================================
   Werbeaktionen – Statistik-Modal Kacheln
   ========================================================= */
.stat-box {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.35rem;
    text-align: center;
}

.stat-box h4 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    color: #0d6efd;
    font-weight: 600;
}

.stat-box p {
    margin: 0;
    color: #6c757d;
    font-size: 0.85rem;
}

/* =========================================================
   Werbeaktionen – Filterzeile im Card-Header
   ========================================================= */
.werbeaktionen-liste-header .werbeaktionen-filter-gruppe {
    max-width: 11.5rem;
}

.werbeaktionen-liste-header .werbeaktionen-filter-gruppe .input-group-text {
    background: transparent;
    border: none;
    padding: 0 0.35rem 0 0;
    color: rgba(203, 215, 204, 0.95);
}

.werbeaktionen-liste-header .werbeaktionen-filter-gruppe .input-group-text i {
    width: 1rem;
    text-align: center;
}

.werbeaktionen-liste-header .werbeaktionen-filter-gruppe .form-select-sm,
.werbeaktionen-liste-header .werbeaktionen-filter-gruppe .form-control-sm {
    min-width: 0;
    flex: 1 1 auto;
}

.werbeaktionen-liste-header .werbeaktionen-filter-gruppe.werbeaktionen-filter-datum {
    max-width: 12.5rem;
}

.werbeaktionen-liste-leer {
    vertical-align: middle;
    border-bottom-width: 0;
}

/* === GUTSCHEIN-BADGES (verwaltung_gutscheine) === */
.badge-typ,
.badge-status {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
}

/* === EC-TERMINAL-TEST (verwaltung_ec_terminal_test) === */
.ec-tim-protokoll {
    max-height: 100%;
    overflow-y: auto;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
}
.ec-tim-protokoll-eintrag {
    border: 1px solid #d0d7de;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
}
.ec-tim-protokoll-eintrag.ec-tim-erfolg {
    border-left: 4px solid var(--akzent);
}
.ec-tim-protokoll-eintrag.ec-tim-fehler {
    border-left: 4px solid #c0392b;
    background-color: #fdf2f0;
}
.ec-tim-protokoll-kopf {
    padding: 0.4rem 0.6rem;
    font-weight: bold;
    color: #12253C;
    border-bottom: 1px solid #d0d7de;
    background-color: #ffffff;
}
.ec-tim-protokoll-inhalt {
    margin: 0;
    padding: 0.5rem 0.75rem;
    white-space: pre-wrap;
    word-break: break-word;
    color: #12253C;
    background-color: transparent;
}

/* === .ENV-EDITOR (dev/env_editor.php) ===
 * Flex-Kette wie .card-hauptliste: Karte füllt die Höhe bis zur Seitenfußleiste,
 * die Textarea nimmt den restlichen Platz im card-body ein und scrollt intern.
 */
.env-editor-shell .hauptliste-inner > .dive-seitenkopf-block {
    flex-shrink: 0;
}

.content-card.env-editor-karte {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: var(--layout-hauptliste-karte-abstand-unten, 80px);
    display: flex;
    flex-direction: column;
}

.content-card.env-editor-karte > .card-header {
    flex-shrink: 0;
}

.content-card.env-editor-karte > .card-body.env-editor-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Button-Zeile unten links (Speichern/Abbrechen) */
.env-editor-body > .env-editor-aktionen {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    margin-top: 12px;
}

.env-editor-textarea {
    flex: 1 1 auto;
    min-height: 200px;
    resize: none;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.45;
    white-space: pre;
    overflow: auto;
    tab-size: 4;
    background-color: #f8f9fa;
    border: 1px solid #d0d7de;
    color: #12253C;
}

.env-editor-textarea:focus {
    background-color: #ffffff;
    border-color: var(--akzent);
    box-shadow: 0 0 0 0.15rem rgba(var(--akzent-rgb), 0.25);
}

.env-editor-textarea[readonly] {
    background-color: #eceff1;
    color: #6c757d;
}

/* RKSV-Pflichtbeleg Druckansicht */
.beleg-druck-karte {
    max-width: 540px;
}

@media print {
    body.beleg-druck-seite .header,
    body.beleg-druck-seite .footer,
    body.beleg-druck-seite .d-print-none {
        display: none !important;
    }
    body.beleg-druck-seite .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    body.beleg-druck-seite .content-card {
        border: 1px solid #12253C;
        box-shadow: none;
    }
}

/* ============================================================
   Dienstplan (verwaltung_dienstplan) - Wochenansicht
   ============================================================ */

.dp-wochen-navigation {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.dp-wochen-tabelle .dp-mitarbeiter-spalte {
    min-width: 160px;
    white-space: nowrap;
}

.dp-wochen-tabelle .dp-tag-spalte {
    min-width: 110px;
    text-align: center;
}

.dp-zelle {
    vertical-align: top;
    cursor: pointer;
    min-height: 60px;
}

.dp-zelle:hover {
    background-color: rgba(148, 201, 191, 0.25);
}

.dp-schicht {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    color: #fff;
    border-radius: 6px;
    padding: 3px 6px;
    margin-bottom: 3px;
    font-size: 0.8rem;
    background-color: var(--akzent);
}

.dp-schicht-loeschen {
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    opacity: 0.8;
}

.dp-schicht-loeschen:hover {
    opacity: 1;
}

.dp-abwesenheit {
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 6px;
    padding: 3px 6px;
    margin-bottom: 3px;
    font-size: 0.8rem;
    text-align: center;
}

.dp-soll-ist {
    font-size: 0.7rem;
    color: #6c757d;
    white-space: nowrap;
}

.dp-farb-punkt {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    vertical-align: middle;
    border: 1px solid #d0d7de;
    background-color: var(--akzent);
}

/* Kalender-Icon in der Monatsauswahl (Arbeitszeitkarten) optisch ausrichten */
.sz-monat-icon {
    position: relative;
    top: -2px;
}

/* Monats-Select in der Monatsauswahl (Arbeitszeitkarten) optisch ausrichten */
.sz-monat-select {
    position: relative;
    top: 1px;
}

/* =====================================================================
   Druckansicht: Arbeitszeitkarte (verwaltung_buchhaltung-stundenzettel)
   Nur die linke Karte (Mitarbeiterdaten + Zeiterfassungs-Tabelle) drucken
   ===================================================================== */
@media print {
    body.sz-karte-druckseite .header,
    body.sz-karte-druckseite .footer,
    body.sz-karte-druckseite .dive-seitenkopf-block,
    body.sz-karte-druckseite .sz-druck-ausblenden,
    body.sz-karte-druckseite .sz-korrektur-spalte,
    body.sz-karte-druckseite .btn,
    body.sz-karte-druckseite .modal,
    body.sz-karte-druckseite .modal-backdrop {
        display: none !important;
    }

    /* Flex-Hoehen-Kette aufloesen, damit die Tabelle ueber Seiten umbrechen kann */
    body.sz-karte-druckseite,
    body.sz-karte-druckseite .main-content,
    body.sz-karte-druckseite .dive-seite-hoehe-inner,
    body.sz-karte-druckseite .dive-seite-hoehe-zeile,
    body.sz-karte-druckseite .dive-seite-hoehe-spalte,
    body.sz-karte-druckseite .content-card.dive-content-card-hoehe-fill,
    body.sz-karte-druckseite .dive-content-card-hoehe-fill .card-body,
    body.sz-karte-druckseite .table-responsive {
        display: block !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* Linke Spalte auf volle Breite ziehen */
    body.sz-karte-druckseite .dive-seite-hoehe-spalte {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    body.sz-karte-druckseite .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    body.sz-karte-druckseite .content-card {
        border: none !important;
        box-shadow: none !important;
    }
}
