/* eCatalog common design tokens — single source of truth.
   Load in layouts AFTER Bootstrap/plugin CSS, BEFORE page CSS. */
:root {
  --accent: var(--app-brand-red-dark, #d72f2f);
  --accent-tint: rgba(215, 47, 47, 0.1);
  --accent-tint-strong: rgba(215, 47, 47, 0.14);
  --accent-dark: #b91c1c;
  /* Red header + white body theme (Advanced Search). White on --theme-red (6.5:1) and
     --theme-text / --theme-text-muted on white or the tints pass WCAG AA. */
  --theme-red: #b91c1c;
  --theme-red-hover: #991b1b;
  --theme-red-tint: #fdecec;
  --theme-red-tint-strong: #f8d3d3;
  --theme-white: #ffffff;
  --theme-text: #212529;
  --theme-text-muted: #495057;
  --theme-border: #dee2e6;
  --theme-row-alt: #f8f9fa;

  --table-head-bg: #000000;
  --table-head-text: #ffffff;
  --table-head-divider: #1f2937;

  --border: #e5e7eb;
  --surface: #ffffff;
  --bg-head: #f3f4f6;
  --bg-page: #f7f6f3;
  --text: #111827;
  --text-muted: #6b7280;

  --success: #16a34a;
  --warning: #d97706;
  --info: #2563eb;
  --danger: #dc2626;

  --fs-xs: 10px;
  --fs-sm: 12px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-control: 13px;
  --lh-table: 1.3;
  --th-font-family: "Open Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --th-font-size: 12px;
  --th-font-weight: 600;

  --control-h: 32px;
  --row-h: 34px;
  --head-h: 32px;
  --card-head-h: 44px;
  --card-foot-h: 44px;
  --row-h-2line: 48px;
  --page-size: 10;

  /* 10 rows × 36px + 36px header = 396px */
  --grid-body-min-h: calc(var(--head-h) + (var(--page-size) * var(--row-h)));
  --grid-body-min-h-2line: calc(var(--head-h) + (var(--page-size) * var(--row-h-2line)));

  --radius: 6px;
  --radius-card: 8px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;

  --icon-input-pad: 34px;
  --search-w: 280px;

  /* Label column for form-row / profile dl (fits "Contact Person", "Current Password") */
  --form-label-col: 180px;
  --form-label-col-min: 160px;
  --form-label-col-max: 200px;
  --form-row-h: 36px;
}
