/**
 * Design tokens — fonte única de cores, espaçamento e transições do ERP.
 */
:root {
    --azul-profundo: #060b14;
    --azul-marca: #0b1c35;
    --azul-sutil: #2b5c92;
    --azul-hover: #3d6fa8;
    --texto-principal: #0f172a;
    --texto-secundario: #64748b;
    --branco: #ffffff;
    --sucesso: #10b981;
    --erro: #ef4444;
    --aviso: #f59e0b;
    --alerta: #f59e0b;
    --info: #3b82f6;
    --fiscal: #1d4ed8;
    --wpp: #25d366;
    --borda: #e2e8f0;
    --borda-forte: #cbd5e1;
    --fundo-painel: #f8fafc;
    --sombra-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --sombra-md: 0 8px 24px rgba(15, 23, 42, 0.12);
    --sombra-lg: 0 16px 40px rgba(15, 23, 42, 0.16);
    --raio-sm: 6px;
    --raio-md: 10px;
    --raio-lg: 14px;
    --transicao: all 0.22s ease;
    --fonte-ui: 'Inter', 'Segoe UI', sans-serif;
    --fonte-titulo: 'Montserrat', 'Inter', sans-serif;
    --nav-fonte: 0.9rem;
    --nav-fonte-filho: 0.82rem;
    --nav-icone: 1.2rem;
    --nav-peso: 500;
    --topbar-h: 56px;
    --sidebar-w: 320px;
    --sidebar-w-col: 60px;
    --tema-rgb: 11, 28, 53;
    --tema-sec-rgb: 43, 92, 146;
    --cor-titulo: var(--azul-marca);
    --hub-fundo-cor: #0b1c35;
    --hub-fundo-rgb: 11, 28, 53;
    --cor-btn-texto: #ffffff;
    /* Destaques derivados do tema (nunca ciano/teal fixo) */
    --tema-destaque: var(--azul-sutil);
    --tema-destaque-rgb: var(--tema-sec-rgb);
    --tema-suave: color-mix(in srgb, var(--azul-sutil) 18%, #fff);
    --tema-borda: color-mix(in srgb, var(--azul-sutil) 35%, transparent);
    --hub-fundo: radial-gradient(ellipse 55% 45% at 50% 0%, rgba(var(--tema-sec-rgb), 0.16), transparent 60%),
        linear-gradient(165deg, color-mix(in srgb, rgb(var(--tema-rgb)) 92%, #000) 0%, color-mix(in srgb, rgb(var(--tema-rgb)) 78%, #000) 100%);
    --eq-win-bg: color-mix(in srgb, rgb(var(--tema-rgb)) 90%, #000);
    --z-nav: 240;
    --z-topbar: 50;
    --z-toast: 9999;
    --z-loading: 9998;
    --touch-min: 44px;
    --focus-ring: 2px solid color-mix(in srgb, var(--azul-sutil) 70%, #fff);
    --focus-offset: 2px;
    /* Espaçamento (escala única) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    /* Botões */
    --btn-h: 38px;
    --btn-h-sm: 32px;
    --btn-h-lg: 44px;
    --btn-pad-x: 14px;
    --btn-pad-y: 9px;
    --btn-gap: 7px;
    --btn-font: 0.82rem;
    --btn-font-sm: 0.75rem;
    --btn-icon: 0.9rem;
    --text-xs: 0.6875rem;
    --text-sm: 0.75rem;
    --text-md: 0.8125rem;
    --text-base: 0.875rem;
    --text-lg: 1rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
}

html {
    overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
    :root { --transicao: none; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
