/* ==========================================================================
   TECSAR — Tokens de Identidad Visual Corporativa
   Estructura UX: Odoo 19 | Paleta: 100% corporativa TECSAR (logo oficial)
   Fuente de verdad única: cualquier color de marca debe leerse desde aquí.
   PROHIBIDO usar colores nativos de Odoo (#714B67 púrpura, #017E84 teal).
   ========================================================================== */

:root {
    /* --- Primario corporativo (azul logo TECSAR) --- */
    --brand-primary: #0062be;
    --brand-primary-rgb: 0 98 190;
    --brand-primary-hover: #004f99;
    --brand-primary-hover-rgb: 0 79 153;
    --brand-primary-light: #e6f0fa;
    --brand-primary-light-rgb: 230 240 250;

    /* --- Secundario corporativo (gris logo TECSAR) --- */
    --brand-secondary: #595757;
    --brand-secondary-rgb: 89 87 87;

    /* --- Acento corporativo (negro logo TECSAR: énfasis, FILTRAR, navegación activa) --- */
    --brand-accent: #18181b;
    --brand-accent-rgb: 24 24 27;

    /* --- Superficies y neutros (legibilidad Odoo 19) --- */
    --surface-app: #f8f9fa;
    --surface-sheet: #ffffff;
    --border-subtle: #e5e7eb;
    --btn-secondary-bg: #f1f5f9;
    --btn-secondary-bg-hover: #e2e8f0;
    --btn-secondary-text: #1e293b;
    --text-strong: #1f2937;
    --text-muted: #6b7280;

    /* --- Estados semánticos universales (fondos pastel + texto alto contraste) --- */
    --state-success: #059669;  --state-success-bg: #ecfdf5;
    --state-warning: #b45309;  --state-warning-bg: #fffbeb;
    --state-danger: #dc2626;   --state-danger-bg: #fef2f2;
    --state-info: #0062be;     --state-info-bg: #e6f0fa;
    --state-draft: #475569;    --state-draft-bg: #f1f5f9;
}

/* Fondo de aplicación y selección de texto con identidad corporativa */
::selection {
    background: rgb(var(--brand-primary-rgb) / 0.15);
}

/* Utilidades semánticas reutilizables (complementan las clases Tailwind brand-*) */
.o-btn-primary {
    background: var(--brand-primary);
    color: #fff;
}
.o-btn-primary:hover { background: var(--brand-primary-hover); }

.o-btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
}
.o-btn-secondary:hover { background: var(--btn-secondary-bg-hover); }

.o-sheet {
    background: var(--surface-sheet);
    border: 1px solid var(--border-subtle);
}
