/*
Site da Correa Contábil
Desenvolvido por LePampim e Mocno

Design tokens (variáveis globais de estilo).
- Carregado antes de todos os outros CSS, em todas as páginas (logadas e públicas).
- Os nomes seguem o padrão --cc-* já usado pelo tema escuro
  (/tema/escuro/css/stylesheet.css), que redefine os valores de cor no seu :root.
- Cores da marca extraídas do logo anterior (azul-marinho e laranja); o logo atual é /tema/icons/logo-cores.svg.
*/

:root {
    /* ========== Marca (cores do logo) ========== */
    --cc-brand-navy: #152950;        /* azul-marinho do logo */
    --cc-brand-navy-hover: #1e3a6e;
    --cc-brand-navy-dark: #0e1c38;
    --cc-brand-navy-tint: #eef2f8;   /* fundo suave de hover/seleção */
    --cc-brand-orange: #ec8a21;      /* laranja do logo: destaques, foco, ícones (não usar como cor de texto sobre branco) */
    --cc-brand-orange-hover: #d97a14;
    --cc-brand-orange-text: #a85a0b; /* laranja escurecido para texto sobre branco (contraste AA 5,1:1) */
    --cc-brand-slate: #596870;       /* cinza-azulado do logo */

    /* ========== Superfícies ========== */
    --cc-bg: #f6f7f9;                /* fundo da página */
    --cc-bar: #ffffff;               /* cabeçalho */
    --cc-surface: #ffffff;           /* cards e blocos */
    --cc-surface-2: #f1f3f6;
    --cc-surface-3: #e6e9ee;
    --cc-surface-4: #d9dde4;

    /* ========== Bordas ========== */
    --cc-border: #e3e6eb;
    --cc-border-strong: #c9ced6;

    /* ========== Texto ========== */
    --cc-text: #2b3340;
    --cc-text-strong: #152950;
    --cc-text-muted: #596870;
    --cc-text-disabled: #9aa3ad;

    /* ========== Destaque e foco ========== */
    --cc-accent: #152950;
    --cc-accent-hover: #1e3a6e;
    --cc-accent-bg: #eef2f8;
    --cc-focus-ring: 0 0 0 3px rgba(236, 138, 33, 0.55);

    /* ========== Links ========== */
    --cc-link: #1e3a6e;
    --cc-link-hover: #152950;

    /* ========== Ação principal (botões, seleção) ========== */
    --cc-primary: #152950;
    --cc-primary-hover: #1e3a6e;
    --cc-on-primary: #ffffff;
    --cc-primary-ring: 0 0 0 3px rgba(21, 41, 80, 0.16);

    /* ========== Formulários ========== */
    --cc-input-bg: #ffffff;
    --cc-input-bg-hover: #ffffff;
    --cc-input-border: #cfd5dd;
    --cc-input-h: 36px;

    /* ========== Tabelas ========== */
    --cc-row-hover: #f4f6fa;
    --cc-table-head-bg: #f6f7f9;

    /* ========== Estados (alertas e botões) ========== */
    --cc-danger: #c62828;
    --cc-danger-solid: #c62828;
    --cc-danger-solid-hover: #a51f1f;
    --cc-danger-bg: #fdeeee;
    --cc-danger-border: #f3c4c4;
    --cc-danger-text: #8a1c1c;

    --cc-success-solid: #1e7f47;
    --cc-success-solid-hover: #186a3b;
    --cc-success-bg: #eaf6ef;
    --cc-success-border: #b9e0c8;
    --cc-success-text: #17603a;

    --cc-warning-solid: #f2b01e;
    --cc-warning-solid-hover: #dc9d0d;
    --cc-on-warning: #2b2210;
    --cc-warning-bg: #fff7e3;
    --cc-warning-border: #f1d68e;
    --cc-warning-text: #6e4a00;

    /* ========== Interruptor (Sim/Não) ========== */
    --cc-switch-off: #b9c1cb;
    --cc-switch-on: #1e7f47;

    /* ========== Tooltips, sobreposições e abas laterais ========== */
    --cc-tooltip-bg: #152950;
    --cc-tooltip-text: #ffffff;
    --cc-overlay: rgba(14, 28, 56, 0.72);
    --cc-vtab-bg: rgba(21, 41, 80, 0.92);
    --cc-vtab-bg-hover: #152950;
    --cc-vtab-panel: #f6f7f9; /* gaveta lateral: mesmo fundo da página */

    /* ========== Cabeçalho ========== */
    --cc-header-h: 64px;
    --cc-header-public-h: 80px;
    --cc-header-link: #152950;
    --cc-header-link-hover-bg: #eef2f8;
    --cc-header-indicator: #ec8a21;
    --cc-menu-bg: #ffffff;
    --cc-menu-link: #2b3340;
    --cc-menu-link-hover-bg: #eef2f8;

    /* ========== Rodapé ========== */
    --cc-footer-bg: #152950;
    --cc-footer-text: #d5dceb;
    --cc-footer-title: #ffffff;
    --cc-footer-muted: #a6b2c9;
    --cc-footer-link-hover: #ffb766;
    --cc-footer-divider: rgba(255, 255, 255, 0.12);

    /* ========== Tipografia ========== */
    --cc-fs-xs: 1.2rem;   /* 12px (html = 62,5%) */
    --cc-fs-sm: 1.3rem;
    --cc-fs-md: 1.5rem;
    --cc-fs-lg: 1.8rem;
    --cc-fs-xl: 2.4rem;
    --cc-fw-regular: 400;
    --cc-fw-medium: 500;
    --cc-fw-bold: 700;

    /* ========== Espaçamento ========== */
    --cc-space-1: 4px;
    --cc-space-2: 8px;
    --cc-space-3: 12px;
    --cc-space-4: 16px;
    --cc-space-5: 24px;
    --cc-space-6: 32px;
    --cc-space-7: 48px;
    --cc-container: 1200px;

    /* ========== Raios ========== */
    --cc-radius-sm: 6px;
    --cc-radius-md: 8px;
    --cc-radius-lg: 12px;
    --cc-radius-xl: 16px;
    --cc-radius-pill: 999px;

    /* ========== Sombras ========== */
    --cc-shadow-sm: 0 1px 2px rgba(21, 41, 80, 0.06), 0 1px 3px rgba(21, 41, 80, 0.08);
    --cc-shadow-md: 0 4px 12px rgba(21, 41, 80, 0.08), 0 2px 4px rgba(21, 41, 80, 0.06);
    --cc-shadow-lg: 0 12px 32px rgba(21, 41, 80, 0.14);

    /* ========== Movimento ========== */
    --cc-ease: cubic-bezier(0.2, 0, 0, 1);
    --cc-duration: 200ms;
    --cc-duration-slow: 300ms;

    /* Abas laterais: etiqueta e painel deslizam juntos (mesmo tempo e mesma curva) */
    --cc-panel-duration: 500ms;
    --cc-panel-ease: cubic-bezier(0.5, 0, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --cc-duration: 0ms;
        --cc-duration-slow: 0ms;
        --cc-panel-duration: 0ms;
    }
}
