/* Agenci ERP — BusinessModelFirst design tokens (ported from ai-erp-solutions styles/tokens.css + app.css).
   Light mode only: no .dark rules, so the platform's .dark class has no effect.
   AI-ERP extension tokens (status/office/departments/glass) live in @erp-agents/ui-kit (KitStyles),
   so they also work federated inside BMF, where this file is not loaded. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --radius: 0.5rem;
  --background: hsl(0 0% 100%);
  --foreground: hsl(222 47% 14%);
  --card: hsl(0 0% 100%);
  --card-foreground: hsl(222 47% 14%);
  --popover: hsl(0 0% 100%);
  --popover-foreground: hsl(222 47% 14%);
  --primary: hsl(211 58% 48%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(210 55% 96%);
  --secondary-foreground: hsl(211 50% 30%);
  --muted: hsl(214 32% 95%);
  --muted-foreground: hsl(215 16% 47%);
  --accent: hsl(276 50% 96%);
  --accent-foreground: hsl(280 39% 36%);
  --destructive: hsl(0 84% 60%);
  --destructive-foreground: hsl(0 0% 100%);
  --border: hsl(214 32% 89%);
  --input: hsl(214 32% 89%);
  --ring: hsl(211 58% 52%);
  --chart-1: hsl(211 58% 48%);
  --chart-2: hsl(280 39% 50%);
  --chart-3: hsl(14 76% 63%);
  --chart-4: hsl(199 65% 52%);
  --chart-5: hsl(320 45% 55%);
  --sidebar: hsl(210 55% 97%);
  --sidebar-foreground: hsl(222 47% 14%);
  --sidebar-primary: hsl(211 58% 48%);
  --sidebar-primary-foreground: hsl(0 0% 100%);
  --sidebar-accent: hsl(276 50% 96%);
  --sidebar-accent-foreground: hsl(280 39% 36%);
  --sidebar-border: hsl(214 32% 89%);
  --sidebar-ring: hsl(211 58% 52%);
  --font-sans: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #ffffff;
  background-image: url("/bmfbg.svg"), linear-gradient(135deg, #dbeafe 0%, #ffffff 48%, #f3e8ff 100%);
  background-size: 140%, cover;
  background-position: 30% 30%, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed;
  font-family: "Inter Variable", "Inter", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}

/* ── Problem A: QuestionTabs footer — mobile layout (≤640px) ─────────────────
   QuestionTabs z @arc/ds renderuje footer jako flex-row, co nie
   mieści się na 390px. Nadpisujemy na flex-col z wyśrodkowaniem.
   Selektor celuje w charakterystyczną kombinację klas fotera QuestionTabs:
   flex + items-center + justify-between + border-t + px-3 + py-2 + gap-2.
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 639px) {
  .flex.items-center.justify-between.border-t.px-3.py-2.gap-2 {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
  }
  .flex.items-center.justify-between.border-t.px-3.py-2.gap-2 > .flex {
    width: 100%;
    justify-content: center;
  }
  .flex.items-center.justify-between.border-t.px-3.py-2.gap-2 > button {
    width: 100%;
    justify-content: center;
  }
}
