/*
 * Tema ERCODE para o Blazor Blueprint.
 * Valores gerados do tokens.json do design system ERCODE
 * (https://claude.ai/artifact/ST2hFZra8zLSBzUyL9zAS5). Não use cores literais nas telas:
 * use estes tokens, pelo Tailwind (bg-background, text-muted-foreground...) ou por var().
 * Fica fora de @layer para vencer os valores padrão do Blueprint.
 */
:root {
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, ui-monospace, monospace;
  --radius: 0.375rem;

  --brand: #001a3f;
  --brand-foreground: #ffffff;
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --popover: #ffffff;
  --popover-foreground: #0f172a;
  --primary: #1452b8;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #5b6b80;
  --accent: #f1f5f9;
  --accent-foreground: #0f172a;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #7e8ca2;
  --ring: #1452b8;
  --success: #15803d;
  --success-foreground: #ffffff;
  --success-soft: #dcfce7;
  --success-soft-foreground: #166534;
  --warning: #b45309;
  --warning-foreground: #ffffff;
  --warning-soft: #fef3c7;
  --warning-soft-foreground: #92400e;
  --info: #0369a1;
  --info-foreground: #ffffff;
  --info-soft: #e0f2fe;
  --info-soft-foreground: #075985;
  --destructive-soft: #fee2e2;
  --destructive-soft-foreground: #991b1b;
  --grid-row-hover: #f8fafc;
  --grid-row-selected: #eef4ff;
  --amount-negative: #b91c1c;
  --field-readonly: #f8fafc;
  --sidebar: #001a3f;
  --sidebar-foreground: #e2e8f0;
  --sidebar-border: #12305a;
  --sidebar-accent: #0d2f5e;
  --sidebar-accent-foreground: #ffffff;
  --sidebar-muted-foreground: #8ea3c4;
  --sidebar-primary: #7cb3ff;
  --sidebar-primary-foreground: #001a3f;
  --sidebar-ring: #7cb3ff;
  --chart-1: #1452b8;
  --chart-2: #0d9488;
  --chart-3: #d97706;
  --chart-4: #64748b;
  --chart-5: #db2777;

  --erp-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --erp-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --erp-shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.12);
  --erp-shadow-lg: 0 16px 40px -8px rgba(15, 23, 42, 0.25);
  --bb-card-shadow: var(--erp-shadow-sm);
  --bb-menu-shadow: var(--erp-shadow-md);
  --sidebar-width: 16rem;
}

.dark {
  --brand: #001a3f;
  --brand-foreground: #ffffff;
  --background: #000d1f;
  --foreground: #f1f5f9;
  --card: #051a36;
  --card-foreground: #f8fafc;
  --popover: #051a36;
  --popover-foreground: #f8fafc;
  --primary: #6ea8ff;
  --primary-foreground: #000d1f;
  --secondary: #0d2747;
  --secondary-foreground: #f8fafc;
  --muted: #0d2747;
  --muted-foreground: #9fb0c8;
  --accent: #0d2747;
  --accent-foreground: #f8fafc;
  --destructive: #f87171;
  --destructive-foreground: #020617;
  --border: #1a3558;
  --input: #4f6a8f;
  --ring: #6ea8ff;
  --success: #4ade80;
  --success-foreground: #020617;
  --success-soft: #052e1a;
  --success-soft-foreground: #86efac;
  --warning: #fbbf24;
  --warning-foreground: #020617;
  --warning-soft: #3a2604;
  --warning-soft-foreground: #fcd34d;
  --info: #38bdf8;
  --info-foreground: #020617;
  --info-soft: #082f49;
  --info-soft-foreground: #7dd3fc;
  --destructive-soft: #3b0a0a;
  --destructive-soft-foreground: #fca5a5;
  --grid-row-hover: #0a2142;
  --grid-row-selected: #0f2d5c;
  --amount-negative: #f87171;
  --field-readonly: #031428;
  --sidebar: #001a3f;
  --sidebar-foreground: #e2e8f0;
  --sidebar-border: #1a3558;
  --sidebar-accent: #0d2f5e;
  --sidebar-accent-foreground: #ffffff;
  --sidebar-muted-foreground: #8ea3c4;
  --sidebar-primary: #7cb3ff;
  --sidebar-primary-foreground: #001a3f;
  --sidebar-ring: #7cb3ff;
  --chart-1: #6ea8ff;
  --chart-2: #2dd4bf;
  --chart-3: #fbbf24;
  --chart-4: #94a3b8;
  --chart-5: #f472b6;

  --erp-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5);
  --erp-shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.6);
  --erp-shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.7);
}

/* Valores monetários e quantidades: fonte mono, tabular, à direita. */
.erp-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.erp-neg { color: var(--amount-negative); }
