:root {
    /* PrimÃ¤re Markenfarben - flexibel Ã¤nderbar */
    --color-primary: #00C069;
    --color-primary-light: #00d679;
    --color-primary-dark: #008c44;
    --color-secondary: #FFC434;
    --color-secondary-light: #FFD666;
    --color-secondary-dark: #E6B12F;
    
    /* Neutrale Farben */
    --color-dark: #333333;
    --color-light: #f5f5f5;
    --color-warning: #ffebeb;
    --color-success: #10b981;
    --color-danger: #dc3545;
    --color-info: #6c757d;
    
    /* Layout Variablen */
    --top-bar-height: 60px;
    --sidebar-width: 60px;
    --footer-height: 40px;
    
    /* Legacy Support - wird schrittweise ersetzt */
    --billbee-green: var(--color-primary);
    --billbee-secondary: var(--color-secondary);
    --billbee-dark: var(--color-dark);
    --billbee-light: var(--color-light);
    --billbee-warning: var(--color-warning);
}

/* Start Generation Here */
/* Bootstrap Farbschema überschreiben mit Billbee-Farben */
:root, [data-bs-theme=light] {
    /* Primäre Farben - Billbee Grün statt Bootstrap Blau */
    --bs-primary: var(--color-primary);
    --bs-primary-rgb: 0, 192, 105;
    --bs-primary-text-emphasis: #004d2a;
    --bs-primary-bg-subtle: #e6f7ef;
    --bs-primary-border-subtle: #b3e6cc;
    
    /* Sekundäre Farben - Billbee Orange statt Bootstrap Grau */
    --bs-secondary: var(--color-secondary);
    --bs-secondary-rgb: 255, 196, 52;
    --bs-secondary-text-emphasis: #664d03;
    --bs-secondary-bg-subtle: #fff8e6;
    --bs-secondary-border-subtle: #ffe6b3;
    
    /* Erfolg - Billbee Grün */
    --bs-success: var(--color-primary);
    --bs-success-rgb: 0, 192, 105;
    --bs-success-text-emphasis: #004d2a;
    --bs-success-bg-subtle: #e6f7ef;
    --bs-success-border-subtle: #b3e6cc;
    
    /* Warnung - Billbee Orange */
    --bs-warning: var(--color-secondary);
    --bs-warning-rgb: 255, 196, 52;
    --bs-warning-text-emphasis: #664d03;
    --bs-warning-bg-subtle: #fff8e6;
    --bs-warning-border-subtle: #ffe6b3;
    
    /* Gefahr - Rot beibehalten */
    --bs-danger: #dc3545;
    --bs-danger-rgb: 220, 53, 69;
    --bs-danger-text-emphasis: #58151c;
    --bs-danger-bg-subtle: #f8d7da;
    --bs-danger-border-subtle: #f1aeb5;
    
    /* Info - Grün statt Cyan */
    --bs-info: var(--color-primary);
    --bs-info-rgb: 0, 192, 105;
    --bs-info-text-emphasis: #004d2a;
    --bs-info-bg-subtle: #e6f7ef;
    --bs-info-border-subtle: #b3e6cc;
    
    /* Light/Dark - angepasst */
    --bs-light: var(--color-light);
    --bs-light-rgb: 245, 245, 245;
    --bs-light-text-emphasis: #495057;
    --bs-light-bg-subtle: #fcfcfd;
    --bs-light-border-subtle: #e9ecef;
    
    --bs-dark: var(--color-dark);
    --bs-dark-rgb: 51, 51, 51;
    --bs-dark-text-emphasis: #495057;
    --bs-dark-bg-subtle: #ced4da;
    --bs-dark-border-subtle: #adb5bd;
    
    /* Focus Ring - Billbee Grün */
    --bs-focus-ring-color: rgba(0, 192, 105, 0.25);
    
    /* Links - Billbee Grün */
    --bs-link-color: var(--color-primary);
    --bs-link-color-rgb: 0, 192, 105;
    --bs-link-hover-color: var(--color-primary-dark);
    --bs-link-hover-color-rgb: 0, 140, 68;
    
    /* Form Validation - Billbee Farben */
    --bs-form-valid-color: var(--color-primary);
    --bs-form-valid-border-color: var(--color-primary);
    --bs-form-invalid-color: var(--bs-danger);
    --bs-form-invalid-border-color: var(--bs-danger);
    
    /* Code Highlight - Orange statt Pink */
    --bs-code-color: var(--color-secondary);
    --bs-highlight-bg: #fff8e6;
}

/* Legacy Bootstrap Blau komplett entfernen - alles auf Grün/Orange */
:root, [data-bs-theme=light] {
    --bs-blue: var(--color-primary);
    --bs-indigo: var(--color-primary-dark);
    --bs-purple: var(--color-primary-dark);
    --bs-pink: var(--color-secondary);
    --bs-red: var(--bs-danger);
    --bs-orange: var(--color-secondary);
    --bs-yellow: var(--color-secondary);
    --bs-green: var(--color-primary);
    --bs-teal: var(--color-primary);
    --bs-cyan: var(--color-primary);
}
/* End Generation Here */







body {
    background-color: var(--billbee-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: var(--top-bar-height);
    margin: 0;
    min-height: 100vh;
    position: relative;
    padding-bottom: var(--footer-height);
}

/* Billbee Toggle Switch */
.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    margin-top: 0.25em;
    vertical-align: top;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
    background-position: left center;
    border-radius: 2em;
    transition: background-position .15s ease-in-out;
    cursor: pointer;
}

.form-switch .form-check-input:checked {
    background-color: var(--billbee-green);
    border-color: var(--billbee-green);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:focus {
    border-color: rgba(0, 192, 105, 0.25);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 192, 105, 0.25);
}

.form-switch .form-check-label {
    margin-left: 0.5em;
    cursor: pointer;
    user-select: none;
}


.tooltip {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.tooltip .tooltip-inner {
    background-color: var(--billbee-dark);
    color: white;
    padding: 8px 12px;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border-radius: 4px;
}
.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: var(--billbee-dark);
}

.top-bar {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    height: var(--top-bar-height);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}
.logo {
    height: 40px;
    margin-right: 0px;
}
.logo-icon {
    height: 32px;
    margin-right: 10px;
    margin-top: 0px;
    vertical-align: middle;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    height: 100%;
    line-height: 1;
}
.logo-text {
    color: white;
    font-weight: 400;
    line-height: 1.2;
}
.logo-text strong {
    font-weight: 700;
}
.sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    width: var(--sidebar-width);
    height: calc(100vh - var(--top-bar-height));
    position: fixed;
    left: 0;
    top: var(--top-bar-height);
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    z-index: 1035; /* Über dem Footer (1030) */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    padding: 5px 5px 0px 0px;
}

.sidebar:hover {
    width: 280px; /* Noch mehr Platz für längere Texte */
    box-shadow: 4px 0 15px rgba(0,0,0,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
    min-height: calc(100vh - var(--top-bar-height) - var(--footer-height));
    padding-bottom: 60px;
}
.menu-item {
    width: 48px;
    height: 48px;
    margin: 4px 6px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Zurück zu flex-start */
    padding: 0;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar:hover .menu-item {
    width: calc(100% - 12px);
    justify-content: flex-start;
    padding-right: 20px; /* Platz für Pfeile */
}

/* Titel-Text beim Sidebar-Hover */
.menu-item::after {
    content: attr(data-title);
    margin-left: 12px;
    font-size: 0.95rem;
    font-weight: 600; /* Fetter für bessere Lesbarkeit */
    color: #2d3748; /* Dunklerer Kontrast */
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;

}

.sidebar:hover .menu-item::after {
    opacity: 1;
    transform: translateX(0);
}

.menu-item.active::after,
.menu-item.open::after {
    font-weight: 700 !important; /* Extra fett für aktive Elemente */
}

/* Pfeil-Marker für Menüelemente mit Subelementen - nur bei Sidebar-Hover */
.menu-item.has-children .submenu-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: var(--color-dark);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
}

.sidebar:hover .menu-item.has-children .submenu-arrow {
    opacity: 0.6;
}

.sidebar:hover .menu-item.has-children:hover .submenu-arrow {
    opacity: 0.9;
    color: var(--color-dark);
}

.sidebar:hover .menu-item.has-children.active .submenu-arrow,
.sidebar:hover .menu-item.has-children.open .submenu-arrow {
    color: white;
    opacity: 1;
}

.menu-item:hover {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.4) 0%, rgba(220, 252, 231, 0.4) 50%, rgba(241, 245, 249, 0.4) 100%);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: #495057;
    text-decoration: none !important;
    transform: translateX(2px);
}

/* DISCORD-STYLE AKTIVE ZUSTÃ„NDE */
.menu-item.active,
.menu-item.open {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white !important;
    font-weight: 600;
    position: relative;
}

/* DISCORD-STYLE MARKER AM LINKEN BILDSCHIRMRAND */
.menu-item.active::before,
.menu-item.open::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: white;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.menu-item:hover:not(.active):not(.open)::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: rgba(108, 117, 125, 0.8);
    border-radius: 0 3px 3px 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}



/* ICON-ZENTRIERUNG - Normal zentriert, beim Hover links */
.menu-item i {
    font-size: 18px;
    color: var(--color-dark);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; /* Volle Breite für Zentrierung */
    height: 48px;
    flex-shrink: 0;
}

.sidebar:hover .menu-item i {
    width: 24px; /* Beim Hover schmaler für Text */
    justify-content: flex-start;
    margin-left: 12px;
}

.menu-item:hover i {
    color: var(--color-dark);
}

.menu-item.active i,
.menu-item.open i {
    color: white;
}

/* Menu Text */
.menu-item .menu-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: inherit;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    margin-left: 10px;
}



/* Content bleibt stabil - keine Verschiebung */
.main-content {
    margin-left: var(--sidebar-width);
}

.nav-breadcrumbs {
    margin-top: 25px;
}

/* SubmenÃ¼ Styles - Vereinfacht */
.submenu-section {
    width: 100%;
    padding: 4px 0;
}



.submenu-item:hover {
    background: rgba(248, 250, 252, 0.8);
    text-decoration: none !important;
}

/* SUBMENU AKTIVE ZUSTÃ„NDE MIT MINI-MARKER */
.submenu-item.active {
    background: rgba(51, 51, 51, 0.1);
    color: var(--color-dark) !important;
    font-weight: 600;
    position: relative;
}

.submenu-item.active::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: var(--color-dark);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.submenu-item:hover:not(.active)::after {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
}



/* SUBMENU ICONS - DIREKTE STRUKTUR */
.submenu-item {
    width: 40px;
    height: 40px;
    margin: 2px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    text-decoration: none !important;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.sidebar:hover .submenu-item {
    width: calc(100% - 20px);
    justify-content: flex-start;
    padding-right: 25px; /* Mehr Platz für den Hover-Text */
    overflow: visible; /* Text darf über den Container hinausragen */
}

/* Submenu Titel-Text beim Sidebar-Hover - KORREKTE POSITION */
.sidebar:hover .submenu-item::after {
    content: attr(data-title);
    margin-left: 8px; /* Weniger Abstand vom Icon */
    font-size: 0.85rem;
    font-weight: 500;
    color: #2d3748;
    white-space: nowrap;
    position: absolute; /* Absolute Positionierung */
    left: 30px; /* Direkt rechts neben dem Icon */
    top: 50%;
    transform: translateY(-50%); /* Vertikal zentrieren */
    pointer-events: none; /* Kein Hover/Click auf Text */
    user-select: none; /* Text nicht auswählbar */
}

.sidebar:hover .submenu-item.active::after {
    color: #1a202c;
    font-weight: 600;
}

/* Gestaffelte Animationen für Titel */
.sidebar:hover .menu-item:nth-child(1)::after { transition-delay: 0.05s; }
.sidebar:hover .menu-item:nth-child(2)::after { transition-delay: 0.1s; }
.sidebar:hover .menu-item:nth-child(3)::after { transition-delay: 0.15s; }
.sidebar:hover .menu-item:nth-child(4)::after { transition-delay: 0.2s; }
.sidebar:hover .menu-item:nth-child(5)::after { transition-delay: 0.25s; }
.sidebar:hover .menu-item:nth-child(6)::after { transition-delay: 0.3s; }
.sidebar:hover .menu-item:nth-child(7)::after { transition-delay: 0.35s; }
.sidebar:hover .menu-item:nth-child(8)::after { transition-delay: 0.4s; }
.sidebar:hover .menu-item:nth-child(9)::after { transition-delay: 0.45s; }
.sidebar:hover .menu-item:nth-child(10)::after { transition-delay: 0.5s; }

.sidebar:hover .submenu-item:nth-child(1)::after { transition-delay: 0.1s; }
.sidebar:hover .submenu-item:nth-child(2)::after { transition-delay: 0.15s; }
.sidebar:hover .submenu-item:nth-child(3)::after { transition-delay: 0.2s; }
.sidebar:hover .submenu-item:nth-child(4)::after { transition-delay: 0.25s; }

.submenu-item i {
    font-size: 14px;
    color: var(--color-dark);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    width: 40px; /* Volle Breite für Zentrierung */
    height: 40px;
    flex-shrink: 0;
}

.sidebar:hover .submenu-item i {
    width: 20px; /* Beim Hover schmaler für Text */
    justify-content: flex-start;
    margin-left: 10px;
    margin-right: 0; /* Kein zusätzlicher Abstand zum Text */
}

.submenu-item:hover i {
    color: var(--color-dark);
    opacity: 0.9;
}

.submenu-item.active i {
    color: var(--color-dark);
    opacity: 1;
}



/* ==================== UNIVERSELLE LINK STYLES - KEIN BLAU! ==================== */

/* Alle Links in der Sidebar sollen unsere Farben verwenden - AUSSER Pseudo-Elemente */
.sidebar a,
.sidebar a:link,
.sidebar a:visited,
.sidebar a:hover,
.sidebar a:active,
.sidebar a:focus {
    color: inherit !important;
    text-decoration: none !important;
}

/* Spezifische Farb-Overrides für Titel-Texte - überschreibt das color: inherit */
.sidebar .menu-item:not(.submenu-item)::after {
    color: #2d3748 !important; /* Dunkle Farbe für normale Menu-Texte */
}


/* Submenu-spezifische Farben werden bereits in den Hauptregeln definiert */

/* Spezielle Behandlung fÃ¼r normale Links die nicht als menu-item formatiert sind */
.sidebar > a:not(.menu-item) {
    width: calc(100% - 24px);
    min-height: 52px;
    padding: 14px 18px 14px 20px;
    margin: 3px 12px;
    color: #64748b !important;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.sidebar > a:not(.menu-item):hover {
    background: linear-gradient(135deg, 
        rgba(255, 196, 52, 0.15) 0%, 
        rgba(255, 196, 52, 0.08) 100%);
    color: #334155 !important;
    text-decoration: none !important;
    transform: translateX(4px) scale(1.02);
    box-shadow: 
        0 4px 12px rgba(255, 196, 52, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.footer {
    position: fixed;
    bottom: 0;
    left: 60px;
    right: 0;
    height: 50px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    padding: 0 30px;
    z-index: 100;
}

/* Mobile: Footer über gesamte Breite */
@media (max-width: 768px) {
    .footer {
        left: 0px;
    }
}
.footer-content {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #6c757d;
    font-size: 0.85rem;
}
.footer .version {
    font-size: 0.85rem;
    font-weight: 500;
}
.footer a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer a:hover {
    color: var(--color-primary);
}
.beeplus {
    font-weight: 600;
    color: var(--color-primary);
}
.beeplus .plus {
    color: var(--color-secondary);
}
.settings-toggle {
    position: fixed;
    top: calc(var(--top-bar-height) + 20px);
    right: 20px;
    z-index: 1040;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.settings-toggle:hover {
    background-color: var(--color-dark);
    transform: rotate(30deg);
}
.settings-panel {
    position: fixed;
    top: var(--top-bar-height);
    right: -300px;
    width: 300px;
    height: calc(100vh - var(--top-bar-height));
    background-color: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1030;
    padding: 20px;
    overflow-y: auto;
}
.settings-panel.show {
    right: 0;
}
/* --- Kachel-Ãœbersicht fÃ¼r Einstellungen (settings.php) --- */
.settings-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: flex-start;
    margin-bottom: 32px;
}
.settings-tile {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 32px 24px 16px 24px;
    min-width: 280px;
    max-width: 320px;
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: #222;
}
.settings-tile:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px) scale(1.03);
    color: var(--billbee-green);
}
.settings-tile .tile-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #444;
}
.settings-tile:hover .tile-icon {
    color: var(--billbee-green);
}
.settings-tile .tile-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0;
}


@media (max-width: 900px) {
    .settings-tiles {
        gap: 16px;
    }
    .settings-tile {
        min-width: 260px;
        max-width: 300px;
        padding: 24px 16px 12px 16px;
    }
    .settings-tile .tile-icon {
        font-size: 2rem;
    }
}
.table-responsive {
    margin-top:10px;
    margin-bottom: 10px;
}
.table-responsive table {
    border-radius: 0;
}



/* --- Styles aus billbee_shipping.php --- */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding:0px;
}
.card-header {
    background-color: white;
    border-bottom: 1px solid #eee;
    padding: 15px 20px;
    margin: 0px;
    margin-bottom: 10px;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}
.table {
    margin-bottom: 0;
}
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
}
.dt-buttons {
    margin-bottom: 10px;
}
.dt-button {
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-light)) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0, 192, 105, 0.2) !important;
}

.dt-button:hover {
    background: linear-gradient(45deg, var(--color-primary-dark), var(--color-primary)) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 192, 105, 0.3) !important;
    color: white !important;
}
.dt-button-collection {
    background-color: white !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}
.dt-button-collection .dt-button {
    background-color: white !important;
    color: var(--billbee-dark) !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    text-align: left !important;
    padding: 8px 12px !important;
}
.dt-button-collection .dt-button.active {
    background-color: #f8f9fa !important;
    color: var(--billbee-green) !important;
}
.dt-button-collection .dt-button:hover {
    background-color: #f8f9fa !important;
}

   

.btn.disabled,
.btn:disabled {
    background: linear-gradient(45deg, #9ca3af, #d1d5db) !important;
    color: #6b7280 !important;
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-action-group {
    display: flex;
    gap: 5px;
    justify-content: flex-start;
}
.btn-action {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-light));
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 192, 105, 0.2);
}
.btn-action:hover {
    background: linear-gradient(45deg, var(--color-primary-dark), var(--color-primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 192, 105, 0.3);
    color: white;
}

/* --- Styles aus billbee_articles.php --- */
tr.stock-warning {
    background-color: var(--billbee-warning) !important;
}
tr.stock-warning:hover {
    background-color: #ffe0e0 !important;
}
.stock-warning {
    background-color: var(--billbee-warning) !important;
}
.stock-warning:hover {
    background-color: #ffe0e0 !important;
}
table.dataTable tbody tr.stock-warning {
    background-color: var(--billbee-warning) !important;
}
table.dataTable tbody tr.stock-warning:hover {
    background-color: #ffe0e0 !important;
}
table.dataTable.stripe tbody tr.stock-warning:odd {
    background-color: #ffe5e5 !important;
}
table.dataTable.stripe tbody tr.stock-warning:even {
    background-color: var(--billbee-warning) !important;
}
table.dataTable thead th {
    cursor: move;
}
.dt-button-collection {
    max-height: 500px;
    overflow-y: auto;
}
#articlesTable tbody tr.stock-warning,
.dataTables_wrapper .dataTables_scroll .dataTable tbody tr.stock-warning,
table.dataTable.stripe tbody tr.stock-warning,
table.dataTable.display tbody tr.stock-warning {
    background-color: var(--billbee-warning) !important;
}
#articlesTable tbody tr.stock-warning:hover,
.dataTables_wrapper .dataTables_scroll .dataTable tbody tr.stock-warning:hover,
table.dataTable.stripe tbody tr.stock-warning:hover,
table.dataTable.display tbody tr.stock-warning:hover {
    background-color: #ffe0e0 !important;
}
#articlesTable tbody tr.stock-warning:nth-of-type(odd),
.dataTables_wrapper .dataTables_scroll .dataTable tbody tr.stock-warning:nth-of-type(odd),
table.dataTable.stripe tbody tr.stock-warning:nth-of-type(odd) {
    background-color: #ffe5e5 !important;
}
#articlesTable tbody tr.stock-warning:nth-of-type(even),
.dataTables_wrapper .dataTables_scroll .dataTable tbody tr.stock-warning:nth-of-type(even),
table.dataTable.stripe tbody tr.stock-warning:nth-of-type(even) {
    background-color: var(--billbee-warning) !important;
}
.stock-warning-cell {
    position: relative;
    padding-right: 25px !important;
}
.stock-warning-cell::after {
    content: "âš ï¸";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}
.dt-warning {
    background-color: #ffebeb !important;
}
.dt-warning:hover {
    background-color: #ffe0e0 !important;
}

/* ==================== MODERNE BUTTON STYLES ==================== */

/* Basis Button */
.btn {
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-light));
    color: white;
    border: none;
    border-radius: 25px; /* Runde Pillen-Form */
    padding: 12px 24px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 192, 105, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: auto;
}

.btn:hover {
    background: linear-gradient(45deg, var(--color-primary-dark), var(--color-primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 192, 105, 0.3);
    color: white;
}

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

/* Button Varianten */
.btn-primary {
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-light));
    box-shadow: 0 2px 4px rgba(0, 192, 105, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--color-primary-dark), var(--color-primary));
    box-shadow: 0 4px 12px rgba(0, 192, 105, 0.3);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--color-secondary), var(--color-secondary-light));
    color: var(--color-dark);
    box-shadow: 0 2px 4px rgba(255, 196, 52, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, var(--color-secondary-dark), var(--color-secondary));
    color: var(--color-dark);
    box-shadow: 0 4px 12px rgba(255, 196, 52, 0.3);
}

.btn-outline-primary {
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-light));
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 192, 105, 0.2);
}

.btn-outline-primary:hover {
    background: linear-gradient(45deg, var(--color-primary-dark), var(--color-primary));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 192, 105, 0.3);
}

.btn-outline-secondary {
    background: linear-gradient(45deg, var(--color-secondary), var(--color-secondary-light));
    color: var(--color-dark);
    border: none;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-outline-secondary:hover {
    background: linear-gradient(45deg, var(--color-secondary-dark), var(--color-secondary));
    color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 196, 52, 0.3);
}

/* Button GrÃ¶ÃŸen */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: 20px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 30px;
}

.company-menu-btn,
.user-menu-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.current-page {
    font-size: 1.0rem;
    font-weight: 500;
}

.topbar-title {
    background: none !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 1.1rem !important;
}

.company-menu-btn:hover,
.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-1px);
}

.user-menu-btn i {
    font-size: 1.2rem;
}

.user-menu-btn .user-name {
    font-size: 0.9rem;
    font-weight: 500;
}


/* --- Breadcrumb Styles --- */
.nav-breadcrumbs {
    background: transparent;
    padding: 0;
    margin: 0;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 1;
}

.breadcrumb-item {
    font-size: 1rem;
    color: var(--billbee-dark);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.breadcrumb-item a {
    color: var(--billbee-light);
    text-decoration: none;
    transition: color 0.2s ease;
    opacity: 0.8;
}

.breadcrumb-item a:hover {
    color: var(--billbee-light);
    text-decoration: none;
    opacity: 1;
}

.breadcrumb-item.active {
    color: white;
    font-weight: 500;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.5rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: white;
    text-decoration: none !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--billbee-light);
    padding: 0 0.5rem;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.card-header h2 a {
    color: var(--billbee-green) !important;
}

.card-header h2 a:hover {
    color: var(--billbee-dark) !important;
    text-decoration: none !important;
}

/* Dashboard Styles - Kompaktes Design mit milden Farbverläufen */
.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1rem 0.8rem;
    margin-bottom: 0;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

/* Milde Farbverläufe - Thematisch passend */
.stat-card-primary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(0, 192, 105, 0.08) 100%);
    border-color: rgba(0, 192, 105, 0.15);
}

.stat-card-primary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(0, 192, 105, 0.12) 100%);
    border-color: rgba(0, 192, 105, 0.25);
}

.stat-card-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 196, 52, 0.08) 100%);
    border-color: rgba(255, 196, 52, 0.15);
}

.stat-card-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 196, 52, 0.12) 100%);
    border-color: rgba(255, 196, 52, 0.25);
}

.stat-card-info {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(0, 123, 255, 0.08) 100%);
    border-color: rgba(0, 123, 255, 0.15);
}

.stat-card-info:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(0, 123, 255, 0.12) 100%);
    border-color: rgba(0, 123, 255, 0.25);
}

.stat-card-warning {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 193, 7, 0.08) 100%);
    border-color: rgba(255, 193, 7, 0.15);
}

.stat-card-warning:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 193, 7, 0.12) 100%);
    border-color: rgba(255, 193, 7, 0.25);
}

.stat-card-danger {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(220, 53, 69, 0.08) 100%);
    border-color: rgba(220, 53, 69, 0.15);
}

.stat-card-danger:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(220, 53, 69, 0.12) 100%);
    border-color: rgba(220, 53, 69, 0.25);
}

.stat-card-success {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(40, 167, 69, 0.08) 100%);
    border-color: rgba(40, 167, 69, 0.15);
}

.stat-card-success:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(40, 167, 69, 0.12) 100%);
    border-color: rgba(40, 167, 69, 0.25);
}

.stat-card-muted {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(108, 117, 125, 0.06) 100%);
    border-color: rgba(108, 117, 125, 0.12);
}

.stat-card-muted:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(108, 117, 125, 0.10) 100%);
    border-color: rgba(108, 117, 125, 0.20);
}

.stat-card .icon {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.stat-card:hover .icon {
    opacity: 1;
    transform: scale(1.05);
}

/* Icon-Farben passend zu den Karten-Typen */
.stat-card-primary .icon { color: var(--color-primary); }
.stat-card-secondary .icon { color: var(--color-secondary); }
.stat-card-info .icon { color: #007bff; }
.stat-card-warning .icon { color: #ffc107; }
.stat-card-danger .icon { color: #dc3545; }
.stat-card-success .icon { color: #28a745; }
.stat-card-muted .icon { color: #6c757d; }

.stat-card .value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.1;
    margin-bottom: 0.2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.stat-card .label {
    color: #666;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
    line-height: 1.2;
}

/* Chart Container - Verbesserte Glass Morphism */
.chart-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 1.8rem 1.5rem;
    margin-bottom: 1.5rem;
    min-height: 350px;
    max-height: 450px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.chart-container:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-1px);
    border-color: rgba(0, 192, 105, 0.2);
}

.chart-container h3 {
    color: var(--color-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-container h3 i {
    color: var(--color-primary);
    font-size: 1rem;
}

.chart-container canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 300px;
    flex: 1;
}

/* Dashboard Layout Verbesserungen */
.main-content .row {
    margin-bottom: 1rem;
}

.main-content .row:last-child {
    margin-bottom: 0;
}

.main-content h2 {
    color: var(--color-dark);
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.main-content h2 i {
    color: var(--color-primary);
    font-size: 1.5rem;
}

/* Responsive Dashboard Optimierungen - Kompakt */
@media (max-width: 768px) {
    .stat-card {
        min-height: 95px;
        padding: 0.8rem 0.6rem;
    }
    
    .stat-card .value {
        font-size: 1.3rem;
    }
    
    .stat-card .icon {
        font-size: 1.4rem;
    }
    
    .stat-card .label {
        font-size: 0.65rem;
    }
    
    .chart-container {
        min-height: 280px;
        padding: 1rem 0.8rem;
    }
    
    .chart-container h3 {
        font-size: 0.9rem;
    }
    
    .main-content h2 {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }
    
    .row.g-3 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}

@media (min-width: 1200px) {
    .stat-card {
        min-height: 120px;
        padding: 1.2rem 1rem;
    }
    
    .stat-card .value {
        font-size: 1.8rem;
    }
    
    .stat-card .icon {
        font-size: 2rem;
    }
    
    .stat-card .label {
        font-size: 0.75rem;
    }
}

@media (min-width: 1400px) {
    .stat-card {
        min-height: 130px;
        padding: 1.4rem 1.2rem;
    }
    
    .stat-card .value {
        font-size: 2rem;
    }
    
    .stat-card .icon {
        font-size: 2.2rem;
    }
    
    .chart-container {
        min-height: 400px;
        max-height: 500px;
    }
}

/* --- Styles fÃ¼r billbee_order_scan.php --- */
.order-scan-container {
    max-width: 100% !important;
    width: calc(100% - 20px);
    padding: 15px 0;
    margin: 0 10px;
}

.order-scan-form {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1050;
    width: auto;
    max-width: 400px;
    padding: 0;
    margin: 0;
    transition: right 0.3s ease;
}

.order-scan-form.settings-open {
    right: 320px;
}

.order-scan-input-group {
    display: flex;
    align-items: center;
    background: white;
    border: 3px solid var(--billbee-green);
    border-radius: 28px;
    padding: 0 10px 0 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 350px;
    height: 55px;
}

.order-scan-input {
    border: none;
    padding: 10px 0;
    font-size: 1.2rem;
    width: 250px;
    background: transparent;
    flex: 1;
    min-width: 0;
}

.order-scan-input:focus {
    outline: none;
}

.order-scan-button {
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-light));
    border: none;
    color: white;
    width: 50px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    flex-shrink: 0;
    margin-right: -7px;
    box-shadow: 0 2px 4px rgba(0, 192, 105, 0.2);
}

.order-scan-button:hover {
    background: linear-gradient(45deg, var(--color-primary-dark), var(--color-primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 192, 105, 0.3);
}

.order-scan-button i {
    font-size: 1.2rem;
}

.order-scan-pause-button {
    position: fixed;
    bottom: 80px;
    right: 380px;
    z-index: 1050;
    background: linear-gradient(45deg, var(--color-secondary), var(--color-secondary-light));
    color: var(--color-dark);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 55px;
    min-width: 350px;
    justify-content: center;
    border: 0px solid var(--color-secondary);
}

.order-scan-pause-button:hover {
    background: linear-gradient(45deg, var(--color-secondary-dark), var(--color-secondary));
    transform: translateY(-1px);
}

.order-scan-pause-button i {
    font-size: 1.2rem;
}

.order-scan-feedback-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s;
}

.order-scan-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9998;
    min-width: 320px;
    max-width: 90vw;
    padding: 32px 40px;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: bold;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    text-align: center;
    opacity: 1;
    transition: opacity 0.2s;
}

.order-scan-feedback.fade,
.order-scan-feedback-overlay.fade {
    opacity: 0;
}

.order-scan-feedback.success {
    background: #008c44;
    color: #fff;
}
.order-scan-feedback.error {
    background: #a71d2a;
    color: #fff;
}
 
.order-scan-product-card {
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-scan-product-card.border-success {
    border-color: var(--billbee-green);
}

.order-scan-product-card .product-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.order-scan-product-card .product-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.order-scan-product-card .location-badge {
    font-size: 1rem;
    padding: 5px 10px;
}

.order-scan-product-card .product-info {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.order-scan-product-card .scan-status {
    margin-top: auto;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}

.order-scan-list {
    list-style: none;
    padding: 0;
}

.order-scan-item {
    background: transparent;
    border-radius: 0;
    padding: 20px 0;
    margin-bottom: 20px;
}

.order-scan-number {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.order-scan-quantity-badge {
    background-color: var(--billbee-dark);
    color: white;
    font-size: 20px;
    padding: 8px 15px;
    border-radius: 5px;
    margin-left: 10px;
}

.order-scan-status {
    font-size: 18px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
}

.order-scan-status.success {
    background-color: #d4edda;
    color: #155724;
}

.order-scan-status.pending {
    background-color: #fff3cd;
    color: #856404;
}

.order-scan-header {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.order-scan-header.border-danger {
    border-color: #dc3545 !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.order-scan-meta {
    color: #666;
    font-size: 0.9rem;
}

.order-scan-meta .badge {
    font-size: 0.85rem;
    padding: 6px 12px;
    margin: 2px;
    font-weight: 500;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.2s ease;
}

.order-scan-meta .badge.border-success {
    border: 2px solid var(--billbee-green);
    color: var(--billbee-green);
    background-color: white;
}

.order-scan-meta .badge.border-danger {
    border: 2px solid #dc3545;
    color: #dc3545;
    background-color: white;
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #e55563) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2) !important;
}
.btn-danger:hover {
    background: linear-gradient(45deg, #c82333, #dc3545) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
    color: #fff !important; 
}

.order-scan-progress {
    margin-top: 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.order-scan-progress .progress {
    background-color: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #dee2e6;
    position: relative;
    height: 25px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.order-scan-progress .progress-bar {
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 25px;
    transition: width 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--billbee-green), #00d679);
    min-width: 60px;
}

.order-scan-progress .progress-bar span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.order-scan-progress-label {
    display: block;
    color: var(--billbee-dark);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-scan-quantity-display {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    margin: 15px 0;
}

.order-scan-quantity-label {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #495057;
}

.order-scan-quantity-numbers {
    font-size: 2rem;
    font-weight: bold;
    color: #212529;
}

.order-scan-quantity-numbers .scanned-qty {
    color: var(--billbee-green);
}

.order-scan-quantity-numbers .total-qty {
    color: #6c757d;
}

.order-scan-product-card.fully-scanned {
    background-color: rgba(212, 237, 218, 0.3);
    border-color: var(--billbee-green);
    order: 2;
}

.order-scan-product-card.partially-scanned {
    order: 1;
}

.order-scan-product-card.not-scanned {
    order: 0;
}

.order-scan-item .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    padding: 0;
}

.order-scan-item .col-md-4 {
    flex: 0 0 calc(25% - 0px);
    max-width: calc(25% - 0px);
    margin: 0px;
    min-width: 280px;
}

@media (max-width: 1400px) {
    .order-scan-item .col-md-4 {
        flex: 0 0 calc(33.333% - 0px);
        max-width: calc(33.333% - 0px);
    }
}

@media (max-width: 1000px) {
    .order-scan-item .col-md-4 {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 650px) {
    .order-scan-item .col-md-4 {
        flex: 0 0 calc(100% - 30px);
        max-width: calc(100% - 30px);
    }
}

.order-scan-product-card.bill-of-material {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    opacity: 0.7;
    position: relative;
}

.order-scan-product-card.bill-of-material::before {
    content: '\f0c9';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #6c757d;
}

.order-scan-product-card.bill-of-material .product-title,
.order-scan-product-card.bill-of-material .product-info,
.order-scan-product-card.bill-of-material .scan-status {
    color: #6c757d;
}

.order-scan-product-card.bill-of-material .product-title {
    padding-right: 40px;
}

@keyframes highlight-quantity {
    0% {
        background-color: #d4edda;
        transform: scale(1.05);
        box-shadow: 0 0 10px rgba(0, 166, 81, 0.3);
    }
    100% {
        background-color: #f8f9fa;
        transform: scale(1);
        box-shadow: none;
    }
}

.order-scan-quantity-display.scan-highlight {
    animation: highlight-quantity 5s ease-out forwards;
}

.order-scan-product-card.discount-item {
    background-color: #e3f2fd;
    border-color: #90caf9;
    opacity: 0.9;
}

.order-scan-product-card.discount-item .product-title,
.order-scan-product-card.discount-item .product-info {
    color: #1976d2;
}

.order-scan-settings-menu {
    position: relative;
    margin-left: auto;
}

.order-scan-settings-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.order-scan-settings-button:hover {
    transform: rotate(30deg);
}

.order-scan-settings-popup {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 20px;
    min-width: 350px;
    display: none;
    z-index: 1000;
}

.order-scan-settings-popup.show {
    display: block;
}

.order-scan-settings-popup h3 {
    margin: 0 0 20px 0;
    color: var(--billbee-dark);
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.order-scan-settings-group {
    margin-bottom: 25px;
}

.order-scan-settings-group label {
    display: block;
    margin-bottom: 15px;
    color: var(--billbee-dark);
    font-weight: 500;
}

.order-scan-settings-group .form-check {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 6px;
}

.order-scan-excluded-items-list {
    margin: 15px 0;
    border: 1px solid #eee;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    color: #333;
}

.order-scan-excluded-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.order-scan-excluded-item:last-child {
    border-bottom: none;
}

.order-scan-excluded-item button {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.custom-window-header {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 0;
    height: 56px;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--billbee-green);
    color: #fff;
    border-radius: 12px 12px 0 0;
}

.custom-window-title {
    flex: 1;
    padding-left: 24px;
}

.custom-window-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    margin-left: 12px;
    margin-right: 24px;
    transition: color 0.2s;
}
.custom-window-close:hover {
    color: #e05e00;
}
.custom-window-content {
    padding: 24px;
    overflow-y: auto;
    width: 100%;
}

.custom-window-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
}

.custom-window {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 480px;
    max-width: 700px;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

.product-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: 1px dashed #ccc;
    height: 150px;
    width: 100%;
    border-radius: 10px;
}
.product-image.placeholder svg {
    opacity: 0.7;
}

.excluded-items-list {
    margin: 15px 0;
    border: 1px solid #eee;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    color: #333;
    background: #fafbfc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0;
}

.excluded-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    transition: background 0.2s;
}

.excluded-item:last-child {
    border-bottom: none;
}

.excluded-item button {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    font-size: 1.1rem;
}

.excluded-item button:hover {
    background: #fee2e2;
    color: #a71d2a;
}

/* Login-Seite Styles */
body.login-page {
    background-color: var(--billbee-light);
    padding-top: 0;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    height: 120px;
    margin-bottom: 1rem;
}

.login-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
}

.product-name {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--billbee-dark);
}

.form-floating {
    margin-bottom: 1rem;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    color: #666;
    font-size: 0.9rem;
}

.login-footer a {
    color: var(--billbee-green);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: none !important;
}

/* DataTable Komponente */
.datatable-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1.5rem;
}

.datatable-header {
    margin-bottom: 1.5rem;
}

.datatable-toolbar {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.datatable-toolbar .search-wrapper {
    max-width: 400px;
}

.datatable-toolbar .input-group-text {
    color: #6c757d;
    border-color: #dee2e6;
}

.datatable-toolbar .form-control {
    border-color: #dee2e6;
}

.datatable-toolbar .form-control:focus {
    box-shadow: none;
    border-color: var(--billbee-green);
}

.datatable-toolbar .btn-group {
    margin-right: 0.5rem;
}

.datatable-toolbar .btn-outline-secondary {
    background: linear-gradient(45deg, var(--color-secondary), var(--color-secondary-light));
    border: none;
    color: var(--color-dark);
    box-shadow: 0 2px 4px rgba(255, 196, 52, 0.2);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.datatable-toolbar .btn-outline-secondary:hover,
.datatable-toolbar .btn-outline-secondary:focus,
.datatable-toolbar .btn-outline-secondary.active {
    background: linear-gradient(45deg, var(--color-secondary-dark), var(--color-secondary));
    color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 196, 52, 0.3);
}

/* Filter und Spalten Panel */
#filterPanel,
#columnPanel {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* DataTable Basis-Styling */
.datatable-container table.dataTable {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 0;
}

.datatable-container table.dataTable thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
    font-weight: 600;
    padding: 1rem;
}

.datatable-container table.dataTable tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

.datatable-container table.dataTable tbody tr:hover {
    background-color: #f8f9fa;
}

/* Karten-Ansicht */
.datatable-container.card-view table.dataTable {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: transparent;
    border: none;
}

.datatable-container.card-view table.dataTable thead {
    display: none;
}

.datatable-container.card-view table.dataTable tbody,
.datatable-container.card-view table.dataTable tr {
    display: contents;
}

.datatable-container.card-view table.dataTable td {
    display: block;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem;
    margin-bottom: 1rem;
    width: calc(33.333% - 1rem);
}

/* Responsive Anpassungen */
@media (max-width: 992px) {
    .datatable-container.card-view table.dataTable td {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .datatable-container.card-view table.dataTable td {
        width: 100%;
    }
    
    .datatable-toolbar .button-group {
        flex-wrap: wrap;
    }
    
    .datatable-toolbar .btn-group {
        margin-bottom: 0.5rem;
    }
}

/* Paginierung */
.datatable-container .dataTables_paginate {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.datatable-container .paginate_button {
    padding: 0.375rem 0.75rem;
    margin: 0 0.25rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    cursor: pointer;
}

.datatable-container .paginate_button.current {
    background: var(--billbee-green);
    border-color: var(--billbee-green);
    color: #fff;
}

.datatable-container .paginate_button:hover:not(.current) {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: var(--billbee-green);
}

/* Export Buttons */
.export-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.export-buttons .btn i {
    font-size: 1rem;
}

/* Aktive Filter Badge */
.active-filters-count {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.company-selector {
    display: flex;
    align-items: center;
}

.company-menu-btn,
.company-name-static {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    gap: 2px;
    transition: all 0.2s ease;
}

.company-menu-btn:hover,
.company-name-static:hover {
    background: var(--hover-color);
    border-color: var(--border-hover-color);
}

.company-name {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-item.active {
    background-color: var(--primary-color);
    color: var(--billbee-green);
}

/* Alte Dropdown-Styles entfernt - ersetzt durch Glass-Blur-Design */

/* Glass Blur Effect für Dropdown-Menüs - Komplette Überarbeitung */
.dropdown-menu {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    margin-top: 8px !important;
    min-width: 200px !important;
}

/* Dropdown-Items im Sidebar-Stil */
.dropdown-menu .dropdown-item {
    border-radius: 8px !important;
    padding: 12px 16px !important;
    margin: 4px 0 !important;
    background: transparent !important;
    border: none !important;
    color: #6c757d !important;
    font-weight: 500 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

.dropdown-menu .dropdown-item:hover, 
.dropdown-menu .dropdown-item:focus {
    background: rgba(248, 250, 252, 0.8) !important;
    color: #495057 !important;
    transform: translateX(2px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.dropdown-menu .dropdown-item.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0, 192, 105, 0.3) !important;
}

/* Icons in Dropdown-Items */
.dropdown-menu .dropdown-item i {
    margin-right: 12px !important;
    font-size: 1.1rem !important;
    width: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Verbindungskarten und Billbee-Button Styles */
.btn-billbee {
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-light)) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 192, 105, 0.2) !important;
    transition: all 0.3s ease !important;
}

.btn-billbee:hover {
    background: linear-gradient(45deg, var(--color-primary-dark), var(--color-primary)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 192, 105, 0.3) !important;
    color: #fff !important;
}

/* Zweiter alter Dropdown-Block entfernt */

.connection-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.connection-card .card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
    border: none;
}

.connection-card:hover .card {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px) scale(1.03);
    color: var(--billbee-green);
}

.connection-card:hover .card-title {
    color: var(--billbee-green);
}

/* Alternierende Tabellenzeilen */
.table tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.table tbody tr:hover {
    background-color: #e9ecef !important;
}

/* Anpassung fÃ¼r DataTables */
table.dataTable tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

table.dataTable tbody tr:nth-child(even) {
    background-color: #ffffff;
}

table.dataTable tbody tr:hover {
    background-color: #e9ecef !important;
}

/* DataTables Streifen */
.stripe-odd {
    background-color: #f8f9fa !important;
}

.stripe-even {
    background-color: #ffffff !important;
}

.stripe-odd:hover,
.stripe-even:hover {
    background-color: #e9ecef !important;
}

/* ==================== ERWEITERTE BUTTON STYLES ==================== */

/* Button Gruppen */
.btn-group .btn {
    border-radius: 0;
    margin-right: -1px;
}

.btn-group .btn:first-child {
    border-radius: 25px 0 0 25px;
}

.btn-group .btn:last-child {
    border-radius: 0 25px 25px 0;
    margin-right: 0;
}

.btn-group .btn:only-child {
    border-radius: 25px;
}

/* Floating Action Button */
.btn-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-light));
    box-shadow: 0 4px 12px rgba(0, 192, 105, 0.3);
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    color: white;
    border: none;
}

.btn-fab:hover {
    background: linear-gradient(45deg, var(--color-primary-dark), var(--color-primary));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 192, 105, 0.4);
    color: white;
}

/* Icon Buttons */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon i {
    font-size: 1.2rem;
}

/* Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success Button */
.btn-success {
    background: linear-gradient(45deg, #10b981, #34d399);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background: linear-gradient(45deg, #059669, #10b981);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    color: white;
}

/* Warning Button */
.btn-warning {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
    color: var(--color-dark);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(45deg, #d97706, #f59e0b);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    color: var(--color-dark);
}

/* Info Button - verwendet jetzt Grau-TÃ¶ne */
.btn-info {
    background: linear-gradient(45deg, var(--color-info), #868e96);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(45deg, #5a6268, var(--color-info));
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    color: white;
}

/* Light Button */
.btn-light {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    color: var(--billbee-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
    color: var(--billbee-dark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Dark Button */
.btn-dark {
    background: linear-gradient(45deg, var(--billbee-dark), #495057);
    box-shadow: 0 2px 4px rgba(51, 51, 51, 0.2);
}

.btn-dark:hover {
    background: linear-gradient(45deg, #212529, var(--billbee-dark));
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.3);
    color: white;
}

/* ==================== MARKEN-SPEZIFISCHE BUTTON STYLES ==================== */

/* Signature Secondary Button - Ihre Markenfarbe */
.btn-yellow,
.btn-signature {
    background: linear-gradient(45deg, var(--color-secondary), var(--color-secondary-light));
    color: var(--color-dark);
    box-shadow: 0 2px 4px rgba(255, 196, 52, 0.2);
    font-weight: 600;
}

.btn-yellow:hover,
.btn-signature:hover {
    background: linear-gradient(45deg, var(--color-secondary-dark), var(--color-secondary));
    color: var(--color-dark);
    box-shadow: 0 4px 12px rgba(255, 196, 52, 0.3);
    transform: translateY(-2px);
}

/* Premium PrimÃ¤r-SekundÃ¤r Verlauf - Einzigartige MarkenidentitÃ¤t */
.btn-premium,
.btn-brand {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 2px 4px rgba(0, 192, 105, 0.2);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-premium:hover,
.btn-brand:hover {
    background: linear-gradient(45deg, var(--color-primary-dark), var(--color-secondary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 192, 105, 0.3);
    transform: translateY(-2px);
}

/* SekundÃ¤r-PrimÃ¤r Verlauf (umgekehrt) */
.btn-highlight {
    background: linear-gradient(45deg, var(--color-secondary), var(--color-primary));
    color: white;
    box-shadow: 0 2px 4px rgba(255, 196, 52, 0.2);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-highlight:hover {
    background: linear-gradient(45deg, var(--color-secondary-dark), var(--color-primary-dark));
    color: var(--color-dark);
    box-shadow: 0 4px 12px rgba(255, 196, 52, 0.3);
    transform: translateY(-2px);
}

/* Outline Secondary Buttons - jetzt gefÃ¼llt */
.btn-outline-yellow {
    background: linear-gradient(45deg, var(--color-secondary), var(--color-secondary-light));
    color: var(--color-dark);
    border: none;
    box-shadow: 0 2px 4px rgba(255, 196, 52, 0.2);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-outline-yellow:hover {
    background: linear-gradient(45deg, var(--color-secondary-dark), var(--color-secondary));
    color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 196, 52, 0.3);
}

/* CTA (Call-to-Action) Button - Hauptmarketing-Button */
.btn-cta {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary), var(--color-secondary));
    background-size: 200% 200%;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 32px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(255, 196, 52, 0.3);
    animation: gradientShift 3s ease infinite;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 196, 52, 0.4);
    color: white;
    animation-duration: 1.5s;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Spezielle DataTable Buttons mit Markenfarben */
.dt-button.btn-brand {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary)) !important;
    color: white !important;
    font-weight: 600 !important;
}

.dt-button.btn-brand:hover {
    background: linear-gradient(45deg, var(--color-primary-dark), var(--color-secondary-dark)) !important;
    transform: translateY(-1px) !important;
}

/* FAB mit Markenfarben */
.btn-fab.btn-brand {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 4px 12px rgba(255, 196, 52, 0.3);
}

.btn-fab.btn-brand:hover {
    background: linear-gradient(45deg, var(--color-primary-dark), var(--color-secondary-dark));
    box-shadow: 0 6px 20px rgba(255, 196, 52, 0.4);
}

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

/* Moderne Checkbox-Styles */
input[type="checkbox"] {
    accent-color: var(--color-primary);
    transition: accent-color 0.2s ease;
    cursor: pointer;
}

/* Checkbox Hover-Effekte */
input[type="checkbox"]:hover {
    accent-color: var(--color-secondary);
}

/* Checkbox in Labels */
label:hover input[type="checkbox"] {
    accent-color: var(--color-secondary);
}

/* Checkbox in Dropdown-Items */
.dropdown-item:hover input[type="checkbox"],
.simple-dropdown-item:hover input[type="checkbox"] {
    accent-color: var(--color-secondary);
}

/* Form-Check Styles */
.form-check-input {
    accent-color: var(--color-primary);
    transition: accent-color 0.2s ease;
}

.form-check-input:hover,
.form-check:hover .form-check-input {
    accent-color: var(--color-secondary);
}

/* Responsive Button Anpassungen */
@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .btn-cta {
        padding: 14px 24px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .btn-fab {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
        font-size: 1.3rem;
    }
}

/* ==================== MEISTERWERK FINAL OVERRIDES ==================== */

/* Absolut ALLE Links in der Sidebar - Kein Blau erlaubt! */
.sidebar * {
    color: inherit !important;
}

.sidebar a,
.sidebar a *,
.sidebar button,
.sidebar button * {
    color: inherit !important;
    text-decoration: none !important;
}


/* Spezielle Overrides fÃ¼r Sidebar-Links */

.sidebar .menu-item.active a,
.sidebar .menu-item.open a {
    color: white !important;
}

.sidebar .submenu-item.active a {
    color: var(--color-primary) !important;
}

/* Perfect spacing adjustments */
.main-content {
    padding: 0px 32px 80px 32px;
}

/* Responsive perfection */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 20px 0;
    }
    
    .sidebar:hover,
    .sidebar.expanding {
        width: 240px;
    }
    
    .main-content {
        margin-left: 60px;
        padding: 20px 16px 70px 16px;
    }
    
    .footer {
        height: 50px;
        padding: 0 20px;
        left: 0 !important;
        z-index: 100 !important;
    }
}



/* ==================== UNIFIED CHART STYLING SYSTEM ==================== */

/* Chart Container mit Glas-Effekt */
.chart-container {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.chart-container:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Chart Canvas Optimierung */
.chart-container canvas {
    border-radius: 12px;
    max-width: 100%;
    height: auto !important;
}

/* Chart Titel Styling */
.chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-title i {
    color: var(--color-primary);
    font-size: 1rem;
}

/* Responsive Chart Höhen */
@media (max-width: 768px) {
    .chart-container {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .chart-container canvas {
        min-height: 250px !important;
    }
}



/* ==================== BRAND COLOR SYSTEM FÜR CHARTS ==================== */

/* CSS Custom Properties für JavaScript Chart-Integration */
:root {
    /* Primäre Chart-Farben */
    --chart-primary: #00C069;
    --chart-primary-light: #00d679;
    --chart-primary-dark: #008c44;
    
    /* Sekundäre Chart-Farben */
    --chart-secondary: #FFC434;
    --chart-secondary-light: #FFD666;
    --chart-secondary-dark: #E6B12F;
    
    /* Chart-Farbverläufe als CSS Gradients */
    --chart-gradient-primary: linear-gradient(135deg, #00C069 0%, #00d679 100%);
    --chart-gradient-secondary: linear-gradient(135deg, #FFC434 0%, #FFD666 100%);
    --chart-gradient-mixed: linear-gradient(135deg, #00C069 0%, #FFC434 100%);
    
    /* Erweiterte Chart-Palette */
    --chart-success: #10b981;
    --chart-warning: #f59e0b;
    --chart-danger: #dc3545;
    --chart-info: #6c757d;
    --chart-light: #f8f9fa;
    --chart-dark: #333333;
    
    /* Chart-Transparenzen */
    --chart-alpha-50: rgba(0, 192, 105, 0.5);
    --chart-alpha-25: rgba(0, 192, 105, 0.25);
    --chart-alpha-10: rgba(0, 192, 105, 0.1);
}

/* ==================== GLASS MORPHISM HOVER EFFECTS ==================== */

/* Universal Glass-Hover für Tabellen */
.glass-table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
}

.glass-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(0, 192, 105, 0.15), 0 0 40px rgba(0, 192, 105, 0.08);
    border: 1px solid rgba(0, 192, 105, 0.3);
    outline: 1px solid rgba(0, 192, 105, 0.2);
    outline-offset: 1px;
}

.glass-table tbody tr:hover td {
    border-color: rgba(255, 255, 255, 0.2);
    color: #333;
}

.glass-table thead th {
    background: linear-gradient(135deg, rgba(0, 192, 105, 0.1), rgba(0, 192, 105, 0.05));
    border-bottom: 2px solid rgba(0, 192, 105, 0.2);
    font-weight: 600;
    color: #00C069;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.glass-table {
    border-collapse: separate;
    border-spacing: 0 4px;
}

.glass-table tbody tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.glass-table tbody tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Universal Glass-Hover für Cards */
.glass-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 192, 105, 0.12);
    border: 1px solid rgba(0, 192, 105, 0.2);
    transform: translateY(-2px);
}

/* Glass-Hover für bestehende Card-Links */
.card:hover {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ==================== CHART.JS GLOBAL DEFAULTS (über JavaScript) ==================== */

/*
VERWENDUNG IN JAVASCRIPT:

// Basis-Konfiguration für alle Charts
const chartDefaults = {
    responsive: true,
    maintainAspectRatio: false,
    plugins: {
        legend: {
            display: false
        },
        tooltip: {
            backgroundColor: 'rgba(255, 255, 255, 0.95)',
            titleColor: '#333333',
            bodyColor: '#666666',
            borderColor: 'rgba(0, 192, 105, 0.2)',
            borderWidth: 1,
            cornerRadius: 8,
            titleFont: { weight: '600' },
            bodyFont: { weight: '400' }
        }
    },
    scales: {
        x: {
            beginAtZero: true,
            grid: {
                color: 'rgba(0, 0, 0, 0.05)',
                borderColor: 'rgba(0, 0, 0, 0.1)'
            },
            ticks: {
                color: '#666666',
                font: { weight: '500' }
            }
        },
        y: {
            beginAtZero: true,
            grid: {
                color: 'rgba(0, 0, 0, 0.05)',
                borderColor: 'rgba(0, 0, 0, 0.1)'
            },
            ticks: {
                color: '#666666',
                font: { weight: '500' }
            }
        }
    }
};

// Farb-Definitionen für Charts
const chartColors = {
    primary: '#00C069',
    primaryLight: '#00d679',
    primaryDark: '#008c44',
    secondary: '#FFC434',
    secondaryLight: '#FFD666',
    secondaryDark: '#E6B12F',
    
    // Gradient-Arrays für Chart.js
    primaryGradient: ['#00C069', '#00d679'],
    secondaryGradient: ['#FFC434', '#FFD666'],
    mixedGradient: ['#00C069', '#FFC434'],
    
    // Multi-Color-Arrays für mehrere Datensätze
    palette: ['#00C069', '#FFC434', '#10b981', '#f59e0b', '#6c757d', '#dc3545'],
    paletteLight: ['#00d679', '#FFD666', '#34d399', '#fbbf24', '#868e96', '#f87171']
};

// Gradient-Erstellungs-Hilfsfunktion
function createGradient(ctx, gradient, direction = 'vertical') {
    const canvasGradient = direction === 'vertical' 
        ? ctx.createLinearGradient(0, 0, 0, ctx.canvas.height)
        : ctx.createLinearGradient(0, 0, ctx.canvas.width, 0);
    
    canvasGradient.addColorStop(0, gradient[0]);
    canvasGradient.addColorStop(1, gradient[1]);
    return canvasGradient;
}
*/

/* ==================== UNIFIED CONTENT SYSTEM ==================== */

/* Content Container - Max-Breite wie im Foto */
content {
    display: block;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Content Header mit Titel und Submenu */
content-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Content Layout - Full Width */
content {
    display: block;
    width: 100%;
}

/* Subseiten-Navigation - zwischen Menubar und Content */
.subpage-navigation {
    background: #eee;
    border-bottom: none;  /* Keine Border für nahtlosen Übergang */
    padding: 1rem 0;
    position: relative;
    margin-bottom: 0;  /* Kein Margin für nahtlosen Übergang zum Header */
    top: 0px; /* Unter der Menubar */
    z-index: 100;
    margin-left: 60px;

    padding-bottom: 0rem;
}

/* Submenu-Titel entfernt - nur intelligente Subseiten-Anzeige */

.subpage-navigation-menu {
    display: flex;
    gap: 0; /* Kein horizontaler Abstand zwischen den Links */
    row-gap: 0.25rem; /* Abstand zwischen den Zeilen */
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    padding: 0 2rem;
}

.subpage-navigation-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: white;
    max-width: 250px;
    color: #6c757d;
    text-decoration: none;
    border-radius: 0; /* Keine Abrundung zwischen den Links */
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    border: 2px solid transparent;
    flex: 0 0 auto; /* Nicht gleichmäßig verteilen, sondern an Inhalt anpassen */
    min-width: fit-content; /* Mindestbreite an Inhalt anpassen */
    border-right: 1px solid #dee2e6; /* Trennlinie zwischen den Links */
}

/* Abrundung für Zeilenanfang und -ende bei Flexbox-Wrap */
/* Diese Lösung funktioniert für die meisten Fälle, auch bei Umbruch */

/* Erstes Element einer Zeile: Links abgerundet */
.subpage-navigation-menu a:first-child {
    border-radius: 25px 0 0 25px;
}

/* Letztes Element einer Zeile: Rechts abgerundet */
.subpage-navigation-menu a:last-child {
    border-radius: 0 25px 25px 0;
    border-right: 2px solid transparent;
}

/* Einzelnes Element (ganze Zeile): Komplett abgerundet */
.subpage-navigation-menu a:first-child:last-child {
    border-radius: 25px;
    border-right: 2px solid transparent;
}

/* Spezielle Behandlung für Zeilenumbrüche - wird via JavaScript gesetzt */
.subpage-navigation-menu a.row-start {
    border-radius: 25px 0 0 25px !important;
}

.subpage-navigation-menu a.row-end {
    border-radius: 0 25px 25px 0 !important;
    border-right: 2px solid transparent !important;
}

.subpage-navigation-menu a.row-single {
    border-radius: 25px !important;
    border-right: 2px solid transparent !important;
}

.subpage-navigation-menu a:hover {
    background: var(--color-primary); /* Grüne Füllung */
    color: white; /* Weißer Text */
    text-decoration: none;
    transform: translateY(-1px);
    border: 2px solid var(--color-primary); /* Einheitlicher grüner Border */
    z-index: 1;
}

.subpage-navigation-menu a.active {
    background: #6c757d; /* Dunkle Füllung für aktiven Link */
    color: white;
    border: 2px solid #6c757d; /* Einheitlicher dunkler Border */
    z-index: 1;
}

.subpage-navigation-menu a i {
    font-size: 0.7rem;
    width: 14px;
    text-align: center;
}

/* Main Content Area */
content-main {
    display: block;
    width: 100%;
}

content-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

content-title i {
    color: var(--color-primary);
    font-size: 1.5rem;
}

content-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

/* Responsive Submenu System */
content-submenu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
}

content-submenu-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

content-submenu-buttons .btn {
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-light));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 192, 105, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

content-submenu-buttons .btn:hover {
    background: linear-gradient(45deg, var(--color-primary-dark), var(--color-primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 192, 105, 0.3);
    color: white;
    text-decoration: none;
}

content-submenu-buttons .btn i {
    font-size: 0.85rem;
}

/* Hamburger Menu für schmale Bildschirme */
content-hamburger {
    display: none;
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-light));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 192, 105, 0.2);
}

content-hamburger:hover {
    background: linear-gradient(45deg, var(--color-primary-dark), var(--color-primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 192, 105, 0.3);
}

/* Dropdown für Hamburger Menu */
content-submenu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    min-width: 250px;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

content-submenu-dropdown.show {
    display: block;
}

content-submenu-dropdown .dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

content-submenu-dropdown .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(0, 192, 105, 0.1), rgba(0, 192, 105, 0.05));
    color: var(--color-primary);
    text-decoration: none;
    transform: translateX(4px);
}

content-submenu-dropdown .dropdown-item i {
    margin-right: 0.75rem;
    color: var(--color-primary);
    width: 16px;
    text-align: center;
}

/* Content Body */
content-body {
    display: block;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Content Tabs */
content-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

content-tab {
    display: block;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

content-tab:hover {
    background: #e9ecef;
    color: #495057;
    border-color: var(--color-primary);
    text-decoration: none;
}

content-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

content-tab i {
    font-size: 0.9rem;
}

/* Content Sections */
content-section {
    display: block;
    margin-bottom: 2rem;
}

content-section:last-child {
    margin-bottom: 0;
}

content-section-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

content-section-title i {
    color: var(--color-primary);
    font-size: 1rem;
}

/* Responsive Verhalten */
@media (max-width: 1200px) {
    content {
        padding: 0 1.5rem;
    }
}

@media (max-width: 992px) {
    /* Subseiten-Navigation ausblenden bei schmalen Bildschirmen */
    .subpage-navigation {
        display: none;
    }
    
    /* Hamburger Menu für Subseiten */
    content-submenu-buttons {
        display: none;
    }
    
    content-hamburger {
        display: flex;
    }
    
    content-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    content {
        padding: 0 1rem;
    }
    
    content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    content-title {
        font-size: 1.3rem;
    }
    
    content-body {
        padding: 1.5rem;
    }
    
    content-tabs {
        gap: 0.25rem;
    }
    
    content-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    content {
        padding: 0 0.75rem;
    }
    
    content-body {
        padding: 1rem;
    }
    
    content-tab {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
content-tab i {
    display: none;
    }
}

/* Content Tab Content */
content-tab-content {
    display: block;
}

/* ==================== MOBILE LOGO MANAGEMENT ==================== */

/* Desktop Logo - links mit Menü-Icons in einer Flucht */
.desktop-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile Logo - standardmäßig ausgeblendet */
.mobile-logo {
    display: none !important;
}

/* Mobile: Desktop Logo ausblenden, Mobile Logo anzeigen */
@media (max-width: 768px) {
    .desktop-logo {
        display: none !important;
    }
    .mobile-logo {
        display: flex !important;
    }
}

/* Desktop: Mobile Logo ausblenden */
@media (min-width: 769px) {
    .mobile-logo {
        display: none !important;
    }
}

/* ===========================================
   CONTENT HEADER SYSTEM
   =========================================== */

.content-header {
    background: #eee ;
    border-bottom: 1px solid #ddd ;
    width: 100%;  /* Full-width wie subpage-navigation */
    margin: 0 32px 2rem 32px;  /* Kein Top-Margin für nahtlosen Übergang */
    padding: 0 60px 0 60px;
    
    margin-bottom: 1rem;
    position: relative;
    box-shadow: none !important;
}

.content-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 48px;
}



.content-header .content-header-content {
    /* Wird von JavaScript dynamisch an main-content angepasst */
    width: 100%;  /* Default: Full-width */
    max-width: none;
    margin: 0 auto;  /* Zentriert */
    padding: 1.5rem 15px;  /* Default Padding */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;  /* Transparent, damit Header-Background durchscheint */
    border-bottom: none;  /* Keine Border für nahtlosen Übergang */
    box-shadow: none;
}

.content-header-left {
    display: flex;
    align-items: flex-start; /* Oben ausrichten statt zentriert */
    gap: 1rem;
    flex: 1;
    min-width: 0; /* Verhindert Overflow */
}

.content-header-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    margin-top: 5px;
    justify-content: center;
    background: linear-gradient(135deg, #00C069 0%, #00a055 100%);
    border-radius: 8px;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 192, 105, 0.2);
}

.content-header-text {
    flex: 1;
    min-width: 0; /* Verhindert Overflow */
}

.content-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.125rem 0;
    line-height: 1.2;
    word-wrap: break-word;
}

.content-header-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.3;
    word-wrap: break-word;
}

.content-header-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.content-header-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.content-header-buttons .btn {
    white-space: nowrap;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 50px; /* Pillen-Design */
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.content-header-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Einheitliches Pillen-Design für Header-Buttons mit Farben */
.content-header-buttons a {
    border-radius: 50px !important; /* Pillen-Design */
    padding: 0.5rem 1.25rem !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: 2px solid transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* Standard grüne Farbe für Header-Buttons */
.content-header-buttons a.btn-primary {
    background: linear-gradient(135deg, #00C069 0%, #00a055 100%) !important;
    color: white !important;
    border-color: #00C069 !important;
}

.content-header-buttons a.btn-primary:hover {
    background: linear-gradient(135deg, #00a055 0%, #008a47 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 192, 105, 0.3) !important;
}

/* Sekundäre Buttons */
.content-header-buttons a.btn-outline-secondary {
    background: transparent !important;
    color: #6c757d !important;
    border-color: #6c757d !important;
}

.content-header-buttons a.btn-outline-secondary:hover {
    background: #6c757d !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3) !important;
}

/* Warning Buttons */
.content-header-buttons a.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    color: #212529 !important;
    border-color: #ffc107 !important;
}

.content-header-buttons a.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3) !important;
}

/* Success Buttons */
.content-header-buttons a.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
    color: white !important;
    border-color: #28a745 !important;
}

.content-header-buttons a.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

/* Danger Buttons */
.content-header-buttons a.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
    border-color: #dc3545 !important;
}

.content-header-buttons a.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
}

/* Info Buttons */
.content-header-buttons a.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    color: white !important;
    border-color: #17a2b8 !important;
}

.content-header-buttons a.btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3) !important;
}

/* Responsive Design für Content-Header */
@media (max-width: 768px) {
    .content-header {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .content-header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .content-header-left {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .content-header-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .content-header-title {
        font-size: 1.5rem;
    }
    
    .content-header-subtitle {
        font-size: 0.9rem;
    }
    
    .content-header-right {
        align-self: stretch;
    }
    
    .content-header-buttons {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .content-header-buttons .btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .content-header-buttons .btn {
        flex: 1 1 100%;
        min-width: auto;
    }
    
    .content-header-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Disabled Button Styles */
.btn:disabled,
.btn[disabled] {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

.btn:disabled:hover,
.btn[disabled]:hover {
    transform: none !important;
    box-shadow: none !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

/* Spezifische Styles für Content-Header-Buttons */
.content-header-buttons .btn:disabled,
.content-header-buttons .btn[disabled] {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

.content-header-buttons .btn:disabled:hover,
.content-header-buttons .btn[disabled]:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #6c757d !important;
    border-color: #6c757d !important;
}

/* ================================================
   Custom Content Elements für Procurement-Seiten
   ================================================ */

/* Custom Content Elements */
content {
    display: block;
    width: 100%;
}

content-main {
    display: block;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}