@import "tailwindcss";
@import "@edr/ui-common/theme.css" layer(theme);

/* Bridge the central Mantine theme into Tailwind. freightMantineTheme
   (createTheme) is the single source of truth; these just alias its generated
   CSS variables so `bg-edr-*`, `text-edr-*`, `border-edr-*` utilities resolve
   to the same tokens used by Mantine props. Mirrors edr-freight-web/portal. */
@theme {
  --color-edr-primary: var(--mantine-color-edr-green-5);
  --color-edr-primary-dark: var(--mantine-color-edr-green-7);
  --color-edr-bg: var(--mantine-color-edr-bg-6);
  --color-edr-card: var(--mantine-color-edr-card-6);
  --color-edr-border: var(--mantine-color-edr-border-6);
  --color-edr-divider: var(--mantine-color-edr-divider-6);
  --color-edr-text: var(--mantine-color-edr-text-6);
  --color-edr-muted: var(--mantine-color-edr-muted-6);
  --color-edr-soft: var(--mantine-color-edr-soft-6);
  --color-edr-ink: var(--mantine-color-edr-ink-6);
  --color-edr-accent: var(--mantine-color-edr-accent-6);
}

:root {
  --freight-brand: #1B9E7A;
  --freight-brand-dark: #15805F;
  --freight-brand-light: #2DBF95;
  --freight-brand-muted: #E7F8F2;
  --freight-brand-border: #B7EBDC;
  --freight-brand-ring: rgb(27 158 122 / 0.2);
}

html,
body,
#root {
  height: 100%;
  overflow: hidden;
}
