/* ==========================================================================
   Design tokens — single source of truth for the AMS palette.

   Load order contract (see static/css/README.md):
   this file is linked in base.html BEFORE {% block head %}, so any
   page-level `:root { ... }` override declared later in the document
   wins. Migrated pages should declare ONLY the tokens they change.

   Canonical tokens (identical wherever they were declared) live here.
   Page-varying tokens (--bg, --primary-soft, --shadow, --radius) carry
   the most common value as a default — override per page when needed.
   ========================================================================== */

:root {
    /* Brand */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;

    /* Surfaces & text */
    --bg: #f3f6fb;
    --card: #ffffff;
    --surface: #ffffff;
    --white: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;

    /* Semantic: success */
    --success: #16a34a;
    --success-soft: #ecfdf5;
    --green: #16a34a;

    /* Semantic: danger */
    --danger: #dc2626;
    --danger-dark: #b91c1c;
    --danger-soft: #fef2f2;
    --red: #dc2626;

    /* Semantic: warning */
    --warning: #f59e0b;
    --warning-dark: #b45309;
    --warning-soft: #fef3c7;
    --warning-border: #fcd34d;
    --warning-text: #92400e;
    --warning-bg: #fff7ed;

    /* Export actions */
    --export-to-excel: #1D6F42;
    --export-to-excel-dark: #195e37;
    --export-to-sql: #912525;
    --export-to-sql-dark: #802121;

    /* Shape & depth — most common defaults, override per page */
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
    --radius: 20px;
}
