/* Benoit's design system — generated from tokens.json */
:root, [data-theme="light"] {
  --grey-50: #F8F7F4;
  --grey-100: #E8E5DF;
  --grey-200: #D6D1C8;
  --grey-300: #B4AEA3;
  --grey-400: #8C867B;
  --grey-500: #746E64;
  --grey-600: #5A554D;
  --grey-700: #4A463F;
  --grey-800: #403C36;
  --grey-900: #36332E;
  --grey-950: #24221F;
  --primary-50: #EFF8FC;
  --primary-100: #DCEFF8;
  --primary-200: #B6DEF0;
  --primary-300: #82C6E5;
  --primary-400: #3FA8D6;
  --primary-500: #008CC7;
  --primary-600: #0075A8;
  --primary-700: #005F88;
  --primary-800: #004B6B;
  --primary-900: #003A53;
  --success-50: #F5F9F1;
  --success-100: #E1EDD4;
  --success-200: #CDE0B8;
  --success-300: #BAD49B;
  --success-400: #A6C87E;
  --success-500: #92BC62;
  --success-600: #7EAC49;
  --success-700: #698F3D;
  --success-800: #547231;
  --success-900: #3F5625;
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-300: #fca5a5;
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --red-900: #7f1d1d;
  --red-950: #450a0a;
  --yellow-50: #fff8eb;
  --yellow-100: #feeac7;
  --yellow-200: #fdd28a;
  --yellow-300: #fcbb4d;
  --yellow-400: #fbab24;
  --yellow-500: #f59e0b;
  --yellow-600: #d98b06;
  --yellow-700: #b47409;
  --yellow-800: #92610e;
  --yellow-900: #78510f;
  --yellow-950: #452c03;
  --blue-50: #f2f8fd;
  --blue-100: #e4eefa;
  --blue-200: #c3ddf4;
  --blue-300: #8ec2eb;
  --blue-400: #52a2de;
  --blue-500: #2c86cb;
  --blue-600: #1d69ac;
  --blue-700: #19558b;
  --blue-800: #184974;
  --blue-900: #193d61;
  --blue-950: #112740;
  --purple-50: #f3e5f5;
  --purple-100: #e1bee7;
  --purple-200: #ce93d8;
  --purple-300: #ba68c8;
  --purple-400: #ab47bc;
  --purple-500: #9c27b0;
  --purple-600: #8e24aa;
  --purple-700: #7b1fa2;
  --purple-800: #6a1b9a;
  --purple-900: #4a148c;
  --brand-navy: #1C2B4A;
  --brand-teal: #11A394;
  --color-black: #1A1916;
  --color-black-muted: #2A2723;
  --color-white: #FFFFFF;
  --color-bg-default: #F5F4F0;
  --color-bg-paper: #FFFFFF;
  --color-primary: var(--primary-500);
  --color-primary-light: var(--primary-100);
  --color-primary-dark: var(--primary-600);
  --color-success: var(--success-500);
  --color-success-light: var(--success-100);
  --color-warning: #FBAB24;
  --color-error: #DC2626;
  --color-error-50: #FEF2F2;
  --color-error-100: #FEE2E2;
  --color-error-200: #FECACA;
  --color-info: var(--blue-400);
  --color-grey-main: var(--grey-600);
  --color-grey-light: var(--grey-100);
  --color-grey-dark: var(--grey-950);
  --color-red-main: var(--red-600);
  --color-yellow-main: var(--yellow-500);
  --color-blue-main: var(--blue-400);
  --color-text-title: var(--color-black-muted);
  --color-text-strong: var(--grey-950);
  --color-text-heading: var(--grey-800);
  --color-text-body: var(--grey-700);
  --color-text-normal: var(--grey-600);
  --color-text-muted: var(--grey-500);
  --color-text-placeholder: var(--grey-400);
  --color-text-lighter: var(--grey-300);
  --color-text-cancelled: var(--grey-200);
  --color-border: var(--grey-100);
  --color-border-strong: var(--grey-200);
  --color-row-divider: var(--grey-50);
  --status-pending: var(--blue-400);
  --status-processing: #8C5FBF;
  --status-done: var(--grey-600);
  --status-inactive: var(--grey-200);
  --status-cancelled: #B91C1C;
  --status-warning: var(--color-warning);
  --status-error: var(--color-error);
  --status-success: var(--color-success);
  --status-default: var(--color-primary);
  --backdrop: rgba(0, 0, 0, 0.16);
  --shadow-card: 0 1px 2px rgba(31, 29, 26, 0.04);
  --shadow-paper: 0px 12px 12px -6px rgba(0, 0, 0, 0.24);
  --shadow-dialog: 0px 100px 80px 0px rgba(0, 0, 0, 0.08), 0px 64.815px 46.852px 0px rgba(0, 0, 0, 0.05), 0px 38.519px 25.481px 0px rgba(0, 0, 0, 0.04), 0px 20px 13px 0px rgba(0, 0, 0, 0.04), 0px 8.148px 6.519px 0px rgba(0, 0, 0, 0.04), 0px 1.852px 3.148px 0px rgba(0, 0, 0, 0.08);
  --shadow-menu: 0 12px 24px -12px rgba(31, 29, 26, 0.18), 0 1px 2px rgba(31, 29, 26, 0.06);
  --shadow-dropdown: 0px 38.519px 25.481px 0px rgba(0, 0, 0, 0.04), 0px 20px 13px 0px rgba(0, 0, 0, 0.04), 0px 8.148px 6.519px 0px rgba(0, 0, 0, 0.04), 0px 1.852px 3.148px 0px rgba(0, 0, 0, 0.08);
  --shadow-dropdown-filter: 0px 12px 24px -6px rgba(0, 0, 0, 0.25);
  --shadow-search: 0 1px 2px rgba(21, 21, 21, 0.04);
}
:root {
  --space-unit: 8px;
  --space-0-25: 2px;
  --space-0-5: 4px;
  --space-0-75: 6px;
  --space-1: 8px;
  --space-1-25: 10px;
  --space-1-5: 12px;
  --space-1-75: 14px;
  --space-2: 16px;
  --space-2-5: 20px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --radius-4: 4px;
  --radius-pill: 999px;
  --radius-round: 50%;
  --font-sans: "Google Sans", Helvetica, sans-serif;
  --font-mono: "Google Sans Code", ui-monospace, monospace;
}
.display { font-family: var(--font-sans); font-size: 38px; line-height: 1.18; font-weight: 500; letter-spacing: -0.03em; }
.heading-section { font-family: var(--font-sans); font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.heading-page { font-family: var(--font-sans); font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -0.03em; }
.heading-card { font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: -0.03em; }
.kicker { font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; }
.body-lead { font-family: var(--font-sans); font-size: 15px; line-height: 1.65; font-weight: 400; letter-spacing: -0.03em; }
.body { font-family: var(--font-sans); font-size: 14px; line-height: 1.65; font-weight: 400; letter-spacing: -0.03em; }
.body-sm { font-family: var(--font-sans); font-size: 13px; line-height: 1.6; font-weight: 400; letter-spacing: -0.03em; }
.caption { font-family: var(--font-sans); font-size: 12px; line-height: 1.55; font-weight: 400; letter-spacing: -0.03em; }
.micro { font-family: var(--font-sans); font-size: 11px; line-height: 1.5; font-weight: 400; letter-spacing: -0.03em; }
.label { font-family: var(--font-sans); font-size: 10px; font-weight: 500; letter-spacing: -0.03em; }
.kpi-figure { font-family: var(--font-sans); font-size: 32px; line-height: 32px; font-weight: 400; letter-spacing: -0.03em; }
.kpi-title { font-family: var(--font-sans); font-size: 12px; line-height: 24px; font-weight: 600; letter-spacing: 0.02em; }
.table-head { font-family: var(--font-sans); font-size: 11px; line-height: 32px; font-weight: 600; letter-spacing: 0.03em; }
.price { font-family: var(--font-sans); font-size: 17px; font-weight: 600; letter-spacing: -0.03em; }
.reference { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0; }
@font-face { font-family: "Google Sans"; src: url(/assets/google-sans-4693675477f9e7fe9fe80b05e51bbacaa0641246e05f6b34bcc9f43f9943ae27.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Google Sans Code"; src: url(/assets/google-sans-code-e941f117c8ebd082720255116a3e619e17ecc7d82487b3d995e84272f7ab13cb.woff2) format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }

/*
 * Benoit's design system — component stylesheet (Supply components, Wifirst portal theme).
 * Tokens live in tokens.json / tokens.css. Based on: Supply — design system stylesheet
 * Source of truth: supply-front/src/theme.jsx (palette, typography, MUI overrides),
 * public/styles.css (global reset), App.jsx (GlobalStyles) and the components' sx / styled() code.
 * Every value below is transcribed from that code; comments name the component it comes from.
 * Icons: Lucide (lucide-static 1.50.0, ISC licence), rendered as CSS masks.
 */

/* ───────────────────────── Fonts (@fontsource, latin subset) ───────────────────────── */

/* ───────────────────────── Tokens ───────────────────────── */

:root {
  /* Not tokens: values tokens.css cannot hold (var(), motion, layout). */
  --letter-spacing-base: -0.03em; /* public/styles.css on html/body: computes to -0.48px, inherited everywhere */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --focus-ring: 0 0 0 3px var(--primary-200);
  --focus-ring-danger: 0 0 0 3px var(--red-200);
  --focus-outline: 2px solid var(--primary-300);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms; /* buttons */
  --duration-base: 250ms; /* links, nav, inputs, MUI buttons */
  --page-gutter: 24px; /* App padding: 0 24px 24px */
  --header-height: 80px; /* WifirstLogo padding 24px + 32px mark */
  /* Portal: Supply's radius scale is flattened to one 4px corner (radius-4 in tokens.json). */
  --radius-5: var(--radius-4);
  --radius-6: var(--radius-4);
  --radius-7: var(--radius-4);
  --radius-8: var(--radius-4);
  --radius-10: var(--radius-4);
  --radius-12: var(--radius-4);
  --radius-14: var(--radius-4);
  --radius-15: var(--radius-4);
  --radius-16: var(--radius-4);
  /* Portal layout */
  --content-max: 1280px;   /* main column */
  --content-gutter: 32px;  /* main side padding */
}

/* ───────────────────────── Base (public/styles.css + App GlobalStyles) ───────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  letter-spacing: var(--letter-spacing-base);
}

body {
  min-height: 100vh;
  background-color: var(--color-bg-default);
  text-rendering: optimizeSpeed;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition-property: color, border-color;
  transition-duration: var(--duration-base);
}

a:hover {
  color: var(--color-black-muted);
  border-color: var(--color-black-muted);
}

button {
  padding: 0;
  color: inherit;
  border-width: 0;
  background-color: transparent;
  cursor: pointer;
}

input,
button,
textarea,
select {
  font: inherit;
}

ul,
ol,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

p,
figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

/* ───────────────────────── Typography (theme.typography variants) ───────────────────────── */

.c-text { margin: 0; }
.c-text--h1 { font-size: 24px; line-height: 32px; font-weight: 600; color: var(--color-black-muted); }
.c-text--h2 { font-size: 16px; line-height: 32px; font-weight: 500; color: var(--color-black-muted); }
.c-text--h3 { font-size: 14px; line-height: 32px; font-weight: 400; color: var(--grey-800); }
.c-text--h4 { font-size: 32px; line-height: 40px; font-weight: 600; color: var(--grey-800); }
.c-text--h5 { font-size: 24px; line-height: 32px; font-weight: 600; color: var(--grey-800); }
.c-text--h6 { font-size: 20px; line-height: 24px; font-weight: 600; color: var(--grey-800); }
.c-text--subtitle1 { font-size: 14px; line-height: 24px; font-weight: 500; color: var(--grey-500); }
.c-text--subtitle2 { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--grey-800); }
.c-text--body { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--grey-950); }
.c-text--field-label { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--grey-600); }
.c-text--field-value { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--grey-950); }
.c-text--section-title { font-size: 14px; line-height: 24px; font-weight: 600; color: var(--grey-800); }
.c-text--button { font-size: 12px; line-height: 24px; font-weight: 500; text-transform: uppercase; }
.c-text--caption { font-size: 12px; line-height: 1.66; font-weight: 500; color: var(--grey-800); }
.c-text--normal { color: var(--grey-600); }
.c-text--lighter { color: var(--grey-300); }
.c-text--cancelled { color: var(--grey-200); text-decoration: line-through; }
.c-text--error { color: var(--red-600); font-weight: 500; }
.c-text--warning { color: var(--yellow-500); font-weight: 500; }
.c-text--link-external { border-bottom: 1px dashed var(--grey-400); }
.c-text--link-external-error { color: var(--red-600); font-weight: 500; border-bottom: 1px dashed var(--red-200); }
.c-text--link-external-warning { color: var(--yellow-500); font-weight: 500; border-bottom: 1px dashed var(--yellow-200); }

/* Référence produit / équipement — theme.typography.reference + components/ReferenceText.jsx */
.c-reference {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
}

.c-reference--emphasis { font-weight: 500; color: var(--color-black-muted); }
.c-reference--small { font-size: 11px; }   /* LocationWithTargetCell target stock */

/* « — » — components/na.jsx */
.c-na { color: var(--grey-300); text-decoration: none; }

/* ───────────────────────── Icons (Lucide → CSS masks) ───────────────────────── */

.c-icon {
  display: inline-block;
  flex: none;
  width: calc(var(--c-icon-w, 1) * 1em);
  height: 1em;
  vertical-align: -0.125em;
  background-color: currentColor;
  -webkit-mask: var(--c-icon) center / contain no-repeat;
  mask: var(--c-icon) center / contain no-repeat;
}

.c-icon--spin { animation: c-spin 2s linear infinite; }

@keyframes c-spin {
  to { transform: rotate(360deg); }
}

.c-icon--circle-dashed { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M10.1 2.182a10 10 0 0 1 3.8 0'/%3E%3Cpath d='M13.9 21.818a10 10 0 0 1-3.8 0'/%3E%3Cpath d='M17.609 3.721a10 10 0 0 1 2.69 2.7'/%3E%3Cpath d='M2.182 13.9a10 10 0 0 1 0-3.8'/%3E%3Cpath d='M20.279 17.609a10 10 0 0 1-2.7 2.69'/%3E%3Cpath d='M21.818 10.1a10 10 0 0 1 0 3.8'/%3E%3Cpath d='M3.721 6.391a10 10 0 0 1 2.7-2.69'/%3E%3Cpath d='M6.391 20.279a10 10 0 0 1-2.69-2.7'/%3E%3C/svg%3E"); }
.c-icon--clock-3 { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6h4'/%3E%3C/svg%3E"); }
.c-icon--hourglass { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M5 22h14'/%3E%3Cpath d='M5 2h14'/%3E%3Cpath d='M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22'/%3E%3Cpath d='M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2'/%3E%3C/svg%3E"); }
.c-icon--circle-dot { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E"); }
.c-icon--contrast { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 18a6 6 0 0 0 0-12v12z'/%3E%3C/svg%3E"); }
.c-icon--circle-alert { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E"); }
.c-icon--check { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.c-icon--x { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E"); }
.c-icon--ban { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M4.929 4.929 19.07 19.071'/%3E%3C/svg%3E"); }
.c-icon--calendar-clock { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M16 14v2.2l1.6 1'/%3E%3Cpath d='M16 2v3'/%3E%3Cpath d='M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338'/%3E%3Cpath d='M3 9h5.859'/%3E%3Cpath d='M8 2v3'/%3E%3Ccircle cx='16' cy='16' r='6'/%3E%3C/svg%3E"); }
.c-icon--package-x { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M12 22V12'/%3E%3Cpath d='m16.5 14.5 5 5'/%3E%3Cpath d='m16.5 19.5 5-5'/%3E%3Cpath d='M21 10.5V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l.13-.074'/%3E%3Cpath d='M3.29 7 12 12l8.71-5'/%3E%3Cpath d='m7.5 4.27 8.997 5.148'/%3E%3C/svg%3E"); }
.c-icon--shopping-cart { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m2.05 2.05 1.099-.028a1 1 0 0 1 1.008.815l2.69 14.347A1 1 0 0 0 7.83 18H18'/%3E%3Cpath d='M4.563 5h16.435a1 1 0 0 1 .981 1.204l-1.026 6.226A2 2 0 0 1 18.962 14H6.25'/%3E%3Ccircle cx='18' cy='20' r='2'/%3E%3Ccircle cx='8' cy='20' r='2'/%3E%3C/svg%3E"); }
.c-icon--cloud-download { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M12 13v8l-4-4'/%3E%3Cpath d='m12 21 4-4'/%3E%3Cpath d='M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284'/%3E%3C/svg%3E"); }
.c-icon--bug { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M12 20v-9'/%3E%3Cpath d='M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z'/%3E%3Cpath d='M14.12 3.88 16 2'/%3E%3Cpath d='M21 21a4 4 0 0 0-3.81-4'/%3E%3Cpath d='M21 5a4 4 0 0 1-3.55 3.97'/%3E%3Cpath d='M22 13h-4'/%3E%3Cpath d='M3 21a4 4 0 0 1 3.81-4'/%3E%3Cpath d='M3 5a4 4 0 0 0 3.55 3.97'/%3E%3Cpath d='M6 13H2'/%3E%3Cpath d='m8 2 1.88 1.88'/%3E%3Cpath d='M9 7.13V6a3 3 0 1 1 6 0v1.13'/%3E%3C/svg%3E"); }
.c-icon--boxes { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z'/%3E%3Cpath d='m7 16.5-4.74-2.85'/%3E%3Cpath d='m7 16.5 5-3'/%3E%3Cpath d='M7 16.5v5.17'/%3E%3Cpath d='M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z'/%3E%3Cpath d='m17 16.5-5-3'/%3E%3Cpath d='m17 16.5 4.74-2.85'/%3E%3Cpath d='M17 16.5v5.17'/%3E%3Cpath d='M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z'/%3E%3Cpath d='M12 8 7.26 5.15'/%3E%3Cpath d='m12 8 4.74-2.85'/%3E%3Cpath d='M12 13.5V8'/%3E%3C/svg%3E"); }
.c-icon--recycle { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5'/%3E%3Cpath d='M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12'/%3E%3Cpath d='m14 16-3 3 3 3'/%3E%3Cpath d='M8.293 13.596 7.196 9.5 3.1 10.598'/%3E%3Cpath d='m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843'/%3E%3Cpath d='m13.378 9.633 4.096 1.098 1.097-4.096'/%3E%3C/svg%3E"); }
.c-icon--pen { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z'/%3E%3C/svg%3E"); }
.c-icon--archive { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Crect width='20' height='5' x='2' y='3' rx='1'/%3E%3Cpath d='M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8'/%3E%3Cpath d='M10 12h4'/%3E%3C/svg%3E"); }
.c-icon--zap { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z'/%3E%3C/svg%3E"); }
.c-icon--flame { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4'/%3E%3C/svg%3E"); }
.c-icon--eye { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.c-icon--pencil { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z'/%3E%3Cpath d='m15 5 4 4'/%3E%3C/svg%3E"); }
.c-icon--trash-2 { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E"); }
.c-icon--plus { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E"); }
.c-icon--arrow-down-to-line { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M12 17V3'/%3E%3Cpath d='m6 11 6 6 6-6'/%3E%3Cpath d='M19 21H5'/%3E%3C/svg%3E"); }
.c-icon--copy { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Crect width='14' height='14' x='8' y='8' rx='2' ry='2'/%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3C/svg%3E"); }
.c-icon--external-link { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E"); }
.c-icon--history { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3Cpath d='M12 7v5l4 2'/%3E%3C/svg%3E"); }
.c-icon--log-out { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3C/svg%3E"); }
.c-icon--rotate-ccw { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E"); }
.c-icon--refresh-cw { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3Cpath d='M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16'/%3E%3Cpath d='M8 16H3v5'/%3E%3C/svg%3E"); }
.c-icon--loader-circle { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M21 12a9 9 0 1 1-6.219-8.56'/%3E%3C/svg%3E"); }
.c-icon--message-square-text { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z'/%3E%3Cpath d='M7 11h10'/%3E%3Cpath d='M7 15h6'/%3E%3Cpath d='M7 7h8'/%3E%3C/svg%3E"); }
.c-icon--power { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M12 2v10'/%3E%3Cpath d='M18.4 6.6a9 9 0 1 1-12.77.04'/%3E%3C/svg%3E"); }
.c-icon--sliders-horizontal { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M10 5H3'/%3E%3Cpath d='M12 19H3'/%3E%3Cpath d='M14 3v4'/%3E%3Cpath d='M16 17v4'/%3E%3Cpath d='M21 12h-9'/%3E%3Cpath d='M21 19h-5'/%3E%3Cpath d='M21 5h-7'/%3E%3Cpath d='M8 10v4'/%3E%3Cpath d='M8 12H3'/%3E%3C/svg%3E"); }
.c-icon--package { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z'/%3E%3Cpath d='M12 22V12'/%3E%3Cpolyline points='3.29 7 12 12 20.71 7'/%3E%3Cpath d='m7.5 4.27 9 5.15'/%3E%3C/svg%3E"); }
.c-icon--search { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m21 21-4.34-4.34'/%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3C/svg%3E"); }
.c-icon--chevron-down { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.c-icon--chevron-left { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E"); }
.c-icon--chevron-right { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E"); }
.c-icon--arrow-left { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m12 19-7-7 7-7'/%3E%3Cpath d='M19 12H5'/%3E%3C/svg%3E"); }
.c-icon--slash { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M22 2 2 22'/%3E%3C/svg%3E"); }
.c-icon--gauge { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m12 14 4-4'/%3E%3Cpath d='M3.34 19a10 10 0 1 1 17.32 0'/%3E%3C/svg%3E"); }
.c-icon--arrow-down-wide-narrow { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m3 16 4 4 4-4'/%3E%3Cpath d='M7 20V4'/%3E%3Cpath d='M11 4h10'/%3E%3Cpath d='M11 8h7'/%3E%3Cpath d='M11 12h4'/%3E%3C/svg%3E"); }
.c-icon--arrow-up-wide-narrow { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m3 8 4-4 4 4'/%3E%3Cpath d='M7 4v16'/%3E%3Cpath d='M11 12h10'/%3E%3Cpath d='M11 16h7'/%3E%3Cpath d='M11 20h4'/%3E%3C/svg%3E"); }
.c-icon--list { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M3 5h.01'/%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 19h.01'/%3E%3Cpath d='M8 5h13'/%3E%3Cpath d='M8 12h13'/%3E%3Cpath d='M8 19h13'/%3E%3C/svg%3E"); }
.c-icon--file { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z'/%3E%3Cpath d='M14 2v5a1 1 0 0 0 1 1h5'/%3E%3C/svg%3E"); }
.c-icon--truck { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E"); }
.c-icon--mail { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7'/%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3C/svg%3E"); }
.c-icon--phone { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384'/%3E%3C/svg%3E"); }
.c-icon--circle-check { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m16 9-5.5 5.5L8 12'/%3E%3C/svg%3E"); }
.c-icon--triangle-alert { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); }
.c-icon--info { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E"); }
.c-icon--cloud-alert { --c-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M12 12v4'/%3E%3Cpath d='M12 20h.01'/%3E%3Cpath d='M8.128 16.949A7 7 0 1 1 15.71 8h1.79a1 1 0 0 1 0 9h-1.642'/%3E%3C/svg%3E"); }

/* ───────────────────────── Buttons — MUI Button (theme.jsx › MuiButton) ───────────────────────── */

.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;                       /* label + icon are wrapped in <Stack direction="row" gap={1}> */
  position: relative;
  box-sizing: border-box;
  height: 32px;
  min-width: 0;
  margin: 0;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: 0;
  background-color: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: normal;         /* <button>: UA style, the global -0.03em does not reach it */
  text-transform: none;
  white-space: nowrap;
  vertical-align: middle;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background-color 250ms var(--ease-standard), box-shadow 250ms var(--ease-standard), border-color 250ms var(--ease-standard), color 250ms var(--ease-standard);
}

.c-button:focus-visible,
.c-button.is-focus { box-shadow: var(--focus-ring); }

.c-button--small { height: 28px; font-size: 12px; line-height: 26px; }
.c-button--large { height: 40px; font-size: 14px; line-height: 38px; }

/* Principal — action principale de l'écran */
.c-button--contained { border-color: var(--primary-500); background-color: var(--primary-500); color: var(--color-white); }
.c-button--contained:hover,
.c-button--contained.is-hover { border-color: var(--primary-600); background-color: var(--primary-600); }
.c-button--contained:active,
.c-button--contained.is-active { border-color: var(--primary-700); background-color: var(--primary-700); }

/* Danger — confirmation d'une suppression / annulation */
.c-button--contained.c-button--error { border-color: var(--red-600); background-color: var(--red-600); }
.c-button--contained.c-button--error:hover,
.c-button--contained.c-button--error.is-hover { border-color: var(--red-700); background-color: var(--red-700); }
.c-button--contained.c-button--error:active,
.c-button--contained.c-button--error.is-active { border-color: var(--red-800); background-color: var(--red-800); }

/* Secondaire — actions courantes (Annuler, Historique, Exporter) */
.c-button--outlined { border-color: var(--grey-200); background-color: var(--color-bg-paper); color: var(--color-black-muted); }
.c-button--outlined:hover,
.c-button--outlined.is-hover { border-color: var(--grey-300); background-color: var(--grey-50); color: var(--color-black-muted); }
.c-button--outlined:active,
.c-button--outlined.is-active { border-color: var(--grey-300); background-color: rgba(232, 229, 223, 0.6); }

/* Danger contour — déclencheur d'une action destructive (Annuler la commande) */
.c-button--outlined.c-button--error { border-color: var(--red-200); color: var(--red-700); }
.c-button--outlined.c-button--error:hover,
.c-button--outlined.c-button--error.is-hover { border-color: var(--red-300); background-color: var(--red-50); color: var(--red-800); }
.c-button--outlined.c-button--error:active,
.c-button--outlined.c-button--error.is-active { border-color: var(--red-300); background-color: var(--red-100); color: var(--red-800); }

/* Discret — actions tertiaires, liens d'action (Tout effacer, Voir plus) */
.c-button--text { color: var(--primary-700); }
.c-button--text:hover,
.c-button--text.is-hover { background-color: var(--primary-50); color: var(--primary-800); }
.c-button--text:active,
.c-button--text.is-active { background-color: var(--primary-100); color: var(--primary-900); }

/* Tonal — action d'appoint dans un bloc (Ajouter une ligne) */
.c-button--tonal { border-color: var(--primary-100); background-color: var(--primary-50); color: var(--primary-800); }
.c-button--tonal:hover,
.c-button--tonal.is-hover { border-color: var(--primary-200); background-color: var(--primary-100); }
.c-button--tonal:active,
.c-button--tonal.is-active { border-color: var(--primary-200); background-color: var(--primary-200); color: var(--primary-900); }

/* Tonal ambre / contour ambre — Table/Button type="warningPlain" / "warning" */
.c-button--tonal.c-button--warning { border-color: var(--yellow-200); background-color: var(--yellow-50); color: var(--yellow-900); }
.c-button--tonal.c-button--warning:hover,
.c-button--tonal.c-button--warning.is-hover { border-color: var(--yellow-300); background-color: var(--yellow-100); }
.c-button--outlined.c-button--warning { border-color: var(--yellow-200); color: var(--yellow-900); }
.c-button--outlined.c-button--warning:hover,
.c-button--outlined.c-button--warning.is-hover { border-color: var(--yellow-300); background-color: var(--yellow-50); }

.c-button--error:focus-visible,
.c-button--error.is-focus { box-shadow: var(--focus-ring-danger); }

/* Désactivé : neutre, quelle que soit la variante */
.c-button:disabled,
.c-button.is-disabled { cursor: not-allowed; }
.c-button--contained:disabled,
.c-button--contained.is-disabled { border-color: var(--grey-100); background-color: var(--grey-100); color: var(--grey-400); }
.c-button--outlined:disabled,
.c-button--outlined.is-disabled { border-color: var(--grey-100); background-color: var(--color-bg-paper); color: var(--grey-300); }
.c-button--text:disabled,
.c-button--text.is-disabled { background-color: transparent; color: var(--grey-300); }
.c-button--tonal:disabled,
.c-button--tonal.is-disabled { border-color: var(--grey-100); background-color: var(--grey-50); color: var(--grey-300); }

/* Chargement — le libellé garde sa place, un voile de la couleur du bouton porte le spinner (Table/Button) */
.c-button__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background-color: inherit;
  color: inherit;
}

.c-button.is-loading { pointer-events: none; }
.c-button__loader .c-progress { color: inherit; }   /* <CircularProgress size={16} sx={{ color: 'inherit' }} /> */

/* Pilule d'ouverture d'un menu — DropDown/styles.jsx › MenuButton (WaitingEquipmentRequests) */
.c-menu-button {
  border-radius: var(--radius-pill);
  border-color: var(--grey-100);
  background-color: var(--color-bg-paper);
  color: var(--grey-700);
  font-size: 12px;
  font-weight: 500;
  gap: 0;
}

.c-menu-button:hover,
.c-menu-button.is-hover { border-color: var(--grey-300); background-color: var(--grey-50); color: var(--grey-800); }

.c-menu-button--warning { border-color: rgba(253, 210, 138, 0.7); background-color: var(--yellow-50); color: var(--yellow-900); }
.c-menu-button--warning:hover,
.c-menu-button--warning.is-hover { border-color: var(--yellow-300); background-color: var(--yellow-100); color: var(--yellow-900); }
.c-menu-button--warning:focus-visible { box-shadow: 0 0 0 3px var(--yellow-200); }

.c-menu-button__dot { display: block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background-color: var(--yellow-600); }
.c-menu-button__chevron { margin-left: 8px; font-size: 12px; transition: transform 250ms; }
.c-menu-button.is-open .c-menu-button__chevron { transform: rotate(180deg); }

/* Menu ouvert — DropDown/styles.jsx › RoundedMenu */
.c-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--grey-100);
  border-radius: 12px;
  background-color: var(--color-bg-paper);
  box-shadow: var(--shadow-menu);
}

.c-menu__item {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 32px;
  color: var(--grey-700);
  white-space: nowrap;
  cursor: pointer;
}

.c-menu__item:hover,
.c-menu__item.is-hover { background-color: var(--primary-50); color: var(--primary-800); }
.c-menu__item.is-disabled { font-weight: 400; color: var(--grey-400); cursor: default; }

/* ───────────────────────── IconButton (components/IconButton.jsx) ───────────────────────── */

.c-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid var(--grey-100);
  border-radius: 8px;
  background-color: var(--color-bg-paper);
  color: var(--primary-600);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition-property: border-color, background-color, color, box-shadow;
  transition-duration: var(--duration-fast);
}

.c-icon-button:hover,
.c-icon-button.is-hover { border-color: var(--grey-300); background-color: var(--grey-50); color: var(--primary-800); }
.c-icon-button:active,
.c-icon-button.is-active { border-color: var(--grey-300); background-color: rgba(232, 229, 223, 0.6); color: var(--primary-900); }

.c-icon-button--medium { min-width: 32px; height: 32px; font-size: 13px; }
.c-icon-button--big { min-width: 40px; height: 40px; font-size: 14px; }

.c-icon-button--plain { border-color: var(--primary-500); background-color: var(--primary-500); color: var(--color-white); }
.c-icon-button--plain:hover,
.c-icon-button--plain.is-hover { border-color: var(--primary-600); background-color: var(--primary-600); color: var(--color-white); }
.c-icon-button--plain:active,
.c-icon-button--plain.is-active { border-color: var(--primary-700); background-color: var(--primary-700); color: var(--color-white); }

.c-icon-button--error { color: var(--red-700); }
.c-icon-button--error:hover,
.c-icon-button--error.is-hover { border-color: var(--red-300); background-color: var(--red-50); color: var(--red-800); }

.c-icon-button--success { color: var(--success-700); }
.c-icon-button--success:hover,
.c-icon-button--success.is-hover { border-color: var(--success-300); background-color: var(--success-50); color: var(--success-800); }

.c-icon-button--warning { color: var(--yellow-700); }
.c-icon-button--warning:hover,
.c-icon-button--warning.is-hover { border-color: var(--yellow-300); background-color: var(--yellow-50); color: var(--yellow-800); }

a:focus-visible > .c-icon-button,
button:focus-visible > .c-icon-button,
.c-icon-button.is-focus { box-shadow: var(--focus-ring); }

.c-icon-button.is-disabled,
.c-icon-button.is-disabled:hover { border-color: var(--grey-100); background-color: var(--color-bg-paper); color: var(--grey-200); cursor: not-allowed; }
.c-icon-button--plain.is-disabled,
.c-icon-button--plain.is-disabled:hover { border-color: var(--grey-100); background-color: var(--grey-100); color: var(--grey-400); }

.c-icon-button__count { font-size: 11px; }

/* Bouton rond de déconnexion — components/Logout.jsx */
.c-icon-button--round { width: 32px; min-width: 32px; height: 32px; padding: 0; border-radius: 50%; font-size: 14px; line-height: normal; }

/* Bouton « Copier » de CodeCell */
.c-copy-button {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--grey-100);
  border-radius: 6px;
  background-color: var(--color-bg-paper);
  color: var(--grey-500);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 250ms, color 250ms;
}

.c-copy-button:hover,
.c-copy-button.is-hover { border-color: var(--grey-300); color: var(--grey-800); }

/* Actions d'une ligne dans un seul cadre — components/Table/ActionGroup.jsx */
.c-action-group {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--grey-100);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--color-bg-paper);
  vertical-align: middle;
}

.c-action-group > * { display: flex; }
.c-action-group > * + * { border-left: 1px solid var(--grey-100); }

.c-action-group .c-icon-button {
  min-width: 30px;
  height: 30px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
}

.c-action-group .c-icon-button:hover,
.c-action-group .c-icon-button.is-hover { background-color: var(--grey-50); }
.c-action-group .c-icon-button--error:hover,
.c-action-group .c-icon-button--error.is-hover { background-color: var(--red-50); }
.c-action-group .c-icon-button.is-disabled { background-color: var(--color-bg-paper); }

/* Bouton de filtre à compteur — components/ButtonFilter.jsx */
.c-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  min-width: 42px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--grey-100);
  border-radius: 8px;
  background-color: var(--color-bg-paper);
  color: var(--grey-600);
  font-size: 13px;
  letter-spacing: normal;
  cursor: pointer;
  transition-duration: 250ms;
  transition-property: color, border-color, background-color, box-shadow;
}

.c-filter-button:hover,
.c-filter-button.is-hover { border-color: var(--grey-400); }

.c-filter-button.has-count { color: var(--grey-700); border-color: var(--grey-100); background-color: var(--grey-50); }
.c-filter-button.is-active { color: var(--grey-700); border-color: var(--grey-600); background-color: var(--grey-50); box-shadow: inset 0 0 0 1px var(--grey-600); }
.c-filter-button--warning.has-count { color: var(--yellow-900); border-color: var(--yellow-200); background-color: var(--yellow-50); }
.c-filter-button--warning.is-active { color: var(--yellow-900); border-color: var(--yellow-500); background-color: var(--yellow-50); box-shadow: inset 0 0 0 1px var(--yellow-500); }
.c-filter-button--error.has-count { color: var(--red-700); border-color: var(--red-200); background-color: var(--red-50); }
.c-filter-button--error.is-active { color: var(--red-700); border-color: var(--red-500); background-color: var(--red-50); box-shadow: inset 0 0 0 1px var(--red-500); }

.c-filter-button__count { font-size: 12px; font-weight: 600; line-height: 16px; font-variant-numeric: tabular-nums; }

/* ───────────────────────── Tags, pills, badges ───────────────────────── */

/* Étiquette de classement — components/Tag.jsx (tone: neutral | primary | purple | green | amber | blue) */
.c-tag {
  display: inline-block;
  max-width: 100%;
  padding: 1px 8px;
  border: 1px solid var(--grey-100);
  border-radius: 6px;
  background-color: var(--grey-50);
  color: var(--grey-700);
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  vertical-align: middle;
  text-decoration: none;
  --c-tag-dot: var(--grey-400);
}

.c-tag--primary { border-color: var(--primary-100); background-color: var(--primary-100); color: var(--primary-800); --c-tag-dot: var(--primary-500); }
.c-tag--purple { border-color: var(--purple-50); background-color: var(--purple-50); color: var(--purple-800); --c-tag-dot: var(--purple-400); }
.c-tag--green { border-color: var(--success-100); background-color: var(--success-50); color: var(--success-900); --c-tag-dot: var(--success-600); }
.c-tag--amber { border-color: var(--yellow-100); background-color: var(--yellow-50); color: var(--yellow-900); --c-tag-dot: var(--yellow-500); }
.c-tag--blue { border-color: var(--blue-100); background-color: var(--blue-50); color: var(--blue-800); --c-tag-dot: var(--blue-400); }
.c-tag--muted { border-color: var(--grey-50); background-color: var(--grey-50); color: var(--grey-300); --c-tag-dot: var(--grey-200); }
.c-tag--md { font-size: 12px; }   /* <Tag sx={{ fontSize: 12 }}> — catégorie produit */

.c-tag__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 1px;
  background-color: var(--c-tag-dot);
}

/* Valeur chiffrée en pastille — components/CountPill.jsx */
.c-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 28px;
  height: 24px;
  box-sizing: border-box;
  padding: 0 9px;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-pill);
  background-color: var(--grey-100);
  color: var(--grey-800);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  cursor: default;
  transition: border-color 250ms;
}

.c-count-pill > .c-icon { font-size: 11px; }
.c-count-pill--muted { border-color: var(--grey-100); background-color: var(--grey-50); color: var(--grey-400); }
.c-count-pill--primary { border-color: var(--primary-100); background-color: var(--primary-100); color: var(--primary-800); }
.c-count-pill--success { border-color: var(--success-100); background-color: var(--success-50); color: var(--success-900); }
.c-count-pill--warning { border-color: var(--yellow-200); background-color: var(--yellow-50); color: var(--yellow-900); }
.c-count-pill--error { border-color: var(--red-200); background-color: var(--red-50); color: var(--red-700); }

.c-count-pill--outline { border-color: var(--grey-100); background-color: var(--color-white); color: var(--primary-700); font-weight: 500; }
.c-count-pill--outline.is-zero { border-style: dashed; border-color: var(--grey-200); color: var(--grey-400); }

button.c-count-pill { cursor: pointer; }
button.c-count-pill:hover,
.c-count-pill.is-hover { border-color: var(--primary-300); }

/* Badge « 1× » — components/QuantityBadge.jsx */
.c-quantity-badge {
  flex: none;
  display: inline-block;
  min-width: 24px;
  height: 18px;
  padding: 0 5px;
  border-radius: 5px;
  background-color: var(--grey-100);
  color: var(--grey-600);
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.c-quantity-badge--regularisation { font-style: italic; color: var(--grey-300); }
.c-quantity-badge--cancelled { background-color: var(--grey-50); color: var(--grey-300); }

/* Ancien Chip (div stylé) — components/Chip.jsx : template de scénario, propriétés de catégorie */
.c-chip {
  display: flex;
  align-items: center;
  width: fit-content;
  height: fit-content;
  padding: 4px 8px;
  border: none;
  border-radius: 8px;
  background-color: var(--primary-100);
  color: var(--primary-500);
  font-size: 10px;
}

.c-chip--btn { border: 1px solid var(--grey-100); background-color: transparent; color: inherit; cursor: pointer; }

/* Chip de filtre actif — MUI <Chip size="small"> + theme MuiChip */
.c-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  height: 24px;
  max-width: 100%;
  border: 1px solid var(--primary-100);
  border-radius: 8px;
  background-color: var(--primary-100);
  color: var(--primary-800);
  font-size: 11px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
  vertical-align: middle;
}

.c-filter-chip__label { overflow: hidden; text-overflow: ellipsis; padding-left: 8px; padding-right: 0; }
.c-filter-chip__prefix { margin-right: 4px; }
.c-filter-chip__dot { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background-color: var(--status, var(--primary-500)); }

.c-filter-chip__delete {
  width: 12px;
  margin: 0 4px 0 6px;
  color: var(--primary-400);
  font-size: 10px;
  text-align: center;
  cursor: pointer;
}

/* Monogramme d'organisation (carré) — components/Monogram.jsx · OrganizationCell */
.c-monogram,
.c-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.c-monogram__mark,
.c-avatar__mark {
  flex: none;
  width: 24px;
  height: 24px;
  font-size: 10px;
  line-height: 24px;
  text-align: center;
  background-color: var(--c-tone-bg);
  color: var(--c-tone-fg);
}

.c-monogram__mark { border-radius: 7px; font-weight: 700; letter-spacing: 0.02em; }
.c-avatar__mark { border-radius: 50%; font-weight: 600; letter-spacing: 0; }

.c-monogram__name,
.c-avatar__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Teintes douces stables par nom — lib/initials.js › softTones (organisations : 5, personnes : 4 premières) */
.c-monogram--tone-1, .c-avatar--tone-1 { --c-tone-bg: var(--primary-100); --c-tone-fg: var(--primary-800); }
.c-monogram--tone-2, .c-avatar--tone-2 { --c-tone-bg: var(--purple-50); --c-tone-fg: var(--purple-800); }
.c-monogram--tone-3, .c-avatar--tone-3 { --c-tone-bg: var(--success-100); --c-tone-fg: var(--success-900); }
.c-monogram--tone-4, .c-avatar--tone-4 { --c-tone-bg: var(--yellow-100); --c-tone-fg: var(--yellow-900); }
.c-monogram--tone-5 { --c-tone-bg: var(--grey-100); --c-tone-fg: var(--grey-800); }
.c-monogram--muted { --c-tone-bg: var(--grey-50); --c-tone-fg: var(--grey-400); }
.c-avatar--muted { --c-tone-bg: var(--grey-100); --c-tone-fg: var(--grey-500); }
.c-avatar--muted .c-avatar__name { color: var(--grey-200); text-decoration: line-through; }

/* ───────────────────────── Statuses (components/StatusIcon/*) ───────────────────────── */

/* Statut → couleur (statusToColor) ; les modificateurs --tone-* reprennent les `color` explicites des pages */
.c-status-icon--inconsistent-inventory,
.c-status-pill--inconsistent-inventory,
.c-status-label--inconsistent-inventory,
.c-status-icon--late,
.c-status-pill--late,
.c-status-label--late { --status: var(--status-warning); }

.c-status-icon--supplier-missing,
.c-status-pill--supplier-missing,
.c-status-label--supplier-missing,
.c-status-icon--logistic-missing,
.c-status-pill--logistic-missing,
.c-status-label--logistic-missing,
.c-status-icon--missing-import,
.c-status-pill--missing-import,
.c-status-label--missing-import,
.c-status-icon--quantity-mismatch,
.c-status-pill--quantity-mismatch,
.c-status-label--quantity-mismatch,
.c-status-icon--rejected,
.c-status-pill--rejected,
.c-status-label--rejected { --status: var(--status-error); }

.c-status-icon--approved,
.c-status-pill--approved,
.c-status-label--approved,
.c-status-icon--partially-delivered,
.c-status-pill--partially-delivered,
.c-status-label--partially-delivered,
.c-status-icon--delivered-with-mistakes,
.c-status-pill--delivered-with-mistakes,
.c-status-label--delivered-with-mistakes,
.c-status-icon--fully-delivered,
.c-status-pill--fully-delivered,
.c-status-label--fully-delivered,
.c-status-icon--processing,
.c-status-pill--processing,
.c-status-label--processing { --status: var(--status-processing); }

.c-status-icon--delivered,
.c-status-pill--delivered,
.c-status-label--delivered,
.c-status-icon--closed,
.c-status-pill--closed,
.c-status-label--closed,
.c-status-icon--archived,
.c-status-pill--archived,
.c-status-label--archived { --status: var(--status-done); }

.c-status-icon--non-orderable,
.c-status-pill--non-orderable,
.c-status-label--non-orderable { --status: var(--status-inactive); }

.c-status-icon--cancelled,
.c-status-pill--cancelled,
.c-status-label--cancelled { --status: var(--status-cancelled); }

.c-status-icon--pending,
.c-status-pill--pending,
.c-status-label--pending,
.c-status-icon--submitted,
.c-status-pill--submitted,
.c-status-label--submitted { --status: var(--status-pending); }

.c-status-icon--reconditioned,
.c-status-pill--reconditioned,
.c-status-label--reconditioned { --status: var(--status-success); }

.c-status-icon--draft,
.c-status-pill--draft,
.c-status-label--draft { --status: var(--status-default); }

.c-status-icon--tone-success, .c-status-pill--tone-success, .c-status-label--tone-success { --status: var(--color-success); }

.c-status-icon--tone-blue, .c-status-pill--tone-blue, .c-status-label--tone-blue { --status: var(--blue-400); }

.c-status-icon--tone-error, .c-status-pill--tone-error, .c-status-label--tone-error { --status: var(--color-error); }

.c-status-icon--tone-warning, .c-status-pill--tone-warning, .c-status-label--tone-warning { --status: var(--color-warning); }

.c-status-icon--tone-grey, .c-status-pill--tone-grey, .c-status-label--tone-grey { --status: var(--grey-500); }

.c-status-icon--tone-grey-400, .c-status-pill--tone-grey-400, .c-status-label--tone-grey-400 { --status: var(--grey-400); }

.c-status-icon--tone-css-grey, .c-status-pill--tone-css-grey, .c-status-label--tone-css-grey { --status: grey; }

/* StatusIcon variant="icon" (historique) */
.c-status-icon {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background-color: transparent;
  color: var(--status, var(--status-default));
  font-size: 14px;
}

/* StatusIcon variant="badge" — pastille ronde teintée (StatusCell) */
.c-status-icon--badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--status, var(--status-default)) 14%, transparent);
  font-size: 12px;
}

/* StatusPill — « icône + libellé » (en-têtes des vues détail) ; --dot : pastille de couleur (équipements, RMA) */
.c-status-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: fit-content;
  height: 28px;
  padding: 0 12px 0 10px;
  border-radius: var(--radius-pill);
  background-color: color-mix(in srgb, var(--status, var(--status-default)) 12%, transparent);
  color: color-mix(in srgb, var(--status, var(--status-default)) 65%, black);
  font-size: 13px;
  font-weight: 500;
  line-height: 28px;
  white-space: nowrap;
  vertical-align: middle;
}

.c-status-pill__icon { font-size: 12px; color: var(--status, var(--status-default)); }

.c-status-pill--dot { gap: 6px; height: 24px; padding: 0 9px; font-size: 12px; line-height: 24px; }

.c-status-pill__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--status, var(--status-default));
}

/* StatusLabel — icône + libellé ; seul « cancelled » colore le libellé (statusToLabelColor) */
.c-status-label { display: contents; }
.c-status-label--cancelled .c-status-label__text { color: var(--status, var(--status-default)); }

/* Légende des statuts au pied des listes — components/Table/Legend.jsx */
.c-legend {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--grey-400);
}

.c-legend__title { display: flex; align-items: center; gap: 8px; line-height: 16px; color: var(--grey-500); font-weight: 500; }

/* Icônes d'alerte des lignes — components/ErrorIcon.jsx */
.c-alert-icon { display: inline-block; padding: 0 2px; font-size: 12px; color: var(--red-600); }
.c-alert-icon--warning { color: var(--yellow-500); }
.c-alert-icon--success { color: var(--success-500); }

/* Pilule de réception « En attente » / « Reçue » — components/Waiting.jsx */
.c-reception-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-pill);
  background-color: var(--grey-50);
  color: var(--grey-600);
  font-size: 12px;
  font-weight: 400;
  line-height: 22px;
  white-space: nowrap;
}

.c-reception-pill__icon { font-size: 11px; }
.c-reception-pill--done { border-color: var(--success-100); background-color: var(--success-50); color: var(--success-800); font-weight: 500; }

/* « x sur y » + barre de progression — Table/Order/ReceivedDeliveriesCell.jsx */
.c-delivery-progress { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.c-delivery-progress__pill {
  height: 22px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  background-color: var(--primary-100);
  color: var(--primary-800);
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
}

.c-delivery-progress__track { width: 56px; height: 4px; border-radius: 4px; overflow: hidden; background-color: var(--grey-100); }
.c-delivery-progress__bar { height: 100%; background-color: var(--primary-500); }
.c-delivery-progress--cancelled .c-delivery-progress__pill { background-color: var(--grey-50); color: var(--grey-300); }
.c-delivery-progress--cancelled .c-delivery-progress__bar { background-color: var(--grey-300); }

/* ───────────────────────── Cards & sections ───────────────────────── */

/* components/Card.jsx */
.c-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--grey-100);
  border-radius: 12px;
  background-color: var(--color-bg-paper);
  box-shadow: var(--shadow-card);
}

/* ListCard : carte du tableau d'une page de liste, remplit la hauteur restante (au moins 320 px) */
.c-card--list { flex: 1; min-width: 0; min-height: 320px; }
.c-card--list > .c-table-container { flex: 1; min-height: 0; }

.c-card__header { padding: 16px 24px; border-bottom: 1px solid var(--grey-100); }
.c-card__header-row { display: flex; flex-direction: row; justify-content: space-between; }
.c-card__filters { padding: 12px 24px; border-bottom: 1px solid var(--grey-100); }
.c-card__filters > .c-text--h2 { margin-bottom: 8px; }
.c-card__body { position: relative; width: 100%; height: 100%; flex-grow: 1; z-index: 1; }

.c-card__footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 8px 16px;
  border-top: 1px solid var(--grey-100);
}

/* Section des vues détail — components/Section/styled.js */
.c-section {
  padding: 24px 16px;
  border: 1px solid var(--grey-100);
  border-radius: 16px;
  background-color: var(--color-bg-paper);
  box-shadow: var(--shadow-card);
}

.c-section-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding-bottom: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--grey-950);
}

.c-section-title--flush { padding-bottom: 0; }

.c-section-title__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: var(--primary-100);
  color: var(--primary-600);
  font-size: 13px;
}

/* Ligne « libellé ······ valeur » — components/Section/Field.jsx, FieldWithLink.jsx */
.c-field { display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 8px; }
.c-field__label { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--grey-600); white-space: nowrap; }
.c-field__value { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--grey-950); text-align: right; }
.c-field__value--link { color: var(--primary-600); }
.c-field__value--link:hover { text-decoration: underline; }
.c-field__relative { font-size: 11px; font-weight: 400; color: var(--blue-700); }
.c-field__relative--late { color: var(--yellow-900); }

.c-divider-line { flex: 1; height: 0; border-top: 1px dotted var(--grey-200); }

/* components/Section/styled.js › InfoBox */
.c-info-box { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background-color: var(--primary-100); }
.c-info-box__title { margin-bottom: 4px; font-size: 12px; font-weight: 500; color: var(--primary-500); text-decoration: underline; }

/* components/Section/styled.js › EmptyPlaceholder */
.c-empty-placeholder { flex: 1; padding: 12px; border: 1px dashed var(--grey-50); border-radius: 16px; color: var(--grey-300); font-size: 12px; font-weight: 400; text-align: center; }

/* Liens « Déploiement » / « Demande » du titre de détails — pages/Orders/Order/styled.js › DeploiementLink, EquipmentRequestLink */
.c-detail-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: var(--grey-50);
  color: var(--grey-600);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.c-detail-link + .c-detail-link { margin-left: 16px; }
.c-detail-link .c-icon { font-size: 8px; }

/* Valeur copiable (email, téléphone du contact) — components/CopyableText.jsx */
.c-copyable { display: flex; flex-direction: row; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.c-copyable__icon { flex-shrink: 0; display: inline-flex; cursor: pointer; }
.c-copyable__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Récapitulatif des montants au-dessus du total — pages/Orders/Order/styled.js › StatementItem */
.c-statement { display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; }
.c-statement__item { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 0; width: 100%; margin-bottom: 4px; padding: 0 16px; color: var(--grey-950); }
.c-statement__label { font-size: 11px; }
.c-statement__item > .c-divider-line { margin: 0 8px; }

/* Bloc « Total » bleu léger — components/Section/TotalBox.jsx */
.c-total-box {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  width: 100%;
  padding: 16px 0;
  border-radius: 15px;
  background-color: var(--primary-100);
  color: var(--primary-500);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.c-total-box__content { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 16px; }
.c-total-box__values { display: flex; gap: 24px; }
.c-total-box__value { white-space: nowrap; }
.c-total-box__value--error { color: var(--color-error); }
.c-total-box__value--error .c-icon { margin-right: 6px; }
.c-total-box__caption { margin-right: 8px; font-weight: 400; color: var(--primary-600); }

/* Titre de carte avec compteur — components/CardSection.jsx */
.c-card-section { display: flex; flex-direction: column; }
.c-card-section__header { display: flex; justify-content: space-between; align-items: center; padding: 0 24px; }
.c-card-section__title { display: flex; flex-direction: row; gap: 8px; }

.c-card-section__count {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--primary-100);
  border-radius: 4px;
  background-color: var(--primary-50);
  color: var(--primary-500);
  font-size: 12px;
  font-weight: 500;
}

/* Petit titre à carré bleu — components/Title.jsx (fiche produit) */
.c-title { display: flex; flex-direction: row; align-items: center; gap: 6px; }
.c-title__mark { width: 8px; height: 8px; border-radius: 2px; background-color: var(--primary-500); }

/* ───────────────────────── Tables (theme.jsx › MuiTable*, components/Table/*) ───────────────────────── */

.c-table-container {
  width: 100%;
  height: 100%;
  flex-grow: 1;
  overflow: auto;
  z-index: 1;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.c-table-container:last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }

.c-table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

/* <Table stickyHeader> : bordures séparées, en-tête collant */
.c-table--sticky { border-collapse: separate; }
.c-table--sticky .c-table__head-cell { position: sticky; top: 0; z-index: 2; }

.c-table__head-cell,
.c-table__cell {
  display: table-cell;
  vertical-align: inherit;
  text-align: left;
}

/* En-tête : 11 px, 600, majuscules, letter-spacing 0.03em, fond grey-50 */
.c-table__head-cell {
  padding: 4px 16px;
  border-right: 1px solid var(--color-white);
  border-bottom: 1px solid var(--grey-100);
  background: var(--grey-50);
  color: var(--grey-600);
  font-size: 11px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.c-table__head-cell:last-child { border-right: none; }
.c-table__head-cell--tight { padding: 4px 8px; }
.c-table__head-cell--status { width: 64px; font-size: 14px; }   /* StatusTableHead (icône gauge-high) */

/* Corps : lignes de 48 px, 12 px, grey-700 */
.c-table__cell {
  height: 48px;
  padding: 8px 16px;
  border-right: 1px solid transparent;
  border-bottom: 1px solid var(--grey-50);
  color: var(--grey-700);
  font-size: 12px;
  font-weight: 400;
}

.c-table__cell:last-child { border-right: none; }
.c-table__cell--tight { padding: 8px; }
.c-table__body .c-table__row:last-child .c-table__cell { border-bottom: none; }
.c-table__row { color: inherit; display: table-row; vertical-align: middle; outline: 0; }
.c-table__row--top { vertical-align: top; }
.c-table__body .c-table__row:hover,
.c-table__body .c-table__row.is-hover { background-color: var(--grey-50); }

.c-table__head-cell--center,
.c-table__cell--center { text-align: center; }
.c-table__head-cell--right,
.c-table__cell--right { text-align: right; }
.c-table__cell--nowrap { white-space: nowrap; }
.c-table__cell--user { max-width: 220px; }           /* UserCell */
.c-table__cell--organization { max-width: 240px; }   /* OrganizationCell */
.c-table__cell--contact { max-width: 260px; }        /* ContactCell */

/* Colonnes date à largeur fixe — Table/dateColumn.js (120 px, 136 px avec l'heure ; 12 px de marge) */
.c-table__head-cell--date,
.c-table__cell--date { width: 120px; min-width: 120px; max-width: 120px; padding-left: 12px; padding-right: 12px; text-align: center; }
.c-table__head-cell--date-time,
.c-table__cell--date-time { width: 136px; min-width: 136px; max-width: 136px; padding-left: 12px; padding-right: 12px; text-align: center; }
.c-table__head-cell--date,
.c-table__head-cell--date-time { white-space: normal; line-height: 16px; }

/* Libellé triable — Table/SortableLabel.jsx */
.c-sort-label { cursor: pointer; }
.c-sort-label:hover,
.c-sort-label.is-active { color: var(--color-black-muted); }
.c-sort-label__direction { margin-left: 4px; }

/* Ligne de total en pied de tableau — Table/TotalRow.jsx (bandeau bleu clair arrondi, précédé de 16 px) */
.c-total-row__spacer > td { height: 16px; padding: 0; border: none; background-color: var(--color-bg-paper); }

.c-total-row > td {
  height: 48px;
  box-sizing: border-box;
  padding: 0 16px;
  border: none;
  background-color: var(--primary-100);
  color: var(--primary-500);
  font-size: 12px;
  font-weight: 600;
  line-height: 21px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.c-total-row > td:first-of-type { border-top-left-radius: 15px; border-bottom-left-radius: 15px; }
.c-total-row > td:last-of-type { border-top-right-radius: 15px; border-bottom-right-radius: 15px; }
.c-total-row--sticky > td { position: sticky; bottom: 0; z-index: 2; }

/* ─ Cellules partagées (components/Table/Cells) ─ */

/* Lignes annulées / grisées : la variante de texte l'emporte sur la mise en avant (AmountCell garde sa graisse) */
.c-text--cancelled.c-amount--emphasis { color: var(--grey-200); }
.c-text--lighter.c-amount--emphasis { color: var(--grey-300); }

/* IdCell : gras, ardoise, chiffres tabulaires */
.c-id { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--primary-800); }
.c-id.c-text--cancelled,
.c-cell-title.c-text--cancelled { color: var(--grey-200); }
.c-id.c-text--lighter,
.c-cell-title.c-text--lighter { color: var(--grey-300); }

/* TitleCell : colonne « titre » (une seule par tableau) */
.c-cell-title { font-weight: 500; color: var(--color-black-muted); }

/* AmountCell / NumberCell : alignés à droite, chiffres tabulaires */
.c-amount,
.c-number { white-space: nowrap; font-variant-numeric: tabular-nums; }
.c-amount--emphasis,
.c-number--emphasis { font-weight: 500; color: var(--color-black-muted); }
.c-number--error { font-weight: 600; color: var(--red-700); }

/* DateCell : « — » si vide, ambre + icône si en retard */
.c-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.c-date--late { font-weight: 500; color: var(--yellow-900); }
.c-date__icon { font-size: 11px; color: var(--yellow-600); }

/* ItemsCell : « 1× ······ REF → CIBLE » */
.c-items { display: flex; flex-direction: column; gap: 2px; }
.c-items__line { display: flex; flex-direction: row; align-items: center; gap: 8px; min-height: 20px; }
.c-items__arrow { color: var(--grey-400); }
.c-items__ref--regularisation { color: var(--grey-400); font-style: italic; }
.c-items__ref--unresolved { color: var(--color-error); font-style: italic; }

/* components/FlexSeparator.jsx */
.c-flex-separator { position: relative; flex-grow: 1; height: 1px; background: var(--grey-100); }

/* ContactCell : mailto / tel précédés d'une icône discrète */
.c-contact { display: flex; flex-direction: column; gap: 2px; }
.c-contact__line { display: flex; flex-direction: row; align-items: center; gap: 8px; min-width: 0; }
.c-contact__icon { flex: none; font-size: 11px; color: var(--grey-400); }
.c-contact__link { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--primary-700); }
.c-contact__link:hover { color: var(--primary-900); }

/* CodeCell : MAC / n° de série + bouton copier */
.c-code { display: flex; flex-direction: row; align-items: center; gap: 8px; }

/* Lien commande d'une liste — Order/OrderLink.jsx + Table/Order/LinkWithComment.jsx */
.c-order-link { display: flex; flex-direction: row; align-items: center; justify-content: space-between; }
.c-order-link__tag { margin-bottom: 2px; }
.c-order-link__id { font-weight: 600; color: var(--primary-800); }
.c-order-link .c-icon-button { margin-left: 16px; }
.c-text--cancelled .c-order-link__id { color: inherit; }

/* Actions d'une ligne de commande — Order/Actions.jsx */
.c-row-actions { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 8px; }

/* Petit tableau « grille » des fiches — components/Table/TableCard.jsx */
.c-table-card { display: flex; flex-direction: column; }
.c-table-card__row-base { display: grid; gap: 4px; align-items: center; }

.c-table-card__header {
  margin-bottom: 4px;
  padding: 5px 12px;
  border: 1px solid var(--grey-100);
  border-radius: 4px;
  background-color: var(--grey-50);
  color: var(--grey-800);
}

.c-table-card__head-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 500; line-height: 16px; text-transform: uppercase; }
.c-table-card__body { display: flex; flex-direction: column; font-size: 12px; }
.c-table-card__row { padding: 8px 12px; border-bottom: 1px solid var(--grey-100); color: var(--grey-800); }
.c-table-card__row:last-child { border-bottom: none; }
.c-table-card__cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 16px; font-weight: 400; color: inherit; }
.c-table-card__cell--warning { font-weight: 600; color: var(--yellow-500); }
.c-table-card__head-cell--right,
.c-table-card__cell--right { text-align: right; }

/* Pagination — MUI TablePagination + theme MuiTablePagination + Table/Pagination */
.c-pagination { display: block; height: 48px; overflow: hidden; padding: 0; color: var(--grey-600); font-size: 12px; }
.c-pagination__toolbar { display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 0 16px; }
.c-pagination__label { flex-shrink: 0; line-height: 32px; }

.c-pagination__select {
  position: relative;
  height: 34px;
  box-sizing: border-box;
  padding: 0 24px 0 8px;
  border: 1px solid var(--grey-100);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  line-height: 32px;
  letter-spacing: inherit;
  appearance: none;
}

.c-pagination__select-wrap { position: relative; display: inline-flex; align-items: center; }
.c-pagination__select-icon { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 12px; pointer-events: none; }
.c-pagination__displayed { flex-shrink: 0; }
.c-pagination__spacer { flex: 1 1 100%; }
.c-pagination__actions { display: flex; flex-direction: row; gap: 12px; flex-shrink: 0; }   /* ActionsComponent ignore la classe MUI : pas de marge de 20 px */

/* Squelette de chargement — Table/Loader.jsx (MUI Skeleton text, wave) */
.c-skeleton {
  display: block;
  position: relative;
  overflow: hidden;
  height: auto;
  border-radius: 4px / 6.7px;
  background-color: rgba(0, 0, 0, 0.11);
  transform: scale(1, 0.6);
  transform-origin: 0 55%;
}

.c-skeleton:empty::before { content: "\00a0"; }

.c-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.04), transparent);
  transform: translateX(-100%);
  animation: c-skeleton-wave 2s linear 0.5s infinite;
}

@keyframes c-skeleton-wave {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

/* ───────────────────────── Navigation ───────────────────────── */

/* Bande blanche du header — components/Layout.jsx › headerBandStyle */
.c-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--grey-100);
  background-color: var(--color-bg-paper);
}

.c-header__nav { display: flex; flex-direction: row; align-items: center; gap: 4px; }
.c-header__tools { display: flex; flex-direction: row; align-items: center; gap: 16px; }

/* components/WifirstLogo.jsx */
.c-logo { padding: 24px 0; }

.c-logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  border-radius: 12px;
  background: var(--primary-500);
  color: var(--color-white);
  font-size: 12px;
  line-height: 32px;
  vertical-align: middle;
}

.c-logo__title {
  display: inline-block;
  padding: 8px 24px 8px 0;
  border-right: 1px solid var(--grey-200);
  color: var(--color-black-muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Onglet du header — components/NavLink.jsx (actif en pilule primary-100) */
.c-nav-link {
  display: inline-block;
  position: relative;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--grey-600);
  font-size: 12px;
  font-weight: 500;
  line-height: 32px;
  transition: color 250ms ease-in-out, background-color 250ms ease-in-out;
}

.c-nav-link:hover,
.c-nav-link.is-hover { color: var(--color-black-muted); background-color: var(--grey-50); }
.c-nav-link.is-active,
.c-nav-link.is-active:hover { color: var(--primary-800); background-color: var(--primary-100); }
.c-nav-link:focus { outline: none; }
.c-nav-link:focus-visible,
.c-nav-link.is-focus { outline: var(--focus-outline); outline-offset: 1px; }

/* Recherche globale du header — components/OmniSearch.jsx */
.c-omni-search {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  width: clamp(180px, 18vw, 360px);
  max-width: 100%;
  min-height: 32px;
  padding: 2px 8px 2px 0;
  border: 1px solid var(--grey-100);
  border-radius: 32px;
  background-color: var(--grey-50);
  box-shadow: var(--shadow-search);
  color: var(--grey-600);
  font-size: 12px;
  line-height: 1.4375em;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.c-omni-search:hover,
.c-omni-search:focus-within,
.c-omni-search.is-hover { background-color: var(--color-white); border-color: var(--grey-200); }

.c-omni-search__bubble {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border: 1px solid var(--grey-100);
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--grey-500);
  font-size: 12px;
}

.c-omni-search__input {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  height: 1.4375em;   /* MUI InputBase : le champ garde 17,25 px de haut, le texte déborde de son padding */
  padding: 4px 0;
  border: 0;
  outline: 0;
  background: none;
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: inherit;
}

.c-omni-search__input::placeholder { color: var(--grey-400); opacity: 1; }

/* Sous-onglets en contrôle segmenté — components/SubMenu.jsx (Approvisionnement, Admin) */
.c-submenu {
  display: flex;
  flex-direction: row;
  gap: 2px;
  width: fit-content;
  padding: 3px;
  border: 1px solid var(--grey-100);
  border-radius: 10px;
  background-color: var(--color-bg-paper);
}

.c-submenu--spaced { margin-top: 24px; }   /* marginTop par défaut : onglets centrés entre le header et le contenu */

.c-submenu__link {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 7px;
  color: var(--grey-600);
  font-size: 12px;
  font-weight: 500;
  transition: color 250ms, background-color 250ms;
}

.c-submenu__link:hover,
.c-submenu__link.is-hover { color: var(--grey-950); background-color: var(--grey-50); }
.c-submenu__link.is-active,
.c-submenu__link.is-active:hover { color: var(--primary-800); background-color: var(--primary-100); font-weight: 600; }
.c-submenu__link:focus { outline: none; }
.c-submenu__link:focus-visible { outline: var(--focus-outline); outline-offset: 1px; }

/* Barre d'onglets de l'Admin : onglets à gauche, recherche + action à droite — pages/Admin/Layout.jsx */
.c-admin-bar { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 16px; row-gap: 8px; padding-top: 8px; }
.c-admin-bar__tools { display: flex; flex-direction: row; align-items: center; gap: 16px; margin-left: auto; }

/* components/Breadcrumb.jsx */
.c-breadcrumb { font-size: 12px; line-height: 24px; color: var(--grey-200); }
.c-breadcrumb__link { color: var(--grey-400); font-weight: 500; }
.c-breadcrumb__link.is-active { color: var(--grey-800); }
.c-breadcrumb__separator { display: inline-block; width: 18px; font-size: 10px; text-align: center; }

/* En-tête des vues détail — components/PageLayout/PageHeader.jsx */
.c-page-header { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; }
.c-page-header__lead { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; min-width: 0; }

.c-page-header__back {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--grey-100);
  border-radius: 8px;
  background-color: var(--color-bg-paper);
  color: var(--grey-600);
  font-size: 14px;
  transition: border-color 250ms, color 250ms;
}

.c-page-header__back:hover,
.c-page-header__back.is-hover { border-color: var(--grey-300); color: var(--grey-950); }

.c-page-header__title { margin: 0; font-size: 18px; font-weight: 600; line-height: 28px; color: var(--grey-950); }
.c-page-header__parent { font-weight: 400; color: var(--grey-500); transition: color 250ms; }
.c-page-header__parent:hover { color: var(--grey-800); }
.c-page-header__separator { margin: 0 8px; font-weight: 300; color: var(--grey-300); }
.c-page-header__actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
.c-page-header__meta { font-size: 12px; color: var(--grey-600); }
.c-page-header__meta strong { font-weight: 500; color: var(--grey-800); }

/* ───────────────────────── Forms ───────────────────────── */

/* Champ de base — styles/index.js › inputBaseStyles (TextField, DateField, DropDown, ArrayTextField) */
.c-input {
  width: 100%;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--grey-100);
  border-radius: 8px;
  outline: none;
  appearance: none;
  box-shadow: none;
  background-color: var(--color-bg-paper);
  color: var(--grey-600);
  font-size: 12px;
  line-height: 30px;
  white-space: nowrap;
  transition-property: border-color;
  transition-duration: 250ms;
}

.c-input:hover,
.c-input.is-hover { border-color: var(--grey-200); }
.c-input.is-error,
.c-input-block.is-error .c-input { border-color: var(--color-error); }
.c-input:disabled,
.c-input.is-disabled { background-color: var(--grey-50); pointer-events: none; cursor: not-allowed; }
.c-input::placeholder { color: var(--grey-400); }
.c-input--textarea { height: auto; min-height: auto; max-height: none; padding-top: 8px; padding-bottom: 8px; line-height: 18px; white-space: pre-wrap; resize: vertical; }

/* Liste déroulante — components/DropDown (DropDownField) */
.c-select { position: relative; overflow: hidden; text-overflow: ellipsis; padding-right: 32px; cursor: pointer; }
.c-select__value { display: flex; flex-direction: row; align-items: flex-start; gap: 4px; height: 100%; padding: 0 4px 4px; }
.c-select__value.is-placeholder { color: var(--grey-300); }
.c-select__value--flush { padding: 0; }   /* filtre Dates (Filters/DatePicker) */

.c-select__chevron {
  position: absolute;
  display: block;
  top: 9px;
  right: 12px;
  width: 12px;
  height: 12px;
  font-size: 10.5px;
  line-height: 12px;
  text-align: center;
  transition-duration: 250ms;
}

.c-select.is-open .c-select__chevron { transform: rotate(180deg); }

.c-select__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 100%;
  margin-top: 2px;
  padding: 0 8px;
  border-radius: 8px;
  background-color: var(--primary-100);
  font-size: 10px;
  line-height: 1;
}

.c-select-wrap { position: relative; }

/* Compteur d'un filtre multi-sélection — DropDown/styles.jsx › Counter */
.c-select__counter {
  position: absolute;
  top: -11px;
  right: -11px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-white);
  border-radius: 12px;
  background: var(--primary-500);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  pointer-events: none;
}

/* Liste d'options — DropDown/styles.jsx › CollectionBox */
.c-dropdown-list {
  min-width: 280px;
  max-width: 500px;
  padding: 16px 0;
  border: 1px solid var(--grey-50);
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: var(--shadow-dropdown);
}

.c-dropdown-list--filter { border-color: var(--grey-100); box-shadow: var(--shadow-dropdown-filter); }
.c-dropdown-list__results { max-height: 320px; padding: 0 12px; overflow-y: auto; }
.c-dropdown-list__group { padding-bottom: 16px; }
.c-dropdown-list__group-name { margin-bottom: 8px; border-bottom: 1px solid var(--grey-100); font-size: 10px; line-height: 20px; }

.c-dropdown-list__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  cursor: pointer;
}

.c-dropdown-list__item:hover,
.c-dropdown-list__item.is-hover,
.c-dropdown-list__item.is-selected { background-color: var(--primary-100); }
.c-dropdown-list__secondary { font-size: 11px; font-weight: 400; color: var(--grey-400); }
.c-dropdown-list__empty { min-height: 32px; margin-bottom: 8px; color: var(--primary-500); font-size: 12px; font-weight: 500; line-height: 32px; text-align: center; }

/* Option de statut d'un filtre — Filters/Status.jsx */
.c-status-option { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.c-status-option__dot { width: 8px; height: 8px; border-radius: 50%; background-color: var(--status, var(--status-default)); }

/* Bloc libellé + champ + erreur — components/Form/InputBlock.jsx */
.c-input-block { position: relative; min-width: 260px; margin-bottom: 12px; }
.c-input-block--small { min-width: 100px; width: 100px; }
.c-input-block--size2 { min-width: 150px; width: 150px; }
.c-input-block--size3 { min-width: 208px; width: 208px; }
.c-input-block--normal { min-width: 274px; width: 274px; }
.c-input-block--auto { min-width: auto; }
.c-input-block__control { margin-bottom: 4px; }
.c-input-block__control--after { display: flex; flex-direction: row; gap: 8px; margin-bottom: 4px; }
.c-input-block__after { color: inherit; font-size: 12px; font-weight: 400; line-height: 32px; }
.c-input-block__footer { display: flex; flex-direction: row; justify-content: flex-end; gap: 8px; margin-bottom: 4px; }
.c-input-block__footer--hint { justify-content: space-between; }
.c-input-block__hint { display: block; color: var(--grey-400); font-size: 11px; font-weight: 400; }

/* components/Form/Label.jsx */
.c-label { margin-bottom: 4px; color: var(--color-black-muted); font-size: 10px; font-weight: 500; text-transform: capitalize; }

/* components/Form/FieldError.jsx */
.c-field-error { color: var(--color-error); font-size: 10px; font-weight: 500; text-align: right; }

/* components/Form/Fieldset.jsx */
.c-fieldset { margin: 0; padding: 0 0 16px; }
.c-fieldset__title { margin: 8px 0; color: var(--primary-500); font-size: 14px; font-weight: 600; line-height: 20px; }

/* components/Form/SubTitle.jsx */
.c-form-subtitle { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--primary-500); font-size: 14px; font-weight: 600; line-height: 32px; }

/* components/Form/FieldLine.jsx */
.c-field-line { display: flex; flex-direction: row; gap: 32px; }

/* Case à cocher — components/Form/CheckboxField.jsx */
.c-checkbox {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border: 1px solid var(--grey-100);
  border-radius: 6px;
  background-color: var(--color-white);
  color: var(--grey-100);
  font-size: 12px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 250ms;
}

.c-checkbox .c-icon { vertical-align: -0.1em; }
.c-checkbox:hover,
.c-checkbox.is-checked { border-color: var(--primary-500); }
.c-checkbox.is-checked { background-color: var(--primary-500); }
.c-checkbox.is-disabled { opacity: 0.2; pointer-events: none; }
.c-checkbox-label { margin-bottom: 4px; color: var(--grey-400); font-size: 12px; font-weight: 400; cursor: pointer; }
.c-checkbox-label.is-checked { color: var(--grey-600); }

/* Bouton radio — components/Form/RadioList.jsx */
.c-radio-label { margin-right: 16px; color: var(--grey-400); font-size: 12px; line-height: 18px; vertical-align: baseline; cursor: pointer; }
.c-radio-label.is-selected { color: var(--color-black); }

.c-radio {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  border: 1px solid var(--grey-100);
  border-radius: 18px;
  background: var(--color-white);
  color: var(--color-white);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.c-radio .c-icon { vertical-align: -0.15em; }
.c-radio.is-selected { border-color: var(--primary-500); background: var(--primary-500); }

/* Recherche des barres de filtres — components/Filters/Search.jsx (MUI TextField standard) */
.c-search {
  display: inline-flex;
  flex-direction: column;
  position: relative;
  height: 32px;
  border: 1px solid var(--grey-100);
  border-radius: 8px;
  background-color: var(--color-bg-paper);
  color: var(--grey-600);
  font-size: 12px;
  vertical-align: top;
  cursor: pointer;
}

/* le champ MUI fait 32 px dans une boîte de 30 px : il déborde d'1 px vers le bas, comme dans l'app */
.c-search__field { display: flex; flex-direction: row; align-items: center; height: 32px; color: var(--grey-700); line-height: 1.4375em; }
.c-search__icon { flex: none; width: 16px; margin: 0 6px 0 12px; color: var(--grey-400); font-size: 12px; }

.c-search__input {
  display: block;
  box-sizing: border-box;
  width: 206px;
  height: 32px;
  margin: 0;
  padding: 0 12px 0 0;
  border: 0;
  outline: 0;
  background: none;
  color: currentColor;
  font: inherit;
  letter-spacing: inherit;
}

.c-search__input::placeholder { color: currentColor; opacity: 0.42; }
.c-search--large .c-search__input { width: 246px; }
.c-search--medium-small .c-search__input { width: 150px; }
.c-search--small .c-search__input { width: 58px; }

/* Retrait d'une valeur d'un champ multiple — components/Form/RemoveButton.jsx (icône secondaire, carré 32 px) */
.c-remove-button {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--grey-100);
  border-radius: 8px;
  background-color: var(--color-bg-paper);
  color: var(--primary-600);
  font-size: 14px;
  cursor: pointer;
  transition-property: border-color, background-color, color, box-shadow;
  transition-duration: var(--duration-fast);
}

.c-remove-button:hover,
.c-remove-button.is-hover { border-color: var(--grey-300); background-color: var(--grey-50); color: var(--primary-800); }
.c-remove-button:disabled { border-color: var(--grey-100); color: var(--grey-200); cursor: not-allowed; }

/* Pied des formulaires — components/Form/Buttons.jsx */
.c-form-actions { display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 24px 0; border-top: 1px solid var(--grey-100); }
.c-form-actions__legend { color: var(--grey-400); font-size: 10px; font-weight: 500; }
.c-form-actions__buttons { display: flex; flex-direction: row; align-items: flex-start; gap: 32px; }

/* Ligne de filtres au-dessus d'une liste — components/Table/Filters.jsx */
.c-filters { display: flex; flex-direction: row; justify-content: space-between; margin-bottom: 8px; }
.c-filters__group { display: flex; flex-direction: row; gap: 16px; }
.c-filters__filter { width: 160px; }
.c-active-filters { display: flex; flex-direction: row; align-items: center; gap: 8px; margin-bottom: 12px; }
.c-active-filters__clear { width: 24px; }

/* ───────────────────────── Widgets ───────────────────────── */

/* Indicateur — components/Widgets/WidgetKPI.jsx, variante douce (status: pending | warning | error, neutre sinon) */
.c-kpi {
  --kpi-bg: var(--color-bg-paper);
  --kpi-border: var(--grey-100);
  --kpi-icon-bg: var(--primary-100);
  --kpi-icon: var(--primary-700);
  --kpi-title: var(--color-black-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 2;
  flex-basis: 0;
  min-width: 200px;
  max-width: 220px;
  padding: 12px 16px;
  border: 1px solid var(--kpi-border);
  border-radius: 14px;
  background-color: var(--kpi-bg);
  box-shadow: var(--shadow-card);
}

.c-kpi--stretch { max-width: none; }
.c-kpi--pending { --kpi-icon-bg: var(--blue-100); --kpi-icon: var(--blue-500); --kpi-title: var(--blue-700); }
.c-kpi--warning { --kpi-bg: rgba(255, 248, 235, 0.4); --kpi-border: rgba(253, 210, 138, 0.7); --kpi-icon-bg: var(--yellow-50); --kpi-icon: var(--yellow-600); --kpi-title: var(--yellow-900); }
.c-kpi--error { --kpi-bg: rgba(254, 242, 242, 0.4); --kpi-border: var(--red-200); --kpi-icon-bg: var(--red-50); --kpi-icon: var(--red-600); --kpi-title: var(--red-700); }

.c-kpi__header { display: flex; align-items: center; gap: 8px; }

.c-kpi__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background-color: var(--kpi-icon-bg);
  color: var(--kpi-icon);
  font-size: 12px;
}

.c-kpi__title { color: var(--kpi-title); font-size: 12px; font-weight: 600; line-height: 24px; letter-spacing: 0.02em; text-transform: uppercase; }
.c-kpi__counts { display: flex; flex-direction: row; gap: 16px; }
.c-kpi__count-group { display: flex; flex-direction: row; align-items: flex-start; gap: 4px; max-width: 50%; }
.c-kpi__count { color: var(--grey-950); font-size: 32px; font-weight: 400; line-height: 32px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-kpi__count-label { color: var(--grey-500); font-size: 12px; line-height: 16px; }
.c-kpi__skeleton { height: 32px; }

.c-kpi-row { display: flex; flex-direction: row; gap: 16px; }

/* ───────────────────────── Feedback ───────────────────────── */

/* Toast — components/Toaster.jsx (MUI Paper 400 px + theme MuiPaper) */
.c-toast {
  display: flex;
  color: rgba(0, 0, 0, 0.87);
  flex-direction: row;
  width: 400px;
  padding: 24px 24px 16px;
  border: 1px solid var(--grey-100);
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: var(--shadow-paper);
}

.c-toast__icon { color: var(--color-success); font-size: 16px; line-height: 1; }
.c-toast--error .c-toast__icon { color: var(--color-error); }
.c-toast__message { padding-left: 12px; color: var(--grey-800); font-size: 12px; font-weight: 500; line-height: 1.66; }

/* Paper MUI générique (popovers, toasts) — theme MuiPaper */
.c-paper { color: rgba(0, 0, 0, 0.87); padding: 24px 24px 16px; border: 1px solid var(--grey-100); border-radius: 12px; background: var(--color-white); box-shadow: var(--shadow-paper); }

/* Voile des dialogues — theme MuiBackdrop */
.c-backdrop { background-color: var(--backdrop); }

/* Dialogue de confirmation — components/Confirm.jsx (MUI Dialog + theme MuiDialog) */
.c-dialog {
  display: flex;
  color: rgba(0, 0, 0, 0.87);
  flex-direction: column;
  max-width: 600px;
  margin: 32px;
  padding: 16px;
  border-radius: 16px;
  background: var(--color-white);
  box-shadow: var(--shadow-dialog);
}

.c-dialog__body { display: flex; flex-direction: row; gap: 16px; margin-bottom: 32px; padding-right: 32px; }
.c-dialog__title { margin: 0 0 8px; padding: 0; color: var(--color-black-muted); font-size: 20px; font-weight: 600; line-height: 32px; }
.c-dialog__text { color: var(--grey-600); font-size: 14px; font-weight: 400; line-height: 20px; text-align: left; white-space: pre-line; }
.c-dialog__actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 0; }

.c-dialog__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--blue-200);
  border-radius: 50%;
  background-color: var(--blue-100);
  color: var(--blue-400);
  font-size: 16px;
}

.c-dialog__icon--success { border-color: var(--success-200); background-color: var(--success-100); color: var(--success-500); }
.c-dialog__icon--warning { border-color: var(--yellow-200); background-color: var(--yellow-100); color: var(--yellow-500); }
.c-dialog__icon--error { border-color: var(--red-200); background-color: var(--red-100); color: var(--red-600); }

/* Infobulle — theme MuiTooltip */
.c-tooltip {
  position: relative;
  display: inline-block;
  max-width: 300px;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: var(--grey-800);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4em;
  letter-spacing: 0.5px;
  overflow-wrap: break-word;
}

.c-tooltip__arrow {
  position: absolute;
  left: 50%;
  bottom: -0.71em;
  width: 1em;
  height: 0.71em;
  overflow: hidden;
  transform: translateX(-50%);
  color: rgba(74, 70, 63, 0.92);
}

.c-tooltip__arrow::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  margin: auto;
  background-color: currentColor;
  transform: rotate(45deg);
  transform-origin: 100% 0;
}

/* Erreur de chargement — components/Error.jsx */
.c-error { display: flex; flex-direction: column; flex-grow: 1; justify-content: center; align-items: center; color: var(--color-error); font-size: 16px; }
.c-error__line { display: flex; align-items: center; }
.c-error__icon { font-size: 1.6em; margin-right: 8px; }
.c-error__icon--trailing { margin-right: 0; margin-left: 12px; }
.c-error--small { align-items: flex-start; font-size: 12px; }

/* Bandeau d'erreur d'une action — pages/Orders/Order/Toolbar (displayError) */
.c-error-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  padding: 8px;
  border: 2px solid var(--color-error-200);
  border-radius: 16px;
  background-color: var(--color-error-50);
  color: var(--color-error);
}

.c-error-banner__close { position: absolute; top: 6px; right: 10px; font-size: 12px; cursor: pointer; }
.c-error-banner__title { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; }
.c-error-banner__detail { font-size: 10px; text-align: center; white-space: pre-line; }

/* Indicateur de chargement — MUI CircularProgress (40 px, primary) */
.c-progress { display: inline-block; width: 40px; height: 40px; color: var(--primary-500); animation: c-spin 1.4s linear infinite; }
.c-progress--small { width: 24px; height: 24px; }
.c-progress--16 { width: 16px; height: 16px; }
.c-progress__circle { stroke: currentColor; stroke-dasharray: 80px, 200px; stroke-dashoffset: 0; animation: c-progress-dash 1.4s ease-in-out infinite; }

@keyframes c-progress-dash {
  0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -15px; }
  100% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; }
}


/* ───────────────────────── Wifirst portal theme (Portail LVMH) ───────────────────────── */
body { color: var(--color-black); }
a { color: var(--primary-600); text-decoration: none; cursor: pointer; }
a:hover { color: var(--primary-800); }
/* Every component corner is the portal's single 4px radius */
.c-menu,.c-menu__item,.c-icon-button,.c-copy-button,.c-action-group,.c-filter-button,.c-tag,.c-quantity-badge,.c-chip,.c-filter-chip,.c-monogram__mark,.c-status-icon,.c-card,.c-section,.c-section-title__icon,.c-info-box,.c-empty-placeholder,.c-detail-link,.c-total-box,.c-card-section__count,.c-table-card__header,.c-pagination__select,.c-skeleton,.c-logo__mark,.c-nav-link,.c-omni-search,.c-submenu,.c-submenu__link,.c-page-header__back,.c-input,.c-select__chip,.c-dropdown-list,.c-dropdown-list__item,.c-checkbox,.c-search,.c-remove-button,.c-kpi,.c-kpi__icon,.c-toast,.c-paper,.c-dialog,.c-tooltip,.c-error-banner,.c-button { border-radius: var(--radius-4) !important; }
/* Icons added by the portal (Lucide) */
.c-icon--calendar { --c-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M8%202v4%27%2F%3E%3Cpath%20d%3D%27M16%202v4%27%2F%3E%3Crect%20width%3D%2718%27%20height%3D%2718%27%20x%3D%273%27%20y%3D%274%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M3%2010h18%27%2F%3E%3C%2Fsvg%3E"); }
.c-icon--arrow-right { --c-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M5%2012h14%27%2F%3E%3Cpath%20d%3D%27m12%205%207%207-7%207%27%2F%3E%3C%2Fsvg%3E"); }
.c-icon--square-kanban { --c-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20width%3D%2718%27%20height%3D%2718%27%20x%3D%273%27%20y%3D%273%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M8%207v7%27%2F%3E%3Cpath%20d%3D%27M12%207v4%27%2F%3E%3Cpath%20d%3D%27M16%207v9%27%2F%3E%3C%2Fsvg%3E"); }
.c-icon--chart-gantt { --c-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M10%206h8%27%2F%3E%3Cpath%20d%3D%27M12%2016h6%27%2F%3E%3Cpath%20d%3D%27M3%203v16a2%202%200%200%200%202%202h16%27%2F%3E%3Cpath%20d%3D%27M8%2011h7%27%2F%3E%3C%2Fsvg%3E"); }
.c-icon--list-checks { --c-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M13%205h8%27%2F%3E%3Cpath%20d%3D%27M13%2012h8%27%2F%3E%3Cpath%20d%3D%27M13%2019h8%27%2F%3E%3Cpath%20d%3D%27m3%2017%202%202%204-4%27%2F%3E%3Cpath%20d%3D%27m3%207%202%202%204-4%27%2F%3E%3C%2Fsvg%3E"); }
.c-icon--flag { --c-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%2022V4a1%201%200%200%201%20.4-.8A6%206%200%200%201%208%202c3%200%205%202%207.333%202q2%200%203.067-.8A1%201%200%200%201%2020%204v10a1%201%200%200%201-.4.8A6%206%200%200%201%2016%2016c-3%200-5-2-8-2a6%206%200%200%200-4%201.528%27%2F%3E%3C%2Fsvg%3E"); }
.c-icon--users { --c-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2%27%2F%3E%3Cpath%20d%3D%27M16%203.128a4%204%200%200%201%200%207.744%27%2F%3E%3Cpath%20d%3D%27M22%2021v-2a4%204%200%200%200-3-3.87%27%2F%3E%3Ccircle%20cx%3D%279%27%20cy%3D%277%27%20r%3D%274%27%2F%3E%3C%2Fsvg%3E"); }
.c-icon--map-pin { --c-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M20%2010c0%204.993-5.539%2010.193-7.399%2011.799a1%201%200%200%201-1.202%200C9.539%2020.193%204%2014.993%204%2010a8%208%200%200%201%2016%200%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2710%27%20r%3D%273%27%2F%3E%3C%2Fsvg%3E"); }
.c-icon--store { --c-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M15%2021v-5a1%201%200%200%200-1-1h-4a1%201%200%200%200-1%201v5%27%2F%3E%3Cpath%20d%3D%27M17.774%2010.31a1.12%201.12%200%200%200-1.549%200%202.5%202.5%200%200%201-3.451%200%201.12%201.12%200%200%200-1.548%200%202.5%202.5%200%200%201-3.452%200%201.12%201.12%200%200%200-1.549%200%202.5%202.5%200%200%201-3.77-3.248l2.889-4.184A2%202%200%200%201%207%202h10a2%202%200%200%201%201.653.873l2.895%204.192a2.5%202.5%200%200%201-3.774%203.244%27%2F%3E%3Cpath%20d%3D%27M4%2010.95V19a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2v-8.05%27%2F%3E%3C%2Fsvg%3E"); }
.c-icon--life-buoy { --c-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%2710%27%2F%3E%3Cpath%20d%3D%27m4.93%204.93%204.24%204.24%27%2F%3E%3Cpath%20d%3D%27m14.83%209.17%204.24-4.24%27%2F%3E%3Cpath%20d%3D%27m14.83%2014.83%204.24%204.24%27%2F%3E%3Cpath%20d%3D%27m9.17%2014.83-4.24%204.24%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%274%27%2F%3E%3C%2Fsvg%3E"); }

/* Portal additions: pressed and focus states for warning buttons (missing in Supply, which fell back to the blue tonal pressed state) */
.c-button--tonal.c-button--warning:active,
.c-button--tonal.c-button--warning.is-active { border-color: var(--yellow-300); background-color: var(--yellow-200); color: var(--yellow-900); }
.c-button--outlined.c-button--warning:active,
.c-button--outlined.c-button--warning.is-active { border-color: var(--yellow-300); background-color: var(--yellow-100); color: var(--yellow-900); }
.c-button--warning:focus-visible,
.c-button--warning.is-focus { box-shadow: 0 0 0 3px var(--yellow-200); }
.c-button--tonal.c-button--warning:disabled,
.c-button--tonal.c-button--warning.is-disabled { border-color: var(--grey-100); background-color: var(--grey-50); color: var(--grey-300); }
.c-button--outlined.c-button--warning:disabled,
.c-button--outlined.c-button--warning.is-disabled,
.c-button--outlined.c-button--error:disabled,
.c-button--outlined.c-button--error.is-disabled { border-color: var(--grey-100); background-color: var(--color-bg-paper); color: var(--grey-300); }
.c-button--contained.c-button--error:disabled,
.c-button--contained.c-button--error.is-disabled { border-color: var(--grey-100); background-color: var(--grey-100); color: var(--grey-400); }

/* directory_auth shell — layout and the few pieces the design system leaves to the consumer.
   Every value comes from tokens.css / bundle.css. Layout: sticky white header over the stone
   ground; signed-out pages sit in one narrow centred column, signed-in pages in the 1280px main column. */

:root {
  color-scheme: light;
  --da-gutter: max(16px, env(safe-area-inset-left, 0px));
  --da-gutter-right: max(16px, env(safe-area-inset-right, 0px));
  --da-auth-width: 460px;
}

html, body { min-height: 100%; }
body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-default);
  color: var(--color-text-body);
  font-size: 14px;
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--color-bg-paper);
}

/* Lucide glyphs the bundle does not ship, drawn the same way (stroke 2, round caps). */
.c-icon--lock { --c-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"); }
.c-icon--globe { --c-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E"); }
.c-icon--shield-check { --c-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.c-icon--key-round { --c-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z'/%3E%3Ccircle cx='16.5' cy='7.5' r='.5' fill='black'/%3E%3C/svg%3E"); }
.c-icon--eye-off { --c-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49'/%3E%3Cpath d='M14.084 14.158a3 3 0 0 1-4.242-4.242'/%3E%3Cpath d='M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143'/%3E%3Cpath d='m2 2 20 20'/%3E%3C/svg%3E"); }
.c-icon--building { --c-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z'/%3E%3Cpath d='M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2'/%3E%3Cpath d='M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M10 6h4'/%3E%3Cpath d='M10 10h4'/%3E%3Cpath d='M10 14h4'/%3E%3Cpath d='M10 18h4'/%3E%3C/svg%3E"); }
.c-icon--layout-grid { --c-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='14' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3C/svg%3E"); }

/* ── Header ─────────────────────────────────────────── */
.da-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--color-bg-paper);
  border-bottom: 1px solid var(--grey-100);
}
.da-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: var(--space-3);
  min-height: 64px;
  padding-left: var(--da-gutter);
  padding-right: var(--da-gutter-right);
}
.da-lockup {
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
  min-width: 0;
  color: inherit;
}
.da-lockup:hover { color: inherit; }
.da-lockup__logo { display: block; height: 24px; width: auto; flex: none; }
.da-lockup__app {
  padding-left: var(--space-1-5);
  border-left: 1px solid var(--grey-200);
  color: var(--grey-600);
  font-size: 13px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.da-header__nav { display: flex; align-items: center; gap: var(--space-0-5); }
.da-header__nav .c-nav-link { display: inline-flex; align-items: center; gap: var(--space-0-75); }
.da-header__tools { justify-self: end; display: flex; align-items: center; gap: var(--space-1-5); }

/* ── Popover menus (user card, language) ───────────── */
.da-pop { position: relative; width: max-content; flex: none; display: flex; flex-direction: column; }
.da-pop__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1-25);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-4);
  background: var(--color-bg-paper);
  font-family: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.da-pop__trigger:hover { border-color: var(--grey-200); }
.da-pop__trigger:focus-visible { outline: var(--focus-outline); outline-offset: 1px; }
.da-pop__chevron { font-size: 12px; color: var(--grey-500); transition: transform 200ms var(--ease-standard); }
.da-pop.is-open .da-pop__trigger {
  border-color: var(--grey-200);
  border-bottom-color: var(--color-bg-paper);
  border-radius: var(--radius-4) var(--radius-4) 0 0;
}
.da-pop.is-open .da-pop__chevron { transform: rotate(180deg); }
.da-pop__sizer { height: 0; overflow: hidden; visibility: hidden; padding: 0 5px; display: flex; flex-direction: column; white-space: nowrap; }
.da-pop__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: -1px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-0-25);
  padding: var(--space-0-5);
  background: var(--color-bg-paper);
  border: 1px solid var(--grey-200);
  border-top: 0;
  border-radius: 0 0 var(--radius-4) var(--radius-4);
  box-shadow: 0 12px 24px rgba(26, 25, 22, 0.08);
}
.da-pop__menu .c-menu__item { gap: var(--space-1-25); white-space: nowrap; width: 100%; font-family: inherit; letter-spacing: inherit; text-align: left; background: transparent; cursor: pointer; }
.da-pop__menu .c-menu__item:hover { background-color: var(--primary-50); color: var(--primary-800); }
.da-pop__menu .c-menu__item:focus-visible { outline: var(--focus-outline); outline-offset: -2px; }
.da-pop__context { font-weight: 400; cursor: default; pointer-events: none; color: var(--grey-800); }
.da-pop__sep { height: 1px; background: var(--grey-100); margin: 2px 6px; }

.da-user .da-pop__trigger { padding: 4px 12px 4px 4px; }
.da-user__who { display: flex; flex-direction: column; line-height: 14px; text-align: left; min-width: 0; }
.da-user__name { font-size: 12px; font-weight: 500; color: var(--grey-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.da-user__role { font-size: 11px; color: var(--grey-500); }

.da-locale .da-pop__trigger { height: 40px; padding: 0 10px 0 12px; color: var(--grey-700); font-size: 12px; font-weight: 500; }
.da-locale__code { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--grey-500); min-width: 18px; }
.da-locale .c-menu__item.is-active { color: var(--primary-800); background: var(--primary-100); font-weight: 600; }
.da-locale .c-menu__item .c-icon--check { margin-left: auto; color: var(--primary-600); }
.da-locale .da-pop__menu { left: auto; min-width: 100%; }

/* ── Signed-out layout ─────────────────────────────── */
.da-auth {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-6) var(--space-4);
  padding-left: var(--da-gutter);
  padding-right: var(--da-gutter-right);
}
.da-auth__column { width: 100%; max-width: var(--da-auth-width); display: flex; flex-direction: column; gap: var(--space-2); }
.da-auth__intro { display: flex; flex-direction: column; gap: var(--space-0-5); margin-bottom: var(--space-1); }
.da-auth__kicker { color: var(--primary-600); text-transform: uppercase; }
.da-auth__title { margin: 0; color: var(--grey-950); text-wrap: balance; }
.da-auth__lead { margin: 0; color: var(--grey-600); }

/* ── Signed-in layout ──────────────────────────────── */
.da-main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--content-gutter));
  margin: 0 auto;
  padding-block: 0 var(--space-6);
  padding-left: max(var(--da-gutter), min(var(--content-gutter), 4vw));
  padding-right: max(var(--da-gutter-right), min(var(--content-gutter), 4vw));
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.da-main .c-page-header__title { text-wrap: balance; }
.c-page-header__back:focus-visible { outline: var(--focus-outline); outline-offset: 1px; }

/* ── Cards and forms ───────────────────────────────── */
.da-card { display: flex; flex-direction: column; }
.da-card .c-card__header { display: flex; align-items: center; gap: var(--space-1-25); }
.da-card .c-card__body { padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.da-card .c-card__footer { padding: var(--space-2) var(--space-3); border-top: 1px solid var(--grey-100); display: flex; justify-content: flex-end; align-items: center; gap: var(--space-1-5); flex-wrap: wrap; }
.da-card__title { margin: 0; color: var(--grey-950); }
.da-card__lead { margin: 0; color: var(--grey-600); }

.da-form { display: flex; flex-direction: column; gap: var(--space-2); }
.da-field { display: flex; flex-direction: column; gap: var(--space-0-5); }
.da-field__label { color: var(--grey-800); font-size: 12px; font-weight: 500; }
.da-field__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-1); }
.da-field .c-input { height: 40px; min-height: 40px; max-height: 40px; font-size: 13px; color: var(--grey-900); line-height: 38px; }
.da-field .c-input:focus { border-color: var(--primary-400); box-shadow: var(--focus-ring); }
.da-field .c-input:disabled { color: var(--grey-600); }
.da-field.is-error .c-input { border-color: var(--color-error); }
.da-field__hint { color: var(--grey-500); font-size: 11px; line-height: 1.5; }
.da-field__error { display: flex; align-items: center; gap: var(--space-0-5); color: var(--red-600); font-size: 11px; font-weight: 500; }
.da-secret { position: relative; }
.da-secret .c-input { padding-right: 44px; }
.da-secret__toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-4);
  color: var(--grey-500);
  font-size: 15px;
  background: transparent;
  cursor: pointer;
}
.da-secret__toggle:hover { color: var(--grey-800); background: var(--grey-50); }
.da-secret__toggle:focus-visible { outline: var(--focus-outline); }

.da-link { color: var(--primary-600); font-weight: 500; text-decoration: underline; text-decoration-color: var(--primary-200); text-underline-offset: 3px; }
.da-link:hover { color: var(--primary-700); text-decoration-color: currentColor; }
.da-link:focus-visible { outline: var(--focus-outline); outline-offset: 2px; border-radius: 2px; }

.da-actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-1-5); flex-wrap: wrap; }
.da-actions--split { justify-content: space-between; }
.c-button--block { width: 100%; justify-content: center; }
a.c-button--contained:hover,
a.c-button--contained:focus-visible { color: var(--color-white); }
.c-button--large { height: 40px; }

/* ── Flash messages (Rails flash: notice, alert, error) ─ */
.da-flash {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1-25);
  padding: var(--space-1-5) var(--space-2);
  border: 1px solid;
  border-radius: var(--radius-4);
  font-size: 13px;
  line-height: 1.5;
}
.da-flash > .c-icon { font-size: 16px; margin-top: 1px; }
.da-flash__body { display: flex; flex-direction: column; gap: var(--space-0-5); min-width: 0; }
.da-flash__title { font-weight: 600; }
.da-flash--error { background: var(--red-50); border-color: var(--red-200); color: var(--red-700); }
.da-flash--success { background: var(--success-50); border-color: var(--success-200); color: var(--success-900); }
.da-flash--success > .c-icon { color: var(--success-700); }
.da-flash--warning { background: var(--yellow-50); border-color: var(--yellow-200); color: var(--yellow-900); }
.da-flash--warning > .c-icon { color: var(--yellow-700); }
.da-flash--info { background: var(--primary-50); border-color: var(--primary-100); color: var(--primary-800); }
.da-flash--info > .c-icon { color: var(--primary-600); }

/* ── Divider with a word ("ou") ────────────────────── */
.da-or { display: flex; align-items: center; gap: var(--space-1-5); color: var(--grey-500); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.da-or::before, .da-or::after { content: ""; flex: 1; height: 1px; background: var(--grey-100); }

/* ── Footer ────────────────────────────────────────── */
.da-footer {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-block: var(--space-2) var(--space-4);
  padding-left: var(--da-gutter);
  padding-right: var(--da-gutter-right);
  color: var(--grey-500);
  font-size: 11px;
}

/* ── Confirmation dialog ───────────────────────────── */
.da-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.da-dialog-backdrop .c-dialog { width: 100%; max-width: 440px; margin: 0; padding: var(--space-3); }
.da-dialog-backdrop .c-dialog__title { font-size: 18px; line-height: 28px; }

.da-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 760px) {
  .da-header__inner { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
  .da-header__nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; padding-bottom: var(--space-1); }
  .da-header__inner > span:empty { display: none; }
  .da-user__who { display: none; }
  .da-user .da-pop__sizer { display: none; }
  .da-user .da-pop__menu { left: auto; width: max-content; min-width: 220px; border-top: 1px solid var(--grey-200); border-radius: var(--radius-4) 0 var(--radius-4) var(--radius-4); }
  .da-locale__label { display: none; }
  .da-lockup__app { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
/* What the Rails markup needs beyond the design system. */

/* The components set their own display: a hidden one stays hidden. */
[hidden] { display: none !important; }

/* The design system sizes body on an html that has no height: short pages must still fill the window. */
body { min-height: 100vh; }

/* button_to wraps each menu action in a form. */
.da-pop__menu form,
.da-pop__sizer form { display: contents; }

.da-lockup__environment { margin-left: var(--space-0-5); }

/* The avatar shrinks with the header: a long name is cut short instead of pushing the menu out. */
.da-user .c-avatar { min-width: 0; }

.da-locale .c-icon--globe { color: var(--grey-500); }
.c-page-header__lead.ap-heading { flex-direction: column; align-items: flex-start; gap: 2px; }
.ap-card__icon { color: var(--primary-500); }

.ap-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: var(--space-3); align-items: start; }
.ap-apps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 1fr; gap: var(--space-1-5); }
.ap-apps--aside { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ap-apps--full { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ap-apps > li { display: flex; min-width: 0; }
.ap-apps .ap-app { flex: 1; min-width: 0; }
.ap-app {
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
  padding: var(--space-1-5) var(--space-2);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-4);
  background: var(--color-bg-paper);
  color: var(--grey-900);
  transition: border-color var(--duration-base) var(--ease-standard), background-color var(--duration-base) var(--ease-standard);
}
.ap-app:hover { border-color: var(--grey-200); background: var(--primary-50); color: var(--grey-950); }
.ap-app:focus-visible { outline: var(--focus-outline); outline-offset: 1px; }
.ap-app__mark {
  flex: none;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-4);
  background: var(--primary-100);
  color: var(--primary-800);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
.ap-app--admin .ap-app__mark { background: var(--grey-100); color: var(--grey-800); }
.ap-app__text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.ap-app__name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-app__host { font-size: 11px; color: var(--grey-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-app__go { color: var(--grey-400); font-size: 14px; transition: color var(--duration-base); }
.ap-app:hover .ap-app__go { color: var(--primary-600); }
.ap-count { font-size: 12px; color: var(--grey-500); margin-left: auto; font-variant-numeric: tabular-nums; }

.ap-readonly { display: flex; flex-direction: column; gap: var(--space-1-5); }
.ap-readonly .c-field__value { color: var(--grey-900); text-align: right; }
.ap-readonly .c-field.ap-field--top { align-items: flex-start; }
.ap-groups { display: flex; flex-wrap: wrap; gap: var(--space-0-5); justify-content: flex-end; }
.ap-managed { color: var(--grey-500); font-size: 11px; line-height: 1.5; }

.ap-reminder { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-1-25); row-gap: var(--space-1-5); }
.ap-reminder > .c-icon { align-self: start; margin-top: 3px; }

@media (max-width: 1080px) { .ap-apps--full { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ap-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .ap-apps--full { grid-template-columns: minmax(0, 1fr); }
  .ap-reminder { grid-template-columns: auto minmax(0, 1fr); }
  .ap-reminder__action { grid-column: 2; justify-content: center; }
}
.da-main:has(.cp-column) > .c-page-header,
.da-main:has(.cp-column) > .da-flash { width: 100%; max-width: 560px; align-self: center; }
.da-main:has(.cp-column) > .da-flash + .cp-column { margin-top: calc(var(--space-2) - var(--space-3)); }
.c-page-header__lead.cp-lead { flex-wrap: nowrap; align-items: flex-start; }
.cp-heading { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cp-heading .c-page-header__parent:focus-visible { outline: var(--focus-outline); outline-offset: 2px; border-radius: 2px; }
.cp-column { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: var(--space-2); align-self: center; }
.cp-rule { height: 1px; margin: 0; border: 0; background: var(--grey-100); }

.cp-note { display: flex; gap: var(--space-1); color: var(--grey-600); font-size: 12px; line-height: 1.55; }
.cp-note .c-icon { flex: none; color: var(--grey-500); margin-top: 3px; }

@media (max-width: 560px) {
  .cp-heading .c-page-header__parent, .cp-heading .c-page-header__separator { display: none; }
  .cp-actions .c-button--contained { flex: 1; justify-content: center; }
}
.fp-actions { margin-top: var(--space-0-5); }
@media (max-width: 480px) {
  .fp-actions { flex-direction: column-reverse; align-items: stretch; }
  .fp-actions .c-button { justify-content: center; }
}
.pw-rules { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-1-5) var(--space-2); border: 1px solid var(--grey-100); border-radius: var(--radius-4); background: var(--grey-50); }
.pw-rules__title { margin: 0; color: var(--grey-800); font-size: 12px; font-weight: 500; }
.pw-rules__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-0-5); }
.pw-rule { display: flex; align-items: center; gap: var(--space-1); color: var(--grey-600); font-size: 12px; line-height: 1.5; transition: color var(--duration-base) var(--ease-standard); }
.pw-rule .c-icon { flex: none; font-size: 14px; color: var(--grey-400); }
.pw-rule.is-met { color: var(--success-900); }
.pw-rule.is-met .c-icon { color: var(--success-700); }
.pw-rules.is-invalid .pw-rule:not(.is-met):not(.pw-rule--note),
.pw-rules.is-invalid .pw-rule:not(.is-met):not(.pw-rule--note) .c-icon { color: var(--red-600); }
.pw-rules__sep { height: 1px; background: var(--grey-100); }
.pw-rule--note .c-icon { color: var(--grey-500); }

.pw-rules--columns .pw-rules__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-0-5) var(--space-2); }
@media (max-width: 560px) {
  .pw-rules--columns .pw-rules__list { grid-template-columns: minmax(0, 1fr); }
}
.rp-actions { margin-top: var(--space-0-5); }
@media (max-width: 480px) {
  .rp-actions { flex-direction: column-reverse; align-items: stretch; }
  .rp-actions .c-button { justify-content: center; }
}
.si-domains { display: flex; flex-wrap: wrap; gap: var(--space-0-5); }
.si-domains .c-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0; border-color: var(--grey-100); color: var(--grey-700); }
.si-google { gap: var(--space-1-25); }
.si-google img { width: 16px; height: 16px; flex: none; }
.si-section { display: flex; flex-direction: column; gap: var(--space-1-5); }
.si-section__head { display: flex; flex-direction: column; gap: var(--space-0-25); }
.si-note { display: flex; gap: var(--space-1); padding: var(--space-1-5); border: 1px solid var(--grey-100); border-radius: var(--radius-4); background: var(--grey-50); color: var(--grey-600); font-size: 12px; line-height: 1.55; }
.si-note .c-icon { color: var(--grey-500); margin-top: 2px; }

/* A browser autofills without an event: the start of this animation is the one sign_in.js listens to. */
@keyframes si-autofilled { from { opacity: 1; } to { opacity: 1; } }
#sign-in-form .c-input:-webkit-autofill { animation: si-autofilled 1ms; }
.tf-code .da-field__label { text-align: center; }
.da-field .c-input.tf-code__input {
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  line-height: 54px;
  padding: 0 0 0 0.5em;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.5em;
  color: var(--grey-950);
  font-variant-numeric: tabular-nums;
}
.tf-code__input::placeholder { color: var(--grey-200); }
.tf-code .da-field__hint { text-align: center; }
.tf-back { display: flex; justify-content: center; }
.da-auth:has(.ua-body) { justify-content: center; padding-block: var(--space-4); }
.ua-body { align-items: center; text-align: center; }
.ua-icon.c-dialog__icon { width: 48px; height: 48px; font-size: 22px; }
.ua-text { display: flex; flex-direction: column; gap: var(--space-0-75); }
.ua-text .da-card__lead { text-wrap: pretty; }
.ua-actions { width: 100%; display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--space-1); }
.ua-actions a.c-button--contained:hover { color: var(--color-white); }
/*



 */
