:root {
    /* Light Theme Defaults */
    --primary-color: #5b7bff;
    --primary-hover: #4e6be3;
    --secondary-color: #94a3b8;
    --success-color: #34d399;
    --danger-color: #ef4444;
    --bg-color: #f3f6ff;
    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.45);
    --text-color: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-light: #edf2f7;
    --nav-bg: rgba(255,255,255,0.9);
    --nav-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    --card-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    --input-bg: #ffffff;
    --table-header-bg: #f8fafc;
    --table-hover-bg: #f1f5f9;
}

[data-theme="dark"] {
    /* Dark Theme Overrides */
    --bg-color: #0b1222;
    --card-bg: #0f172a;
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #1f2a44;
    --border-light: #1c243b;
    --nav-bg: rgba(15, 23, 42, 0.9);
    --nav-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --card-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --input-bg: #0b1222;
    --table-header-bg: #111827;
    --table-hover-bg: #0f172a;
    
    /* Adjust colors for dark mode visibility */
    --primary-color: #8b9eff; 
    --primary-hover: #7082ff;
    --secondary-color: #475569;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(91, 123, 255, 0.18), transparent 28%),
                radial-gradient(circle at 80% 10%, rgba(52, 211, 153, 0.18), transparent 25%),
                radial-gradient(circle at 50% 85%, rgba(14, 165, 233, 0.16), transparent 30%);
    z-index: 0;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 18px;
    position: relative;
    z-index: 1;
}

.main-content {
    padding: clamp(14px, 3vw, 24px);
    padding-bottom: clamp(90px, 14vh, 120px);
    position: relative;
    z-index: 1;
}

.surface {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
}

/* Auth Pages */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.auth-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    padding: 0.6rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    gap: 0.5rem; /* Icon space */
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

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

.btn:active {
    transform: translateY(1px);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}
.badge-success { background: var(--success-color); }
.badge-warning { background: #f59e0b; color: #1f2937; }
.badge-secondary { background: var(--secondary-color); }
.badge-danger { background: var(--danger-color); }

.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

[data-theme="dark"] .alert-danger {
    color: #ff6b6b;
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
}

/* Navbar */
.navbar {
    background-color: var(--nav-bg);
    padding: 0.65rem 0;
    box-shadow: var(--nav-shadow);
    position: sticky;
    top: 0;
    z-index: 1200;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
}

.nav-row,
.nav-unified {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-unified {
    flex-wrap: wrap;
}
.nav-unified .nav-links {
    margin-top: 0;
    flex: 1;
    justify-content: center;
    min-width: 0;
}
.nav-unified .nav-actions {
    flex-shrink: 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    text-decoration: none;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    border-radius: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 0.6rem;
    border-radius: 14px;
}

.nav-links {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem;
    border-radius: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}


.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.9rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    background: rgba(91, 123, 255, 0.12);
}

.nav-profile, .nav-profile-trigger {
    text-decoration: none;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem;
    border-radius: 12px;
}

.nav-profile-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: inherit;
}

.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.nav-avatar-fallback {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-logout {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.nav-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* Card Styling Helper */
.card {
    background: var(--glass-bg);
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.25rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.card h1, .card h2, .card h3 {
    margin: 0 0 0.5rem;
    color: var(--text-color);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

th {
    background-color: var(--table-header-bg);
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-color);
}

tr:hover {
    background-color: var(--table-hover-bg);
}

/* Branch Hours Inline */
.branch-hours-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}
.branch-hours-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--text-muted);
}
.branch-hours-scroller {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.branch-hour-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--table-hover-bg);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 0.9rem;
}
.branch-hour-day {
    font-weight: 700;
    color: var(--text-color);
}
.branch-hour-time {
    color: var(--text-muted);
}
.branch-hour-pill.branch-hour-closed .branch-hour-time {
    color: var(--danger-color);
    font-style: italic;
}

/* Mobile Shift Cards */
.mobile-shift-card {
    padding: 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
}
.mobile-day-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.mobile-day-title { font-weight: 700; }
.mobile-day-sum { font-size: 0.9rem; color: var(--text-muted); }
.mobile-shift-item {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    background: var(--table-hover-bg);
    display: grid;
    gap: 6px;
}
.mobile-shift-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.mobile-shift-time { font-weight: 700; }
.mobile-shift-name { color: var(--text-muted); font-weight: 600; }
.mobile-shift-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mobile-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    font-size: 0.8rem;
}
.mobile-chip-note {
    background: rgba(91, 123, 255, 0.12);
    border-color: rgba(91, 123, 255, 0.3);
}
.mobile-shift-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}
.icon-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
}
.icon-btn.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-color);
    border-color: transparent;
}
.mobile-availability-chip {
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    margin-bottom: 0.6rem;
    background: var(--card-bg);
}
.mobile-availability-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-availability-type { font-weight: 700; }
.mobile-availability-status {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--text-muted);
}
.mobile-availability-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.shift-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.shift-toolbar .btn,
.shift-toolbar .btn-group .btn,
.shift-toolbar .btn-static {
    height: 48px;
    border-radius: 12px;
    font-weight: 600;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
}
.shift-toolbar .btn-secondary {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
    color: var(--text-color);
}
.shift-toolbar .btn-primary {
    box-shadow: 0 10px 30px rgba(91,123,255,0.25);
}
.shift-toolbar .btn:focus {
    outline: 2px solid rgba(91,123,255,0.35);
    outline-offset: 2px;
}
.shift-toolbar .btn-group .btn {
    border-radius: 12px;
}
.shift-toolbar .btn-static {
    background: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
.shift-toggle {
    display:flex;
    align-items:center;
    gap:0.4rem;
    font-size:0.9rem;
    color: var(--text-muted);
}
.shift-toggle input { accent-color: var(--primary-color); }

.ai-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}
.ai-modal-table th, .ai-modal-table td {
    padding: 6px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}
.ai-modal-table th { color: var(--text-muted); font-weight: 600; }

/* Responsive */
@media (max-width: 980px) {
    .container { padding: 0 14px; }
    .nav-unified { flex-wrap: wrap; gap: 0.6rem; }
    .nav-unified .navbar-brand { flex: 0 0 auto; }
    .nav-unified .nav-actions { flex: 0 0 auto; margin-left: auto; }
    .nav-unified .nav-links { flex: 1 1 100%; order: 3; margin-top: 0; }
}

@media (max-width: 760px) {
    html { font-size: 15px; }
    .container { padding: 0 12px; }
    .nav-actions {
        justify-content: space-between;
        width: 100%;
    }
    .nav-links {
        padding: 0.4rem;
        gap: 0.4rem;
    }
    .nav-links a {
        flex: 1;
        justify-content: center;
        text-align: center;
        padding: 0.55rem 0.65rem;
    }
    table { font-size: 0.95rem; }
    th, td { padding: 0.55rem; }
    .card { padding: 1rem; }
    /* .btn { width: 100%; } removed as requested */
    .main-content { padding-bottom: 130px; }
}

@media (max-width: 560px) {
    html { font-size: 14px; }
    .navbar { padding: 0.6rem 0; }
    .navbar-brand { font-size: 1.15rem; }
    h1 { font-size: 1.3rem; }
    h2 { font-size: 1.05rem; }
    h3 { font-size: 1rem; }
    table { min-width: 520px; font-size: 0.9rem; }
    th, td { padding: 0.45rem; }
    .card { padding: 0.95rem; }
    .form-control {
        padding: 0.55rem 0.65rem;
        font-size: 0.95rem;
    }
    .nav-actions { gap: 0.4rem; }
}

.site-footer {
    margin-top: 2rem;
    padding: 1.2rem 0 1.6rem 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
}
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}
.footer-meta { font-size: 0.9rem; color: var(--text-muted); }
.footer-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}
.footer-link:hover { text-decoration: underline; }
@media (max-width: 720px) {
    .footer-row { flex-direction: column; align-items: flex-start; }
}

.legal-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1400;
}
.legal-modal-box {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.2rem;
    width: min(640px, 100%);
    position: relative;
    box-shadow: var(--card-shadow);
}
.legal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}
.legal-close:hover { color: var(--text-color); }
.legal-section h3 { margin-top: 0; margin-bottom: 0.5rem; }
.legal-section p { margin: 0 0 0.75rem 0; line-height: 1.5; }

.mobile-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(96%, 520px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
    border-radius: 20px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
    backdrop-filter: blur(14px);
    z-index: 1200;
}

.mobile-bottom-nav a {
    text-decoration: none;
    color: var(--text-muted);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    padding: 0.4rem 0.35rem;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-bottom-nav a.active {
    color: var(--primary-color);
    background: rgba(91, 123, 255, 0.14);
}

.mobile-bottom-nav a i { font-size: 1.1rem; }

@media (min-width: 901px) {
    .mobile-bottom-nav { display: none; }
}

.desktop-only { display: block; }
.mobile-only { display: none; }

/* Mobile: Top-Nav-Links ausblenden (Bottom-Nav übernimmt), Profil-Bereich anpassen */
@media (max-width: 901px) {
    .nav-unified .nav-links { display: none !important; }
    .hide-mobile { display: none !important; }
    .nav-unified { flex-wrap: nowrap; }
    .nav-unified .navbar-brand { flex: 0 0 auto; }
    .nav-unified .nav-actions { flex: 1 1 auto; justify-content: flex-end; margin-left: 0; }
    .nav-profile-trigger { padding: 0.2rem 0.4rem; }
    .nav-profile-dropdown {
        right: 0;
        left: auto;
        min-width: 200px;
        max-width: min(280px, calc(100vw - 1.5rem));
    }
}

@media (max-width: 720px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    .branch-hours-inline { overflow-x: auto; padding-bottom: 6px; }
    .branch-hours-scroller { flex-wrap: nowrap; }
    .branch-hour-pill { white-space: nowrap; }
}

/* Mobile: Unterseiten optimieren */
@media (max-width: 720px) {
    .dashboard-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .calendar-print-container > .no-print:first-of-type { flex-direction: column; align-items: stretch; }
    .calendar-print-container .no-print form select,
    .calendar-print-container .no-print form input[type="number"] { width: 100% !important; min-width: 0; }
    .calendar-print-container .no-print form { flex-direction: column; gap: 0.5rem; }
    .calendar-print-container .no-print form > div:last-of-type { flex-wrap: wrap; }
    .card form .form-control[style*="width: auto"] { width: 100% !important; }
    /* .card table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }  -- Removed to allow specific table handling */
    
    /* Calendar Mobile: Enable Horizontal Scroll for Grid */
    .calendar-grid { 
        display: grid !important; /* Force show grid */
        overflow-x: auto; 
        min-width: 100%; 
        width: 100%;
    }
    .calendar-grid > div {
        min-width: 100px; /* Ensure days have width */
    }
    
    /* Hide specific mobile-only lists if we want desktop view */
    .mobile-list-view { display: none !important; } 
    
    /* Chat Mobile Optimizations */
    .mobile-hidden { display: none !important; }
    
    .chat-container { 
        height: calc(100vh - 80px) !important; 
        margin-top: 1rem !important;
        flex-direction: column; 
        gap: 0 !important;
    }
    
    .chat-sidebar, .chat-main {
        width: 100% !important;
        height: 100%;
        flex: 1 1 auto;
        border: none !important;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
    }
    
    .chat-main {
        position: fixed;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100dvh !important; /* Full screen for chat */
        z-index: 2000;
        background: var(--bg-color);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* Ensure input sticks to bottom */
    .chat-main form {
        position: sticky;
        bottom: 0;
        background: var(--card-bg);
        z-index: 10;
    }
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.2rem;
    margin-left: 1rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
}

.theme-toggle:hover {
    background-color: rgba(128,128,128,0.1);
}

/* Utils */
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger-color); }
.text-success { color: var(--success-color); }

/* Notification Dropdown */
.notif-wrapper {
    position: relative;
    margin-left: 1rem;
    cursor: pointer;
}
.notif-icon {
    font-size: 1.2rem;
    color: var(--text-color);
}
.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}
.notif-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}
.notif-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-color);
    background: transparent;
}
.notif-item:last-child {
    border-bottom: none;
}
.notif-item.unread {
    background-color: rgba(91, 123, 255, 0.1);
    font-weight: 500;
}
.notif-item small {
    display: block;
    color: var(--text-muted);
    margin-top: 2px;
}
.notif-empty {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
}
.notif-actions {
    padding: 0.5rem;
    text-align: center;
    background: var(--table-header-bg);
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
}
.notif-actions a {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* Profil-Dropdown */
.nav-profile-wrapper {
    position: relative;
}
.nav-profile-trigger {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    color: inherit;
    font-size: inherit;
    transition: background 0.2s;
}
.nav-profile-trigger:hover {
    background: var(--table-hover-bg);
}
.nav-profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 200px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    z-index: 1000;
    padding: 0.5rem 0;
}
.nav-profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.nav-profile-dropdown a:hover {
    background: var(--table-hover-bg);
}

/* SweetAlert2 Toast Position Fix */
div.swal2-container.swal2-top-end, 
div.swal2-container.swal2-top-right,
div.swal2-container.swal2-top {
    top: 90px !important;
    z-index: 1300 !important;
}

/* Print Optimizations */
@media print {
    @page { size: landscape; margin: 1cm; }
    body { background: white; color: black; }
    .no-print, .navbar, .site-footer, .btn, .dashboard-action-btn, .mobile-timebar { display: none !important; }
    .main-content { padding: 0 !important; margin: 0 !important; }
    .card { border: none !important; box-shadow: none !important; padding: 0 !important; background: transparent !important; }
    .container { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
    
    /* Ensure table fits */
    table { width: 100% !important; font-size: 10pt; }
    th, td { padding: 4px !important; border: 1px solid #ddd !important; }
    
    /* Hide scrollbars */
    ::-webkit-scrollbar { display: none; }
    
    /* Ensure colors print */
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
