/* CSS Custom Property für dynamische Viewport-Höhe (Mobile Browser Support) */
:root {
    --vh: 1vh;
}

/* Buttons in der Kopfzeile rechtsbündig nebeneinander */
.header-action-btns {
    display: flex;
    gap: 12px;
    margin-left: auto;
    align-items: center;
}
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.form-group > .form-control {
    margin-bottom: 1em;
}
.role-details {
    margin-bottom: 1.5em;
}
.roles-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.15em;
}
.roles-form {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    max-width: 420px;
}
.roles-form button[type="submit"] {
    margin-top: 0.7em;
}
.user-form-vertical .btn-primary,
.user-form-vertical button[type="submit"] {
    min-width: 0;
    width: auto;
    padding-left: 18px;
    padding-right: 18px;
}
.profile-form button[type="submit"] {
    margin-top: 0.7em;
}
.profile-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.15em;
}
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    max-width: 420px;
}
.user-form-vertical .btn-primary {
    min-width: 0;
    width: auto;
    padding-left: 18px;
    padding-right: 18px;
}
.user-form-vertical .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}
/* Kundenformular: Abstand und schmalere Felder */
#toggle-customer-form {
    margin-bottom: 1.5em !important;
}
.customer-form {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    max-width: 420px;
}
.customer-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.15em;
}
.customer-form .form-group input,
.customer-form .form-group select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
/* Kundenverwaltung: Karten und Listen */
.customer-list-section {
    margin-top: 2em;
}
.customer-list {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    max-width: 600px;
    margin-left: 0;
}
.customer-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(52,86,139,0.07);
    border: 1px solid #e0e6ef;
    padding: 1.2em 1.5em 1.1em 1.5em;
    display: flex;
    flex-direction: column;
    gap: 0.7em;
}
.customer-card-header {
    font-weight: 600;
    font-size: 1.12em;
    color:rgba(52,86,139,0.07);
    margin-bottom: 0.3em;
}
.customer-card-details div {
    font-size: 1em;
    color: #223355;
    margin-bottom: 0.2em;
}
/* Modernes Card-Layout für Appdatenverwaltung */
.appdata-grid {
    display: flex;
    flex-direction: column;
    gap: 2em;
    margin-bottom: 2em;
}
.appdata-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(52,86,139,0.07);
    padding: 1.2em 1.5em 1.1em 1.5em;
    min-width: 0;
    width: 100%;
    max-width: 600px;
    margin: 0 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 1em;
    border: 1px solid #e0e6ef;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.appdata-card:hover {
    box-shadow: 0 4px 18px rgba(52,86,139,0.13);
    border-color: #b3c6e0;
}
.appdata-card-header {
    font-weight: 600;
    font-size: 1.12em;
    color: #34568B;
    margin-bottom: 0.5em;
    letter-spacing: 0.01em;
}
.appdata-list {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin-bottom: 0.5em;
}
.appdata-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f8fa;
    border-radius: 5px;
    padding: 0.5em 0.9em;
    transition: background 0.18s;
}
.appdata-list-item:hover {
    background: #eaf1fb;
}
.appdata-list-label {
    color: #223355;
    font-size: 1em;
    word-break: break-all;
}
.appdata-remove-btn {
    background-color: #c82333;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 1.1em;
    margin-left: 0.5em;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
}
.appdata-remove-btn:hover {
    background-color: #a81d2a;
    box-shadow: 0 2px 6px rgba(200,35,51,0.13);
}
.appdata-add-form {
    display: flex;
    gap: 0.7em;
    align-items: center;
    margin-top: 0.2em;
}
.appdata-input {
    flex: 1 1 120px;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    font-size: 1em;
    background: #f8f9fa;
    color: #34568B;
    transition: border-color 0.2s;
}
.appdata-input:focus {
    border-color: #34568B;
    outline: none;
}
.appdata-add-btn {
    padding: 7px 15px;
    font-size: 1.2em;
    border-radius: 4px;
    background: #495057;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
}
.appdata-add-btn:hover {
    background: #343a40;
    box-shadow: 0 2px 6px rgba(52,86,139,0.13);
}
@media (max-width: 900px) {
    .appdata-grid { flex-direction: column; gap: 1.2em; }
    .appdata-card { min-width: 0; width: 100%; }
}
.user-table-controls .form-control {
    background: #fff !important;
    color: #34568B;
    border: 1px solid #ced4da;
    box-shadow: none;
}
/* Modernes Card-Layout für Nutzerliste */
.user-table-cards {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}
.user-card {
    background: #fff;
    border-radius: 8px;
    padding: 0.6em 0.8em;
    display: flex;
    align-items: center;
    transition: background 0.2s, border-color 0.2s;
    border: 1px solid #e0e6ef;
}
.user-card:hover {
    background: #f8fafc;
    border-color: #c5d4e8;
}
.user-card-row {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.8em;
}
.user-card-name {
    flex: 2 1 140px;
    min-width: 100px;
    font-weight: 500;
    color: #223355;
    font-size: 0.9em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-card-email {
    flex: 2 1 160px;
    min-width: 120px;
    color: #495057;
    font-size: 0.85em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-card-customer {
    flex: 2 1 160px;
    min-width: 120px;
    color: #495057;
    font-size: 0.85em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-card-role {
    flex: 1 1 80px;
    min-width: 70px;
}
.user-card-action {
    flex: 0 0 auto;
    min-width: 80px;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.user-table-controls .form-control {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    font-size: 1em;
    background: #f8f9fa;
    color: #34568B;
    transition: border-color 0.2s;
}
.user-table-controls .form-control:focus {
    border-color: #34568B;
    outline: none;
}
@media (max-width: 600px) {
    .user-card-row { flex-direction: column; align-items: flex-start; gap: 0.5em; }
    .user-card { padding: 0.8em 0.7em; }
    .user-card-name, .user-card-role, .user-card-action { min-width: 0; }
}
.user-form-vertical .form-group:last-child {
    margin-top: 1.2em;
}
/* Schmalere Felder im Benutzerformular */
#user-form-wrapper .form-group input,
#user-form-wrapper .form-group select {
    max-width: 260px;
    min-width: 120px;
    width: 100%;
    display: inline-block;
}
/* Modernisiertes Nutzer-Tabellen-Layout */
.modern-users-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    box-shadow: 0 2px 12px rgba(52,86,139,0.07);
    border-radius: 10px;
    overflow: hidden;
}
.modern-users-table th, .modern-users-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #e0e6ef;
    font-size: 1em;
}
.modern-users-table th {
    background: #f5f8fa;
    color: #34568B;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-bottom: 2px solid #e0e6ef;
}
.modern-users-table tr:last-child td {
    border-bottom: none;
}
.user-cell {
    display: flex;
    align-items: center;
    gap: 0.7em;
}
.user-avatar {
    width: 32px;
    height: 32px;
    background: #eaf1fb;
    color: #34568B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 1px 4px rgba(52,86,139,0.08);
}
.user-name {
    font-weight: 500;
    color: #223355;
}
.role-pill {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 0.98em;
    font-weight: 500;
    color: #fff;
    background: #34568B;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 4px rgba(52,86,139,0.08);
}
.role-pill-fleet { background: #4A6D9C; }
.role-pill-werkstatt { background: #6083AD; }
.role-pill-admin { background: #495057; }
.admin-lock {
    color: #888;
    font-size: 1.2em;
    margin-left: 8px;
}
@media (max-width: 600px) {
    .modern-users-table th, .modern-users-table td {
        padding: 10px 6px;
        font-size: 0.97em;
    }
    .user-avatar { width: 26px; height: 26px; font-size: 0.98em; }
    .role-pill { padding: 4px 10px; font-size: 0.93em; }
    .user-remove-btn { padding: 6px 10px; font-size: 0.93em; }
}
/* Sticky Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
}
/* Allgemeine Stile */
*, *::before, *::after {
    /* Globale Hardwarebeschleunigung */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

html {
    /* GPU-Rendering für gesamte Seite */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    margin: 0; 
    background-color: #f8f9fa; /* Ein neutraleres, helles Grau */
    /* Hardwarebeschleunigung */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Optimiertes Akkordeon Design für Rollenverwaltung */
.accordion {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2em;
    box-shadow: 0 2px 12px rgba(52,86,139,0.07);
    background: #f4f7fb;
}
.accordion-item {
    border-bottom: 1px solid #e0e6ef;
    background: #fff;
    transition: box-shadow 0.2s;
}
.accordion-item:last-child {
    border-bottom: none;
}
.accordion-header {
    background: linear-gradient(90deg, #f5f8fa 80%, #eaf1fb 100%);
    cursor: pointer;
    padding: 1.2em 1.5em;
    font-weight: 600;
    font-size: 1.08em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    width: 100%;
    outline: none;
    color: #34568B;
    letter-spacing: 0.01em;
    transition: background 0.2s, color 0.2s;
    box-shadow: none;
}
.accordion-header.active, .accordion-header:hover {
    background: #eaf1fb;
    color: #223355;
}
.accordion-arrow {
    font-size: 1.2em;
    margin-left: 1em;
    color: #34568B;
    transition: transform 0.2s, color 0.2s;
}
.accordion-header.active .accordion-arrow {
    transform: rotate(90deg);
    color: #223355;
}
.accordion-content {
    display: none;
    padding: 1.5em 2em 1.5em 2em;
    background: #f9fbfd;
    border-top: 1px solid #e0e6ef;
    animation: fadeIn 0.2s;
}
.accordion-content.open {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Details für Checkboxen und Permissions */
.permission-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1em 2em;
    margin-bottom: 1.2em;
}
.permission-checkbox {
    font-size: 0.98em;
    color: #34568B;
    display: flex;
    align-items: center;
    gap: 0.5em;
    background: #f5f8fa;
    border-radius: 4px;
    padding: 0.3em 0.8em;
    margin-bottom: 0.3em;
    transition: background 0.2s;
}
.permission-checkbox input[type="checkbox"] {
    accent-color: #34568B;
    width: 1.1em;
    height: 1.1em;
}
.role-actions {
    display: flex;
    gap: 1em;
    align-items: center;
    margin-top: 0.5em;
}
.form-group input, 
.form-group select, 
.form-group textarea, 
.dynamic-cell select, 
.dynamic-cell input { 
    padding: 10px; 
    border-radius: 4px; 
    border: 1px solid #ced4da; 
    font-family: inherit; 
    font-size: 14px; 
    width: 100%; 
    box-sizing: border-box; 
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus, 
.dynamic-cell select:focus, 
.dynamic-cell input:focus {
    outline: none;
    border-color: #34568B; 
    box-shadow: 0 0 0 3px rgba(52, 86, 139, 0.15);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group select, .dynamic-cell select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2334568B' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}


/* Buttons - Einheitliche Größen */
.btn { 
    padding: 8px 16px; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: 500; 
    text-decoration: none; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center; 
    font-size: 13px;
    min-height: 36px;
    transition: background-color 0.2s, border-color 0.2s;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 30px;
}
.btn-lg {
    padding: 10px 20px;
    font-size: 14px;
    min-height: 40px;
}
.btn-primary, .add-btn { 
    background-color: #34568B;
    color: white; 
}
.btn-primary:hover, .add-btn:hover { 
    background-color: #2a4570;
}
/* Entfernt Unterstreichung und Border für den Button in der Kopfzeile */
.new-request-btn, .new-request-btn:link, .new-request-btn:visited, .new-request-btn:hover, .new-request-btn:active {
    background-color: #c82333; /* Corporate Red */
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    border: none !important;
    border-bottom: none !important;
    text-decoration: none !important;
    box-shadow: none;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
}
.new-request-btn:hover, .new-request-btn:active {
    background-color: #a81d2a; /* Darker Red */
    text-decoration: none !important;
}

.btn-secondary { 
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #d0d7e2;
}
.btn-secondary:hover { 
    background-color: #dee2e6;
    border-color: #c5ccd5;
}
.btn-danger {
    background-color: #dc3545;
    color: white;
}
.btn-danger:hover {
    background-color: #c82333;
}
.btn-success {
    background-color: #28a745;
    color: white;
}
.btn-success:hover {
    background-color: #218838;
}
.remove-btn { 
    background-color: #c82333;
    color: white; 
    padding: 6px 12px; 
    font-size: 12px;
    min-height: 30px;
}

/* Aktions-Buttons in der Tabelle */
.action-link {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: white !important;
    border-radius: 6px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s;
    margin-right: 5px;
    background-color: #34568B;
    min-height: 32px;
}
.action-link:last-child { margin-right: 0; }
.action-link:hover {
    filter: brightness(90%);
}

.pickup-link { background-color: #4A6D9C !important; }
.amend-link { background-color: #6083AD !important; }
.picked-up-link { background-color: #7698BE !important; }


/* App-Layout-Struktur */
.app-layout { display: flex; min-height: calc(var(--vh, 1vh) * 100); }
/* Default sidebar style */
.sidebar {
    position: relative;
    width: 250px;
    min-width: 250px;
    background-color: #e9ecef; /* Helles Grau */
    transition: none; /* Wird per JS aktiviert */
    color: #343a40;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid #dee2e6;
    z-index: 110;
    height: calc(var(--vh, 1vh) * 100);
    max-height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    /* Hardwarebeschleunigung */
    will-change: width, min-width, transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Mobile & Tablet: Sidebar ausblenden (bis 1366px für iPad Pro Querformat) */
@media screen and (max-width: 1366px) {
    .app-layout {
        display: block !important;
    }
    
    .sidebar {
        position: fixed !important;
        left: -300px !important;
        top: 0 !important;
        width: 280px !important;
        min-width: 280px !important;
        max-width: 85vw !important;
        height: calc(var(--vh, 1vh) * 100) !important;
        z-index: 1000 !important;
        transition: left 0.3s ease !important;
        transform: none !important;
    }
    
    .sidebar.minimized {
        left: -300px !important;
        width: 280px !important;
        min-width: 280px !important;
    }
    
    .sidebar.mobile-open {
        left: 0 !important;
    }
    
    .sidebar.mobile-open.minimized {
        left: 0 !important;
        width: 280px !important;
        min-width: 280px !important;
    }
    
    .sidebar.mobile-open .sidebar-header,
    .sidebar.mobile-open .sidebar-logo-area,
    .sidebar.mobile-open .sidebar-userinfo,
    .sidebar.mobile-open .sidebar-username,
    .sidebar.mobile-open .sidebar-customer,
    .sidebar.mobile-open nav,
    .sidebar.mobile-open .sidebar-scroll,
    .sidebar.mobile-open .sidebar-footer {
        display: block !important;
    }
    
    .sidebar-toggle-btn {
        position: fixed !important;
        left: 10px !important;
        top: 10px !important;
        z-index: 1001 !important;
        background: #34568B !important;
        color: white !important;
        border-radius: 8px !important;
        padding: 10px 14px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
        font-size: 18px !important;
        width: auto !important;
        height: auto !important;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.active {
        display: block !important;
    }
    
    .main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    /* Alle h2 Überschriften nach rechts, damit Toggle-Button Platz hat */
    h2 {
        margin-left: 55px !important;
    }
}

/* Nur Smartphones im Querformat (kleine Höhe): Minimierte Sidebar statt versteckt */
@media screen and (max-width: 900px) and (max-height: 450px) and (orientation: landscape) {
    .app-layout {
        display: flex !important;
    }
    
    .sidebar,
    .sidebar.minimized {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
        height: calc(var(--vh, 1vh) * 100) !important;
        z-index: 1000 !important;
        transition: width 0.3s ease !important;
        transform: none !important;
    }
    
    .sidebar .sidebar-header,
    .sidebar .sidebar-logo-area,
    .sidebar .sidebar-userinfo,
    .sidebar .sidebar-username,
    .sidebar .sidebar-customer,
    .sidebar nav span,
    .sidebar .submenu,
    .sidebar .sidebar-footer {
        display: none !important;
    }
    
    .sidebar nav {
        display: block !important;
    }
    
    .sidebar nav a {
        justify-content: center !important;
        padding: 12px 0 !important;
    }
    
    .sidebar nav a i {
        margin: 0 !important;
        font-size: 18px !important;
    }
    
    .sidebar.mobile-open,
    .sidebar.mobile-open.minimized {
        left: 0 !important;
        width: 280px !important;
        min-width: 280px !important;
        max-width: 85vw !important;
    }
    
    .sidebar.mobile-open .sidebar-header,
    .sidebar.mobile-open .sidebar-logo-area,
    .sidebar.mobile-open .sidebar-userinfo,
    .sidebar.mobile-open .sidebar-username,
    .sidebar.mobile-open .sidebar-customer,
    .sidebar.mobile-open nav span,
    .sidebar.mobile-open .submenu,
    .sidebar.mobile-open .sidebar-footer {
        display: block !important;
    }
    
    .sidebar.mobile-open nav a {
        justify-content: flex-start !important;
        padding: 12px 20px !important;
    }
    
    .sidebar-toggle-btn {
        position: fixed !important;
        left: 70px !important;
        top: 10px !important;
        z-index: 1001 !important;
        background: #34568B !important;
        color: white !important;
        border-radius: 8px !important;
        padding: 10px 14px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
        font-size: 18px !important;
    }
    
    .main-wrapper {
        margin-left: 60px !important;
        width: calc(100% - 60px) !important;
    }
    
    h2 {
        margin-left: 0 !important;
    }
}

/* Sidebar mit aktivierter Transition (wird per JS gesetzt) */
.sidebar.transition-enabled {
    transition: width 0.3s ease, min-width 0.3s ease;
}

/* Sidebar initial minimiert (gesetzt im head BEVOR Seite rendert) */
html.sidebar-minimized-initial .sidebar {
    width: 60px !important;
    min-width: 60px !important;
}

html.sidebar-minimized-initial .sidebar .sidebar-header,
html.sidebar-minimized-initial .sidebar .sidebar-logo-area,
html.sidebar-minimized-initial .sidebar .sidebar-userinfo,
html.sidebar-minimized-initial .sidebar .sidebar-username,
html.sidebar-minimized-initial .sidebar .sidebar-customer,
html.sidebar-minimized-initial .sidebar nav,
html.sidebar-minimized-initial .sidebar .sidebar-scroll,
html.sidebar-minimized-initial .sidebar .sidebar-footer {
    display: none !important;
}

html.sidebar-minimized-initial .sidebar .sidebar-toggle-btn {
    position: relative;
    top: 0;
    right: 0;
    margin: 15px auto;
}

.sidebar-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    mask-image: linear-gradient(to bottom, black calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 20px), transparent 100%);
}

.sidebar-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari und Opera */
}

/* SIDEBAR MINIMIZED FUNKTIONALITÄT */

/* Toggle Button - Desktop: rechts an der Sidebar auf Logo-Höhe, Mobile: fixed oben links */
.sidebar-toggle-btn {
    position: fixed;
    top: 45px; /* Mittig auf Logo-Höhe */
    left: 222px; /* 250px Sidebar-Breite - 28px Button */
    z-index: 200;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #34568B;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.4em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease, color 0.2s, transform 0.2s;
}

/* Button-Position wenn Sidebar minimiert - mittig in der 60px Sidebar */
.sidebar.minimized ~ .sidebar-toggle-btn,
.main-wrapper.sidebar-minimized ~ .sidebar-toggle-btn {
    left: 16px; /* Mittig in 60px breiter Sidebar: (60-28)/2 = 16 */
}

.sidebar-toggle-btn:hover {
    color: #223355;
    transform: scale(1.1);
}

.sidebar.minimized .sidebar-toggle-btn {
    position: relative;
    top: 0;
    right: 0;
    margin: 15px auto;
}

.sidebar.minimized {
    width: 60px !important;
    min-width: 60px !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.sidebar.minimized:focus,
.sidebar.minimized:active {
    outline: none;
    background-color: #e9ecef;
}

.sidebar.minimized .sidebar-header,
.sidebar.minimized .sidebar-logo-area,
.sidebar.minimized .sidebar-userinfo,
.sidebar.minimized .sidebar-username,
.sidebar.minimized .sidebar-customer,
.sidebar.minimized nav,
.sidebar.minimized .sidebar-scroll,
.sidebar.minimized .sidebar-footer {
    display: none !important;
}

/* Main wrapper anpassen wenn Sidebar minimiert */
.main-wrapper.sidebar-minimized {
    margin-left: 0;
}

.sidebar-header { padding: 1.5em; text-align: center; border-bottom: 1px solid #dee2e6; }
.sidebar-header img { width: 150px; margin-bottom: 1rem; }
.sidebar-header h1 { margin: 0; color: #2c3e50; border: none; font-size: 1.5rem; }
.sidebar nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar nav li { position: relative; }
.sidebar nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em 1.5em;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    border-left: 4px solid transparent;
}
.sidebar nav a:hover { background-color: #dee2e6; color: #212529; }
.sidebar nav a:focus { outline: none; }
.sidebar nav a.active {
    background-color: #34568B; 
    color: #fff;
    font-weight: bold;
    border-left: 4px solid #87CEEB; 
}
/* Submenu Parent-Links (Produktivität, Benutzer, Einstellungen) sollen NIE blau sein */
.sidebar .has-submenu > a {
    background-color: transparent !important;
    color: #495057 !important;
    font-weight: normal !important;
    border-left: 4px solid transparent !important;
}
.sidebar .has-submenu > a:hover {
    background-color: #dee2e6 !important;
    color: #212529 !important;
}

/* Submenu Styles */
.sidebar .has-submenu > a::after {
    content: '›';
    font-size: 1.5em;
    transform: rotate(0deg);
    transition: transform 0.2s;
}
.sidebar .has-submenu.open > a::after { transform: rotate(90deg); }
.sidebar .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f8f9fa;
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(.4,0,.2,1), opacity 0.25s;
}
.sidebar .has-submenu.open .submenu {
    max-height: 500px; /* ausreichend für viele Einträge */
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
}
.sidebar .has-submenu:not(.open) .submenu {
    pointer-events: none;
}
.sidebar .submenu a {
    padding-left: 3em; 
    font-size: 0.9em;
    border-left: 4px solid transparent !important; 
    color: #6c757d;
    pointer-events: auto;
    cursor: pointer;
    white-space: nowrap;
}
.sidebar .submenu a:hover { background-color: #e9ecef; }
.sidebar .submenu a.active { background-color: #34568B; color: #fff; }


.sidebar-footer {
    margin-top: auto;
    padding: 1.5em;
    text-align: center;
    background: #e9ecef;
    box-shadow: none;
    z-index: auto;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden; /* Verhindert doppelte Scrollbalken */
}

.main-content {
    flex-grow: 1;
    padding: 2em;
    overflow-y: auto; /* Nur dieser Bereich ist scrollbar */
}
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #34568B; /* Corporate Blue */
    color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0; /* Verhindert, dass der Header schrumpft */
}
.main-header h2 { color: #fff; border: none; margin: 0; }

/* Login Seite */
.login-body { display: flex; justify-content: center; align-items: center; height: calc(var(--vh, 1vh) * 100); background-color: #f8f9fa; }
.login-container { padding: 2.5em; background: white; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); width: 100%; max-width: 400px; }
.login-container h1 { text-align: center; margin-bottom: 1.5em; }
.login-container .form-group { margin-bottom: 1.5em; }
.login-container .btn { width: 100%; padding: 12px; }

/* Tabellen & Status Pills */
.filter-section { background-color: #f8f9fa; border: 1px solid #dee2e6; }
.summary-card { background-color: #e9ecef; }
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border: 1px solid #dee2e6; padding: 12px; text-align: left; white-space: nowrap; }
thead { background-color: #343a40; color: white; }

.status-pill { padding: 5px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.status-offen { background-color: #fde2e4; color: #d90429; }
.status-geplant { background-color: #d1f7c4; color: #2d6a4f; }
.status-in-reparatur { background-color: #fff3cd; color: #856404; }
.status-abholung-bereit { background-color: #d1ecf1; color: #0c5460; }
.status-beendet { background-color: #e2e3e5; color: #383d41; }
.status-storniert { background-color: #f8d7da; color: #721c24; }
.pitstop-ja { color: #155724; }
.pitstop-nein-abgelehnt { color: #721c24; }
.pitstop-angefragt { color: #856404; }
.error-box { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; padding: 15px; border-radius: 4px; margin-bottom: 1em; }
.success-message { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; padding: 15px; border-radius: 4px; margin-bottom: 1em; }
.char-counter { font-size: 12px; color: #555; text-align: right; margin-top: 2px;}
.label-counter-group { display: flex; justify-content: space-between; align-items: baseline; }

/* Reparaturanfrage: Pflichtfeld-Stern */
.required-star-black {
    color: #222;
    font-weight: bold;
    font-size: 1.1em;
    margin-left: 2px;
}

/* Reparaturanfrage: Anliegen-Layout */
.anliegen-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 2.5fr;
    max-width: 760px;
    gap: 0.7em;
}
.anliegen-horizontal {
    display: grid;
    grid-template-columns: 1.5fr 1fr 2.5fr auto;
    gap: 0.7em;
    align-items: start;
    max-width: 760px;
    margin-bottom: 0.5em;
}
.beschreibung-cell input {
    width: 100%;
    min-width: 120px;
    max-width: 340px;
}

/* Reparaturanfrage: Entfernen-Button */
.remove-btn-red {
    background: linear-gradient(90deg, #e74c3c 60%, #c0392b 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.55em 1.5em;
    font-size: 1em;
    font-weight: 600;
    min-width: 110px;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
    box-shadow: 0 2px 8px rgba(231,76,60,0.10);
    margin-left: 0.5em;
    text-align: center;
    letter-spacing: 0.01em;
}
.remove-btn-red:hover, .remove-btn-red:focus {
    background: linear-gradient(90deg, #c0392b 60%, #e74c3c 100%);
    box-shadow: 0 4px 16px rgba(231,76,60,0.18);
    transform: translateY(-2px) scale(1.04);
    outline: none;
}
.anliegen-horizontal select,
.anliegen-horizontal input[type="text"] {
    border-radius: 6px;
    border: 1.5px solid #ced4da;
    background: #f8f9fa;
    font-size: 1em;
    color: #223355;
    box-shadow: 0 1px 4px rgba(52,86,139,0.06);
    transition: border-color 0.18s, box-shadow 0.18s;
    padding: 10px 12px;
    margin: 0;
}
.anliegen-horizontal select:focus,
.anliegen-horizontal input[type="text"]:focus {
    border-color: #34568B;
    box-shadow: 0 0 0 3px rgba(52,86,139,0.13);
    outline: none;
}

/* Sidebar-Overlay */
.sidebar-overlay {
    display: none;
}

/* Paginierung Styles - Unauffällig */
.pagination-wrapper {
    border-top: 1px solid #eee;
    padding-top: 0.8em;
}

.btn-pagination {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    padding: 4px 8px;
    font-size: 0.85em;
    min-width: 28px;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.btn-pagination:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
    text-decoration: none;
}

.btn-pagination-active {
    background: #e9ecef;
    border: 1px solid #adb5bd;
    color: #495057;
    padding: 4px 8px;
    font-size: 0.85em;
    min-width: 28px;
    text-align: center;
    border-radius: 3px;
    font-weight: 500;
}

.pagination-info {
    font-weight: normal;
}

.pagination-summary {
    background: none;
    border: none;
    padding: 0;
    font-weight: normal;
    color: #888;
}

@media (max-width: 768px) {
    .pagination-wrapper {
        flex-direction: column;
        gap: 0.5em;
    }
    
    .pagination-info {
        order: -1;
    }
}

/* Kundenverwaltung - Gleiche blaue Schrift wie Benutzerverwaltung */
.customer-controls .form-control {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    font-size: 1em;
    background: white;
    color: #34568B;
    transition: border-color 0.2s;
}
.customer-controls .form-control:focus {
    border-color: #34568B;
    outline: none;
}

/* Modal Responsive Design für optimale Bildschirmanpassung */
#lc-ticket-modal-content {
    /* Grundeinstellung für große Bildschirme */
    max-width: 90vw;
    width: 90vw;
    max-height: calc(var(--vh, 1vh) * 90);
}

/* Große Desktop-Bildschirme (> 1200px) */
@media (min-width: 1200px) {
    #lc-ticket-modal-content {
        max-width: 80vw;
        width: 80vw;
    }
}

/* Mittlere Bildschirme (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    #lc-ticket-modal-content {
        max-width: 85vw;
        width: 85vw;
        max-height: calc(var(--vh, 1vh) * 85);
    }
}

/* Kleine Bildschirme/Tablets (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    #lc-ticket-modal-content {
        max-width: 95vw;
        width: 95vw;
        max-height: calc(var(--vh, 1vh) * 90);
        padding: 1.5em 1.8em 1.2em 1.8em;
    }
}

/* Mobile Geräte (< 480px) */
@media (max-width: 480px) {
    #lc-ticket-modal-content {
        max-width: 98vw;
        width: 98vw;
        max-height: calc(var(--vh, 1vh) * 95);
        padding: 1.2em 1.5em 1em 1.5em;
        border-radius: 4px;
    }
}

/* ========================================
   GLOBALE MODERNE DESIGN-KOMPONENTEN
   LegnoCare Einheitliches Design System
   ======================================== */

/* Page Container - Wrapper für alle Seiten */
.page-container {
    padding: 0;
    max-width: 100%;
}

/* Page Header - Einheitliche Seitenüberschriften */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h1,
.page-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #223355;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 i,
.page-header h2 i {
    color: #34568B;
}

/* Content Cards - Einheitliche Karten */
.content-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(52, 86, 139, 0.07);
    border: 1px solid #e0e6ef;
    transition: all 0.3s ease;
    overflow: hidden;
}

.content-card:hover {
    box-shadow: 0 4px 18px rgba(52, 86, 139, 0.13);
    border-color: #b3c6e0;
}

.content-card .card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e6ef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.content-card .card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #223355;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-card .card-header h3 i {
    color: #34568B;
}

.content-card .card-body {
    padding: 20px;
}

/* KPI Cards Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.kpi-card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(52, 86, 139, 0.07);
    border: 1px solid #e0e6ef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #34568B;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(52, 86, 139, 0.15);
}

.kpi-card .kpi-icon {
    font-size: 28px;
    color: #34568B;
    margin-bottom: 12px;
}

.kpi-card .kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: #223355;
    margin-bottom: 4px;
}

.kpi-card .kpi-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* KPI Card Variants */
.kpi-card.total::before { background: #34568B; }
.kpi-card.total .kpi-icon { color: #34568B; }

.kpi-card.open::before { background: #c82333; }
.kpi-card.open .kpi-icon { color: #c82333; }

.kpi-card.progress::before { background: #f0ad4e; }
.kpi-card.progress .kpi-icon { color: #f0ad4e; }

.kpi-card.done::before { background: #28a745; }
.kpi-card.done .kpi-icon { color: #28a745; }

.kpi-card.pickups::before { background: #17a2b8; }
.kpi-card.pickups .kpi-icon { color: #17a2b8; }

/* Form Sections - Einheitliche Formular-Container */
.form-section-modern {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(52, 86, 139, 0.07);
    border: 1px solid #e0e6ef;
    margin-bottom: 24px;
}

.form-section-modern h3 {
    font-size: 18px;
    font-weight: 600;
    color: #223355;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e6ef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-modern h3 i {
    color: #34568B;
}

/* Modern Form Controls */
.form-group-modern {
    margin-bottom: 20px;
}

.form-group-modern label {
    display: block;
    font-weight: 500;
    color: #223355;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group-modern input,
.form-group-modern select,
.form-group-modern textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    color: #223355;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group-modern input:focus,
.form-group-modern select:focus,
.form-group-modern textarea:focus {
    border-color: #34568B;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 86, 139, 0.13);
    outline: none;
}

/* Data Table - Einheitliche Tabellen */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    background: #fff;
}

.data-table th {
    background: #f5f8fa;
    color: #223355;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 2px solid #e0e6ef;
    white-space: nowrap;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background 0.15s ease;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* List Cards - Einheitliche Listen-Elemente */
.list-card {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.15s ease;
    gap: 16px;
}

.list-card:hover {
    background: #eaf1fb;
    transform: translateX(4px);
}

.list-card:last-child {
    margin-bottom: 0;
}

/* Quick Actions Grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e0e6ef;
    border-radius: 10px;
    color: #34568B;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 8px;
}

.quick-action-btn:hover {
    background: #eaf1fb;
    border-color: #34568B;
    transform: translateY(-2px);
}

.quick-action-btn i {
    font-size: 24px;
}

.quick-action-btn span {
    font-size: 13px;
    font-weight: 500;
}

/* Status Pills - Einheitliche Status-Badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-pill.offen,
.status-pill.status-offen {
    background: rgba(200, 35, 51, 0.1);
    color: #c82333;
}

.status-pill.geplant,
.status-pill.status-geplant {
    background: rgba(52, 86, 139, 0.1);
    color: #34568B;
}

.status-pill.in-bearbeitung,
.status-pill.status-in-bearbeitung,
.status-pill.status-in-reparatur {
    background: rgba(240, 173, 78, 0.15);
    color: #d68a00;
}

.status-pill.erledigt,
.status-pill.status-erledigt,
.status-pill.status-beendet {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-pill.status-abholung-bereit {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

/* Role Pills */
.role-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.role-pill-admin {
    background: rgba(200, 35, 51, 0.1);
    color: #c82333;
}

.role-pill-werkstatt {
    background: rgba(52, 86, 139, 0.1);
    color: #34568B;
}

.role-pill-mechaniker {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.role-pill-fleet {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    color: #ced4da;
    margin-bottom: 16px;
}

.empty-state p {
    margin: 0;
    font-size: 15px;
}

/* Card Badge */
.card-badge {
    background: #e0e6ef;
    color: #34568B;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 1366px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Button Variants */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-action.primary {
    background: #c82333;
    color: white;
    box-shadow: 0 4px 12px rgba(200, 35, 51, 0.25);
}

.btn-action.primary:hover {
    background: #a81d2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 35, 51, 0.35);
}

.btn-action.secondary {
    background: #f8f9fa;
    color: #34568B;
    border: 2px solid #dee2e6;
}

.btn-action.secondary:hover {
    border-color: #34568B;
    background: #eaf1fb;
}

/* Summary Cards for Analysis */
.summary-card {
    background: white;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(52, 86, 139, 0.07);
    border: 1px solid #e0e6ef;
}

.summary-card .value {
    font-size: 32px;
    font-weight: 700;
    color: #34568B;
    margin-bottom: 4px;
}

.summary-card .label {
    font-size: 14px;
    color: #6c757d;
}

/* Permission Checkboxes */
.permission-list-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #e0e6ef;
}

.permission-checkbox-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-radius: 6px;
    padding: 10px 14px;
    border: 1px solid #e0e6ef;
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: normal;
    font-size: 14px;
    color: #223355;
}

.permission-checkbox-modern:hover {
    background: #eaf1fb;
    border-color: #34568B;
}

.permission-checkbox-modern input[type="checkbox"] {
    accent-color: #34568B;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Info Box */
.info-box {
    background: #eaf1fb;
    border: 1px solid #34568B;
    border-radius: 8px;
    padding: 16px 20px;
    color: #223355;
    font-size: 14px;
    margin-bottom: 20px;
}

.info-box i {
    color: #34568B;
    margin-right: 8px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(52, 86, 139, 0.07);
    border: 1px solid #e0e6ef;
    margin-bottom: 24px;
}

.filter-bar .filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-bar label {
    font-weight: 500;
    color: #34568B;
    font-size: 13px;
}

.filter-bar input,
.filter-bar select {
    padding: 10px 14px;
    border-radius: 6px;
    border: 1.5px solid #ced4da;
    font-size: 14px;
    background: #f8f9fa;
    color: #223355;
    transition: border-color 0.2s;
    min-width: 160px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #34568B;
    box-shadow: 0 0 0 3px rgba(52, 86, 139, 0.13);
    outline: none;
}

/* User Cards */
.user-card {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #e0e6ef;
    transition: background 0.2s, border-color 0.2s;
    margin-bottom: 8px;
}

.user-card:hover {
    background: #f8fafc;
    border-color: #c5d4e8;
}

/* Pagination */
.btn-pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: white;
    border: 1px solid #e0e6ef;
    border-radius: 6px;
    color: #34568B;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-pagination:hover {
    background: #eaf1fb;
    border-color: #34568B;
}

.btn-pagination-active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #34568B;
    border: 1px solid #34568B;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}