/* ===================================================================
   MIDAS BI — EXPERIÊNCIA MOBILE ULTRA-PREMIUM (APPLE + NETFLIX AESTHETIC)
   Design System: Liquid Glass (visionOS / iOS 18)
   Paleta: Branco Puro (#FFF), Verde Apple (#30D158), Cinzas Apple & Toques Dourados (#F5D061)
   Exclusivo para Smartphones (<= 768px)
   GARANTIA: Zero impacto na visualização de PC / Desktop (> 768px)
   =================================================================== */

@media (max-width: 768px), (max-height: 550px) and (orientation: landscape), (max-width: 1024px) and (orientation: landscape) and (pointer: coarse) {
    :root {
        --safe-top: env(safe-area-inset-top, 0px);
        --safe-bottom: env(safe-area-inset-bottom, 0px);
        --bottom-nav-height: 64px;

        /* Paleta Apple Human Interface Guidelines */
        --apple-bg: #06090E;
        --apple-white: #FFFFFF;
        --apple-gray-1: #8E8E93;
        --apple-gray-2: #636366;
        --apple-gray-3: #48484A;
        --apple-gray-4: #3A3A3C;
        --apple-gray-5: #2C2C2E;
        --apple-gray-6: #1C1C1E;
        
        /* Acentos de Destaque */
        --apple-green: #30D158;
        --apple-green-glow: rgba(48, 209, 88, 0.35);
        --apple-green-subtle: rgba(48, 209, 88, 0.12);
        
        --champagne-gold: #F5D061;
        --gold-glow: rgba(245, 208, 97, 0.22);
        --gold-subtle: rgba(245, 208, 97, 0.10);
    }

    /* 1. Base da Tela Mobile & Iluminação Ambiente para Liquid Glass */
    html, body {
        touch-action: pan-x pan-y pinch-zoom;
    }

    body {
        background: #06090E !important;
        position: relative !important;
        min-height: 100vh !important;
        padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 24px) !important;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
        font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif !important;
        -webkit-font-smoothing: antialiased;
    }

    body.is-login-screen {
        padding-bottom: 0 !important;
    }

    /* Malha de Luz Ambiente Fluida para Refração do Liquid Glass (Apple visionOS) */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 14% 10%, rgba(48, 209, 88, 0.16) 0%, transparent 42%),
            radial-gradient(circle at 86% 18%, rgba(245, 208, 97, 0.12) 0%, transparent 40%),
            radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.07) 0%, transparent 48%),
            radial-gradient(circle at 18% 85%, rgba(48, 209, 88, 0.13) 0%, transparent 45%);
        pointer-events: none;
        z-index: 0;
    }

    /* Oculta a sidebar desktop no celular em qualquer orientação */
    .sidebar,
    .sidebar-overlay,
    body.mobile-mode .sidebar,
    body.mobile-mode .sidebar-overlay {
        display: none !important;
    }

    .main-content,
    body.mobile-mode .main-content {
        margin-left: 0 !important;
        position: relative;
        z-index: 1;
        padding: calc(var(--safe-top) + 12px) 14px calc(var(--bottom-nav-height) + var(--safe-bottom) + 54px) 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        -webkit-overflow-scrolling: touch;
    }

    .tab-content {
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* Margem de rolagem para evitar que elementos fiquem sob a Dynamic Island / barra de status */
    .content-card,
    .apple-donut-card,
    .store-bi-card,
    #biProductsCard {
        scroll-margin-top: calc(var(--safe-top) + 24px) !important;
    }

    /* Previne auto-zoom no Safari iOS em inputs */
    input, select, textarea {
        font-size: 16px !important;
    }

    /* 2. Topbar Mobile Estilo App Nativo Apple (Liquid Glass) */
    .topbar {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
        backdrop-filter: blur(32px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
        border: 1px solid rgba(255, 255, 255, 0.10) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
        border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
        border-radius: 22px !important;
        padding: 13px 14px !important;
        box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.22), 0 16px 36px -10px rgba(0, 0, 0, 0.7) !important;
    }

    .topbar-left {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .btn-menu-toggle {
        display: none !important;
    }

    .mobile-header-brand {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-header-brand {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .mobile-header-logo {
        height: 48px;
        max-height: 52px;
        width: auto;
        object-fit: contain;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    }

    .topbar-left h1 {
        font-size: 16px !important;
        font-weight: 800 !important;
        letter-spacing: -0.4px !important;
        color: #FFFFFF !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }

    .topbar-left .subtitle {
        font-size: 11px !important;
        color: var(--apple-gray-1) !important;
        margin: 1px 0 0 0 !important;
    }

    /* No celular, ao abrir o BI de uma loja, oculta o título do topo para não duplicar com o card da loja */
    body.in-store-bi .topbar-title-group {
        display: none !important;
    }

    /* No celular, ao abrir o BI de uma loja, o botão Sugestões do Midas aparece no topo */
    body.in-store-bi #btnSugestoesMidasHeader {
        display: inline-flex !important;
        padding: 5px 12px !important;
        font-size: 11.5px !important;
        gap: 5px !important;
        margin-left: auto !important;
        margin-right: 6px !important;
    }

    body:not(.in-store-bi) #btnSugestoesMidasHeader {
        display: none !important;
    }

    /* No celular, o botão fica exclusivamente no cabeçalho fixo (posição do print) */
    #btnSugestoesMidasDesktop {
        display: none !important;
    }

    /* Modal Midas Responsivo no Mobile */
    .modal-backdrop-midas {
        padding: 12px !important;
    }

    .modal-box-midas {
        max-width: 96% !important;
        max-height: 88vh !important;
        border-radius: 16px !important;
    }

    .modal-midas-header {
        padding: 16px 16px 12px !important;
    }

    .modal-midas-title {
        font-size: 16px !important;
    }

    .modal-midas-body {
        padding: 14px 16px 20px !important;
    }

    .card-midas-sugestao {
        padding: 14px 14px !important;
    }

    .card-midas-h4 {
        font-size: 14.5px !important;
    }

    .card-midas-desc {
        font-size: 12.5px !important;
    }

    .dica-box-content {
        font-size: 12.5px !important;
    }

    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .btn-mobile-refresh {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
        color: #FFFFFF !important;
        width: 38px;
        height: 38px;
        border-radius: 50% !important;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 4px 14px rgba(0, 0, 0, 0.4);
    }

    .btn-mobile-refresh:active {
        transform: scale(0.92);
        background: var(--apple-green-subtle) !important;
        border-color: var(--apple-green) !important;
        color: var(--apple-green) !important;
    }

    .btn-theme-toggle {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
        color: #F5D061 !important;
        width: 38px;
        height: 38px;
        border-radius: 50% !important;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 4px 14px rgba(0, 0, 0, 0.4);
    }

    .btn-theme-toggle:active {
        transform: scale(0.92);
        background: rgba(245, 208, 97, 0.2) !important;
        border-color: #F5D061 !important;
    }

    /* 3. Grade de Períodos Touch (Todas as 8 datas 100% visíveis sem rolar!) */
    .topbar-actions {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .period-buttons {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 5px !important;
        width: 100% !important;
        padding: 2px 0 !important;
        overflow: visible !important;
    }

    .btn-period {
        flex: unset !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 7px 1px !important;
        font-size: clamp(9px, 2.4vw, 11px) !important;
        letter-spacing: -0.2px !important;
        font-weight: 700 !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.09) !important;
        color: var(--apple-gray-1) !important;
        transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .btn-period:active {
        transform: scale(0.94) !important;
    }

    .btn-period.active {
        background: var(--apple-green) !important;
        color: #000000 !important;
        font-weight: 800 !important;
        border-color: var(--apple-green) !important;
        box-shadow: 0 0 14px var(--apple-green-glow) !important;
    }

    /* Botão Personalizar Dourado Brilhante no Mobile */
    .btn-period[data-dias="custom"]:not(.active),
    #btnPeriodCustomClient:not(.active) {
        border: 1px solid rgba(245, 158, 11, 0.75) !important;
        background: rgba(245, 158, 11, 0.08) !important;
        color: #FDE68A !important;
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.32), inset 0 0 4px rgba(245, 158, 11, 0.15) !important;
    }

    /* Modal de Período Personalizado */
    #customPeriodBoxClient {
        margin: 0 0 16px 0 !important;
        background: linear-gradient(135deg, rgba(28, 35, 48, 0.95) 0%, rgba(14, 18, 26, 0.98) 100%) !important;
        backdrop-filter: blur(30px) !important;
        -webkit-backdrop-filter: blur(30px) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 20px !important;
        padding: 16px !important;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7) !important;
    }

    .custom-period-shift-info {
        display: none !important;
    }

    /* 4. Grid de KPIs na Visão Geral (Hero Card + 3 Sub-Cards) */
    #overviewSection .kpi-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 18px !important;
    }

    /* Grid de KPIs no BI da Loja (Hero Card + 2 Sub-Cards Perfeitamente Balanceados 50%/50%) */
    #storeBiSection .kpi-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 18px !important;
    }

    /* O Card de Faturamento vira HERO CARD com estilo visionOS Liquid Glass */
    #overviewSection .kpi-grid .kpi-card:nth-child(2),
    #storeBiSection .kpi-grid .kpi-card:nth-child(1) {
        grid-column: 1 / -1 !important;
        order: -1 !important;
        padding: 22px 18px !important;
        border-radius: 24px !important;
        background: linear-gradient(135deg, rgba(28, 35, 48, 0.72) 0%, rgba(14, 18, 26, 0.85) 100%) !important;
        backdrop-filter: blur(35px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(35px) saturate(200%) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-top: 1.5px solid rgba(245, 208, 97, 0.45) !important;
        border-left: 1px solid rgba(255, 255, 255, 0.22) !important;
        box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.3), 
                    0 20px 45px -10px rgba(0, 0, 0, 0.8), 
                    0 0 35px -8px var(--gold-glow) !important;
        position: relative !important;
        overflow: hidden !important;
        text-align: left !important;
    }

    /* Brilho sutil dourado no topo do Hero Card de Faturamento */
    #overviewSection .kpi-grid .kpi-card:nth-child(2)::before,
    #storeBiSection .kpi-grid .kpi-card:nth-child(1)::before {
        content: '';
        position: absolute;
        top: -40px;
        right: -40px;
        width: 150px;
        height: 150px;
        background: radial-gradient(circle, rgba(245, 208, 97, 0.18) 0%, transparent 70%);
        pointer-events: none;
    }

    /* Oculta ícones nos cards de KPI no mobile */
    .kpi-card .kpi-icon {
        display: none !important;
    }

    /* Labels dos Hero Cards de Faturamento */
    #overviewSection .kpi-grid .kpi-card:nth-child(2) .kpi-label,
    #bi-subtab-vendas .kpi-grid .kpi-card:nth-child(1) .kpi-label {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-bottom: 6px !important;
        font-size: 0 !important;
    }

    #overviewSection .kpi-grid .kpi-card:nth-child(2) .kpi-label::after {
        content: 'FATURAMENTO CONSOLIDADO';
        font-size: 13px !important;
        font-weight: 800 !important;
        color: var(--champagne-gold) !important;
        letter-spacing: 0.8px !important;
        text-transform: uppercase !important;
    }

    #bi-subtab-vendas .kpi-grid .kpi-card:nth-child(1) .kpi-label::after {
        content: 'FATURAMENTO DA LOJA';
        font-size: 13px !important;
        font-weight: 800 !important;
        color: var(--champagne-gold) !important;
        letter-spacing: 0.8px !important;
        text-transform: uppercase !important;
    }

    #overviewSection .kpi-grid .kpi-card:nth-child(2) .kpi-label::before,
    #bi-subtab-vendas .kpi-grid .kpi-card:nth-child(1) .kpi-label::before {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--champagne-gold);
        box-shadow: 0 0 10px var(--champagne-gold);
        margin-right: 5px;
    }

    /* Valor Gigante do Faturamento (Zero Truncamento!) */
    #overviewSection .kpi-grid .kpi-card:nth-child(2) .kpi-value,
    #bi-subtab-vendas .kpi-grid .kpi-card:nth-child(1) .kpi-value {
        font-size: clamp(26px, 7.5vw, 36px) !important;
        font-weight: 800 !important;
        color: #FFFFFF !important;
        letter-spacing: -0.7px !important;
        line-height: 1.15 !important;
        font-variant-numeric: tabular-nums !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow: visible !important;
        text-overflow: clip !important;
        margin: 0 !important;
    }

    /* Sub-Cards de KPI com Liquid Glass */
    .kpi-card {
        padding: 14px 10px !important;
        border-radius: 18px !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
        backdrop-filter: blur(28px) saturate(190%) !important;
        -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
        border: 1px solid rgba(255, 255, 255, 0.10) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.32) !important;
        border-left: 1px solid rgba(255, 255, 255, 0.16) !important;
        box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2), 0 12px 28px rgba(0, 0, 0, 0.6) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        text-align: center !important;
        overflow: hidden !important;
    }

    .kpi-card .kpi-info {
        width: 100% !important;
    }

    .kpi-label {
        display: block !important;
        margin-bottom: 4px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        line-height: 1.2 !important;
    }

    /* Anti-Truncamento das Labels dos Sub-Cards - Fontes Maiores */
    #overviewSection .kpi-grid .kpi-card:nth-child(1) .kpi-label { font-size: 0 !important; }
    #overviewSection .kpi-grid .kpi-card:nth-child(1) .kpi-label::after {
        content: 'TOTAL DE LOJAS';
        font-size: 11px !important;
        font-weight: 700 !important;
        color: var(--apple-gray-1) !important;
        letter-spacing: 0.4px !important;
    }

    #overviewSection .kpi-grid .kpi-card:nth-child(3) .kpi-label { font-size: 0 !important; }
    #overviewSection .kpi-grid .kpi-card:nth-child(3) .kpi-label::after {
        content: 'VENDAS';
        font-size: 12px !important;
        font-weight: 700 !important;
        color: var(--apple-green) !important;
        letter-spacing: 0.5px !important;
    }

    #overviewSection .kpi-grid .kpi-card:nth-child(4) .kpi-label { font-size: 0 !important; }
    #overviewSection .kpi-grid .kpi-card:nth-child(4) .kpi-label::after {
        content: 'TICKET MÉDIO';
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #A78BFA !important;
        letter-spacing: 0.3px !important;
    }

    #overviewSection .kpi-grid.has-pessoas .kpi-card:nth-child(4) .kpi-label::after,
    #overviewKpiGrid.has-pessoas #cardGlobalTicket .kpi-label::after {
        content: 'PESSOAS' !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #38BDF8 !important;
        letter-spacing: 0.5px !important;
    }

    #bi-subtab-vendas .kpi-grid .kpi-card:nth-child(2) .kpi-label { font-size: 0 !important; }
    #bi-subtab-vendas .kpi-grid .kpi-card:nth-child(2) .kpi-label::after {
        content: 'VENDAS';
        font-size: 12px !important;
        font-weight: 700 !important;
        color: var(--apple-green) !important;
        letter-spacing: 0.5px !important;
    }

    #bi-subtab-vendas .kpi-grid .kpi-card:nth-child(3) .kpi-label { font-size: 0 !important; }
    #bi-subtab-vendas .kpi-grid .kpi-card:nth-child(3) .kpi-label::after {
        content: 'TICKET MÉDIO';
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #A78BFA !important;
        letter-spacing: 0.3px !important;
    }

    #bi-subtab-vendas .kpi-grid.has-pessoas .kpi-card:nth-child(3) .kpi-label::after {
        content: 'PESSOAS' !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #38BDF8 !important;
        letter-spacing: 0.5px !important;
    }

    #bi-subtab-vendas .kpi-grid.has-pessoas #biTicketMedio {
        color: #38BDF8 !important;
    }

    /* Cards de Auditoria / Cancelamentos no Mobile (Zero confusão com faturamento!) */
    #bi-subtab-cancelamentos .kpi-grid .kpi-card:nth-child(1) .kpi-label {
        font-size: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        margin-bottom: 4px !important;
    }
    #bi-subtab-cancelamentos .kpi-grid .kpi-card:nth-child(1) .kpi-label::after {
        content: 'TOTAL CANCELADO';
        font-size: 11px !important;
        font-weight: 800 !important;
        color: #ff4757 !important;
        letter-spacing: 0.8px !important;
        text-transform: uppercase !important;
    }
    #bi-subtab-cancelamentos .kpi-grid .kpi-card:nth-child(1) .kpi-value {
        font-size: clamp(20px, 6vw, 26px) !important;
        font-weight: 800 !important;
        color: #ff4757 !important;
    }

    #bi-subtab-cancelamentos .kpi-grid .kpi-card:nth-child(2) .kpi-label {
        font-size: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        margin-bottom: 4px !important;
    }
    #bi-subtab-cancelamentos .kpi-grid .kpi-card:nth-child(2) .kpi-label::after {
        content: 'ITENS CANCELADOS';
        font-size: 10px !important;
        font-weight: 700 !important;
        color: var(--apple-gray-1) !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
    }

    /* Oculta a barra intermediária de sub-abas horizontal no mobile (navegação via rodapé nativo) */
    .bi-subtabs-nav {
        display: none !important;
    }

    /* Na tela inicial mobile, oculta o card de lista redundante de lojas (fica apenas Donut/Pizza e Consolidado) */
    #overviewStoresCard {
        display: none !important;
    }

    .kpi-value {
        font-size: clamp(17px, 5vw, 22px) !important;
        font-weight: 800 !important;
        color: #FFFFFF !important;
        letter-spacing: -0.4px !important;
        line-height: 1.2 !important;
        font-variant-numeric: tabular-nums !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 !important;
    }

    /* Cores nos Valores dos Sub-Cards */
    #globalVendas, #biTotalNotas {
        color: var(--apple-green) !important;
    }

    #globalTicket, #biTicketMedio {
        color: #A78BFA !important;
    }

    #overviewSection .kpi-grid.has-pessoas #globalTicket,
    #overviewKpiGrid.has-pessoas #globalTicket,
    #bi-subtab-vendas .kpi-grid.has-pessoas #biTicketMedio,
    .has-pessoas #globalTicket,
    .has-pessoas #biTicketMedio {
        color: #38BDF8 !important;
    }

    #kpiTotalLojas {
        color: #FFFFFF !important;
    }

    /* 5. Painéis de Conteúdo Liquid Glass */
    .overview-table-desktop {
        display: none !important;
    }

    .content-card {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
        backdrop-filter: blur(32px) saturate(190%) !important;
        -webkit-backdrop-filter: blur(32px) saturate(190%) !important;
        border: 1px solid rgba(255, 255, 255, 0.10) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.32) !important;
        border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
        border-radius: 22px !important;
        padding: 16px 14px !important;
        box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2), 0 16px 40px rgba(0, 0, 0, 0.65) !important;
        margin-bottom: 18px !important;
    }

    .card-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 14px !important;
    }

    .card-header h3, .card-header h4 {
        font-size: 16px !important;
        font-weight: 800 !important;
        letter-spacing: -0.3px !important;
        color: #FFFFFF !important;
        margin: 0 !important;
    }

    .card-desc {
        font-size: 11px !important;
        color: var(--apple-gray-1) !important;
        margin: 2px 0 0 0 !important;
    }

    .badge-live {
        background: var(--apple-green-subtle) !important;
        border: 1px solid rgba(48, 209, 88, 0.4) !important;
        color: var(--apple-green) !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
        padding: 3px 8px !important;
        border-radius: 9999px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
    }

    .badge-live::before {
        content: '';
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--apple-green);
        box-shadow: 0 0 6px var(--apple-green);
    }

    .mobile-store-cards-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* Card Individual de Loja (Apple Wallet / Netflix Glass) */
    .mobile-store-card {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
        backdrop-filter: blur(28px) saturate(190%) !important;
        -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
        border: 1px solid rgba(255, 255, 255, 0.10) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.32) !important;
        border-left: 1px solid rgba(255, 255, 255, 0.16) !important;
        border-radius: 20px !important;
        padding: 16px 16px !important;
        box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2), 0 14px 32px rgba(0, 0, 0, 0.65) !important;
        transition: transform 0.15s ease, border-color 0.15s ease !important;
        cursor: pointer !important;
    }

    .mobile-store-card:active {
        transform: scale(0.98) !important;
        border-color: rgba(48, 209, 88, 0.5) !important;
    }

    .mobile-store-card-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        margin-bottom: 12px !important;
    }

    .mobile-store-card-title {
        font-size: 17.5px !important;
        font-weight: 800 !important;
        color: #FFFFFF !important;
        letter-spacing: -0.3px !important;
        line-height: 1.25 !important;
    }

    .mobile-store-card-sub {
        font-size: 12.5px !important;
        color: var(--apple-gray-1) !important;
        margin-top: 3px !important;
        font-weight: 500 !important;
    }

    .badge-pro {
        background: var(--gold-subtle) !important;
        border: 1px solid rgba(245, 208, 97, 0.45) !important;
        color: var(--champagne-gold) !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        padding: 4px 9px !important;
        border-radius: 9999px !important;
        letter-spacing: 0.5px !important;
    }

    .badge-basic {
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: var(--apple-gray-1) !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        padding: 4px 9px !important;
        border-radius: 9999px !important;
    }

    .mobile-store-metrics {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        background: rgba(0, 0, 0, 0.25) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-radius: 16px !important;
        padding: 12px 10px !important;
        margin-bottom: 12px !important;
        text-align: center !important;
    }

    .mobile-store-metric-item small {
        display: block !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        color: var(--apple-gray-1) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 4px !important;
    }

    .mobile-store-metric-item strong {
        font-size: clamp(15px, 4vw, 17.5px) !important;
        font-weight: 800 !important;
        font-variant-numeric: tabular-nums !important;
        letter-spacing: -0.4px !important;
        white-space: nowrap !important;
    }

    .mobile-store-btn-open {
        width: 100% !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
        color: #FFFFFF !important;
        padding: 11px 16px !important;
        border-radius: 14px !important;
        font-size: 14.5px !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        cursor: pointer !important;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }

    .mobile-store-btn-open:active {
        background: var(--apple-green-subtle) !important;
        border-color: var(--apple-green) !important;
        color: var(--apple-green) !important;
        transform: scale(0.97) !important;
    }

        /* 5b. Bloco Meta Diária & Recorde Histórico */
    .store-performance-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 18px !important;
    }

    .store-performance-grid.single-card {
        grid-template-columns: 1fr !important;
    }

    .perf-card.is-full-width {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 16px 14px !important;
    }

    .perf-card.is-full-width .perf-card-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 6px !important;
    }

    .perf-card.is-full-width .perf-card-body {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .perf-card.is-full-width .perf-value {
        font-size: clamp(22px, 5.8vw, 28px) !important;
        font-weight: 800 !important;
        text-align: center !important;
        margin-bottom: 2px !important;
        width: 100% !important;
        color: var(--champagne-gold) !important;
    }

    .perf-card.is-full-width .perf-sub {
        font-size: 13px !important;
        color: var(--apple-gray-1) !important;
        text-align: center !important;
        margin-bottom: 6px !important;
        width: 100% !important;
    }

    .perf-card.is-full-width .perf-progress-bg {
        display: none !important;
    }

    .perf-card.is-full-width .perf-footer {
        font-size: 11.5px !important;
        color: var(--apple-gray-1) !important;
        text-align: center !important;
        width: 100% !important;
    }

    .perf-card {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
        backdrop-filter: blur(28px) saturate(190%) !important;
        -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
        border: 1px solid rgba(255, 255, 255, 0.10) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.30) !important;
        border-radius: 18px !important;
        padding: 14px 12px !important;
        box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2), 0 12px 28px rgba(0, 0, 0, 0.6) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        cursor: pointer !important;
        transition: transform 0.15s ease, border-color 0.15s ease !important;
    }

    .perf-card:active {
        transform: scale(0.98) !important;
    }

    .perf-card.meta-card:active {
        border-color: var(--apple-green) !important;
    }

    .perf-card.record-card {
        border-top: 1.5px solid rgba(245, 208, 97, 0.45) !important;
        box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2), 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 25px -8px var(--gold-glow) !important;
    }

    .perf-card-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 8px !important;
    }

    .perf-card-tag {
        font-size: 10px !important;
        font-weight: 700 !important;
        color: var(--apple-gray-1) !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
    }

    .perf-card-tag.gold {
        color: var(--champagne-gold) !important;
    }

    .btn-perf-action {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-radius: 9999px !important;
        color: var(--apple-gray-1) !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        padding: 2px 7px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 3px !important;
        cursor: pointer !important;
    }

    .perf-badge-gold {
        background: var(--gold-subtle) !important;
        border: 1px solid rgba(245, 208, 97, 0.3) !important;
        border-radius: 9999px !important;
        color: var(--champagne-gold) !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        padding: 2px 7px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 3px !important;
    }

    .perf-value {
        font-size: clamp(15px, 4.4vw, 19px) !important;
        font-weight: 800 !important;
        color: #FFFFFF !important;
        letter-spacing: -0.4px !important;
        line-height: 1.2 !important;
        font-variant-numeric: tabular-nums !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin-bottom: 2px !important;
    }

    .perf-value.gold {
        color: var(--champagne-gold) !important;
    }

    .perf-sub {
        font-size: 11px !important;
        color: var(--apple-gray-1) !important;
        margin-bottom: 8px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .perf-progress-bg {
        height: 5px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border-radius: 5px !important;
        overflow: hidden !important;
        margin-bottom: 8px !important;
    }

    .perf-progress-fill {
        height: 100% !important;
        background: var(--apple-green) !important;
        border-radius: 5px !important;
        box-shadow: 0 0 10px var(--apple-green-glow) !important;
        transition: width 0.4s ease !important;
    }

    .perf-footer {
        font-size: 10px !important;
        font-weight: 600 !important;
        color: var(--apple-gray-1) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* 6. Header e Controles do BI da Loja */
    .store-bi-actions-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin-bottom: 12px !important;
    }

    .store-bi-refresh-group {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .store-bi-title-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }

    .store-bi-title-group h2 {
        font-size: 18px !important;
        font-weight: 800 !important;
        letter-spacing: -0.3px !important;
        color: #FFFFFF !important;
        line-height: 1.2 !important;
    }

    .btn-apple-back {
        display: inline-flex;
        align-items: center !important;
        gap: 6px !important;
        background: linear-gradient(135deg, #FF9F0A 0%, #EA580C 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        color: #FFFFFF !important;
        padding: 7px 16px !important;
        border-radius: 9999px !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        cursor: pointer !important;
        transition: all 0.15s ease !important;
        box-shadow: 0 4px 15px rgba(255, 159, 10, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
    }

    .btn-apple-back svg {
        stroke-width: 2.8 !important;
        stroke: #FFFFFF !important;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)) !important;
    }

    .btn-apple-back:active {
        transform: scale(0.94) !important;
        box-shadow: 0 2px 8px rgba(255, 159, 10, 0.6) !important;
    }

    .btn-apple-refresh {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        background: linear-gradient(135deg, #0A84FF 0%, #0066CC 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        color: #FFFFFF !important;
        padding: 6px 14px !important;
        border-radius: 9999px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        transition: all 0.15s ease !important;
        box-shadow: 0 4px 15px rgba(10, 132, 255, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
    }

    .btn-apple-refresh svg {
        stroke-width: 2.5 !important;
        stroke: #FFFFFF !important;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)) !important;
    }

    .btn-apple-refresh:active {
        transform: scale(0.94) !important;
        box-shadow: 0 2px 8px rgba(10, 132, 255, 0.6) !important;
    }

    /* Barra de Canais de Operação (Liquid Glass) */
    #biChannelsContainer {
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
        border-radius: 16px !important;
        padding: 12px 14px !important;
        margin-top: 14px !important;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
    }

    #biChannelsButtons {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        width: 100% !important;
        margin-top: 8px !important;
    }

    .channel-btn {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 10px 14px !important;
        border-radius: 12px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        color: var(--apple-gray-1) !important;
        transition: all 0.15s ease !important;
        cursor: pointer !important;
    }

    .channel-btn:active {
        transform: scale(0.98) !important;
    }

    .channel-btn.active,
    .channel-btn.btn-primary {
        background: rgba(48, 209, 88, 0.15) !important;
        border: 1px solid var(--apple-green) !important;
        color: #FFFFFF !important;
        box-shadow: 0 0 14px var(--apple-green-subtle) !important;
    }

    .channel-btn strong,
    .channel-val {
        color: #FFFFFF !important;
        font-variant-numeric: tabular-nums !important;
        font-weight: 800 !important;
    }

    /* Subabas do BI na Loja: Ocultas no mobile (navegacao 100% via Bottom Nav nativo) */
    .bi-subtabs-nav,
    .bi-subtabs-bar {
        display: none !important;
    }

    .bi-subtabs-nav::-webkit-scrollbar,
    .bi-subtabs-bar::-webkit-scrollbar {
        display: none !important;
    }

    .bi-subtab-btn {
        flex: 0 0 auto !important;
        min-width: auto !important;
        padding: 8px 14px !important;
        font-size: 12.5px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        color: #94A3B8 !important;
        white-space: nowrap !important;
        transition: all 0.15s ease !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .bi-subtab-btn.active {
        background: linear-gradient(135deg, #76D800 0%, #8BE50A 50%, #58A700 100%) !important;
        color: #06090E !important;
        font-weight: 800 !important;
        border: 1px solid #9EF01A !important;
        box-shadow: 0 2px 14px rgba(118, 216, 0, 0.35) !important;
    }

    /* Ranking e Barras de Progresso no Mobile */
    .ranking-container {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .ranking-container[style*="display: none"],
    .ranking-container.is-collapsed {
        display: none !important;
    }

    .ranking-container:not([style*="display: none"]):not(.is-collapsed) {
        display: flex !important;
    }

    .ranking-row {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px 12px !important;
        background: rgba(0, 0, 0, 0.22) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-radius: 14px !important;
    }

    .ranking-rank {
        font-size: 11px !important;
        font-weight: 800 !important;
        color: var(--champagne-gold) !important;
        min-width: 22px !important;
    }

    .ranking-info {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .ranking-name {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #FFFFFF !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin-bottom: 4px !important;
    }

    .ranking-bar-bg {
        height: 4px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border-radius: 4px !important;
        overflow: hidden !important;
    }

    .ranking-bar-fill {
        height: 100% !important;
        background: var(--apple-green) !important;
        border-radius: 4px !important;
    }

    .ranking-val {
        font-size: 12px !important;
        font-weight: 800 !important;
        color: #FFFFFF !important;
        font-variant-numeric: tabular-nums !important;
        white-space: nowrap !important;
    }

    /* 7. Bottom Navigation Bar Nativa Apple (SF Symbols Style) */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: calc(var(--bottom-nav-height) + var(--safe-bottom)) !important;
        padding-bottom: var(--safe-bottom) !important;
        background: rgba(8, 11, 18, 0.82) !important;
        backdrop-filter: blur(35px) saturate(210%) !important;
        -webkit-backdrop-filter: blur(35px) saturate(210%) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        z-index: 9999 !important;
        box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.75) !important;
        justify-content: space-around !important;
        align-items: center !important;
    }

    /* Oculta completamente a navegação inferior na tela de login ou bloqueio */
    body.is-login-screen .mobile-bottom-nav,
    body:not(.is-logged-in) .mobile-bottom-nav,
    #loginScreen:not([style*="display: none"]) ~ .mobile-bottom-nav,
    #loginScreen:not([style*="display: none"]) ~ .mobile-bottom-sheet,
    #loginScreen:not([style*="display: none"]) ~ .mobile-sheet-overlay,
    #trialExpiredScreen:not([style*="display: none"]) ~ .mobile-bottom-nav {
        display: none !important;
    }

    .bottom-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        color: var(--apple-gray-1) !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        letter-spacing: 0.2px !important;
        gap: 4px !important;
        padding: 6px 12px !important;
        cursor: pointer !important;
        transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
        text-decoration: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .bottom-nav-item:active {
        transform: scale(0.92);
    }

    .bottom-nav-item .nav-svg {
        width: 22px;
        height: 22px;
        stroke: currentColor;
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.2s ease !important;
    }

    .bottom-nav-item.active {
        color: var(--apple-green) !important;
    }

    .bottom-nav-item.active .nav-svg {
        transform: translateY(-2px) scale(1.1) !important;
        stroke: var(--apple-green) !important;
        filter: drop-shadow(0 0 8px var(--apple-green-glow)) !important;
    }

    /* 8. Bottom Sheet de Lojas com Liquid Glass */
    .mobile-sheet-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        z-index: 10000;
        display: none;
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .mobile-sheet-overlay.open {
        display: block;
        opacity: 1;
    }

    .mobile-bottom-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 80vh;
        background: rgba(14, 18, 28, 0.90) !important;
        backdrop-filter: blur(35px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(35px) saturate(200%) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
        border-radius: 28px 28px 0 0;
        padding: 14px 20px calc(var(--safe-bottom) + 20px) 20px;
        z-index: 10001;
        box-shadow: 0 -25px 50px rgba(0, 0, 0, 0.9);
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
    }

    .mobile-bottom-sheet.open {
        transform: translateY(0);
    }

    .mobile-sheet-handle {
        width: 40px;
        height: 5px;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 5px;
        margin: 0 auto 16px auto;
    }

    .mobile-sheet-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 14px;
    }

    .mobile-sheet-header h3 {
        font-size: 17px;
        font-weight: 800;
        color: #FFFFFF;
        margin: 0;
        letter-spacing: -0.3px;
    }

    .mobile-sheet-list {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-sheet-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-top: 1px solid rgba(255, 255, 255, 0.20);
        border-radius: 16px;
        color: #FFFFFF;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s ease;
    }

    .mobile-sheet-item:active {
        background: var(--apple-green-subtle);
        border-color: var(--apple-green);
    }

    .mobile-sheet-item.active {
        background: var(--apple-green-subtle);
        border-color: var(--apple-green);
        color: var(--apple-green);
    }

    /* ===================================================================
       BOTÃO SAIR EXCLUSIVO MOBILE (Página de Início)
       =================================================================== */
    .mobile-logout-wrapper {
        display: block !important;
        margin: 24px 0 32px 0 !important;
        padding: 0 4px !important;
    }

    .btn-mobile-logout {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 16px 18px !important;
        background: rgba(28, 28, 30, 0.72) !important;
        border: 1px solid rgba(255, 255, 255, 0.10) !important;
        border-radius: 18px !important;
        color: var(--apple-white, #FFFFFF) !important;
        cursor: pointer !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3) !important;
        transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
        -webkit-tap-highlight-color: transparent !important;
        box-sizing: border-box !important;
    }

    .btn-mobile-logout:active {
        transform: scale(0.98) !important;
        background: rgba(239, 68, 68, 0.14) !important;
        border-color: rgba(239, 68, 68, 0.45) !important;
    }

    .btn-mobile-logout-content {
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
        text-align: left !important;
    }

    .btn-mobile-logout-icon {
        font-size: 20px !important;
        width: 42px !important;
        height: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(239, 68, 68, 0.12) !important;
        border: 1px solid rgba(239, 68, 68, 0.25) !important;
        border-radius: 12px !important;
        flex-shrink: 0 !important;
    }

    .btn-mobile-logout-text {
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
    }

    .btn-mobile-logout-title {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #F87171 !important;
        letter-spacing: -0.2px !important;
    }

    .btn-mobile-logout-sub {
        font-size: 12px !important;
        color: var(--apple-gray-1, #8E8E93) !important;
        font-weight: 400 !important;
    }

    .btn-mobile-logout-arrow {
        color: var(--apple-gray-2, #636366) !important;
        stroke: var(--apple-gray-2, #636366) !important;
        flex-shrink: 0 !important;
    }
}

/* ===================================================================
   DESKTOP (> 768px): OCULTA 100% DE ELEMENTOS MOBILE (ZERO REGRESSÃO)
   =================================================================== */
.mobile-logout-wrapper {
    display: none;
}

@media (min-width: 769px) and (min-height: 551px) and (hover: hover), (min-width: 1025px) and (hover: hover) {
    body:not(.mobile-mode) .mobile-bottom-nav,
    body:not(.mobile-mode) .mobile-bottom-sheet,
    body:not(.mobile-mode) .mobile-sheet-overlay,
    body:not(.mobile-mode) .mobile-store-cards-container,
    body:not(.mobile-mode) .mobile-logout-wrapper,
    body:not(.mobile-mode) .btn-mobile-refresh,
    body:not(.mobile-mode) .mobile-header-brand,
    body:not(.mobile-mode) .mobile-header-actions {
        display: none !important;
    }

    body:not(.mobile-mode) .overview-table-desktop {
        display: block !important;
    }

    body:not(.mobile-mode) .topbar-title-group {
        order: 1;
    }

    body:not(.mobile-mode) #btnSugestoesMidasHeader {
        display: none !important;
    }

    /* GARANTIA DE ZERO REGRESSÃO: Valores e rótulos de KPI no Desktop com contraste perfeito (#FFFFFF) */
    .kpi-value,
    #globalFaturamento,
    #kpiTotalLojas,
    #globalVendas,
    #globalTicket,
    #biFaturamento,
    #biTotalNotas,
    #biTicketMedio {
        color: #FFFFFF !important;
    }

    .kpi-label {
        color: #8E8E93 !important;
    }
}


/* Estilos Desktop para Bloco de Performance */
.store-performance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.store-performance-grid.single-card {
    grid-template-columns: 1fr;
}
.perf-card.is-full-width {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.perf-card.is-full-width .perf-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 6px;
}
.perf-card.is-full-width .perf-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}
.perf-card.is-full-width .perf-value {
    text-align: center;
    width: 100%;
}
.perf-card.is-full-width .perf-sub {
    text-align: center;
    width: 100%;
}
.perf-card.is-full-width .perf-footer {
    text-align: center;
    width: 100%;
}
.perf-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.perf-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.perf-card-tag {
    font-size: 11px;
    font-weight: 700;
    color: #8E8E93;
    text-transform: uppercase;
}
.perf-card-tag.gold {
    color: #F5D061;
}
.btn-perf-action {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    color: #8E8E93;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    cursor: pointer;
}
.perf-badge-gold {
    background: rgba(245, 208, 97, 0.1);
    border: 1px solid rgba(245, 208, 97, 0.3);
    border-radius: 9999px;
    color: #F5D061;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
}
.perf-value {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
}
.perf-value.gold {
    color: #F5D061;
}
.perf-sub {
    font-size: 12px;
    color: #8E8E93;
    margin-bottom: 8px;
}
.perf-progress-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}
.perf-progress-fill {
    height: 100%;
    background: #30D158;
    border-radius: 6px;
}
.perf-footer {
    font-size: 11px;
    color: #8E8E93;
}


/* ESTILOS DE GATING (BASIC vs PRO) PARA META E RECORDE */
.perf-card.is-locked {
    cursor: pointer;
    border-color: rgba(255, 255, 255, 0.08);
}
.perf-card.is-locked:active {
    transform: scale(0.98);
}
.perf-lock-tag {
    font-size: 9.5px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}
.perf-locked-val {
    color: rgba(255, 255, 255, 0.45);
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    letter-spacing: -0.2px;
}
.perf-upgrade-link {
    color: #30D158;
    font-weight: 700;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.15s ease;
}
.perf-upgrade-link.gold {
    color: #F5D061;
}
.perf-card.is-teaser {
    cursor: pointer;
    position: relative;
}
.perf-card.is-teaser:active {
    transform: scale(0.98);
}
.perf-teaser-blur {
    display: inline-block;
    filter: blur(4.5px);
    user-select: none;
    -webkit-user-select: none;
    letter-spacing: 1.5px;
    color: #F5D061;
    text-shadow: 0 0 14px rgba(245, 208, 97, 0.4);
    opacity: 0.88;
    transition: filter 0.2s ease;
}


/* ===================================================================
   APPLE VISIONOS DONUT CHARTS (LIQUID GLASS ESTÉTICA)
   =================================================================== */
.apple-donut-card {
    position: relative;
    overflow: hidden;
}

.btn-donut-action {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}
.btn-donut-action:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.12);
}

.donut-layout-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 10px 0 6px;
}

@media (min-width: 640px) {
    .donut-layout-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        gap: 30px;
    }
}

.donut-chart-wrapper {
    position: relative;
    width: 190px;
    height: 190px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}

.donut-center-glass {
    position: absolute;
    width: 114px;
    height: 114px;
    border-radius: 50%;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), rgba(20, 25, 35, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 16px rgba(0, 0, 0, 0.5);
}

.donut-center-main {
    font-size: 13px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.3px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.donut-center-sub {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--apple-gray-1);
    margin-top: 2px;
    max-width: 98px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.donut-legend-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.15s ease;
}
.donut-legend-item:active, .donut-legend-item.is-active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    transform: scale(0.99);
}

.donut-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.donut-legend-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.donut-legend-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.donut-legend-pct {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--apple-gray-1);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 5px;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}

.donut-legend-val {
    font-size: 12.5px;
    font-weight: 700;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
    margin-left: auto;
}

.donut-empty-state {
    text-align: center;
    padding: 24px 16px;
    color: var(--apple-gray-1);
    font-size: 12px;
}

.donut-locked-teaser {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04), rgba(15, 20, 30, 0.85));
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.donut-locked-teaser:active {
    transform: scale(0.98);
}

/* Estilos globais para botões Voltar (Laranja Âmbar) e Atualizar (Azul Apple) */
.btn-apple-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FF9F0A 0%, #EA580C 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #FFFFFF !important;
    padding: 7px 16px !important;
    border-radius: 9999px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 4px 15px rgba(255, 159, 10, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.btn-apple-back svg {
    stroke-width: 2.8 !important;
    stroke: #FFFFFF !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.btn-apple-back:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(255, 159, 10, 0.6) !important;
}

.btn-apple-back:active {
    transform: scale(0.94);
    box-shadow: 0 2px 8px rgba(255, 159, 10, 0.6) !important;
}

.btn-apple-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0A84FF 0%, #0066CC 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
    padding: 6px 14px !important;
    border-radius: 9999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 4px 15px rgba(10, 132, 255, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.btn-apple-refresh svg {
    stroke-width: 2.5 !important;
    stroke: #FFFFFF !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.btn-apple-refresh:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(10, 132, 255, 0.55) !important;
}

.btn-apple-refresh:active {
    transform: scale(0.94);
    box-shadow: 0 2px 8px rgba(10, 132, 255, 0.6) !important;
}

/* Sub-métrica de agrupamento Vendas/Ticket e Pessoas/Ticket */
.kpi-subval {
    margin-top: 6px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.2;
}

.kpi-subval .kpi-sub-tag {
    color: #A1A1AA;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.kpi-subval .kpi-sub-val {
    color: #F4F4F5;
    font-weight: 700;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px), (max-height: 550px) and (orientation: landscape), (max-width: 1024px) and (orientation: landscape) and (pointer: coarse) {
    .kpi-subval {
        margin-top: 4px !important;
        padding-top: 4px !important;
        justify-content: center !important;
        gap: 5px !important;
        font-size: 12.5px !important;
    }
    .kpi-subval .kpi-sub-tag {
        font-size: 11px !important;
    }
    .kpi-subval .kpi-sub-val {
        font-size: 12.5px !important;
    }

    /* Ajustes Mobile para Card de Comparativo */
    .apple-comparativo-card {
        padding: 12px 10px !important;
        margin-bottom: 0 !important;
        border-radius: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 12. ANÁLISE COMPARATIVA DE FATURAMENTO (MOBILE EXECUTIVO) */
    body.in-comparativo {
        padding-bottom: 0 !important;
    }

    body.in-comparativo .topbar-actions,
    body.in-comparativo .period-buttons,
    body.in-comparativo #globalPeriodButtons,
    body.in-comparativo #customPeriodBoxClient {
        display: none !important;
    }

    body.in-comparativo .topbar {
        margin-bottom: 8px !important;
    }

    body.in-comparativo .main-content {
        padding-left: 6px !important;
        padding-right: 6px !important;
        padding-top: calc(var(--safe-top) + 8px) !important;
        padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 14px) !important;
    }

    body.in-comparativo .tab-content,
    #comparativoSection {
        padding: 0 !important;
        margin: 0 !important;
    }

    .comparativo-card {
        padding: 14px 12px !important;
        border-radius: 12px !important;
    }

    .comparativo-header {
        position: relative !important;
        z-index: 20 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    .comparativo-title-group {
        width: 100% !important;
    }

    .comp-period-indicator {
        position: relative !important;
        z-index: 10 !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 6px 0 14px 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-sizing: border-box !important;
    }

    .comp-date-card {
        padding: 8px 10px !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .comp-date-header {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        margin-bottom: 2px !important;
    }

    .comp-date-dot {
        width: 6px !important;
        height: 6px !important;
        flex-shrink: 0 !important;
    }

    .comp-date-tag {
        font-size: 10px !important;
        font-weight: 800 !important;
        letter-spacing: 0.4px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .comp-date-range {
        font-size: 13.5px !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        letter-spacing: -0.2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .comp-date-vs-badge {
        padding: 3px 6px !important;
        font-size: 9px !important;
        font-weight: 900 !important;
        flex-shrink: 0 !important;
    }

    .comparativo-controls {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 6px !important;
    }

    .comp-control-group {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }

    .comp-control-lbl {
        font-size: 10px !important;
        font-weight: 800 !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .comparativo-pills {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 4px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 10px !important;
        padding: 3px !important;
        box-sizing: border-box !important;
    }

    .btn-comp-pill {
        text-align: center !important;
        padding: 8px 2px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        border-radius: 7px !important;
        border: none !important;
        background: transparent !important;
        color: #94a3b8 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .btn-comp-pill.active {
        background: #3b82f6 !important;
        color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35) !important;
    }

    /* DROPDOWN COMPACTO E BOTÃO AJUDA NO MOBILE */
    .comp-dropdown-wrapper {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    .comp-dropdown-trigger {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 9px 12px !important;
        font-size: 12.5px !important;
        border-radius: 9px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .comp-dropdown-trigger .comp-trigger-label {
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .btn-comp-help {
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
        flex-shrink: 0 !important;
        border-radius: 9px !important;
        background: rgba(56, 189, 248, 0.1) !important;
        border: 1px solid rgba(56, 189, 248, 0.3) !important;
        color: #38bdf8 !important;
    }

    .comp-dropdown-menu {
        position: absolute !important;
        top: calc(100% + 6px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        z-index: 1060 !important;
    }

    .comp-dropdown-item {
        padding: 10px 12px !important;
    }

    /* MODAL DE AJUDA NO MOBILE */
    .comp-modal-card {
        max-height: 88vh !important;
        width: 100% !important;
        margin: 8px !important;
        border-radius: 12px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .comp-modal-header {
        padding: 14px 16px !important;
        flex-shrink: 0 !important;
    }

    .comp-modal-title {
        font-size: 14.5px !important;
    }

    .comp-modal-subtitle {
        font-size: 11px !important;
    }

    .comp-modal-body {
        padding: 14px 16px !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .comp-help-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .comp-help-card {
        padding: 12px !important;
    }

    .comp-modal-footer {
        padding: 12px 16px !important;
        flex-shrink: 0 !important;
    }

    #compPessoasLojasGrid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    }

    /* AJUSTES RESPONSIVOS DOS GRÁFICOS COMPARATIVOS NO MOBILE */
    .comp-visual-card {
        padding: 12px 8px !important;
        border-radius: 12px !important;
        margin-bottom: 0 !important;
    }

    .comp-visual-box {
        margin-bottom: 0 !important;
    }

    .comp-visual-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
        padding-bottom: 6px !important;
    }

    .comp-visual-header-right {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        gap: 10px !important;
        margin-top: 6px !important;
    }

    .timeline-granularity-switcher {
        width: 100% !important;
        display: flex !important;
        justify-content: stretch !important;
        box-sizing: border-box !important;
        padding: 3px !important;
    }

    .btn-granularity {
        flex: 1 !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 6px 12px !important;
        font-size: 11.5px !important;
    }

    .comp-visual-title {
        font-size: 13.5px !important;
    }

    .comp-visual-desc {
        font-size: 10.5px !important;
    }

    .comp-visual-legend {
        gap: 10px !important;
    }

    .legend-item {
        font-size: 10.5px !important;
    }

    .comp-col-card {
        min-width: 110px !important;
        max-width: 125px !important;
        padding: 10px 6px !important;
    }

    .comp-col-val {
        font-size: 9.5px !important;
    }

    .comp-col-pillar {
        width: 20px !important;
    }

    .comp-col-stage {
        height: 100px !important;
    }

    .diverg-col-store-hdr {
        width: 85px !important;
        font-size: 9.5px !important;
    }

    .diverg-store-label {
        width: 85px !important;
    }

    .diverg-store-name {
        font-size: 10.5px !important;
        max-width: 60px !important;
    }

    .diverg-col-diff-hdr {
        width: 75px !important;
        font-size: 9.5px !important;
    }

    .diverg-diff-val {
        width: 75px !important;
        font-size: 10.5px !important;
    }

    .diverg-header-axis-labels {
        font-size: 8.5px !important;
        padding: 0 4px !important;
    }

    .timeline-quick-kpis {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 4px !important;
        padding: 8px !important;
    }

    .tl-kpi-item .tl-lbl {
        font-size: 8.5px !important;
    }

    .tl-kpi-item .tl-val {
        font-size: 11px !important;
    }

    /* ===================================================================
       GRID DE MÉTRICAS EXECUTIVO MOBILE (2 Colunas + Delta Hero)
       Design refinado, hierarquia clara e visual de alto impacto
       =================================================================== */
    .comp-metrics-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-bottom: 14px !important;
    }

    .comp-metric-card {
        padding: 10px 8px !important;
        border-radius: 14px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
        position: relative !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .comp-metric-card .comp-card-top {
        margin-bottom: 3px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .comp-metric-card .comp-card-date-sub {
        display: none !important;
    }

    .comp-metric-card .comp-metric-tag {
        font-size: 9.5px !important;
        font-weight: 800 !important;
        letter-spacing: 0.4px !important;
        text-transform: uppercase !important;
    }

    /* CARD ATUAL */
    .comp-metric-card.card-atual {
        grid-column: 1 / 2 !important;
        background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.02) 100%) !important;
        border: 1px solid rgba(16, 185, 129, 0.28) !important;
    }

    .comp-metric-card.card-atual .comp-metric-value {
        font-size: 14.5px !important;
        font-weight: 800 !important;
        color: #10B981 !important;
        letter-spacing: -0.3px !important;
        margin: 2px 0 5px 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
    }

    /* CARD COMPARADO */
    .comp-metric-card.card-anterior {
        grid-column: 2 / 3 !important;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.09) !important;
    }

    .comp-metric-card.card-anterior .comp-metric-value {
        font-size: 14.5px !important;
        font-weight: 800 !important;
        color: #F8FAFC !important;
        letter-spacing: -0.3px !important;
        margin: 2px 0 5px 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
    }

    /* BLOCO 1: VENDAS & TICKET GERAL (SUB-CARD EMBUTIDO) */
    .comp-metric-sub {
        width: 100% !important;
        display: block !important;
        line-height: 1.2 !important;
    }

    .comp-vendas-badge {
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-radius: 8px !important;
        padding: 5px 6px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .comp-vendas-badge .comp-badge-item {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        font-size: 9.5px !important;
        color: #94A3B8 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .comp-vendas-badge .comp-badge-item .val {
        color: #F1F5F9 !important;
        font-weight: 700 !important;
    }

    .comp-vendas-badge .comp-badge-item .comp-ico {
        font-size: 9.5px !important;
        opacity: 0.85 !important;
    }

    .comp-vendas-badge .comp-badge-sep {
        display: none !important;
    }

    /* BLOCO 2: PESSOAS ATENDIDAS & TKT PESSOA (SUB-CARD CIANO) */
    .comp-pessoas-sub {
        margin-top: 5px !important;
        width: 100% !important;
        display: block !important;
    }

    .comp-pessoas-badge {
        background: rgba(56, 189, 248, 0.08) !important;
        border: 1px solid rgba(56, 189, 248, 0.24) !important;
        border-radius: 8px !important;
        padding: 5px 6px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .comp-pessoas-badge .comp-pessoas-row-top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .comp-pessoas-badge .comp-pessoas-row-bottom {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
    }

    .comp-pessoas-badge .comp-badge-item {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        font-size: 9.5px !important;
        color: #38BDF8 !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .comp-pessoas-badge .comp-badge-item .val {
        color: #FFFFFF !important;
        font-weight: 800 !important;
    }

    .comp-pessoas-badge .comp-badge-item .comp-ico {
        font-size: 9.5px !important;
    }

    .comp-pessoas-badge .tkt-pess-item {
        color: #94A3B8 !important;
    }

    .comp-pessoas-badge .tkt-pess-item .val {
        color: #E2E8F0 !important;
        font-weight: 700 !important;
    }

    .comp-pessoas-badge .btn-help-pessoas {
        width: 15px !important;
        height: 15px !important;
        font-size: 9.5px !important;
        border-radius: 50% !important;
        background: rgba(56, 189, 248, 0.2) !important;
        border: 1px solid rgba(56, 189, 248, 0.5) !important;
        color: #38BDF8 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        box-shadow: 0 0 6px rgba(56, 189, 248, 0.3) !important;
    }

    /* BLOCO 3: CARD HERO DE VARIAÇÃO REAL (DELTA) */
    .comp-metric-card.card-delta {
        grid-column: 1 / -1 !important;
        padding: 12px 10px !important;
        border-radius: 14px !important;
        background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.75) 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
    }

    .comp-metric-card.card-delta.negative {
        border-color: rgba(239, 68, 68, 0.28) !important;
        background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, rgba(15, 23, 42, 0.75) 100%) !important;
    }

    .comp-metric-card.card-delta.positive {
        border-color: rgba(16, 185, 129, 0.28) !important;
        background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.75) 100%) !important;
    }

    .comp-metric-card.card-delta .comp-metric-delta-row {
        margin: 4px 0 8px 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    .comp-metric-card.card-delta .comp-metric-delta span:first-child {
        font-size: 19px !important;
        font-weight: 800 !important;
        letter-spacing: -0.4px !important;
    }

    .comp-metric-card.card-delta .comp-badge-pill {
        font-size: 11px !important;
        font-weight: 800 !important;
        padding: 2.5px 7px !important;
        border-radius: 6px !important;
    }

    /* GRID DE CHIPS DO DELTA */
    .comp-delta-chips {
        display: grid !important;
        gap: 6px !important;
        width: 100% !important;
        margin-top: 4px !important;
    }

    .comp-delta-chips.has-3-chips {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .comp-delta-chips.has-2-chips {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .comp-delta-chip {
        background: rgba(255, 255, 255, 0.035) !important;
        border: 1px solid rgba(255, 255, 255, 0.07) !important;
        border-radius: 9px !important;
        padding: 6px 3px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        min-width: 0 !important;
    }

    .comp-delta-chip .comp-chip-lbl {
        font-size: 8px !important;
        font-weight: 700 !important;
        color: #94A3B8 !important;
        letter-spacing: 0.4px !important;
        text-transform: uppercase !important;
        margin-bottom: 2px !important;
        white-space: nowrap !important;
    }

    .comp-delta-chip .comp-chip-val {
        font-size: 11px !important;
        font-weight: 800 !important;
        letter-spacing: -0.2px !important;
        white-space: nowrap !important;
        line-height: 1.15 !important;
    }

    .comp-delta-chip .comp-chip-val.pos {
        color: #34D399 !important;
    }

    .comp-delta-chip .comp-chip-val.neg {
        color: #F87171 !important;
    }

    .comp-delta-chip .comp-chip-pct {
        font-size: 9px !important;
        font-weight: 600 !important;
        opacity: 0.9 !important;
        display: block !important;
        margin-top: 1px !important;
    }

    /* ===================================================================
       ESTILO DIVERGENTES & TERMÔMETRO NO MOBILE
       =================================================================== */
    .bullet-thermometer-box {
        padding: 10px 10px !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
        background: rgba(0, 0, 0, 0.3) !important;
    }

    .bullet-top-row {
        gap: 8px !important;
        margin-bottom: 6px !important;
    }

    .bullet-title {
        font-size: 11.5px !important;
        font-weight: 700 !important;
    }

    .bullet-sub {
        font-size: 9.5px !important;
        line-height: 1.2 !important;
    }

    .bullet-pct-badge {
        font-size: 11px !important;
        padding: 2.5px 7px !important;
        white-space: nowrap !important;
    }

    .bullet-track {
        height: 10px !important;
        margin: 6px 0 !important;
        border-radius: 5px !important;
    }

    .bullet-marker {
        height: 14px !important;
        top: -2px !important;
    }

    .bullet-legend-row {
        font-size: 9px !important;
        gap: 4px !important;
    }

    /* TABELA DIVERGENTE NO MOBILE */
    .diverg-header-row {
        padding: 0 4px 6px 4px !important;
        font-size: 9px !important;
    }

    .diverg-col-store-hdr {
        width: 88px !important;
        flex-shrink: 0 !important;
        font-size: 8.5px !important;
    }

    .diverg-col-diff-hdr {
        width: 76px !important;
        flex-shrink: 0 !important;
        font-size: 8.5px !important;
        text-align: right !important;
    }

    .diverg-header-axis-labels {
        font-size: 8px !important;
        padding: 0 4px !important;
    }

    .diverg-row {
        padding: 6px 6px !important;
        gap: 4px !important;
    }

    .diverg-store-label {
        width: 88px !important;
        flex-shrink: 0 !important;
        gap: 4px !important;
    }

    .diverg-store-name {
        font-size: 10px !important;
        max-width: 60px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .diverg-bar-container {
        padding: 0 4px !important;
    }

    .diverg-bar {
        height: 12px !important;
    }

    .diverg-bar-val {
        font-size: 8px !important;
    }

    .diverg-diff-val {
        width: 78px !important;
        flex-shrink: 0 !important;
        font-size: 10px !important;
    }

    /* Oculta tabela desktop no mobile */
    .comp-table-desktop {
        display: none !important;
    }

    /* LISTAGEM DE LOJAS NO MOBILE */
    .comp-stores-section {
        margin-top: 6px !important;
        margin-bottom: 0 !important;
    }

    .comp-stores-header {
        margin-bottom: 10px !important;
    }

    .comp-stores-title {
        font-size: 14px !important;
        font-weight: 800 !important;
    }

    .comp-stores-hint {
        font-size: 11px !important;
        color: #94a3b8 !important;
    }

    .comp-stores-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .comp-store-item {
        background: rgba(255, 255, 255, 0.025) !important;
        border: 1px solid rgba(255, 255, 255, 0.07) !important;
        border-radius: 12px !important;
        padding: 12px 12px !important;
        cursor: pointer !important;
        transition: transform 0.15s ease, background 0.15s ease !important;
    }

    .comp-store-item:active {
        transform: scale(0.98) !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }

    .comp-store-top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    .comp-store-info {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .comp-store-name {
        font-size: 13.5px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    .comp-store-sub {
        font-size: 10.5px !important;
        color: #64748b !important;
        display: block !important;
    }

    .comp-store-rank {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 24px !important;
        height: 24px !important;
        background: rgba(255, 255, 255, 0.07) !important;
        border-radius: 50% !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        color: #94a3b8 !important;
        flex-shrink: 0 !important;
    }

    .comp-store-rank.first {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.1)) !important;
        border: 1px solid rgba(245, 158, 11, 0.4) !important;
        color: #f59e0b !important;
    }

    .comp-store-badge-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    .comp-store-badge {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 1px !important;
        padding: 4px 8px !important;
        border-radius: 6px !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
    }

    .comp-store-badge.positive {
        background: rgba(16, 185, 129, 0.12) !important;
        color: #34d399 !important;
        border: 1px solid rgba(16, 185, 129, 0.25) !important;
    }

    .comp-store-badge.negative {
        background: rgba(239, 68, 68, 0.12) !important;
        color: #f87171 !important;
        border: 1px solid rgba(239, 68, 68, 0.25) !important;
    }

    .comp-badge-diff {
        font-size: 9.5px !important;
        font-weight: 600 !important;
        opacity: 0.85 !important;
    }

    .comp-store-arrow {
        font-size: 16px !important;
        color: #64748b !important;
        line-height: 1 !important;
        font-weight: 400 !important;
    }

    .comp-mobile-vals-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.04) !important;
        padding: 8px 10px !important;
        border-radius: 8px !important;
        margin: 8px 0 6px 0 !important;
    }

    .comp-mobile-val-col {
        display: flex !important;
        flex-direction: column !important;
    }

    .comp-mobile-val-lbl {
        font-size: 10px !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
    }

    .comp-mobile-val-num {
        font-size: 13.5px !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        margin-top: 2px !important;
    }

    .comp-mobile-val-sub {
        font-size: 10px !important;
        color: #64748b !important;
    }

    .comp-dual-bars {
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
    }

    .comp-bar-row {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .comp-bar-label {
        width: 38px !important;
        font-size: 9px !important;
        color: #64748b !important;
        text-transform: uppercase !important;
        font-weight: 700 !important;
        flex-shrink: 0 !important;
    }

    .comp-bar-track {
        flex: 1 !important;
        height: 5px !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border-radius: 3px !important;
        overflow: hidden !important;
    }

    .comp-bar-fill {
        height: 100% !important;
        border-radius: 3px !important;
    }

    .comp-bar-fill.atual {
        background: linear-gradient(90deg, #10b981 0%, #34d399 100%) !important;
    }

    .comp-bar-fill.anterior {
        background: rgba(148, 163, 184, 0.45) !important;
    }

    .comp-custom-box {
        padding: 12px !important;
        margin-bottom: 12px !important;
        background: rgba(17, 20, 28, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 10px !important;
    }

    .comp-custom-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        align-items: stretch !important;
    }

    .comp-custom-col {
        width: 100% !important;
    }

    .comp-custom-inputs {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .comp-custom-inputs .comp-input {
        width: 100% !important;
        font-size: 11.5px !important;
        padding: 6px 4px !important;
    }

    .comp-custom-action button {
        width: 100% !important;
        padding: 8px !important;
    }

    /* SWITCHER E GRÁFICOS COMPARATIVOS NO MOBILE */
    .comp-switcher-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 8px 10px !important;
        margin: 12px 0 !important;
    }

    .comp-switcher-buttons {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        width: 100% !important;
        gap: 3px !important;
        padding: 3px !important;
        box-sizing: border-box !important;
    }

    .btn-comp-view {
        padding: 6px 2px !important;
        font-size: 10px !important;
        justify-content: center !important;
        text-align: center !important;
        flex-direction: column !important;
        gap: 2px !important;
    }

    .btn-comp-view .view-name {
        font-size: 9px !important;
        white-space: nowrap !important;
    }

    .comp-visual-card {
        padding: 12px 10px !important;
        border-radius: 12px !important;
    }

    .comp-visual-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
    }

    .comp-visual-title {
        font-size: 13.5px !important;
    }

    .comp-visual-desc {
        font-size: 10.5px !important;
    }

    /* Colunas no Mobile: Carrossel touch horizontal com snap */
    .comp-columns-grid {
        display: flex !important;
        gap: 8px !important;
        padding: 6px 2px 8px 2px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .comp-col-card {
        min-width: 110px !important;
        max-width: 110px !important;
        padding: 8px 6px !important;
        scroll-snap-align: start !important;
        flex-shrink: 0 !important;
    }

    .comp-col-stage {
        height: 95px !important;
        gap: 4px !important;
        margin-bottom: 6px !important;
    }

    .comp-col-pillar {
        width: 18px !important;
    }

    .comp-col-val {
        font-size: 9px !important;
    }

    .comp-col-name {
        font-size: 10.5px !important;
    }

    .comp-bridge-wrap {
        min-height: 30px !important;
        margin-bottom: 4px !important;
    }

    .comp-col-bridge {
        font-size: 9.5px !important;
        padding: 2px 6px !important;
    }

    .comp-bridge-diff {
        font-size: 8.5px !important;
    }

    /* Divergentes no Mobile */
    .diverg-store-label {
        width: 95px !important;
        gap: 4px !important;
    }

    .diverg-store-name {
        font-size: 11px !important;
    }

    .diverg-diff-val {
        width: 78px !important;
        font-size: 10.5px !important;
    }

    .diverg-bar-container {
        padding: 0 4px !important;
    }

    .diverg-header-row {
        font-size: 9.5px !important;
        padding: 0 4px 6px 4px !important;
    }

    .diverg-col-store-hdr {
        width: 95px !important;
    }

    .diverg-col-diff-hdr {
        width: 78px !important;
    }

    .diverg-header-axis-labels {
        font-size: 8.5px !important;
        padding: 0 4px !important;
    }

    /* Timeline no Mobile */
    .comp-visual-card.linhas-card {
        padding: 12px 10px 10px 10px !important;
    }

    .svg-timeline-wrapper {
        padding: 0 !important;
        margin-bottom: 8px !important;
        background: transparent !important;
        border: none !important;
    }

    .timeline-interactive-tooltip {
        min-width: 175px !important;
        max-width: 240px !important;
        padding: 8px 10px !important;
    }

    .tl-tt-title {
        font-size: 11px !important;
    }

    .tl-tt-val {
        font-size: 11px !important;
    }

    .timeline-quick-kpis {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        margin-top: 6px !important;
        padding: 0 !important;
    }

    .tl-kpi-item {
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.07) !important;
        border-radius: 8px !important;
        padding: 6px 3px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .tl-kpi-item .tl-lbl {
        font-size: 8px !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
        font-weight: 700 !important;
        letter-spacing: 0.2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    .tl-kpi-item .tl-val {
        font-size: 10.5px !important;
        font-weight: 800 !important;
        margin-top: 2px !important;
        white-space: nowrap !important;
    }
}

/* ===================================================================
 * FEEDBACK VISUAL DE CARREGAMENTO (KPIs, BOTÕES E CALCULANDO)
 * =================================================================== */
@keyframes pulseLoadingShimmer {
    0% {
        opacity: 1;
        filter: brightness(1) blur(0px);
    }
    50% {
        opacity: 0.35;
        filter: brightness(1.25) blur(0.6px);
    }
    100% {
        opacity: 1;
        filter: brightness(1) blur(0px);
    }
}

@keyframes spinButtonLoader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.val-loading {
    animation: pulseLoadingShimmer 1.1s ease-in-out infinite !important;
    pointer-events: none !important;
    user-select: none !important;
    color: #94a3b8 !important;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4) !important;
}

.btn-period.btn-loading {
    position: relative !important;
    opacity: 0.9 !important;
    pointer-events: none !important;
}

.btn-period.btn-loading::after {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-left: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spinButtonLoader 0.6s linear infinite;
    vertical-align: middle;
}

.calculando-pulse {
    animation: pulseLoadingShimmer 1.2s ease-in-out infinite !important;
    font-weight: 700;
    color: #eab308;
}

.table-loading-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: pulseLoadingShimmer 1.2s ease-in-out infinite;
    font-weight: 600;
}

@media (max-width: 768px), (max-height: 550px) and (orientation: landscape), (max-width: 1024px) and (orientation: landscape) and (pointer: coarse) {
    .comp-scope-bar {
        position: relative !important;
        z-index: 60 !important;
        width: 100% !important;
        margin-bottom: 14px !important;
        padding-bottom: 12px !important;
    }

    .comp-scope-bar.dropdown-open,
    .comp-scope-bar:has(.comp-store-dropdown-menu[style*="display: block"]) {
        z-index: 2100 !important;
    }

    .comp-scope-pill-group {
        position: relative !important;
        z-index: 61 !important;
        width: 100% !important;
        display: flex !important;
    }

    .comp-scope-bar.dropdown-open .comp-scope-pill-group,
    .comp-scope-bar:has(.comp-store-dropdown-menu[style*="display: block"]) .comp-scope-pill-group {
        z-index: 2101 !important;
    }

    .comp-scope-btn {
        flex: 1 !important;
        justify-content: center !important;
        padding: 8px 10px !important;
        font-size: 11.5px !important;
    }

    .comp-scope-store-wrapper {
        position: relative !important;
        z-index: 62 !important;
        flex: 1 !important;
        display: flex !important;
    }

    .comp-scope-store-wrapper.dropdown-open,
    .comp-scope-bar.dropdown-open .comp-scope-store-wrapper,
    .comp-scope-bar:has(.comp-store-dropdown-menu[style*="display: block"]) .comp-scope-store-wrapper {
        z-index: 2102 !important;
    }

    .comp-store-dropdown-menu {
        left: auto !important;
        right: 0 !important;
        width: calc(100vw - 36px) !important;
        max-width: 350px !important;
        max-height: 320px !important;
        background: #0d1322 !important;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        border-radius: 14px !important;
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
        z-index: 2500 !important;
    }

    .comp-store-dropdown-item {
        padding: 10px 12px !important;
    }

    .comp-store-item-name {
        font-size: 12.5px !important;
        font-weight: 600 !important;
    }

    .comp-daily-mobile-list {
        display: flex !important;
    }

    .comp-movers-grid {
        grid-template-columns: 1fr !important;
    }

    .comp-daily-store-section .comp-stores-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .comp-granularity-controls {
        width: 100% !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .comp-gran-pill-group {
        flex: 1 !important;
        display: flex !important;
    }

    .comp-gran-btn {
        flex: 1 !important;
        justify-content: center !important;
        padding: 6px 8px !important;
        font-size: 11px !important;
    }

    .comp-month-filter-wrap {
        flex-shrink: 0 !important;
    }

    .comp-month-select {
        max-width: 140px !important;
        font-size: 11px !important;
        padding: 4px 8px !important;
    }

    #compPessoasLojasGrid {
        grid-template-columns: 1fr !important;
    }
}

/* ===================================================================
   MÉTRICA DE PESSOAS E TICKET POR PESSOA (DESKTOP & GLOBAL)
   =================================================================== */
.comp-pessoas-sub {
    margin-top: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 11.5px;
    color: #38BDF8;
    font-weight: 600;
    line-height: 1.3;
}

.comp-pessoas-sub .tkt-pess-tag {
    color: #CBD5E1;
    font-weight: 500;
}

.btn-help-pessoas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38BDF8;
    font-size: 9.5px;
    font-weight: 800;
    cursor: pointer;
    margin-left: 3px;
    padding: 0;
    line-height: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
}

.btn-help-pessoas:hover {
    background: #0284C7;
    border-color: #38BDF8;
    color: #FFFFFF;
    transform: scale(1.15);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* ===================================================================
   MIDAS BI — MODO CLARO (LIGHT THEME) EXCLUSIVO PRIMEIRA TELA (VISÃO GERAL)
   Design System: Apple iOS 18 Light Executive
   Ativado APENAS quando body possui a classe 'theme-light'
   No modo escuro padrão, rigorosamente NADA é alterado!
   =================================================================== */
@media (max-width: 768px), (max-height: 550px) and (orientation: landscape), (max-width: 1024px) and (orientation: landscape) and (pointer: coarse) {
    /* 1. Base e Fundo da Tela com Profundidade Apple iOS 18 */
    body.theme-light {
        --bg-main: #F8FAFC !important;
        --bg-body: #F8FAFC !important;
        --bg-surface: #FFFFFF !important;
        --bg-card: #FFFFFF !important;
        --border-color: rgba(15, 23, 42, 0.08) !important;
        --border-highlight: rgba(15, 23, 42, 0.16) !important;
        --text-main: #0F172A !important;
        --text-muted: #64748B !important;
        background: #F8FAFC !important;
        color: #0F172A !important;
        transition: background-color 0.25s ease, color 0.25s ease;
    }

    body.theme-light::before {
        background: 
            radial-gradient(circle at 14% 10%, rgba(16, 185, 129, 0.10) 0%, transparent 45%),
            radial-gradient(circle at 86% 18%, rgba(245, 158, 11, 0.10) 0%, transparent 45%),
            radial-gradient(circle at 50% 55%, rgba(59, 130, 246, 0.07) 0%, transparent 50%) !important;
    }

    /* Tipografia Global no Modo Claro */
    body.theme-light h1,
    body.theme-light h2,
    body.theme-light h3,
    body.theme-light h4,
    body.theme-light h5,
    body.theme-light h6,
    body.theme-light .card-header h3,
    body.theme-light .card-header h4,
    body.theme-light .card-title,
    body.theme-light .content-card h3,
    body.theme-light .content-card h4 {
        color: #0F172A !important;
    }

    body.theme-light .card-desc,
    body.theme-light .text-muted,
    body.theme-light small {
        color: #64748B !important;
    }

    /* 2. Topbar e Header no Modo Claro */
    body.theme-light .topbar {
        background: rgba(255, 255, 255, 0.95) !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        border-top: 1px solid rgba(15, 23, 42, 0.12) !important;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }

    body.theme-light #pageTitle {
        color: #0F172A !important;
    }

    body.theme-light #pageSubtitle {
        color: #64748B !important;
    }

    /* Botão de Trocar Tema e Botão de Recarregar no Modo Claro */
    body.theme-light .btn-theme-toggle,
    body.theme-light .btn-mobile-refresh {
        background: #FFFFFF !important;
        border: 1px solid rgba(15, 23, 42, 0.10) !important;
        color: #475569 !important;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
        transition: all 0.15s ease;
    }

    body.theme-light .btn-mobile-refresh svg {
        stroke: #475569 !important;
    }

    body.theme-light .btn-theme-toggle:active,
    body.theme-light .btn-mobile-refresh:active {
        background: rgba(16, 185, 129, 0.12) !important;
        border-color: #10B981 !important;
        color: #10B981 !important;
        transform: scale(0.95);
    }

    body.theme-light .btn-mobile-refresh:active svg {
        stroke: #10B981 !important;
    }

    /* 3. Botões de Período (Pílulas) no Modo Claro */
    body.theme-light #globalPeriodButtons .btn-period {
        background: #FFFFFF !important;
        border: 1px solid rgba(15, 23, 42, 0.10) !important;
        color: #475569 !important;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
        font-weight: 600 !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.theme-light #globalPeriodButtons .btn-period.active {
        background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
        color: #FFFFFF !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        box-shadow: 0 4px 14px rgba(16, 185, 129, 0.38) !important;
        font-weight: 700 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    body.theme-light #globalPeriodButtons #btnPeriodCustomClient {
        background: #FFFFFF !important;
        border: 1px solid rgba(245, 158, 11, 0.35) !important;
        color: #D97706 !important;
    }

    body.theme-light #globalPeriodButtons #btnPeriodCustomClient.active {
        background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
        color: #FFFFFF !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        box-shadow: 0 4px 14px rgba(245, 158, 11, 0.38) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    /* 4. Hero Card de Faturamento Consolidado no Modo Claro */
    body.theme-light #overviewSection .kpi-grid .kpi-card:nth-child(2) {
        background: linear-gradient(180deg, #FFFDF7 0%, #FFFFFF 100%) !important;
        border: 1px solid rgba(245, 158, 11, 0.25) !important;
        border-top: 3px solid #F59E0B !important;
        box-shadow: 0 10px 28px rgba(245, 158, 11, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    }

    body.theme-light #overviewSection .kpi-grid .kpi-card:nth-child(2)::before {
        background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%) !important;
    }

    body.theme-light #overviewSection .kpi-grid .kpi-card:nth-child(2) .kpi-label::after {
        color: #B45309 !important;
    }

    body.theme-light #overviewSection .kpi-grid .kpi-card:nth-child(2) .kpi-label::before {
        background: #F59E0B !important;
        box-shadow: 0 0 6px rgba(245, 158, 11, 0.6) !important;
    }

    body.theme-light #overviewSection .kpi-grid .kpi-card:nth-child(2) .kpi-value {
        color: #0F172A !important;
        font-weight: 800 !important;
    }

    /* 5. Sub-Cards de KPI (Lojas, Vendas, Ticket Médio) no Modo Claro */
    body.theme-light #overviewSection .kpi-card {
        background: #FFFFFF !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    }

    body.theme-light #overviewSection .kpi-grid .kpi-card:nth-child(1) .kpi-label::after,
    body.theme-light #overviewSection .kpi-grid .kpi-card:nth-child(3) .kpi-label::after,
    body.theme-light #overviewSection .kpi-grid .kpi-card:nth-child(4) .kpi-label::after {
        color: #64748B !important;
    }

    body.theme-light #overviewSection .kpi-grid .kpi-card:nth-child(1) .kpi-value {
        color: #0F172A !important;
        font-weight: 800 !important;
    }

    body.theme-light #overviewSection .kpi-grid .kpi-card:nth-child(3) .kpi-value {
        color: #059669 !important; /* Verde Esmeralda com alto contraste */
        font-weight: 800 !important;
    }

    /* Pessoas e Ticket Médio no Modo Claro */
    body.theme-light #overviewSection .kpi-grid.has-pessoas .kpi-card:nth-child(4) .kpi-label::after {
        color: #0284C7 !important;
    }
    body.theme-light #overviewSection .kpi-grid.has-pessoas #globalTicket {
        color: #0284C7 !important;
        font-weight: 800 !important;
    }
    body.theme-light #overviewSection .kpi-grid:not(.has-pessoas) .kpi-card:nth-child(4) .kpi-label::after {
        color: #7C3AED !important;
    }
    body.theme-light #overviewSection .kpi-grid:not(.has-pessoas) #globalTicket {
        color: #7C3AED !important;
        font-weight: 800 !important;
    }

    /* 6. Card Donut de Participação por Loja no Modo Claro */
    body.theme-light #overviewDonutCard {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    }

    body.theme-light #overviewDonutCard .card-header h3 {
        color: #0F172A !important;
    }

    body.theme-light #overviewDonutCard .card-desc {
        color: #64748B !important;
    }

    body.theme-light #overviewDonutCard .badge-live {
        background: rgba(22, 163, 74, 0.10) !important;
        color: #16A34A !important;
        border: 1px solid rgba(22, 163, 74, 0.30) !important;
    }

    /* Miolo de Vidro do Donut no Modo Claro */
    body.theme-light .donut-center-glass {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.10) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07) !important;
    }

    body.theme-light .donut-center-main {
        color: #0F172A !important;
    }

    body.theme-light .donut-center-sub {
        color: #64748B !important;
    }

    body.theme-light .donut-svg > circle {
        stroke: rgba(0, 0, 0, 0.06) !important;
    }

    /* Lista de Lojas abaixo do Donut no Modo Claro */
    body.theme-light .donut-legend-item {
        background: #F8FAFC !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    body.theme-light .donut-legend-item:active,
    body.theme-light .donut-legend-item.is-active {
        background: #EDF2F7 !important;
        border-color: rgba(0, 0, 0, 0.12) !important;
    }

    body.theme-light .donut-legend-name {
        color: #1E293B !important;
        font-weight: 700 !important;
    }

    body.theme-light .donut-legend-pct {
        color: #475569 !important;
        background: #E2E8F0 !important;
    }

    body.theme-light .donut-legend-val {
        color: #0F172A !important;
        font-weight: 800 !important;
    }

    /* 6b. Cards de Lojas e Lista no Modo Claro */
    body.theme-light #overviewStoresCard {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    }

    body.theme-light #overviewStoresCard .card-header h3 {
        color: #0F172A !important;
    }

    body.theme-light #overviewStoresCard .card-desc {
        color: #64748B !important;
    }

    body.theme-light .mobile-store-card {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.12) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    }

    body.theme-light .mobile-store-card-title {
        color: #0F172A !important;
    }

    body.theme-light .mobile-store-card-sub {
        color: #64748B !important;
    }

    body.theme-light .mobile-store-metrics {
        background: #F8FAFC !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    body.theme-light .mobile-store-metric-item small {
        color: #64748B !important;
    }

    body.theme-light .mobile-store-metric-item strong {
        color: #0F172A !important;
    }

    body.theme-light .metric-val-fat,
    body.theme-light .metric-val-tkt {
        color: #0F172A !important;
    }

    body.theme-light .metric-val-vendas {
        color: #16A34A !important;
    }

    body.theme-light .mobile-store-footer-meta,
    body.theme-light .mobile-store-footer-meta span {
        color: #64748B !important;
    }

    body.theme-light .mobile-store-btn-open {
        background: #F1F5F9 !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        color: #0F172A !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    }

    body.theme-light .mobile-store-btn-open:active {
        background: rgba(22, 163, 74, 0.10) !important;
        border-color: #16A34A !important;
        color: #16A34A !important;
    }

    body.theme-light .badge-pro {
        background: rgba(245, 158, 11, 0.12) !important;
        border-color: rgba(217, 119, 6, 0.4) !important;
        color: #B45309 !important;
    }

    body.theme-light .badge-basic {
        background: #F1F5F9 !important;
        border-color: #CBD5E1 !important;
        color: #475569 !important;
    }

    /* Caixa de Período Personalizado no Modo Claro */
    body.theme-light #customPeriodBoxClient {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.10) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    }

    body.theme-light #customPeriodBoxClient label {
        color: #475569 !important;
    }

    body.theme-light #customPeriodBoxClient input {
        background: #F8FAFC !important;
        color: #0F172A !important;
        border: 1px solid #CBD5E1 !important;
    }

    /* 7. Bottom Navigation no Modo Claro */
    body.theme-light .mobile-bottom-nav {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04) !important;
    }

    body.theme-light .bottom-nav-item {
        color: #64748B !important;
    }

    body.theme-light .bottom-nav-item svg {
        stroke: #64748B !important;
    }

    body.theme-light .bottom-nav-item.active {
        color: #16A34A !important;
    }

    body.theme-light .bottom-nav-item.active svg {
        stroke: #16A34A !important;
    }

    body.theme-light .bottom-nav-item.active::after {
        background: #16A34A !important;
    }

    /* Botão Sair no Modo Claro */
    body.theme-light .btn-mobile-logout {
        background: rgba(255, 255, 255, 0.92) !important;
        border-color: rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
    }
    body.theme-light .btn-mobile-logout:active {
        background: rgba(239, 68, 68, 0.08) !important;
        border-color: rgba(239, 68, 68, 0.3) !important;
    }
    body.theme-light .btn-mobile-logout-sub {
        color: #64748B !important;
    }
    body.theme-light .btn-mobile-logout-arrow {
        color: #94A3B8 !important;
        stroke: #94A3B8 !important;
    }

    /* =======================================================
       8. ANÁLISE COMPARATIVA DE FATURAMENTO NO MODO CLARO
       ======================================================= */
    body.theme-light .apple-comparativo-card {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    }

    /* Seletor de Escopo (Rede vs Loja) */
    body.theme-light .comp-scope-pill-group {
        background: #F1F5F9 !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    body.theme-light .comp-scope-btn {
        color: #64748B !important;
    }

    body.theme-light .comp-scope-btn.active {
        background: #FFFFFF !important;
        color: #0F172A !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    }

    body.theme-light .comp-scope-store-wrapper {
        background: transparent !important;
    }

    body.theme-light .comp-store-dropdown-menu {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.12) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    }

    body.theme-light .comp-store-dropdown-item {
        color: #0F172A !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    body.theme-light .comp-store-dropdown-item:hover {
        background: #F8FAFC !important;
        color: #2563EB !important;
    }

    body.theme-light .comp-store-dropdown-item.active {
        background: rgba(37, 99, 235, 0.08) !important;
        color: #2563EB !important;
        font-weight: 700 !important;
    }

    /* Header & Badge */
    body.theme-light .comparativo-badge-tag {
        background: rgba(59, 130, 246, 0.10) !important;
        color: #2563EB !important;
        border: 1px solid rgba(59, 130, 246, 0.25) !important;
    }

    body.theme-light .comparativo-title {
        color: #0F172A !important;
    }

    /* Controles & Dropdowns */
    body.theme-light .comp-control-lbl {
        color: #64748B !important;
    }

    body.theme-light .comp-dropdown-trigger {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.14) !important;
        color: #0F172A !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    }

    body.theme-light .comp-dropdown-trigger .view-name,
    body.theme-light .comp-trigger-label .view-name {
        color: #0F172A !important;
    }

    body.theme-light .comp-dropdown-trigger .comp-trigger-arrow {
        color: #64748B !important;
    }

    body.theme-light .btn-comp-help {
        background: rgba(14, 165, 233, 0.10) !important;
        border: 1px solid rgba(14, 165, 233, 0.3) !important;
        color: #0284C7 !important;
    }

    body.theme-light .comp-dropdown-menu {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.12) !important;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12) !important;
    }

    body.theme-light .comp-dropdown-item {
        background: transparent !important;
        color: #0F172A !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    body.theme-light .comp-dropdown-item:hover {
        background: #F8FAFC !important;
    }

    body.theme-light .comp-dropdown-item.active {
        background: rgba(37, 99, 235, 0.08) !important;
        border-color: rgba(37, 99, 235, 0.25) !important;
    }

    body.theme-light .comp-dropdown-item .view-name,
    body.theme-light .comp-opt-header .view-name {
        color: #0F172A !important;
    }

    body.theme-light .comp-dropdown-item.active .view-name,
    body.theme-light .comp-dropdown-item.active .comp-opt-header .view-name {
        color: #2563EB !important;
    }

    body.theme-light .comp-dropdown-item .comp-opt-sub {
        color: #475569 !important;
    }

    body.theme-light .comp-opt-badge-default {
        background: rgba(37, 99, 235, 0.10) !important;
        color: #2563EB !important;
        border: 1px solid rgba(37, 99, 235, 0.25) !important;
    }

    /* Caixa de Período Personalizado do Comparativo */
    body.theme-light .comp-custom-box {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.10) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    }

    body.theme-light .comp-custom-label {
        color: #475569 !important;
    }

    body.theme-light .comp-input {
        background: #FFFFFF !important;
        color: #0F172A !important;
        border: 1px solid #CBD5E1 !important;
    }

    body.theme-light .comp-sep {
        color: #64748B !important;
    }

    /* Indicador de Período (Datas) */
    body.theme-light .comp-date-card {
        background: #F8FAFC !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    body.theme-light .comp-date-card:first-child .comp-date-tag {
        color: #16A34A !important;
    }

    body.theme-light .comp-date-card:last-child .comp-date-tag {
        color: #64748B !important;
    }

    body.theme-light .comp-date-range {
        color: #0F172A !important;
    }

    body.theme-light .comp-date-vs-badge {
        background: #E2E8F0 !important;
        color: #475569 !important;
    }

    /* Cards de Métricas Comparadas */
    body.theme-light .comp-metric-card.card-atual {
        background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%) !important;
        border: 1px solid rgba(22, 163, 74, 0.3) !important;
        box-shadow: 0 4px 16px rgba(22, 163, 74, 0.06) !important;
    }

    body.theme-light .comp-metric-card.card-atual .comp-metric-tag {
        color: #16A34A !important;
    }

    body.theme-light .comp-metric-card.card-atual .comp-metric-value {
        color: #15803D !important;
    }

    body.theme-light .comp-metric-card.card-anterior {
        background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    }

    body.theme-light .comp-metric-card.card-anterior .comp-metric-tag {
        color: #64748B !important;
    }

    body.theme-light .comp-metric-card.card-anterior .comp-metric-value {
        color: #0F172A !important;
    }

    /* Sub-card Vendas & Ticket */
    body.theme-light .comp-vendas-badge {
        background: #F1F5F9 !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    body.theme-light .comp-vendas-badge .comp-badge-item {
        color: #64748B !important;
    }

    body.theme-light .comp-vendas-badge .comp-badge-item .val {
        color: #0F172A !important;
    }

    /* Sub-card Pessoas */
    body.theme-light .comp-pessoas-badge {
        background: rgba(14, 165, 233, 0.08) !important;
        border: 1px solid rgba(14, 165, 233, 0.25) !important;
    }

    body.theme-light .comp-pessoas-badge .comp-badge-item {
        color: #0284C7 !important;
    }

    body.theme-light .comp-pessoas-badge .comp-badge-item .val {
        color: #0369A1 !important;
    }

    body.theme-light .comp-pessoas-badge .tkt-pess-item {
        color: #64748B !important;
    }

    body.theme-light .comp-pessoas-badge .tkt-pess-item .val {
        color: #0F172A !important;
    }

    body.theme-light .comp-pessoas-badge .btn-help-pessoas {
        background: rgba(14, 165, 233, 0.15) !important;
        border-color: rgba(14, 165, 233, 0.4) !important;
        color: #0284C7 !important;
    }

    /* Card Hero de Variação Real (Delta) */
    body.theme-light .comp-metric-card.card-delta {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04) !important;
    }

    body.theme-light .comp-metric-card.card-delta.negative {
        background: linear-gradient(180deg, #FEF2F2 0%, #FFFFFF 100%) !important;
        border: 1px solid rgba(239, 68, 68, 0.25) !important;
    }

    body.theme-light .comp-metric-card.card-delta.positive {
        background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%) !important;
        border: 1px solid rgba(22, 163, 74, 0.25) !important;
    }

    body.theme-light .comp-delta-chip {
        background: #F8FAFC !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    body.theme-light .comp-delta-chip .comp-chip-lbl {
        color: #64748B !important;
    }

    /* =======================================================
       ESTILOS VISUAIS COMPARATIVOS (4 ESTILOS COMPLETOS)
       ======================================================= */
    body.theme-light .comp-visual-card {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    }

    body.theme-light .comp-visual-title {
        color: #0F172A !important;
    }

    body.theme-light .comp-visual-desc {
        color: #64748B !important;
    }

    /* ESTILO 1: COLUNAS & DELTA */
    body.theme-light .comp-col-card {
        background: #F8FAFC !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    body.theme-light .comp-col-card:hover {
        background: #F1F5F9 !important;
    }

    body.theme-light .comp-col-name {
        color: #0F172A !important;
    }

    body.theme-light .comp-col-val-atual {
        color: #16A34A !important;
    }

    body.theme-light .comp-col-sub-lbl {
        color: #64748B !important;
    }

    body.theme-light .comp-col-pillar.comp {
        background: #CBD5E1 !important;
    }

    body.theme-light .comp-col-val.text-muted {
        color: #64748B !important;
    }

    body.theme-light .comp-bridge-diff {
        color: #64748B !important;
    }

    body.theme-light .comp-col-rank {
        background: #E2E8F0 !important;
        color: #475569 !important;
    }

    body.theme-light .comp-col-rank.first {
        background: rgba(245, 158, 11, 0.15) !important;
        color: #B45309 !important;
    }

    /* ESTILO 2: DIVERGENTES & TERMÔMETRO */
    body.theme-light .bullet-thermometer-box {
        background: #F8FAFC !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    body.theme-light .bullet-title {
        color: #0F172A !important;
    }

    body.theme-light .bullet-sub {
        color: #64748B !important;
    }

    body.theme-light .bullet-track {
        background: #E2E8F0 !important;
    }

    body.theme-light .bullet-marker {
        background: #0F172A !important;
    }

    body.theme-light .bullet-legend-row {
        color: #64748B !important;
    }

    body.theme-light .diverg-header-row {
        color: #64748B !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    body.theme-light .diverg-header-axis-labels span.text-white,
    body.theme-light .diverg-header-axis-labels .text-white {
        color: #0F172A !important;
    }

    body.theme-light .diverg-row {
        background: #F8FAFC !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    body.theme-light .diverg-row:hover {
        background: #F1F5F9 !important;
    }

    body.theme-light .diverg-store-name {
        color: #0F172A !important;
    }

    body.theme-light .diverg-col-name,
    body.theme-light .diverg-col-val {
        color: #0F172A !important;
    }

    body.theme-light .diverg-label {
        color: #64748B !important;
    }

    body.theme-light .diverg-axis {
        background: rgba(0, 0, 0, 0.22) !important;
    }

    body.theme-light .legend-item {
        color: #475569 !important;
    }

    /* ESTILO 3: LINHA TEMPORAL DIÁRIA */
    body.theme-light .timeline-granularity-switcher {
        background: #F1F5F9 !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    body.theme-light .btn-granularity {
        color: #64748B !important;
    }

    body.theme-light .btn-granularity.active {
        background: #FFFFFF !important;
        color: #0F172A !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    }

    body.theme-light .comp-timeline-svg line[stroke-dasharray="3,3"] {
        stroke: rgba(0, 0, 0, 0.08) !important;
    }

    body.theme-light .comp-timeline-svg text {
        fill: #475569 !important;
    }

    body.theme-light #tlCrosshair {
        stroke: rgba(0, 0, 0, 0.35) !important;
    }

    body.theme-light .timeline-quick-kpis .tl-kpi-item {
        background: #F8FAFC !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    body.theme-light .timeline-quick-kpis .tl-lbl {
        color: #64748B !important;
    }

    body.theme-light .timeline-quick-kpis .tl-val.text-muted {
        color: #475569 !important;
    }

    body.theme-light .timeline-interactive-tooltip {
        background: rgba(255, 255, 255, 0.98) !important;
        border: 1px solid rgba(0, 0, 0, 0.12) !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
        color: #0F172A !important;
    }

    body.theme-light .tl-tt-header {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    body.theme-light .tl-tt-title {
        color: #0F172A !important;
    }

    body.theme-light .tl-tt-row .label {
        color: #64748B !important;
    }

    body.theme-light .tl-tt-row .val {
        color: #0F172A !important;
    }

    /* ESTILO 4: BARRAS CLÁSSICAS + TABELAS EXECUTIVAS */
    body.theme-light .comp-stores-title {
        color: #0F172A !important;
    }

    body.theme-light .comp-stores-hint {
        color: #64748B !important;
    }

    body.theme-light .comp-table-desktop {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    }

    body.theme-light .comp-data-table th {
        background: #F8FAFC !important;
        color: #475569 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    body.theme-light .comp-table-row {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    body.theme-light .comp-table-row:hover {
        background: #F8FAFC !important;
    }

    body.theme-light .comp-cell-name {
        color: #0F172A !important;
    }

    body.theme-light .comp-cell-sub {
        color: #64748B !important;
    }

    body.theme-light .comp-cell-val {
        color: #0F172A !important;
    }

    body.theme-light .mini-bar-track {
        background: rgba(0, 0, 0, 0.08) !important;
    }

    body.theme-light .mini-bar-lbl {
        color: #64748B !important;
    }

    body.theme-light .mini-bar-fill.anterior {
        background: #94A3B8 !important;
    }

    /* Controles de Granularidade da Loja no Comparativo */
    body.theme-light .comp-gran-btn {
        background: #F1F5F9 !important;
        color: #64748B !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    body.theme-light .comp-gran-btn.active {
        background: #FFFFFF !important;
        color: #0F172A !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    }

    body.theme-light .comp-month-select {
        background: #FFFFFF !important;
        color: #0F172A !important;
        border: 1px solid rgba(0, 0, 0, 0.12) !important;
    }

    /* Destaques do Mix de Produtos (Movers) */
    body.theme-light .comp-movers-card {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    }

    body.theme-light .comp-movers-title-row .mover-title {
        color: #0F172A !important;
    }

    body.theme-light .comp-mover-item {
        background: #F8FAFC !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    body.theme-light .comp-mover-item:hover {
        background: #F1F5F9 !important;
    }

    body.theme-light .mover-name {
        color: #0F172A !important;
    }

    body.theme-light .mover-sub {
        color: #64748B !important;
    }

    body.theme-light .mover-rank {
        color: #64748B !important;
    }

    body.theme-light .mover-delta-diff {
        color: #64748B !important;
    }

    /* Ranking de Lojas no Comparativo (Cards Mobile) */
    body.theme-light .comp-stores-list .comp-store-item,
    body.theme-light .comp-store-item {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
        color: #0F172A !important;
    }

    body.theme-light .comp-store-item:hover,
    body.theme-light .comp-store-item.selected {
        background: #F8FAFC !important;
        color: #16A34A !important;
    }

    body.theme-light .comp-store-name {
        color: #0F172A !important;
    }

    body.theme-light .comp-mobile-val-num {
        color: #0F172A !important;
    }

    body.theme-light .comp-mobile-val-lbl {
        color: #64748B !important;
    }

    body.theme-light .comp-store-rank-badge {
        background: #F1F5F9 !important;
        color: #475569 !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    body.theme-light .comp-store-rank-badge.rank-top {
        background: rgba(245, 158, 11, 0.15) !important;
        color: #B45309 !important;
        border-color: rgba(245, 158, 11, 0.35) !important;
    }

    /* =======================================================
       9. BI DA LOJA (INDIVIDUAL) NO MODO CLARO
       ======================================================= */
    body.theme-light #storeBiSection .content-card,
    body.theme-light .store-bi-card {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
    }

    /* Topo do BI da Loja */
    body.theme-light #biStoreTitle {
        color: #0F172A !important;
    }

    body.theme-light #biStoreCnpj,
    body.theme-light #biStoreInfo {
        color: #64748B !important;
    }

    /* Botão Voltar (Laranja Âmbar Vibrante Apple) */
    body.theme-light #btnVoltarRede,
    body.theme-light .btn-apple-back {
        background: linear-gradient(135deg, #FF9500 0%, #EA580C 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.45) !important;
        color: #FFFFFF !important;
        padding: 7px 16px !important;
        border-radius: 9999px !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        cursor: pointer;
        transition: all 0.15s ease;
        box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    }

    body.theme-light #btnVoltarRede svg,
    body.theme-light .btn-apple-back svg {
        stroke-width: 2.8 !important;
        stroke: #FFFFFF !important;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)) !important;
    }

    body.theme-light #btnVoltarRede:hover,
    body.theme-light .btn-apple-back:hover {
        filter: brightness(1.08);
        box-shadow: 0 6px 18px rgba(234, 88, 12, 0.48) !important;
    }

    body.theme-light #btnVoltarRede:active,
    body.theme-light .btn-apple-back:active {
        transform: scale(0.94);
        box-shadow: 0 2px 6px rgba(234, 88, 12, 0.45) !important;
    }

    /* Botão Atualizar (Azul Apple Vibrante) */
    body.theme-light .btn-apple-refresh {
        background: linear-gradient(135deg, #007AFF 0%, #0056B3 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.45) !important;
        color: #FFFFFF !important;
        padding: 6px 14px !important;
        border-radius: 9999px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        cursor: pointer;
        transition: all 0.15s ease;
        box-shadow: 0 4px 14px rgba(0, 122, 255, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    }

    body.theme-light .btn-apple-refresh svg {
        stroke-width: 2.5 !important;
        stroke: #FFFFFF !important;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)) !important;
    }

    body.theme-light .btn-apple-refresh:hover {
        filter: brightness(1.08);
        box-shadow: 0 6px 18px rgba(0, 122, 255, 0.48) !important;
    }

    body.theme-light .btn-apple-refresh:active {
        transform: scale(0.94);
        box-shadow: 0 2px 6px rgba(0, 122, 255, 0.45) !important;
    }

    body.theme-light #biCacheTimeLabel {
        color: #64748B !important;
    }

    /* Botão Sugestões do Midas no Topo e no Card */
    body.theme-light .btn-sugestoes-midas-top,
    body.theme-light .btn-sugestoes-midas-card {
        background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%) !important;
        border: 1px solid rgba(245, 158, 11, 0.5) !important;
        color: #92400E !important;
        box-shadow: 0 3px 10px rgba(245, 158, 11, 0.18) !important;
        font-weight: 700 !important;
    }

    body.theme-light .btn-sugestoes-midas-top:active,
    body.theme-light .btn-sugestoes-midas-card:active {
        transform: scale(0.95);
    }

    /* Hero Card Faturamento da Loja */
    body.theme-light #storeBiSection .kpi-grid .kpi-card:nth-child(1) {
        background: linear-gradient(180deg, #FFFDF7 0%, #FFFFFF 100%) !important;
        border: 1px solid rgba(245, 158, 11, 0.25) !important;
        border-top: 3px solid #F59E0B !important;
        box-shadow: 0 10px 30px rgba(245, 158, 11, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    }

    body.theme-light #storeBiSection .kpi-grid .kpi-card:nth-child(1)::before {
        background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%) !important;
    }

    body.theme-light #storeBiSection .kpi-grid .kpi-card:nth-child(1) .kpi-label::after {
        color: #B45309 !important;
    }

    body.theme-light #storeBiSection .kpi-grid .kpi-card:nth-child(1) .kpi-label::before {
        background: #F59E0B !important;
        box-shadow: 0 0 6px rgba(245, 158, 11, 0.6) !important;
    }

    body.theme-light #storeBiSection .kpi-grid .kpi-card:nth-child(1) .kpi-value {
        color: #0F172A !important;
        font-weight: 800 !important;
    }

    /* Sub-Cards Loja BI (Vendas & Ticket Médio/Pessoas) */
    body.theme-light #storeBiSection .kpi-grid .kpi-card:nth-child(2),
    body.theme-light #storeBiSection .kpi-grid .kpi-card:nth-child(3) {
        background: #FFFFFF !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    }

    body.theme-light #storeBiSection .kpi-grid .kpi-card:nth-child(2) .kpi-label::after,
    body.theme-light #storeBiSection .kpi-grid .kpi-card:nth-child(3) .kpi-label::after {
        color: #64748B !important;
    }

    body.theme-light #storeBiSection .kpi-grid .kpi-card:nth-child(2) .kpi-value {
        color: #059669 !important;
        font-weight: 800 !important;
    }

    body.theme-light #storeBiSection .kpi-grid .kpi-card:nth-child(3) .kpi-value {
        color: #0F172A !important;
        font-weight: 800 !important;
    }

    /* Caso Pessoas ativas no BI da Loja */
    body.theme-light #storeBiSection .kpi-grid.has-pessoas .kpi-card:nth-child(3) .kpi-label::after {
        color: #0284C7 !important;
    }

    body.theme-light #storeBiSection .kpi-grid.has-pessoas #biTicketMedio {
        color: #0284C7 !important;
        font-weight: 800 !important;
    }

    body.theme-light .kpi-subval {
        color: #64748B !important;
    }

    body.theme-light .kpi-sub-tag {
        color: #64748B !important;
        font-weight: 700 !important;
    }

    body.theme-light .kpi-sub-val {
        color: #0F172A !important;
        font-weight: 800 !important;
    }

    /* Bloco Performance (Meta do Dia & Recorde) */
    body.theme-light .perf-card {
        background: #FFFFFF !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
        border-radius: 16px !important;
    }

    body.theme-light #cardMetaDia {
        background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%) !important;
        border: 1px solid rgba(16, 185, 129, 0.25) !important;
        border-top: 3px solid #10B981 !important;
    }

    body.theme-light #cardRecordeDia {
        background: linear-gradient(180deg, #FFFDF5 0%, #FFFFFF 100%) !important;
        border: 1px solid rgba(245, 158, 11, 0.25) !important;
        border-top: 3px solid #F59E0B !important;
    }

    body.theme-light .perf-card-tag {
        color: #64748B !important;
    }

    body.theme-light .perf-card-tag.gold {
        color: #B45309 !important;
    }

    body.theme-light .perf-value {
        color: #0F172A !important;
        font-weight: 800 !important;
    }

    body.theme-light .perf-value.gold {
        color: #B45309 !important;
        font-weight: 800 !important;
    }

    body.theme-light .perf-sub {
        color: #64748B !important;
    }

    body.theme-light .btn-perf-action {
        background: #F1F5F9 !important;
        border: 1px solid rgba(15, 23, 42, 0.10) !important;
        color: #475569 !important;
    }

    body.theme-light .perf-badge-gold {
        background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%) !important;
        border: 1px solid rgba(217, 119, 6, 0.40) !important;
        color: #92400E !important;
        font-weight: 700 !important;
        box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15) !important;
    }

    body.theme-light .perf-progress-bg {
        background: #E2E8F0 !important;
        height: 8px !important;
        border-radius: 9999px !important;
    }

    body.theme-light .perf-progress-fill {
        background: linear-gradient(90deg, #10B981, #059669) !important;
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
    }

    /* Sub-aba Vendas (Meios de Pgto & Produtos) */
    body.theme-light .btn-donut-action {
        background: #F1F5F9 !important;
        border: 1px solid rgba(15, 23, 42, 0.10) !important;
        color: #0F172A !important;
    }

    body.theme-light .btn-donut-action:hover,
    body.theme-light .btn-donut-action:active {
        background: #E2E8F0 !important;
        color: #0F172A !important;
    }

    body.theme-light #btnToggleProductsText {
        color: #0F172A !important;
    }

    body.theme-light .ranking-row {
        background: #FFFFFF !important;
        border: 1px solid rgba(15, 23, 42, 0.06) !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02) !important;
        border-radius: 12px !important;
    }

    body.theme-light .ranking-name {
        color: #0F172A !important;
        font-weight: 600 !important;
    }

    body.theme-light .ranking-val {
        color: #0F172A !important;
        font-weight: 700 !important;
    }

    body.theme-light .ranking-bar-bg {
        background: #E2E8F0 !important;
    }

    body.theme-light .ranking-idx {
        background: #F1F5F9 !important;
        color: #475569 !important;
        font-weight: 700 !important;
        border-radius: 6px !important;
        padding: 2px 7px !important;
    }

    body.theme-light .ranking-row:nth-child(1) .ranking-idx {
        background: #FEF3C7 !important;
        color: #92400E !important;
    }

    body.theme-light .ranking-row:nth-child(2) .ranking-idx {
        background: #F1F5F9 !important;
        color: #334155 !important;
    }

    body.theme-light .ranking-row:nth-child(3) .ranking-idx {
        background: #FFEDD5 !important;
        color: #9A3412 !important;
    }

    /* Sub-aba Pagamentos */
    body.theme-light .pgto-card {
        background: #FFFFFF !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
        border-radius: 16px !important;
    }

    body.theme-light .pgto-item {
        border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
    }

    body.theme-light .pgto-bandeira-name {
        color: #0F172A !important;
    }

    body.theme-light .pgto-val {
        color: #0F172A !important;
        font-weight: 700 !important;
    }

    /* Sub-aba Caixas (Banner, Turnos Abertos/Fechados e Moedas) */
    body.theme-light .caixa-top-banner {
        background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%) !important;
        border: 1px solid rgba(59, 130, 246, 0.3) !important;
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08) !important;
        border-radius: 16px !important;
    }

    body.theme-light .caixa-top-icon {
        background: rgba(59, 130, 246, 0.15) !important;
        border: 1px solid rgba(59, 130, 246, 0.3) !important;
    }

    body.theme-light .caixa-top-title {
        color: #1E40AF !important;
        font-weight: 700 !important;
    }

    body.theme-light .caixa-top-badge {
        background: #FFFFFF !important;
        border: 1px solid rgba(59, 130, 246, 0.3) !important;
        color: #2563EB !important;
        font-weight: 700 !important;
    }

    body.theme-light .caixa-card-item {
        background: #FFFFFF !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
        border-radius: 16px !important;
    }

    body.theme-light .caixa-date-badge {
        background: #F1F5F9 !important;
        border: 1px solid rgba(15, 23, 42, 0.10) !important;
        color: #0F172A !important;
    }

    body.theme-light .caixa-date-badge.is-today {
        background: rgba(59, 130, 246, 0.12) !important;
        border: 1px solid rgba(59, 130, 246, 0.35) !important;
        color: #2563EB !important;
    }

    body.theme-light .caixa-estacao-badge {
        background: #F1F5F9 !important;
        color: #64748B !important;
    }

    body.theme-light .caixa-status-badge.open {
        background: rgba(16, 185, 129, 0.15) !important;
        color: #059669 !important;
        border: 1px solid rgba(16, 185, 129, 0.35) !important;
        font-weight: 800 !important;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15) !important;
    }

    body.theme-light .caixa-status-badge.closed {
        background: #F1F5F9 !important;
        color: #64748B !important;
    }

    body.theme-light .caixa-quebra-box {
        background: #F8FAFC !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        border-radius: 12px !important;
    }

    body.theme-light .caixa-kpi-item {
        background: #F8FAFC !important;
        border: 1px solid rgba(15, 23, 42, 0.06) !important;
        border-radius: 12px !important;
    }

    body.theme-light .caixa-kpi-gaveta {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.08) 100%) !important;
        border: 1px solid rgba(16, 185, 129, 0.30) !important;
    }

    body.theme-light .caixa-kpi-gaveta .caixa-kpi-val {
        color: #059669 !important;
        font-weight: 800 !important;
    }

    body.theme-light .caixa-moedas-wrap {
        background: #F8FAFC !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    body.theme-light .caixa-moedas-wrap table thead tr {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        color: #64748B !important;
    }

    body.theme-light .caixa-moedas-wrap table tbody tr {
        border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
        color: #0F172A !important;
    }

    body.theme-light details[open] summary,
    body.theme-light summary {
        color: #0F172A !important;
    }

    body.theme-light .caixa-detalhe-box {
        background: #F8FAFC !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    /* Sub-aba Cancelamentos / Auditoria */
    body.theme-light #bi-subtab-cancelamentos .kpi-grid .kpi-card:nth-child(1) {
        background: linear-gradient(180deg, #FEF2F2 0%, #FFFFFF 100%) !important;
        border: 1px solid rgba(239, 68, 68, 0.25) !important;
    }

    body.theme-light #bi-subtab-cancelamentos .kpi-grid .kpi-card:nth-child(1) .kpi-label::after {
        color: #DC2626 !important;
    }

    body.theme-light #bi-subtab-cancelamentos .kpi-grid .kpi-card:nth-child(1) .kpi-value {
        color: #DC2626 !important;
    }

    body.theme-light #bi-subtab-cancelamentos .kpi-grid .kpi-card:nth-child(2) {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    body.theme-light #bi-subtab-cancelamentos .kpi-grid .kpi-card:nth-child(2) .kpi-label::after {
        color: #64748B !important;
    }

    body.theme-light #bi-subtab-cancelamentos .kpi-grid .kpi-card:nth-child(2) .kpi-value {
        color: #0F172A !important;
    }

    body.theme-light .cancelamento-card {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    }

    body.theme-light .cancelamento-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    body.theme-light .cancel-motivo-name {
        color: #0F172A !important;
    }

    body.theme-light .cancel-val {
        color: #0F172A !important;
    }

    /* Tabelas e Linhas de Dados no Modo Claro */
    body.theme-light .data-table thead th {
        background: #F8FAFC !important;
        color: #64748B !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    body.theme-light .data-table tbody td {
        color: #0F172A !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    body.theme-light .data-table tbody tr:hover {
        background: #F8FAFC !important;
    }

    /* Bottom Sheet Seleção de Loja */
    body.theme-light .mobile-bottom-sheet {
        background: #FFFFFF !important;
        border-top: 1px solid rgba(0, 0, 0, 0.10) !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12) !important;
    }

    body.theme-light .mobile-sheet-handle {
        background: #CBD5E1 !important;
    }

    body.theme-light .mobile-sheet-title {
        color: #0F172A !important;
    }

    body.theme-light .mobile-bottom-sheet .btn-secondary,
    body.theme-light #mobileBottomSheet .btn-secondary {
        background: #F1F5F9 !important;
        border: 1px solid rgba(0, 0, 0, 0.12) !important;
        color: #0F172A !important;
    }

    body.theme-light .mobile-sheet-item {
        background: #F8FAFC !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    body.theme-light .mobile-sheet-item > div > div:first-child {
        color: #0F172A !important;
    }

    body.theme-light .mobile-sheet-item.active {
        background: #EDF2F7 !important;
        border-color: rgba(22, 163, 74, 0.35) !important;
    }

    /* Modais (Sugestões do Midas & Pessoas) no Modo Claro */
    body.theme-light .modal-box-midas,
    body.theme-light .modal-midas-card,
    body.theme-light .comp-modal-card {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.12) !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    }

    body.theme-light .modal-midas-header,
    body.theme-light .comp-modal-header {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    body.theme-light .modal-midas-tag {
        color: #B45309 !important;
    }

    body.theme-light .modal-midas-title,
    body.theme-light .comp-modal-title {
        color: #0F172A !important;
    }

    body.theme-light .modal-midas-sub,
    body.theme-light .comp-modal-subtitle {
        color: #64748B !important;
    }

    body.theme-light .btn-midas-refresh {
        background: #F1F5F9 !important;
        border: 1px solid rgba(0, 0, 0, 0.12) !important;
        color: #0F172A !important;
    }

    body.theme-light .btn-modal-close-midas {
        background: #F1F5F9 !important;
        border: 1px solid rgba(0, 0, 0, 0.10) !important;
        color: #64748B !important;
    }

    body.theme-light .card-midas-sugestao,
    body.theme-light .comp-help-card {
        background: #F8FAFC !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    body.theme-light .card-midas-h4 {
        color: #0F172A !important;
    }

    body.theme-light .card-midas-desc,
    body.theme-light .dica-box-content {
        color: #1E293B !important;
    }

    body.theme-light .card-midas-dica-box {
        background: #FFFBEB !important;
        border: 1px solid rgba(245, 158, 11, 0.3) !important;
        border-left: 3px solid #D97706 !important;
    }

    body.theme-light .dica-box-label {
        color: #B45309 !important;
    }

    body.theme-light .badge-midas.badge-mes {
        background: rgba(245, 158, 11, 0.15) !important;
        border-color: rgba(217, 119, 6, 0.4) !important;
        color: #B45309 !important;
    }

    body.theme-light .badge-midas.badge-frio {
        background: rgba(14, 165, 233, 0.12) !important;
        border-color: rgba(14, 165, 233, 0.35) !important;
        color: #0284C7 !important;
    }

    body.theme-light .badge-midas.badge-queda {
        background: rgba(239, 68, 68, 0.12) !important;
        border-color: rgba(239, 68, 68, 0.35) !important;
        color: #DC2626 !important;
    }

    body.theme-light .impacto-label {
        color: #64748B !important;
    }

    body.theme-light .modal-midas-footer,
    body.theme-light .comp-modal-footer {
        border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    body.theme-light .comp-help-card-title {
        color: #0F172A !important;
    }

    body.theme-light .comp-help-card.active .comp-help-card-title {
        color: #2563EB !important;
    }

    body.theme-light .comp-help-card-desc {
        color: #475569 !important;
    }

    body.theme-light .comp-help-card-bullets {
        color: #64748B !important;
    }

    body.theme-light .comp-help-card-bullets strong {
        color: #0F172A !important;
    }

    body.theme-light .comp-help-card-footer {
        border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
        color: #2563EB !important;
    }

    /* Modal de Ajuda de Pessoas & Ticket */
    body.theme-light #compPessoasHelpModal .comp-modal-card {
        background: #FFFFFF !important;
    }

    body.theme-light #compPessoasHelpModal div[style*="rgba(15, 23, 42, 0.6)"] {
        background: #F8FAFC !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    body.theme-light #compPessoasHelpModal div[style*="rgba(30, 41, 59, 0.7)"] {
        background: #F1F5F9 !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    body.theme-light #compPessoasHelpModal p,
    body.theme-light #compPessoasHelpModal h4 {
        color: #0F172A !important;
    }

    body.theme-light #compPessoasHelpModal #compListLojasComPessoas {
        color: #0F172A !important;
    }

    body.theme-light #compPessoasHelpModal #compListLojasSemPessoas {
        color: #64748B !important;
    }

    /* Sub-navegação do BI da Loja */
    body.theme-light .bi-subtabs-nav {
        background: transparent !important;
    }

    body.theme-light .bi-subtab-btn {
        background: #FFFFFF !important;
        border: 1px solid rgba(15, 23, 42, 0.10) !important;
        color: #475569 !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.theme-light .bi-subtab-btn:hover:not(.active) {
        background: #F8FAFC !important;
        color: #0F172A !important;
        border-color: rgba(15, 23, 42, 0.16) !important;
    }

    body.theme-light .bi-subtab-btn.active {
        background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
        color: #FFFFFF !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
        font-weight: 700 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    /* Botões de Canais de Operação (Loja) */
    body.theme-light .channel-btn.btn-secondary {
        background: #F1F5F9 !important;
        border: 1px solid rgba(15, 23, 42, 0.10) !important;
        color: #475569 !important;
        border-radius: 10px !important;
        font-weight: 600 !important;
    }

    body.theme-light .channel-btn.btn-primary.active {
        background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        color: #FFFFFF !important;
        box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3) !important;
        border-radius: 10px !important;
        font-weight: 700 !important;
    }

    /* Turno Noturno no Período Personalizado */
    body.theme-light #customPeriodBoxClient .custom-period-shift-info {
        background: rgba(59, 130, 246, 0.08) !important;
        border: 1px solid rgba(59, 130, 246, 0.25) !important;
    }

    body.theme-light #customPeriodBoxClient .custom-period-shift-info div {
        color: #475569 !important;
    }

    body.theme-light #customPeriodBoxClient .custom-period-shift-info strong {
        color: #0F172A !important;
    }

    /* Textos secundários do Bottom Sheet */
    body.theme-light .mobile-sheet-item div {
        color: #0F172A !important;
    }

    body.theme-light .mobile-sheet-item small,
    body.theme-light .mobile-sheet-item .text-muted {
        color: #64748B !important;
    }
}

/* ===================================================================
   ADAPTAÇÃO ULTRA-PREMIUM PARA MODO HORIZONTAL (LANDSCAPE EM SMARTPHONES)
   Mantém 100% da experiência móvel com layout inteligente em colunas,
   topbar compacta, período em chip-scroll e KPIs alinhados sem rolagem.
   =================================================================== */
@media (orientation: landscape) and (max-height: 550px), body.is-landscape {
    /* 1. Header / Topbar ultra compacto na horizontal */
    .topbar {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 6px 14px !important;
        margin-bottom: 8px !important;
        gap: 10px !important;
        min-height: unset !important;
        border-radius: 14px !important;
    }

    .topbar .subtitle,
    .topbar-title-group .subtitle {
        display: none !important;
    }

    .topbar h1,
    #pageTitle {
        font-size: 15px !important;
        margin: 0 !important;
    }

    .main-content {
        padding: calc(var(--safe-top) + 6px) 14px calc(48px + var(--safe-bottom) + 12px) 14px !important;
    }

    /* 2. Barra de Navegação Inferior Compacta na Horizontal */
    .mobile-bottom-nav {
        height: 46px !important;
        padding: 2px 20px calc(var(--safe-bottom) + 2px) 20px !important;
    }

    .mobile-nav-btn {
        padding: 2px 10px !important;
        gap: 2px !important;
    }

    .mobile-nav-btn svg {
        width: 17px !important;
        height: 17px !important;
    }

    .mobile-nav-btn span {
        font-size: 10.5px !important;
    }

    /* 3. Barra de Seleção de Períodos: Carrossel Horizontal Elegante (Chip Scroll) */
    .period-buttons,
    #globalPeriodButtons {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 6px !important;
        margin-bottom: 8px !important;
        padding: 2px 2px !important;
        scrollbar-width: none !important;
    }

    .period-buttons::-webkit-scrollbar,
    #globalPeriodButtons::-webkit-scrollbar {
        display: none !important;
    }

    .period-buttons .period-btn,
    #globalPeriodButtons .period-btn {
        flex: 0 0 auto !important;
        height: 32px !important;
        padding: 4px 14px !important;
        font-size: 12.5px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        border-radius: 12px !important;
    }

    /* 4. Card Topo da Loja Compacto em Landscape */
    .store-bi-card {
        padding: 8px 12px !important;
        margin-bottom: 8px !important;
        border-radius: 14px !important;
    }

    .store-bi-actions-row {
        margin-bottom: 2px !important;
    }

    .store-bi-title-group {
        margin-top: 4px !important;
    }

    #biStoreTitle {
        font-size: 16px !important;
    }

    #biStoreSubtitle {
        font-size: 11px !important;
        margin-top: 2px !important;
    }

    /* 5. Grid de KPIs na Visão Geral (4 Métricas em Linha Única) */
    #overviewSection .kpi-grid {
        display: grid !important;
        grid-template-columns: 0.9fr 1.55fr 1fr 1fr !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    #overviewSection .kpi-grid .kpi-card:nth-child(1) {
        order: 1 !important;
        grid-column: span 1 !important;
        padding: 10px 8px !important;
    }

    #overviewSection .kpi-grid .kpi-card:nth-child(2) {
        order: 2 !important;
        grid-column: span 1 !important;
        padding: 10px 12px !important;
    }

    #overviewSection .kpi-grid .kpi-card:nth-child(3) {
        order: 3 !important;
        grid-column: span 1 !important;
        padding: 10px 8px !important;
    }

    #overviewSection .kpi-grid .kpi-card:nth-child(4) {
        order: 4 !important;
        grid-column: span 1 !important;
        padding: 10px 8px !important;
    }

    /* 6. Grid de KPIs no BI da Loja (3 Métricas em Linha Única) */
    #storeBiSection .kpi-grid,
    #bi-subtab-vendas .kpi-grid {
        display: grid !important;
        grid-template-columns: 1.35fr 1fr 1fr !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
    }

    #storeBiSection .kpi-grid .kpi-card:nth-child(1),
    #bi-subtab-vendas .kpi-grid .kpi-card:nth-child(1) {
        grid-column: span 1 !important;
        order: 1 !important;
        padding: 10px 12px !important;
    }

    #storeBiSection .kpi-grid .kpi-card:nth-child(2),
    #bi-subtab-vendas .kpi-grid .kpi-card:nth-child(2) {
        grid-column: span 1 !important;
        order: 2 !important;
        padding: 10px 8px !important;
    }

    #storeBiSection .kpi-grid .kpi-card:nth-child(3),
    #bi-subtab-vendas .kpi-grid .kpi-card:nth-child(3) {
        grid-column: span 1 !important;
        order: 3 !important;
        padding: 10px 8px !important;
    }

    .kpi-card {
        padding: 10px 8px !important;
        border-radius: 14px !important;
    }

    .kpi-value {
        font-size: clamp(17px, 3.5vw, 22px) !important;
    }

    #overviewSection .kpi-grid .kpi-card:nth-child(2) .kpi-value,
    #bi-subtab-vendas .kpi-grid .kpi-card:nth-child(1) .kpi-value {
        font-size: clamp(20px, 4.2vw, 27px) !important;
    }

    /* 7. Bloco de Meta & Recorde em 2 Colunas */
    .store-performance-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    .perf-card {
        padding: 10px 12px !important;
        border-radius: 14px !important;
    }

    .perf-card .perf-value {
        font-size: 19px !important;
    }

    /* 8. Controles do Comparativo Adaptados para Horizontal */
    .comparativo-header {
        margin-bottom: 8px !important;
    }

    .comparativo-title-group {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 6px !important;
    }

    .comparativo-badge-tag {
        margin-bottom: 0 !important;
        font-size: 10.5px !important;
    }

    .comparativo-title {
        font-size: 15px !important;
        margin: 0 !important;
    }

    .comparativo-controls {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin-bottom: 8px !important;
    }

    .comp-control-lbl {
        font-size: 11px !important;
        margin-bottom: 2px !important;
    }

    .comp-dropdown-trigger {
        height: 34px !important;
        padding: 4px 10px !important;
        font-size: 12.5px !important;
    }

    /* Cards de Métricas Comparativas em 3 Colunas na Horizontal */
    .comp-metrics-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1.25fr !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    .comp-metric-card.card-atual,
    .comp-metric-card.card-anterior,
    .comp-metric-card.card-delta {
        grid-column: span 1 !important;
        padding: 10px 12px !important;
        border-radius: 14px !important;
    }

    .comp-metric-card .card-metric-val {
        font-size: 18px !important;
    }

    .comp-metric-card .card-metric-title {
        font-size: 11px !important;
    }

    /* 9. Cards de Lojas na Visão Geral em Grid de 2 Colunas */
    .mobile-store-cards-container {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .mobile-store-card {
        padding: 12px 14px !important;
        border-radius: 16px !important;
    }

    .mobile-store-metrics {
        padding: 8px 6px !important;
        margin-bottom: 8px !important;
        gap: 6px !important;
    }

    /* 10. Altura de Gráficos e Donut Cards no Landscape */
    .apple-donut-card,
    .content-card {
        padding: 12px 14px !important;
        margin-bottom: 10px !important;
    }

    .chart-container,
    #chartDailyStore,
    #chartMonthlyStore {
        min-height: 180px !important;
        max-height: 220px !important;
    }
}

/* ===================================================================
   ACESSIBILIDADE: CONTRASTE ALTO E FONTES LEGÍVEIS EM MODO CLARO (MOBILE)
   Garante leitura perfeita para quem tem vista cansada ou sob luz do sol.
   Rigorosamente isolado para NUNCA vazar para a visualização de Desktop!
   =================================================================== */
@media (max-width: 768px), (max-height: 550px) and (orientation: landscape), (max-width: 1024px) and (orientation: landscape) and (pointer: coarse) {
    body.mobile-mode.theme-light .mobile-store-card-title {
        color: #0F172A !important;
    }

    body.mobile-mode.theme-light .mobile-store-card-sub {
        color: #475569 !important;
    }

    body.mobile-mode.theme-light .mobile-store-metric-item small {
        color: #475569 !important;
    }

    body.mobile-mode.theme-light .mobile-store-metric-item strong {
        color: #0F172A !important;
    }

    body.mobile-mode.theme-light .metric-val-vendas {
        color: #059669 !important;
    }

    body.mobile-mode.theme-light .mobile-store-footer-meta {
        color: #475569 !important;
    }

    body.mobile-mode.theme-light #overviewSection .kpi-grid .kpi-card:nth-child(1) .kpi-label::after,
    body.mobile-mode.theme-light #overviewSection .kpi-grid .kpi-card:nth-child(4) .kpi-label::after,
    body.mobile-mode.theme-light #bi-subtab-vendas .kpi-grid .kpi-card:nth-child(3) .kpi-label::after {
        color: #475569 !important;
    }

    body.mobile-mode.theme-light #overviewSection .kpi-grid .kpi-card:nth-child(2) .kpi-label::after,
    body.mobile-mode.theme-light #bi-subtab-vendas .kpi-grid .kpi-card:nth-child(1) .kpi-label::after {
        color: #B45309 !important; /* Dourado / Âmbar de alto contraste no fundo branco */
    }

    body.mobile-mode.theme-light .kpi-value {
        color: #0F172A !important;
    }

    body.mobile-mode.theme-light .kpi-subval .kpi-sub-val {
        color: #0F172A !important;
    }

    /* Pessoas e Ticket Médio no Modo Claro Mobile */
    body.mobile-mode.theme-light #overviewSection .kpi-grid.has-pessoas .kpi-card:nth-child(4) .kpi-label::after,
    body.mobile-mode.theme-light #bi-subtab-vendas .kpi-grid.has-pessoas .kpi-card:nth-child(3) .kpi-label::after {
        color: #0284C7 !important;
    }
    body.mobile-mode.theme-light #overviewSection .kpi-grid.has-pessoas #globalTicket,
    body.mobile-mode.theme-light #bi-subtab-vendas .kpi-grid.has-pessoas #biTicketMedio {
        color: #0284C7 !important;
        font-weight: 800 !important;
    }

    body.mobile-mode.theme-light #overviewSection .kpi-grid:not(.has-pessoas) .kpi-card:nth-child(4) .kpi-label::after,
    body.mobile-mode.theme-light #bi-subtab-vendas .kpi-grid:not(.has-pessoas) .kpi-card:nth-child(3) .kpi-label::after {
        color: #7C3AED !important;
    }
    body.mobile-mode.theme-light #overviewSection .kpi-grid:not(.has-pessoas) #globalTicket,
    body.mobile-mode.theme-light #bi-subtab-vendas .kpi-grid:not(.has-pessoas) #biTicketMedio {
        color: #7C3AED !important;
        font-weight: 800 !important;
    }
}

/* ===================================================================
   TRIAL 30 DIAS: BANNER DE AVISO (ÚLTIMOS 7 DIAS) E BLOQUEIO TOTAL
   =================================================================== */

/* Banner de Alerta nos Últimos 7 Dias */
.trial-alert-banner {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.18) 0%, rgba(16, 185, 129, 0.12) 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.35);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 900;
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    animation: fadeInTrial 0.4s ease-out;
}

@keyframes fadeInTrial {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.trial-alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #F8FAFC;
    flex: 1;
}

.trial-alert-icon {
    font-size: 18px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}

.trial-alert-text strong {
    color: #FBBF24;
}

.trial-alert-link {
    color: #34D399;
    font-weight: 700;
    text-decoration: underline;
    margin-left: 4px;
    cursor: pointer;
    transition: color 0.2s;
}

.trial-alert-link:hover {
    color: #6EE7B7;
}

.trial-alert-close {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.trial-alert-close:hover {
    color: #F8FAFC;
}

/* Tela de Bloqueio Total (Hard Wall: Teste Expirado) */
.trial-expired-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    z-index: 999999;
    background: radial-gradient(circle at 50% 25%, rgba(245, 158, 11, 0.15), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.08), transparent 45%),
                #080B11;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
    overflow-y: auto;
    animation: fadeInTrial 0.5s ease-out;
}

.trial-expired-screen,
.trial-expired-screen *,
.trial-expired-screen *::before,
.trial-expired-screen *::after {
    box-sizing: border-box;
}

.trial-expired-card {
    max-width: 440px;
    width: 100%;
    margin: auto;
    background: rgba(17, 24, 39, 0.96);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 26px;
    padding: 32px 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 45px rgba(245, 158, 11, 0.16);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    text-align: center;
    position: relative;
}

@media (max-width: 480px) {
    .trial-expired-screen {
        padding: 14px 10px;
    }
    .trial-expired-card {
        padding: 26px 16px;
        border-radius: 22px;
    }
    .trial-expired-title {
        font-size: 21px;
    }
    .trial-expired-sub {
        font-size: 13.5px;
    }
    .btn-trial-whatsapp {
        font-size: 14.5px;
        padding: 13px 18px;
    }
}

.trial-expired-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #FBBF24;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.trial-expired-title {
    font-size: 24px;
    font-weight: 800;
    color: #F8FAFC;
    line-height: 1.3;
    margin-bottom: 14px;
}

.trial-expired-title .grad-gold {
    background: linear-gradient(135deg, #F59E0B, #FDE68A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trial-expired-sub {
    font-size: 14.5px;
    color: #94A3B8;
    line-height: 1.5;
    margin-bottom: 24px;
}

.trial-expired-features {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 26px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    text-align: left;
}

.trial-feat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: #E2E8F0;
    font-weight: 500;
}

.trial-feat-item .feat-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34D399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.trial-expired-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-trial-whatsapp {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #FFFFFF !important;
    text-decoration: none !important;
    padding: 15px 22px;
    border-radius: 14px;
    font-size: 15.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-trial-whatsapp:hover, .btn-trial-whatsapp:active {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(16, 185, 129, 0.5);
}

.btn-trial-logout {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94A3B8;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-trial-logout:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #F8FAFC;
}

/* Modal de Assinatura ao Clicar no Banner */
.modal-trial-content {
    max-width: 480px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
}

/* ===================================================================
   OTIMIZAÇÃO EXECUTIVA DESKTOP (PC / NOTEBOOK >= 1025px)
   100% ISOLADO: NÃO AFETA O MOBILE (Zero regressão para smartphones)
   Melhora enquadramento, elimina espaços ociosos e aumenta fontes.
   =================================================================== */
@media (min-width: 1025px) {

    /* Logo & Cabeçalho no Desktop - Preenchendo todo o espaço disponível */
    .sidebar-header {
        padding: 8px 10px !important;
        min-height: 125px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .sidebar-logo {
        height: auto !important;
        max-height: 120px !important;
        width: 100% !important;
        max-width: 240px !important;
        object-fit: contain !important;
        display: block !important;
        filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6)) !important;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .sidebar-logo:hover {
        transform: scale(1.03) !important;
    }

    .login-header {
        padding-top: 4px !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }

    .login-logo {
        height: auto !important;
        max-height: 160px !important;
        width: 100% !important;
        max-width: 360px !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto 16px auto !important;
        filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6)) !important;
    }

    /* -------------------------------------------------------------
       1. MÉTRICAS COMPARATIVAS (Consolidado da Rede & Comparativo)
       ------------------------------------------------------------- */
    .apple-comparativo-card {
        padding: 24px 28px !important;
        margin-bottom: 24px !important;
        border-radius: 18px !important;
    }

    .comparativo-header {
        margin-bottom: 20px !important;
        gap: 16px !important;
    }

    .comparativo-title {
        font-size: 20px !important;
        font-weight: 800 !important;
        letter-spacing: -0.4px !important;
    }

    .comparativo-badge-tag {
        font-size: 11px !important;
        padding: 3px 10px !important;
        letter-spacing: 0.6px !important;
    }

    .comparativo-subtitle {
        font-size: 13px !important;
    }

    /* Controles e Selects */
    .comp-control-lbl {
        font-size: 12px !important;
        font-weight: 800 !important;
        color: #94A3B8 !important;
    }

    .comparativo-controls select,
    #compPeriodSelect,
    #compVisualSelect {
        font-size: 13.5px !important;
        font-weight: 700 !important;
        padding: 8px 14px !important;
        border-radius: 9px !important;
    }

    /* Indicador de Datas (Mês Atual vs Mês Anterior) - Em cima de cada respectivo card */
    .comp-period-indicator {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        width: 100% !important;
        margin: 6px 0 16px 0 !important;
        position: relative !important;
        align-items: stretch !important;
    }

    .comp-date-vs-badge {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        background: #0B0F19 !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        color: #94A3B8 !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        padding: 5px 13px !important;
        border-radius: 20px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7) !important;
        z-index: 10 !important;
        pointer-events: none !important;
    }

    .comp-date-card {
        padding: 13px 22px !important;
        border-radius: 14px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 16px !important;
        box-sizing: border-box !important;
        min-height: 56px !important;
        background: rgba(15, 23, 42, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .comp-date-card.card-atual {
        border-color: rgba(16, 185, 129, 0.35) !important;
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%) !important;
    }

    .comp-date-card.card-base {
        border-color: rgba(255, 255, 255, 0.12) !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(15, 23, 42, 0.6) 100%) !important;
    }

    .comp-date-header {
        display: flex !important;
        align-items: center !important;
        gap: 9px !important;
        padding-right: 16px !important;
        border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    .comp-date-dot {
        width: 9px !important;
        height: 9px !important;
        border-radius: 50% !important;
    }

    .comp-date-dot.green {
        background: #10B981 !important;
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.6) !important;
    }

    .comp-date-dot.gray {
        background: #94A3B8 !important;
        box-shadow: 0 0 8px rgba(148, 163, 184, 0.4) !important;
    }

    .comp-date-tag {
        font-size: 14px !important;
        font-weight: 800 !important;
        letter-spacing: 0.6px !important;
        text-transform: uppercase !important;
    }

    .comp-date-card.card-atual .comp-date-tag {
        color: #34D399 !important;
    }

    .comp-date-card.card-base .comp-date-tag {
        color: #E2E8F0 !important;
    }

    .comp-date-range {
        font-size: 18px !important;
        font-weight: 800 !important;
        color: #FFFFFF !important;
        letter-spacing: 0.3px !important;
    }

    /* Grid de Métricas (Faturamento Atual, Comparado e Delta) */
    .comp-metrics-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        margin-bottom: 20px !important;
    }

    .comp-metric-card {
        padding: 22px 26px !important;
        border-radius: 18px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        min-height: 195px !important;
        box-sizing: border-box !important;
    }

    .comp-metric-card .comp-card-top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 0 !important;
    }

    .comp-metric-tag {
        font-size: 13px !important;
        font-weight: 800 !important;
        letter-spacing: 0.5px !important;
    }

    .comp-card-date-sub {
        font-size: 12.5px !important;
        font-weight: 600 !important;
        color: #94A3B8 !important;
    }

    /* O VALOR PRINCIPAL — 34px BOLD (Sobrescrevendo os 14.5px específicos) */
    .comp-metric-card.card-atual .comp-metric-value,
    .comp-metric-card.card-anterior .comp-metric-value,
    .comp-metric-card .comp-metric-value,
    .comp-metric-value {
        font-size: 34px !important;
        font-weight: 800 !important;
        letter-spacing: -0.6px !important;
        line-height: 1.15 !important;
        margin: 2px 0 8px 0 !important;
        display: block !important;
    }

    .comp-metric-card.card-atual .comp-metric-value {
        color: #10B981 !important;
    }

    .comp-metric-card.card-anterior .comp-metric-value {
        color: #FFFFFF !important;
    }

    /* Badges Internos (Vendas & Ticket) - Linha horizontal centralizada */
    .comp-metric-sub {
        width: 100% !important;
        margin: 0 !important;
        display: block !important;
    }

    .comp-vendas-badge {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 16px !important;
        padding: 10px 16px !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.035) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-sizing: border-box !important;
        width: 100% !important;
        min-height: 42px !important;
    }

    .comp-vendas-badge .comp-badge-item {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 13.5px !important;
        color: #94A3B8 !important;
    }

    .comp-vendas-badge .comp-badge-item .val {
        font-size: 15px !important;
        font-weight: 800 !important;
        color: #FFFFFF !important;
    }

    .comp-vendas-badge .comp-badge-item .lbl {
        font-size: 13px !important;
        color: #94A3B8 !important;
        font-weight: 600 !important;
    }

    .comp-vendas-badge .comp-badge-item .comp-ico {
        font-size: 14px !important;
    }

    .comp-vendas-badge .comp-badge-sep {
        display: inline !important;
        color: rgba(255, 255, 255, 0.25) !important;
        margin: 0 4px !important;
    }

    /* Badge de Pessoas & Tkt Pessoa - Linha horizontal centralizada */
    .comp-pessoas-sub {
        margin-top: 4px !important;
        width: 100% !important;
        display: block !important;
    }

    .comp-pessoas-badge {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        border-radius: 10px !important;
        background: rgba(56, 189, 248, 0.06) !important;
        border: 1px solid rgba(56, 189, 248, 0.2) !important;
        box-sizing: border-box !important;
        width: 100% !important;
        min-height: 42px !important;
        gap: 16px !important;
    }

    .comp-pessoas-badge .comp-pessoas-row-top,
    .comp-pessoas-badge .comp-pessoas-row-bottom {
        display: inline-flex !important;
        align-items: center !important;
        width: auto !important;
        gap: 6px !important;
    }

    .comp-pessoas-badge .comp-badge-item {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 13.5px !important;
    }

    .comp-pessoas-badge .comp-badge-item .val {
        font-size: 15px !important;
        font-weight: 800 !important;
        color: #FFFFFF !important;
    }

    .comp-pessoas-badge .comp-badge-item .lbl {
        font-size: 13px !important;
        color: #7DD3FC !important;
        font-weight: 600 !important;
    }

    .btn-help-pessoas {
        width: 18px !important;
        height: 18px !important;
        font-size: 11px !important;
        margin-left: 4px !important;
    }

    /* Card Delta (Variação Real da Rede) */
    .comp-metric-card.card-delta {
        grid-column: 1 / -1 !important;
        padding: 24px 28px !important;
        border-radius: 18px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .comp-metric-card.card-delta .comp-metric-tag.var {
        font-size: 13.5px !important;
        font-weight: 800 !important;
    }

    .comp-metric-card.card-delta .comp-metric-delta-row {
        margin: 0 !important;
        gap: 16px !important;
        display: flex !important;
        align-items: center !important;
    }

    .comp-metric-card.card-delta .comp-metric-delta span:first-child {
        font-size: 34px !important;
        font-weight: 800 !important;
        letter-spacing: -0.6px !important;
        line-height: 1.15 !important;
    }

    .comp-metric-card.card-delta .comp-badge-pill {
        font-size: 14px !important;
        font-weight: 800 !important;
        padding: 5px 14px !important;
        border-radius: 8px !important;
    }

    /* 3 Chips de Variação (Cupons, Tkt Médio, Pessoas) - Centralizados e Uniformes */
    .comp-delta-chips {
        display: grid !important;
        gap: 16px !important;
        margin-top: 0 !important;
        align-items: stretch !important;
    }

    .comp-delta-chips.has-3-chips {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .comp-delta-chips.has-2-chips {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .comp-delta-chip {
        padding: 16px 20px !important;
        border-radius: 14px !important;
        background: rgba(0, 0, 0, 0.28) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        min-height: 82px !important;
        box-sizing: border-box !important;
    }

    .comp-delta-chip .comp-chip-lbl {
        font-size: 12px !important;
        font-weight: 800 !important;
        letter-spacing: 0.6px !important;
        color: #94A3B8 !important;
        text-transform: uppercase !important;
        margin-bottom: 6px !important;
        text-align: center !important;
    }

    .comp-delta-chip .comp-chip-val {
        font-size: 22px !important;
        font-weight: 800 !important;
        letter-spacing: -0.4px !important;
        font-variant-numeric: tabular-nums !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }

    .comp-delta-chip .comp-chip-pct {
        font-size: 14px !important;
        font-weight: 700 !important;
        display: inline !important;
        margin-top: 0 !important;
        margin-left: 4px !important;
    }

    /* Termômetro e Divergentes */
    .bullet-thermometer-box {
        padding: 18px 22px !important;
        border-radius: 14px !important;
        margin-bottom: 20px !important;
    }

    .bullet-title {
        font-size: 15.5px !important;
        font-weight: 800 !important;
    }

    .bullet-sub {
        font-size: 12.5px !important;
        color: #94A3B8 !important;
        margin-top: 3px !important;
    }

    .bullet-pct-badge {
        font-size: 13.5px !important;
        font-weight: 800 !important;
        padding: 5px 12px !important;
        border-radius: 8px !important;
    }

    .bullet-track {
        height: 12px !important;
        border-radius: 6px !important;
        margin: 12px 0 8px 0 !important;
    }

    .bullet-legend-row {
        font-size: 13px !important;
        font-weight: 600 !important;
    }

    /* Tabela Divergente (Barras por Loja) */
    .diverg-table-wrap {
        gap: 8px !important;
    }

    .diverg-header-row {
        padding: 0 14px 8px 14px !important;
        font-size: 11.5px !important;
        font-weight: 800 !important;
        letter-spacing: 0.5px !important;
    }

    .diverg-col-store-hdr {
        width: 250px !important;
    }

    .diverg-col-diff-hdr {
        width: 140px !important;
        font-size: 11.5px !important;
    }

    .diverg-header-axis-labels {
        font-size: 11px !important;
        padding: 0 16px !important;
    }

    .diverg-row {
        padding: 10px 14px !important;
        border-radius: 10px !important;
    }

    .diverg-store-label {
        width: 250px !important;
        gap: 10px !important;
    }

    .diverg-store-name {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #FFFFFF !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    .diverg-bar-container {
        height: 24px !important;
        padding: 0 14px !important;
    }

    .diverg-bar {
        height: 18px !important;
        border-radius: 5px !important;
        font-size: 11.5px !important;
        font-weight: 800 !important;
        padding: 0 8px !important;
    }

    .diverg-diff-val {
        width: 140px !important;
        font-size: 14px !important;
        font-weight: 800 !important;
    }

    /* -------------------------------------------------------------
       COLUNAS & DELTA NO DESKTOP (TODA A REDE E LOJAS)
       ------------------------------------------------------------- */
    .comp-visual-card.colunas-card {
        padding: 22px 24px !important;
        border-radius: 18px !important;
        background: rgba(11, 15, 25, 0.75) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5) !important;
        margin-bottom: 24px !important;
    }

    .comp-visual-card.colunas-card .comp-visual-card-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        margin-bottom: 24px !important;
        padding-bottom: 16px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
        gap: 20px !important;
    }

    .comp-visual-card.colunas-card .comp-visual-title {
        font-size: 18px !important;
        font-weight: 800 !important;
        color: #FFFFFF !important;
        letter-spacing: -0.3px !important;
        margin: 0 !important;
    }

    .comp-visual-card.colunas-card .comp-visual-desc {
        font-size: 13px !important;
        color: #94A3B8 !important;
        margin-top: 4px !important;
    }

    .comp-visual-card.colunas-card .comp-visual-legend {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 18px !important;
        flex-shrink: 0 !important;
    }

    .comp-visual-card.colunas-card .legend-item {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #CBD5E1 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .comp-visual-card.colunas-card .legend-dot {
        width: 10px !important;
        height: 10px !important;
        border-radius: 50% !important;
    }

    .comp-visual-card.colunas-card .legend-dot.green {
        background: #10B981 !important;
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.7) !important;
    }

    .comp-visual-card.colunas-card .legend-dot.gray {
        background: #94A3B8 !important;
        box-shadow: 0 0 8px rgba(148, 163, 184, 0.5) !important;
    }

    /* Grid das Lojas na Rede (Colunas & Delta) - Ocupa 100% da largura, adaptável e proporcional */
    .comp-columns-grid,
    .comp-columns-grid.comp-columns-grid-rede {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
        gap: 18px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 0 12px 0 !important;
        overflow-x: visible !important;
    }

    /* Se for ritmo diário com muitos dias no desktop, permite scroll suave com cards confortáveis */
    .comp-columns-grid.comp-columns-grid-diario {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 12px !important;
        overflow-x: auto !important;
        padding-bottom: 12px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .comp-columns-grid.comp-columns-grid-diario .comp-col-card {
        min-width: 140px !important;
        max-width: 160px !important;
        flex: 0 0 auto !important;
    }

    /* Card individual da Loja / Mês */
    .comp-col-card {
        min-width: 0 !important;
        max-width: none !important;
        width: 100% !important;
        flex: 1 1 0% !important;
        background: rgba(15, 23, 42, 0.65) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 16px !important;
        padding: 18px 14px 16px 14px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
        transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    }

    .comp-col-card:hover {
        transform: translateY(-5px) !important;
        border-color: rgba(59, 130, 246, 0.5) !important;
        background: rgba(26, 38, 64, 0.75) !important;
        box-shadow: 0 14px 30px -6px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.2) !important;
    }

    /* Topo do Card: Variação Real (Delta) */
    .comp-bridge-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 5px !important;
        margin-bottom: 16px !important;
        min-height: 52px !important;
    }

    .comp-col-bridge {
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        padding: 6px 14px !important;
        border-radius: 20px !important;
        font-size: 13.5px !important;
        font-weight: 800 !important;
        letter-spacing: -0.2px !important;
    }

    .comp-col-bridge.pos {
        background: rgba(16, 185, 129, 0.16) !important;
        color: #34D399 !important;
        border: 1px solid rgba(16, 185, 129, 0.4) !important;
        box-shadow: 0 0 12px rgba(16, 185, 129, 0.2) !important;
    }

    .comp-col-bridge.neg {
        background: rgba(239, 68, 68, 0.16) !important;
        color: #F87171 !important;
        border: 1px solid rgba(239, 68, 68, 0.4) !important;
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.2) !important;
    }

    .comp-bridge-diff {
        font-size: 12.5px !important;
        font-weight: 700 !important;
        color: #CBD5E1 !important;
        letter-spacing: -0.2px !important;
    }

    /* Palco das Colunas (Barras) */
    .comp-col-stage {
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        gap: 16px !important;
        width: 100% !important;
        height: 170px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding: 0 6px 8px 6px !important;
        margin-bottom: 14px !important;
        box-sizing: border-box !important;
    }

    .comp-col-pillar-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex: 1 !important;
        height: 100% !important;
        min-width: 0 !important;
    }

    /* Valores Acima das Colunas */
    .comp-col-val {
        font-size: 12.5px !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        margin-bottom: 6px !important;
        letter-spacing: -0.3px !important;
        text-align: center !important;
        width: 100% !important;
    }

    .comp-col-val-atual {
        color: #34D399 !important;
        text-shadow: 0 0 12px rgba(52, 211, 153, 0.3) !important;
    }

    .comp-col-val.text-muted {
        color: #94A3B8 !important;
    }

    /* Pilares das Colunas */
    .comp-col-pillar {
        width: 44px !important;
        max-width: 52px !important;
        border-radius: 6px 6px 0 0 !important;
        transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .comp-col-pillar.atual {
        background: linear-gradient(180deg, #10B981 0%, #059669 100%) !important;
        box-shadow: 0 0 14px rgba(16, 185, 129, 0.45) !important;
    }

    .comp-col-pillar.comp {
        background: linear-gradient(180deg, rgba(148, 163, 184, 0.5) 0%, rgba(100, 116, 139, 0.35) 100%) !important;
        box-shadow: 0 0 8px rgba(148, 163, 184, 0.2) !important;
    }

    .comp-col-sub-lbl {
        font-size: 11px !important;
        color: #64748B !important;
        text-transform: uppercase !important;
        font-weight: 700 !important;
        margin-top: 6px !important;
        letter-spacing: 0.5px !important;
    }

    /* Informações da Loja no Rodapé do Card */
    .comp-col-store-info {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 9px !important;
        width: 100% !important;
        min-height: 46px !important;
        padding: 4px 2px 2px 2px !important;
        box-sizing: border-box !important;
    }

    .comp-col-rank {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 24px !important;
        height: 24px !important;
        border-radius: 50% !important;
        font-size: 11.5px !important;
        font-weight: 800 !important;
        color: #94A3B8 !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        flex-shrink: 0 !important;
    }

    .comp-col-rank.first {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.2)) !important;
        border: 1px solid rgba(245, 158, 11, 0.6) !important;
        color: #F59E0B !important;
        font-size: 12px !important;
        box-shadow: 0 0 10px rgba(245, 158, 11, 0.3) !important;
    }

    /* Nome da Loja Completo - NUNCA CORTADO COM RETICÊNCIAS NO DESKTOP */
    .comp-col-name {
        font-size: 13px !important;
        font-weight: 800 !important;
        color: #FFFFFF !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.3 !important;
        text-align: left !important;
        letter-spacing: -0.2px !important;
        word-break: normal !important;
    }

    /* -------------------------------------------------------------
       2. BI DENTRO DE UMA LOJA (#storeBiSection)
       ------------------------------------------------------------- */

    /* Card Topo da Loja (Otimização de Espaço Ocioso & Enquadramento) */
    #storeBiSection .store-bi-card {
        padding: 18px 24px !important;
        margin-bottom: 18px !important;
        border-radius: 18px !important;
    }

    #storeBiSection .store-bi-header-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 20px !important;
        flex-wrap: nowrap !important;
    }

    #storeBiSection .store-bi-actions-row {
        display: contents !important;
    }

    #storeBiSection #btnVoltarRede {
        order: 1 !important;
        flex-shrink: 0 !important;
        padding: 9px 16px !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
    }

    #storeBiSection .store-bi-title-group {
        order: 2 !important;
        flex: 1 !important;
        min-width: 0 !important;
        margin-top: 0 !important;
        margin-left: 6px !important;
    }

    #storeBiSection #biStoreTitle {
        font-size: 22px !important;
        font-weight: 800 !important;
        letter-spacing: -0.4px !important;
        color: #FFFFFF !important;
        white-space: nowrap !important;
    }

    #storeBiSection #biStoreBadge {
        font-size: 11px !important;
        padding: 3px 8px !important;
        font-weight: 800 !important;
    }

    #storeBiSection #biStoreSubtitle {
        font-size: 13px !important;
        color: var(--apple-gray-1) !important;
        margin-top: 2px !important;
    }

    #storeBiSection .store-bi-actions-right {
        order: 3 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    #storeBiSection #btnSugestoesMidasDesktop {
        padding: 6px 14px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        border-radius: 9px !important;
    }

    #storeBiSection .store-bi-refresh-group {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    #storeBiSection #biCacheTimeLabel {
        font-size: 12px !important;
        color: var(--apple-gray-1) !important;
    }

    #storeBiSection .btn-apple-refresh {
        padding: 8px 14px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        border-radius: 9px !important;
    }

    /* Sub-Navegação (Vendas, Pagamentos, Cancelamentos, Caixas) */
    .bi-subtabs-nav {
        padding: 6px !important;
        gap: 8px !important;
        margin-bottom: 18px !important;
        border-radius: 14px !important;
    }

    .bi-subtab-btn {
        padding: 10px 18px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        letter-spacing: -0.2px !important;
    }

    .bi-subtab-btn .subtab-icon {
        font-size: 17px !important;
    }

    /* Grid de KPIs no BI da Loja (3 Cards) */
    #storeBiSection .kpi-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
        margin-bottom: 18px !important;
    }

    #storeBiSection .kpi-grid .kpi-card {
        padding: 16px 18px !important;
        border-radius: 16px !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        min-height: 98px !important;
        min-width: 0 !important;
    }

    #storeBiSection .kpi-grid .kpi-icon {
        width: 48px !important;
        height: 48px !important;
        border-radius: 14px !important;
        font-size: 24px !important;
        flex-shrink: 0 !important;
    }

    #storeBiSection .kpi-grid .kpi-info {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    #storeBiSection .kpi-grid .kpi-label {
        font-size: clamp(11px, 0.92vw, 13px) !important;
        font-weight: 700 !important;
        color: #94A3B8 !important;
        letter-spacing: 0.2px !important;
        margin-bottom: 4px !important;
        white-space: nowrap !important;
    }

    #storeBiSection .kpi-grid .kpi-value {
        font-size: clamp(19px, 1.85vw, 28px) !important;
        font-weight: 800 !important;
        letter-spacing: -0.5px !important;
        line-height: 1.15 !important;
        color: #FFFFFF !important;
    }

    #storeBiSection #biFaturamento {
        font-size: clamp(18px, 1.75vw, 28px) !important;
    }

    #storeBiSection .kpi-grid .kpi-subval {
        margin-top: 6px !important;
        padding-top: 6px !important;
        font-size: 13px !important;
        gap: 8px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    #storeBiSection .kpi-grid .kpi-sub-tag {
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #94A3B8 !important;
        letter-spacing: 0.5px !important;
    }

    #storeBiSection .kpi-grid .kpi-sub-val {
        font-size: 13.5px !important;
        font-weight: 800 !important;
        color: #FFFFFF !important;
    }

    /* Card de Recorde Histórico em Tela Cheia (Enquadramento Horizontal Inteligente) */
    .store-performance-grid {
        margin-bottom: 18px !important;
    }

    .store-performance-grid.single-card {
        grid-template-columns: 1fr !important;
    }

    .perf-card.is-full-width {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 18px 26px !important;
        border-radius: 16px !important;
        gap: 14px 24px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .perf-card.is-full-width .perf-card-header {
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        width: auto !important;
        flex: 0 0 auto !important;
    }

    .perf-card.is-full-width .perf-card-tag {
        font-size: 12px !important;
        font-weight: 800 !important;
        letter-spacing: 0.6px !important;
    }

    .perf-card.is-full-width .perf-badge-gold {
        font-size: 11px !important;
        padding: 3px 10px !important;
    }

    .perf-card.is-full-width .perf-card-body {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: baseline !important;
        gap: 6px 14px !important;
        width: auto !important;
        min-width: 0 !important;
        flex: 1 1 240px !important;
        justify-content: center !important;
    }

    .perf-card.is-full-width .perf-value {
        font-size: 28px !important;
        font-weight: 800 !important;
        letter-spacing: -0.5px !important;
        width: auto !important;
        margin: 0 !important;
    }

    .perf-card.is-full-width .perf-sub {
        font-size: 14px !important;
        color: #CBD5E1 !important;
        font-weight: 600 !important;
        margin-bottom: 0 !important;
        width: auto !important;
    }

    .perf-card.is-full-width .perf-progress-bg {
        display: none !important;
    }

    .perf-card.is-full-width .perf-footer {
        font-size: 13.5px !important;
        color: #94A3B8 !important;
        font-weight: 600 !important;
        text-align: right !important;
        width: auto !important;
        flex: 0 1 auto !important;
    }

    /* Caso os 2 cards (Meta + Recorde) estejam visíveis lado a lado */
    .store-performance-grid:not(.single-card) .perf-card {
        padding: 18px 22px !important;
        border-radius: 16px !important;
    }

    .store-performance-grid:not(.single-card) .perf-value {
        font-size: 24px !important;
        font-weight: 800 !important;
    }

    .store-performance-grid:not(.single-card) .perf-sub {
        font-size: 13px !important;
    }

    /* Donut Cards (Mix de Meios de Pagamento & Top Produtos) */
    .apple-donut-card {
        padding: 22px 24px !important;
        border-radius: 18px !important;
    }

    .apple-donut-card .card-header h4,
    .apple-donut-card .card-header h3 {
        font-size: 18px !important;
        font-weight: 800 !important;
        letter-spacing: -0.3px !important;
    }

    .apple-donut-card .card-header .card-desc {
        font-size: 13px !important;
        color: var(--apple-gray-1) !important;
    }

    .btn-donut-action {
        font-size: 13px !important;
        padding: 7px 14px !important;
    }

    .donut-layout-container {
        padding: 16px 12px 8px 12px !important;
        gap: 36px !important;
    }

    .donut-chart-wrapper {
        width: 220px !important;
        height: 220px !important;
    }

    .donut-center-glass {
        width: 132px !important;
        height: 132px !important;
    }

    .donut-center-main {
        font-size: 16px !important;
        font-weight: 800 !important;
    }

    .donut-center-sub {
        font-size: 11px !important;
    }

    .donut-legend-list {
        gap: 10px !important;
    }

    .donut-legend-item {
        padding: 10px 16px !important;
        border-radius: 12px !important;
        gap: 12px !important;
    }

    .donut-legend-name {
        font-size: 14px !important;
        font-weight: 700 !important;
    }

    .donut-legend-pct {
        font-size: 12px !important;
        font-weight: 800 !important;
        padding: 3px 8px !important;
    }

    .donut-legend-val {
        font-size: 14px !important;
        font-weight: 800 !important;
    }

    /* MODO CLARO DESKTOP */
    body.theme-light .comp-delta-chip {
        background: rgba(15, 23, 42, 0.04) !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
    }

    body.theme-light .comp-delta-chip .comp-chip-lbl {
        color: #64748B !important;
    }

    body.theme-light .diverg-store-name {
        color: #0F172A !important;
    }

    body.theme-light #storeBiSection #biStoreTitle {
        color: #0F172A !important;
    }

    body.theme-light #storeBiSection .kpi-grid .kpi-value {
        color: #0F172A !important;
    }

    body.theme-light #storeBiSection .kpi-grid .kpi-sub-val {
        color: #0F172A !important;
    }

    body.theme-light .perf-card.is-full-width .perf-sub {
        color: #475569 !important;
    }

    body.theme-light .perf-card.is-full-width .perf-footer {
        color: #475569 !important;
    }

    body.theme-light .donut-legend-name,
    body.theme-light .donut-legend-val {
        color: #0F172A !important;
    }

    body.theme-light .donut-center-main {
        color: #0F172A !important;
    }

    /* MODO CLARO - COLUNAS & DELTA */
    body.theme-light .comp-visual-card.colunas-card {
        background: #FFFFFF !important;
        border-color: rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06) !important;
    }

    body.theme-light .comp-visual-card.colunas-card .comp-visual-title {
        color: #0F172A !important;
    }

    body.theme-light .comp-visual-card.colunas-card .comp-col-card {
        background: #F8FAFC !important;
        border-color: rgba(0, 0, 0, 0.06) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    }

    body.theme-light .comp-visual-card.colunas-card .comp-col-card:hover {
        background: #FFFFFF !important;
        border-color: rgba(59, 130, 246, 0.35) !important;
        box-shadow: 0 10px 22px -4px rgba(0, 0, 0, 0.1) !important;
    }

    body.theme-light .comp-visual-card.colunas-card .comp-bridge-diff {
        color: #475569 !important;
    }

    body.theme-light .comp-visual-card.colunas-card .comp-col-name {
        color: #0F172A !important;
    }
}

/* ===================================================================
   PWA INSTALL PROMPT — ESTILO XBOX CLOUD GAMING (iOS SAFARI & ANDROID)
   Apresentação visual idêntica: bottom sheet elegante, ícone em destaque,
   passo a passo para iOS e acionador para Android.
   =================================================================== */

.pwa-install-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    pointer-events: none;
}

.pwa-install-overlay.pwa-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pwa-install-card {
    background: linear-gradient(180deg, #101626 0%, #070B14 100%);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-bottom: none;
    border-radius: 28px 28px 0 0;
    width: 100%;
    max-width: 480px;
    padding: 24px 20px calc(max(24px, env(safe-area-inset-bottom, 24px))) 20px;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.9);
    position: relative;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    text-align: center;
    color: #F8FAFC;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Plus Jakarta Sans', sans-serif;
}

.pwa-install-overlay.pwa-visible .pwa-install-card {
    transform: translateY(0);
}

.pwa-install-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #94A3B8;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
    padding: 0;
}

.pwa-install-close:hover,
.pwa-install-close:active {
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    transform: scale(0.95);
}

.pwa-install-badge {
    margin: 4px auto 14px auto;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pwa-app-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.pwa-install-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin: 0 0 6px 0;
    color: #FFFFFF;
}

.pwa-install-desc {
    font-size: 13.5px;
    line-height: 1.45;
    color: #94A3B8;
    margin: 0 auto 16px auto;
    max-width: 330px;
}

/* Instruções iOS (Safari) */
.pwa-ios-instructions {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px 14px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 6px;
    text-align: left;
}

.pwa-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-step-num {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
    color: #070B14;
    font-size: 12px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pwa-step-text {
    font-size: 13px;
    color: #E2E8F0;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.pwa-step-text strong {
    color: #FFFFFF;
}

.pwa-ios-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 2px 5px;
    color: #38BDF8;
    vertical-align: middle;
}

.pwa-safari-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #38BDF8;
    margin-top: 6px;
    animation: pwaBounce 1.6s infinite ease-in-out;
}

@keyframes pwaBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

/* Android Action Button */
.btn-pwa-install {
    width: 100%;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 4px;
}

.btn-pwa-install:active {
    transform: scale(0.98);
}
\n
