/* Thema van de kopie (v2): Twenty in de vormtaal van Astryx (design system van Meta, MIT; kleuren, letter, maten en regels uit
   packages/core/src/theme/tokens.stylex.ts en de componentgidsen). Alleen CSS: Twenty's eigen thema-variabelen (--t-*) krijgen
   andere waarden en een handvol onderdelen krijgt een andere vorm. Twenty zet zijn regels in @layer twenty-ui; alles hier staat
   buiten een layer en wint dus altijd.
   Een naam tussen dubbele accolades wordt door zz-thema.mjs vervangen door de klasse van dat onderdeel in de bundel (stopt de build als die niet
   precies één keer voorkomt). Waarden aanpassen = dit bestand aanpassen en het image opnieuw bouwen. */

/* ---------- 1. Kleur, letter, vorm: licht ---------- */
.light {
  --t-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* vlakken: pagina (body) #F1F4F7, werkvlak wit */
  --t-background-primary: #ffffff;
  --t-background-secondary: #f1f4f7;
  --t-background-tertiary: #e6ebef;
  --t-background-quaternary: #dae1e8;
  --t-background-transparent-lighter: #05365908;
  --t-background-transparent-light: #0536590c;   /* hover: 5% */
  --t-background-transparent-medium: #05365919;  /* ingedrukt: 10% */
  --t-background-transparent-strong: #05365929;
  --t-background-transparent-blue: #0082fb1f;
  --t-background-inverted-primary: #0a1317;
  --t-background-inverted-secondary: #445564;
  --t-background-primary-inverted: #0a1317;
  --t-background-primary-inverted-hover: #2a3742;
  --t-background-overlay-primary: #01122899;
  --t-background-overlay-secondary: #01122866;
  --t-background-overlay-tertiary: #01122814;
  --t-background-danger: #fbe3e7;
  --t-background-danger-solid: #e3193b;

  /* tekst: primair 18:1, secundair 7,6:1, labels 5,4:1 op wit */
  --t-font-color-primary: #0a1317;
  --t-font-color-secondary: #445564;
  --t-font-color-tertiary: #5c6c7b;
  --t-font-color-light: #8593a0;
  --t-font-color-extra-light: #a4b0bc;
  --t-font-color-danger: #c4122f;

  /* randen */
  --t-border-color-light: #e6ebef;
  --t-border-color-medium: #dce2e8;
  --t-border-color-strong: #ccd3db;
  --t-border-color-blue: #7fb5f5;
  --t-border-color-danger: #f3a3b1;
  --t-border-color-inverted: #0a1317;
  --t-border-color-secondary-inverted: #445564;
  --t-border-color-transparent-strong: #05365919;

  /* accent: Astryx-blauw #0064E0 */
  --t-accent-accent1: #fbfdff; --t-accent-accent2: #f4f9ff; --t-accent-accent3: #e7f1fe; --t-accent-accent4: #d7e8fd;
  --t-accent-accent5: #c4dcfb; --t-accent-accent6: #accbf8; --t-accent-accent7: #8db6f2; --t-accent-accent8: #5f9aea;
  --t-accent-accent9: #0064e0; --t-accent-accent10: #0058c8; --t-accent-accent11: #0055c0; --t-accent-accent12: #042f97;
  --t-accent-primary: #c4dcfb; --t-accent-secondary: #c4dcfb; --t-accent-tertiary: #e7f1fe; --t-accent-quaternary: #f4f9ff;
  --t-accent-accent3570: #5f9aea; --t-accent-accent4060: #5f9aea;
  --t-color-blue: #0064e0;
  --t-color-blue1: #fbfdff; --t-color-blue2: #f4f9ff; --t-color-blue3: #e7f1fe; --t-color-blue4: #d7e8fd;
  --t-color-blue5: #c4dcfb; --t-color-blue6: #accbf8; --t-color-blue7: #8db6f2; --t-color-blue8: #5f9aea;
  --t-color-blue9: #0064e0; --t-color-blue10: #0058c8; --t-color-blue11: #0055c0; --t-color-blue12: #042f97;
  --t-color-red: #e3193b; --t-color-red9: #e3193b; --t-color-red10: #cf1433; --t-color-red11: #c4122f;
  --t-color-green: #0d8626; --t-color-green9: #0d8626;
  --t-color-orange: #c2570a;

  /* labels: vlak = familiekleur op 20%, tekst donker (Astryx tag-families) */
  --t-tag-background-gray: #5c6c7b2e;     --t-tag-text-gray: #0a1317;
  --t-tag-background-blue: #0171e333;     --t-tag-text-blue: #042f97;
  --t-tag-background-sky: #03a7d733;      --t-tag-text-sky: #014975;
  --t-tag-background-cyan: #03a7d733;     --t-tag-text-cyan: #014975;
  --t-tag-background-turquoise: #0db7af33; --t-tag-text-turquoise: #083943;
  --t-tag-background-mint: #0db7af33;     --t-tag-text-mint: #083943;
  --t-tag-background-green: #24bb5e33;    --t-tag-text-green: #09441f;
  --t-tag-background-jade: #24bb5e33;     --t-tag-text-jade: #09441f;
  --t-tag-background-grass: #24bb5e33;    --t-tag-text-grass: #09441f;
  --t-tag-background-lime: #24bb5e33;     --t-tag-text-lime: #09441f;
  --t-tag-background-orange: #f2790233;   --t-tag-text-orange: #6b2203;
  --t-tag-background-brown: #f2790233;    --t-tag-text-brown: #6b2203;
  --t-tag-background-bronze: #f2790233;   --t-tag-text-bronze: #6b2203;
  --t-tag-background-yellow: #e2a40033;   --t-tag-text-yellow: #753f07;
  --t-tag-background-amber: #e2a40033;    --t-tag-text-amber: #753f07;
  --t-tag-background-gold: #e2a40033;     --t-tag-text-gold: #753f07;
  --t-tag-background-red: #e3193b33;      --t-tag-text-red: #7b0210;
  --t-tag-background-tomato: #e3193b33;   --t-tag-text-tomato: #7b0210;
  --t-tag-background-ruby: #e3193b33;     --t-tag-text-ruby: #7b0210;
  --t-tag-background-crimson: #e3193b33;  --t-tag-text-crimson: #7b0210;
  --t-tag-background-pink: #e638b333;     --t-tag-text-pink: #650053;
  --t-tag-background-plum: #e638b333;     --t-tag-text-plum: #650053;
  --t-tag-background-purple: #7952ff33;   --t-tag-text-purple: #3e0697;
  --t-tag-background-violet: #7952ff33;   --t-tag-text-violet: #3e0697;
  --t-tag-background-iris: #7952ff33;     --t-tag-text-iris: #3e0697;

  /* schaduw: laag / midden / hoog, naar afstand tot de pagina */
  --t-box-shadow-color: #0536591a;
  --t-box-shadow-light: 0 1px 1px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.1);
  --t-box-shadow-strong: 0 1px 2px rgba(0,0,0,.1), 0 2px 12px rgba(0,0,0,.1);
  --t-box-shadow-super-heavy: 0 2px 2px rgba(0,0,0,.1), 0 8px 24px rgba(0,0,0,.1);
  --t-box-shadow-bottom-panel: 0 2px 12px rgba(0,0,0,.1);
}

/* ---------- 1b. donker (Astryx core donker: pagina #111112, werkvlak #1F1F22) ---------- */
.dark {
  --t-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --t-background-primary: #1f1f22;
  --t-background-secondary: #111112;
  --t-background-tertiary: #28292c;
  --t-background-quaternary: #323337;
  --t-background-transparent-lighter: #ffffff08;
  --t-background-transparent-light: #ffffff0c;
  --t-background-transparent-medium: #ffffff19;
  --t-background-transparent-strong: #ffffff29;
  --t-font-color-primary: #dfe2e5;
  --t-font-color-secondary: #b0b5bb;
  --t-font-color-tertiary: #979da5;
  --t-font-color-light: #6f747c;
  --t-font-color-extra-light: #53575e;
  --t-border-color-light: #2c2d31;
  --t-border-color-medium: #36373b;
  --t-border-color-strong: #494d53;
  --t-accent-accent9: #0171e3; --t-accent-accent10: #2e86ee; --t-accent-accent11: #3e9efb; --t-accent-accent12: #cfe5ff;
  --t-color-blue: #0171e3; --t-color-blue9: #0171e3; --t-color-blue10: #2e86ee; --t-color-blue11: #3e9efb;
  --t-tag-background-gray: #666a724c;     --t-tag-text-gray: #e7eaed;
  --t-tag-background-blue: #0171e333;     --t-tag-text-blue: #afd7ff;
  --t-tag-background-sky: #03a7d733;      --t-tag-text-sky: #a1eef9;
  --t-tag-background-turquoise: #0db7af33; --t-tag-text-turquoise: #40dccd;
  --t-tag-background-green: #24bb5e33;    --t-tag-text-green: #a5f690;
  --t-tag-background-orange: #f2790233;   --t-tag-text-orange: #fdb876;
  --t-tag-background-yellow: #e2a40033;   --t-tag-text-yellow: #fbce03;
  --t-tag-background-red: #e3193b33;      --t-tag-text-red: #ffb2b8;
  --t-tag-background-pink: #e638b333;     --t-tag-text-pink: #feade3;
  --t-tag-background-purple: #7952ff33;   --t-tag-text-purple: #b3b0fe;
}

/* vorm: radius per rol (binnen 4, bediening 8, vlak 12), gewone ronde hoeken */
.light, .dark {
  --t-border-radius-xs: 4px;
  --t-border-radius-sm: 6px;
  --t-border-radius-sm-round: 4px;
  --t-border-radius-md: 8px;
  --t-border-radius-md-round: 8px;
  --t-border-radius-lg: 12px;
  --t-border-radius-lg-round: 12px;
  --t-corner-shape: round;
  --t-font-weight-medium: 500;
  --t-font-weight-semi-bold: 600;
}

/* letter: basis 14 px (Twenty stond op 13), cijfers in kolommen onder elkaar */
html { font-size: 14px; }
body { font-feature-settings: "tnum"; -webkit-font-smoothing: antialiased; }

/* focus: 2 px accent, alleen bij toetsenbord */
:focus-visible { outline: 2px solid var(--t-color-blue); outline-offset: 2px; }

/* ---------- 2. Zijbalk ---------- */
/* een item is een rij van 32 px met 8 px radius; "hier ben je" = blauw vlak en vette naam, niet alleen een grijs tintje */
.navigation-drawer-item { border-radius: 8px !important; height: 32px !important; padding-inline: 8px !important; }
.navigation-drawer-item[aria-current="page"] { background: #0082fb26 !important; }
.navigation-drawer-item[aria-current="page"] .navigation-drawer-item-label { color: var(--t-accent-accent12); font-weight: 600; }
.navigation-drawer-item[aria-current="page"] svg { stroke: var(--t-accent-accent11) !important; }
.navigation-drawer-item-label { color: var(--t-font-color-primary); }
/* uit de bestaande versie: " · Deals" achter een weergave weg, en het weergave-icoon in plaats van twaalf keer het objecticoon */
.navigation-drawer-item-label span + span { display: none; }
.navigation-drawer-item svg.tabler-icon:has(+ div > svg.tabler-icon) { display: none; }
.navigation-drawer-item svg.tabler-icon + div:has(> svg.tabler-icon) { position: static; width: 16px; height: 16px; background: none; border-radius: 0; align-items: center; justify-content: center; }
.navigation-drawer-item svg.tabler-icon + div > svg.tabler-icon { width: 16px; height: 16px; stroke: var(--t-font-color-secondary); stroke-width: 1.6px; }

/* ---------- 3. Lijst (tabel) ---------- */
/* kop: rustig en herkenbaar als kop (500, secundaire kleur, lijn eronder) */
.header-cell { color: var(--t-font-color-secondary); font-weight: 500; }
/* status en kenmerken in een rij = stip + tekst; een gekleurd vlak is voor uitzonderingen en kopjes (Astryx: StatusDot) */
.table-cell [class*="_tag_"],
.sdyi49k [class*="_tag_"] {
  background: none; padding-inline: 0; color: var(--t-font-color-primary); gap: 6px;
}
.table-cell [class*="_tag_"]::before,
.sdyi49k [class*="_tag_"]::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: rgb(from var(--tw-tag-background) r g b / 1);   /* de familiekleur zelf, zonder de 20% */
}
/* telefoon en e-mail in een rij: gewone tekst, geen omrand pilletje */
.table-cell a[class*="_chip_"][data-variant="outline"],
.sdyi49k a[class*="_chip_"][data-variant="outline"] { border-color: transparent; background: none; --tw-chip-padding-start: 0px; }
.table-cell a[class*="_chip_"][data-variant="outline"]:hover { background: var(--t-background-transparent-light); }
/* groepskop: de fase is de kop van het blok */
.sw5jhdy { border-bottom: 1px solid var(--t-border-color-medium); }

/* ---------- 4. Bord ---------- */
/* kolom = getint vlak, kaart = wit met dunne rand en zonder schaduw: de kaarten vallen op, de kolom niet */
.sdyi49k { background: var(--t-background-primary) !important; border: 1px solid var(--t-border-color-medium) !important; border-radius: 12px !important; box-shadow: none !important; }
.sdyi49k:hover { border-color: var(--t-border-color-strong) !important; }
.s1jcofov { background: var(--t-background-secondary); }
/* lege velden: op een kaart valt de regel weg, op een recordpagina staat een streepje (uit de bestaande versie) */
.sdyi49k .s1ets8d3 > :has(.s1vaiy3a) { display: none; }
.s1vaiy3a { visibility: hidden; position: relative; }
.s1vaiy3a::before { content: "\2013"; visibility: visible; position: absolute; left: 0; color: var(--t-font-color-extra-light); }

/* ---------- 5. Beweging ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
