        /* ===== THEME SYSTEM ===== */
        :root {
            --bg-primary: #1a1d29;
            --bg-secondary: #22252f;
            --bg-tertiary: #2d3139;
            --bg-hover: #3d4149;
            --bg-input: #1a1d24;
            --text-primary: #e4e4e7;
            --text-secondary: #9ca3af;
            --text-muted: #6b7280;
            --text-dim: #4b5563;
            --border-color: #3d4149;
            --border-light: #2d3139;
            --accent: #d4845c;
            --accent-light: #e8b298;
            --accent-bg: rgba(212, 132, 92, 0.15);
            --accent-bg-hover: rgba(212, 132, 92, 0.1);
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --info: #3b82f6;
            --sidebar-bg: #22252f;
            --header-bg: #22252f;
            --card-bg: #22252f;
            --modal-bg: #22252f;
            --shadow: rgba(0,0,0,0.5);
        }
        
        .theme-light {
            --bg-primary: #f0f2f5;
            --bg-secondary: #ffffff;
            --bg-tertiary: #f8f9fa;
            --bg-hover: #e8eaed;
            --bg-input: #ffffff;
            --text-primary: #1a1a2e;
            --text-secondary: #4a5568;
            --text-muted: #718096;
            --text-dim: #a0aec0;
            --border-color: #e2e8f0;
            --border-light: #edf2f7;
            --accent: #b5623a;
            --accent-light: #d4845c;
            --accent-bg: rgba(181, 98, 58, 0.08);
            --accent-bg-hover: rgba(181, 98, 58, 0.05);
            --sidebar-bg: #ffffff;
            --header-bg: #ffffff;
            --card-bg: #ffffff;
            --modal-bg: #ffffff;
            --shadow: rgba(0,0,0,0.06);
            /* Performance: contain layout recalculation */
            contain: style;
        }
        
        /* =========================================================
           PROFESSIONAL LIGHT THEME — Complete Override System
           Targets 1100+ inline dark colors via attribute selectors
           ========================================================= */
        
        /* === LAYOUT SHELLS === */
        .theme-light body, 
        .theme-light { background: #f0f2f5 !important; color: #1a1a2e !important; }
        .theme-light .app-container { background: #f0f2f5 !important; }
        .theme-light .sidebar,
        .theme-light #mainApp .sidebar { background: #ffffff !important; border-right: 1px solid #e2e8f0 !important; box-shadow: 1px 0 4px rgba(0,0,0,0.04) !important; }
        .theme-light .main-content,
        .theme-light #mainApp .main-content,
        .theme-light .content,
        .theme-light #mainApp .content,
        .theme-light .main-column { background: #f0f2f5 !important; }
        .theme-light .header,
        .theme-light #mainApp .header { background: #ffffff !important; border-bottom: 1px solid #e2e8f0 !important; box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important; }
        .theme-light .sidebar-column { background: #ffffff !important; border-left: 1px solid #e2e8f0 !important; }
        .theme-light .right-column { background: #ffffff !important; border-left: 1px solid #e2e8f0 !important; }
        
        /* === NAVIGATION === */
        .theme-light .nav-item { color: #4a5568 !important; }
        .theme-light .nav-item:hover { background: #f7f8fa !important; color: #1a1a2e !important; }
        .theme-light .nav-item.active { background: rgba(181,98,58,0.08) !important; color: #b5623a !important; }
        .theme-light .nav-item svg { opacity: 0.7; }
        .theme-light .nav-item.active svg { opacity: 1; }
        .theme-light .logo-text { color: #1a1a2e !important; }
        .theme-light .logo-icon { filter: none !important; }
        .theme-light .header-title { color: #1a1a2e !important; }
        .theme-light .header-title span { color: #4a5568 !important; }
        .theme-light .nav-group-header span { color: #718096 !important; }
        
        /* === INLINE BACKGROUND COLOR OVERRIDES === */
        /* Dark backgrounds → Light equivalents */
        .theme-light [style*="background:#1a1d24"],
        .theme-light [style*="background: #1a1d24"],
        .theme-light [style*="background:#1a1d29"],
        .theme-light [style*="background: #1a1d29"] { background: #f0f2f5 !important; }
        
        .theme-light [style*="background:#22252f"],
        .theme-light [style*="background: #22252f"] { background: #ffffff !important; }
        
        .theme-light [style*="background:#2d3139"],
        .theme-light [style*="background: #2d3139"] { background: #f8f9fa !important; }
        
        .theme-light [style*="background:#1e2028"],
        .theme-light [style*="background: #1e2028"] { background: #f3f4f6 !important; }
        
        .theme-light [style*="background:#161820"],
        .theme-light [style*="background: #161820"] { background: #edf2f7 !important; }
        
        .theme-light [style*="background:#3d4149"],
        .theme-light [style*="background: #3d4149"] { background: #e8eaed !important; }
        
        .theme-light [style*="background:#4b5563"],
        .theme-light [style*="background: #4b5563"] { background: #d1d5db !important; }
        
        .theme-light [style*="background:#334155"],
        .theme-light [style*="background: #334155"] { background: #e2e8f0 !important; }
        
        .theme-light [style*="background:#1e293b"],
        .theme-light [style*="background: #1e293b"] { background: #edf2f7 !important; }

        /* Module Center colors */
        .theme-light [style*="background:#111827"],
        .theme-light [style*="background: #111827"] { background: #ffffff !important; }

        .theme-light [style*="background:#171a21"],
        .theme-light [style*="background: #171a21"] { background: #f8f9fa !important; }

        /* Settings: opening hours tinted backgrounds */
        .theme-light [style*="background:#1e2738"] { background: #f0fdf4 !important; }
        .theme-light [style*="background:#2d2020"] { background: #fef2f2 !important; }
        .theme-light [style*="background:#0f3420"] { background: #ecfdf5 !important; }
        .theme-light [style*="background:#1a2d20"] { background: #f0fdf4 !important; }

        /* Semi-transparent dark backgrounds */
        .theme-light [style*="background:rgba(0,0,0,0."] { background: rgba(0,0,0,0.03) !important; }
        .theme-light [style*="background: rgba(0,0,0,0."] { background: rgba(0,0,0,0.03) !important; }
        
        /* === INLINE TEXT COLOR OVERRIDES === */
        .theme-light [style*="color:#e4e4e7"],
        .theme-light [style*="color: #e4e4e7"],
        .theme-light [style*="color:#f5f5f5"],
        .theme-light [style*="color: #f5f5f5"],
        .theme-light [style*="color:#e2e8f0"],
        .theme-light [style*="color: #e2e8f0"],
        .theme-light [style*="color:white"],
        .theme-light [style*="color: white"],
        .theme-light [style*="color:#fff"],
        .theme-light [style*="color: #fff"],
        .theme-light [style*="color:rgba(255,255,255"],
        .theme-light [style*="color: rgba(255,255,255"] { color: #1a1a2e !important; }
        
        .theme-light [style*="color:#9ca3af"],
        .theme-light [style*="color: #9ca3af"] { color: #4a5568 !important; }
        
        .theme-light [style*="color:#6b7280"],
        .theme-light [style*="color: #6b7280"] { color: #718096 !important; }
        
        .theme-light [style*="color:#4b5563"],
        .theme-light [style*="color: #4b5563"] { color: #a0aec0 !important; }

        .theme-light [style*="color:#cbd5e1"],
        .theme-light [style*="color: #cbd5e1"],
        .theme-light [style*="color:#f9fafb"],
        .theme-light [style*="color: #f9fafb"] { color: #1a1a2e !important; }
        
        /* Keep accent colors visible */
        .theme-light [style*="color:#d4845c"] { color: #b5623a !important; }
        .theme-light [style*="color:#e8b298"] { color: #c87a4f !important; }
        
        /* === INLINE BORDER OVERRIDES === */
        .theme-light [style*="border:1px solid #3d4149"],
        .theme-light [style*="border: 1px solid #3d4149"],
        .theme-light [style*="border:1px solid #2d3139"],
        .theme-light [style*="border: 1px solid #2d3139"] { border-color: #e2e8f0 !important; }
        
        .theme-light [style*="border-color:#3d4149"],
        .theme-light [style*="border-color: #3d4149"] { border-color: #e2e8f0 !important; }
        
        .theme-light [style*="border-bottom:1px solid #2d3139"],
        .theme-light [style*="border-bottom:1px solid #3d4149"],
        .theme-light [style*="border-top:1px solid #3d4149"],
        .theme-light [style*="border-top:1px solid #2d3139"],
        .theme-light [style*="border-left:3px solid transparent"] { border-color: #e2e8f0 !important; }
        
        .theme-light [style*="border:2px solid #3d4149"],
        .theme-light [style*="border: 2px solid #3d4149"] { border-color: #d1d5db !important; }
        
        .theme-light [style*="border:1px solid #475569"],
        .theme-light [style*="border: 1px solid #475569"] { border-color: #cbd5e0 !important; }

        /* Module Center + Settings tinted borders */
        .theme-light [style*="border:1px solid #374151"],
        .theme-light [style*="border: 1px solid #374151"],
        .theme-light [style*="border:1px solid #2f3540"],
        .theme-light [style*="border: 1px solid #2f3540"] { border-color: #e2e8f0 !important; }
        .theme-light [style*="border:1px solid #2d4a3e"] { border-color: #bbf7d0 !important; }
        .theme-light [style*="border:1px solid #4a2d2d"] { border-color: #fecaca !important; }
        .theme-light [style*="border:2px solid #4b5563"] { border-color: #d1d5db !important; }
        
        /* === FORM ELEMENTS === */
        .theme-light input,
        .theme-light select,
        .theme-light textarea {
            background: #ffffff !important;
            color: #1a1a2e !important;
            border-color: #e2e8f0 !important;
        }
        .theme-light input:focus,
        .theme-light select:focus,
        .theme-light textarea:focus { border-color: #b5623a !important; box-shadow: 0 0 0 3px rgba(181,98,58,0.1) !important; }
        .theme-light input::placeholder { color: #a0aec0 !important; }
        
        /* === BUTTONS (preserve colored buttons, fix neutral ones) === */
        .theme-light button { transition: all 0.15s ease !important; }
        .theme-light [style*="background:#2d3139"][onclick],
        .theme-light [style*="background: #2d3139"][onclick] { 
            background: #f3f4f6 !important; color: #1a1a2e !important; 
            border-color: #e2e8f0 !important;
        }
        .theme-light [style*="background:#2d3139"][onclick]:hover,
        .theme-light [style*="background: #2d3139"][onclick]:hover { background: #e8eaed !important; }
        
        /* Keep gradient/colored buttons but fix text — no-space variants */
        .theme-light [style*="background:linear-gradient(135deg,#d4845c"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#10b981"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#3b82f6"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#ef4444"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#22c55e"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#8b5cf6"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#f59e0b"] { color: #fff !important; }
        .theme-light [style*="background:#d4845c"] { color: #fff !important; }
        .theme-light [style*="background:#ef4444"] { color: #fff !important; }
        .theme-light [style*="background:#10b981"] { color: #fff !important; }
        .theme-light [style*="background:#3b82f6"] { color: #fff !important; }
        .theme-light [style*="background:#22c55e"] { color: #fff !important; }
        .theme-light [style*="background:#f59e0b"] { color: #fff !important; }
        .theme-light [style*="background:#25D366"] { color: #fff !important; }
        .theme-light [style*="background:#6b7280"] { color: #fff !important; }
        .theme-light [style*="background:#8b5cf6"] { color: #fff !important; }
        .theme-light [style*="background:#7c3aed"] { color: #fff !important; }
        .theme-light [style*="background:#d97706"] { color: #fff !important; }
        /* Keep gradient/colored buttons — space variants */
        .theme-light [style*="background: linear-gradient(135deg, #d4845c"] { color: #fff !important; }
        .theme-light [style*="background: linear-gradient(135deg, #10b981"] { color: #fff !important; }
        .theme-light [style*="background: linear-gradient(135deg, #3b82f6"] { color: #fff !important; }
        .theme-light [style*="background: linear-gradient(135deg, #ef4444"] { color: #fff !important; }
        .theme-light [style*="background: linear-gradient(135deg, #22c55e"] { color: #fff !important; }
        .theme-light [style*="background: linear-gradient(135deg, #8b5cf6"] { color: #fff !important; }
        .theme-light [style*="background: linear-gradient(135deg, #f59e0b"] { color: #fff !important; }
        .theme-light [style*="background: #d4845c"] { color: #fff !important; }
        .theme-light [style*="background: #ef4444"] { color: #fff !important; }
        .theme-light [style*="background: #10b981"] { color: #fff !important; }
        .theme-light [style*="background: #3b82f6"] { color: #fff !important; }
        .theme-light [style*="background: #22c55e"] { color: #fff !important; }
        .theme-light [style*="background: #f59e0b"] { color: #fff !important; }
        .theme-light [style*="background: #25D366"] { color: #fff !important; }
        .theme-light [style*="background: #6b7280"] { color: #fff !important; }
        .theme-light [style*="background: #8b5cf6"] { color: #fff !important; }
        .theme-light [style*="background: #7c3aed"] { color: #fff !important; }
        .theme-light [style*="background: #d97706"] { color: #fff !important; }
        .theme-light .nav-badge { color: #fff !important; }
        
        /* === CARDS & SECTIONS === */
        .theme-light .section { 
            background: #ffffff !important; 
            border: 1px solid #e2e8f0 !important; 
            box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important; 
        }
        .theme-light .section-title { color: #1a1a2e !important; }
        .theme-light .section-header { border-bottom: 1px solid #f0f2f5 !important; }
        .theme-light .stat-card { 
            background: #ffffff !important; 
            border: 1px solid #e2e8f0 !important; 
            box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important; 
        }
        .theme-light .stat-card.kpi-primary {
            background: linear-gradient(135deg, #fffbf7, #fff5ed) !important;
            border-color: #d4845c33 !important;
            box-shadow: 0 2px 8px rgba(212,132,92,0.08) !important;
        }
        .theme-light .stat-card.kpi-primary .stat-value {
            background: linear-gradient(135deg, #b5623a, #d4845c) !important;
            -webkit-background-clip: text !important;
            -webkit-text-fill-color: transparent !important;
        }
        .theme-light .stat-label { color: #718096 !important; }
        .theme-light .stat-value { color: #1a1a2e !important; }
        .theme-light .order-card { 
            background: #ffffff !important; 
            border: 1px solid #e2e8f0 !important; 
            box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important; 
        }
        .theme-light .order-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important; }
        
        /* === TABLE CELLS (tafels grid) === */
        .theme-light .table-cell { 
            background: #ffffff !important; 
            border: 1px solid #e2e8f0 !important; 
            color: #1a1a2e !important; 
        }
        .theme-light .table-cell:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important; }
        
        /* === TAB BARS === */
        .theme-light .tab-bar,
        .theme-light [class*="tab-bar"] { background: #ffffff !important; border: 1px solid #e2e8f0 !important; }
        .theme-light .tab-item { color: #4a5568 !important; }
        .theme-light .tab-item:hover { background: #f7f8fa !important; }
        .theme-light .tab-item.active { color: #b5623a !important; background: rgba(181,98,58,0.06) !important; border-bottom: 2px solid #b5623a !important; }
        
        /* === MODALS & OVERLAYS === */
        .theme-light .menu-overlay { background: rgba(0,0,0,0.25) !important; }
        .theme-light #settingsModal { background: rgba(0,0,0,0.15) !important; }
        .theme-light .menu-overlay .menu-container,
        .theme-light .menu-overlay .menu-modal,
        .theme-light [class*="modal"] > div[style*="background:#22252f"],
        .theme-light .menu-modal { background: #ffffff !important; box-shadow: 0 20px 60px rgba(0,0,0,0.12) !important; }
        .theme-light .menu-modal-title { color: #1a1a2e !important; }
        .theme-light .menu-overlay .menu-search-input { background: #f3f4f6 !important; color: #1a1a2e !important; border-color: #e2e8f0 !important; }
        
        /* Settings modal tabs */
        .theme-light .settings-tab { color: #4a5568 !important; }
        .theme-light .settings-tab:hover { background: #f7f8fa !important; }
        
        /* === SCROLLBARS === */
        .theme-light ::-webkit-scrollbar { width: 6px; }
        .theme-light ::-webkit-scrollbar-track { background: #f0f2f5; }
        .theme-light ::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 3px; }
        .theme-light ::-webkit-scrollbar-thumb:hover { background: #a0aec0; }
        
        /* === NOTIFICATION CARDS === */
        .theme-light .notification-item {
            background: #ffffff !important;
            border: 1px solid #e2e8f0 !important;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
        }
        .theme-light .notification-title { color: #1a1a2e !important; }
        .theme-light .notification-text { color: #4a5568 !important; }
        .theme-light .notification-icon.warning { background: rgba(234, 179, 8, 0.1) !important; }
        .theme-light .notification-icon.info { background: rgba(59, 130, 246, 0.1) !important; }
        .theme-light .notification-icon.success { background: rgba(82, 166, 125, 0.1) !important; }
        
        /* === ORDER TYPE TABS (Vandaag/Toekomstig/Kanalen + Tafel/Afhaal/Bezorg) === */
        .theme-light .order-type-tab {
            background: #f3f4f6 !important;
            border: 1px solid #e2e8f0 !important;
            color: #4a5568 !important;
        }
        .theme-light .order-type-tab:hover {
            background: #e8eaed !important;
            color: #1a1a2e !important;
        }
        .theme-light .order-type-tab.active {
            background: linear-gradient(135deg, #d4845c, #e8b298) !important;
            border-color: #d4845c !important;
            color: white !important;
        }
        
        /* === SECTION HEADERS (light) === */
        .theme-light .section-title { color: #1a1a2e !important; }
        
        /* === TABLE SELECTOR === */
        .theme-light .table-selector {
            background: #ffffff !important;
            border-color: #d4845c !important;
            color: #1a1a2e !important;
        }
        
        /* === RESERVATION CARDS (dynamic) === */
        .theme-light .reservation-card,
        .theme-light [onclick*="Reservation"][style*="background:#2d3139"],
        .theme-light [onclick*="reservation"][style*="background:#2d3139"] {
            background: #ffffff !important;
            border: 1px solid #e2e8f0 !important;
        }
        
        /* === FILTER BUTTONS === */
        .theme-light .filter-btn {
            background: #f3f4f6 !important;
            border-color: #e2e8f0 !important;
            color: #4a5568 !important;
        }
        .theme-light .filter-btn.active {
            border-color: #d4845c !important;
            color: #d4845c !important;
            background: rgba(212,132,92,0.06) !important;
        }
        
        /* === CURRENT ORDER PANEL (right side cart) === */
        .theme-light .cart-item {
            background: #f8f9fa !important;
            border-color: #e2e8f0 !important;
            color: #1a1a2e !important;
        }
        .theme-light .cart-total-section {
            background: #f8f9fa !important;
            border-color: #e2e8f0 !important;
        }
        
        /* === ORDER ICON CIRCLES === */
        .theme-light .order-icon {
            color: #ffffff !important;
        }
        .theme-light .order-title { color: #1a1a2e !important; }
        .theme-light .order-meta { color: #4a5568 !important; }
        
        /* =============================================================
           COMPREHENSIVE CLASS-BASED LIGHT OVERRIDES (43 dark classes)
           ============================================================= */
        
        /* Header actions & buttons */
        .theme-light .header-actions { background: #f3f4f6 !important; border-color: #e2e8f0 !important; }
        .theme-light .header-btn { background: #f3f4f6 !important; color: #4a5568 !important; border-color: #e2e8f0 !important; }
        .theme-light .header-btn:hover { background: #e8eaed !important; color: #1a1a2e !important; }
        
        /* Tabs system */
        .theme-light .tabs { background: #f3f4f6 !important; border-color: #e2e8f0 !important; }
        .theme-light .tab { background: #f3f4f6 !important; color: #4a5568 !important; border-color: #e2e8f0 !important; }
        .theme-light .tab:hover { background: #e8eaed !important; color: #1a1a2e !important; }
        .theme-light .tab.active { background: #ffffff !important; color: #b5623a !important; border-color: #b5623a !important; box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important; }
        
        /* Orders list & cards */
        .theme-light .orders-list { background: transparent !important; }
        .theme-light .order-card { 
            background: #ffffff !important; 
            border: 1px solid #e2e8f0 !important; 
            box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important; 
        }
        .theme-light .order-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.08) !important; }
        
        /* Stats */
        .theme-light .stats-grid { background: transparent !important; }
        .theme-light .stat-card { 
            background: #ffffff !important; 
            border: 1px solid #e2e8f0 !important; 
            box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important; 
        }
        
        /* Action buttons */
        .theme-light .action-btn.primary:hover { background: #e8eaed !important; }
        .theme-light .action-btn.secondary { background: #f3f4f6 !important; border-color: #e2e8f0 !important; color: #4a5568 !important; }
        .theme-light .actions-grid { background: transparent !important; }
        
        /* Menu modal */
        .theme-light .menu-close-btn { background: #f3f4f6 !important; color: #4a5568 !important; border-color: #e2e8f0 !important; }
        .theme-light .menu-close-btn:hover { background: #e8eaed !important; }
        .theme-light .menu-categories { background: #f8f9fa !important; border-right: 1px solid #e2e8f0 !important; }
        .theme-light .menu-category-item { background: transparent !important; color: #4a5568 !important; }
        .theme-light .menu-category-item:hover { background: #f3f4f6 !important; color: #1a1a2e !important; }
        .theme-light .menu-category-item.active { background: rgba(181,98,58,0.08) !important; color: #b5623a !important; }
        .theme-light .menu-search { background: #f8f9fa !important; border-color: #e2e8f0 !important; }
        .theme-light .menu-search-input { background: #ffffff !important; color: #1a1a2e !important; border-color: #e2e8f0 !important; }
        .theme-light .menu-search-input:focus { background: #ffffff !important; border-color: #b5623a !important; }
        .theme-light .menu-items-grid { background: transparent !important; }
        .theme-light .menu-item-card { 
            background: #ffffff !important; 
            border: 1px solid #e2e8f0 !important; 
            box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important; 
        }
        .theme-light .menu-item-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.08) !important; border-color: #b5623a !important; }
        .theme-light .menu-item-price { background: #f3f4f6 !important; color: #1a1a2e !important; }
        .theme-light .menu-item-vat { background: #f3f4f6 !important; color: #718096 !important; }
        
        /* Toast notifications */
        .theme-light .toast { 
            background: #ffffff !important; 
            border: 1px solid #e2e8f0 !important;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
            color: #1a1a2e !important;
        }
        .theme-light .toast-message { background: #ffffff !important; color: #1a1a2e !important; }
        
        /* Cart items */
        .theme-light .cart-item { 
            background: #f8f9fa !important; 
            border: 1px solid #e2e8f0 !important; 
            color: #1a1a2e !important; 
        }
        
        /* Tables grid */
        .theme-light .tables-grid { background: transparent !important; }
        .theme-light .table-card { 
            background: #ffffff !important; 
            border: 1px solid #e2e8f0 !important; 
            color: #1a1a2e !important;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
        }
        .theme-light .table-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.08) !important; }
        
        /* Nav group arrows */
        .theme-light .nav-group-arrow { color: #718096 !important; }
        .theme-light .nav-group-header { border-color: #e2e8f0 !important; }
        .theme-light .nav-group-header:hover { background: #f7f8fa !important; }
        
        /* === SIDEBAR SEARCH BAR === */
        .theme-light #mainSidebar [onclick="openGlobalSearch()"] {
            background: #f3f4f6 !important;
            border-color: #e2e8f0 !important;
        }
        .theme-light #mainSidebar [onclick="openGlobalSearch()"]:hover {
            border-color: #b5623a !important;
        }
        .theme-light #mainSidebar [onclick="openGlobalSearch()"] span {
            color: #718096 !important;
        }
        
        /* =============================================================
           TEXT COLOR OVERRIDES — all CSS classes with light-on-dark text
           ============================================================= */
        .theme-light .nav-item { color: #4a5568 !important; }
        .theme-light .nav-item span { color: #4a5568 !important; }
        .theme-light .nav-item:hover { color: #1a1a2e !important; }
        .theme-light .nav-item:hover span { color: #1a1a2e !important; }
        .theme-light .nav-item.active { color: #b5623a !important; }
        .theme-light .nav-item.active span { color: #b5623a !important; }
        .theme-light .header-title { color: #1a1a2e !important; }
        .theme-light .header-btn { color: #4a5568 !important; }
        .theme-light .header-btn:hover { color: #1a1a2e !important; }
        .theme-light .section-action { color: #718096 !important; }
        .theme-light .section-action:hover { color: #b5623a !important; }
        .theme-light .order-info { color: #1a1a2e !important; }
        .theme-light .order-price { color: #1a1a2e !important; }
        .theme-light .stat-label { color: #718096 !important; }
        .theme-light .stat-value { color: #1a1a2e !important; }
        .theme-light .action-btn.secondary:hover { color: #1a1a2e !important; }
        .theme-light .notification-content { color: #1a1a2e !important; }
        .theme-light .menu-modal-title { color: #1a1a2e !important; }
        .theme-light .menu-item-card:active { color: #1a1a2e !important; }
        .theme-light .menu-item-name { color: #1a1a2e !important; }
        .theme-light .toast-icon { color: #1a1a2e !important; }
        .theme-light .cart-item-name { color: #1a1a2e !important; }
        .theme-light .cart-item-price { color: #4a5568 !important; }
        .theme-light .cart-qty-btn { color: #4a5568 !important; border-color: #e2e8f0 !important; background: #f3f4f6 !important; }
        .theme-light .cart-qty-btn:hover { color: #1a1a2e !important; background: #e8eaed !important; }
        .theme-light .cart-qty-display { color: #1a1a2e !important; }
        .theme-light .table-card.reserved { color: #1a1a2e !important; }
        .theme-light .table-number { color: #1a1a2e !important; }
        .theme-light .address-text { color: #1a1a2e !important; }
        .theme-light .logo-text { color: #1a1a2e !important; }
        
        /* =============================================================
           BORDER OVERRIDES — all CSS classes with dark borders
           ============================================================= */
        .theme-light .sidebar-column { border-color: #e2e8f0 !important; }
        .theme-light .section { border-color: #edf2f7 !important; }
        .theme-light .orders-list { border-color: #e2e8f0 !important; }
        .theme-light .stats-grid { border-color: #e2e8f0 !important; }
        .theme-light .menu-modal { border-color: #e2e8f0 !important; box-shadow: 0 20px 60px rgba(0,0,0,0.12) !important; }
        .theme-light .menu-modal-header { border-color: #e2e8f0 !important; }
        .theme-light .menu-category-item { border-color: transparent !important; }
        .theme-light .menu-category-item.active { border-color: #b5623a !important; }
        .theme-light .menu-search { border-color: #e2e8f0 !important; }
        .theme-light .menu-item-card { border-color: #e2e8f0 !important; }
        .theme-light .table-card { border-color: #e2e8f0 !important; }
        .theme-light .address-suggestion { border-color: #e2e8f0 !important; }
        
        /* === KITCHEN DISPLAY === */
        .theme-light [id="kitchenSection"] [style*="background:#1a1d24"],
        .theme-light [id="kitchenSection"] [style*="background: #1a1d24"] { background: #f0f2f5 !important; }
        .theme-light [id="kitchenSection"] [style*="background:#22252f"],
        .theme-light [id="kitchenSection"] [style*="background: #22252f"] { background: #ffffff !important; border: 1px solid #e2e8f0 !important; }
        
        /* === TOASTS === */
        .theme-light [style*="z-index:999999"] [style*="background:#22252f"],
        .theme-light [style*="z-index:999999"] [style*="background: #22252f"] { 
            background: #ffffff !important; 
            border: 1px solid #e2e8f0 !important;
            box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
            color: #1a1a2e !important;
        }
        
        /* === PAYMENT MODAL === */
        .theme-light [id*="payment"] [style*="background:#1a1d24"],
        .theme-light [id*="payment"] [style*="background: #1a1d24"],
        .theme-light [id*="Payment"] [style*="background:#1a1d24"],
        .theme-light [id*="Payment"] [style*="background: #1a1d24"] { background: #f0f2f5 !important; }
        
        /* === RECEIPTS / BON === */
        .theme-light [id="receiptsSection"] [style*="background:#22252f"] { background: #ffffff !important; }
        .theme-light [id="receiptsSection"] [style*="background:#1e2028"] { background: #f8f9fa !important; }
        
        /* === REPORTS === */
        .theme-light [id="reportsSection"] [style*="background:#22252f"] { background: #ffffff !important; }
        
        /* === GLOBAL SEARCH DROPDOWN === */
        .theme-light #globalSearchResults { 
            background: #ffffff !important; 
            border: 2px solid #b5623a !important;
            box-shadow: 0 12px 40px rgba(0,0,0,0.1) !important;
        }
        .theme-light #globalSearchInput { background: #f3f4f6 !important; border-color: #e2e8f0 !important; color: #1a1a2e !important; }
        .theme-light #globalSearchInput:focus { border-color: #b5623a !important; }
        
        /* === DEMO / BACKEND BANNER === */
        .theme-light #demoBanner { opacity: 0.95; }
        
        /* === ALLERGEN BADGES (keep colored) === */
        .theme-light [style*="background:#f59e0b"] { color: #fff !important; }
        .theme-light [style*="background:#ef4444"] { color: #fff !important; }
        
        /* === NOTIFICATION BADGES === */
        .theme-light [style*="background:#3b82f6"][class*="badge"],
        .theme-light .nav-badge { color: #ffffff !important; }
        
        /* === SHADOW OVERRIDES for depth === */
        .theme-light [style*="box-shadow:0 20px 60px rgba(0,0,0,0.5)"] { box-shadow: 0 20px 60px rgba(0,0,0,0.1) !important; }
        .theme-light [style*="box-shadow:0 12px 40px rgba(0,0,0,0.5)"] { box-shadow: 0 12px 40px rgba(0,0,0,0.08) !important; }
        
        /* === AUTH SCREEN (keep dark) === */
        .theme-light #authScreen { color: #e4e4e7 !important; }
        .theme-light #authScreen [style*="color:#e4e4e7"] { color: #e4e4e7 !important; }
        .theme-light #authScreen [style*="color:#9ca3af"] { color: #9ca3af !important; }
        .theme-light #authScreen [style*="color:#6b7280"] { color: #6b7280 !important; }
        .theme-light #authScreen [style*="background:#22252f"] { background: #22252f !important; }
        .theme-light #authScreen [style*="background:#1a1d24"] { background: #1a1d24 !important; }
        .theme-light #authScreen [style*="background:#2d3139"] { background: #2d3139 !important; }
        .theme-light #authScreen [style*="background:#3d4149"] { background: #3d4149 !important; }
        .theme-light #authScreen [style*="border-color:#3d4149"],
        .theme-light #authScreen [style*="border:1px solid #3d4149"],
        .theme-light #authScreen [style*="border:2px solid #3d4149"] { border-color: #3d4149 !important; }
        .theme-light #authScreen input { background: #1a1d24 !important; color: #e4e4e7 !important; border-color: #3d4149 !important; }
        .theme-light #loginScreen { color: #e4e4e7 !important; }
        .theme-light #loginScreen [style*="color:#e4e4e7"] { color: #e4e4e7 !important; }
        .theme-light #loginScreen [style*="color:#9ca3af"] { color: #9ca3af !important; }
        .theme-light #loginScreen [style*="color:#6b7280"] { color: #6b7280 !important; }
        .theme-light #loginScreen [style*="background:#22252f"] { background: #22252f !important; }
        .theme-light #loginScreen [style*="background:#2d3139"] { background: #2d3139 !important; }
        .theme-light #loginScreen [style*="background:#1a1d24"] { background: #1a1d24 !important; }
        .theme-light #loginScreen [style*="background:#3d4149"] { background: #3d4149 !important; }
        .theme-light #loginScreen input,
        .theme-light #loginScreen select { background: #1a1d24 !important; color: #e4e4e7 !important; border-color: #3d4149 !important; }
        .theme-light #loginScreen button { color: inherit !important; }
        .theme-light #loginScreen .dp-input-lg { background: #2d3139 !important; border: 1px solid #3d4149 !important; color: #e4e4e7 !important; }
        .theme-light #loginScreen .dp-input-lg:hover { background: #3d4149 !important; }
        .theme-light #loginScreen .dp-input-lg:active { background: #d4845c !important; color: white !important; }
        .theme-light #loginScreen select option,
        .theme-light #authScreen select option { background: #1a1d24; color: #e4e4e7; }
        .theme-light #authScreen .dp-input-lg { background: #2d3139 !important; border: 1px solid #3d4149 !important; color: #e4e4e7 !important; }

        /* === MODULE CENTER (settings/module.js) === */
        .theme-light #dreamposModuleCenter {
            background: #f8f9fa !important;
            border-color: #e2e8f0 !important;
            color: #1a1a2e !important;
        }
        .theme-light #dreamposModuleCenter input,
        .theme-light #dreamposModuleCenter select {
            background: #ffffff !important;
            border-color: #e2e8f0 !important;
            color: #1a1a2e !important;
        }
        .theme-light #dreamposModuleCenter input:focus,
        .theme-light #dreamposModuleCenter select:focus { border-color: #b5623a !important; }
        .theme-light #dreamposModuleCenter [data-module-card] {
            background: #ffffff !important;
            border-color: #e2e8f0 !important;
        }
        .theme-light #dreamposModuleCenter [data-module-card]:hover { border-color: #b5623a !important; }
        .theme-light #dreamposModuleCenter [data-mode-pill] {
            background: #f3f4f6 !important;
            border-color: #e2e8f0 !important;
            color: #4a5568 !important;
        }
        .theme-light #dreamposModuleCenter [data-mode-pill][style*="border:1px solid #d4845c"] {
            background: rgba(181,98,58,0.08) !important;
            border-color: #d4845c !important;
            color: #b5623a !important;
        }
        .theme-light #dreamposModuleCenter strong { color: #1a1a2e !important; }

        /* === SETTINGS PANELS extra overrides === */
        .theme-light .settings-panel { color: #1a1a2e !important; }
        .theme-light .settings-panel [style*="background:#1e2028"] { background: #f3f4f6 !important; }
        .theme-light .settings-panel [style*="background:#1e2738"] { background: #f0fdf4 !important; }
        .theme-light .settings-panel [style*="background:#2d2020"] { background: #fef2f2 !important; }
        .theme-light .settings-panel [style*="background:#0f3420"] { background: #ecfdf5 !important; }
        .theme-light .settings-panel [style*="background:#1a2d20"] { background: #f0fdf4 !important; }
        .theme-light .settings-panel code[style*="background:#1a2d20"] { background: #d1fae5 !important; color: #065f46 !important; }

        /* === PRINT STYLESHEET === */

        /* ═══════════════════════════════════════════════════════
           PROFESSIONAL LIGHT THEME — Extended Coverage v2
           Settings modal, sidebar search, tables, header elements
           ═══════════════════════════════════════════════════════ */
        
        /* --- Settings Modal --- */
        .theme-light #settingsModal .menu-modal,
        .theme-light #settingsModalInner {
            background: #ffffff !important;
            border: 1px solid #e2e8f0 !important;
            box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
        }
        .theme-light #settingsModal .menu-modal-header {
            background: #ffffff !important;
            border-bottom: 1px solid #edf2f7 !important;
            color: #1a1a2e !important;
        }
        .theme-light #settingsModal .menu-modal-title { color: #1a1a2e !important; font-weight: 800 !important; }
        .theme-light #settingsModal .menu-close-btn { color: #4a5568 !important; }
        .theme-light #settingsThemeToggle {
            background: #f3f4f6 !important;
            border-color: #e2e8f0 !important;
            color: #4a5568 !important;
        }
        
        /* Settings sidebar */
        .theme-light #settingsModal [style*="background:#15171e"],
        .theme-light #settingsModal [style*="background: #15171e"] {
            background: #f8f9fa !important;
            border-right: 1px solid #e2e8f0 !important;
        }
        .theme-light .settings-tab {
            color: #4a5568 !important;
            background: transparent !important;
        }
        .theme-light .settings-tab:hover {
            background: #f0f2f5 !important;
            color: #1a1a2e !important;
        }
        .theme-light .settings-tab.active,
        .theme-light .settings-tab[style*="background:#d4845c22"] {
            background: rgba(181,98,58,0.06) !important;
            color: #b5623a !important;
            border-left-color: #b5623a !important;
        }
        
        /* Settings content area */
        .theme-light #settingsModal [style*="background:#1a1d24"],
        .theme-light #settingsModal [style*="background: #1a1d24"],
        .theme-light #settingsModal [style*="background:#22252f"],
        .theme-light #settingsModal [style*="background: #22252f"] {
            background: #ffffff !important;
        }
        .theme-light #settingsModal [style*="color:#e4e4e7"],
        .theme-light #settingsModal [style*="color: #e4e4e7"] { color: #1a1a2e !important; }
        .theme-light #settingsModal [style*="color:#9ca3af"],
        .theme-light #settingsModal [style*="color: #9ca3af"] { color: #4a5568 !important; }
        .theme-light #settingsModal [style*="color:#6b7280"],
        .theme-light #settingsModal [style*="color: #6b7280"] { color: #718096 !important; }
        .theme-light #settingsModal label { color: #1a1a2e !important; }
        .theme-light #settingsModal h2,
        .theme-light #settingsModal h3,
        .theme-light #settingsModal h4 { color: #1a1a2e !important; }
        .theme-light #settingsModal hr { border-color: #e2e8f0 !important; }
        
        /* Settings section cards */
        .theme-light #settingsModal [style*="border-radius:12px"][style*="background:#22252f"],
        .theme-light #settingsModal [style*="border-radius:10px"][style*="background:#22252f"],
        .theme-light #settingsModal [style*="border-radius:12px"][style*="background:#1a1d24"],
        .theme-light #settingsModal [style*="border-radius:10px"][style*="background:#1a1d24"] {
            background: #f8f9fa !important;
            border: 1px solid #e2e8f0 !important;
        }
        
        /* Settings opening hours rows */
        .theme-light #settingsModal [style*="border-left:4px"] {
            background: #f8f9fa !important;
        }
        
        /* --- Sidebar Fixed Settings Button --- */
        .theme-light #sidebarSettingsFixed {
            border-color: #e2e8f0 !important;
        }
        .theme-light #sidebarSettingsFixed .nav-item {
            background: #f3f4f6 !important;
            border-color: #e2e8f0 !important;
            color: #4a5568 !important;
        }
        .theme-light #sidebarSettingsFixed .nav-item:hover {
            background: #e8eaed !important;
            border-color: #b5623a !important;
            color: #b5623a !important;
        }
        
        /* --- Sidebar Search --- */
        .theme-light #sidebarSearchInput {
            background: #f3f4f6 !important;
            border-color: #e2e8f0 !important;
            color: #1a1a2e !important;
        }
        .theme-light #sidebarSearchInput:focus { border-color: #b5623a !important; }
        .theme-light #sidebarSearchResults {
            background: #ffffff !important;
            border: 1px solid #e2e8f0 !important;
            border-radius: 8px !important;
            box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
        }
        .theme-light #sidebarSearchResults div[onmouseover] { color: #1a1a2e !important; }
        .theme-light #sidebarSearchResults div[onmouseover]:hover { background: #f3f4f6 !important; }
        .theme-light #sidebarSearchClear { color: #718096 !important; }
        
        /* --- Sidebar Group Labels --- */
        .theme-light .sidebar [style*="text-transform:uppercase"] { color: #a0aec0 !important; }
        .theme-light .sidebar [style*="border-top:1px solid #2d3139"] { border-color: #e2e8f0 !important; }
        
        /* --- Nav Item Active Indicator --- */
        .theme-light .nav-item.active::before { background: #b5623a !important; }
        
        /* --- Header Language Dropdown --- */
        .theme-light #headerLangSelect {
            background: #f3f4f6 !important;
            border-color: #e2e8f0 !important;
            color: #1a1a2e !important;
        }
        
        /* --- Header Clock --- */
        .theme-light #clockTime { color: #1a1a2e !important; }
        .theme-light #clockDate { color: #718096 !important; }
        
        /* --- Header User Display --- */
        .theme-light #userDisplay div[onmouseover] { color: #1a1a2e !important; }
        .theme-light #userDisplay button {
            background: #f3f4f6 !important;
            border-color: #e2e8f0 !important;
            color: #4a5568 !important;
        }
        .theme-light #userDisplay button[style*="color:#ef4444"] {
            color: #ef4444 !important;
        }
        
        /* --- Table Cards (refined) --- */
        .theme-light .table-card {
            background: #ffffff !important;
            border-color: #e2e8f0 !important;
        }
        .theme-light .table-card:hover { 
            box-shadow: 0 3px 12px rgba(0,0,0,0.08) !important; 
            border-color: #b5623a88 !important;
        }
        .theme-light .table-card.available {
            background: #f0fdf4 !important;
            border-color: #86efac88 !important;
        }
        .theme-light .table-card.occupied {
            background: #fef2f2 !important;
            border-color: #fca5a588 !important;
        }
        .theme-light .table-card.reserved {
            background: #fefce8 !important;
            border-color: #fde68a88 !important;
        }
        .theme-light .table-number { color: #1a1a2e !important; }
        .theme-light .table-zone { color: #718096 !important; }
        .theme-light .table-card [style*="color:#52a67d"] { color: #16a34a !important; }
        .theme-light .table-card [style*="color:#ef4444"] { color: #dc2626 !important; }
        .theme-light .table-card [style*="color:#eab308"] { color: #ca8a04 !important; }
        
        /* --- Stats cards --- */
        .theme-light .stat-card::before { 
            background: linear-gradient(90deg, #b5623a, #d4845c) !important; 
        }
        .theme-light .stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important; }
        
        /* --- Notification items --- */
        .theme-light .notification-item {
            background: #f8f9fa !important;
            border: 1px solid #edf2f7 !important;
        }
        .theme-light .notification-item:hover { background: #f0f2f5 !important; }
        
        /* --- Action buttons in sidebar --- */
        .theme-light .action-btn.secondary {
            background: #f3f4f6 !important;
            border-color: #e2e8f0 !important;
            color: #4a5568 !important;
        }
        .theme-light .action-btn.secondary:hover {
            background: #e8eaed !important;
            color: #1a1a2e !important;
        }
        
        /* --- Tabs (zone filter, period, etc.) --- */
        .theme-light .tab {
            background: #f3f4f6 !important;
            border-color: #e2e8f0 !important;
            color: #4a5568 !important;
        }
        .theme-light .tab:hover { background: #e8eaed !important; color: #1a1a2e !important; }
        .theme-light .tab.active { 
            background: #b5623a !important; 
            border-color: #b5623a !important; 
            color: #ffffff !important; 
        }
        
        /* --- Zone filter buttons (inline styled) --- */
        .theme-light [id="tablesSection"] [style*="background:#3d4149"],
        .theme-light [id="tablesSection"] [style*="background: #3d4149"] {
            background: #f3f4f6 !important;
            border-color: #e2e8f0 !important;
            color: #4a5568 !important;
        }
        
        /* --- Reservations panel --- */
        .theme-light [style*="background:#22252f"][style*="border-radius"] {
            background: #ffffff !important;
        }
        
        /* --- Dagverkoop section inline cards --- */
        .theme-light #dagverkoopSection [style*="background:#22252f"] { background: #ffffff !important; }
        .theme-light #dagverkoopSection [style*="background:#2d3139"] { background: #f8f9fa !important; }
        
        /* --- Scrollable content areas --- */
        .theme-light [style*="overflow-y:auto"][style*="background:#1a1d24"],
        .theme-light [style*="overflow-y:auto"][style*="background:#22252f"] {
            background: #ffffff !important;
        }
        
        /* --- Period filter buttons --- */
        .theme-light #dagverkoopSection [style*="background:#d4845c"] { color: #fff !important; }
        .theme-light #dagverkoopSection [style*="background:#3d4149"] {
            background: #f3f4f6 !important;
            color: #4a5568 !important;
            border-color: #e2e8f0 !important;
        }
        
        /* --- Menu modal items --- */
        .theme-light .menu-item-card {
            background: #ffffff !important;
            border: 1px solid #edf2f7 !important;
        }
        .theme-light .menu-item-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important; }
        .theme-light .menu-category-item {
            background: #f8f9fa !important;
            color: #4a5568 !important;
        }
        .theme-light .menu-category-item.active {
            background: rgba(181,98,58,0.08) !important;
            color: #b5623a !important;
        }
        
        /* --- Marge indicator bar --- */
        .theme-light [style*="background:#3d4149"][style*="height:10px"] { background: #e2e8f0 !important; }
        
        /* --- Order cards in orders section --- */
        .theme-light #ordersSection [style*="background:#2d3139"] {
            background: #f8f9fa !important;
            border-color: #e2e8f0 !important;
        }
        .theme-light #ordersSection [style*="background:#d4845c"] { color: #fff !important; }
        
        /* --- Sidebar column right panel --- */
        .theme-light .sidebar-column > .section {
            background: #ffffff !important;
            border: 1px solid #edf2f7 !important;
            box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
        }
        
        /* --- Sidebar inline search result colors --- */
        .theme-light #sidebarSearchResults [style*="color:#e4e4e7"] { color: #1a1a2e !important; }
        .theme-light #sidebarSearchResults [style*="color:#6b7280"] { color: #718096 !important; }

        /* ═══ END LIGHT THEME v2 ═══ */
        
        /* ═══ LIGHT THEME v3 — PROFESSIONAL POLISH ═══ */
        
        /* Global text reset for light mode */
        .theme-light, .theme-light * { --text-primary: #1a1a2e; --text-secondary: #4a5568; --text-muted: #718096; --border-color: #e2e8f0; --bg-primary: #ffffff; --bg-secondary: #f8f9fa; --bg-tertiary: #f0f2f5; }
        
        /* All dynamically generated cards/containers */
        .theme-light [style*="background:#22252f"] { background: #ffffff !important; }
        .theme-light [style*="background: #22252f"] { background: #ffffff !important; }
        .theme-light [style*="background:#1a1d24"] { background: #f0f2f5 !important; }
        .theme-light [style*="background: #1a1d24"] { background: #f0f2f5 !important; }
        .theme-light [style*="background:#2d3139"] { background: #f8f9fa !important; }
        .theme-light [style*="background: #2d3139"] { background: #f8f9fa !important; }
        .theme-light [style*="background:#3d4149"] { background: #e8eaed !important; }
        .theme-light [style*="background: #3d4149"] { background: #e8eaed !important; }
        .theme-light [style*="background:#15171e"] { background: #f8f9fa !important; }
        .theme-light [style*="background: #15171e"] { background: #f8f9fa !important; }
        .theme-light [style*="background:#1e2028"] { background: #f3f4f6 !important; }
        .theme-light [style*="background: #1e2028"] { background: #f3f4f6 !important; }
        .theme-light [style*="background:#353940"] { background: #edf0f3 !important; }
        .theme-light [style*="background:#2a2218"] { background: #fef3e2 !important; }
        
        /* Text color overrides - comprehensive */
        .theme-light [style*="color:#e4e4e7"] { color: #1a1a2e !important; }
        .theme-light [style*="color: #e4e4e7"] { color: #1a1a2e !important; }
        .theme-light [style*="color:#f5f5f5"] { color: #1a1a2e !important; }
        .theme-light [style*="color:#e2e8f0"] { color: #1a1a2e !important; }
        .theme-light [style*="color:#d4d4d8"] { color: #2d3748 !important; }
        .theme-light [style*="color:white"] { color: #1a1a2e !important; }
        .theme-light [style*="color:#fff;"] { color: #1a1a2e !important; }
        .theme-light [style*="color:#ffffff"] { color: #1a1a2e !important; }
        .theme-light [style*="color:#9ca3af"] { color: #4a5568 !important; }
        .theme-light [style*="color: #9ca3af"] { color: #4a5568 !important; }
        .theme-light [style*="color:#6b7280"] { color: #718096 !important; }
        .theme-light [style*="color: #6b7280"] { color: #718096 !important; }
        
        /* Border overrides - comprehensive */
        .theme-light [style*="border:1px solid #3d4149"] { border-color: #e2e8f0 !important; }
        .theme-light [style*="border: 1px solid #3d4149"] { border-color: #e2e8f0 !important; }
        .theme-light [style*="border:1px solid #2d3139"] { border-color: #edf2f7 !important; }
        .theme-light [style*="border: 1px solid #2d3139"] { border-color: #edf2f7 !important; }
        .theme-light [style*="border:1px solid #4b5563"] { border-color: #cbd5e0 !important; }
        .theme-light [style*="border:2px solid #3d4149"] { border-color: #d1d5db !important; }
        .theme-light [style*="border-bottom:1px solid #2d3139"] { border-color: #edf2f7 !important; }
        .theme-light [style*="border-bottom:1px solid #3d4149"] { border-color: #e2e8f0 !important; }
        .theme-light [style*="border-top:1px solid #2d3139"] { border-color: #edf2f7 !important; }
        .theme-light [style*="border-top:1px solid #3d4149"] { border-color: #e2e8f0 !important; }
        .theme-light [style*="border-right:1px solid #2d3139"] { border-color: #edf2f7 !important; }
        .theme-light [style*="border-left:4px solid #10b981"] { background: #f0fdf4 !important; }
        .theme-light [style*="border-left:4px solid #f59e0b"] { background: #fefce8 !important; }
        .theme-light [style*="border-left:4px solid #3b82f6"] { background: #eff6ff !important; }
        .theme-light [style*="border-left:4px solid #ef4444"] { background: #fef2f2 !important; }
        
        /* PRESERVE colored buttons - white text on colored backgrounds */
        .theme-light [style*="background:#d4845c"] { color: #fff !important; }
        .theme-light [style*="background:#10b981"] { color: #fff !important; }
        .theme-light [style*="background:#059669"] { color: #fff !important; }
        .theme-light [style*="background:#3b82f6"] { color: #fff !important; }
        .theme-light [style*="background:#ef4444"] { color: #fff !important; }
        .theme-light [style*="background:#dc2626"] { color: #fff !important; }
        .theme-light [style*="background:#22c55e"] { color: #fff !important; }
        .theme-light [style*="background:#f59e0b"] { color: #fff !important; }
        .theme-light [style*="background:#8b5cf6"] { color: #fff !important; }
        .theme-light [style*="background:#6d28d9"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#d4845c"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#c77a50"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#10b981"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#3b82f6"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#ef4444"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#8b5cf6"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#f59e0b"] { color: #fff !important; }
        
        /* Settings modal inner content */
        .theme-light #settingsModal input,
        .theme-light #settingsModal select,
        .theme-light #settingsModal textarea {
            background: #ffffff !important;
            border-color: #d1d5db !important;
            color: #1a1a2e !important;
        }
        .theme-light #settingsModal input:focus,
        .theme-light #settingsModal select:focus {
            border-color: #b5623a !important;
            box-shadow: 0 0 0 3px rgba(181,98,58,0.08) !important;
        }
        
        /* Opening hours rows */
        .theme-light #settingsModal [style*="border-left:4px"] {
            background: #fafbfc !important;
            border-color: #e2e8f0 !important;
        }
        .theme-light #settingsModal [style*="Gesloten"] { opacity: 0.6; }
        
        /* Employee switcher popup in settings */
        .theme-light #empSwitcherSettings {
            background: #ffffff !important;
            border-color: #e2e8f0 !important;
            box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
        }
        
        /* Settings modal resize handle */
        .theme-light #settingsModalInner::after {
            border-color: #cbd5e0 !important;
        }
        
        /* Sidebar group dividers */
        .theme-light [style*="border-top:1px solid #2d3139"],
        .theme-light .nav-group [style*="border-top"] { border-color: #edf2f7 !important; }
        
        /* Sidebar nav group labels */
        .theme-light [style*="text-transform:uppercase"][style*="color:var(--text-muted"] { color: #a0aec0 !important; }
        
        /* Feestdagen badges */
        .theme-light [style*="background:#3b82f620"] { background: #eff6ff !important; }
        .theme-light [style*="background:#d4845c22"] { background: rgba(181,98,58,0.06) !important; }
        .theme-light [style*="background:#d4845c44"] { border-color: rgba(181,98,58,0.15) !important; }
        
        /* Toast / popup overlays */
        .theme-light [style*="z-index:999"] [style*="background:#22252f"] {
            background: #ffffff !important;
            border: 1px solid #e2e8f0 !important;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
        }
        
        /* Right column sections */
        .theme-light .sidebar-column .section {
            background: #ffffff !important;
            border: 1px solid #edf2f7 !important;
        }
        
        /* Reservation cards */
        .theme-light [style*="border-radius:12px"][style*="background:#2d3139"],
        .theme-light [style*="border-radius:10px"][style*="background:#2d3139"] {
            background: #f8f9fa !important;
            border: 1px solid #e2e8f0 !important;
        }
        
        /* Pin pad / number input */
        .theme-light [style*="background:#1a1d24"][style*="border-radius"] {
            background: #f3f4f6 !important;
        }
        
        /* Action btn secondary in light mode */
        .theme-light .action-btn {
            background: #f3f4f6 !important;
            border-color: #e2e8f0 !important;
            color: #4a5568 !important;
        }
        .theme-light .action-btn:hover {
            background: #e8eaed !important;
        }
        .theme-light .action-btn.primary {
            background: linear-gradient(135deg, #b5623a, #d4845c) !important;
            border-color: #b5623a !important;
            color: #fff !important;
        }
        
        /* ═══ END LIGHT THEME v3 ═══ */

        /* ═══════════════════════════════════════════════════════════
           LIGHT THEME v4 — ACCENT COLOR CONTRAST + OPACITY FIXES
           WCAG AA compliant darker variants for white backgrounds
           ═══════════════════════════════════════════════════════════ */

        /* --- Accent TEXT colors: darker for readability on white --- */
        .theme-light [style*="color:#10b981"],
        .theme-light [style*="color: #10b981"] { color: #047857 !important; }
        .theme-light [style*="color:#ef4444"],
        .theme-light [style*="color: #ef4444"] { color: #dc2626 !important; }
        .theme-light [style*="color:#f59e0b"],
        .theme-light [style*="color: #f59e0b"] { color: #b45309 !important; }
        .theme-light [style*="color:#3b82f6"],
        .theme-light [style*="color: #3b82f6"] { color: #1d4ed8 !important; }
        .theme-light [style*="color:#8b5cf6"],
        .theme-light [style*="color: #8b5cf6"] { color: #6d28d9 !important; }
        .theme-light [style*="color:#ec4899"],
        .theme-light [style*="color: #ec4899"] { color: #be185d !important; }
        .theme-light [style*="color:#6366f1"],
        .theme-light [style*="color: #6366f1"] { color: #4338ca !important; }
        .theme-light [style*="color:#fbbf24"],
        .theme-light [style*="color: #fbbf24"] { color: #a16207 !important; }
        .theme-light [style*="color:#fb923c"],
        .theme-light [style*="color: #fb923c"] { color: #c2410c !important; }
        .theme-light [style*="color:#06b6d4"],
        .theme-light [style*="color: #06b6d4"] { color: #0e7490 !important; }
        .theme-light [style*="color:#22c55e"],
        .theme-light [style*="color: #22c55e"] { color: #15803d !important; }
        .theme-light [style*="color:#a78bfa"],
        .theme-light [style*="color: #a78bfa"] { color: #6d28d9 !important; }
        .theme-light [style*="color:#f472b6"],
        .theme-light [style*="color: #f472b6"] { color: #be185d !important; }
        .theme-light [style*="color:#86efac"],
        .theme-light [style*="color: #86efac"] { color: #059669 !important; }
        .theme-light [style*="color:#93c5fd"],
        .theme-light [style*="color: #93c5fd"] { color: #2563eb !important; }
        .theme-light [style*="color:#fca5a5"],
        .theme-light [style*="color: #fca5a5"] { color: #dc2626 !important; }
        .theme-light [style*="color:#eab308"],
        .theme-light [style*="color: #eab308"] { color: #a16207 !important; }
        .theme-light [style*="color:#14b8a6"],
        .theme-light [style*="color: #14b8a6"] { color: #0d9488 !important; }
        .theme-light [style*="color:#059669"],
        .theme-light [style*="color: #059669"] { color: #047857 !important; }
        .theme-light [style*="color:#dc2626"],
        .theme-light [style*="color: #dc2626"] { color: #b91c1c !important; }

        /* --- 8-digit hex opacity backgrounds: light mode equivalents --- */
        /* Orange/brand opacity */
        .theme-light [style*="background:#d4845c44"],
        .theme-light [style*="background: #d4845c44"] { background: rgba(181,98,58,0.12) !important; }
        .theme-light [style*="background:#d4845c33"],
        .theme-light [style*="background: #d4845c33"] { background: rgba(181,98,58,0.08) !important; }
        .theme-light [style*="background:#d4845c11"],
        .theme-light [style*="background: #d4845c11"] { background: rgba(181,98,58,0.04) !important; }
        .theme-light [style*="background:#d4845c18"],
        .theme-light [style*="background: #d4845c18"] { background: rgba(181,98,58,0.06) !important; }
        /* Red opacity */
        .theme-light [style*="background:#ef444422"],
        .theme-light [style*="background: #ef444422"] { background: rgba(220,38,38,0.08) !important; }
        .theme-light [style*="background:#ef444433"],
        .theme-light [style*="background: #ef444433"] { background: rgba(220,38,38,0.1) !important; }
        .theme-light [style*="background:#ef444444"],
        .theme-light [style*="background: #ef444444"] { background: rgba(220,38,38,0.12) !important; }
        .theme-light [style*="background:#ef444418"],
        .theme-light [style*="background: #ef444418"] { background: rgba(220,38,38,0.06) !important; }
        .theme-light [style*="background:#ef444411"],
        .theme-light [style*="background: #ef444411"] { background: rgba(220,38,38,0.04) !important; }
        /* Green opacity */
        .theme-light [style*="background:#10b98122"],
        .theme-light [style*="background: #10b98122"] { background: rgba(4,120,87,0.08) !important; }
        .theme-light [style*="background:#10b98133"],
        .theme-light [style*="background: #10b98133"] { background: rgba(4,120,87,0.1) !important; }
        .theme-light [style*="background:#10b98144"],
        .theme-light [style*="background: #10b98144"] { background: rgba(4,120,87,0.12) !important; }
        .theme-light [style*="background:#10b98166"],
        .theme-light [style*="background: #10b98166"] { background: rgba(4,120,87,0.18) !important; }
        .theme-light [style*="background:#10b98118"],
        .theme-light [style*="background: #10b98118"] { background: rgba(4,120,87,0.06) !important; }
        /* Amber/warning opacity */
        .theme-light [style*="background:#f59e0b22"],
        .theme-light [style*="background: #f59e0b22"] { background: rgba(180,83,9,0.08) !important; }
        .theme-light [style*="background:#f59e0b33"],
        .theme-light [style*="background: #f59e0b33"] { background: rgba(180,83,9,0.1) !important; }
        .theme-light [style*="background:#f59e0b44"],
        .theme-light [style*="background: #f59e0b44"] { background: rgba(180,83,9,0.12) !important; }
        .theme-light [style*="background:#f59e0b18"],
        .theme-light [style*="background: #f59e0b18"] { background: rgba(180,83,9,0.06) !important; }
        /* Blue opacity */
        .theme-light [style*="background:#3b82f622"],
        .theme-light [style*="background: #3b82f622"] { background: rgba(29,78,216,0.08) !important; }
        .theme-light [style*="background:#3b82f618"],
        .theme-light [style*="background: #3b82f618"] { background: rgba(29,78,216,0.06) !important; }
        .theme-light [style*="background:#3b82f633"],
        .theme-light [style*="background: #3b82f633"] { background: rgba(29,78,216,0.1) !important; }
        .theme-light [style*="background:#3b82f644"],
        .theme-light [style*="background: #3b82f644"] { background: rgba(29,78,216,0.12) !important; }
        /* Purple opacity */
        .theme-light [style*="background:#8b5cf622"],
        .theme-light [style*="background: #8b5cf622"] { background: rgba(109,40,217,0.08) !important; }
        .theme-light [style*="background:#8b5cf633"],
        .theme-light [style*="background: #8b5cf633"] { background: rgba(109,40,217,0.1) !important; }
        .theme-light [style*="background:#8b5cf644"],
        .theme-light [style*="background: #8b5cf644"] { background: rgba(109,40,217,0.12) !important; }
        /* Pink opacity */
        .theme-light [style*="background:#ec489922"],
        .theme-light [style*="background: #ec489922"] { background: rgba(190,24,93,0.08) !important; }
        .theme-light [style*="background:#ec489933"],
        .theme-light [style*="background: #ec489933"] { background: rgba(190,24,93,0.1) !important; }
        /* Border opacity variants */
        .theme-light [style*="border-color:#3d414922"],
        .theme-light [style*="border:1px solid #3d414922"],
        .theme-light [style*="border:1px solid #3d414933"],
        .theme-light [style*="border:1px solid #3d414944"],
        .theme-light [style*="border:1px solid #3d414966"] { border-color: rgba(226,232,240,0.5) !important; }
        .theme-light [style*="border:1px solid #2d313944"],
        .theme-light [style*="border:1px solid #2d313966"] { border-color: rgba(237,242,247,0.6) !important; }
        .theme-light [style*="border:1px solid #d4845c44"] { border-color: rgba(181,98,58,0.2) !important; }

        /* --- Additional accent BACKGROUND colors with white text --- */
        .theme-light [style*="background:#ec4899"] { color: #fff !important; }
        .theme-light [style*="background:#6366f1"] { color: #fff !important; }
        .theme-light [style*="background:#06b6d4"] { color: #fff !important; }
        .theme-light [style*="background:#14b8a6"] { color: #fff !important; }
        .theme-light [style*="background:#fbbf24"] { color: #fff !important; }
        .theme-light [style*="background:#fb923c"] { color: #fff !important; }
        .theme-light [style*="background:#7c3aed"] { color: #fff !important; }
        .theme-light [style*="background:#4F46E5"],
        .theme-light [style*="background:#4f46e5"] { color: #fff !important; }
        .theme-light [style*="background:#f7931e"] { color: #fff !important; }
        .theme-light [style*="background:#ea580c"] { color: #fff !important; }
        .theme-light [style*="background:#065f46"] { color: #fff !important; }
        .theme-light [style*="background:#25D366"],
        .theme-light [style*="background:#25d366"] { color: #fff !important; }

        /* --- Accent gradient backgrounds: keep white text --- */
        .theme-light [style*="background:linear-gradient(135deg,#ec4899"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#6366f1"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#4F46E5"],
        .theme-light [style*="background:linear-gradient(135deg,#4f46e5"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#fb923c"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#fbbf24"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#1e40af"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#0c4a6e"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#422006"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#450a0a"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#1e1b4b"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#1a0a0a"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient(135deg,#c77a50"] { color: #fff !important; }

        /* --- Dark gradient backgrounds in fraud/audit → lighten --- */
        .theme-light [style*="background:linear-gradient(135deg,#450a0a,#7f1d1d)"] { background: linear-gradient(135deg,#fef2f2,#fee2e2) !important; color: #991b1b !important; }
        .theme-light [style*="background:linear-gradient(135deg,#1e1b4b,#312e81)"] { background: linear-gradient(135deg,#eef2ff,#e0e7ff) !important; color: #3730a3 !important; }
        .theme-light [style*="background:linear-gradient(135deg,#0c4a6e,#075985)"] { background: linear-gradient(135deg,#ecfeff,#cffafe) !important; color: #155e75 !important; }
        .theme-light [style*="background:linear-gradient(135deg,#422006,#713f12)"] { background: linear-gradient(135deg,#fffbeb,#fef3c7) !important; color: #92400e !important; }
        .theme-light [style*="background:linear-gradient(135deg,#14532d,#166534)"] { background: linear-gradient(135deg,#f0fdf4,#dcfce7) !important; color: #166534 !important; }
        .theme-light [style*="background:linear-gradient(135deg,#1a0a0a,#2d1111)"] { background: linear-gradient(135deg,#fef2f2,#fecaca) !important; color: #991b1b !important; }

        /* --- Neutral gradient backgrounds → lighten --- */
        .theme-light [style*="background:linear-gradient(135deg, #1a1d24, #2d3139)"] { background: linear-gradient(135deg, #f0f2f5, #ffffff) !important; }
        .theme-light [style*="background:linear-gradient(135deg, #22252f, #2d3139)"] { background: linear-gradient(135deg, #ffffff, #f8f9fb) !important; }

        /* --- Missing neutral background colors --- */
        .theme-light [style*="background:#1a1c24"],
        .theme-light [style*="background: #1a1c24"] { background: #f3f4f6 !important; }
        .theme-light [style*="background:#0a0a14"],
        .theme-light [style*="background: #0a0a14"] { background: #f0f2f5 !important; }
        .theme-light [style*="background:#0a0c10"],
        .theme-light [style*="background: #0a0c10"] { background: #f0f2f5 !important; }
        .theme-light [style*="background:#0f1117"],
        .theme-light [style*="background: #0f1117"] { background: #f0f2f5 !important; }

        /* ═══ END LIGHT THEME v4 ═══ */

        /* ═══ SMOOTH THEME TRANSITIONS ═══ */
        html.theme-transitioning,
        html.theme-transitioning *,
        html.theme-transitioning *::before,
        html.theme-transitioning *::after {
            transition: background-color 0.25s ease, color 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
        }

        /* === PRINT STYLESHEET === */
        @media print {
            /* Reset to printable colors */
            *, *::before, *::after {
                background: white !important;
                color: black !important;
                box-shadow: none !important;
                text-shadow: none !important;
            }
            /* Hide non-printable elements */
            .sidebar, #mainSidebar,
            .header, .header-actions,
            #mobileMenuBtn,
            .nav-item, .nav-group-header,
            .skip-link,
            button[onclick],
            .toast,
            #debugPanel,
            #globalSearchOverlay,
            #paymentModal,
            #settingsModal,
            #reservationModal,
            #menuOverlay,
            #authScreen,
            #loginScreen {
                display: none !important;
            }
            /* Full width content */
            #mainApp, #mainApp .app-container,
            #mainApp .main-content,
            #mainApp .content,
            .main-column {
                position: static !important;
                left: 0 !important;
                width: 100% !important;
                height: auto !important;
                overflow: visible !important;
            }
            /* Make sections visible for printing */
            .section { page-break-inside: avoid; }
            /* Tables */
            table { border-collapse: collapse !important; }
            th, td { border: 1px solid #ccc !important; padding: 8px !important; }
            th { background: #f3f4f6 !important; font-weight: 700 !important; }
            /* Accent colors for status badges */
            [style*="background:#10b981"],
            [style*="background: #10b981"] { background: #10b981 !important; color: white !important; }
            [style*="background:#ef4444"],
            [style*="background: #ef4444"] { background: #ef4444 !important; color: white !important; }
            [style*="background:#f59e0b"],
            [style*="background: #f59e0b"] { background: #f59e0b !important; color: white !important; }
            /* Page setup */
            @page { margin: 1.5cm; }
            /* Receipt-specific: 80mm thermal */
            .receipt-print { width: 80mm !important; margin: 0 !important; }
            .receipt-print-58 { width: 58mm !important; margin: 0 !important; }
        }

        /* === EXTRA LIGHT REFINEMENTS (hover, focus, dynamic) === */
        .theme-light [onmouseover*="background"] { transition: background 0.15s, border-color 0.15s !important; }
        
        /* Category buttons in menu */
        .theme-light [onclick*="filterCategory"][style*="background:#2d3139"],
        .theme-light [onclick*="filterCategory"][style*="background: #2d3139"] { 
            background: #f3f4f6 !important; color: #4a5568 !important; border-color: #e2e8f0 !important; 
        }
        .theme-light [onclick*="filterCategory"][style*="background:#d4845c"],
        .theme-light [onclick*="filterCategory"][style*="background: #d4845c"] { color: #fff !important; }
        
        /* Menu item cards */
        .theme-light [onclick*="addToCart"][style*="background:#2d3139"],
        .theme-light [onclick*="addToCart"][style*="background: #2d3139"] { 
            background: #ffffff !important; border: 1px solid #e2e8f0 !important;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
        }
        .theme-light [onclick*="addToCart"]:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important; }
        
        /* Cart/order summary panel */
        .theme-light [id*="cart"] [style*="background:#1a1d24"],
        .theme-light [id*="Cart"] [style*="background:#1a1d24"] { background: #f0f2f5 !important; }
        
        /* Status badges - keep text white on colored bg */
        .theme-light [style*="background:#10b981"] span,
        .theme-light [style*="background:#ef4444"] span,
        .theme-light [style*="background:#3b82f6"] span,
        .theme-light [style*="background:#f59e0b"] span,
        .theme-light [style*="background:#8b5cf6"] span { color: #fff !important; }
        
        /* Separator lines */
        .theme-light hr { border-color: #e2e8f0 !important; }
        
        /* Numpad buttons (PIN screen exempt, but payment modal numpad) */
        .theme-light [id*="ayment"] [onclick*="addDigit"][style*="background:#2d3139"] { 
            background: #f3f4f6 !important; border-color: #e2e8f0 !important; color: #1a1a2e !important; 
        }
        
        /* Settings modal - ensure white bg */
        .theme-light [id*="settings"] [style*="background:#22252f"],
        .theme-light [id*="Settings"] [style*="background:#22252f"] { background: #ffffff !important; }
        .theme-light [id*="settings"] [style*="background:#1a1d24"],
        .theme-light [id*="Settings"] [style*="background:#1a1d24"] { background: #f0f2f5 !important; }
        
        /* Reservation cards */
        .theme-light [id*="reservat"] [style*="background:#2d3139"],
        .theme-light [id*="Reservat"] [style*="background:#2d3139"] { 
            background: #ffffff !important; border: 1px solid #e2e8f0 !important; 
        }
        
        /* Z-rapport / dagafsluiting */
        .theme-light [id*="zRapport"] [style*="background:#1a1d24"] { background: #f0f2f5 !important; }
        
        /* Tooltip style popups */
        .theme-light [style*="z-index:9999"][style*="background:#22252f"] { 
            background: #ffffff !important; border: 1px solid #e2e8f0 !important;
            box-shadow: 0 8px 30px rgba(0,0,0,0.1) !important;
        }
        
        /* Tab pill selectors (orders, kitchen) */
        .theme-light [style*="border-radius"][style*="background:#3d4149"],
        .theme-light [style*="border-radius"][style*="background: #3d4149"] { background: #e8eaed !important; }
        
        /* Light mode accent adaptation */
        .theme-light [style*="color:#d4845c"],
        .theme-light [style*="color: #d4845c"] { color: #b5623a !important; }
        
        /* Ensure white text stays white on colored backgrounds */
        .theme-light [style*="background:linear-gradient"] { color: #fff !important; }
        .theme-light [style*="background:linear-gradient"] span { color: #fff !important; }
        .theme-light [style*="background:linear-gradient"] div { color: #fff !important; }

        /* === UTILITY CLASS OVERRIDES (light theme) === */
        .theme-light .dp-section-title { color: #1a1a2e !important; }
        .theme-light .dp-hint { color: #718096 !important; }
        .theme-light .dp-hr,
        .theme-light .dp-hr-lg { background: #e2e8f0 !important; }
        .theme-light .dp-input { background: #ffffff !important; border-color: #e2e8f0 !important; color: #1a1a2e !important; }
        .theme-light .dp-input:focus { border-color: #b5623a !important; }
        .theme-light .dp-input-lg { background: #f3f4f6 !important; border-color: #e2e8f0 !important; color: #1a1a2e !important; }
        .theme-light .dp-card { background: #ffffff !important; border-color: #e2e8f0 !important; }
        .theme-light .dp-card-elevated { background: #ffffff !important; border-color: #e2e8f0 !important; }
        .theme-light .dp-icon-btn { background: #f3f4f6 !important; border-color: #e2e8f0 !important; color: #1a1a2e !important; }
        .theme-light .dp-nav-item { color: #4a5568 !important; }
        .theme-light .dp-nav-item:hover { background: #f3f4f6 !important; color: #1a1a2e !important; }
        .theme-light .dp-nav-item.active { color: #b5623a !important; background: rgba(181,98,58,0.06) !important; }

        /* === SETTINGS PANEL — catch-all for remaining dark elements === */
        .theme-light .settings-panel { color: #1a1a2e !important; }
        .theme-light .settings-panel h2,
        .theme-light .settings-panel h3,
        .theme-light .settings-panel h4 { color: #1a1a2e !important; }
        .theme-light .settings-panel p { color: #4a5568 !important; }
        .theme-light .settings-panel label { color: #1a1a2e !important; }
        .theme-light .settings-panel select option { background: #ffffff !important; color: #1a1a2e !important; }
        .theme-light .settings-panel .layout-sec-btn { background: #f3f4f6 !important; border-color: #e2e8f0 !important; color: #1a1a2e !important; }
        .theme-light .settings-panel .layout-sec-btn:hover { background: #e8eaed !important; }
        .theme-light .settings-panel div[style*="font-size:11px"][style*="color:#6b7280"] { color: #718096 !important; }
        .theme-light .settings-panel div[style*="font-size:12px"][style*="color:#6b7280"] { color: #718096 !important; }
        .theme-light .settings-panel code { background: #f3f4f6 !important; color: #1a1a2e !important; }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: #1a1d29;
            color: #e4e4e7;
            overflow: hidden;
        }

        @keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

        .app-container {
            display: flex;
            height: 100vh;
        }
        
        /* BULLETPROOF LAYOUT: absolute positioning — no flex dependency */
        #mainApp {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            overflow: hidden !important;
            z-index: 9000 !important;
            background: #1a1d29 !important;
        }
        #mainApp .app-container {
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            background: #1a1d29 !important;
        }
        #mainApp .sidebar {
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            bottom: 0 !important;
            width: var(--sidebar-w, 200px) !important;
            overflow-y: auto !important;
            z-index: 10 !important;
            background: #22252f !important;
        }
        #mainApp .main-content {
            position: absolute !important;
            top: 0 !important;
            left: var(--sidebar-w, 200px) !important;
            right: 0 !important;
            bottom: 0 !important;
            display: flex !important;
            flex-direction: column !important;
            overflow: hidden !important;
            z-index: 5 !important;
            background: #1a1d29 !important;
        }
        #mainApp .header {
            flex-shrink: 0 !important;
            background: #22252f !important;
        }
        #mainApp .content {
            flex: 1 1 0% !important;
            min-height: 0 !important;
            overflow-y: auto !important;
            background: #1a1d29 !important;
            display: flex !important;
            flex-direction: column !important;
        }
        #mainApp .content-grid {
            min-height: 0;
            flex: 1;
        }
        #mainApp .main-column {
            min-height: 0;
            flex: 1;
        }

        /* Sidebar */
        .sidebar {
            width: 200px;
            background: #22252f;
            border-right: 1px solid #2d3139;
            display: flex;
            flex-direction: column;
            padding: 16px 0 0 0;
            overflow: hidden;
            min-height: 0;
            position: relative;
            z-index: 100;
            flex-shrink: 0;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 4px 16px 16px;
            margin-bottom: 8px;
            border-bottom: 1px solid #2d3139;
        }

        .logo-icon {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, #d4845c, #e8b298);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
        }

        .logo-text {
            font-weight: 600;
            font-size: 14px;
            color: #e4e7eb;
            text-align: center;
            line-height: 1.3;
        }

        .nav-item {
            padding: 10px 16px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #9ca3af;
            cursor: pointer;
            transition: all 0.15s;
            font-size: 13px;
            font-weight: 500;
            position: relative;
            pointer-events: auto;
            margin: 1px 6px;
            border-radius: 8px;
        }

        .nav-item svg {
            pointer-events: none;
        }

        .nav-item span {
            pointer-events: none;
        }

        .nav-item:hover {
            background: rgba(255, 255, 255, 0.05);
            color: #e4e4e7;
        }

        .nav-item.active {
            background: rgba(212, 132, 92, 0.12);
            color: #e8b298;
            font-weight: 600;
        }

        .nav-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 60%;
            background: #d4845c;
            border-radius: 0 3px 3px 0;
        }

        .nav-item svg {
            width: 20px;
            height: 20px;
        }

        .nav-badge {
            margin-left: auto;
            background: #ef4444;
            color: white;
            font-size: 10px;
            font-weight: 700;
            padding: 1px 6px;
            border-radius: 8px;
            min-width: 18px;
            text-align: center;
            line-height: 1.4;
        }

        .nav-spacer {
            flex: 1;
        }

        /* Nav Groups (collapsible sidebar sections) */
        .nav-group { margin: 2px 0; }
        .nav-group-header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 6px 16px; cursor: pointer; user-select: none;
            transition: background 0.15s;
        }
        .nav-group-header:hover { background: var(--nav-hover, rgba(255,255,255,0.05)); border-radius: 6px; margin: 0 4px; padding: 6px 12px; }
        .nav-group-items { overflow: hidden; transition: max-height 0.25s ease, opacity 0.2s ease; max-height: 500px; opacity: 1; }
        .nav-group-items.collapsed { max-height: 0; opacity: 0; pointer-events: none; }
        .nav-group-arrow { display: inline-block; transition: transform 0.25s ease; }
        .nav-group-arrow.collapsed { transform: rotate(-90deg); }



        /* Apply theme variables to main elements */

        /* Header */
        .header {
            background: #22252f;
            padding: 16px 32px;
            border-bottom: 1px solid #2d3139;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header-title {
            font-size: 20px;
            font-weight: 700;
            color: #e4e4e7;
        }

        .header-actions {
            display: flex;
            gap: 12px;
        }

        .header-btn {
            width: 36px;
            height: 36px;
            background: #2d3139;
            border: 1px solid #3d4149;
            border-radius: 8px;
            color: #9ca3af;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .header-btn:hover {
            background: #3d4149;
            color: #e4e4e7;
        }

        /* Content Grid */
        .content {
            flex: 1;
            overflow-y: auto;
            padding: 28px 36px;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .content-grid {
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 28px;
            flex: 1;
            min-height: 0;
            height: 100%;
        }

        /* ===== FULL-HEIGHT LAYOUT — kolommen scrollen onafhankelijk ===== */
        .content-grid > .main-column,
        .content-grid > .sidebar-column {
            display: flex;
            flex-direction: column;
            min-height: 0;
            overflow-y: auto;
            height: 100%;
        }
        .content-grid > .main-column > .section {
            flex: none;
            display: flex;
            flex-direction: column;
        }
        .content-grid > .sidebar-column > .section {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 0;
        }
        /* Standalone sections (non-home views) fill content */
        .content > .section,
        .content > div > .section {
            flex: 1;
            min-height: 0;
        }

        /* ===== GLOBAL FLEXIBLE PANELS ===== */
        .pos-resize-handle {
            width: 5px;
            cursor: col-resize;
            background: transparent;
            position: relative;
            flex-shrink: 0;
            z-index: 10;
            transition: background 0.2s;
        }
        .pos-resize-handle:hover,
        .pos-resize-handle.dragging {
            background: var(--accent, #d4845c);
        }
        .pos-resize-handle::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 3px;
            height: 32px;
            border-radius: 2px;
            background: var(--border-color, #3d4149);
            transition: background 0.2s;
        }
        .pos-resize-handle:hover::after {
            background: var(--accent, #d4845c);
        }
        /* Compact sidebar when resized narrow */
        .sidebar.sidebar-compact .nav-item span:not(.nav-icon):not(.nav-badge),
        .sidebar.sidebar-compact .logo-text,
        .sidebar.sidebar-compact .nav-group-header span:first-child,
        .sidebar.sidebar-compact [style*="padding:0 12px"],
        .sidebar.sidebar-compact [style*="padding:0 10px"],
        .sidebar.sidebar-compact [style*="padding:0 8px"] > button > span:not(:first-child) {
            display: none !important;
        }
        .sidebar.sidebar-compact .nav-item {
            justify-content: center;
            padding: 10px 4px !important;
        }
        .sidebar.sidebar-compact .nav-item svg {
            margin-right: 0 !important;
        }
        .sidebar.sidebar-compact .logo {
            justify-content: center;
            padding: 12px 4px !important;
        }
        .sidebar.sidebar-compact .nav-badge {
            position: absolute;
            top: 2px;
            right: 2px;
            font-size: 8px !important;
            min-width: 14px;
            height: 14px;
            line-height: 14px;
        }
        .sidebar.sidebar-compact .nav-item {
            position: relative;
        }

        /* Vertical resize handle */
        .pos-vresize-handle {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 7px;
            cursor: row-resize;
            background: transparent;
            z-index: 5;
            transition: background 0.2s;
        }
        .pos-vresize-handle:hover,
        .pos-vresize-handle.dragging {
            background: var(--accent, #d4845c);
            border-radius: 0 0 12px 12px;
        }
        .pos-vresize-handle::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 50%;
            transform: translateX(-50%);
            width: 32px;
            height: 3px;
            border-radius: 2px;
            background: var(--border-color, #3d4149);
            transition: background 0.2s;
        }
        .pos-vresize-handle:hover::after {
            background: var(--accent, #d4845c);
        }
        /* Section resizable state */
        .section.pos-resizable {
            position: relative;
            overflow: auto;
            padding-bottom: 30px;
        }

        .main-column {
            display: flex;
            flex-direction: column;
            gap: 24px;
            min-height: 0;
            flex: 1;
        }

        .sidebar-column {
            display: flex;
            flex-direction: column;
            gap: 20px;
            min-height: 0;
        }
        
        /* Right column sections lighter weight than main */
        .sidebar-column > .section {
            padding: 20px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.08);
        }

        /* Section */
        .section {
            background: #22252f;
            border: 1px solid #2d3139;
            border-radius: 14px;
            padding: 28px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        }
        /* Sections inside flex columns */
        .main-column > .section {
            display: flex;
            flex-direction: column;
            flex: none;
        }
        .sidebar-column > .section {
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            padding-bottom: 12px;
            border-bottom: 1px solid #2d3139;
        }

        .section-title {
            font-size: 17px;
            font-weight: 700;
            color: #e4e4e7;
            letter-spacing: -0.01em;
        }

        .section-action {
            padding: 6px 12px;
            background: #2d3139;
            border: 1px solid #3d4149;
            border-radius: 6px;
            color: #9ca3af;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .section-action:hover {
            background: #3d4149;
            color: #e4e4e7;
        }

        /* Tabs */
        .tabs {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 24px;
        }

        .tab {
            padding: 10px 18px;
            background: #2d3139;
            border: 1px solid #3d4149;
            border-radius: 10px;
            color: #9ca3af;
            font-size: 13px;
            font-weight: 500;
            text-align: center;
            cursor: pointer;
            transition: all 0.15s;
        }

        .tab:hover {
            background: #353940;
            color: #e4e4e7;
        }

        .tab.active {
            background: #d4845c;
            border-color: #d4845c;
            color: white;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(212, 132, 92, 0.25);
        }

        /* Order Cards */
        .orders-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .order-card {
            background: #2d3139;
            border: 1px solid #3d414922;
            border-radius: 10px;
            padding: 14px 16px;
            display: flex;
            align-items: center;
            gap: 14px;
            cursor: pointer;
            transition: all 0.15s;
        }

        .order-card:hover {
            background: #353940;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }

        .order-icon {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 14px;
            flex-shrink: 0;
        }

        .order-icon.table {
            background: rgba(212, 132, 92, 0.2);
            color: #d4845c;
        }

        .order-icon.delivery {
            background: rgba(59, 130, 246, 0.2);
            color: #3b82f6;
        }

        .order-info {
            flex: 1;
        }

        .order-title {
            font-weight: 600;
            font-size: 15px;
            color: #e4e4e7;
            margin-bottom: 4px;
        }

        .order-meta {
            font-size: 13px;
            color: #6b7280;
        }

        .order-price {
            font-size: 18px;
            font-weight: 700;
            color: #e4e4e7;
        }

        /* Stats Cards — Premium KPI Design */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 16px;
        }

        .stat-card {
            background: #2d3139;
            border: 1px solid #3d4149;
            border-radius: 12px;
            padding: 20px 22px;
            position: relative;
            overflow: hidden;
            transition: transform 0.15s, box-shadow 0.15s;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #d4845c, #e8b298);
            opacity: 0;
            transition: opacity 0.2s;
        }

        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        }

        .stat-card:hover::before {
            opacity: 1;
        }

        /* Primary KPI card (first card = revenue) */
        .stat-card.kpi-primary {
            background: linear-gradient(135deg, #22252f, #2d3139);
            border-color: #d4845c44;
        }
        .stat-card.kpi-primary::before {
            opacity: 1;
        }
        .stat-card.kpi-primary .stat-value {
            font-size: 36px;
            background: linear-gradient(135deg, #e8b298, #d4845c);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .stat-label {
            font-size: 13px;
            color: #6b7280;
            margin-bottom: 8px;
        }

        .stat-value {
            font-size: 32px;
            font-weight: 700;
            color: #e4e4e7;
            margin-bottom: 8px;
        }

        .stat-change {
            font-size: 13px;
            color: #52a67d;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .stat-change.negative {
            color: #ef4444;
        }

        /* Quick Actions */
        .action-btn {
            width: 100%;
            padding: 14px 20px;
            border: none;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .action-btn.primary {
            background: linear-gradient(135deg, #c77a50, #d4845c);
            color: white;
            box-shadow: 0 2px 8px rgba(212, 132, 92, 0.2);
        }

        .action-btn.primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(212, 132, 92, 0.3);
        }

        .action-btn.secondary {
            background: #2d3139;
            border: 1px solid #3d4149;
            color: #9ca3af;
        }

        .action-btn.secondary:hover {
            background: #3d4149;
            color: #e4e4e7;
        }

        .actions-grid {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        /* Notifications */
        .notification-item {
            padding: 10px 12px;
            background: #2d313944;
            border: 1px solid #3d414922;
            border-radius: 10px;
            margin-bottom: 6px;
            display: flex;
            gap: 10px;
            transition: background 0.15s;
        }
        
        .notification-item:hover {
            background: #2d3139;
        }

        .notification-icon {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .notification-icon.warning {
            background: rgba(234, 179, 8, 0.2);
            color: #eab308;
        }

        .notification-icon.info {
            background: rgba(59, 130, 246, 0.2);
            color: #3b82f6;
        }

        .notification-icon.success {
            background: rgba(82, 166, 125, 0.2);
            color: #52a67d;
        }

        .notification-content {
            flex: 1;
        }

        .notification-title {
            font-weight: 600;
            font-size: 14px;
            color: #e4e4e7;
            margin-bottom: 2px;
        }

        .notification-text {
            font-size: 12px;
            color: #6b7280;
        }

        /* Current Order */
        .current-order-header {
            margin-bottom: 16px;
        }

        .order-type-tabs {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            margin-bottom: 16px;
        }

        .order-type-tab {
            padding: 10px;
            background: #2d3139;
            border: 1px solid #3d4149;
            border-radius: 8px;
            color: #9ca3af;
            font-size: 13px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .order-type-tab:hover {
            background: #3d4149;
            color: #e4e4e7;
        }

        .order-type-tab.active {
            background: linear-gradient(135deg, #d4845c, #e8b298);
            border-color: #d4845c;
            color: white;
        }

        .table-selector {
            padding: 12px 16px;
            background: #2d3139;
            border: 1px solid #d4845c;
            border-radius: 8px;
            color: #d4845c;
            font-size: 14px;
            font-weight: 500;
            text-align: center;
            cursor: pointer;
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: #6b7280;
        }

        .empty-state svg {
            width: 64px;
            height: 64px;
            margin: 0 auto 16px;
            opacity: 0.3;
        }

        /* Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #2d3139;
        }

        ::-webkit-scrollbar-thumb {
            background: #3d4149;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #d4845c;
        }

        /* Menu Overlay */
        .menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.92);
            z-index: 1000;
            display: none;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }

        .menu-overlay.active {
            display: flex;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .menu-modal {
            background: #1a1d29;
            border: 1px solid #2d3139;
            border-radius: 20px;
            width: 90%;
            max-width: 1400px;
            height: 85vh;
            min-width: 320px;
            min-height: 400px;
            max-height: 95vh;
            display: flex;
            flex-direction: column;
            animation: slideUp 0.3s ease;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            resize: both;
            overflow: hidden;
            position: relative;
        }
        
        .menu-modal::after {
            content: '';
            position: absolute;
            bottom: 6px;
            right: 6px;
            width: 14px;
            height: 14px;
            border-right: 2px solid #6b7280;
            border-bottom: 2px solid #6b7280;
            border-radius: 0 0 4px 0;
            opacity: 0.6;
            pointer-events: none;
        }
        
        /* Settings modal specific overrides */
        #settingsModalInner {
            animation: settingsSlideIn 0.25s ease !important;
            border-radius: 16px !important;
        }
        @keyframes settingsSlideIn {
            from { opacity: 0; transform: translateX(40px); }
            to { opacity: 1; transform: translateX(0); }
        }
        /* Resize handle visual */
        #settingsModalInner::after {
            content: '';
            position: absolute;
            bottom: 4px;
            left: 4px;
            width: 14px;
            height: 14px;
            border-left: 2px solid #4b5563;
            border-bottom: 2px solid #4b5563;
            border-radius: 0 0 0 3px;
            opacity: 0.5;
            pointer-events: none;
        }

        @keyframes slideUp {
            from {
                transform: translateY(50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        /* Menu Header */
        .menu-modal-header {
            padding: 24px 32px;
            border-bottom: 1px solid #2d3139;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-shrink: 0;
            position: relative;
        }

        .menu-modal-title {
            font-size: 24px;
            font-weight: 700;
            color: #e4e4e7;
            text-align: center;
        }

        .menu-close-btn {
            position: absolute;
            left: 32px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #2d3139;
            border: none;
            color: #9ca3af;
            font-size: 24px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .menu-close-btn:hover {
            background: #3d4149;
            color: #e4e4e7;
            transform: rotate(90deg);
        }

        /* Menu Content Grid - NOW 3 COLUMNS! */
        .menu-modal-content {
            display: grid;
            grid-template-columns: 220px 1fr 340px;
            gap: 20px;
            padding: 24px 32px;
            flex: 1;
            min-height: 0;
            overflow: hidden;
        }

        /* Category Sidebar */
        .menu-categories {
            display: flex;
            flex-direction: column;
            gap: 8px;
            overflow-y: auto;
        }

        .menu-category-item {
            padding: 14px 20px;
            background: #22252f;
            border: 1px solid #2d3139;
            border-radius: 10px;
            color: #9ca3af;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
        }

        .menu-category-item:hover {
            background: #2d3139;
            color: #e4e4e7;
            transform: translateX(4px);
        }

        .menu-category-item.active {
            background: linear-gradient(135deg, #d4845c, #e8b298);
            border-color: #d4845c;
            color: white;
            font-weight: 600;
        }

        .menu-category-item.active::before {
            content: '';
            position: absolute;
            left: -8px;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 60%;
            background: #d4845c;
            border-radius: 2px;
        }

        /* Menu Items Area */
        .menu-items-area {
            display: flex;
            flex-direction: column;
            gap: 20px;
            overflow: hidden;
        }

        /* Search Bar */
        .menu-search {
            position: relative;
        }

        .menu-search-input {
            width: 100%;
            padding: 14px 48px 14px 16px;
            background: #22252f;
            border: 2px solid #2d3139;
            border-radius: 12px;
            color: #e4e4e7;
            font-size: 15px;
            font-family: 'Inter', sans-serif;
            outline: none;
            transition: all 0.2s;
        }

        .menu-search-input:focus {
            border-color: #d4845c;
            background: #2d3139;
        }

        .menu-search-input::placeholder {
            color: #6b7280;
        }

        .menu-search-icon {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #6b7280;
            pointer-events: none;
        }

        /* Menu Items Grid */
        .menu-items-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 16px;
            overflow-y: auto;
            padding-right: 8px;
        }

        .menu-item-card {
            background: #22252f;
            border: 2px solid #2d3139;
            border-radius: 12px;
            padding: 16px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .menu-item-card:hover {
            transform: translateY(-4px);
            border-color: #d4845c;
            box-shadow: 0 8px 24px rgba(212, 132, 92, 0.2);
        }

        .menu-item-card:active {
            transform: translateY(-2px);
        }

        .menu-item-name {
            font-size: 16px;
            font-weight: 600;
            color: #e4e4e7;
            margin-bottom: 4px;
        }

        .menu-item-description {
            font-size: 13px;
            color: #6b7280;
            line-height: 1.4;
            margin-bottom: 12px;
            min-height: 36px;
        }

        .menu-item-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
        }

        .menu-item-price {
            font-size: 20px;
            font-weight: 700;
            color: #d4845c;
        }

        .menu-item-vat {
            font-size: 11px;
            color: #6b7280;
            background: #2d3139;
            padding: 4px 8px;
            border-radius: 6px;
        }

        /* Empty State */
        .menu-empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #6b7280;
        }

        .menu-empty-state svg {
            width: 64px;
            height: 64px;
            margin: 0 auto 16px;
            opacity: 0.3;
        }

        /* Toast Notification */
        .toast {
            position: fixed;
            bottom: 32px;
            right: 32px;
            background: #22252f;
            border: 1px solid #52a67d;
            border-radius: 12px;
            padding: 16px 24px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
            animation: slideInRight 0.3s ease;
            z-index: 2000;
        }

        @keyframes slideInRight {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .toast-icon {
            width: 24px;
            height: 24px;
            color: #52a67d;
        }

        .toast-message {
            color: #e4e4e7;
            font-weight: 500;
        }

        /* Cart Items */
        .cart-item {
            background: #2d3139;
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 8px;
        }

        .cart-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .cart-item-name {
            font-weight: 600;
            font-size: 14px;
            color: #e4e4e7;
        }

        .cart-item-price {
            font-size: 13px;
            color: #9ca3af;
        }

        .cart-item-controls {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .cart-qty-btn {
            width: 28px;
            height: 28px;
            border-radius: 6px;
            background: #3d4149;
            border: none;
            color: #e4e4e7;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .cart-qty-btn:hover {
            background: #d4845c;
        }

        .cart-qty-display {
            min-width: 30px;
            text-align: center;
            font-weight: 600;
            color: #e4e4e7;
        }

        .cart-item-total {
            margin-left: auto;
            font-weight: 700;
            color: #d4845c;
        }

        .cart-empty {
            text-align: center;
            padding: 40px 20px;
            color: #6b7280;
        }

        .cart-empty svg {
            width: 48px;
            height: 48px;
            margin: 0 auto 12px;
            opacity: 0.3;
        }

        /* Table Cards Grid */
        .tables-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 10px;
            margin-top: 12px;
        }

        .table-card {
            aspect-ratio: 1;
            background: #2d3139;
            border: 2px solid #3d4149;
            border-radius: 12px;
            padding: 14px;
            cursor: pointer;
            transition: all 0.15s;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            position: relative;
        }

        .table-card:hover {
            transform: translateY(-2px);
            border-color: #d4845c88;
            box-shadow: 0 4px 16px rgba(0,0,0,0.25);
        }

        .table-card.available {
            border-color: #52a67d66;
            background: rgba(82, 166, 125, 0.06);
        }

        .table-card.occupied {
            border-color: #ef444488;
            background: rgba(239, 68, 68, 0.08);
        }

        .table-card.reserved {
            border-color: #eab30888;
            background: rgba(234, 179, 8, 0.06);
        }

        .table-number {
            font-size: 24px;
            font-weight: 700;
            color: #e4e4e7;
            margin-bottom: 4px;
        }

        .table-zone {
            font-size: 11px;
            color: #6b7280;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .table-status-dot {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }

        .table-status-dot.available {
            background: #52a67d;
        }

        .table-status-dot.occupied {
            background: #ef4444;
        }

        .table-status-dot.reserved {
            background: #eab308;
        }

        /* Sidebar submenu */
        .nav-submenu {
            padding-left: 32px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .nav-submenu.open {
            max-height: 200px;
        }

        .nav-submenu-item {
            padding: 8px 20px;
            color: #6b7280;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .nav-submenu-item:hover {
            color: #d4845c;
            padding-left: 24px;
        }

        /* Tab Color Coding */
        .tab.type-table {
            background: linear-gradient(135deg, #d4845c, #e8b298);
            color: white;
            border-color: #d4845c;
        }

        .tab.type-takeaway {
            background: linear-gradient(135deg, #3b82f6, #60a5fa);
            color: white;
            border-color: #3b82f6;
        }

        .tab.type-delivery {
            background: linear-gradient(135deg, #10b981, #34d399);
            color: white;
            border-color: #10b981;
        }

        /* Order cards clickable */
        .order-card {
            cursor: pointer;
            transition: all 0.2s;
        }

        .order-card:hover {
            transform: translateX(4px);
            border-left-width: 4px;
            border-left-color: #d4845c;
        }

        /* Address suggestions */
        .address-suggestion {
            padding: 10px 12px;
            cursor: pointer;
            border-bottom: 1px solid #2d3139;
            transition: all 0.2s;
        }

        .address-suggestion:hover {
            background: #3d4149;
        }

        .address-suggestion:last-child {
            border-bottom: none;
        }

        .address-text {
            font-size: 13px;
            color: #e4e4e7;
            line-height: 1.4;
        }
        @keyframes hhPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.85;transform:scale(1.03)} }
        .hh-original { text-decoration:line-through;color:#6b7280!important;font-size:11px!important;font-weight:400!important }
        .hh-badge { display:inline-block;font-size:9px;padding:1px 5px;background:#f59e0b;color:#1a1d24;border-radius:3px;font-weight:700;vertical-align:middle;margin-left:2px }

        /* ===== ACCESSIBILITY ===== */
        /* Focus visible styles for keyboard navigation */
        *:focus-visible {
            outline: 2px solid #d4845c !important;
            outline-offset: 2px !important;
        }
        .nav-item:focus-visible {
            outline: 2px solid #d4845c !important;
            outline-offset: -2px !important;
            background: var(--bg-hover, #3d4149) !important;
        }
        button:focus-visible {
            outline: 2px solid #d4845c !important;
            outline-offset: 2px !important;
        }
        input:focus-visible, select:focus-visible, textarea:focus-visible {
            outline: 2px solid #d4845c !important;
            outline-offset: 0 !important;
        }
        /* Screen reader only utility class */
        .sr-only {
            position: absolute !important;
            width: 1px !important;
            height: 1px !important;
            padding: 0 !important;
            margin: -1px !important;
            overflow: hidden !important;
            clip: rect(0, 0, 0, 0) !important;
            white-space: nowrap !important;
            border: 0 !important;
        }
        /* Reduce motion for users who prefer it */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* ===== RESPONSIVE DESIGN ===== */

        /* Tablet landscape (1024px and below) */
        @media screen and (max-width: 1024px) {
            #mainApp .sidebar {
                width: 64px !important;
            }
            #mainApp .main-content {
                left: 64px !important;
            }
            .sidebar .logo-text,
            .sidebar .nav-item span:not(.nav-icon),
            .sidebar .nav-group-header span,
            .sidebar #sidebarRoleBadge,
            .sidebar [style*="Ctrl+K"] {
                display: none !important;
            }
            .sidebar .logo {
                padding: 12px 0 !important;
                justify-content: center !important;
            }
            .sidebar .nav-item {
                justify-content: center !important;
                padding: 10px 0 !important;
            }
            .sidebar .nav-item svg {
                margin: 0 !important;
            }
            .sidebar [onclick="openGlobalSearch()"] {
                justify-content: center !important;
                padding: 8px !important;
            }
            .sidebar [onclick="openGlobalSearch()"] span {
                display: none !important;
            }
            .sidebar [onclick="openGlobalSearch()"] svg {
                margin: 0 !important;
            }
            .sidebar #themeToggleBtn span:last-child {
                display: none !important;
            }
            /* v106g: sidebar-column ALTIJD zichtbaar naast tafels */
            .sidebar-column, .right-column {
                display: flex !important;
                width: auto !important;
            }
            .content-grid {
                grid-template-columns: 1fr 240px !important;
            }
        }

        /* Tablet portrait (768px and below) */
        @media screen and (max-width: 768px) {
            #mobileMenuBtn {
                display: block !important;
            }
            #mainApp .sidebar {
                width: 0 !important;
                transform: translateX(-100%);
                transition: transform 0.3s ease, width 0.3s ease;
                z-index: 9999 !important;
            }
            #mainApp .sidebar.sidebar-open {
                width: 200px !important;
                transform: translateX(0);
            }
            #mainApp .sidebar.sidebar-open .logo-text,
            #mainApp .sidebar.sidebar-open .nav-item span,
            #mainApp .sidebar.sidebar-open .nav-group-header span,
            #mainApp .sidebar.sidebar-open #sidebarRoleBadge {
                display: block !important;
            }
            #mainApp .main-content {
                left: 0 !important;
            }
            .header-title {
                font-size: 14px !important;
            }
            #headerClock {
                margin-right: 8px;
            }
            .content-grid {
                display: grid !important;
                grid-template-columns: 1fr 200px !important;
                gap: 10px !important;
            }
            .main-column {
                width: 100% !important;
            }
        }

        /* Mobile (480px and below) */
        @media screen and (max-width: 480px) {
            .header {
                padding: 8px 12px !important;
            }
            .header-title {
                font-size: 13px !important;
            }
            #locationSwitcherBadge,
            #fdmStatusBadge,
            #hhHeaderBadge,
            #hhHeaderTime {
                display: none !important;
            }
            .content {
                padding: 8px !important;
            }
            #globalSearchOverlay > div {
                width: 95vw !important;
                margin-top: 20px !important;
            }
        }
        
        /* ========== MOBILE OPTIMIZATIONS ========== */
        
        /* Mobile Bottom Navigation */
        #mobileBottomNav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 70px;
            background: var(--sidebar-bg);
            border-top: 1px solid var(--border-color);
            z-index: 1000;
            padding: 8px 0;
            box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
        }
        
        .mobile-nav-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            height: 100%;
            gap: 4px;
            padding: 0 8px;
        }
        
        .mobile-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            cursor: pointer;
            border-radius: 8px;
            transition: background 0.2s;
            position: relative;
            min-height: 44px;
        }
        
        .mobile-nav-item:active {
            background: var(--bg-hover);
        }
        
        .mobile-nav-item.active {
            background: var(--accent-bg);
        }
        
        .mobile-nav-item svg {
            width: 24px;
            height: 24px;
            stroke: var(--text-secondary);
        }
        
        .mobile-nav-item.active svg {
            stroke: var(--accent);
        }
        
        .mobile-nav-item span {
            font-size: 10px;
            font-weight: 600;
            color: var(--text-secondary);
        }
        
        .mobile-nav-item.active span {
            color: var(--accent);
        }
        
        /* Floating Action Button (Camera) */
        #floatingCameraBtn {
            display: none;
            position: fixed;
            bottom: 90px;
            right: 20px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #10b981, #059669);
            border-radius: 50%;
            box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
            cursor: pointer;
            z-index: 999;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s;
        }
        
        #floatingCameraBtn:active {
            transform: scale(0.95);
        }
        
        /* Mobile Responsive */
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
                transition: transform 0.3s;
            }
            
            .sidebar.sidebar-open {
                transform: translateX(0);
            }
            
            .main-content {
                margin-left: 0 !important;
                padding-bottom: 90px;
            }
            
            #mobileBottomNav {
                display: block;
            }
            
            body.show-camera-fab #floatingCameraBtn {
                display: flex;
            }
            
            button, input[type="text"], input[type="number"], select {
                min-height: 44px;
                font-size: 16px !important;
            }
        }
        
        /* ========== PROFESSIONAL DESIGN SYSTEM ========== */
        
        /* Button System - Consistent styling overal */
        .btn-primary, button[style*="background:#10b981"], button[style*="background:#d4845c"] {
            min-height: 48px;
            padding: 12px 24px;
            border-radius: 10px;
            font-weight: 700;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }
        
        .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }
        
        .btn-primary:active {
            transform: translateY(0);
            box-shadow: 0 1px 4px rgba(0,0,0,0.1);
        }
        
        .btn-secondary {
            min-height: 48px;
            padding: 12px 24px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 14px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-secondary:hover {
            background: var(--bg-hover);
            border-color: var(--accent);
        }
        
        .btn-danger {
            background: var(--danger);
            color: white;
        }
        
        .btn-success {
            background: var(--success);
            color: white;
        }
        
        /* Card System - Professional cards */
        .card-pro {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            transition: all 0.2s;
        }
        
        .card-pro:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
            border-color: var(--accent);
        }
        
        .card-header {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 12px;
        }
        
        .card-body {
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.6;
        }
        
        /* Input System - Professional forms */
        input[type="text"],
        input[type="email"],
        input[type="tel"],
        input[type="number"],
        input[type="date"],
        input[type="password"],
        select,
        textarea {
            min-height: 48px;
            padding: 12px 16px;
            background: var(--bg-input);
            border: 1.5px solid var(--border-color);
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 15px;
            font-family: inherit;
            transition: all 0.2s;
            outline: none;
        }
        
        input:focus,
        select:focus,
        textarea:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-bg);
        }
        
        /* Table Cards - Better spacing */
        .table-card-pro {
            background: var(--card-bg);
            border: 2px solid var(--border-color);
            border-radius: 14px;
            padding: 16px;
            min-height: 120px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .table-card-pro:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.15);
            border-color: var(--accent);
        }
        
        .table-card-pro:active {
            transform: translateY(0);
        }
        
        /* Menu Item Cards - Professional grid */
        .menu-item-pro {
            background: var(--card-bg);
            border: 1.5px solid var(--border-color);
            border-radius: 12px;
            padding: 16px;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        
        .menu-item-pro:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.12);
            border-color: var(--accent);
        }
        
        /* Section Headers - Consistent style */
        .section-header-pro {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 2px solid var(--border-color);
        }
        
        .section-title-pro {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .section-subtitle-pro {
            font-size: 14px;
            color: var(--text-secondary);
            margin-top: 4px;
        }
        
        /* Stats Cards - Dashboard style */
        .stat-card-pro {
            background: var(--card-bg);
            border: 1.5px solid var(--border-color);
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        
        .stat-value-pro {
            font-size: 32px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 4px;
        }
        
        .stat-label-pro {
            font-size: 13px;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }
        
        /* Badge System - Consistent badges */
        .badge-pro {
            display: inline-flex;
            align-items: center;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 700;
            line-height: 1;
        }
        
        .badge-success {
            background: rgba(16, 185, 129, 0.15);
            color: var(--success);
        }
        
        .badge-danger {
            background: rgba(239, 68, 68, 0.15);
            color: var(--danger);
        }
        
        .badge-warning {
            background: rgba(245, 158, 11, 0.15);
            color: var(--warning);
        }
        
        .badge-info {
            background: rgba(59, 130, 246, 0.15);
            color: var(--info);
        }
        
        /* Action Bar - Bottom actions */
        .action-bar-pro {
            display: flex;
            gap: 12px;
            padding: 16px;
            background: var(--bg-secondary);
            border-top: 1.5px solid var(--border-color);
            border-radius: 0 0 12px 12px;
        }
        
        /* List Items - Improved spacing */
        .list-item-pro {
            padding: 16px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            margin-bottom: 12px;
            transition: all 0.2s;
        }
        
        .list-item-pro:hover {
            background: var(--bg-tertiary);
            border-color: var(--accent);
        }
        
        /* Tab System - Professional tabs */
        .tab-pro {
            padding: 12px 20px;
            background: transparent;
            border: none;
            border-bottom: 3px solid transparent;
            color: var(--text-secondary);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .tab-pro:hover {
            color: var(--text-primary);
        }
        
        .tab-pro.active {
            color: var(--accent);
            border-bottom-color: var(--accent);
            font-weight: 700;
        }
        
        /* Modal Improvements */
        .modal-pro {
            background: var(--modal-bg);
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            border: 1px solid var(--border-color);
        }
        
        .modal-header-pro {
            padding: 24px;
            border-bottom: 1.5px solid var(--border-color);
        }
        
        .modal-body-pro {
            padding: 24px;
        }
        
        .modal-footer-pro {
            padding: 20px 24px;
            border-top: 1.5px solid var(--border-color);
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }
        
        /* Spacing System */
        .gap-xs { gap: 4px; }
        .gap-sm { gap: 8px; }
        .gap-md { gap: 12px; }
        .gap-lg { gap: 16px; }
        .gap-xl { gap: 24px; }
        
        .p-xs { padding: 8px; }
        .p-sm { padding: 12px; }
        .p-md { padding: 16px; }
        .p-lg { padding: 20px; }
        .p-xl { padding: 24px; }
        
        .m-xs { margin: 8px; }
        .m-sm { margin: 12px; }
        .m-md { margin: 16px; }
        .m-lg { margin: 20px; }
        .m-xl { margin: 24px; }
        
        /* Grid System */
        .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
        .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
        .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
        
        @media (max-width: 768px) {
            .grid-2, .grid-3, .grid-4 {
                grid-template-columns: 1fr;
            }
        }
        
        /* ========== RESPONSIVE FLEX GRID SYSTEM ========== */
        
        /* Auto-responsive grids */
        .flex-grid {
            display: grid;
            gap: 16px;
            grid-template-columns: repeat(auto-fill, minmax(var(--grid-min-width, 200px), 1fr));
        }
        
        /* Tafel grid - responsive */
        .table-grid-responsive {
            display: grid;
            gap: 16px;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        }
        
        @media (max-width: 640px) {
            .table-grid-responsive {
                grid-template-columns: repeat(2, 1fr); /* 2 kolommen op kleine mobiel */
            }
        }
        
        @media (min-width: 641px) and (max-width: 1024px) {
            .table-grid-responsive {
                grid-template-columns: repeat(3, 1fr); /* 3 kolommen op tablet */
            }
        }
        
        @media (min-width: 1025px) {
            .table-grid-responsive {
                grid-template-columns: repeat(4, 1fr); /* 4 kolommen op desktop */
            }
        }
        
        /* Menu items grid - responsive */
        .menu-grid-responsive {
            display: grid;
            gap: 12px;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        }
        
        @media (max-width: 640px) {
            .menu-grid-responsive {
                grid-template-columns: 1fr; /* 1 kolom op mobiel */
            }
        }
        
        /* Button grid - responsive */
        .button-grid-responsive {
            display: grid;
            gap: 12px;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        }
        
        @media (max-width: 640px) {
            .button-grid-responsive {
                grid-template-columns: 1fr; /* Stack op mobiel */
                gap: 10px;
            }
        }
        
        /* ========== CUSTOMIZE MODE ========== */
        
        #customizeToggle {
            position: fixed;
            top: 80px;
            right: 20px;
            z-index: 1001;
            background: var(--accent);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 10px;
            font-weight: 700;
            font-size: 13px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(212, 132, 92, 0.3);
            transition: all 0.2s;
            display: none; /* Toon alleen op desktop */
        }
        
        @media (min-width: 769px) {
            #customizeToggle {
                display: block;
            }
        }
        
        #customizeToggle:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(212, 132, 92, 0.4);
        }
        
        #customizeToggle.active {
            background: var(--success);
        }
        
        /* Customize panel */
        #customizePanel {
            position: fixed;
            top: 130px;
            right: 20px;
            width: 320px;
            max-height: calc(100vh - 160px);
            background: var(--modal-bg);
            border: 1.5px solid var(--border-color);
            border-radius: 12px;
            padding: 20px;
            z-index: 1000;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
            display: none;
            overflow-y: auto;
        }
        
        #customizePanel.show {
            display: block;
        }
        
        .customize-section {
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .customize-section:last-child {
            border-bottom: none;
        }
        
        .customize-label {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 10px;
        }
        
        .grid-preview {
            display: grid;
            gap: 4px;
            margin-top: 8px;
            padding: 12px;
            background: var(--bg-tertiary);
            border-radius: 8px;
        }
        
        .grid-preview-item {
            height: 40px;
            background: var(--bg-hover);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
        }
        
        /* Grid configurator buttons */
        .grid-config-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        
        .grid-config-btn {
            flex: 1;
            min-width: 60px;
            padding: 10px;
            background: var(--bg-tertiary);
            border: 1.5px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .grid-config-btn:hover {
            border-color: var(--accent);
            background: var(--bg-hover);
        }
        
        .grid-config-btn.active {
            background: var(--accent-bg);
            border-color: var(--accent);
            color: var(--accent);
            font-weight: 700;
        }
        
        /* Spacing configurator */
        .spacing-slider {
            width: 100%;
            margin-top: 10px;
        }
        
        .spacing-value {
            display: inline-block;
            margin-left: 10px;
            font-weight: 700;
            color: var(--accent);
        }
        
        /* Layout presets */
        .layout-preset {
            padding: 12px;
            background: var(--bg-tertiary);
            border: 1.5px solid var(--border-color);
            border-radius: 8px;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .layout-preset:hover {
            border-color: var(--accent);
            background: var(--bg-hover);
        }
        
        .layout-preset.active {
            background: var(--accent-bg);
            border-color: var(--accent);
        }
        
        .preset-name {
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 4px;
        }
        
        .preset-desc {
            font-size: 11px;
            color: var(--text-secondary);
        }
        
        /* Apply button */
        .customize-apply {
            width: 100%;
            padding: 14px;
            background: var(--success);
            color: white;
            border: none;
            border-radius: 10px;
            font-weight: 700;
            font-size: 14px;
            cursor: pointer;
            margin-top: 16px;
            transition: all 0.2s;
        }
        
        .customize-apply:hover {
            background: #059669;
            transform: translateY(-1px);
        }
        
        /* Reset button */
        .customize-reset {
            width: 100%;
            padding: 12px;
            background: transparent;
            color: var(--text-secondary);
            border: 1.5px solid var(--border-color);
            border-radius: 10px;
            font-weight: 600;
            font-size: 13px;
            cursor: pointer;
            margin-top: 8px;
            transition: all 0.2s;
        }
        
        .customize-reset:hover {
            border-color: var(--danger);
            color: var(--danger);
        }
        
        /* Icon Sizes */
        .icon-sm { width: 20px; height: 20px; }
        .icon-md { width: 24px; height: 24px; }
        .icon-lg { width: 32px; height: 32px; }
        .icon-xl { width: 48px; height: 48px; }
        
        /* Touch Improvements - Everywhere */
        @media (max-width: 768px) {
            .card-pro {
                padding: 16px;
            }
            
            .section-header-pro {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }
            
            .action-bar-pro {
                flex-direction: column;
            }
            
            .action-bar-pro button {
                width: 100%;
            }
        }

        /* ===== MENU DESIGNER STYLES ===== */
        .md-container{display:flex;gap:20px;height:calc(100vh - 140px)}
        .md-builder{flex:1;overflow-y:auto;padding-right:8px}
        .md-preview-panel{width:420px;min-width:380px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:12px;display:flex;flex-direction:column;overflow:hidden}
        .md-preview-bar{padding:10px 16px;border-bottom:1px solid var(--border-color);font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:space-between}
        .md-preview-body{flex:1;overflow-y:auto;background:#fff;display:flex;justify-content:center}
        .md-preview-body .md-page{width:100%;max-width:400px;margin:16px auto}
        .md-tabs{display:flex;gap:4px;margin-bottom:20px;flex-wrap:wrap}
        .md-tab{padding:8px 16px;border-radius:8px;font-size:13px;font-weight:500;cursor:pointer;background:var(--bg-tertiary);color:var(--text-secondary);border:1px solid transparent;transition:all .2s}
        .md-tab:hover{color:var(--text-primary)}
        .md-tab.active{background:var(--accent-bg);color:var(--accent);border-color:var(--accent)}
        .md-holidays{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;margin-bottom:20px}
        .md-hcard{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:10px;padding:12px;cursor:pointer;text-align:center;transition:all .2s}
        .md-hcard:hover{border-color:var(--accent);transform:translateY(-1px)}
        .md-hcard.sel{border-color:var(--accent);background:var(--accent-bg)}
        .md-hcard .emoji{font-size:24px;margin-bottom:4px}
        .md-hcard .hname{font-size:12px;font-weight:600;color:var(--text-primary)}
        .md-hcard .hdate{font-size:10px;color:var(--text-muted)}
        .md-form-group{margin-bottom:14px}
        .md-label{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px;display:block}
        .md-input,.md-select,.md-textarea{width:100%;padding:9px 12px;background:var(--bg-input);border:1px solid var(--border-color);border-radius:8px;color:var(--text-primary);font-size:13px;font-family:inherit}
        .md-input:focus,.md-select:focus,.md-textarea:focus{outline:none;border-color:var(--accent)}
        .md-textarea{resize:vertical;min-height:60px}
        .md-select{cursor:pointer}
        .md-row{display:flex;gap:10px}
        .md-row .md-form-group{flex:1}
        .md-gang{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:10px;padding:14px;margin-bottom:10px}
        .md-gang-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
        .md-gang-title{font-size:14px;font-weight:600;color:var(--text-primary)}
        .md-search-wrap{position:relative;margin-bottom:8px}
        .md-search-wrap input{width:100%;padding:8px 12px 8px 32px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:8px;color:var(--text-primary);font-size:12px;font-family:inherit}
        .md-search-wrap input:focus{outline:none;border-color:var(--accent)}
        .md-search-wrap .si{position:absolute;left:10px;top:50%;transform:translateY(-50%);font-size:12px}
        .md-results{max-height:140px;overflow-y:auto;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:8px;display:none}
        .md-results.open{display:block}
        .md-ritem{padding:7px 12px;cursor:pointer;font-size:12px;display:flex;justify-content:space-between;transition:background .15s}
        .md-ritem:hover{background:var(--accent-bg)}
        .md-ritem .rprice{color:var(--accent);font-weight:600}
        .md-dish{display:flex;align-items:center;justify-content:space-between;background:var(--bg-tertiary);padding:7px 10px;border-radius:6px;font-size:12px;margin-bottom:4px}
        .md-dish .rm{background:none;border:none;color:var(--danger,#ef4444);cursor:pointer;font-size:14px;padding:2px}
        .md-btn{padding:8px 16px;border-radius:8px;font-size:12px;font-weight:600;font-family:inherit;cursor:pointer;transition:all .2s;border:none;display:inline-flex;align-items:center;gap:6px}
        .md-btn-p{background:var(--accent);color:#fff}.md-btn-p:hover{opacity:.9}
        .md-btn-s{background:var(--bg-tertiary);color:var(--text-primary);border:1px solid var(--border-color)}.md-btn-s:hover{border-color:var(--accent)}
        .md-btn-a{background:#f97316;color:#fff}.md-btn-a:hover{opacity:.9}
        .md-btn-d{background:var(--danger,#ef4444);color:#fff}
        .md-btns{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
        .md-tpls{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}
        .md-tpl{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:10px;padding:10px;cursor:pointer;text-align:center;transition:all .2s}
        .md-tpl:hover{border-color:var(--accent)}
        .md-tpl.sel{border-color:var(--accent);background:var(--accent-bg)}
        .md-tpl-preview{width:100%;aspect-ratio:3/4;border-radius:6px;margin-bottom:6px;display:flex;align-items:center;justify-content:center;font-size:10px;overflow:hidden}
        .md-tpl-name{font-size:11px;font-weight:600}
        .md-steps{display:flex;gap:6px;margin-bottom:20px}.md-step-dot{flex:1;height:3px;border-radius:2px;background:var(--border-color);transition:.3s}
        .md-step-dot.done{background:var(--accent)}.md-step-dot.cur{background:#f97316}
        .md-weekgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
        .md-weekday{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:10px;padding:12px}
        .md-weekday .dlabel{font-size:11px;font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}
        .md-saved-item{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:10px;padding:14px;margin-bottom:8px;display:flex;align-items:center;justify-content:space-between}
        @media(max-width:900px){.md-container{flex-direction:column;height:auto}.md-preview-panel{width:100%;min-width:unset;max-height:400px}}
        @media(max-width:600px){.md-holidays{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}.md-tpls{grid-template-columns:repeat(2,1fr)}.md-row{flex-direction:column}}
        /* Print menu only */
        @media print{.md-container .md-builder,.md-preview-bar,.md-btns{display:none!important}.md-preview-panel{width:100%!important;border:none!important}.md-preview-body{background:#fff!important}}
        @keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* Auth spinner animation */
@keyframes authSpin { to { transform: rotate(360deg); } }

/* ═══ MOLLIE PAYMENT BUTTONS ═══ */
.mollie-payment-container { padding: 20px; max-width: 400px; }
.mollie-payment-container h3 { margin-bottom: 16px; color: var(--text-primary, #e4e4e7); font-size: 18px; }
.payment-methods { display: flex; flex-direction: column; gap: 10px; }
.payment-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border: 2px solid var(--border-color, #3d4149); border-radius: 10px;
  background: var(--bg-secondary, #22252f); cursor: pointer; font-size: 16px;
  color: var(--text-primary, #e4e4e7); transition: all 0.2s; position: relative;
}
.payment-btn:hover { border-color: var(--accent, #d4845c); background: var(--accent-bg, rgba(212,132,92,0.15)); }
.payment-btn.popular { border-color: #C9A84C; }
.payment-icon { font-size: 24px; }
.payment-label { flex: 1; font-weight: 500; }
.popular-badge {
  background: #C9A84C; color: white; font-size: 11px;
  padding: 2px 8px; border-radius: 20px; font-weight: bold;
}

/* ═══ SPLIT BILL UI ═══ */
.split-bill-modal { padding: 20px; max-width: 450px; }
.split-bill-modal h3 { color: var(--text-primary, #e4e4e7); margin-bottom: 16px; font-size: 16px; }
.split-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.split-tab {
  padding: 8px 16px; border: 2px solid var(--border-color, #3d4149); border-radius: 20px;
  background: var(--bg-secondary, #22252f); cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--text-secondary, #9ca3af); transition: all 0.2s;
}
.split-tab:hover { border-color: var(--accent, #d4845c); }
.split-tab.active { border-color: var(--accent, #d4845c); background: var(--accent, #d4845c); color: white; }
.split-content { min-height: 150px; }
.person-counter { display: flex; align-items: center; gap: 16px; margin: 12px 0; }
.person-amount { font-size: 14px; }
.custom-row { margin-bottom: 6px; }

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE + TOUCH + ACCESSIBILITY + PRINT
   Added 2026-04-02 — Append-only, no existing styles modified
   ═══════════════════════════════════════════════════════════════ */

/* === TOUCH-FRIENDLY GLOBAL === */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
button, a, [role="button"], [onclick], select, input, .nav-item, .menu-item-card,
.table-card, .order-card, .menu-category-item, .split-tab, .payment-btn, .dp-btn,
.dp-btn-primary, .dp-btn-success, .dp-btn-info, .dp-input-lg, .dp-icon-btn,
.order-type-tab, .filter-btn, .tab, .tab-item, .settings-tab, .cart-qty-btn {
    touch-action: manipulation;
}

/* Focus-visible for keyboard users (non-mouse) */
:focus-visible {
    outline: 3px solid var(--accent, #d4845c);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link enhancement */
.skip-link:focus {
    top: 0 !important;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Swipe hint for scrollable areas */
.scroll-hint {
    position: relative;
}
.scroll-hint::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 24px;
    background: linear-gradient(to left, var(--bg-primary, #1a1d29), transparent);
    pointer-events: none;
    opacity: 0.7;
}

/* === TABLET RESPONSIVE (max-width: 1024px) === */
@media (max-width: 1024px) {
    /* Sidebar collapses to icons only */
    #mainApp .sidebar {
        width: 60px !important;
    }
    #mainApp {
        --sidebar-w: 60px !important;
    }
    #mainApp .main-content {
        left: 60px !important;
    }
    .sidebar .logo-text,
    .sidebar .nav-item span:not(.nav-badge),
    .sidebar .nav-group-header span:first-child,
    .sidebar .nav-group-arrow,
    .sidebar #sidebarSettingsFixed > div:last-child,
    .sidebar #sidebarSettingsFixed .nav-item span {
        display: none !important;
    }
    .sidebar .logo {
        justify-content: center;
        padding: 4px 8px 16px;
    }
    .sidebar .nav-item {
        justify-content: center;
        padding: 12px 8px !important;
        margin: 2px 4px;
    }
    .sidebar .nav-item svg {
        width: 22px !important;
        height: 22px !important;
    }
    .sidebar .nav-badge {
        position: absolute;
        top: 4px;
        right: 4px;
        margin-left: 0;
        font-size: 9px;
        padding: 1px 4px;
        min-width: 14px;
    }
    .sidebar .nav-group-header {
        justify-content: center;
        padding: 6px 8px;
    }
    .sidebar #sidebarSettingsFixed {
        padding: 8px 4px;
    }
    .sidebar #sidebarSettingsFixed .nav-item {
        padding: 10px 8px !important;
    }
    /* Hide sidebar search on tablet collapsed */
    .sidebar > div[style*="padding:4px 10px"] {
        display: none !important;
    }

    /* Buttons larger for touch */
    button, .dp-btn, .dp-btn-primary, .dp-btn-success, .dp-btn-info {
        min-height: 44px;
        min-width: 44px;
    }
    .nav-item {
        min-height: 44px;
    }

    /* Font sizes slightly larger */
    .section-title { font-size: 18px; }
    .content { padding: 16px; }

    /* Table grid adapts */
    .tables-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    }

    /* Settings modal grid */
    #settingsModalInner > div:nth-child(2) > div:last-child [style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }

    /* Menu modal: narrower categories */
    .menu-modal-content {
        grid-template-columns: 130px 1fr 260px !important;
    }

    /* Order detail: stack */
    .content-grid.has-sidebar {
        grid-template-columns: 1fr !important;
    }
    .content-grid.has-sidebar > #posSidebarCol {
        position: static !important;
        max-height: none !important;
    }
}

/* === PHONE RESPONSIVE (max-width: 768px) === */
@media (max-width: 768px) {
    /* Reset sidebar to hidden drawer */
    #mainApp .sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 260px !important;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1001 !important;
        box-shadow: none;
    }
    #mainApp .sidebar.sidebar-open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    }
    /* When open, show text again */
    #mainApp .sidebar.sidebar-open .logo-text,
    #mainApp .sidebar.sidebar-open .nav-item span:not(.nav-badge),
    #mainApp .sidebar.sidebar-open .nav-group-header span:first-child,
    #mainApp .sidebar.sidebar-open .nav-group-arrow,
    #mainApp .sidebar.sidebar-open #sidebarSettingsFixed .nav-item span,
    #mainApp .sidebar.sidebar-open > div[style*="padding:4px 10px"] {
        display: revert !important;
    }
    #mainApp .sidebar.sidebar-open .nav-item {
        justify-content: flex-start;
        padding: 10px 14px !important;
    }
    #mainApp .sidebar.sidebar-open .logo {
        justify-content: flex-start;
        padding: 4px 16px 16px;
    }
    #mainApp .sidebar.sidebar-open .nav-badge {
        position: static;
        margin-left: auto;
    }

    #mainApp .main-content {
        left: 0 !important;
    }
    #mainApp {
        --sidebar-w: 0px !important;
    }

    /* Mobile menu button */
    #mobileMenuBtn {
        display: flex !important;
    }

    /* Larger touch targets */
    button, [role="button"], .dp-btn, .dp-btn-primary, .dp-btn-success,
    .dp-btn-info, select, input, .nav-item, .order-type-tab,
    .filter-btn, .tab-item, .tab {
        min-height: 48px;
    }
    .dp-icon-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 18px;
    }
    .cart-qty-btn {
        min-width: 44px;
        min-height: 44px;
    }

    /* Increase spacing between interactive elements */
    .nav-item {
        margin-bottom: 4px;
    }

    /* Full-screen modals */
    [style*="position:fixed"][style*="z-index"] > div[style*="border-radius"] {
        border-radius: 0 !important;
        max-width: 100% !important;
        max-height: 100% !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
    }

    /* Menu categories as horizontal scroll */
    .menu-categories {
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color, #3d4149) !important;
        padding: 8px !important;
        gap: 6px !important;
        max-height: 52px !important;
        width: 100% !important;
        min-width: 100% !important;
        flex-shrink: 0 !important;
    }
    .menu-categories::-webkit-scrollbar {
        display: none;
    }
    .menu-category-item {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    /* Content padding reduced */
    .content { padding: 12px; }

    /* Single column layout for stats/grids */
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns:repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    /* Header compact */
    .header {
        padding: 0 10px !important;
        min-height: 52px;
    }
    .header-title {
        font-size: 15px;
    }
    #headerLangPicker {
        display: none !important;
    }

    /* Table grid: 2 columns on phone */
    .tables-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
        gap: 8px !important;
    }

    /* Settings: tabs horizontal scroll on phone */
    #settingsModalInner > div:nth-child(2) > div:first-child {
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color, #2d3139) !important;
        max-height: 50px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #settingsModalInner > div:nth-child(2) > div:first-child::-webkit-scrollbar {
        display: none;
    }

    /* Reports charts: full width */
    #reportsSection canvas {
        max-width: 100% !important;
    }

    /* Receipt section: full width */
    .receipt-print,
    .receipt-print-58 {
        width: 100% !important;
    }
}

/* === SMALL PHONE RESPONSIVE (max-width: 480px) === */
@media (max-width: 480px) {
    /* Minimal UI */
    .content { padding: 8px; }

    /* Stack everything vertically */
    [style*="grid-template-columns: repeat(2, 1fr)"],
    [style*="grid-template-columns:repeat(2,1fr)"] {
        grid-template-columns: 1fr !important;
    }
    /* Preserve PIN pad 3 columns */
    #loginScreen [style*="grid-template-columns"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Larger fonts for readability */
    .section-title { font-size: 16px !important; }
    .header-title { font-size: 13px !important; }
    body { font-size: 14px; }

    /* Menu grid: 2 columns max */
    .menu-items-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    .menu-item-card {
        padding: 10px !important;
    }
    .menu-item-name {
        font-size: 13px !important;
    }
    .menu-item-price {
        font-size: 15px !important;
    }

    /* Cart on phone: less padding */
    .menu-modal-content > div:last-child {
        padding: 10px !important;
    }

    /* Tables grid: single column on very small */
    .tables-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    /* Hide non-essential info */
    #clockDate { display: none !important; }
    #networkStatusDot { display: none !important; }
    #offlineQueueBadge { display: none !important; }
    #saveIndicator { display: none !important; }
    #hhHeaderBadge { font-size: 10px !important; padding: 2px 6px !important; }

    /* Stat cards: compact */
    .stat-card {
        padding: 10px !important;
    }
    .stat-value {
        font-size: 18px !important;
    }
    .stat-label {
        font-size: 10px !important;
    }

    /* Order cards compact */
    .order-card {
        padding: 10px !important;
    }

    /* Touch: even bigger targets */
    button, [role="button"], select, input {
        min-height: 48px;
        font-size: 14px;
    }
}

/* === LANDSCAPE PHONE === */
@media (max-height: 500px) and (orientation: landscape) {
    .header { height: 42px !important; min-height: 42px !important; }
    .content { padding: 6px 8px; }
    .menu-modal-header { padding: 6px 12px !important; }
    /* Keep menu usable in landscape */
    .menu-categories {
        max-height: 40px !important;
    }
}

/* === TOUCH DEVICE ENHANCEMENTS === */
@media (hover: none) and (pointer: coarse) {
    /* All interactive: minimum 44x44 touch target */
    .nav-item { min-height: 44px; padding: 11px 16px; }
    button, .order-type-tab, select, input, [role="button"] { min-height: 44px; }
    .dp-icon-btn { width: 40px !important; height: 40px !important; }

    /* Increased spacing between tap targets */
    .nav-item + .nav-item { margin-top: 2px; }
    .menu-item-card { margin-bottom: 4px; }

    /* Disable hover states on touch */
    .nav-item:hover { background: transparent; color: inherit; }
    .nav-item.active:hover { background: rgba(212, 132, 92, 0.12); color: #e8b298; }

    /* Active states for touch feedback */
    .nav-item:active { background: rgba(212, 132, 92, 0.2); }
    .menu-item-card:active { transform: scale(0.97); }
    .table-card:active { transform: scale(0.97); }
    .order-card:active { transform: scale(0.98); }
    button:active, .dp-btn:active, .dp-btn-primary:active { opacity: 0.85; }

    /* Scrollable areas: momentum scrolling */
    .menu-categories,
    .menu-items-area,
    #sidebarNavScroll,
    .content,
    [style*="overflow-y:auto"],
    [style*="overflow-y: auto"] {
        -webkit-overflow-scrolling: touch;
    }

    /* Hide resize handle on touch */
    .pos-resize-handle { display: none !important; }
}

/* === ENHANCED PRINT STYLES === */
@media print {
    /* Reset everything for printing */
    *, *::before, *::after {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Hide all UI chrome */
    .sidebar, #mainSidebar,
    .header, .header-actions,
    #mobileMenuBtn, .sidebar-backdrop,
    .pos-resize-handle,
    .nav-item, .nav-group-header,
    .skip-link, .sr-only,
    button:not(.print-keep),
    .toast, .toast-message,
    #debugPanel, #versionBanner,
    #globalSearchOverlay,
    #paymentModal, #settingsModal,
    #reservationModal, #menuOverlay,
    #authScreen, #loginScreen,
    #setupWizard, #onboardingOverlay,
    #topInfoBar,
    #sidebarBackdrop,
    #sidebarSettingsFixed,
    .menu-overlay,
    .sidebar-column,
    #posSidebarCol {
        display: none !important;
    }

    /* Full width content */
    body {
        overflow: visible !important;
        background: white !important;
    }
    #mainApp, #mainApp .app-container,
    #mainApp .main-content,
    #mainApp .content,
    .main-column {
        position: static !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        background: white !important;
    }

    /* Sections page break control */
    .section {
        page-break-inside: avoid;
        break-inside: avoid;
        border: 1px solid #ccc !important;
        padding: 12px !important;
        margin-bottom: 12px !important;
    }

    /* Tables */
    table { border-collapse: collapse !important; width: 100% !important; }
    th, td { border: 1px solid #ccc !important; padding: 6px 8px !important; }
    th { background: #f3f4f6 !important; font-weight: 700 !important; color: black !important; }

    /* Thermal printer: 80mm receipt */
    .receipt-print {
        width: 80mm !important;
        margin: 0 auto !important;
        padding: 4mm !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        font-family: 'Courier New', monospace !important;
    }
    .receipt-print-58 {
        width: 58mm !important;
        margin: 0 auto !important;
        padding: 2mm !important;
        font-size: 10px !important;
    }
    .receipt-print *, .receipt-print-58 * {
        font-family: 'Courier New', monospace !important;
    }
    .receipt-print hr, .receipt-print-58 hr {
        border: none !important;
        border-top: 1px dashed black !important;
        margin: 4px 0 !important;
    }

    /* Reports: ensure charts print */
    canvas {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Links: show URL */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10px;
        color: #666 !important;
    }
    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: "" !important;
    }

    /* Page margins */
    @page {
        margin: 1.5cm;
        size: auto;
    }
    @page :first {
        margin-top: 2cm;
    }

    /* Keep colored status badges readable in print */
    [style*="background:#10b981"],
    [style*="background: #10b981"] { background: #10b981 !important; color: white !important; -webkit-print-color-adjust: exact !important; }
    [style*="background:#ef4444"],
    [style*="background: #ef4444"] { background: #ef4444 !important; color: white !important; -webkit-print-color-adjust: exact !important; }
    [style*="background:#f59e0b"],
    [style*="background: #f59e0b"] { background: #f59e0b !important; color: white !important; -webkit-print-color-adjust: exact !important; }
    [style*="background:#3b82f6"],
    [style*="background: #3b82f6"] { background: #3b82f6 !important; color: white !important; -webkit-print-color-adjust: exact !important; }
}

/* === ACCESSIBILITY: HIGH CONTRAST MODE === */
.high-contrast {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --border-color: #ffffff;
    --accent: #ffaa00;
}
.high-contrast * {
    border-color: #ffffff !important;
}
.high-contrast button,
.high-contrast [role="button"],
.high-contrast .nav-item,
.high-contrast a {
    outline: 1px solid #ffffff;
}
.high-contrast .nav-item.active {
    outline: 2px solid #ffaa00;
    background: #333 !important;
}

/* === ACCESSIBILITY: FOCUS TRAP OVERLAY === */
.focus-trap-active {
    overflow: hidden;
}
.modal-focus-trap {
    position: relative;
    z-index: 1;
}

/* === ACCESSIBILITY: LARGE TEXT MODE === */
/* ═══════════════════════════════════════════════════════════════
   LIGHT THEME v5 — UNIVERSAL INLINE STYLE SAFETY NET
   Catches ALL remaining hardcoded dark inline styles across the app
   ═══════════════════════════════════════════════════════════════ */

/* --- BACKGROUNDS: Dark → Light (global, skip auth/login) --- */
.theme-light :not(#authScreen):not(#loginScreen):not(#authScreen *):not(#loginScreen *) {
    /* This rule intentionally left as selector-only anchor */
}

/* Dark backgrounds → white/light */
.theme-light [style*="background:#22252f"],
.theme-light [style*="background: #22252f"] { background: #ffffff !important; }
.theme-light [style*="background:#1e2028"],
.theme-light [style*="background: #1e2028"] { background: #f3f4f6 !important; }
.theme-light [style*="background:#1a1d24"],
.theme-light [style*="background: #1a1d24"] { background: #f0f2f5 !important; }
.theme-light [style*="background:#1a1d29"],
.theme-light [style*="background: #1a1d29"] { background: #f0f2f5 !important; }
.theme-light [style*="background:#2d3139"],
.theme-light [style*="background: #2d3139"] { background: #f3f4f6 !important; }
.theme-light [style*="background:#3d4149"],
.theme-light [style*="background: #3d4149"] { background: #e2e8f0 !important; }
.theme-light [style*="background:#15171e"],
.theme-light [style*="background: #15171e"] { background: #f8f9fa !important; }
.theme-light [style*="background:#13151b"],
.theme-light [style*="background: #13151b"] { background: #f8f9fa !important; }
.theme-light [style*="background:#0f1117"],
.theme-light [style*="background: #0f1117"] { background: #f0f2f5 !important; }
.theme-light [style*="background:#252830"],
.theme-light [style*="background: #252830"] { background: #f3f4f6 !important; }
.theme-light [style*="background:#374151"],
.theme-light [style*="background: #374151"] { background: #e2e8f0 !important; }
.theme-light [style*="background:#4b5563"],
.theme-light [style*="background: #4b5563"] { background: #d1d5db !important; }
.theme-light [style*="background:#334155"],
.theme-light [style*="background: #334155"] { background: #e2e8f0 !important; }
.theme-light [style*="background:#1e293b"],
.theme-light [style*="background: #1e293b"] { background: #edf2f7 !important; }
.theme-light [style*="background:#1a1d27"],
.theme-light [style*="background: #1a1d27"] { background: #f0f2f5 !important; }

/* Tailwind dark backgrounds (modules panel) */
.theme-light [style*="background:#111827"],
.theme-light [style*="background: #111827"] { background: #f8f9fa !important; }
.theme-light [style*="background:#1f2937"],
.theme-light [style*="background: #1f2937"] { background: #f3f4f6 !important; }
.theme-light [style*="background:#171a21"],
.theme-light [style*="background: #171a21"] { background: #f8f9fa !important; }
.theme-light [style*="background:#0f172a"],
.theme-light [style*="background: #0f172a"] { background: #f0f2f5 !important; }

/* --- TEXT: Light-on-dark → Dark-on-light (global) --- */
.theme-light [style*="color:#e4e4e7"],
.theme-light [style*="color: #e4e4e7"] { color: #1a1a2e !important; }
.theme-light [style*="color:#e2e8f0"],
.theme-light [style*="color: #e2e8f0"] { color: #1a1a2e !important; }
.theme-light [style*="color:#d4d4d8"],
.theme-light [style*="color: #d4d4d8"] { color: #2d3748 !important; }
.theme-light [style*="color:#9ca3af"],
.theme-light [style*="color: #9ca3af"] { color: #4a5568 !important; }
.theme-light [style*="color:#6b7280"],
.theme-light [style*="color: #6b7280"] { color: #718096 !important; }
.theme-light [style*="color:#f5f5f5"],
.theme-light [style*="color: #f5f5f5"] { color: #1a1a2e !important; }
/* Tailwind light text on dark → dark text on light */
.theme-light [style*="color:#f9fafb"],
.theme-light [style*="color: #f9fafb"] { color: #1a1a2e !important; }
.theme-light [style*="color:#f3f4f6"],
.theme-light [style*="color: #f3f4f6"] { color: #2d3748 !important; }
.theme-light [style*="color:#cbd5e1"],
.theme-light [style*="color: #cbd5e1"] { color: #4a5568 !important; }
.theme-light [style*="color:#d1d5db"],
.theme-light [style*="color: #d1d5db"] { color: #4a5568 !important; }

/* --- BORDERS: Dark → Light (global) --- */
.theme-light [style*="border:1px solid #3d4149"],
.theme-light [style*="border: 1px solid #3d4149"] { border-color: #e2e8f0 !important; }
.theme-light [style*="border:2px solid #3d4149"],
.theme-light [style*="border: 2px solid #3d4149"] { border-color: #e2e8f0 !important; }
.theme-light [style*="border:1px solid #2d3139"],
.theme-light [style*="border: 1px solid #2d3139"] { border-color: #edf2f7 !important; }
.theme-light [style*="border:2px solid #2d3139"],
.theme-light [style*="border: 2px solid #2d3139"] { border-color: #edf2f7 !important; }
.theme-light [style*="border:1px solid #4b5563"],
.theme-light [style*="border: 1px solid #4b5563"] { border-color: #cbd5e0 !important; }
.theme-light [style*="border:2px dashed #3d4149"],
.theme-light [style*="border: 2px dashed #3d4149"] { border-color: #e2e8f0 !important; }
.theme-light [style*="border:2px dashed #4b5563"],
.theme-light [style*="border: 2px dashed #4b5563"] { border-color: #cbd5e0 !important; }
.theme-light [style*="border-bottom:1px solid #2d3139"],
.theme-light [style*="border-bottom: 1px solid #2d3139"] { border-bottom-color: #edf2f7 !important; }
.theme-light [style*="border-bottom:1px solid #3d4149"],
.theme-light [style*="border-bottom: 1px solid #3d4149"] { border-bottom-color: #e2e8f0 !important; }
.theme-light [style*="border-top:1px solid #2d3139"],
.theme-light [style*="border-top: 1px solid #2d3139"] { border-top-color: #edf2f7 !important; }
.theme-light [style*="border-top:1px solid #3d4149"],
.theme-light [style*="border-top: 1px solid #3d4149"] { border-top-color: #e2e8f0 !important; }
.theme-light [style*="border-left:1px solid #2d3139"],
.theme-light [style*="border-left: 1px solid #2d3139"] { border-left-color: #edf2f7 !important; }
.theme-light [style*="border-right:1px solid #2d3139"],
.theme-light [style*="border-right: 1px solid #2d3139"] { border-right-color: #edf2f7 !important; }
.theme-light [style*="border-left:3px solid #3d4149"] { border-left-color: #e2e8f0 !important; }
/* Tailwind borders */
.theme-light [style*="border:1px solid #374151"],
.theme-light [style*="border: 1px solid #374151"] { border-color: #e2e8f0 !important; }
.theme-light [style*="border:2px solid #374151"],
.theme-light [style*="border: 2px solid #374151"] { border-color: #e2e8f0 !important; }
.theme-light [style*="border:1px solid #2f3540"],
.theme-light [style*="border: 1px solid #2f3540"] { border-color: #edf2f7 !important; }

/* --- SHADOWS: Softer for light --- */
.theme-light [style*="box-shadow:0 20px 60px rgba(0,0,0,0.5)"],
.theme-light [style*="box-shadow:0 20px 60px rgba(0,0,0,.5)"] { box-shadow: 0 20px 60px rgba(0,0,0,0.1) !important; }
.theme-light [style*="box-shadow:0 8px 24px rgba(0,0,0,0.4)"],
.theme-light [style*="box-shadow:0 8px 24px rgba(0,0,0,.4)"] { box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important; }

/* --- ACCENT COLORS: Darker for white bg --- */
.theme-light [style*="color:#d4845c"],
.theme-light [style*="color: #d4845c"] { color: #b5623a !important; }

/* --- SCROLLBAR: Light tracks --- */
.theme-light ::-webkit-scrollbar-thumb { background: #cbd5e0 !important; }
.theme-light ::-webkit-scrollbar-track { background: transparent !important; }

/* --- GRADIENTS: Dark → Light (common patterns) --- */
.theme-light [style*="background:linear-gradient(135deg,#2d3139"],
.theme-light [style*="background: linear-gradient(135deg, #2d3139"],
.theme-light [style*="background:linear-gradient(135deg, #2d3139"] { background: linear-gradient(135deg,#edf0f3,#e2e8f0) !important; }
.theme-light [style*="background:linear-gradient(135deg,#1e293b"],
.theme-light [style*="background: linear-gradient(135deg, #1e293b"],
.theme-light [style*="background:linear-gradient(135deg, #1e293b"] { background: linear-gradient(135deg,#edf2f7,#e2e8f0) !important; }
.theme-light [style*="background:linear-gradient(135deg,#1a1d24"],
.theme-light [style*="background: linear-gradient(135deg, #1a1d24"],
.theme-light [style*="background:linear-gradient(135deg, #1a1d24"] { background: linear-gradient(135deg,#f3f4f6,#edf2f7) !important; }
.theme-light [style*="background:linear-gradient(135deg,#0f1117"],
.theme-light [style*="background: linear-gradient(135deg, #0f1117"],
.theme-light [style*="background:linear-gradient(135deg, #0f1117"] { background: linear-gradient(135deg,#f0f2f5,#f3f4f6) !important; }

/* --- Protect auth screens from light overrides --- */
#authScreen, #authScreen *, #loginScreen, #loginScreen * {
    /* Auth screens stay dark — these rules have no overrides above */
}

/* ═══ END LIGHT THEME v5 ═══ */

html.large-text {
    font-size: 120%;
}
html.large-text .nav-item {
    font-size: 15px;
    padding: 12px 16px;
}
html.large-text .section-title {
    font-size: 20px;
}
html.large-text .header-title {
    font-size: 18px;
}
html.large-text button,
html.large-text input,
html.large-text select {
    font-size: 15px;
}

/* ═══ UTILITY CLASSES (replace repetitive inline styles) ═══ */
.u-flex1 { flex: 1; }
.u-mla { margin-left: auto; }
.u-mb0 { margin-bottom: 0; }
.u-mb4 { margin-bottom: 4px; }
.u-mb6 { margin-bottom: 6px; }
.u-mb8 { margin-bottom: 8px; }
.u-mb10 { margin-bottom: 10px; }
.u-mb12 { margin-bottom: 12px; }
.u-mb16 { margin-bottom: 16px; }
.u-mb20 { margin-bottom: 20px; }
.u-mb24 { margin-bottom: 24px; }
.u-mb28 { margin-bottom: 28px; }
.u-mt0 { margin-top: 0; }
.u-m0 { margin: 0; }
.u-fs10 { font-size: 10px; }
.u-fs11 { font-size: 11px; }
.u-fs12 { font-size: 12px; }
.u-fs13 { font-size: 13px; }
.u-fs14 { font-size: 14px; }
.u-fs15 { font-size: 15px; }
.u-fs16 { font-size: 16px; }
.u-fs18 { font-size: 18px; }
.u-fs20 { font-size: 20px; }
.u-fs24 { font-size: 24px; }
.u-fs36 { font-size: 36px; }
.u-fs56 { font-size: 56px; }
.u-fw600 { font-weight: 600; }
.u-fw700 { font-weight: 700; }
.u-fw800 { font-weight: 800; }
.u-tac { text-align: center; }
.u-cursor-default { cursor: default; }
.u-cursor-pointer { cursor: pointer; }
.u-text-primary { color: var(--text-primary); }
.u-text-primary2 { color: var(--text-primary, #e4e4e7); }
.u-text-secondary { color: var(--text-secondary); }
.u-text-muted { color: var(--text-muted); }
.u-text-red { color: #ef4444; }
.u-text-blue { color: #3b82f6; }
.u-text-green { color: #10b981; }
.u-display-flex { display: flex; }
.u-display-grid { display: grid; }
.u-display-block { display: block; }
.u-display-inline { display: inline; }
.u-display-inline-block { display: inline-block; }
.u-display-flex-g6 { display: flex; gap: 6px; }
.u-flex-aic { display: flex; align-items: center; gap: 4px; }
.u-flex-row-sb { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.u-flex-row-g12 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.u-field-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.u-field-micro { font-size: 10px; color: var(--text-muted); display: block; margin-bottom: 3px; font-weight: 700; text-transform: uppercase; }
.u-text-12-muted { color: var(--text-muted); font-size: 12px; }
.u-hint-13 { font-size: 13px; color: var(--text-secondary); margin: 0 0 14px; }
.u-hint-12-sec { font-size: 12px; color: var(--text-secondary); }
.u-hint-11-muted { font-size: 11px; color: var(--text-muted); }
.u-card-sec { background: var(--bg-secondary); border-radius: 10px; padding: 20px; }
.u-card-sec-12 { background: var(--bg-secondary); border-radius: 12px; padding: 24px; border: 2px solid #3d4149; }
.u-title-14-primary { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.u-title-16-primary { font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 0; }
.u-title-18-primary { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 0 0 4px; }
.u-title-24-primary { font-size: 24px; font-weight: 700; color: var(--text-primary); margin: 0 0 6px; }
.u-p-hint { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }
.u-label-12-pri { font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.u-input-13 { width: 100%; padding: 10px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-size: 13px; outline: none; box-sizing: border-box; }
.u-input-13-alt { width: 100%; padding: 10px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-size: 13px; outline: none; box-sizing: border-box; }
.u-input-15 { width: 100%; padding: 14px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-primary); font-size: 15px; outline: none; box-sizing: border-box; }
.u-btn-tert-12 { padding: 7px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-primary); font-size: 12px; font-weight: 600; cursor: pointer; }
.u-btn-sec-11 { padding: 6px 14px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-secondary); font-size: 11px; font-weight: 700; cursor: pointer; }
.u-tab-btn { flex: 1; padding: 12px 8px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.u-grid-row-5col { display: grid; grid-template-columns: 60px 2fr 80px 80px 40px; gap: 8px; padding: 10px; background: var(--bg-secondary); border-radius: 8px; border: 1px solid var(--border-light); align-items: center; }
.u-micro-input { background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 6px; padding: 6px 8px; color: var(--text-primary); font-size: 12px; outline: none; }
.u-input-13-plain { width: 100%; padding: 10px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-size: 13px; outline: none; }
.u-tac-mb28 { text-align: center; margin-bottom: 28px; }
.u-tac-ptd { text-align: center; padding-top: 12px; border-top: 1px solid var(--border-light); }
.u-btn-pill-muted { padding: 8px 16px; background: var(--bg-input); border: 2px solid var(--border-color); border-radius: 10px; color: var(--text-muted); font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.u-btn-chip { padding: 6px 12px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-secondary); font-size: 11px; cursor: pointer; }
.u-btn-tile-11 { padding: 8px 4px; background: var(--bg-tertiary); border: 2px solid #3d4149; border-radius: 8px; color: var(--text-secondary); font-size: 11px; font-weight: 600; cursor: pointer; text-align: center; }
.u-btn-hover-12 { padding: 6px 14px; background: var(--bg-hover); border: 1px solid #4b5563; border-radius: 6px; color: var(--text-primary); font-size: 12px; font-weight: 600; cursor: pointer; }
.u-icon-56-mb12 { font-size: 56px; margin-bottom: 12px; }
.u-icon-36-mb10 { font-size: 36px; margin-bottom: 10px; }
.u-h-16-800 { font-size: 16px; font-weight: 800; color: var(--text-primary); }
.u-h-12-600 { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.u-text-12-muted-600 { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.u-text-10-muted-600 { font-size: 10px; color: var(--text-muted); font-weight: 600; }
.u-text-10-muted { font-size: 10px; color: var(--text-muted); }
.u-fs11-lh16 { font-size: 11px; line-height: 1.6; }
.u-section-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; }
.u-tab-btn-11 { flex: 1; padding: 6px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-secondary); font-size: 11px; font-weight: 700; cursor: pointer; }
.u-input-13-flex { flex: 1; padding: 10px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-size: 13px; outline: none; }
.u-tab-btn-fit { flex: 1; min-width: fit-content; padding: 10px 14px; background: transparent; border: none; border-radius: 8px; color: var(--text-secondary); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.u-flex-row-sb-8 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.u-flex-g8-mb12 { display: flex; gap: 8px; margin-bottom: 12px; }
.u-flex-g8-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.u-field-label-6 { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.u-p13-no-m { color: var(--text-secondary); font-size: 13px; margin: 0; }
.u-muted-12-mt6 { color: var(--text-muted); font-size: 12px; margin-top: 6px; }
.u-text-green-ok { color: #10b981; }
.u-link-btn { background: none; border: none; color: #d4845c; font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; }


/* ═══ AUTO-GENERATED UTILITY CLASSES (do not edit — regenerated by scripts/replace-inline-styles-auto.js) ═══ */
.u-auto-0 { flex: 1; padding: 8px; background:var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 6px; color:var(--text-secondary); font-size: 12px; font-weight: 600; cursor: pointer; }
.u-auto-1 { flex:1;padding: 7px; background:var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 6px; color:var(--text-primary); font-size: 12px; font-weight: 600; cursor: pointer; }
.u-auto-2 { width:100%;padding:8px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:6px;color:var(--text-primary);font-size:12px;outline:none;box-sizing:border-box; }
.u-auto-3 { display:none;padding:10px 14px;background:rgba(239,68,68,0.1);border:1px solid rgba(239,68,68,0.3);border-radius:8px;color:#ef4444;font-size:12px;text-align:center;margin-bottom:12px; }
.u-auto-4 { width:100%;margin-top:14px;padding:14px;background:linear-gradient(135deg,#8b5cf6,#6d28d9);border:none;border-radius:10px;color:white;font-size:14px;font-weight:700;cursor:pointer; }
.u-auto-5 { padding:8px 18px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;color:var(--text-secondary);font-size:12px;font-weight:700;cursor:pointer; }
.u-auto-6 { padding:14px 20px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:10px;color:var(--text-secondary);font-size:14px;cursor:pointer; }
.u-auto-7 { background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:10px;padding:12px;display:flex;justify-content:space-between;align-items:center; }
.u-auto-8 { padding:6px 14px;background:#d4845c;border:none;border-radius:6px;color:#fff;font-size:11px;font-weight:700;cursor:pointer; }
.u-auto-9 { text-align:center;padding:40px;background:var(--bg-secondary);border-radius:12px;border:1px solid var(--border-color); }
.u-auto-a { font-size:13px;font-weight:700;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.u-auto-b { font-size:10px;color:var(--text-muted);display:block;margin-bottom:4px;font-weight:700;text-transform:uppercase; }
.u-auto-c { display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;flex-wrap:wrap;gap:12px; }
.u-auto-d { display: block; font-size: 13px; font-weight: 600; color:var(--text-primary); margin-bottom: 8px; }
.u-auto-e { display:block;font-size:12px;font-weight:600;color:var(--text-secondary);margin-bottom:2px; }
.u-auto-f { background:var(--bg-secondary);border-radius:12px;padding:16px;margin-bottom:20px; }
.u-auto-g { background:var(--bg-secondary);border-radius:12px;padding:16px;margin-bottom:16px; }
.u-auto-h { font-size:14px;font-weight:700;color:var(--text-primary);margin-bottom:10px; }
.u-auto-i { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.u-auto-j { display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px; }
.u-auto-k { width:10px;height:10px;border-radius:50%;background:var(--bg-hover); }
.u-auto-l { display: flex; justify-content: space-between; align-items: center; }
.u-auto-m { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.u-auto-n { display:flex;justify-content:space-between;align-items:center; }
.u-auto-o { color:var(--text-secondary);margin:4px 0 0;font-size:13px; }
.u-auto-p { color:var(--text-secondary);margin:2px 0 0;font-size:12px; }
.u-auto-q { font-size:10px;color:var(--text-muted);margin-bottom:4px; }
.u-auto-r { font-size:10px;color:var(--text-muted);margin-bottom:6px; }
.u-auto-s { font-size:11px;color:var(--text-muted);margin-bottom:8px; }
.u-auto-t { font-size:13px;font-weight:600;color:var(--text-primary); }
.u-auto-u { font-size:14px;font-weight:700;color:var(--text-primary); }
.u-auto-v { color:var(--text-primary);font-size:15px;font-weight:700; }
.u-auto-w { font-size:12px;color:var(--text-muted);margin:0 0 20px; }
.u-auto-x { display:flex;align-items:center;gap:8px;cursor:pointer; }
.u-auto-y { font-size:11px;color:var(--text-muted);margin-top:4px; }
.u-auto-z { color:var(--text-primary);margin:0;font-size:22px; }
.u-auto-10 { color:var(--text-primary);margin:0;font-size:18px; }
.u-auto-11 { color:var(--text-secondary); font-size: 12px; }
.u-auto-12 { color:#f59e0b;font-size:11px;margin-top:4px; }
.u-auto-13 { font-size:10px;margin-top:2px;display:none; }
.u-auto-14 { color:var(--text-secondary);font-size:11px; }
.u-auto-15 { display:flex;align-items:center;gap:10px; }
.u-auto-16 { font-size:12px;color:var(--text-primary); }
.u-auto-17 { font-weight:400;color:var(--text-muted); }
.u-auto-18 { font-size:12px;color:var(--text-dim); }
.u-auto-19 { font-size:48px;margin-bottom:8px; }
.u-auto-1a { max-height:400px;overflow-y:auto; }
.u-auto-1b { margin-bottom:0;padding:12px; }
.u-auto-1c { display:none;margin-top:14px; }
.u-auto-1d { display: flex; gap: 12px; }
.u-auto-1e { display: flex; gap: 6px; }
.u-auto-1f { margin-bottom: 20px; }
.u-auto-1g { display:flex;gap:8px; }
.u-auto-1h { max-height: 300px; }
.u-auto-1i { position:relative; }
.u-auto-1j { margin-top: 24px; }
.u-auto-1k { margin-top:12px; }
.u-auto-1l { font-size:20px; }
.u-auto-1m { font-size:32px; }
.u-auto-1n { display:none; }
/* ═══ END AUTO-GENERATED ═══ */
