/* Legacy-aligned theme (Pragmatic BIM Requirements Manager) */
:root {
  --nav-background: #d32f2f;
  --nav-hover: #b71c1c;
  --nav-active: #ffebee;
  --nav-highlight: #ffebee;
  --nav-text: #000000;
  --nav-text-hover: #000000;
  --nav-text-selected: #000000;
  --nav-icon: #ffffff;
  --nav-icon-selected: #000000;
  --text-primary: #000000;
  --text-secondary: #959799;
  --success-color: #ffc300;
  --warning-color: #ffc107;
  --error-color: #dc3545;
  --background-main: #ffffff;
  --background-light: #f8f8f8;
  --text-dark: #000000;
  --info-background: #ffcf71;
  --button-primary: #d32f2f;
  --button-primary-hover: #b71c1c;
  --button-primary-text: #000000;
  --dropdown-selected: #000000;
  --dropdown-selected-text: #000000;

  --primary-color: var(--nav-background);
  --primary-dark: var(--nav-active);
  --primary-hover: var(--nav-hover);
  --primary-light: var(--nav-highlight);
  --secondary-color: var(--text-primary);
  --accent-color: var(--success-color);
  --text-muted: var(--text-secondary);
  --border-light: #e0e0e0;
  --border-medium: #d0d0d0;
  --border-dark: #999;

  /* Fixed colours used by the page stylesheets. Tenant themes do not override
     these; every colour in static/css lives in this block (scripts/css_tokens.py). */
  --surface-white: #fff;
  --surface-subtle: #fafafa;
  --surface-note: #fff8e6;
  --border-note: #e8d9a8;
  --border-color: #e5e7eb;
  --track-color: #e5e7eb;
  --text-inverse: #fff;
  --text-strong: #111;
  --status-ok: #059669;
  --status-warn: #d97706;
  --status-bad: #dc2626;
  --badge-ok-bg: #d1fae5;
  --badge-ok-border: #10b981;
  --badge-ok-text: #065f46;
  --badge-bad-bg: #fef2f2;
  --badge-bad-border: #ef4444;
  --badge-warn-bg: #fef3c7;
  --badge-warn-border: #f59e0b;
  --badge-warn-text: #92400e;
  --badge-info-bg: #dbeafe;
  --badge-info-text: #1e40af;
  --tint-ok: #f3faf4;
  --tint-bad: #fdf4f4;
  --tint-warn: #fffaf0;
  /* Channel triplets for rgba(var(--x-rgb), alpha) shadows and overlays. */
  --black-rgb: 0, 0, 0;
  --white-rgb: 255, 255, 255;
  --brand-red-rgb: 211, 50, 47;

  --sidebar-w: 240px;
  --sidebar-collapsed-w: 72px;
  --sidebar-gap: 36px;
  --sidebar-current: var(--sidebar-w);
}

html.sidebar-collapsed {
  --sidebar-current: var(--sidebar-collapsed-w);
}

* { box-sizing: border-box; }

html {
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--background-light);
  color: var(--text-primary);
  display: flex;
}

a { color: var(--primary-color); }
.muted { color: var(--text-secondary); }
.mono { font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace; font-size: 0.9em; }
.error { color: var(--error-color); }
.hidden { display: none !important; }

