/* ==== theme ==== */
/* The apps' shared theme (inditex's report page, from Pulse), unchanged: one navy accent (TradeLane's, the MGH logo's blue) on neutral greys (soft borders, 8px radius, clear focus ring).
   Dialog headers are filled --brand with white text; table and column headers use --brand-tint. Every colour in the page uses these tokens; status colours keep their meaning. */
:root {
  --brand: #232f8c;
  --brand-hover: #1a2370;
  --brand-soft: #eceefb;
  --brand-line: #c5c9ee;
  --brand-tint: #dfe2f7;
  --brand-ink: #2e3192; /* the brand as text and icons; --brand is the fill under white text */
  --on-brand-soft: #e3e6fb; /* a subtitle on a --brand header */
  --on-brand: #fff;
  --on-brand-line: rgba(255, 255, 255, .35);
  --on-brand-hover: rgba(255, 255, 255, .16);
  --bg: #f7f8fa;
  --surface: #fff;
  --surface-2: #f2f4f7;
  --ink: #1f2933;
  --muted: #5f6b7a;
  --faint: #8a94a3;
  --line: #e3e7ed;
  --line-strong: #cfd5de;
  --ring: 0 0 0 3px rgba(46, 49, 146, .22);
  --success: #2e7d4f;
  --success-soft: #e8f4ec;
  --warning: #9a6200;
  --warning-soft: #fdf3e1;
  --danger: #c62828;
  --danger-soft: #fdecec;
  --info: #2f6bad;
  --info-soft: #eaf1f9;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
  --backdrop: rgba(16, 24, 40, .45);
  --toast-bg: #1f2933;
  --font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs: 13px;
  --fs-lg: 17px;
  --topbar-h: 64px;
  --topbar-pad: 24px;
  --mark: 32px;
  --avatar: 36px;
  --control-h: 36px;
  --control-pad: 0 10px;
  --btn-h: 36px;
  --btn-pad: 0 14px;
  --btn-sm-h: 30px;
  --cell-pad: 10px 12px;
  --dialog-head-pad: 14px 20px;
  --dialog-pad: 18px 20px;
  --dialog-actions-pad: 12px 20px;
  color-scheme: light;
}

/* ==== tokens ==== */
/* This page's own token names, kept so every stylesheet written against them takes the theme above without being rewritten:
   the accent family (--indigo*, --sky, the rail --navy*) is the navy brand, surfaces and ink the neutral greys, semantic colours the theme's status colours. */
:root {
    --paper: var(--bg);
    --paper-deep: var(--surface-2);
    --card: var(--surface);
    --ink-soft: #3e4c59;
    --line-soft: #eef1f5;

    --indigo: var(--brand);
    --indigo-deep: var(--brand-hover);
    --indigo-soft: var(--brand-soft);
    --indigo-line: var(--brand-line);
    --sky: var(--brand-ink);

    --navy: var(--brand-hover);
    --navy-2: var(--brand);
    --navy-ink: #b9bfe9;

    --ok: var(--success);   --ok-soft: var(--success-soft);   --ok-line: #bfdcc9;
    --warn: var(--warning); --warn-soft: var(--warning-soft); --warn-line: #ecd6a8;
    --bad: var(--danger);   --bad-soft: var(--danger-soft);   --bad-line: #f1c6c6;
    --ai: var(--brand-ink); --ai-soft: var(--brand-soft);     --ai-line: var(--brand-line);

    --radius-xs: 6px;
    --shadow-card: var(--shadow);
    --shadow-pop: var(--shadow-lg);
    --shadow-hover: 0 2px 4px rgba(16, 24, 40, .05), 0 8px 20px rgba(16, 24, 40, .10);

    --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-voice: var(--font-ui);
    --font-code: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --mono: var(--font-code);
    --ease: cubic-bezier(.2,.7,.2,1);

    --bg-main: var(--bg);
    --bg-surface: var(--surface);
    --sidebar-bg: var(--brand-hover);
    --sidebar-text: #d3d7f3;
    --sidebar-text-active: #fff;
    --sidebar-active-bg: var(--on-brand-hover);
    --primary: var(--brand);
    --primary-hover: var(--brand-hover);
    --text-dark: var(--ink);
    --text-muted: var(--muted);
    --border: var(--line);

    --status-green: var(--success-soft);
    --status-green-text: var(--success);
    --status-yellow: var(--warning-soft);
    --status-yellow-text: var(--warning);
    --status-red: var(--danger-soft);
    --status-red-text: var(--danger);
    --status-blue: var(--brand-soft);
    --status-blue-text: var(--brand-ink);

    --page-card-gap: 0.9rem;
    --shell-header-height: var(--topbar-h);
    --sidebar-width: 236px;
    --content-pad-x: 1.75rem;
}

/* Compact density on laptop-class viewports (incl. 1920px screens at 150% OS
   scaling, which report ~1280 CSS px) so a full page fits without side-scroll. */
@media (max-width: 1500px) {
    :root {
        --page-card-gap: 0.75rem;
        --sidebar-width: 218px;
        --content-pad-x: 1.15rem;
    }
}
