        body { font-family: 'Plus Jakarta Sans', sans-serif; }
        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: #090d16; }
        ::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: #334155; }
        @media screen and (max-width: 767px) {
            input:not([readonly]):not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]), select, textarea {
                font-size: 16px !important;
            }
        }
    
        /* ========================================================= */
        /* GLOBAL LIGHT THEME FIXES: GRADIENT CARDS, TOOLBARS & TABLES */
        /* ========================================================= */
        /* Remove dark linear gradients from KPI cards and containers */
        body.theme-light [class*="via-slate-900"],
        body.theme-light [class*="via-slate-800"],
        body.theme-light [class*="to-slate-900"],
        body.theme-light [class*="to-slate-950"],
        body.theme-light [class*="to-indigo-950"],
        body.light-theme [class*="via-slate-900"],
        body.light-theme [class*="via-slate-800"],
        body.light-theme [class*="to-slate-900"],
        body.light-theme [class*="to-slate-950"],
        body.light-theme [class*="to-indigo-950"] {
            background-image: none !important;
            background-color: #ffffff !important;
            border-color: #e2e8f0 !important;
            box-shadow: 0 4px 15px -2px rgba(0, 0, 0, 0.05) !important;
        }

        /* Categorias / Ingredientes / Relatórios KPI text contrast */
        body.theme-light [class*="border-sky-500"] h3,
        body.light-theme [class*="border-sky-500"] h3,
        body.theme-light [class*="border-purple-500"] h3,
        body.light-theme [class*="border-purple-500"] h3 {
            color: #0f172a !important;
        }

        /* Quick Filter Chips (Ingredientes & Cardápio) */
        body.theme-light .quick-filter-chip:not(.bg-sky-500\/25),
        body.light-theme .quick-filter-chip:not(.bg-sky-500\/25) {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #334155 !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
        }
        body.theme-light .quick-filter-chip:not(.bg-sky-500\/25):hover,
        body.light-theme .quick-filter-chip:not(.bg-sky-500\/25):hover {
            background-color: #f8fafc !important;
            color: #0f172a !important;
        }
        body.theme-light .quick-filter-chip:not(.bg-sky-500\/25) span.bg-slate-950,
        body.light-theme .quick-filter-chip:not(.bg-sky-500\/25) span.bg-slate-950 {
            background-color: #f1f5f9 !important;
            color: #475569 !important;
            border: 1px solid #e2e8f0 !important;
        }
        body.theme-light .quick-filter-chip.bg-sky-500\/25,
        body.light-theme .quick-filter-chip.bg-sky-500\/25 {
            background-color: #e0f2fe !important;
            border-color: #38bdf8 !important;
            color: #0369a1 !important;
        }
        body.theme-light .quick-filter-chip.bg-sky-500\/25 span.bg-sky-950,
        body.light-theme .quick-filter-chip.bg-sky-500\/25 span.bg-sky-950 {
            background-color: #bae6fd !important;
            color: #0284c7 !important;
        }

        /* Funcionários: Table & Collaborators Row */
        body.theme-light .linha-funcionario,
        body.light-theme .linha-funcionario {
            background-color: #ffffff !important;
        }
        body.theme-light .linha-funcionario:hover,
        body.light-theme .linha-funcionario:hover {
            background-color: #f8fafc !important;
        }
        body.theme-light .linha-funcionario .w-11.h-11,
        body.light-theme .linha-funcionario .w-11.h-11 {
            background: #f0f9ff !important;
            border-color: #bae6fd !important;
            color: #0284c7 !important;
        }
        body.theme-light .linha-funcionario a[href*="wa.me"],
        body.light-theme .linha-funcionario a[href*="wa.me"] {
            background-color: #f1f5f9 !important;
            border-color: #cbd5e1 !important;
            color: #1e293b !important;
        }
        body.theme-light .linha-funcionario a[href*="wa.me"]:hover,
        body.light-theme .linha-funcionario a[href*="wa.me"]:hover {
            background-color: #ecfdf5 !important;
            border-color: #a7f3d0 !important;
            color: #047857 !important;
        }
        body.theme-light .linha-funcionario td span.bg-slate-950,
        body.light-theme .linha-funcionario td span.bg-slate-950 {
            background-color: #f0f9ff !important;
            border-color: #bae6fd !important;
            color: #0284c7 !important;
        }
        body.theme-light .linha-funcionario button.bg-slate-800,
        body.light-theme .linha-funcionario button.bg-slate-800 {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #334155 !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
        }
        body.theme-light .linha-funcionario button.bg-slate-800:hover,
        body.light-theme .linha-funcionario button.bg-slate-800:hover {
            background-color: #f8fafc !important;
            color: #0f172a !important;
        }
        body.theme-light thead.bg-slate-950\/80,
        body.light-theme thead.bg-slate-950\/80 {
            background-color: #f8fafc !important;
            border-color: #e2e8f0 !important;
            color: #475569 !important;
        }

        /* Relatórios: Tabs, Date Presets & Inputs */
        body.theme-light .tab-rel-btn:not(.bg-indigo-500),
        body.light-theme .tab-rel-btn:not(.bg-indigo-500) {
            background-color: #ffffff !important;
            border: 1px solid #e2e8f0 !important;
            color: #475569 !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
        }
        body.theme-light .tab-rel-btn:not(.bg-indigo-500):hover,
        body.light-theme .tab-rel-btn:not(.bg-indigo-500):hover {
            background-color: #f8fafc !important;
            color: #0f172a !important;
        }
        body.theme-light .tab-rel-btn.bg-indigo-500,
        body.light-theme .tab-rel-btn.bg-indigo-500 {
            background-color: #6366f1 !important;
            color: #ffffff !important;
        }
        body.theme-light #filterDataInicio,
        body.light-theme #filterDataInicio,
        body.theme-light #filterDataFim,
        body.light-theme #filterDataFim,
        body.theme-light .flatpickr-input,
        body.light-theme .flatpickr-input {
            color: #0f172a !important;
            background-color: transparent !important;
        }

        .flatpickr-input {
            background-color: transparent !important;
            border: none !important;
            outline: none !important;
            box-shadow: none !important;
            font-family: inherit !important;
            font-size: 0.75rem !important;
            font-weight: 700 !important;
            width: 100% !important;
            padding: 0 !important;
            cursor: pointer !important;
            -webkit-appearance: none !important;
        }

        /* Flatpickr Calendar in Light Mode */
        body.theme-light .flatpickr-calendar,
        body.light-theme .flatpickr-calendar {
            background: #ffffff !important;
            border: 1px solid #cbd5e1 !important;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
            color: #0f172a !important;
        }
        body.theme-light .flatpickr-calendar .flatpickr-month,
        body.light-theme .flatpickr-calendar .flatpickr-month,
        body.theme-light .flatpickr-calendar .flatpickr-current-month,
        body.light-theme .flatpickr-calendar .flatpickr-current-month,
        body.theme-light .flatpickr-calendar span.flatpickr-weekday,
        body.light-theme .flatpickr-calendar span.flatpickr-weekday {
            color: #0f172a !important;
            fill: #0f172a !important;
        }
        body.theme-light .flatpickr-calendar .flatpickr-prev-month svg,
        body.light-theme .flatpickr-calendar .flatpickr-prev-month svg,
        body.theme-light .flatpickr-calendar .flatpickr-next-month svg,
        body.light-theme .flatpickr-calendar .flatpickr-next-month svg {
            fill: #0f172a !important;
        }
        body.theme-light .flatpickr-calendar .flatpickr-day,
        body.light-theme .flatpickr-calendar .flatpickr-day {
            color: #1e293b !important;
        }
        body.theme-light .flatpickr-calendar .flatpickr-day:hover,
        body.light-theme .flatpickr-calendar .flatpickr-day:hover {
            background: #f1f5f9 !important;
        }
        body.theme-light .flatpickr-calendar .flatpickr-day.selected,
        body.light-theme .flatpickr-calendar .flatpickr-day.selected {
            background: #6366f1 !important;
            color: #ffffff !important;
        }


        /* ========================================================= */
        /* MODO DIURNO (LIGHT MODE - ALTO CONTRASRASTE E UX LIMPA)   */
        /* ========================================================= */
        body.theme-light {
            background-color: #f8fafc !important;
            color: #0f172a !important;
        }

        body.theme-light div,
        body.theme-light main {
            color: #0f172a;
        }

        /* Header fixo no Modo Diurno */
        body.theme-light header {
            background-color: #ffffff !important;
            border-color: #f1f5f9 !important;
            color: #0f172a !important;
        }

        body.theme-light header span:not(.text-sky-400),
        body.theme-light header div,
        body.theme-light header h1,
        body.theme-light header h2,
        body.theme-light header h3 {
            color: #0f172a !important;
        }

        body.theme-light header .text-sky-400 {
            color: #0284c7 !important;
        }

        /* Sidebar no Modo Diurno */
        body.theme-light aside#tenantAdminSidebar {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
        }

        body.theme-light aside#tenantAdminSidebar span:not(.text-sky-400),
        body.theme-light aside#tenantAdminSidebar p {
            color: #334155 !important;
        }

        body.theme-light aside#tenantAdminSidebar a:hover {
            background-color: #f1f5f9 !important;
        }

        body.theme-light aside#tenantAdminSidebar a.bg-sky-500\/15 {
            background-color: #e0f2fe !important;
            color: #0284c7 !important;
        }

        /* Barra inferior mobile */
        body.theme-light nav.md\:hidden {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
        }

        /* Ajuste de Altura e Visibilidade da Sidebar Mobile em Viewports Curtos / iOS Safari */
        @media (max-width: 767px) {
            aside#tenantAdminSidebar,
            aside#superAdminSidebar {
                position: fixed !important;
                top: 0 !important;
                bottom: 0 !important;
                left: 0 !important;
                height: 100% !important;
                height: 100dvh !important;
                max-height: 100dvh !important;
                display: flex !important;
                flex-direction: column !important;
                justify-content: space-between !important;
                overflow: hidden !important;
                box-sizing: border-box !important;
                z-index: 50 !important;
            }
            aside#tenantAdminSidebar > div:first-of-type {
                flex-shrink: 0 !important;
            }
            aside#tenantAdminSidebar > div.flex-1 {
                flex: 1 1 0% !important;
                min-height: 0 !important;
                overflow-y: auto !important;
                -webkit-overflow-scrolling: touch !important;
            }
            aside#tenantAdminSidebar > div.sidebar-user-footer,
            aside#tenantAdminSidebar > div:last-of-type {
                flex-shrink: 0 !important;
                margin-top: auto !important;
                padding-bottom: max(1rem, env(safe-area-inset-bottom)) !important;
            }
        }

        /* Cards, Contêineres, Tabelas e Modais no Modo Diurno */
        body.theme-light .bg-slate-900, 
        body.theme-light .bg-slate-900\/95, 
        body.theme-light .bg-slate-900\/90, 
        body.theme-light .bg-slate-900\/60,
        body.theme-light .bg-slate-950,
        body.theme-light .bg-slate-950\/95,
        body.theme-light .bg-slate-950\/90,
        body.theme-light .bg-slate-950\/80,
        body.theme-light .bg-slate-950\/70,
        body.theme-light .bg-slate-950\/60,
        body.theme-light .bg-slate-950\/20,
        body.theme-light .bg-slate-800,
        body.theme-light .bg-slate-800\/90,
        body.theme-light .bg-slate-800\/80,
        body.light-theme .bg-slate-900, 
        body.light-theme .bg-slate-900\/95, 
        body.light-theme .bg-slate-900\/90, 
        body.light-theme .bg-slate-900\/60,
        body.light-theme .bg-slate-950,
        body.light-theme .bg-slate-950\/95,
        body.light-theme .bg-slate-950\/90,
        body.light-theme .bg-slate-950\/80,
        body.light-theme .bg-slate-950\/70,
        body.light-theme .bg-slate-950\/60,
        body.light-theme .bg-slate-950\/20,
        body.light-theme .bg-slate-800,
        body.light-theme .bg-slate-800\/90,
        body.light-theme .bg-slate-800\/80,
        body.theme-light [class*="bg-[#0f172a]"],
        body.theme-light [class*="bg-[#090d16]"],
        body.theme-light [class*="bg-[#131c2e]"],
        body.theme-light [class*="bg-[#131d31]"],
        body.theme-light [class*="bg-[#1e293b]"],
        body.theme-light [class*="bg-[#0b0f19]"],
        body.theme-light [class*="bg-[#1a2332]"],
        body.theme-light [class*="bg-[#111827]"],
        body.theme-light [class*="bg-[#020617]"],
        body.theme-light [class*="bg-[#0b1324]"],
        body.theme-light [class*="bg-[#09101f]"],
        body.theme-light [class*="bg-[#1a253a]"] {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06) !important;
        }

        body.theme-light h1, 
        body.theme-light h2, 
        body.theme-light h3, 
        body.theme-light h4,
        body.theme-light h5,
        body.theme-light h6 {
            color: #0f172a !important;
        }

        body.theme-light p,
        body.theme-light span.text-slate-400,
        body.theme-light span.text-slate-300 {
            color: #475569 !important;
        }

        /* ========================================================= */
        
        /* ========================================================= */
        /* CONTROLES E BARRA STICKY DE MESAS NO MODO DIURNO (LIGHT)  */
        /* ========================================================= */
        body.theme-light #mesasMobileStickyControls,
        body.light-theme #mesasMobileStickyControls,
        body.theme-light div[style*="background-color: rgba(15, 23, 42"],
        body.light-theme div[style*="background-color: rgba(15, 23, 42"] {
            background-color: rgba(255, 255, 255, 0.96) !important;
            border-color: #cbd5e1 !important;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
        }

        body.theme-light #mesasFilterTabsWrapperMobile,
        body.light-theme #mesasFilterTabsWrapperMobile,
        body.theme-light #occupiedTableSquaresContainerMob,
        body.light-theme #occupiedTableSquaresContainerMob,
        body.theme-light #mesasFilterTabsWrapperDesktop,
        body.light-theme #mesasFilterTabsWrapperDesktop,
        body.theme-light #occupiedTableSquaresContainer,
        body.light-theme #occupiedTableSquaresContainer {
            background-color: #f1f5f9 !important;
            border-color: #e2e8f0 !important;
        }

        body.theme-light .mesa-filter-btn:not(.bg-rose-500):not(.bg-emerald-500):not(.bg-amber-500):not(.bg-sky-500),
        body.light-theme .mesa-filter-btn:not(.bg-rose-500):not(.bg-emerald-500):not(.bg-amber-500):not(.bg-sky-500) {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #475569 !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
        }

        body.theme-light .mesa-filter-btn:not(.bg-rose-500):not(.bg-emerald-500):not(.bg-amber-500):not(.bg-sky-500):hover,
        body.light-theme .mesa-filter-btn:not(.bg-rose-500):not(.bg-emerald-500):not(.bg-amber-500):not(.bg-sky-500):hover {
            background-color: #f8fafc !important;
            color: #0f172a !important;
        }

        body.theme-light .square-mesa-btn:not(.from-rose-500),
        body.light-theme .square-mesa-btn:not(.from-rose-500) {
            background-color: #ffffff !important;
            border-color: #fda4af !important;
            color: #e11d48 !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
        }

        body.theme-light .square-mesa-btn:not(.from-rose-500):hover,
        body.light-theme .square-mesa-btn:not(.from-rose-500):hover {
            background-color: #fff1f2 !important;
            border-color: #f43f5e !important;
        }

        body.theme-light .square-mesa-btn span.text-emerald-400,
        body.light-theme .square-mesa-btn span.text-emerald-400 {
            color: #059669 !important;
        }

        body.theme-light #inputSearchMesaMobile,
        body.light-theme #inputSearchMesaMobile,
        body.theme-light #inputSearchMesa,
        body.light-theme #inputSearchMesa {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #0f172a !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
        }

        body.theme-light #inputSearchMesaMobile::placeholder,
        body.light-theme #inputSearchMesaMobile::placeholder,
        body.theme-light #inputSearchMesa::placeholder,
        body.light-theme #inputSearchMesa::placeholder {
            color: #94a3b8 !important;
        }

        /* ========================================================= */
        /* KDS (KITCHEN DISPLAY SYSTEM) NO MODO DIURNO (LIGHT THEME) */
        /* ========================================================= */
        /* Mobile Sticky Navigation Tabs */
        body.theme-light #kdsMobileNavTabs,
        body.light-theme #kdsMobileNavTabs {
            background-color: rgba(255, 255, 255, 0.98) !important;
            border-color: #e2e8f0 !important;
            box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08) !important;
        }

        body.theme-light #kdsMobileSegmentGrid,
        body.light-theme #kdsMobileSegmentGrid {
            background-color: #f1f5f9 !important;
            border-color: #e2e8f0 !important;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04) !important;
        }

        body.theme-light .kds-mobile-tab-btn:not(.bg-emerald-500):not(.bg-amber-500):not(.bg-sky-500):not(.bg-teal-500),
        body.light-theme .kds-mobile-tab-btn:not(.bg-emerald-500):not(.bg-amber-500):not(.bg-sky-500):not(.bg-teal-500) {
            color: #475569 !important;
        }

        body.theme-light .kds-mobile-tab-btn:not(.bg-emerald-500):not(.bg-amber-500):not(.bg-sky-500):not(.bg-teal-500):hover,
        body.light-theme .kds-mobile-tab-btn:not(.bg-emerald-500):not(.bg-amber-500):not(.bg-sky-500):not(.bg-teal-500):hover {
            color: #0f172a !important;
            background-color: rgba(255, 255, 255, 0.8) !important;
        }

        body.theme-light .kds-mobile-tab-btn:not(.bg-emerald-500):not(.bg-amber-500):not(.bg-sky-500):not(.bg-teal-500) span[id^="kdsMobileBadge"],
        body.light-theme .kds-mobile-tab-btn:not(.bg-emerald-500):not(.bg-amber-500):not(.bg-sky-500):not(.bg-teal-500) span[id^="kdsMobileBadge"] {
            background-color: #ffffff !important;
            color: #334155 !important;
            border: 1px solid #cbd5e1 !important;
        }

        body.theme-light #kdsMobileNavTabs span.text-slate-400,
        body.light-theme #kdsMobileNavTabs span.text-slate-400 {
            color: #64748b !important;
        }

        body.theme-light #btnKdsToggleShowAll,
        body.light-theme #btnKdsToggleShowAll {
            color: #0284c7 !important;
        }

        /* Sector Buttons (Todos, Cozinha, Bar) */
        body.theme-light .kds-sector-btn:not(.bg-sky-500),
        body.light-theme .kds-sector-btn:not(.bg-sky-500) {
            color: #475569 !important;
        }

        body.theme-light .kds-sector-btn:not(.bg-sky-500):hover,
        body.light-theme .kds-sector-btn:not(.bg-sky-500):hover {
            color: #0f172a !important;
            background-color: #f8fafc !important;
        }

        body.theme-light .kds-sector-btn:not(.bg-sky-500) span[id^="cntBadge"],
        body.light-theme .kds-sector-btn:not(.bg-sky-500) span[id^="cntBadge"] {
            background-color: #f1f5f9 !important;
            color: #475569 !important;
            border: 1px solid #e2e8f0 !important;
        }

        /* Trigger Button do Filtro de Origem */
        body.theme-light #btnTriggerOrigemKds,
        body.light-theme #btnTriggerOrigemKds {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
        }

        body.theme-light #btnTriggerOrigemKds:hover,
        body.light-theme #btnTriggerOrigemKds:hover {
            background-color: #f8fafc !important;
            border-color: #94a3b8 !important;
        }

        body.theme-light #kdsOrigemLabelCurrent,
        body.light-theme #kdsOrigemLabelCurrent {
            color: #0284c7 !important;
        }

        /* Modal / Bottom Sheet Moderno de Origem */
        body.theme-light #modalOrigemKdsCard,
        body.light-theme #modalOrigemKdsCard {
            background-color: #ffffff !important;
            border-color: #e2e8f0 !important;
            color: #0f172a !important;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18) !important;
        }

        body.theme-light #modalOrigemKdsCard .border-b,
        body.light-theme #modalOrigemKdsCard .border-b,
        body.theme-light #modalOrigemKdsCard .border-t,
        body.light-theme #modalOrigemKdsCard .border-t {
            border-color: #f1f5f9 !important;
        }

        body.theme-light .kds-origem-option-btn,
        body.light-theme .kds-origem-option-btn {
            background-color: #f8fafc !important;
            border-color: #e2e8f0 !important;
            color: #1e293b !important;
        }

        body.theme-light .kds-origem-option-btn:hover,
        body.light-theme .kds-origem-option-btn:hover {
            background-color: #f1f5f9 !important;
            border-color: #cbd5e1 !important;
        }

        body.theme-light .kds-origem-option-btn p.text-white,
        body.light-theme .kds-origem-option-btn p.text-white {
            color: #0f172a !important;
        }

        body.theme-light .kds-origem-option-btn.active-origem,
        body.light-theme .kds-origem-option-btn.active-origem {
            background-color: #f0f9ff !important;
            border-color: #0284c7 !important;
            box-shadow: 0 0 0 1px #0284c7 !important;
        }

        body.theme-light .kds-origem-option-btn.active-origem p.text-white,
        body.light-theme .kds-origem-option-btn.active-origem p.text-white {
            color: #0369a1 !important;
        }

        body.theme-light .kds-mesa-chip,
        body.light-theme .kds-mesa-chip {
            background-color: #f8fafc !important;
            border-color: #e2e8f0 !important;
            color: #334155 !important;
        }

        body.theme-light .kds-mesa-chip:hover,
        body.light-theme .kds-mesa-chip:hover {
            background-color: #f1f5f9 !important;
            border-color: #cbd5e1 !important;
            color: #0f172a !important;
        }

        body.theme-light .kds-mesa-chip.active-chip,
        body.light-theme .kds-mesa-chip.active-chip {
            background-color: #0284c7 !important;
            border-color: #0284c7 !important;
            color: #ffffff !important;
        }

        body.theme-light .kds-mesa-chip.active-chip span.truncate,
        body.light-theme .kds-mesa-chip.active-chip span.truncate {
            color: #ffffff !important;
        }


        
        /* ========================================================= */
        /* MODAL FECHAMENTO POS: RESTANTE A PAGAR & STATUS DO SALDO  */
        /* ========================================================= */
        body.theme-light #boxFecharRestantePagar,
        body.light-theme #boxFecharRestantePagar {
            background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
            border: 1.5px solid #10b981 !important;
            box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.22) !important;
        }

        body.theme-light #boxFecharRestantePagar span:first-child,
        body.light-theme #boxFecharRestantePagar span:first-child {
            color: #065f46 !important;
            font-weight: 900 !important;
            font-size: 10px !important;
            letter-spacing: 0.05em !important;
        }

        body.theme-light #boxFecharRestantePagar #fecharTotalFinalText,
        body.light-theme #boxFecharRestantePagar #fecharTotalFinalText {
            color: #047857 !important;
            font-weight: 900 !important;
        }

        body.theme-light #boxSaldoStatusCard,
        body.light-theme #boxSaldoStatusCard {
            background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
            border: 2px solid #f59e0b !important;
            box-shadow: 0 4px 15px -3px rgba(245, 158, 11, 0.15) !important;
        }

        body.theme-light #boxSaldoStatusCard.saldo-coberto,
        body.light-theme #boxSaldoStatusCard.saldo-coberto {
            background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
            border: 2px solid #10b981 !important;
            box-shadow: 0 4px 15px -3px rgba(16, 185, 129, 0.15) !important;
        }

        body.theme-light #boxSaldoStatusCard span,
        body.light-theme #boxSaldoStatusCard span {
            color: #92400e !important;
        }

        body.theme-light #boxSaldoStatusCard span.text-amber-400,
        body.light-theme #boxSaldoStatusCard span.text-amber-400 {
            color: #b45309 !important;
        }

        body.theme-light #boxSaldoStatusCard.saldo-coberto span,
        body.light-theme #boxSaldoStatusCard.saldo-coberto span {
            color: #065f46 !important;
        }

        body.theme-light #boxSaldoStatusCard.saldo-coberto span.text-emerald-400,
        body.light-theme #boxSaldoStatusCard.saldo-coberto span.text-emerald-400 {
            color: #047857 !important;
        }

        body.theme-light #inputValorGenerico,
        body.light-theme #inputValorGenerico,
        body.theme-light #inputValorAbatidoDinheiro,
        body.light-theme #inputValorAbatidoDinheiro {
            color: #047857 !important;
            background-color: #ffffff !important;
        }

        /* ========================================================= */
        /* MODAL LANÇAR PEDIDO NA MESA NO MODO DIURNO (LIGHT)       */
        /* ========================================================= */
        body.theme-light #modalLancarPedidoMesa > div,
        body.light-theme #modalLancarPedidoMesa > div,
        body:not(.theme-dark) #modalLancarPedidoMesa > div {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
        }

        body.theme-light #modalLancarPedidoMesa .bg-slate-900,
        body.light-theme #modalLancarPedidoMesa .bg-slate-900,
        body.theme-light #modalLancarPedidoMesa .bg-slate-950,
        body.light-theme #modalLancarPedidoMesa .bg-slate-950 {
            background-color: #ffffff !important;
            border-color: #e2e8f0 !important;
        }

        /* Top Bar do Catálogo */
        body.theme-light #modalLancarPedidoMesa .shrink-0.bg-slate-950,
        body.light-theme #modalLancarPedidoMesa .shrink-0.bg-slate-950 {
            background-color: #f8fafc !important;
            border-color: #e2e8f0 !important;
        }

        /* Botão Categorias */
        body.theme-light #modalLancarPedidoMesa .btn-lancar-categorias,
        body.light-theme #modalLancarPedidoMesa .btn-lancar-categorias,
        body.theme-light #modalLancarPedidoMesa .bg-\[\#0d1e37\],
        body.light-theme #modalLancarPedidoMesa .bg-\[\#0d1e37\],
        body.theme-light #modalLancarPedidoMesa button:has(.fa-border-all),
        body.light-theme #modalLancarPedidoMesa button:has(.fa-border-all) {
            background-color: #e0f2fe !important;
            border-color: #bae6fd !important;
            color: #0284c7 !important;
        }
        body.theme-light #modalLancarPedidoMesa .btn-lancar-categorias:hover,
        body.light-theme #modalLancarPedidoMesa .btn-lancar-categorias:hover,
        body.theme-light #modalLancarPedidoMesa .bg-\[\#0d1e37\]:hover,
        body.light-theme #modalLancarPedidoMesa .bg-\[\#0d1e37\]:hover,
        body.theme-light #modalLancarPedidoMesa button:has(.fa-border-all):hover,
        body.light-theme #modalLancarPedidoMesa button:has(.fa-border-all):hover {
            background-color: #bae6fd !important;
            color: #0369a1 !important;
        }

        /* Botão + Adicionar Cliente */
        body.theme-light #modalLancarPedidoMesa .btn-lancar-add-cliente,
        body.light-theme #modalLancarPedidoMesa .btn-lancar-add-cliente,
        body.theme-light #modalLancarPedidoMesa button[onclick*="lancarClienteNomeInput"],
        body.light-theme #modalLancarPedidoMesa button[onclick*="lancarClienteNomeInput"] {
            background-color: #0284c7 !important;
            border-color: #0284c7 !important;
            color: #ffffff !important;
        }
        body.theme-light #modalLancarPedidoMesa .btn-lancar-add-cliente:hover,
        body.light-theme #modalLancarPedidoMesa .btn-lancar-add-cliente:hover,
        body.theme-light #modalLancarPedidoMesa button[onclick*="lancarClienteNomeInput"]:hover,
        body.light-theme #modalLancarPedidoMesa button[onclick*="lancarClienteNomeInput"]:hover {
            background-color: #0369a1 !important;
            color: #ffffff !important;
        }

        /* Pílulas de Categoria Inativas */
        body.theme-light #modalLancarPedidoMesa .cat-lancar-pill:not(.bg-sky-500):not(.bg-\[\#0070f3\]):not(.bg-amber-500),
        body.light-theme #modalLancarPedidoMesa .cat-lancar-pill:not(.bg-sky-500):not(.bg-\[\#0070f3\]):not(.bg-amber-500) {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #475569 !important;
        }
        body.theme-light #modalLancarPedidoMesa .cat-lancar-pill:not(.bg-sky-500):not(.bg-\[\#0070f3\]):not(.bg-amber-500):hover,
        body.light-theme #modalLancarPedidoMesa .cat-lancar-pill:not(.bg-sky-500):not(.bg-\[\#0070f3\]):not(.bg-amber-500):hover {
            background-color: #f1f5f9 !important;
            color: #0f172a !important;
            border-color: #94a3b8 !important;
        }
        body.theme-light #modalLancarPedidoMesa .cat-lancar-pill span.bg-slate-950,
        body.light-theme #modalLancarPedidoMesa .cat-lancar-pill span.bg-slate-950 {
            background-color: #e2e8f0 !important;
            color: #334155 !important;
        }

        /* Card de Produto NÃO Selecionado no Catálogo */
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar:not(.is-selected):not(.border-\[\#0070f3\]),
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar:not(.is-selected):not(.border-\[\#0070f3\]) {
            background-color: #ffffff !important;
            border: 1px solid #e2e8f0 !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
        }
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar:not(.is-selected):not(.border-\[\#0070f3\]):hover,
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar:not(.is-selected):not(.border-\[\#0070f3\]):hover {
            background-color: #f8fafc !important;
            border-color: #38bdf8 !important;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07) !important;
        }
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar:not(.is-selected):not(.border-\[\#0070f3\]) h4,
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar:not(.is-selected):not(.border-\[\#0070f3\]) h4 {
            color: #0f172a !important;
        }
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar:not(.is-selected):not(.border-\[\#0070f3\]) p,
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar:not(.is-selected):not(.border-\[\#0070f3\]) p {
            color: #64748b !important;
        }
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar:not(.is-selected):not(.border-\[\#0070f3\]) span.font-mono,
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar:not(.is-selected):not(.border-\[\#0070f3\]) span.font-mono {
            color: #059669 !important;
        }
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar:not(.is-selected) .w-8.h-8,
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar:not(.is-selected) .w-8.h-8 {
            background-color: #f1f5f9 !important;
            border-color: #cbd5e1 !important;
            color: #0284c7 !important;
        }

        /* Card de Produto SELECIONADO no Catálogo (High Contrast Sky Blue) */
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar.is-selected,
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar[data-selected="true"],
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar.border-\[\#0070f3\],
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar[class*="bg-[#091f42]"],
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar.is-selected,
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar[data-selected="true"],
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar.border-\[\#0070f3\],
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar[class*="bg-[#091f42]"] {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
            border: 2px solid #0284c7 !important;
            box-shadow: 0 0 0 1px #0284c7, 0 4px 14px rgba(2, 132, 199, 0.22) !important;
        }
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar.is-selected h4,
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar.border-\[\#0070f3\] h4,
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar[class*="bg-[#091f42]"] h4,
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar.is-selected h4,
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar.border-\[\#0070f3\] h4,
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar[class*="bg-[#091f42]"] h4 {
            color: #0369a1 !important;
            font-weight: 900 !important;
        }
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar.is-selected p,
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar.border-\[\#0070f3\] p,
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar[class*="bg-[#091f42]"] p,
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar.is-selected p,
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar.border-\[\#0070f3\] p,
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar[class*="bg-[#091f42]"] p {
            color: #0284c7 !important;
            font-weight: 700 !important;
        }
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar.is-selected span.font-mono,
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar.border-\[\#0070f3\] span.font-mono,
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar[class*="bg-[#091f42]"] span.font-mono,
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar.is-selected span.font-mono,
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar.border-\[\#0070f3\] span.font-mono,
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar[class*="bg-[#091f42]"] span.font-mono {
            color: #059669 !important;
            font-weight: 900 !important;
        }
        body.theme-light #modalLancarPedidoMesa .cart-qty-badge,
        body.light-theme #modalLancarPedidoMesa .cart-qty-badge {
            background-color: #0284c7 !important;
            border-color: #0284c7 !important;
            color: #ffffff !important;
        }
        body.theme-light #modalLancarPedidoMesa .check-icon.bg-\[\#0070f3\],
        body.light-theme #modalLancarPedidoMesa .check-icon.bg-\[\#0070f3\] {
            background-color: #0284c7 !important;
            border-color: #0284c7 !important;
            color: #ffffff !important;
        }
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar.is-selected .w-8.h-8,
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar.border-\[\#0070f3\] .w-8.h-8,
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar.is-selected .w-8.h-8,
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar.border-\[\#0070f3\] .w-8.h-8 {
            background-color: #0284c7 !important;
            border-color: #0284c7 !important;
            color: #ffffff !important;
        }
        body.theme-light #modalLancarPedidoMesa .prod-card-lancar .w-11.h-11,
        body.light-theme #modalLancarPedidoMesa .prod-card-lancar .w-11.h-11 {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
        }

        /* Lista de Itens do Carrinho */
        body.theme-light #lancarCartListContainer,
        body.light-theme #lancarCartListContainer {
            background-color: #f8fafc !important;
            border-color: #e2e8f0 !important;
        }
        body.theme-light #lancarCartListContainer .cart-item-row,
        body.light-theme #lancarCartListContainer .cart-item-row,
        body.theme-light #lancarCartListContainer > div,
        body.light-theme #lancarCartListContainer > div {
            background-color: #ffffff !important;
            border: 1px solid #e2e8f0 !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
        }
        body.theme-light #lancarCartListContainer h5,
        body.light-theme #lancarCartListContainer h5 {
            color: #0f172a !important;
        }
        body.theme-light #lancarCartListContainer span.text-\[\#00d8a5\],
        body.light-theme #lancarCartListContainer span.text-\[\#00d8a5\] {
            color: #059669 !important;
        }

        /* Controles de Quantidade no Carrinho */
        body.theme-light #lancarCartListContainer .cart-item-qty-wrapper,
        body.light-theme #lancarCartListContainer .cart-item-qty-wrapper,
        body.theme-light #lancarCartListContainer .bg-slate-950,
        body.light-theme #lancarCartListContainer .bg-slate-950 {
            background-color: #f1f5f9 !important;
            border-color: #cbd5e1 !important;
        }
        body.theme-light #lancarCartListContainer .cart-item-qty-btn,
        body.light-theme #lancarCartListContainer .cart-item-qty-btn,
        body.theme-light #lancarCartListContainer .bg-\[\#0b1b36\],
        body.light-theme #lancarCartListContainer .bg-\[\#0b1b36\],
        body.theme-light #modalLancarPedidoMesa .bg-\[\#0b1b36\],
        body.light-theme #modalLancarPedidoMesa .bg-\[\#0b1b36\] {
            background-color: #ffffff !important;
            border: 1px solid #cbd5e1 !important;
            color: #0284c7 !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
        }
        body.theme-light #lancarCartListContainer .cart-item-qty-btn:hover,
        body.light-theme #lancarCartListContainer .cart-item-qty-btn:hover,
        body.theme-light #lancarCartListContainer .bg-\[\#0b1b36\]:hover,
        body.light-theme #lancarCartListContainer .bg-\[\#0b1b36\]:hover,
        body.theme-light #modalLancarPedidoMesa .bg-\[\#0b1b36\]:hover,
        body.light-theme #modalLancarPedidoMesa .bg-\[\#0b1b36\]:hover {
            background-color: #e0f2fe !important;
            color: #0369a1 !important;
        }
        body.theme-light #lancarCartListContainer .cart-item-qty-num,
        body.light-theme #lancarCartListContainer .cart-item-qty-num,
        body.theme-light #lancarCartListContainer .cart-item-qty-wrapper span,
        body.light-theme #lancarCartListContainer .cart-item-qty-wrapper span {
            color: #0f172a !important;
        }
        body.theme-light #lancarCartListContainer .cart-item-remove-btn,
        body.light-theme #lancarCartListContainer .cart-item-remove-btn,
        body.theme-light #lancarCartListContainer button[onclick*="removerItemCart"],
        body.light-theme #lancarCartListContainer button[onclick*="removerItemCart"] {
            color: #94a3b8 !important;
        }
        body.theme-light #lancarCartListContainer .cart-item-remove-btn:hover,
        body.light-theme #lancarCartListContainer .cart-item-remove-btn:hover,
        body.theme-light #lancarCartListContainer button[onclick*="removerItemCart"]:hover,
        body.light-theme #lancarCartListContainer button[onclick*="removerItemCart"]:hover {
            color: #e11d48 !important;
        }

        /* Inputs e Textarea no Modal Lançar Pedido */
        body.theme-light #modalLancarPedidoMesa input[type="text"],
        body.light-theme #modalLancarPedidoMesa input[type="text"],
        body.theme-light #modalLancarPedidoMesa textarea,
        body.light-theme #modalLancarPedidoMesa textarea {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #0f172a !important;
        }
        body.theme-light #modalLancarPedidoMesa input[type="text"]::placeholder,
        body.light-theme #modalLancarPedidoMesa input[type="text"]::placeholder,
        body.theme-light #modalLancarPedidoMesa textarea::placeholder,
        body.light-theme #modalLancarPedidoMesa textarea::placeholder {
            color: #94a3b8 !important;
        }

        /* Total do Pedido Box */
        body.theme-light #modalLancarPedidoMesa .p-3.bg-slate-950,
        body.light-theme #modalLancarPedidoMesa .p-3.bg-slate-950 {
            background-color: #f8fafc !important;
            border-color: #e2e8f0 !important;
        }
        body.theme-light #modalLancarPedidoMesa #lancarSubtotalValText,
        body.light-theme #modalLancarPedidoMesa #lancarSubtotalValText {
            color: #059669 !important;
        }
        body.theme-light #modalLancarPedidoMesa #lancarSubtotalInfoText,
        body.light-theme #modalLancarPedidoMesa #lancarSubtotalInfoText {
            color: #0f172a !important;
        }

        /* Botão Submit Desabilitado */
        body.theme-light #modalLancarPedidoMesa #btnSubmitLancarPedido[disabled],
        body.light-theme #modalLancarPedidoMesa #btnSubmitLancarPedido[disabled],
        body.theme-light #modalLancarPedidoMesa .bg-\[\#0f203c\],
        body.light-theme #modalLancarPedidoMesa .bg-\[\#0f203c\] {
            background-color: #f1f5f9 !important;
            border-color: #cbd5e1 !important;
            color: #94a3b8 !important;
        }

        /* ========================================================= */
        /* MODAL RESUMO DA COMANDA DA MESA NO MODO DIURNO (LIGHT)    */
        /* ========================================================= */
        body.theme-light #modalStatusPedidoCozinha > div,
        body.light-theme #modalStatusPedidoCozinha > div,
        body:not(.theme-dark) #modalStatusPedidoCozinha > div,
        body.theme-light #modalPagamentoCliente > div,
        body.light-theme #modalPagamentoCliente > div,
        body:not(.theme-dark) #modalPagamentoCliente > div,
        body.theme-light #modalComandaBoxContainer,
        body.light-theme #modalComandaBoxContainer,
        body:not(.theme-dark) #modalComandaBoxContainer {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
            color: #0f172a !important;
        }

        /* Barra de controle de abas principais no Modo Claro */
        body.theme-light #modalStatusPedidoCozinha [class*="0f172a"],
        body.light-theme #modalStatusPedidoCozinha [class*="0f172a"],
        body:not(.theme-dark) #modalStatusPedidoCozinha [class*="0f172a"] {
            background-color: #f1f5f9 !important;
            border-color: #cbd5e1 !important;
        }

        /* Botões de abas inativas no Modo Claro */
        body.theme-light #modalStatusPedidoCozinha [class*="1e293b"],
        body.light-theme #modalStatusPedidoCozinha [class*="1e293b"],
        body:not(.theme-dark) #modalStatusPedidoCozinha [class*="1e293b"],
        body.theme-light #tabBtnComandaPedidos:not(.bg-sky-500),
        body.light-theme #tabBtnComandaPedidos:not(.bg-sky-500),
        body:not(.theme-dark) #tabBtnComandaPedidos:not(.bg-sky-500),
        body.theme-light #tabBtnComandaStatus:not(.bg-amber-500),
        body.light-theme #tabBtnComandaStatus:not(.bg-amber-500),
        body:not(.theme-dark) #tabBtnComandaStatus:not(.bg-amber-500),
        body.theme-light #tabBtnComandaPagamento:not(.bg-emerald-500),
        body.light-theme #tabBtnComandaPagamento:not(.bg-emerald-500),
        body:not(.theme-dark) #tabBtnComandaPagamento:not(.bg-emerald-500) {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #334155 !important;
        }
        body.theme-light #modalStatusPedidoCozinha [class*="1e293b"]:hover,
        body.light-theme #modalStatusPedidoCozinha [class*="1e293b"]:hover,
        body:not(.theme-dark) #modalStatusPedidoCozinha [class*="1e293b"]:hover {
            background-color: #f1f5f9 !important;
            color: #0f172a !important;
        }

        /* Override para fundos escuros hex e slate em cards internos no Modo Diurno */
        body.theme-light #modalStatusPedidoCozinha [class*="243147"],
        body.light-theme #modalStatusPedidoCozinha [class*="243147"],
        body:not(.theme-dark) #modalStatusPedidoCozinha [class*="243147"] {
            background-color: #ffffff !important;
            border-color: #e2e8f0 !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
            color: #0f172a !important;
        }

        body.theme-light #modalStatusPedidoCozinha [class*="1c283d"],
        body.light-theme #modalStatusPedidoCozinha [class*="1c283d"],
        body:not(.theme-dark) #modalStatusPedidoCozinha [class*="1c283d"] {
            background-color: #f8fafc !important;
            border-color: #cbd5e1 !important;
            color: #0f172a !important;
        }

        body.theme-light #modalStatusPedidoCozinha [class*="131c2e"],
        body.light-theme #modalStatusPedidoCozinha [class*="131c2e"],
        body:not(.theme-dark) #modalStatusPedidoCozinha [class*="131c2e"],
        body.theme-light #modalStatusPedidoCozinha [class*="131d31"],
        body.light-theme #modalStatusPedidoCozinha [class*="131d31"],
        body:not(.theme-dark) #modalStatusPedidoCozinha [class*="131d31"],
        body.theme-light #modalStatusPedidoCozinha [class*="1a253a"],
        body.light-theme #modalStatusPedidoCozinha [class*="1a253a"],
        body:not(.theme-dark) #modalStatusPedidoCozinha [class*="1a253a"],
        body.theme-light #modalStatusPedidoCozinha [class*="0b1324"],
        body.light-theme #modalStatusPedidoCozinha [class*="0b1324"],
        body:not(.theme-dark) #modalStatusPedidoCozinha [class*="0b1324"],
        body.theme-light #modalStatusPedidoCozinha [class*="09101f"],
        body.light-theme #modalStatusPedidoCozinha [class*="09101f"],
        body:not(.theme-dark) #modalStatusPedidoCozinha [class*="09101f"],
        body.theme-light #modalStatusPedidoCozinha [class*="111927"],
        body.light-theme #modalStatusPedidoCozinha [class*="111927"],
        body:not(.theme-dark) #modalStatusPedidoCozinha [class*="111927"] {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #0f172a !important;
        }

        body.theme-light #modalStatusPedidoCozinha .bg-slate-950\/70,
        body.light-theme #modalStatusPedidoCozinha .bg-slate-950\/70,
        body:not(.theme-dark) #modalStatusPedidoCozinha .bg-slate-950\/70,
        body.theme-light #modalStatusPedidoCozinha .bg-slate-950\/80,
        body.light-theme #modalStatusPedidoCozinha .bg-slate-950\/80,
        body:not(.theme-dark) #modalStatusPedidoCozinha .bg-slate-950\/80,
        body.theme-light #modalStatusPedidoCozinha .bg-slate-950\/90,
        body.light-theme #modalStatusPedidoCozinha .bg-slate-950\/90,
        body:not(.theme-dark) #modalStatusPedidoCozinha .bg-slate-950\/90,
        body.theme-light #modalStatusPedidoCozinha .bg-slate-900\/95,
        body.light-theme #modalStatusPedidoCozinha .bg-slate-900\/95,
        body:not(.theme-dark) #modalStatusPedidoCozinha .bg-slate-900\/95,
        body.theme-light #modalStatusPedidoCozinha .bg-slate-900\/90,
        body.light-theme #modalStatusPedidoCozinha .bg-slate-900\/90,
        body:not(.theme-dark) #modalStatusPedidoCozinha .bg-slate-900\/90,
        body.theme-light #modalStatusPedidoCozinha .bg-slate-900\/80,
        body.light-theme #modalStatusPedidoCozinha .bg-slate-900\/80,
        body:not(.theme-dark) #modalStatusPedidoCozinha .bg-slate-900\/80,
        body.theme-light #modalStatusPedidoCozinha .bg-slate-900\/60,
        body.light-theme #modalStatusPedidoCozinha .bg-slate-900\/60,
        body:not(.theme-dark) #modalStatusPedidoCozinha .bg-slate-900\/60,
        body.theme-light #modalStatusPedidoCozinha .bg-slate-800\/90,
        body.light-theme #modalStatusPedidoCozinha .bg-slate-800\/90,
        body:not(.theme-dark) #modalStatusPedidoCozinha .bg-slate-800\/90,
        body.theme-light #modalStatusPedidoCozinha .bg-slate-800\/80,
        body.light-theme #modalStatusPedidoCozinha .bg-slate-800\/80,
        body:not(.theme-dark) #modalStatusPedidoCozinha .bg-slate-800\/80,
        body.theme-light #modalStatusPedidoCozinha .bg-slate-800,
        body.light-theme #modalStatusPedidoCozinha .bg-slate-800,
        body:not(.theme-dark) #modalStatusPedidoCozinha .bg-slate-800,
        body.theme-light #modalStatusPedidoCozinha .bg-slate-900,
        body.light-theme #modalStatusPedidoCozinha .bg-slate-900,
        body:not(.theme-dark) #modalStatusPedidoCozinha .bg-slate-900,
        body.theme-light #modalStatusPedidoCozinha .bg-slate-950,
        body.light-theme #modalStatusPedidoCozinha .bg-slate-950,
        body:not(.theme-dark) #modalStatusPedidoCozinha .bg-slate-950,
        body.theme-light #comandaViewStatusSection,
        body.light-theme #comandaViewStatusSection,
        body:not(.theme-dark) #comandaViewStatusSection,
        body.theme-light #comandaViewPagamentoSection,
        body.light-theme #comandaViewPagamentoSection,
        body:not(.theme-dark) #comandaViewPagamentoSection {
            background-color: #f8fafc !important;
            border-color: #cbd5e1 !important;
            color: #0f172a !important;
        }

        /* Cards individuais de envio de pedidos dos clientes (order-card-box e sub-cards) */
        body.theme-light #modalStatusPedidoCozinha .order-card-box,
        body.light-theme #modalStatusPedidoCozinha .order-card-box,
        body:not(.theme-dark) #modalStatusPedidoCozinha .order-card-box,
        body.theme-light #kitchenOrderItemsList .break-inside-avoid,
        body.light-theme #kitchenOrderItemsList .break-inside-avoid,
        body:not(.theme-dark) #kitchenOrderItemsList .break-inside-avoid,
        body.theme-light #kitchenOrderItemsList [class*="bg-[#0f172a]"],
        body.light-theme #kitchenOrderItemsList [class*="bg-[#0f172a]"],
        body:not(.theme-dark) #kitchenOrderItemsList [class*="bg-[#0f172a]"],
        body.theme-light #kitchenOrderItemsList [class*="bg-[#1a253a]"],
        body.light-theme #kitchenOrderItemsList [class*="bg-[#1a253a]"],
        body:not(.theme-dark) #kitchenOrderItemsList [class*="bg-[#1a253a]"],
        body.theme-light #kitchenOrderItemsList [class*="bg-[#1e293b]"],
        body.light-theme #kitchenOrderItemsList [class*="bg-[#1e293b]"],
        body:not(.theme-dark) #kitchenOrderItemsList [class*="bg-[#1e293b]"],
        body.theme-light #kitchenOrderItemsList [class*="bg-slate-950"],
        body.light-theme #kitchenOrderItemsList [class*="bg-slate-950"],
        body:not(.theme-dark) #kitchenOrderItemsList [class*="bg-slate-950"],
        body.theme-light #kitchenOrderItemsList [class*="bg-slate-900"],
        body.light-theme #kitchenOrderItemsList [class*="bg-slate-900"],
        body:not(.theme-dark) #kitchenOrderItemsList [class*="bg-slate-900"] {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
            color: #0f172a !important;
        }

        /* Títulos e Textos no Modo Diurno */
        body.theme-light #modalStatusPedidoCozinha h1,
        body.light-theme #modalStatusPedidoCozinha h1,
        body:not(.theme-dark) #modalStatusPedidoCozinha h1,
        body.theme-light #modalStatusPedidoCozinha h2,
        body.light-theme #modalStatusPedidoCozinha h2,
        body:not(.theme-dark) #modalStatusPedidoCozinha h2,
        body.theme-light #modalStatusPedidoCozinha h3,
        body.light-theme #modalStatusPedidoCozinha h3,
        body:not(.theme-dark) #modalStatusPedidoCozinha h3,
        body.theme-light #modalStatusPedidoCozinha h4,
        body.light-theme #modalStatusPedidoCozinha h4,
        body:not(.theme-dark) #modalStatusPedidoCozinha h4,
        body.theme-light #modalStatusPedidoCozinha h5,
        body.light-theme #modalStatusPedidoCozinha h5,
        body:not(.theme-dark) #modalStatusPedidoCozinha h5,
        body.theme-light #modalStatusPedidoCozinha h6,
        body.light-theme #modalStatusPedidoCozinha h6,
        body:not(.theme-dark) #modalStatusPedidoCozinha h6,
        body.theme-light #modalStatusPedidoCozinha .text-white,
        body.light-theme #modalStatusPedidoCozinha .text-white,
        body:not(.theme-dark) #modalStatusPedidoCozinha .text-white,
        body.theme-light #modalStatusPedidoCozinha .text-slate-100,
        body.light-theme #modalStatusPedidoCozinha .text-slate-100,
        body:not(.theme-dark) #modalStatusPedidoCozinha .text-slate-100,
        body.theme-light #modalStatusPedidoCozinha .text-slate-200,
        body.light-theme #modalStatusPedidoCozinha .text-slate-200,
        body:not(.theme-dark) #modalStatusPedidoCozinha .text-slate-200 {
            color: #0f172a !important;
        }

        body.theme-light #modalStatusPedidoCozinha p,
        body.light-theme #modalStatusPedidoCozinha p,
        body:not(.theme-dark) #modalStatusPedidoCozinha p,
        body.theme-light #modalStatusPedidoCozinha .text-slate-300,
        body.light-theme #modalStatusPedidoCozinha .text-slate-300,
        body:not(.theme-dark) #modalStatusPedidoCozinha .text-slate-300,
        body.theme-light #modalStatusPedidoCozinha .text-slate-400,
        body.light-theme #modalStatusPedidoCozinha .text-slate-400,
        body:not(.theme-dark) #modalStatusPedidoCozinha .text-slate-400 {
            color: #475569 !important;
        }

        body.theme-light #modalStatusPedidoCozinha .text-emerald-400,
        body.light-theme #modalStatusPedidoCozinha .text-emerald-400,
        body:not(.theme-dark) #modalStatusPedidoCozinha .text-emerald-400 {
            color: #059669 !important;
        }

        body.theme-light #modalStatusPedidoCozinha .text-amber-400,
        body.light-theme #modalStatusPedidoCozinha .text-amber-400,
        body:not(.theme-dark) #modalStatusPedidoCozinha .text-amber-400 {
            color: #d97706 !important;
        }

        body.theme-light #modalStatusPedidoCozinha .text-sky-400,
        body.light-theme #modalStatusPedidoCozinha .text-sky-400,
        body:not(.theme-dark) #modalStatusPedidoCozinha .text-sky-400,
        body.theme-light #modalStatusPedidoCozinha .text-sky-300,
        body.light-theme #modalStatusPedidoCozinha .text-sky-300,
        body:not(.theme-dark) #modalStatusPedidoCozinha .text-sky-300 {
            color: #0284c7 !important;
        }

        /* ========================================================= */
        /* RESUMO DO PEDIDO - IDENTIFICAÇÃO DE NOME NO MODO CLARO    */
        /* ========================================================= */
        body.theme-light #modalResumoPedido > div,
        body.light-theme #modalResumoPedido > div,
        body:not(.theme-dark) #modalResumoPedido > div,
        body.theme-light #clienteNomeContainerBox,
        body.light-theme #clienteNomeContainerBox,
        body:not(.theme-dark) #clienteNomeContainerBox,
        body.theme-light #modalClienteNomeContainerBox,
        body.light-theme #modalClienteNomeContainerBox,
        body:not(.theme-dark) #modalClienteNomeContainerBox {
            color: #0f172a !important;
        }

        /* Container quando nome é válido (Emerald/Verde) */
        body.theme-light #clienteNomeContainerBox.bg-emerald-950\/40,
        body.light-theme #clienteNomeContainerBox.bg-emerald-950\/40,
        body:not(.theme-dark) #clienteNomeContainerBox.bg-emerald-950\/40,
        body.theme-light #modalClienteNomeContainerBox.bg-emerald-950\/40,
        body.light-theme #modalClienteNomeContainerBox.bg-emerald-950\/40,
        body:not(.theme-dark) #modalClienteNomeContainerBox.bg-emerald-950\/40 {
            background-color: #ecfdf5 !important;
            border-color: #34d399 !important;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12) !important;
        }

        /* Feedback verde no Modo Claro (✓ Perfeito! Pedido será identificado...) */
        body.theme-light #clienteNomeFeedback.bg-emerald-950\/90,
        body.light-theme #clienteNomeFeedback.bg-emerald-950\/90,
        body:not(.theme-dark) #clienteNomeFeedback.bg-emerald-950\/90,
        body.theme-light #modalClienteNomeFeedback.bg-emerald-950\/90,
        body.light-theme #modalClienteNomeFeedback.bg-emerald-950\/90,
        body:not(.theme-dark) #modalClienteNomeFeedback.bg-emerald-950\/90 {
            background-color: #d1fae5 !important;
            border-color: #6ee7b7 !important;
            color: #065f46 !important;
        }
        body.theme-light #modalClienteNomeFeedback.bg-emerald-950\/90 *,
        body.light-theme #modalClienteNomeFeedback.bg-emerald-950\/90 *,
        body:not(.theme-dark) #modalClienteNomeFeedback.bg-emerald-950\/90 *,
        body.theme-light #clienteNomeFeedback.bg-emerald-950\/90 *,
        body.light-theme #clienteNomeFeedback.bg-emerald-950\/90 *,
        body:not(.theme-dark) #clienteNomeFeedback.bg-emerald-950\/90 * {
            color: #065f46 !important;
        }

        /* Label "SEU NOME NA MESA" no Modo Claro */
        body.theme-light #modalClienteNomeHeaderLabel,
        body.light-theme #modalClienteNomeHeaderLabel,
        body:not(.theme-dark) #modalClienteNomeHeaderLabel,
        body.theme-light #clienteNomeHeaderLabel,
        body.light-theme #clienteNomeHeaderLabel,
        body:not(.theme-dark) #clienteNomeHeaderLabel {
            color: #047857 !important;
        }

        /* Container quando nome é obrigatório/vazio (Rose/Vermelho) */
        body.theme-light #clienteNomeContainerBox.bg-rose-950\/40,
        body.light-theme #clienteNomeContainerBox.bg-rose-950\/40,
        body:not(.theme-dark) #clienteNomeContainerBox.bg-rose-950\/40,
        body.theme-light #modalClienteNomeContainerBox.bg-rose-950\/40,
        body.light-theme #modalClienteNomeContainerBox.bg-rose-950\/40,
        body:not(.theme-dark) #modalClienteNomeContainerBox.bg-rose-950\/40 {
            background-color: #fff1f2 !important;
            border-color: #f43f5e !important;
            box-shadow: 0 4px 12px rgba(244, 63, 94, 0.12) !important;
        }
        body.theme-light #clienteNomeFeedback.bg-rose-950\/90,
        body.light-theme #clienteNomeFeedback.bg-rose-950\/90,
        body:not(.theme-dark) #clienteNomeFeedback.bg-rose-950\/90,
        body.theme-light #modalClienteNomeFeedback.bg-rose-950\/90,
        body.light-theme #modalClienteNomeFeedback.bg-rose-950\/90,
        body:not(.theme-dark) #modalClienteNomeFeedback.bg-rose-950\/90 {
            background-color: #ffe4e6 !important;
            border-color: #fda4af !important;
            color: #9f1239 !important;
        }
        body.theme-light #modalClienteNomeFeedback.bg-rose-950\/90 *,
        body.light-theme #modalClienteNomeFeedback.bg-rose-950\/90 *,
        body:not(.theme-dark) #modalClienteNomeFeedback.bg-rose-950\/90 * {
            color: #9f1239 !important;
        }

        /* Container quando nome é curto/incompleto (Amber/Amarelo) */
        body.theme-light #clienteNomeContainerBox.bg-amber-950\/40,
        body.light-theme #clienteNomeContainerBox.bg-amber-950\/40,
        body:not(.theme-dark) #clienteNomeContainerBox.bg-amber-950\/40,
        body.theme-light #modalClienteNomeContainerBox.bg-amber-950\/40,
        body.light-theme #modalClienteNomeContainerBox.bg-amber-950\/40,
        body:not(.theme-dark) #modalClienteNomeContainerBox.bg-amber-950\/40 {
            background-color: #fffbeb !important;
            border-color: #f59e0b !important;
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12) !important;
        }
        body.theme-light #clienteNomeFeedback.bg-amber-950\/90,
        body.light-theme #clienteNomeFeedback.bg-amber-950\/90,
        body:not(.theme-dark) #clienteNomeFeedback.bg-amber-950\/90,
        body.theme-light #modalClienteNomeFeedback.bg-amber-950\/90,
        body.light-theme #modalClienteNomeFeedback.bg-amber-950\/90,
        body:not(.theme-dark) #modalClienteNomeFeedback.bg-amber-950\/90 {
            background-color: #fef3c7 !important;
            border-color: #fcd34d !important;
            color: #92400e !important;
        }
        body.theme-light #modalClienteNomeFeedback.bg-amber-950\/90 *,
        body.light-theme #modalClienteNomeFeedback.bg-amber-950\/90 *,
        body:not(.theme-dark) #modalClienteNomeFeedback.bg-amber-950\/90 * {
            color: #92400e !important;
        }

        /* Counter do nome no modo diurno (0/3 min) */
        body.theme-light #nomeCharCount,
        body.light-theme #nomeCharCount,
        body:not(.theme-dark) #nomeCharCount,
        body.theme-light #modalNomeCharCount,
        body.light-theme #modalNomeCharCount,
        body:not(.theme-dark) #modalNomeCharCount {
            background-color: #ffffff !important;
            color: #047857 !important;
            border-color: #6ee7b7 !important;
        }

        /* Botão "Comanda 3" / "Ver Pedidos / Comanda" no cabeçalho no Modo de Dia */
        body.theme-light #btnHeaderTracking,
        body.light-theme #btnHeaderTracking,
        body:not(.theme-dark) #btnHeaderTracking {
            background: #ecfdf5 !important;
            border: 1.5px solid #10b981 !important;
            color: #000000 !important;
            box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2) !important;
        }
        body.theme-light #btnHeaderTracking > span:not(#headerTrackingBadge):not(.relative),
        body.light-theme #btnHeaderTracking > span:not(#headerTrackingBadge):not(.relative),
        body:not(.theme-dark) #btnHeaderTracking > span:not(#headerTrackingBadge):not(.relative) {
            color: #000000 !important;
            font-weight: 900 !important;
        }
        body.theme-light #btnHeaderTracking i,
        body.light-theme #btnHeaderTracking i,
        body:not(.theme-dark) #btnHeaderTracking i {
            color: #047857 !important;
        }
        body.theme-light #headerTrackingBadge,
        body.light-theme #headerTrackingBadge,
        body:not(.theme-dark) #headerTrackingBadge,
        body.theme-light #btnHeaderTracking #headerTrackingBadge,
        body.light-theme #btnHeaderTracking #headerTrackingBadge,
        body:not(.theme-dark) #btnHeaderTracking #headerTrackingBadge {
            background-color: #10b981 !important;
            color: #ffffff !important;
            font-weight: 900 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            min-width: 1.25rem !important;
            height: 1.25rem !important;
            padding: 0 0.35rem !important;
            border-radius: 9999px !important;
            font-size: 0.65rem !important;
            line-height: 1 !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
        }

        /* Nome da Comanda no Header do Resumo */
        body.theme-light #modalResumoPedidoCardHeader h3,
        body.light-theme #modalResumoPedidoCardHeader h3,
        body:not(.theme-dark) #modalResumoPedidoCardHeader h3,
        body.theme-light #modalResumoPedidoCardHeader h3 *,
        body.light-theme #modalResumoPedidoCardHeader h3 *,
        body:not(.theme-dark) #modalResumoPedidoCardHeader h3 *,
        body.theme-light #orderSummaryPanel h3,
        body.light-theme #orderSummaryPanel h3,
        body:not(.theme-dark) #orderSummaryPanel h3,
        body.theme-light #orderSummaryPanel h3 *,
        body.light-theme #orderSummaryPanel h3 *,
        body:not(.theme-dark) #orderSummaryPanel h3 * {
            color: #000000 !important;
            font-weight: 900 !important;
        }

        /* Chips de nomes na mesa (Maradona, junior, Joao...) no modo claro */
        body.theme-light #modalTableCustomerChipsContainer button,
        body.light-theme #modalTableCustomerChipsContainer button,
        body:not(.theme-dark) #modalTableCustomerChipsContainer button,
        body.theme-light #tableCustomerChipsContainer button,
        body.light-theme #tableCustomerChipsContainer button,
        body:not(.theme-dark) #tableCustomerChipsContainer button {
            color: #000000 !important;
        }
        body.theme-light #modalTableCustomerChipsContainer button *,
        body.light-theme #modalTableCustomerChipsContainer button *,
        body:not(.theme-dark) #modalTableCustomerChipsContainer button *,
        body.theme-light #tableCustomerChipsContainer button *,
        body.light-theme #tableCustomerChipsContainer button *,
        body:not(.theme-dark) #tableCustomerChipsContainer button * {
            color: #000000 !important;
            font-weight: 800 !important;
        }
        body.theme-light #modalTableCustomerChipsContainer button.border-emerald-400,
        body.light-theme #modalTableCustomerChipsContainer button.border-emerald-400,
        body:not(.theme-dark) #modalTableCustomerChipsContainer button.border-emerald-400,
        body.theme-light #tableCustomerChipsContainer button.border-emerald-400,
        body.light-theme #tableCustomerChipsContainer button.border-emerald-400,
        body:not(.theme-dark) #tableCustomerChipsContainer button.border-emerald-400,
        body.theme-light #modalTableCustomerChipsContainer button.border-emerald-600,
        body.light-theme #modalTableCustomerChipsContainer button.border-emerald-600,
        body:not(.theme-dark) #modalTableCustomerChipsContainer button.border-emerald-600,
        body.theme-light #tableCustomerChipsContainer button.border-emerald-600,
        body.light-theme #tableCustomerChipsContainer button.border-emerald-600,
        body:not(.theme-dark) #tableCustomerChipsContainer button.border-emerald-600 {
            background: #d1fae5 !important;
            border-color: #059669 !important;
            color: #000000 !important;
        }
        body.theme-light #modalTableCustomerChipsContainer button.border-emerald-400 *,
        body.light-theme #modalTableCustomerChipsContainer button.border-emerald-400 *,
        body:not(.theme-dark) #modalTableCustomerChipsContainer button.border-emerald-400 *,
        body.theme-light #tableCustomerChipsContainer button.border-emerald-400 *,
        body.light-theme #tableCustomerChipsContainer button.border-emerald-400 *,
        body:not(.theme-dark) #tableCustomerChipsContainer button.border-emerald-400 *,
        body.theme-light #modalTableCustomerChipsContainer button.border-emerald-600 *,
        body.light-theme #modalTableCustomerChipsContainer button.border-emerald-600 *,
        body:not(.theme-dark) #modalTableCustomerChipsContainer button.border-emerald-600 *,
        body.theme-light #tableCustomerChipsContainer button.border-emerald-600 *,
        body.light-theme #tableCustomerChipsContainer button.border-emerald-600 *,
        body:not(.theme-dark) #tableCustomerChipsContainer button.border-emerald-600 * {
            color: #000000 !important;
            font-weight: 900 !important;
        }

        body.theme-light #modalTableCustomerChipsContainer button.bg-slate-950,
        body.light-theme #modalTableCustomerChipsContainer button.bg-slate-950,
        body:not(.theme-dark) #modalTableCustomerChipsContainer button.bg-slate-950,
        body.theme-light #tableCustomerChipsContainer button.bg-slate-950,
        body.light-theme #tableCustomerChipsContainer button.bg-slate-950,
        body:not(.theme-dark) #tableCustomerChipsContainer button.bg-slate-950 {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #000000 !important;
        }

        /* Textarea de observação do pedido no modo claro */
        body.theme-light #modalPedidoObservacaoInput,
        body.light-theme #modalPedidoObservacaoInput,
        body:not(.theme-dark) #modalPedidoObservacaoInput,
        body.theme-light #pedidoObservacaoInput,
        body.light-theme #pedidoObservacaoInput,
        body:not(.theme-dark) #pedidoObservacaoInput {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #0f172a !important;
        }

        /* Status Badges no Modo Claro */
        body.theme-light #modalStatusPedidoCozinha .bg-emerald-950\/40,
        body.light-theme #modalStatusPedidoCozinha .bg-emerald-950\/40,
        body.theme-light #modalStatusPedidoCozinha .bg-emerald-950\/90,
        body.light-theme #modalStatusPedidoCozinha .bg-emerald-950\/90 {
            background-color: #ecfdf5 !important;
            border-color: #a7f3d0 !important;
            color: #047857 !important;
        }

        body.theme-light #modalStatusPedidoCozinha .bg-amber-950\/40,
        body.light-theme #modalStatusPedidoCozinha .bg-amber-950\/40,
        body.theme-light #modalStatusPedidoCozinha .bg-amber-950\/90,
        body.light-theme #modalStatusPedidoCozinha .bg-amber-950\/90 {
            background-color: #fffbeb !important;
            border-color: #fde68a !important;
            color: #b45309 !important;
        }

        body.theme-light #modalStatusPedidoCozinha .bg-sky-950\/40,
        body.light-theme #modalStatusPedidoCozinha .bg-sky-950\/40,
        body.theme-light #modalStatusPedidoCozinha .bg-sky-950\/90,
        body.light-theme #modalStatusPedidoCozinha .bg-sky-950\/90 {
            background-color: #f0f9ff !important;
            border-color: #bae6fd !important;
            color: #0369a1 !important;
        }

        /* Header do Modal */
        body.theme-light #kitchenTableName,
        body.light-theme #kitchenTableName {
            color: #0f172a !important;
        }
        body.theme-light #kitchenCustomerName,
        body.light-theme #kitchenCustomerName {
            color: #475569 !important;
        }

        /* Botão fechar modal e botões auxiliares */
        body.theme-light #modalStatusPedidoCozinha button.bg-slate-950,
        body.light-theme #modalStatusPedidoCozinha button.bg-slate-950,
        body.theme-light #modalPagamentoCliente button.bg-slate-950,
        body.light-theme #modalPagamentoCliente button.bg-slate-950 {
            background-color: #f1f5f9 !important;
            border-color: #cbd5e1 !important;
            color: #475569 !important;
        }

        /* Tabs de clientes da mesa no modo diurno */
        body.theme-light #kitchenOrderTabsContainer button.bg-slate-950,
        body.light-theme #kitchenOrderTabsContainer button.bg-slate-950 {
            background-color: #f1f5f9 !important;
            border-color: #cbd5e1 !important;
            color: #334155 !important;
        }
        body.theme-light #kitchenOrderTabsContainer button.bg-slate-950:hover,
        body.light-theme #kitchenOrderTabsContainer button.bg-slate-950:hover {
            background-color: #e2e8f0 !important;
            color: #0f172a !important;
        }
        body.theme-light #kitchenOrderTabsContainer span.bg-slate-900,
        body.light-theme #kitchenOrderTabsContainer span.bg-slate-900 {
            background-color: #e2e8f0 !important;
            border-color: #cbd5e1 !important;
            color: #334155 !important;
        }

        /* Mini Dashboard de Status / Chips de filtro no modo diurno */
        body.theme-light #kitchenModalSummaryBar,
        body.light-theme #kitchenModalSummaryBar {
            background-color: #f1f5f9 !important;
            border-color: #cbd5e1 !important;
        }

        body.theme-light #chipFilterEntregues,
        body.light-theme #chipFilterEntregues,
        body.theme-light #modalStatusPedidoCozinha [class*="bg-emerald-950"],
        body.light-theme #modalStatusPedidoCozinha [class*="bg-emerald-950"] {
            background-color: #ecfdf5 !important;
            border-color: #a7f3d0 !important;
        }
        body.theme-light #chipFilterEntregues span,
        body.light-theme #chipFilterEntregues span,
        body.theme-light #modalStatusPedidoCozinha [class*="bg-emerald-950"] span,
        body.light-theme #modalStatusPedidoCozinha [class*="bg-emerald-950"] span {
            color: #047857 !important;
        }

        body.theme-light #chipFilterPendentes,
        body.light-theme #chipFilterPendentes,
        body.theme-light #modalStatusPedidoCozinha [class*="bg-amber-950"],
        body.light-theme #modalStatusPedidoCozinha [class*="bg-amber-950"] {
            background-color: #fffbeb !important;
            border-color: #fde68a !important;
        }
        body.theme-light #chipFilterPendentes span,
        body.light-theme #chipFilterPendentes span,
        body.theme-light #modalStatusPedidoCozinha [class*="bg-amber-950"] span,
        body.light-theme #modalStatusPedidoCozinha [class*="bg-amber-950"] span {
            color: #b45309 !important;
        }

        body.theme-light #chipFilterTodos,
        body.light-theme #chipFilterTodos,
        body.theme-light #modalStatusPedidoCozinha [class*="bg-sky-950"],
        body.light-theme #modalStatusPedidoCozinha [class*="bg-sky-950"] {
            background-color: #f0f9ff !important;
            border-color: #bae6fd !important;
        }
        body.theme-light #chipFilterTodos span,
        body.light-theme #chipFilterTodos span,
        body.theme-light #modalStatusPedidoCozinha [class*="bg-sky-950"] span,
        body.light-theme #modalStatusPedidoCozinha [class*="bg-sky-950"] span {
            color: #0369a1 !important;
        }

        /* Bloco principal de cada cliente (MARADONA, RONALDO, etc.) */
        body.theme-light #kitchenOrderItemsList .break-inside-avoid,
        body.light-theme #kitchenOrderItemsList .break-inside-avoid {
            background-color: #f8fafc !important;
            border-color: #cbd5e1 !important;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
        }

        body.theme-light #kitchenOrderItemsList .break-inside-avoid h5,
        body.light-theme #kitchenOrderItemsList .break-inside-avoid h5 {
            color: #0f172a !important;
        }

        body.theme-light #kitchenOrderItemsList .break-inside-avoid .border-slate-700\/80,
        body.light-theme #kitchenOrderItemsList .break-inside-avoid .border-slate-700\/80,
        body.theme-light #kitchenOrderItemsList .break-inside-avoid .border-slate-800,
        body.light-theme #kitchenOrderItemsList .break-inside-avoid .border-slate-800 {
            border-color: #e2e8f0 !important;
        }

        /* Cards individuais de envio de pedidos (order-card-box) */
        body.theme-light .order-card-box,
        body.light-theme .order-card-box {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
        }

        body.theme-light .order-card-box .border-slate-800,
        body.light-theme .order-card-box .border-slate-800,
        body.theme-light .order-card-box .border-slate-700\/70,
        body.light-theme .order-card-box .border-slate-700\/70 {
            border-color: #e2e8f0 !important;
        }

        /* Item individual da lista de produtos */
        body.theme-light .order-card-box [class*="bg-slate-950"],
        body.light-theme .order-card-box [class*="bg-slate-950"] {
            background-color: #f1f5f9 !important;
            border-color: #e2e8f0 !important;
        }

        body.theme-light .order-card-box h6,
        body.light-theme .order-card-box h6 {
            color: #0f172a !important;
        }

        /* Observação em produtos no modo claro */
        body.theme-light [class*="bg-rose-950"],
        body.light-theme [class*="bg-rose-950"] {
            background-color: #fef2f2 !important;
            border-color: #fca5a5 !important;
            color: #991b1b !important;
        }
        body.theme-light [class*="bg-rose-950"] span,
        body.light-theme [class*="bg-rose-950"] span,
        body.theme-light [class*="bg-rose-950"] strong,
        body.light-theme [class*="bg-rose-950"] strong {
            color: #991b1b !important;
        }

        /* Badges de pagamento/solicitação nos cards de pedido */
        body.theme-light .bg-emerald-500\/10,
        body.light-theme .bg-emerald-500\/10,
        body.theme-light .bg-emerald-500\/15,
        body.light-theme .bg-emerald-500\/15 {
            background-color: #ecfdf5 !important;
            border-color: #6ee7b7 !important;
        }
        body.theme-light .bg-emerald-500\/10 span,
        body.light-theme .bg-emerald-500\/10 span,
        body.theme-light .bg-emerald-500\/15 label,
        body.light-theme .bg-emerald-500\/15 label,
        body.theme-light .bg-emerald-500\/15 span,
        body.light-theme .bg-emerald-500\/15 span {
            color: #047857 !important;
        }

        body.theme-light .bg-amber-500\/10,
        body.light-theme .bg-amber-500\/10 {
            background-color: #fffbeb !important;
            border-color: #fcd34d !important;
        }
        body.theme-light .bg-amber-500\/10 span,
        body.light-theme .bg-amber-500\/10 span {
            color: #b45309 !important;
        }

        body.theme-light .bg-sky-500\/10,
        body.light-theme .bg-sky-500\/10 {
            background-color: #f0f9ff !important;
            border-color: #7dd3fc !important;
        }
        body.theme-light .bg-sky-500\/10 span,
        body.light-theme .bg-sky-500\/10 span {
            color: #0369a1 !important;
        }

        /* Rodapé de pagamento fixo do modal */
        body.theme-light #kitchenModalFooterActions,
        body.light-theme #kitchenModalFooterActions {
            background-color: #f8fafc !important;
            border-color: #e2e8f0 !important;
        }

        body.theme-light #btnPagarSelecionados:disabled,
        body.light-theme #btnPagarSelecionados:disabled {
            background-color: #e2e8f0 !important;
            border-color: #cbd5e1 !important;
            color: #64748b !important;
            opacity: 1 !important;
        }

        body.theme-light table thead,
        body.light-theme table thead {
            background-color: #f1f5f9 !important;
        }

        body.theme-light table thead th,
        body.light-theme table thead th {
            color: #475569 !important;
        }

        body.theme-light table td,
        body.light-theme table td {
            color: #1e293b !important;
            border-color: #f1f5f9 !important;
        }

        body.theme-light input, 
        body.theme-light select, 
        body.theme-light textarea {
            background-color: #ffffff !important;
            color: #0f172a !important;
            border-color: #cbd5e1 !important;
        }

        /* ========================================================= */
        /* RESUMO DO PEDIDO E MONTADOR DE HAMBÚRGUER (MODO DIURNO)   */
        /* ========================================================= */
        body.theme-light #orderSummaryPanel .bg-slate-950,
        body.light-theme #orderSummaryPanel .bg-slate-950,
        body.theme-light #cartItemsList > div,
        body.light-theme #cartItemsList > div,
        body.theme-light #modalMontadorHamburguer > div,
        body.light-theme #modalMontadorHamburguer > div {
            background-color: #ffffff !important;
            background-image: none !important;
            border-color: #e2e8f0 !important;
            box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05) !important;
        }

        /* Estrutura visual gráfica do hambúrguer no modo claro */
        body.theme-light .bg-gradient-to-b.from-slate-950.to-slate-900\/90,
        body.light-theme .bg-gradient-to-b.from-slate-950.to-slate-900\/90,
        body.theme-light [id^="cart-burger-graphic-"],
        body.light-theme [id^="cart-burger-graphic-"],
        body.theme-light #modalMontadorHamburguer .sticky.top-0,
        body.light-theme #modalMontadorHamburguer .sticky.top-0 {
            background-color: #f8fafc !important;
            background-image: none !important;
            border-color: #cbd5e1 !important;
            box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.04) !important;
        }

        /* Títulos de seção da composição do hambúrguer */
        body.theme-light #orderSummaryPanel .text-amber-400,
        body.light-theme #orderSummaryPanel .text-amber-400,
        body.theme-light #modalMontadorHamburguer .text-amber-400,
        body.light-theme #modalMontadorHamburguer .text-amber-400 {
            color: #b45309 !important;
        }
        body.theme-light #orderSummaryPanel .text-slate-400,
        body.light-theme #orderSummaryPanel .text-slate-400,
        body.theme-light #modalMontadorHamburguer .text-slate-400,
        body.light-theme #modalMontadorHamburguer .text-slate-400 {
            color: #64748b !important;
        }

        /* Linhas de ingredientes padrão */
        body.theme-light [id^="cart-ing-row-"],
        body.light-theme [id^="cart-ing-row-"],
        body.theme-light #burgerIngredientsContainer > div,
        body.light-theme #burgerIngredientsContainer > div {
            background-color: #f8fafc !important;
            border-color: #e2e8f0 !important;
        }
        body.theme-light [id^="cart-ing-row-"]:hover,
        body.light-theme [id^="cart-ing-row-"]:hover,
        body.theme-light #burgerIngredientsContainer > div:hover,
        body.light-theme #burgerIngredientsContainer > div:hover {
            background-color: #f1f5f9 !important;
            border-color: #cbd5e1 !important;
        }

        /* Nome do ingrediente na lista */
        body.theme-light [id^="cart-ing-row-"] span.text-slate-200,
        body.light-theme [id^="cart-ing-row-"] span.text-slate-200,
        body.theme-light #burgerIngredientsContainer span.text-slate-200,
        body.light-theme #burgerIngredientsContainer span.text-slate-200,
        body.theme-light #burgerIngredientsContainer h6,
        body.light-theme #burgerIngredientsContainer h6,
        body.theme-light #burgerIngredientsContainer span.font-bold,
        body.light-theme #burgerIngredientsContainer span.font-bold {
            color: #0f172a !important;
        }

        /* Botão Retirar X (Modo Claro) */
        body.theme-light [id^="cart-ing-btn-"].bg-rose-500\/15,
        body.light-theme [id^="cart-ing-btn-"].bg-rose-500\/15,
        body.theme-light #burgerIngredientsContainer .bg-rose-500\/15,
        body.light-theme #burgerIngredientsContainer .bg-rose-500\/15 {
            background-color: #fef2f2 !important;
            border-color: #fca5a5 !important;
            color: #dc2626 !important;
        }
        body.theme-light [id^="cart-ing-btn-"].bg-rose-500\/15:hover,
        body.light-theme [id^="cart-ing-btn-"].bg-rose-500\/15:hover,
        body.theme-light #burgerIngredientsContainer .bg-rose-500\/15:hover,
        body.light-theme #burgerIngredientsContainer .bg-rose-500\/15:hover {
            background-color: #fee2e2 !important;
            color: #991b1b !important;
        }

        /* Botão + Incluir (Modo Claro) */
        body.theme-light [id^="cart-ing-btn-"].bg-emerald-500\/20,
        body.light-theme [id^="cart-ing-btn-"].bg-emerald-500\/20,
        body.theme-light #burgerIngredientsContainer .bg-emerald-500\/20,
        body.light-theme #burgerIngredientsContainer .bg-emerald-500\/20 {
            background-color: #ecfdf5 !important;
            border-color: #6ee7b7 !important;
            color: #047857 !important;
        }
        body.theme-light [id^="cart-ing-btn-"].bg-emerald-500\/20:hover,
        body.light-theme [id^="cart-ing-btn-"].bg-emerald-500\/20:hover,
        body.theme-light #burgerIngredientsContainer .bg-emerald-500\/20:hover,
        body.light-theme #burgerIngredientsContainer .bg-emerald-500\/20:hover {
            background-color: #d1fae5 !important;
            color: #065f46 !important;
        }

        /* Status Incluído / Retirado */
        body.theme-light [id^="cart-ing-status-"].text-emerald-400,
        body.light-theme [id^="cart-ing-status-"].text-emerald-400 {
            color: #047857 !important;
        }
        body.theme-light [id^="cart-ing-status-"].text-rose-400,
        body.light-theme [id^="cart-ing-status-"].text-rose-400 {
            color: #dc2626 !important;
        }

        /* Preview box do montador de hambúrguer */
        body.theme-light #modalMontadorHamburguer .bg-slate-950,
        body.light-theme #modalMontadorHamburguer .bg-slate-950 {
            background-color: #f8fafc !important;
            border-color: #e2e8f0 !important;
        }
        body.theme-light #burgerCompositionPreview,
        body.light-theme #burgerCompositionPreview {
            color: #334155 !important;
        }

        /* ========================================================= */
        /* MODO NOTURNO (DARK MODE) - DEEP OBSIDIAN                  */
        /* ========================================================= */
        
        /* ========================================================= */
        /* MODO DIURNO (LIGHT THEME) - PREMIUM LIGHT DESIGN SYSTEM   */
        body.theme-light, body.light-theme,
        html.theme-light, html.light-theme {
            background-color: #f1f5f9 !important;
            color: #0f172a !important;
        }

        body.theme-light aside, body.light-theme aside,
        body.theme-light header, body.light-theme header,
        body.theme-light nav, body.light-theme nav,
        body.theme-light main, body.light-theme main,
        body.theme-light .min-h-screen, body.light-theme .min-h-screen,
        body.theme-light .bg-slate-950, body.light-theme .bg-slate-950 {
            background-color: #f8fafc !important;
            color: #0f172a !important;
        }

        /* Convert dark slate containers to clean white cards */
        body.theme-light .bg-slate-900, body.light-theme .bg-slate-900,
        body.theme-light .bg-slate-800, body.light-theme .bg-slate-800,
        body.theme-light .mesa-card-item, body.light-theme .mesa-card-item,
        body.theme-light .square-mesa-btn, body.light-theme .square-mesa-btn {
            background-color: #ffffff !important;
            color: #0f172a !important;
            border-color: #cbd5e1 !important;
        }

        /* Inner shaded cards */
        body.theme-light .bg-slate-950\/80, body.light-theme .bg-slate-950\/80,
        body.theme-light .mesa-card-item .bg-slate-950, body.light-theme .mesa-card-item .bg-slate-950 {
            background-color: #f1f5f9 !important;
            color: #0f172a !important;
            border-color: #e2e8f0 !important;
        }

        /* Borders in Light Mode */
        body.theme-light .border-slate-800, body.light-theme .border-slate-800,
        body.theme-light .border-slate-700, body.light-theme .border-slate-700,
        body.theme-light .border-slate-900, body.light-theme .border-slate-900 {
            border-color: #cbd5e1 !important;
        }

        /* Typography & Headings */
        body.theme-light h1, body.light-theme h1,
        body.theme-light h2, body.light-theme h2,
        body.theme-light h3, body.light-theme h3,
        body.theme-light h4, body.light-theme h4,
        body.theme-light h5, body.light-theme h5,
        body.theme-light h6, body.light-theme h6,
        body.theme-light .text-slate-100, body.light-theme .text-slate-100,
        body.theme-light .text-slate-200, body.light-theme .text-slate-200,
        body.theme-light .text-slate-300, body.light-theme .text-slate-300,
        body.theme-light .text-white, body.light-theme .text-white {
            color: #0f172a !important;
        }

        body.theme-light .text-slate-400, body.light-theme .text-slate-400,
        body.theme-light .text-slate-500, body.light-theme .text-slate-500 {
            color: #64748b !important;
        }

        /* Input Fields & Selects */
        body.theme-light input, body.light-theme input,
        body.theme-light select, body.light-theme select,
        body.theme-light textarea, body.light-theme textarea {
            background-color: #ffffff !important;
            color: #0f172a !important;
            border-color: #cbd5e1 !important;
        }
        body.theme-light input::placeholder, body.light-theme input::placeholder {
            color: #94a3b8 !important;
        }

        /* Modals in Light Mode */
        body.theme-light [id^="modal"], body.light-theme [id^="modal"] {
            color: #0f172a;
        }

        /* Preserve white text inside primary / action / gradient / badge buttons */
        body.theme-light button.text-white, body.light-theme button.text-white,
        body.theme-light button[class*="bg-sky-"], body.light-theme button[class*="bg-sky-"],
        body.theme-light button[class*="bg-emerald-"], body.light-theme button[class*="bg-emerald-"],
        body.theme-light button[class*="bg-blue-"], body.light-theme button[class*="bg-blue-"],
        body.theme-light button[class*="bg-rose-"], body.light-theme button[class*="bg-rose-"],
        body.theme-light button[class*="from-"], body.light-theme button[class*="from-"],
        body.theme-light [class*="bg-sky-500"] *, body.light-theme [class*="bg-sky-500"] *,
        body.theme-light [class*="bg-emerald-500"] *, body.light-theme [class*="bg-emerald-500"] *,
        body.theme-light [class*="from-sky-"] *, body.light-theme [class*="from-sky-"] *,
        body.theme-light [class*="from-emerald-"] *, body.light-theme [class*="from-emerald-"] * {
            color: inherit;
        }
        body.theme-light button.bg-sky-500, body.light-theme button.bg-sky-500,
        body.theme-light button.bg-emerald-500, body.light-theme button.bg-emerald-500,
        body.theme-light button.bg-blue-600, body.light-theme button.bg-blue-600,
        body.theme-light button.bg-rose-500, body.light-theme button.bg-rose-500,
        body.theme-light button[class*="from-sky-"], body.light-theme button[class*="from-sky-"],
        body.theme-light button[class*="from-emerald-"], body.light-theme button[class*="from-emerald-"] {
            color: #ffffff !important;
        }
        body.theme-light button[class*="from-sky-"] span, body.light-theme button[class*="from-sky-"] span,
        body.theme-light button[class*="from-emerald-"] span, body.light-theme button[class*="from-emerald-"] span {
            color: #ffffff !important;
        }

        /* CUSTOMER ACCORDION / BLOCKS INSIDE MESA CARDS (custPalettes) */
        body.theme-light [class*="bg-sky-950"], body.light-theme [class*="bg-sky-950"] {
            background-color: #f0f9ff !important;
            border-color: #bae6fd !important;
        }
        body.theme-light [class*="bg-purple-950"], body.light-theme [class*="bg-purple-950"] {
            background-color: #faf5ff !important;
            border-color: #e9d5ff !important;
        }
        body.theme-light [class*="bg-emerald-950"], body.light-theme [class*="bg-emerald-950"] {
            background-color: #ecfdf5 !important;
            border-color: #a7f3d0 !important;
        }
        body.theme-light [class*="bg-amber-950"], body.light-theme [class*="bg-amber-950"] {
            background-color: #fffbeb !important;
            border-color: #fde68a !important;
        }
        body.theme-light [class*="bg-rose-950"], body.light-theme [class*="bg-rose-950"] {
            background-color: #fff1f2 !important;
            border-color: #fecdd3 !important;
        }

        /* Item rows inside Mesa Cards */
        body.theme-light .mesa-card-item [class*="bg-slate-950"], body.light-theme .mesa-card-item [class*="bg-slate-950"],
        body.theme-light .mesa-card-item [class*="bg-slate-900"], body.light-theme .mesa-card-item [class*="bg-slate-900"] {
            background-color: #ffffff !important;
            border-color: #e2e8f0 !important;
            color: #0f172a !important;
        }
        body.theme-light .mesa-card-item [class*="bg-slate-950"] span, body.light-theme .mesa-card-item [class*="bg-slate-950"] span,
        body.theme-light .mesa-card-item [class*="bg-slate-900"] span, body.light-theme .mesa-card-item [class*="bg-slate-900"] span {
            color: #0f172a !important;
        }

        /* DROPDOWN 3 PONTINHOS DOS CARDS DE MESA NO MODO DIURNO */
        body.theme-light [id^="mesaDropdown_"], body.light-theme [id^="mesaDropdown_"],
        body.theme-light .mesa-dropdown-menu, body.light-theme .mesa-dropdown-menu {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
        }
        body.theme-light [id^="mesaDropdown_"] > div, body.light-theme [id^="mesaDropdown_"] > div,
        body.theme-light .mesa-dropdown-menu > div, body.light-theme .mesa-dropdown-menu > div {
            border-color: #f1f5f9 !important;
        }
        body.theme-light [id^="mesaDropdown_"] button, body.light-theme [id^="mesaDropdown_"] button,
        body.theme-light .mesa-dropdown-menu button, body.light-theme .mesa-dropdown-menu button {
            background-color: transparent !important;
            color: #334155 !important;
        }
        body.theme-light [id^="mesaDropdown_"] button:hover, body.light-theme [id^="mesaDropdown_"] button:hover,
        body.theme-light .mesa-dropdown-menu button:hover, body.light-theme .mesa-dropdown-menu button:hover {
            background-color: #f1f5f9 !important;
            color: #0f172a !important;
        }
        body.theme-light [id^="mesaDropdown_"] button.text-rose-400, body.light-theme [id^="mesaDropdown_"] button.text-rose-400,
        body.theme-light [id^="mesaDropdown_"] button.text-rose-600, body.light-theme [id^="mesaDropdown_"] button.text-rose-600 {
            color: #e11d48 !important;
        }
        body.theme-light [id^="mesaDropdown_"] button.text-rose-400:hover, body.light-theme [id^="mesaDropdown_"] button.text-rose-400:hover,
        body.theme-light [id^="mesaDropdown_"] button.text-rose-600:hover, body.light-theme [id^="mesaDropdown_"] button.text-rose-600:hover {
            background-color: #fff1f2 !important;
            color: #be123c !important;
        }

        /* MODAL FECHAR COMANDA / CAIXA & FECHAMENTO (MODO DIURNO) */
        body.theme-light #modalFecharComanda > div, body.light-theme #modalFecharComanda > div {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #0f172a !important;
        }
        body.theme-light #modalFecharComanda .bg-slate-950\/80, body.light-theme #modalFecharComanda .bg-slate-950\/80,
        body.theme-light #modalFecharComanda .bg-slate-950\/70, body.light-theme #modalFecharComanda .bg-slate-950\/70,
        body.theme-light #modalFecharComanda .bg-slate-950, body.light-theme #modalFecharComanda .bg-slate-950 {
            background-color: #f8fafc !important;
            border-color: #e2e8f0 !important;
            color: #0f172a !important;
        }
        body.theme-light #modalFecharComanda .lg\:col-span-5, body.light-theme #modalFecharComanda .lg\:col-span-5 {
            background-color: #f8fafc !important;
            border-color: #e2e8f0 !important;
        }
        body.theme-light #fecharTaxaGarcomValText, body.light-theme #fecharTaxaGarcomValText,
        body.theme-light #boxFecharJaAbatido #fecharJaAbatidoValText, body.light-theme #boxFecharJaAbatido #fecharJaAbatidoValText {
            color: #b45309 !important;
            font-weight: 800 !important;
        }
        body.theme-light #boxSaldoStatusCard, body.light-theme #boxSaldoStatusCard {
            background: #fffbeb !important;
            border-color: #f59e0b !important;
            color: #78350f !important;
        }
        body.theme-light #boxSaldoStatusCard span, body.light-theme #boxSaldoStatusCard span {
            color: #78350f !important;
        }
        body.theme-light #boxSaldoStatusCard [class*="bg-amber-500\/20"], body.light-theme #boxSaldoStatusCard [class*="bg-amber-500\/20"] {
            background-color: #fef3c7 !important;
            border-color: #fcd34d !important;
            color: #92400e !important;
        }
        body.theme-light #boxPagamentosLancadosList, body.light-theme #boxPagamentosLancadosList,
        body.theme-light [id^="boxPagamentosLancados"], body.light-theme [id^="boxPagamentosLancados"] {
            background-color: #ffffff !important;
            border-color: #e2e8f0 !important;
            color: #0f172a !important;
        }
        body.theme-light #boxPagamentosLancadosList > div, body.light-theme #boxPagamentosLancadosList > div {
            background-color: #f8fafc !important;
            border-color: #e2e8f0 !important;
            color: #0f172a !important;
        }
        body.theme-light #boxPagamentosLancadosList span, body.light-theme #boxPagamentosLancadosList span {
            color: #0f172a !important;
        }

        /* MODAL EXTRATO COMANDA / DETALHES DA MESA (MODO DIURNO) */
        body.theme-light #modalExtratoComanda > div, body.light-theme #modalExtratoComanda > div {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #0f172a !important;
        }
        body.theme-light #modalExtratoComanda .bg-slate-950, body.light-theme #modalExtratoComanda .bg-slate-950,
        body.theme-light #modalExtratoComanda .bg-slate-900, body.light-theme #modalExtratoComanda .bg-slate-900 {
            background-color: #f8fafc !important;
            border-color: #e2e8f0 !important;
            color: #0f172a !important;
        }
        body.theme-light #modalExtratoComanda span, body.light-theme #modalExtratoComanda span,
        body.theme-light #modalExtratoComanda h3, body.light-theme #modalExtratoComanda h3,
        body.theme-light #modalExtratoComanda p, body.light-theme #modalExtratoComanda p {
            color: #0f172a !important;
        }
        body.theme-light #modalExtratoComanda .text-slate-400, body.light-theme #modalExtratoComanda .text-slate-400 {
            color: #64748b !important;
        }

        /* MODAL LANÇAR PEDIDO (MODO DIURNO) */
        body.theme-light #modalLancarPedidoMesa > div, body.light-theme #modalLancarPedidoMesa > div {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #0f172a !important;
        }
        body.theme-light #modalLancarPedidoMesa .bg-slate-950, body.light-theme #modalLancarPedidoMesa .bg-slate-950,
        body.theme-light #modalLancarPedidoMesa .bg-slate-900, body.light-theme #modalLancarPedidoMesa .bg-slate-900 {
            background-color: #f8fafc !important;
            border-color: #e2e8f0 !important;
            color: #0f172a !important;
        }
        body.theme-light #modalLancarPedidoMesa input, body.light-theme #modalLancarPedidoMesa input,
        body.theme-light #modalLancarPedidoMesa textarea, body.light-theme #modalLancarPedidoMesa textarea {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #0f172a !important;
        }
        body.theme-light #btnCategoriasMenu, body.light-theme #btnCategoriasMenu {
            background-color: #0f172a !important;
            color: #ffffff !important;
            border-color: #334155 !important;
        }

        /* TOP HERO BANNERS IN LIGHT MODE (admin/caixas, admin/funcionarios, etc.) */
        body.theme-light [class*="from-slate-900"],
        body.light-theme [class*="from-slate-900"],
        body.theme-light [class*="bg-gradient-to-r"][class*="from-slate-900"],
        body.light-theme [class*="bg-gradient-to-r"][class*="from-slate-900"] {
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
            border-color: #cbd5e1 !important;
            box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05) !important;
        }
        body.theme-light [class*="from-slate-900"] h1, body.light-theme [class*="from-slate-900"] h1,
        body.theme-light [class*="from-slate-900"] h2, body.light-theme [class*="from-slate-900"] h2,
        body.theme-light [class*="from-slate-900"] h3, body.light-theme [class*="from-slate-900"] h3,
        body.theme-light [class*="from-slate-900"] h4, body.light-theme [class*="from-slate-900"] h4,
        body.theme-light [class*="from-slate-900"] span:not(.text-sky-400):not(.text-emerald-400):not(.text-amber-400),
        body.light-theme [class*="from-slate-900"] span:not(.text-sky-400):not(.text-emerald-400):not(.text-amber-400) {
            color: #0f172a !important;
        }
        body.theme-light [class*="from-slate-900"] p, body.light-theme [class*="from-slate-900"] p {
            color: #475569 !important;
        }

        /* INNER BOXES IN ITEM STATUS / DETAILS MODALS IN LIGHT MODE (Screenshots 2 & 3) */
        body.theme-light [id*="modalStatusItem"] .bg-slate-800, body.light-theme [id*="modalStatusItem"] .bg-slate-800,
        body.theme-light [id*="modalStatusItem"] .bg-slate-900, body.light-theme [id*="modalStatusItem"] .bg-slate-900,
        body.theme-light [id*="modalStatusItem"] .bg-slate-950, body.light-theme [id*="modalStatusItem"] .bg-slate-950,
        body.theme-light [id*="modalDetItem"] .bg-slate-800, body.light-theme [id*="modalDetItem"] .bg-slate-800,
        body.theme-light [id*="modalDetItem"] .bg-slate-900, body.light-theme [id*="modalDetItem"] .bg-slate-900,
        body.theme-light [id*="modalDetItem"] .bg-slate-950, body.light-theme [id*="modalDetItem"] .bg-slate-950,
        body.theme-light [id*="modalAlterarItem"] .bg-slate-800, body.light-theme [id*="modalAlterarItem"] .bg-slate-800,
        body.theme-light [id*="modalAlterarItem"] .bg-slate-900, body.light-theme [id*="modalAlterarItem"] .bg-slate-900,
        body.theme-light [id*="modalAlterarItem"] .bg-slate-950, body.light-theme [id*="modalAlterarItem"] .bg-slate-950 {
            background-color: #f8fafc !important;
            border-color: #e2e8f0 !important;
            color: #0f172a !important;
        }
        body.theme-light [id*="modalStatusItem"] span.text-white, body.light-theme [id*="modalStatusItem"] span.text-white,
        body.theme-light [id*="modalStatusItem"] p.text-white, body.light-theme [id*="modalStatusItem"] p.text-white,
        body.theme-light [id*="modalDetItem"] span.text-white, body.light-theme [id*="modalDetItem"] span.text-white,
        body.theme-light [id*="modalDetItem"] p.text-white, body.light-theme [id*="modalDetItem"] p.text-white,
        body.theme-light [id*="modalAlterarItem"] span.text-white, body.light-theme [id*="modalAlterarItem"] span.text-white,
        body.theme-light [id*="modalAlterarItem"] p.text-white, body.light-theme [id*="modalAlterarItem"] p.text-white {
            color: #0f172a !important;
        }

        /* HIGH CONTRAST PASTEL TEXT COLORS IN LIGHT MODE (replaces unreadable 300/400 colors with 700/800 colors) */
        body.theme-light .text-amber-300, body.light-theme .text-amber-300,
        body.theme-light .text-amber-400, body.light-theme .text-amber-400 {
            color: #b45309 !important;
        }
        body.theme-light .text-rose-300, body.light-theme .text-rose-300,
        body.theme-light .text-rose-400, body.light-theme .text-rose-400 {
            color: #be123c !important;
        }
        body.theme-light .text-sky-300, body.light-theme .text-sky-300,
        body.theme-light .text-sky-400, body.light-theme .text-sky-400 {
            color: #0369a1 !important;
        }
        body.theme-light .text-purple-300, body.light-theme .text-purple-300,
        body.theme-light .text-purple-400, body.light-theme .text-purple-400 {
            color: #7e22ce !important;
        }
        body.theme-light .text-emerald-300, body.light-theme .text-emerald-300,
        body.theme-light .text-emerald-400, body.light-theme .text-emerald-400 {
            color: #047857 !important;
        }
        body.theme-light .text-emerald-200, body.light-theme .text-emerald-200,
        html.theme-light .text-emerald-200, html.light-theme .text-emerald-200 {
            color: #000000 !important;
        }

        /* NOMENCLATURAS DE PIZZA E INGREDIENTES EM MODO DIURNO (COR PRETA) */
        body.theme-light .mesa-pizza-ing-badge, body.light-theme .mesa-pizza-ing-badge,
        html.theme-light .mesa-pizza-ing-badge, html.light-theme .mesa-pizza-ing-badge {
            background-color: #f0fdf4 !important;
            border-color: #86efac !important;
        }
        body.theme-light .mesa-pizza-ing-badge span, body.light-theme .mesa-pizza-ing-badge span,
        html.theme-light .mesa-pizza-ing-badge span, html.light-theme .mesa-pizza-ing-badge span,
        body.theme-light .mesa-pizza-ing-nome, body.light-theme .mesa-pizza-ing-nome,
        html.theme-light .mesa-pizza-ing-nome, html.light-theme .mesa-pizza-ing-nome,
        body.theme-light .mesa-pizza-ing-desc, body.light-theme .mesa-pizza-ing-desc,
        html.theme-light .mesa-pizza-ing-desc, html.light-theme .mesa-pizza-ing-desc,
        body.theme-light .mesa-pizza-ing-badge .text-emerald-200, body.light-theme .mesa-pizza-ing-badge .text-emerald-200,
        html.theme-light .mesa-pizza-ing-badge .text-emerald-200, html.light-theme .mesa-pizza-ing-badge .text-emerald-200,
        body.theme-light [class*="bg-emerald-950"] .mesa-pizza-ing-nome, body.light-theme [class*="bg-emerald-950"] .mesa-pizza-ing-nome {
            color: #000000 !important;
        }
        body.theme-light .mesa-pizza-ing-badge .bg-slate-950, body.light-theme .mesa-pizza-ing-badge .bg-slate-950,
        html.theme-light .mesa-pizza-ing-badge .bg-slate-950, html.light-theme .mesa-pizza-ing-badge .bg-slate-950 {
            background-color: #ffffff !important;
            border-color: #86efac !important;
        }

        body.theme-light .cart-custom-ing-pill, body.light-theme .cart-custom-ing-pill,
        html.theme-light .cart-custom-ing-pill, html.light-theme .cart-custom-ing-pill {
            background-color: #f0fdf4 !important;
            border-color: #86efac !important;
        }
        body.theme-light .cart-custom-ing-pill span, body.light-theme .cart-custom-ing-pill span,
        html.theme-light .cart-custom-ing-pill span, html.light-theme .cart-custom-ing-pill span {
            color: #000000 !important;
        }

        /* TEMA CLARO: BOX OPÇÃO PIX E QR CODE NO MODAL FECHAR COMANDA */
        body.theme-light #boxOpcaoPix, body.light-theme #boxOpcaoPix,
        html.theme-light #boxOpcaoPix, html.light-theme #boxOpcaoPix {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #0f172a !important;
        }
        body.theme-light #boxOpcaoPix .bg-slate-900, body.light-theme #boxOpcaoPix .bg-slate-900,
        body.theme-light #boxOpcaoPix .bg-slate-950, body.light-theme #boxOpcaoPix .bg-slate-950,
        html.theme-light #boxOpcaoPix .bg-slate-900, html.light-theme #boxOpcaoPix .bg-slate-900,
        html.theme-light #boxOpcaoPix .bg-slate-950, html.light-theme #boxOpcaoPix .bg-slate-950 {
            background-color: #f8fafc !important;
            border-color: #e2e8f0 !important;
            color: #0f172a !important;
        }
        body.theme-light #inputValorPix, body.light-theme #inputValorPix,
        html.theme-light #inputValorPix, html.light-theme #inputValorPix,
        body.theme-light #posPixCopiaColaInput, body.light-theme #posPixCopiaColaInput,
        html.theme-light #posPixCopiaColaInput, html.light-theme #posPixCopiaColaInput {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #0f172a !important;
        }
        body.theme-light #posPixBoxExibicao, body.light-theme #posPixBoxExibicao,
        html.theme-light #posPixBoxExibicao, html.light-theme #posPixBoxExibicao {
            background-color: #f0fdf4 !important;
            border-color: #86efac !important;
        }
        #btnGerarQrCodePixPos, #btnLancarPixDiretoPos {
            background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
            background-color: #059669 !important;
            color: #ffffff !important;
        }
        #btnGerarQrCodePixPos *, #btnLancarPixDiretoPos * {
            color: #ffffff !important;
        }

        /* ACTION BUTTONS IN ITEM DETAILS MODAL (Alterar Qtd / Remover Pedido) */
        body.theme-light button#btnEditarQtdItemMesaModal, body.light-theme button#btnEditarQtdItemMesaModal,
        body.theme-light button[onclick*="editarQuantidadeItem"], body.light-theme button[onclick*="editarQuantidadeItem"] {
            background-color: #fffbeb !important;
            border-color: #f59e0b !important;
            color: #b45309 !important;
            font-weight: 800 !important;
        }
        body.theme-light button#btnRemoverItemMesaModal, body.light-theme button#btnRemoverItemMesaModal,
        body.theme-light button[onclick*="cancelarItemMesa"], body.light-theme button[onclick*="cancelarItemMesa"] {
            background-color: #fff1f2 !important;
            border-color: #fecdd3 !important;
            color: #be123c !important;
            font-weight: 800 !important;
        }

        /* SECTION HEADER BARS ABOVE TABLES IN LIGHT MODE (e.g. Lista de Colaboradores in funcionarios.php) */
        body.theme-light [class*="bg-slate-900\/60"], body.light-theme [class*="bg-slate-900\/60"],
        body.theme-light [class*="bg-slate-900\/70"], body.light-theme [class*="bg-slate-900\/70"],
        body.theme-light [class*="bg-slate-900\/80"], body.light-theme [class*="bg-slate-900\/80"],
        body.theme-light [class*="bg-slate-900\/90"], body.light-theme [class*="bg-slate-900\/90"] {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #0f172a !important;
        }

        /* AVATAR CIRCLES IN LIGHT MODE (e.g. A, M in funcionarios.php) */
        body.theme-light .rounded-full.bg-slate-900, body.light-theme .rounded-full.bg-slate-900,
        body.theme-light .rounded-full.bg-slate-950, body.light-theme .rounded-full.bg-slate-950,
        body.theme-light .w-9.h-9.bg-slate-900, body.light-theme .w-9.h-9.bg-slate-900,
        body.theme-light .w-10.h-10.bg-slate-900, body.light-theme .w-10.h-10.bg-slate-900 {
            background-color: #e2e8f0 !important;
            color: #1e293b !important;
        }

        /* CARDS AND MODULE GUIDES IN LIGHT MODE (e.g. bottom of funcionarios.php) */
        body.theme-light .border-slate-800, body.light-theme .border-slate-800 {
            border-color: #e2e8f0 !important;
        }
        body.theme-light .border-slate-800 h4, body.light-theme .border-slate-800 h4,
        body.theme-light .border-slate-800 h5, body.light-theme .border-slate-800 h5,
        body.theme-light .border-slate-800 span.font-bold, body.light-theme .border-slate-800 span.font-bold {
            color: #0f172a !important;
        }
        body.theme-light .border-slate-800 p, body.light-theme .border-slate-800 p {
            color: #64748b !important;
        }

        /* HIGH-CONTRAST TABLE HEADERS AND ROWS ACROSS ALL ADMIN PAGES IN LIGHT MODE */
        body.theme-light table thead, body.light-theme table thead,
        body.theme-light table thead tr, body.light-theme table thead tr {
            background-color: #f1f5f9 !important;
            border-bottom: 2px solid #cbd5e1 !important;
        }
        body.theme-light table th, body.light-theme table th,
        body.theme-light table thead th, body.light-theme table thead th,
        body.theme-light table thead .text-slate-400, body.light-theme table thead .text-slate-400,
        body.theme-light table thead .text-slate-500, body.light-theme table thead .text-slate-500 {
            color: #334155 !important;
            font-weight: 800 !important;
        }
        body.theme-light table td, body.light-theme table td {
            color: #0f172a !important;
            border-bottom: 1px solid #e2e8f0 !important;
            font-weight: 500 !important;
        }

        /* ========================================================= */
        /* MODO DIURNO (LIGHT THEME) - TODOS OS MODAIS E PAINÉIS    */
        /* Fundo branco/claro em todos os cards, contêineres e barras*/
        /* Preservando contraste e legibilidade das letras e dados   */
        /* ========================================================= */

        /* 1. Reset Geral de Gradientes Escuros em Modo Diurno */
        body.theme-light [class*="via-slate-950"], body.light-theme [class*="via-slate-950"],
        body.theme-light [class*="to-slate-950"], body.light-theme [class*="to-slate-950"],
        body.theme-light [class*="from-slate-950"], body.light-theme [class*="from-slate-950"],
        body.theme-light [class*="from-sky-950"], body.light-theme [class*="from-sky-950"],
        body.theme-light [class*="to-blue-950"], body.light-theme [class*="to-blue-950"],
        body.theme-light [class*="from-emerald-950"], body.light-theme [class*="from-emerald-950"],
        body.theme-light [class*="to-teal-950"], body.light-theme [class*="to-teal-950"] {
            background-image: none !important;
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
        }

        /* 2. Container e Cards Internos de Todos os Modais */
        body.theme-light [id^="modal"] > div:not(.bg-white),
        body.light-theme [id^="modal"] > div:not(.bg-white) {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
            color: #0f172a !important;
        }

        /* 3. Subcontêineres, Grids e Caixas com Fundo Escuro em Modais */
        body.theme-light [id^="modal"] .bg-slate-950, body.light-theme [id^="modal"] .bg-slate-950,
        body.theme-light [id^="modal"] [class*="bg-slate-950\/"], body.light-theme [id^="modal"] [class*="bg-slate-950\/"],
        body.theme-light [id^="modal"] .bg-slate-900, body.light-theme [id^="modal"] .bg-slate-900,
        body.theme-light [id^="modal"] [class*="bg-slate-900\/"], body.light-theme [id^="modal"] [class*="bg-slate-900\/"] {
            background-color: #ffffff !important;
            border-color: #e2e8f0 !important;
        }

        /* 4. MODAL GESTÃO DE CAIXA (modalGestaoCaixa) */
        body.theme-light #cardHeroSaldoGaveta, body.light-theme #cardHeroSaldoGaveta {
            background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%) !important;
            border: 1.5px solid #10b981 !important;
            box-shadow: 0 4px 15px -2px rgba(16, 185, 129, 0.15) !important;
        }
        body.theme-light #cardHeroSaldoGaveta span, body.light-theme #cardHeroSaldoGaveta span,
        body.theme-light #cardHeroSaldoGaveta i, body.light-theme #cardHeroSaldoGaveta i {
            color: #065f46 !important;
        }
        body.theme-light #cardHeroSaldoGaveta #lblSaldoEsperadoDinheiro,
        body.light-theme #cardHeroSaldoGaveta #lblSaldoEsperadoDinheiro {
            color: #047857 !important;
        }
        body.theme-light #cardHeroSaldoGaveta p, body.light-theme #cardHeroSaldoGaveta p {
            color: #047857 !important;
        }

        body.theme-light #cardHeroVendasTotais, body.light-theme #cardHeroVendasTotais {
            background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%) !important;
            border: 1.5px solid #0284c7 !important;
            box-shadow: 0 4px 15px -2px rgba(2, 132, 199, 0.15) !important;
        }
        body.theme-light #cardHeroVendasTotais span, body.light-theme #cardHeroVendasTotais span,
        body.theme-light #cardHeroVendasTotais i, body.light-theme #cardHeroVendasTotais i {
            color: #0369a1 !important;
        }
        body.theme-light #cardHeroVendasTotais #lblTotalVendas,
        body.light-theme #cardHeroVendasTotais #lblTotalVendas {
            color: #0284c7 !important;
        }
        body.theme-light #cardHeroVendasTotais .grid > div,
        body.light-theme #cardHeroVendasTotais .grid > div {
            background-color: #ffffff !important;
            border: 1px solid #e2e8f0 !important;
            box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
        }
        body.theme-light #lblVendasDinheiro, body.light-theme #lblVendasDinheiro {
            color: #0f172a !important;
        }
        body.theme-light #lblVendasPix, body.light-theme #lblVendasPix {
            color: #0d9488 !important;
        }
        body.theme-light #lblVendasCartao, body.light-theme #lblVendasCartao {
            color: #0284c7 !important;
        }

        /* Linha 2 de Cards de Caixa (Troco Inicial, Suprimentos, Sangrias, Em Aberto) */
        body.theme-light #modalGestaoCaixa .grid-cols-2.sm\:grid-cols-4 > div,
        body.light-theme #modalGestaoCaixa .grid-cols-2.sm\:grid-cols-4 > div {
            background-color: #ffffff !important;
            border: 1px solid #e2e8f0 !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
        }
        body.theme-light #modalGestaoCaixa .grid-cols-2.sm\:grid-cols-4 span,
        body.light-theme #modalGestaoCaixa .grid-cols-2.sm\:grid-cols-4 span {
            color: #475569 !important;
        }

        /* Demonstrativo de Cálculo e Conciliação Financeira */
        body.theme-light #modalGestaoCaixa .space-y-4 + div.bg-slate-950\/90,
        body.light-theme #modalGestaoCaixa .space-y-4 + div.bg-slate-950\/90,
        body.theme-light #modalGestaoCaixa .bg-slate-950\/90,
        body.light-theme #modalGestaoCaixa .bg-slate-950\/90 {
            background-color: #ffffff !important;
            border: 1px solid #e2e8f0 !important;
        }
        body.theme-light #modalGestaoCaixa .bg-slate-950\/90 h4,
        body.light-theme #modalGestaoCaixa .bg-slate-950\/90 h4 {
            color: #0f172a !important;
        }
        body.theme-light #modalGestaoCaixa .bg-slate-900\/90,
        body.light-theme #modalGestaoCaixa .bg-slate-900\/90 {
            background-color: #f8fafc !important;
            border-color: #e2e8f0 !important;
        }
        body.theme-light #modalGestaoCaixa .bg-slate-900\/90 .text-slate-300,
        body.light-theme #modalGestaoCaixa .bg-slate-900\/90 .text-slate-300 {
            color: #334155 !important;
        }
        body.theme-light #demoVendasDinheiro, body.light-theme #demoVendasDinheiro {
            color: #0f172a !important;
        }

        /* Banners Total Apurado e Previsão Total */
        body.theme-light #boxDemoTotalGeralApurado,
        body.light-theme #boxDemoTotalGeralApurado,
        body.theme-light #modalGestaoCaixa .from-sky-950\/80,
        body.light-theme #modalGestaoCaixa .from-sky-950\/80 {
            background: #f0f9ff !important;
            border: 1.5px solid #0284c7 !important;
        }
        body.theme-light #boxDemoTotalGeralApurado *,
        body.light-theme #boxDemoTotalGeralApurado *,
        body.theme-light #demoTotalGeralApurado,
        body.light-theme #demoTotalGeralApurado {
            color: #0284c7 !important;
        }
        body.theme-light #boxDemoTotalGeralApurado span.text-slate-400,
        body.light-theme #boxDemoTotalGeralApurado span.text-slate-400 {
            color: #475569 !important;
        }

        body.theme-light #boxDemoPrevisaoTotal,
        body.light-theme #boxDemoPrevisaoTotal,
        body.theme-light #modalGestaoCaixa .from-emerald-950\/80,
        body.light-theme #modalGestaoCaixa .from-emerald-950\/80 {
            background: #ecfdf5 !important;
            border: 1.5px solid #10b981 !important;
        }
        body.theme-light #boxDemoPrevisaoTotal *,
        body.light-theme #boxDemoPrevisaoTotal *,
        body.theme-light #demoPrevisaoTotal,
        body.light-theme #demoPrevisaoTotal {
            color: #047857 !important;
        }
        body.theme-light #boxDemoPrevisaoTotal span.text-slate-400,
        body.light-theme #boxDemoPrevisaoTotal span.text-slate-400 {
            color: #475569 !important;
        }

        /* 5. MODAL JUNTAR MESAS (modalJuntarMesas) */
        body.theme-light #headerModalJuntarMesas,
        body.light-theme #headerModalJuntarMesas,
        body.theme-light #modalJuntarMesas .bg-slate-950\/50,
        body.light-theme #modalJuntarMesas .bg-slate-950\/50 {
            background-color: #f8fafc !important;
            border-bottom: 1px solid #e2e8f0 !important;
        }
        body.theme-light #headerModalJuntarMesas h3,
        body.light-theme #headerModalJuntarMesas h3,
        body.theme-light #modalJuntarMesas .bg-slate-950\/50 h3,
        body.light-theme #modalJuntarMesas .bg-slate-950\/50 h3 {
            color: #0f172a !important;
        }
        body.theme-light #headerModalJuntarMesas p,
        body.light-theme #headerModalJuntarMesas p,
        body.theme-light #modalJuntarMesas .bg-slate-950\/50 p,
        body.light-theme #modalJuntarMesas .bg-slate-950\/50 p {
            color: #64748b !important;
        }
        body.theme-light #modalJuntarMesas #etapaSelecaoMesas p,
        body.light-theme #modalJuntarMesas #etapaSelecaoMesas p {
            color: #334155 !important;
        }
        body.theme-light #modalJuntarMesas label.bg-slate-950\/80,
        body.light-theme #modalJuntarMesas label.bg-slate-950\/80,
        body.theme-light #modalJuntarMesas label.bg-slate-950\/90,
        body.light-theme #modalJuntarMesas label.bg-slate-950\/90 {
            background-color: #ffffff !important;
            border: 1.5px solid #e2e8f0 !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
        }
        body.theme-light #modalJuntarMesas label.bg-slate-950\/80:hover,
        body.light-theme #modalJuntarMesas label.bg-slate-950\/80:hover,
        body.theme-light #modalJuntarMesas label.bg-slate-950\/90:hover,
        body.light-theme #modalJuntarMesas label.bg-slate-950\/90:hover {
            background-color: #f8fafc !important;
            border-color: #38bdf8 !important;
        }
        body.theme-light #modalJuntarMesas label.is-grouped-card,
        body.light-theme #modalJuntarMesas label.is-grouped-card {
            background-color: #f0f9ff !important;
            border-color: #0284c7 !important;
        }
        body.theme-light #modalJuntarMesas label span.text-white,
        body.light-theme #modalJuntarMesas label span.text-white {
            color: #0f172a !important;
        }
        body.theme-light #modalJuntarMesas label span.text-slate-300,
        body.light-theme #modalJuntarMesas label span.text-slate-300 {
            color: #334155 !important;
        }

        /* 6. MODAL EDITAR QUANTIDADE DE ITEM (modalEditarQuantidadeItemMesa) */
        body.theme-light #modalEditarQuantidadeItemMesa .modal-editar-card,
        body.light-theme #modalEditarQuantidadeItemMesa .modal-editar-card {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #0f172a !important;
        }
        body.theme-light #modalEditarQuantidadeItemMesa .bg-slate-950\/70,
        body.light-theme #modalEditarQuantidadeItemMesa .bg-slate-950\/70,
        body.theme-light #modalEditarQuantidadeItemMesa .bg-slate-950\/80,
        body.light-theme #modalEditarQuantidadeItemMesa .bg-slate-950\/80 {
            background-color: #f8fafc !important;
            border-color: #e2e8f0 !important;
        }
        body.theme-light #modalEditarQuantidadeItemMesa #lblModalEditarQtdNome,
        body.light-theme #modalEditarQuantidadeItemMesa #lblModalEditarQtdNome,
        body.theme-light #modalEditarQuantidadeItemMesa #lblModalEditarQtdAtualNum,
        body.light-theme #modalEditarQuantidadeItemMesa #lblModalEditarQtdAtualNum {
            color: #0f172a !important;
        }
        body.theme-light #modalEditarQuantidadeItemMesa .bg-slate-900\/90,
        body.light-theme #modalEditarQuantidadeItemMesa .bg-slate-900\/90,
        body.theme-light #modalEditarQuantidadeItemMesa .bg-slate-900,
        body.light-theme #modalEditarQuantidadeItemMesa .bg-slate-900 {
            background-color: #ffffff !important;
            border-color: #e2e8f0 !important;
        }
        body.theme-light #modalEditarQuantidadeItemMesa .bg-slate-950\/90,
        body.light-theme #modalEditarQuantidadeItemMesa .bg-slate-950\/90 {
            background-color: #ffffff !important;
            border-color: #f59e0b !important;
        }
        body.theme-light #modalEditarQuantidadeItemMesa #inputModalEditarQtdVal,
        body.light-theme #modalEditarQuantidadeItemMesa #inputModalEditarQtdVal {
            background-color: #ffffff !important;
            border-color: #f59e0b !important;
            color: #b45309 !important;
        }
        body.theme-light #modalEditarQuantidadeItemMesa button.bg-slate-900,
        body.light-theme #modalEditarQuantidadeItemMesa button.bg-slate-900 {
            background-color: #f8fafc !important;
            border-color: #cbd5e1 !important;
            color: #334155 !important;
        }
        body.theme-light #modalEditarQuantidadeItemMesa button.bg-slate-900:hover,
        body.light-theme #modalEditarQuantidadeItemMesa button.bg-slate-900:hover {
            background-color: #e0f2fe !important;
            border-color: #38bdf8 !important;
            color: #0284c7 !important;
        }
        body.theme-light #boxModalEditarSubtotalCard,
        body.light-theme #boxModalEditarSubtotalCard,
        body.theme-light #modalEditarQuantidadeItemMesa .from-emerald-950\/80,
        body.light-theme #modalEditarQuantidadeItemMesa .from-emerald-950\/80 {
            background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%) !important;
            border: 1.5px solid #10b981 !important;
        }
        body.theme-light #boxModalEditarSubtotalCard #lblModalEditarFormulaCalculo,
        body.light-theme #boxModalEditarSubtotalCard #lblModalEditarFormulaCalculo {
            color: #065f46 !important;
        }
        body.theme-light #boxModalEditarSubtotalCard #lblModalEditarQtdSubtotal,
        body.light-theme #boxModalEditarSubtotalCard #lblModalEditarQtdSubtotal {
            color: #047857 !important;
        }

        /* 7. MODAL EXTRATO COMANDA (modalExtratoComanda) */
        body.theme-light #modalExtratoComanda .bg-slate-950\/80,
        body.light-theme #modalExtratoComanda .bg-slate-950\/80 {
            background-color: #f1f5f9 !important;
            border-color: #e2e8f0 !important;
        }
        body.theme-light #modalExtratoComanda #tabExtratoStatus,
        body.light-theme #modalExtratoComanda #tabExtratoStatus {
            color: #475569 !important;
        }
        body.theme-light #modalExtratoComanda #tabExtratoStatus:hover,
        body.light-theme #modalExtratoComanda #tabExtratoStatus:hover {
            background-color: #e2e8f0 !important;
            color: #0f172a !important;
        }
        body.theme-light #modalExtratoComanda .bg-slate-950,
        body.light-theme #modalExtratoComanda .bg-slate-950 {
            background-color: #ffffff !important;
            border: 1px solid #e2e8f0 !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
        }
        body.theme-light #extratoTotalItens, body.light-theme #extratoTotalItens {
            color: #0f172a !important;
        }

        /* 8. MODAL ALTERAR STATUS ITEM DO BAR (modalStatusItemBar) */
        body.theme-light #modalStatusItemBar > div,
        body.light-theme #modalStatusItemBar > div {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #0f172a !important;
        }
        body.theme-light #modalStatusItemBar button[id^="btnStatusOpt_"],
        body.light-theme #modalStatusItemBar button[id^="btnStatusOpt_"] {
            background-color: #ffffff !important;
            border: 1.5px solid #e2e8f0 !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
        }
        body.theme-light #modalStatusItemBar button[id^="btnStatusOpt_"]:hover,
        body.light-theme #modalStatusItemBar button[id^="btnStatusOpt_"]:hover {
            background-color: #f8fafc !important;
            border-color: #cbd5e1 !important;
        }
        body.theme-light #lblModalStatusItemNome,
        body.light-theme #lblModalStatusItemNome {
            color: #0f172a !important;
        }

        /* 9. MODAL FECHAMENTO E ABERTURA DE CAIXA */
        body.theme-light #modalFechamentoCaixa .bg-slate-950,
        body.light-theme #modalFechamentoCaixa .bg-slate-950,
        body.theme-light #modalFechamentoCaixa #boxDiferencaFechamento,
        body.light-theme #modalFechamentoCaixa #boxDiferencaFechamento {
            background-color: #f8fafc !important;
            border: 1px solid #e2e8f0 !important;
        }
        body.theme-light #modalFechamentoCaixa .bg-sky-950\/40,
        body.light-theme #modalFechamentoCaixa .bg-sky-950\/40 {
            background-color: #f0f9ff !important;
            border: 1.5px solid #0284c7 !important;
        }
        body.theme-light #fchTotalApurado,
        body.light-theme #fchTotalApurado {
            color: #0284c7 !important;
        }
        body.theme-light #fchVendasDinheiro,
        body.light-theme #fchVendasDinheiro {
            color: #0f172a !important;
        }

        /* 10. MODAL CONFIGURAÇÕES DE EXIBIÇÃO & BLOQUEIO RESERVA */
        body.theme-light #modalBloqueioMesaReservada .bg-slate-950\/80,
        body.light-theme #modalBloqueioMesaReservada .bg-slate-950\/80 {
            background-color: #f8fafc !important;
            border: 1px solid #e2e8f0 !important;
        }
        body.theme-light #bloqueioReservaNome,
        body.light-theme #bloqueioReservaNome {
            color: #0f172a !important;
        }

        /* 11. MODAL DETALHES DA MESA, TROCAR MESA & EXCLUIR MESA */
        body.theme-light #modalDetalhesMesa .bg-slate-950,
        body.light-theme #modalDetalhesMesa .bg-slate-950 {
            background-color: #f8fafc !important;
            border: 1px solid #e2e8f0 !important;
        }
        body.theme-light #modalDetalhesMesa #detalhesMesaNumero,
        body.light-theme #modalDetalhesMesa #detalhesMesaNumero {
            color: #0f172a !important;
        }
        body.theme-light #containerOpcoesMesasJuntasTrocar button,
        body.light-theme #containerOpcoesMesasJuntasTrocar button {
            background-color: #ffffff !important;
            border: 1.5px solid #cbd5e1 !important;
            color: #0f172a !important;
        }
        body.theme-light #containerOpcoesMesasJuntasTrocar button:hover,
        body.light-theme #containerOpcoesMesasJuntasTrocar button:hover {
            background-color: #f0f9ff !important;
            border-color: #0284c7 !important;
        }

        /* 12. Inputs, Selects e Textareas em Todos os Modais (Fundo Branco, Texto Escuro) */
        body.theme-light [id^="modal"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
        body.light-theme [id^="modal"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
        body.theme-light [id^="modal"] select,
        body.light-theme [id^="modal"] select,
        body.theme-light [id^="modal"] textarea,
        body.light-theme [id^="modal"] textarea {
            background-color: #ffffff !important;
            border: 1.5px solid #cbd5e1 !important;
            color: #0f172a !important;
        }
        body.theme-light [id^="modal"] input::placeholder,
        body.light-theme [id^="modal"] input::placeholder,
        body.theme-light [id^="modal"] textarea::placeholder,
        body.light-theme [id^="modal"] textarea::placeholder {
            color: #94a3b8 !important;
        }

        /* 13. Botões Secundários, Fechar (X) e Cancelar dentro de Modais */
        body.theme-light [id^="modal"] button.bg-slate-950,
        body.light-theme [id^="modal"] button.bg-slate-950,
        body.theme-light [id^="modal"] button.bg-slate-900,
        body.light-theme [id^="modal"] button.bg-slate-900,
        body.theme-light [id^="modal"] button.bg-slate-800,
        body.light-theme [id^="modal"] button.bg-slate-800,
        body.theme-light [id^="modal"] button[class*="bg-slate-800"],
        body.light-theme [id^="modal"] button[class*="bg-slate-800"],
        body.theme-light [id^="modal"] button[class*="bg-slate-900"],
        body.light-theme [id^="modal"] button[class*="bg-slate-900"],
        body.theme-light [id^="modal"] button[class*="bg-slate-950"],
        body.light-theme [id^="modal"] button[class*="bg-slate-950"] {
            background-color: #f1f5f9 !important;
            border-color: #cbd5e1 !important;
            color: #475569 !important;
        }
        body.theme-light [id^="modal"] button.bg-slate-950:hover,
        body.light-theme [id^="modal"] button.bg-slate-950:hover,
        body.theme-light [id^="modal"] button.bg-slate-900:hover,
        body.light-theme [id^="modal"] button.bg-slate-900:hover,
        body.theme-light [id^="modal"] button.bg-slate-800:hover,
        body.light-theme [id^="modal"] button.bg-slate-800:hover {
            background-color: #e2e8f0 !important;
            color: #0f172a !important;
        }
        body.theme-dark {
            background-color: #020617 !important;
            color: #f8fafc !important;
        }
        .no-transition,
        .no-transition *,
        .no-transition *::before,
        .no-transition *::after {
            transition: none !important;
            animation: none !important;
        }

        /* PREVENIR REFLOW DO LAYOUT NO DESKTOP QUANDO O CARRINHO TEM ITENS */
        @media (min-width: 1024px) {
            html.has-cart-items #orderSummaryPanel,
            body.has-cart-items #orderSummaryPanel {
                display: flex !important;
            }
            html.has-cart-items:not(.cart-ui-ready) #orderSummaryPanel,
            body.has-cart-items:not(.cart-ui-ready) #orderSummaryPanel {
                visibility: hidden !important;
                opacity: 0 !important;
            }
        }
        @media (max-width: 1023px) {
            #orderSummaryPanel {
                display: none !important;
            }
        }


/* ==========================================================================
   ESTILOS PREMIUM SWEETALERT2 (TEMA NOTURNO E DIURNO)
   ========================================================================== */
.swal2-container {
    z-index: 1000000 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
.swal2-popup {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid rgba(51, 65, 85, 0.8) !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    padding: 1.75rem !important;
}
.swal2-title {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.15rem !important;
    letter-spacing: -0.02em !important;
}
.swal2-html-container {
    color: #94a3b8 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}
.swal2-actions {
    gap: 0.75rem !important;
    margin-top: 1.25rem !important;
}
.swal2-confirm {
    border-radius: 1rem !important;
    font-weight: 800 !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1.5rem !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}
.swal2-cancel {
    border-radius: 1rem !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1.5rem !important;
    background-color: #334155 !important;
    color: #cbd5e1 !important;
}

/* Modo Diurno / Claro */
html.light-theme .swal2-popup,
html.theme-light .swal2-popup,
body.light-theme .swal2-popup,
body.theme-light .swal2-popup {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18) !important;
}
html.light-theme .swal2-title,
html.theme-light .swal2-title,
body.light-theme .swal2-title,
body.theme-light .swal2-title {
    color: #0f172a !important;
}
html.light-theme .swal2-html-container,
html.theme-light .swal2-html-container,
body.light-theme .swal2-html-container,
body.theme-light .swal2-html-container {
    color: #64748b !important;
}
html.light-theme .swal2-cancel,
html.theme-light .swal2-cancel,
body.light-theme .swal2-cancel,
body.theme-light .swal2-cancel {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
}

/* ==========================================================================
   TOGGLE SWITCHES (.peer) NO MODO DIURNO (ALTO CONTRASTE)
   ========================================================================== */
body.theme-light input.peer + div.rounded-full,
body.light-theme input.peer + div.rounded-full {
    background-color: #cbd5e1 !important;
    border: 1.5px solid #94a3b8 !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.14) !important;
}

body.theme-light input.peer + div.rounded-full::after,
body.light-theme input.peer + div.rounded-full::after {
    background-color: #ffffff !important;
    border-color: #64748b !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.35) !important;
}

body.theme-light input.peer:checked + div.rounded-full::after,
body.light-theme input.peer:checked + div.rounded-full::after {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.4) !important;
}

body.theme-light input.peer:checked + div.peer-checked\:bg-emerald-600,
body.light-theme input.peer:checked + div.peer-checked\:bg-emerald-600,
body.theme-light input.peer:checked + div.peer-checked\:bg-emerald-500,
body.light-theme input.peer:checked + div.peer-checked\:bg-emerald-500 {
    background-color: #059669 !important;
    border-color: #047857 !important;
}

body.theme-light input.peer:checked + div.peer-checked\:bg-cyan-600,
body.light-theme input.peer:checked + div.peer-checked\:bg-cyan-600,
body.theme-light input.peer:checked + div.peer-checked\:bg-cyan-500,
body.light-theme input.peer:checked + div.peer-checked\:bg-cyan-500 {
    background-color: #0891b2 !important;
    border-color: #0e7490 !important;
}

body.theme-light input.peer:checked + div.peer-checked\:bg-purple-600,
body.light-theme input.peer:checked + div.peer-checked\:bg-purple-600,
body.theme-light input.peer:checked + div.peer-checked\:bg-purple-500,
body.light-theme input.peer:checked + div.peer-checked\:bg-purple-500 {
    background-color: #7c3aed !important;
    border-color: #6d28d9 !important;
}

body.theme-light input.peer:checked + div.peer-checked\:bg-amber-500,
body.light-theme input.peer:checked + div.peer-checked\:bg-amber-500,
body.theme-light input.peer:checked + div.peer-checked\:bg-amber-600,
body.light-theme input.peer:checked + div.peer-checked\:bg-amber-600 {
    background-color: #d97706 !important;
    border-color: #b45309 !important;
}

body.theme-light input.peer:checked + div.peer-checked\:bg-sky-500,
body.light-theme input.peer:checked + div.peer-checked\:bg-sky-500,
body.theme-light input.peer:checked + div.peer-checked\:bg-sky-600,
body.light-theme input.peer:checked + div.peer-checked\:bg-sky-600 {
    background-color: #0284c7 !important;
    border-color: #0369a1 !important;
}

/* Bottom Sheet Modais de Filtro (Categorias e Setores) no Tema Claro */
body.light-theme #modalFiltroCategoria > div:nth-child(2),
body.theme-light #modalFiltroCategoria > div:nth-child(2),
body.light-theme #modalFiltroSetor > div:nth-child(2),
body.theme-light #modalFiltroSetor > div:nth-child(2) {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25) !important;
    color: #0f172a !important;
}

body.light-theme .btn-cat-filter-option,
body.theme-light .btn-cat-filter-option,
body.light-theme .btn-setor-filter-option,
body.theme-light .btn-setor-filter-option {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.light-theme .btn-cat-filter-option:hover,
body.theme-light .btn-cat-filter-option:hover,
body.light-theme .btn-setor-filter-option:hover,
body.theme-light .btn-setor-filter-option:hover {
    background-color: #f1f5f9 !important;
}

body.light-theme .btn-cat-filter-option span.text-white,
body.theme-light .btn-cat-filter-option span.text-white,
body.light-theme .btn-setor-filter-option span.text-white,
body.theme-light .btn-setor-filter-option span.text-white {
    color: #0f172a !important;
}

body.light-theme #btnTriggerFiltroCategoria,
body.theme-light #btnTriggerFiltroCategoria,
body.light-theme #btnTriggerFiltroSetor,
body.theme-light #btnTriggerFiltroSetor {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* ==========================================================================
   BOTÃO DE MENU MOBILE SUPERIOR ESQUERDO (ERGONOMIA TOUCH TARGET UX HIG/MATERIAL)
   Visível estritamente em telas móveis (< 768px). No Desktop (>= 768px) é ocultado.
   ========================================================================== */
.btn-mobile-sidebar-toggle {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 0.75rem !important; /* rounded-xl (12px) */
    flex-shrink: 0 !important;
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: all 0.15s ease-in-out !important;
}
@media (max-width: 767.98px) {
    .btn-mobile-sidebar-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}
.btn-mobile-sidebar-toggle i {
    font-size: 1.05rem !important; /* ~17px */
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}
.btn-mobile-sidebar-toggle:active {
    transform: scale(0.92) !important;
}
body.light-theme .btn-mobile-sidebar-toggle,
body.theme-light .btn-mobile-sidebar-toggle {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .btn-mobile-sidebar-toggle:hover,
body.theme-light .btn-mobile-sidebar-toggle:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* OCULTAR NO DESKTOP (>= 768px / breakpoint md do Tailwind): o menu lateral já é fixo */
@media (min-width: 768px) {
    .btn-mobile-sidebar-toggle,
    button.btn-mobile-sidebar-toggle,
    header .btn-mobile-sidebar-toggle {
        display: none !important;
    }
}

/* ========================================================
   MODAL: RELATÓRIO DE RESUMO DE ITENS DE HOJE (MODO DIURNO & PRINT)
   ======================================================== */
#modalResumoItens {
    padding-top: max(0.5rem, env(safe-area-inset-top));
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

#modalResumoItens input[type="date"] {
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 13px !important;
    color-scheme: dark !important;
    cursor: pointer !important;
}

body.theme-light #modalResumoItens input[type="date"],
body.light-theme #modalResumoItens input[type="date"] {
    color-scheme: light !important;
}

#modalResumoItens input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer !important;
    opacity: 0.85 !important;
    padding: 3px !important;
    border-radius: 6px !important;
    transition: opacity 0.15s, background-color 0.15s, transform 0.15s !important;
}

#modalResumoItens input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1 !important;
    transform: scale(1.1) !important;
    background-color: rgba(56, 189, 248, 0.2) !important;
}

#modalResumoItens input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
    margin: 0;
}

body.theme-light #modalResumoItens > div, body.light-theme #modalResumoItens > div {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
body.theme-light #modalResumoItens .bg-slate-950\/80, body.light-theme #modalResumoItens .bg-slate-950\/80,
body.theme-light #modalResumoItens .bg-slate-950, body.light-theme #modalResumoItens .bg-slate-950,
body.theme-light #cardsResumoItensMobile > div, body.light-theme #cardsResumoItensMobile > div {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
body.theme-light #modalResumoItens input[type="date"], body.light-theme #modalResumoItens input[type="date"],
body.theme-light #modalResumoItens input[type="text"], body.light-theme #modalResumoItens input[type="text"] {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
body.theme-light #tbodyResumoItens tr, body.light-theme #tbodyResumoItens tr {
    border-color: #e2e8f0 !important;
}
body.theme-light #tbodyResumoItens tr:hover, body.light-theme #tbodyResumoItens tr:hover {
    background-color: #f0f9ff !important;
}

/* ==========================================================================
   ESTILOS DE IMPRESSÃO EXECUTIVA (MODAL RESUMO DE ITENS E RELATÓRIOS)
   ========================================================================== */
@media print {
    @page {
        size: auto;
        margin: 8mm 10mm;
    }

    /* Esconde todo o conteúdo da aplicação fora do modal de resumo quando este estiver aberto para impressão */
    body.modal-print-active > *:not(#modalResumoItens),
    body:has(#modalResumoItens:not(.hidden)) > *:not(#modalResumoItens) {
        display: none !important;
    }

    /* Elementos com a classe no-print nunca aparecem na impressão */
    .no-print,
    #modalResumoItens .no-print,
    #modalResumoItens button,
    #modalResumoItens input {
        display: none !important;
    }

    /* Exibe blocos exclusivos de impressão */
    #modalResumoItens .print-block {
        display: block !important;
    }

    /* Reset do HTML e Body para evitar páginas em branco adicionais e remover tema escuro na folha */
    html,
    body,
    body.theme-dark,
    body.theme-light,
    body.light-theme {
        background-color: #ffffff !important;
        background: #ffffff !important;
        color: #0f172a !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* O container do Modal torna-se estático e de fluxo normal na página impressa */
    #modalResumoItens {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        background: #ffffff !important;
        color: #0f172a !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        z-index: auto !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    #modalResumoItens > div {
        max-width: 100% !important;
        width: 100% !important;
        max-height: none !important;
        height: auto !important;
        min-height: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #ffffff !important;
        color: #0f172a !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* Elimina rolagem interna para permitir paginação natural do navegador */
    #modalResumoItens .overflow-y-auto,
    #modalResumoItens .overflow-x-auto,
    #modalResumoItens .min-h-0,
    #modalResumoItens .flex-1 {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
        min-height: 0 !important;
        flex: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Cabeçalho do Relatório na Impressão */
    #modalResumoItens .border-b {
        border-bottom: 2px solid #0f172a !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 4px 0 10px 0 !important;
        margin-bottom: 12px !important;
    }

    #modalResumoItens h3,
    #modalResumoItens #tituloModalResumoItens {
        color: #0f172a !important;
        font-size: 16px !important;
        font-weight: 900 !important;
    }

    #modalResumoItens #lblResumoItensPeriodo {
        color: #475569 !important;
        font-size: 11px !important;
        font-weight: 600 !important;
    }

    #modalResumoItens #badgeStatusResumoPeriodo {
        background-color: #f1f5f9 !important;
        border: 1px solid #cbd5e1 !important;
        color: #0f172a !important;
        font-size: 9px !important;
        padding: 2px 6px !important;
    }

    /* Grid de KPIs executivos: 4 colunas alinhadas horizontalmente */
    #modalResumoItens .grid.grid-cols-2.lg\:grid-cols-4 {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    #modalResumoItens .grid.grid-cols-2.lg\:grid-cols-4 > div {
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
        border-radius: 8px !important;
        padding: 6px 10px !important;
        color: #0f172a !important;
    }

    #modalResumoItens .grid.grid-cols-2.lg\:grid-cols-4 span {
        color: #0f172a !important;
    }

    #modalResumoItens #kpiResumoTotalQtd {
        color: #0284c7 !important;
        font-size: 15px !important;
        font-weight: 900 !important;
    }

    #modalResumoItens #kpiResumoTotalReceita {
        color: #059669 !important;
        font-size: 15px !important;
        font-weight: 900 !important;
    }

    #modalResumoItens #kpiResumoTopProduto {
        color: #d97706 !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        white-space: normal !important;
    }

    #modalResumoItens #kpiResumoVariedade {
        color: #7c3aed !important;
        font-size: 15px !important;
        font-weight: 900 !important;
    }

    /* Tabela de Produtos Executiva */
    #modalResumoItens .hidden.sm\:block {
        display: block !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow: visible !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    #modalResumoItens table {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        table-layout: auto !important;
        border-collapse: collapse !important;
        border: 1px solid #94a3b8 !important;
        font-size: 9.5px !important;
        line-height: 1.25 !important;
        background: #ffffff !important;
    }

    #modalResumoItens thead {
        display: table-header-group !important;
    }

    #modalResumoItens thead tr {
        background-color: #f1f5f9 !important;
        color: #0f172a !important;
        border-bottom: 2px solid #64748b !important;
    }

    #modalResumoItens th {
        background-color: #f1f5f9 !important;
        color: #0f172a !important;
        font-weight: 800 !important;
        font-size: 9.5px !important;
        padding: 5px 6px !important;
        border: 1px solid #cbd5e1 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.025em !important;
        white-space: nowrap !important;
        min-width: 0 !important;
        width: auto !important;
    }

    #modalResumoItens td {
        padding: 5px 6px !important;
        border: 1px solid #cbd5e1 !important;
        color: #0f172a !important;
        font-size: 9.5px !important;
        background: #ffffff !important;
        vertical-align: middle !important;
        white-space: nowrap !important;
    }

    /* Coluna de Produto: permite quebra de linha harmoniosa se o nome for longo */
    #modalResumoItens th:nth-child(2),
    #modalResumoItens td:nth-child(2) {
        white-space: normal !important;
        min-width: 120px !important;
        max-width: 240px !important;
        word-break: break-word !important;
    }

    #modalResumoItens td:nth-child(2) span {
        white-space: normal !important;
        word-break: break-word !important;
        color: #0f172a !important;
        font-weight: 800 !important;
    }

    #modalResumoItens td:nth-child(2) img,
    #modalResumoItens td:nth-child(2) div.w-10 {
        width: 22px !important;
        height: 22px !important;
        border-radius: 4px !important;
        border: 1px solid #cbd5e1 !important;
    }

    /* Coluna de Categoria */
    #modalResumoItens td:nth-child(3) span {
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        color: #334155 !important;
        padding: 1px 4px !important;
        border-radius: 4px !important;
        font-size: 9px !important;
    }

    /* Coluna Data / Hora */
    #modalResumoItens td:nth-child(4) div {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        color: #334155 !important;
        font-size: 9px !important;
    }
    #modalResumoItens td:nth-child(4) i {
        display: none !important;
    }

    /* Coluna Tipo */
    #modalResumoItens td:nth-child(5) span {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        color: #0f172a !important;
        padding: 1px 4px !important;
        border-radius: 4px !important;
        font-size: 9px !important;
    }

    /* Coluna Preço Médio */
    #modalResumoItens td:nth-child(6) {
        color: #334155 !important;
        font-weight: 700 !important;
    }

    /* Coluna Qtd Vendida: oculta barra de progresso visual na impressão */
    #modalResumoItens td:nth-child(7) div.w-16,
    #modalResumoItens td:nth-child(7) div.w-20 {
        display: none !important;
    }
    #modalResumoItens td:nth-child(7) span {
        color: #0f172a !important;
        font-weight: 800 !important;
    }

    /* Coluna Faturamento Total */
    #modalResumoItens td:nth-child(8) {
        color: #047857 !important;
        font-weight: 900 !important;
    }

    /* Coluna Mix (%) */
    #modalResumoItens td:nth-child(9) span {
        color: #0369a1 !important;
        font-weight: 900 !important;
    }

    /* Quebra de páginas suave */
    #tbodyResumoItens tr {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    /* Rodapé do Relatório na Impressão */
    #modalResumoItens .px-3\.5.sm\:px-6.py-3.border-t {
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        padding: 6px 12px !important;
        margin-top: 10px !important;
    }

    #modalResumoItens #resumoRodapeTotais {
        color: #0f172a !important;
        font-size: 11px !important;
    }

    #modalResumoItens #lblRodapeQtd {
        color: #0284c7 !important;
        font-weight: 900 !important;
    }

    #modalResumoItens #lblRodapeReceita {
        color: #059669 !important;
        font-weight: 900 !important;
    }
}

/* ========================================================= */
/* CONFIGURAÇÕES DO SISTEMA NO MODO DIURNO (LIGHT THEME)     */
/* ========================================================= */
body.theme-light .config-card-section,
body.light-theme .config-card-section {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
}

body.theme-light .config-section-header,
body.light-theme .config-section-header {
    border-color: #f1f5f9 !important;
}

body.theme-light .config-card-section h3,
body.light-theme .config-card-section h3 {
    color: #0f172a !important;
}

body.theme-light .config-card-section label,
body.light-theme .config-card-section label {
    color: #334155 !important;
}

body.theme-light .config-card-section p,
body.light-theme .config-card-section p {
    color: #64748b !important;
}

body.theme-light .config-card-section input:not([type= checkbox]):not([type=radio]),
body.theme-light .config-card-section select,
body.theme-light .config-card-section textarea,
body.light-theme .config-card-section input:not([type=checkbox]):not([type=radio]),
body.light-theme .config-card-section select,
body.light-theme .config-card-section textarea {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.theme-light .config-card-section input:not([type=checkbox]):not([type=radio]):focus,
body.theme-light .config-card-section select:focus,
body.theme-light .config-card-section textarea:focus,
body.light-theme .config-card-section input:not([type=checkbox]):not([type=radio]):focus,
body.light-theme .config-card-section select:focus,
body.light-theme .config-card-section textarea:focus {
    background-color: #ffffff !important;
    border-color: #0284c7 !important;
}

body.theme-light .config-option-item,
body.light-theme .config-option-item {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.theme-light .config-option-item:hover,
body.light-theme .config-option-item:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

body.theme-light .config-option-item span.text-white,
body.light-theme .config-option-item span.text-white {
    color: #0f172a !important;
}

body.theme-light .config-option-item span.text-slate-400,
body.light-theme .config-option-item span.text-slate-400 {
    color: #64748b !important;
}

body.theme-light .config-option-item:has(:checked),
body.light-theme .config-option-item:has(:checked) {
    background-color: #f0f9ff !important;
    border-color: #0284c7 !important;
}

body.theme-light #configSearchInput,
body.light-theme #configSearchInput {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.theme-light #formConfiguracoesGeral [class*=bg-slate-900],
body.light-theme #formConfiguracoesGeral [class*=bg-slate-900] {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
}

body.theme-light #formConfiguracoesGeral [class*=bg-slate-950],
body.light-theme #formConfiguracoesGeral [class*=bg-slate-950] {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}