/* =====================================================================
   Logichrono 360 — système d'interface « shadcn/ui » (branche ui-shadcn, 14/10/2026)
   ---------------------------------------------------------------------
   Valeurs reprises des sources officielles shadcn/ui (registry new-york-v4, thème « neutral »,
   licence MIT) et posées sur les classes existantes du portail (aucune page réécrite) :
     Button h-9 px-4 rounded-md text-sm font-medium · sm h-8 px-3 · icon size-9 / icon-sm size-8
     Input / Select h-9 px-3 rounded-md border-input shadow-xs · focus border-ring + ring 3px ring/50
     Card rounded-xl border shadow-sm p-6 · Badge rounded-full px-2 py-0.5 text-xs font-medium
     Tabs list h-9 p-[3px] rounded-lg bg-muted · trigger rounded-md px-2 py-1 text-sm, actif bg-background shadow-sm
     Table head h-10 px-2 font-medium · cell p-2 · row border-b hover:bg-muted/50
     Checkbox / Radio size-4 · Dialog rounded-lg p-6 shadow-lg, overlay black/50 · Sheet border-l shadow-lg
     Sidebar 16rem · menu button h-8 p-2 rounded-md text-sm · group label h-8 px-2 text-xs font-medium /70
     Tooltip bg-foreground px-3 py-1.5 text-xs rounded-md · Skeleton bg-accent animate-pulse · Spinner size-4
     Resizable handle w-px bg-border + poignée h-4 w-3 · Progress h-2 rounded-full bg-primary/20
   Composants shadcn, COULEURS DE LA CHARTE (décision 14/10) : primary bleu nuit #23305E ; vert #6DBD8D,
   turquoise #038391, orange #F7AD71, crème #F6DCAE pour graphiques et statuts ; gris neutres shadcn pour fonds et filets.
   Statuts = Badge « outline » + pastille de couleur (comme le data-table de dashboard-01).
   Retour arrière : retirer <link ui.css> d'index.html.
   ===================================================================== */
:root{
  --radius:10px;--r-sm:6px;--r-md:8px;--r-lg:10px;--r-xl:14px;
  /* Neutres teintés de la marque (bleu nuit) ; fonds bleu-gris (ancien fond du portail), jamais orange ni vert en fond (décision 14/10) */
  --sh-background:#f4f6fb;--sh-foreground:#1a2140;--sh-card:#ffffff;--sh-popover:#ffffff;
  --sh-primary:#23305e;--sh-primary-foreground:#fafafa;
  --sh-muted:#f1f3f8;--sh-muted-foreground:#5f6b85;--sh-accent:#eef1f7;
  --sh-border:#e4e7ef;--sh-input:#dde2ec;--sh-ring:#8e99bd;--sh-destructive:#e7000b;
  --sh-sidebar:#f8f9fc;--sh-sidebar-accent:#e9ecf4;--sh-vert:#6dbd8d;--sh-vert-fonce:#2f7d57;--sh-orange:#f7ad71;--sh-orange-fonce:#a85a1c;--sh-turquoise:#038391;
  --ombre-xs:0 1px 2px 0 rgb(0 0 0 / .05);
  --ombre-sm:0 1px 3px 0 rgb(0 0 0 / .1),0 1px 2px -1px rgb(0 0 0 / .1);
  --ombre-md:0 4px 6px -1px rgb(0 0 0 / .1),0 2px 4px -2px rgb(0 0 0 / .1);
  --ombre-lg:0 10px 15px -3px rgb(0 0 0 / .1),0 4px 6px -4px rgb(0 0 0 / .1);
  --anneau:0 0 0 3px rgb(142 153 189 / .45);
  /* jetons du portail alignés sur shadcn */
  --bleu:var(--sh-foreground);--ardoise:var(--sh-primary);--gris:var(--sh-muted-foreground);--gris-2:#8e99bd;
  --trait:var(--sh-border);--trait-2:var(--sh-border);--fond:var(--sh-background);--carte:var(--sh-card);--menu:var(--sh-sidebar);
  --actif:var(--sh-accent);--accent:var(--sh-primary);--accent-fonce:#1a2447;--accent-bord:var(--sh-primary);
  --accent-pale:#eef0f6;--accent-anneau:rgb(161 161 161 / .5);--turquoise:var(--sh-primary);--rouge:var(--sh-destructive)
}
html[data-theme="sombre"]{
  --sh-background:#0f1424;--sh-foreground:#eef1f7;--sh-card:#161c30;--sh-popover:#161c30;
  --sh-primary:#9fb0e8;--sh-primary-foreground:#0a0a0a;
  --sh-muted:#1f2740;--sh-muted-foreground:#a3adc8;--sh-accent:#222b46;
  --sh-border:rgb(255 255 255 / .1);--sh-input:rgb(255 255 255 / .15);--sh-ring:#5a6a9c;--sh-destructive:#ff6467;
  --sh-sidebar:#121830;--sh-sidebar-accent:#222b46;
  --ombre-xs:0 1px 2px 0 rgb(0 0 0 / .3);--ombre-sm:0 1px 3px 0 rgb(0 0 0 / .4);--ombre-md:0 4px 8px -2px rgb(0 0 0 / .5);--ombre-lg:0 12px 20px -6px rgb(0 0 0 / .6);
  --anneau:0 0 0 3px rgb(115 115 115 / .5);
  --bleu:var(--sh-foreground);--ardoise:var(--sh-foreground);--gris:var(--sh-muted-foreground);--gris-2:#8b94ab;
  --trait:var(--sh-border);--trait-2:var(--sh-border);--fond:var(--sh-background);--carte:var(--sh-card);--menu:var(--sh-sidebar);
  --actif:var(--sh-accent);--accent:var(--sh-primary);--accent-fonce:#d4d4d4;--accent-bord:var(--sh-primary);--accent-pale:#262626;--turquoise:var(--sh-primary)
}

/* ---------------------------------------------------------------- Base (text-sm) */
body{font-size:14px;line-height:20px;color:var(--sh-foreground);background:var(--sh-background)}
/* lot D (audit 28/10) : un élément marqué « hidden » l'est toujours, même quand sa classe le met en flex/grid/inline-flex
   (recherche du réseau, Annuler des dépôts, suivi d'un fait, boutons…) */
[hidden]{display:none!important}
.n,.kpi-num,.chiffre b,.tuile-chiffre b,td.num,.num{font-variant-numeric:tabular-nums}
a{color:var(--sh-primary);text-underline-offset:4px}
a:hover{color:var(--sh-primary)}
.petit,.aide{font-size:12px;line-height:16px;color:var(--sh-muted-foreground)}
h1,.entete h1{font-size:24px;line-height:32px;font-weight:600;letter-spacing:-.025em}
.entete p{color:var(--sh-muted-foreground);font-size:14px}

/* ---------------------------------------------------------------- Button */
.btn{height:36px;padding:0 16px;gap:8px;border-radius:var(--r-md);font-size:14px;font-weight:500;line-height:20px;white-space:nowrap;
  background:var(--sh-primary);color:var(--sh-primary-foreground);border:1px solid transparent;box-shadow:none;transition:all .15s}
.btn:has(> .ms){padding:0 12px}
.btn:hover:not(:disabled){background:color-mix(in oklab,var(--sh-primary) 90%,transparent);color:var(--sh-primary-foreground)}
.btn .ms{font-size:16px}
/* 09/11 (charte shadcn) : icône d'un titre de carte = 18 px ; partout ailleurs 16 px (.ms, espace.css) */
:where(.carte) :is(h2,h3) > .ms{font-size:18px}
/* 09/11 : champ fichier d'un bouton <label> : invisible mais atteignable au clavier (dtScan, app.js), anneau sur le bouton */
.fichier-cache{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;opacity:0}
label:has(> .fichier-cache:focus-visible){outline:none;box-shadow:var(--anneau)}
/* 09/11 (charte shadcn) : groupes de bascules .icone (courbe du capteur, vues) — 32 px, jetons shadcn au lieu de la pilule turquoise de 40 px */
.groupe-actions{border-radius:var(--r-md);border-color:var(--sh-border);background:var(--sh-background)}
.icone{height:32px;min-width:32px;padding:0 10px;border-radius:var(--r-md);border-color:var(--sh-border);background:var(--sh-background);color:var(--sh-foreground);font-weight:500;font-size:14px}
.icone.seul{width:32px;min-width:32px;padding:0}
.groupe-actions .icone:not(.texte){padding:0 8px}
.icone:hover:not(:disabled){background:var(--sh-accent);color:var(--sh-foreground)}
.icone:disabled{color:var(--sh-muted-foreground);opacity:.5}
.icone.actif,.icone[aria-pressed="true"]{background:var(--sh-accent);color:var(--sh-foreground)}
.icone:focus-visible{outline:none;box-shadow:var(--anneau);position:relative;z-index:1}
.btn.clair{background:var(--sh-card);color:var(--sh-foreground);border:1px solid var(--sh-border);box-shadow:var(--ombre-xs)}
.btn.clair:hover:not(:disabled){background:var(--sh-accent);color:var(--sh-foreground)}
.btn.danger{background:var(--sh-destructive);color:#fff;border-color:transparent}
.btn.avert{background:transparent;color:var(--fg-b56a1e,#b56a1e);border-color:var(--fg-b56a1e,#b56a1e)}   /* 12/11 (charte v2.05) : geste qui demande attention, orange en contour et texte, jamais en fond */
.btn.avert:hover:not(:disabled){color:#8f5214;border-color:#8f5214;background:transparent}
.btn.danger:hover:not(:disabled){background:color-mix(in oklab,var(--sh-destructive) 90%,transparent);color:#fff}
.btn.petit,.btn.clair.petit,.btn.danger.petit{height:32px;padding:0 12px;gap:6px;font-size:14px;border-radius:var(--r-md)}
.btn.petit:has(> .ms){padding:0 10px}
.btn.clair.petit{color:var(--sh-foreground)}
.btn:disabled{opacity:.5;pointer-events:none}
button:disabled:is([title],[data-bulle],[data-bulle-titre],[aria-label]){pointer-events:none}   /* son survol passe au conteneur : la bulle commune dit pourquoi (app.js) */
.btn:focus-visible,.btn-icone:focus-visible{outline:none;border-color:var(--sh-ring);box-shadow:var(--anneau)}
.btn-icone{width:36px;height:36px;border-radius:var(--r-md);color:var(--sh-foreground);transition:all .15s}
.btn-icone .ms{font-size:16px}
.btn-icone:hover{background:var(--sh-accent);color:var(--sh-foreground)}
.btn-icone.sm{width:32px;height:32px}
.btn-icone.sm .ms{font-size:16px}
/* « … » d’une barre ou d’un en-tête = bouton à contour (outline/icon de shadcn), comme ses voisins « Export », « Modifier » ; dans une ligne de grille ou une tuile il reste discret */
.btn-icone.contour{background:var(--sh-card);border:1px solid var(--sh-border);box-shadow:var(--ombre-xs)}
.btn-icone.contour:hover{background:var(--sh-accent)}
/* Actions d'en-tête d'écran (« … » + boutons) : sur une ligne, comme les autres barres ; jamais empilées (02/11). */
.entete-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.entete-actions select{width:auto}
.lien-bouton,.lien-sec{color:var(--sh-primary);font-weight:500;text-underline-offset:4px}
.lien-bouton:hover,.lien-sec:hover{text-decoration:underline}

/* ---------------------------------------------------------------- Input, Textarea, Select, Label */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),select,textarea{
  font-size:14px;color:var(--sh-foreground);background:transparent;border:1px solid var(--sh-input);border-radius:var(--r-md);
  box-shadow:var(--ombre-xs);transition:color .15s,box-shadow .15s,border-color .15s}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),select:not([multiple]){height:36px;padding:4px 12px}
textarea{display:block;width:100%;min-height:64px;max-height:320px;padding:8px 12px;line-height:1.5;resize:vertical;field-sizing:content}
input::placeholder,textarea::placeholder{color:var(--sh-muted-foreground)}
input:not([type=checkbox]):not([type=radio]):focus,select:focus,textarea:focus{outline:none;border-color:var(--sh-ring);box-shadow:var(--anneau)}
input:disabled,select:disabled,textarea:disabled{opacity:.5;cursor:not-allowed}
html[data-theme="sombre"] input:not([type=checkbox]):not([type=radio]),html[data-theme="sombre"] select,html[data-theme="sombre"] textarea{background:rgb(255 255 255 / .045)}
select:not([multiple]){appearance:none;-webkit-appearance:none;padding-right:32px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 10px center;background-size:16px 16px}
label{font-size:14px;line-height:1;font-weight:500;color:var(--sh-foreground);margin:16px 0 8px}
/* Groupe de champs sans style propre : bordure fine du portail au lieu du cadre en relief du navigateur (Sentinelle › tri, postes…) */
fieldset{border:1px solid var(--sh-border);border-radius:var(--r-md);padding:8px 14px 12px;margin:12px 0;min-width:0}
legend{padding:0 6px;font-size:14px;font-weight:500;color:var(--sh-foreground)}

/* Checkbox / Radio (size-4) */
input[type=checkbox],input[type=radio]{appearance:none;-webkit-appearance:none;width:16px!important;height:16px!important;min-width:16px;padding:0;margin:0;
  border:1px solid var(--sh-input);background:var(--sh-card);box-shadow:var(--ombre-xs);display:inline-grid;place-content:center;
  cursor:pointer;vertical-align:-3px;flex:0 0 auto;transition:box-shadow .15s}
input[type=checkbox]{border-radius:4px}
input[type=radio]{border-radius:50%}
input[type=checkbox]:checked,input[type=checkbox]:indeterminate{background:var(--sh-primary);border-color:var(--sh-primary)}
input[type=checkbox]:checked::before{content:"";width:12px;height:12px;background:var(--sh-primary-foreground);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat}
input[type=checkbox]:indeterminate::before{content:"";width:8px;height:2px;background:var(--sh-primary-foreground);border-radius:1px}
input[type=radio]:checked::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--sh-primary)}
input[type=checkbox]:focus-visible,input[type=radio]:focus-visible{outline:none;border-color:var(--sh-ring);box-shadow:var(--anneau)}
input[type=checkbox]:disabled,input[type=radio]:disabled{opacity:.5;cursor:not-allowed}

/* ---------------------------------------------------------------- Card */
.carte{background:var(--sh-card);border:1px solid var(--sh-border);border-radius:var(--r-xl);box-shadow:none;padding:24px}
.chiffre,.tuile,.al-kpi,.boite{background:var(--sh-card);border:1px solid var(--sh-border);border-radius:var(--r-xl);box-shadow:none}
.carte h2,.carte h3{font-weight:600;letter-spacing:-.01em}
/* titres de carte sans taille propre : 18 / 16 px (le navigateur leur donnait 21 / 16,4 px) — :where = ne passe jamais devant une règle d’écran */
:where(.carte) :where(h2){font-size:18px;line-height:1.3}
:where(.carte) :where(h3){font-size:16px;line-height:1.35}

/* ---------------------------------------------------------------- Badge (rounded-full px-2 py-0.5 text-xs font-medium) */
.pastille{display:inline-flex;align-items:center;gap:4px;width:fit-content;border-radius:999px;border:1px solid transparent;padding:2px 8px;font-size:12px;line-height:16px;font-weight:500;white-space:nowrap}
.pastille.p-ok,.pastille.p-al,.pastille.p-to,.pastille.p-hl,.pastille.p-off,.pastille.p-info{background:transparent;border-color:var(--sh-border);color:var(--sh-muted-foreground);padding:2px 6px}
.pastille.p-ok::before,.pastille.p-al::before,.pastille.p-to::before,.pastille.p-hl::before,.pastille.p-off::before,.pastille.p-info::before{content:"";width:8px;height:8px;border-radius:50%;flex:0 0 auto}
.pastille.p-ok::before{background:#6dbd8d}.pastille.p-al::before{background:var(--sh-destructive)}.pastille.p-to::before,.pastille.p-hl::before{background:#f7ad71}.pastille.p-off::before{background:#a1a1a1}.pastille.p-info::before{background:#038391}

/* ---------------------------------------------------------------- Tabs */
.onglets,.fiche-onglets,.onglets-j,.nf-onglets,.nva-onglets{display:inline-flex;align-items:center;width:fit-content;max-width:100%;flex-wrap:wrap;height:auto;min-height:36px;padding:3px;gap:0;
  background:var(--sh-sidebar-accent);color:var(--sh-muted-foreground);border:0;border-radius:var(--r-lg);box-shadow:none}
.onglets button,.onglets a,.fiche-onglets button,.onglets-j button,.nf-onglets button,.nva-onglets button{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:30px;padding:4px 8px;border-radius:var(--r-md);
  border:1px solid transparent;background:transparent;font-size:14px;font-weight:500;color:color-mix(in oklab,var(--sh-foreground) 60%,transparent);box-shadow:none;white-space:nowrap;transition:all .15s}
.onglets button:hover,.onglets a:hover,.fiche-onglets button:hover,.onglets-j button:hover,.nf-onglets button:hover,.nva-onglets button:hover{color:var(--sh-foreground)}
.onglets button.sel,.onglets a.sel,.onglets button[aria-selected="true"],.fiche-onglets button[aria-selected="true"],.fiche-onglets button.on,.fiche-onglets button:not(.clair):not([aria-selected]),.onglets-j button.actif,.nf-onglets button.on,.nva-onglets button.on{background:var(--sh-card);color:var(--sh-foreground);box-shadow:var(--ombre-sm)}
html[data-theme="sombre"] .onglets button.sel,html[data-theme="sombre"] .onglets a.sel,html[data-theme="sombre"] .onglets button[aria-selected="true"],html[data-theme="sombre"] .fiche-onglets button[aria-selected="true"],html[data-theme="sombre"] .fiche-onglets button.on,html[data-theme="sombre"] .fiche-onglets button:not(.clair):not([aria-selected]),html[data-theme="sombre"] .onglets-j button.actif,html[data-theme="sombre"] .nf-onglets button.on,html[data-theme="sombre"] .nva-onglets button.on{background:rgb(255 255 255 / .045);border-color:var(--sh-input)}
.onglets button:focus-visible,.onglets a:focus-visible,.fiche-onglets button:focus-visible,.onglets-j button:focus-visible,.nf-onglets button:focus-visible,.nva-onglets button:focus-visible{outline:none;border-color:var(--sh-ring);box-shadow:var(--anneau)}
/* Compteur d’un onglet (05/11) : petite pastille grise après le libellé, jamais un chiffre gris collé au texte */
.ong-n{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:color-mix(in oklab,var(--sh-foreground) 8%,transparent);color:var(--sh-muted-foreground);font-size:11px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums}
:is(.sel,[aria-selected="true"],.on) > .ong-n{background:color-mix(in oklab,var(--sh-foreground) 10%,transparent);color:var(--sh-foreground)}
.seg-vue{border-radius:var(--r-md);border:1px solid var(--sh-border);box-shadow:var(--ombre-xs)}
.seg-vue button{height:32px}
.seg-vue button.actif{background:var(--sh-accent)}

/* ---------------------------------------------------------------- Table / Data table */
table{font-size:14px}
th{height:40px;padding:0 8px;text-align:left;vertical-align:middle;font-size:14px;font-weight:500;color:var(--sh-foreground);white-space:nowrap;border-bottom:1px solid var(--sh-border)}
td{padding:8px;vertical-align:middle;border-bottom:1px solid var(--sh-border)}
tbody tr:last-child>td{border-bottom:0}
table tbody tr{transition:background-color .15s}
table tbody tr:hover>td{background:color-mix(in oklab,var(--sh-muted) 50%,transparent)}
.tabulator{font-size:14px}
.tabulator .tabulator-header{border-bottom:1px solid var(--sh-border);color:var(--sh-foreground);font-weight:500}
.tabulator .tabulator-header .tabulator-col{background:var(--sh-card)}
.tabulator .tabulator-header .tabulator-col .tabulator-col-content{padding:10px 8px}
.tabulator .tabulator-row{border-bottom:1px solid var(--sh-border);transition:background-color .15s}
.tabulator .tabulator-row .tabulator-cell{padding:8px}
.tabulator .tabulator-row:hover{background:color-mix(in oklab,var(--sh-muted) 50%,var(--sh-card))!important}
.tabulator .tabulator-row.tabulator-selected,.tabulator .tabulator-row.tabulator-selected.tabulator-row-even{background:var(--sh-muted)!important;box-shadow:none}

/* Pagination (ghost size-9 · page active = outline) */
.tabulator .tabulator-footer{background:transparent;border-top:1px solid var(--sh-border);padding:8px;font-weight:400;color:var(--sh-muted-foreground)}
.tabulator .tabulator-footer .tabulator-paginator{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}
.tabulator .tabulator-footer .tabulator-page{display:inline-flex;align-items:center;justify-content:center;height:36px;min-width:36px;padding:0 10px;margin:0;border-radius:var(--r-md);border:1px solid transparent;background:transparent;
  color:var(--sh-foreground);font:inherit;font-size:14px;font-weight:500;transition:all .15s}
.tabulator .tabulator-footer .tabulator-page .ms{font-size:16px}
.tabulator .tabulator-footer .tabulator-page:not(.disabled):hover{background:var(--sh-accent);color:var(--sh-foreground)}
.tabulator .tabulator-footer .tabulator-page.active{border-color:var(--sh-border);background:var(--sh-card);color:var(--sh-foreground);box-shadow:var(--ombre-xs)}
/* Une seule page (app.js, TabulatorCale) : pas de pagination ; le pied disparaît s'il ne contient rien d'autre. */
.tabulator.lc-une-page .tabulator-footer .tabulator-paginator{display:none}
.tabulator.lc-une-page .tabulator-footer:not(:has(.tabulator-calcs-holder,.tabulator-footer-contents>:not(.tabulator-paginator))){display:none}
/* Message vide : celui de .vide-grille (espace.css), pas le gras gris 20 px de Tabulator. */
.tabulator .tabulator-tableholder .tabulator-placeholder .tabulator-placeholder-contents{padding:0;font-size:14px;font-weight:400;color:var(--sh-muted-foreground)}
/* Tabulator donne au message la largeur visible et le décale du défilement (margin-left) : le centrer en plus sur toute la largeur
   des colonnes le poussait hors de la vue (« effacez- » coupé, Documents, Entreprises… dès que les colonnes dépassent). */
.tabulator .tabulator-tableholder .tabulator-placeholder{justify-content:flex-start}
.tabulator .tabulator-footer .tabulator-page.disabled{opacity:.5;pointer-events:none}
.tabulator .tabulator-footer .tabulator-page-size{height:36px;border-radius:var(--r-md);border:1px solid var(--sh-input);padding:0 32px 0 12px;margin-right:8px}

/* ---------------------------------------------------------------- Spinner (size-4 animate-spin) · Skeleton */
.chargement{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--sh-muted-foreground)}
.chargement::before{content:"";width:16px;height:16px;flex:0 0 auto;border-radius:50%;border:2px solid var(--sh-muted-foreground);border-right-color:transparent;animation:ui-tourne 1s linear infinite;opacity:.8}
td .chargement,.chargement.petit{justify-content:flex-start}
.squelette{border-radius:var(--r-md);background:var(--sh-accent);animation:ui-pulse 2s cubic-bezier(.4,0,.6,1) infinite;min-height:16px}
@keyframes ui-tourne{to{transform:rotate(360deg)}}
@keyframes ui-pulse{50%{opacity:.5}}

/* ---------------------------------------------------------------- Resizable (handle w-px bg-border + poignée h-4 w-3) */
.apc-sep{flex:0 0 13px;border-radius:0;display:flex;align-items:center;justify-content:center}
.apc-sep::before{left:6px;top:0;bottom:0;height:auto;transform:none;width:1px;background:var(--sh-border);border-radius:0}
.apc-sep::after{content:"";position:relative;z-index:1;width:12px;height:16px;border:1px solid var(--sh-border);border-radius:2px;
  background:var(--sh-border) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='12' r='1'/%3E%3Ccircle cx='9' cy='5' r='1'/%3E%3Ccircle cx='9' cy='19' r='1'/%3E%3Ccircle cx='15' cy='12' r='1'/%3E%3Ccircle cx='15' cy='5' r='1'/%3E%3Ccircle cx='15' cy='19' r='1'/%3E%3C/svg%3E") center/10px 10px no-repeat}
.apc-sep:hover::before,.apc-sep:active::before{width:1px;height:auto;background:var(--sh-ring)}

/* ---------------------------------------------------------------- Scroll area (w-2.5, pouce rounded-full bg-border) */
*{scrollbar-width:thin;scrollbar-color:var(--sh-border) transparent}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:var(--sh-border);border-radius:999px;border:2px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-track{background:transparent}

/* ---------------------------------------------------------------- Dialog / Sheet */
.voile,.pal-voile{background:rgb(0 0 0 / .5);animation:ui-fondu .2s ease-out}
.panneau{background:var(--sh-card);border-left:1px solid var(--sh-border);box-shadow:var(--ombre-lg);padding:16px;animation:ui-glisse .5s cubic-bezier(.32,.72,0,1)}
.panneau.plein{padding:24px;border:1px solid var(--sh-border);border-radius:var(--r-lg);animation:ui-zoom .2s ease-out}
.panneau h2{font-size:18px;line-height:1.15;font-weight:600;letter-spacing:-.01em;margin-bottom:8px}
.panneau .actions-bas,.actions-bas{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
@keyframes ui-fondu{from{opacity:0}to{opacity:1}}
@keyframes ui-glisse{from{transform:translateX(100%)}to{transform:none}}
@keyframes ui-zoom{from{transform:scale(.95);opacity:0}to{transform:none;opacity:1}}

/* ---------------------------------------------------------------- Dropdown menu / Popover (rounded-md border p-1 shadow-md · item rounded-sm px-2 py-1.5 text-sm) */
.menu-flot,.me-menu,.aide-menu,.nf-menu,.mod-menu{background:var(--sh-popover);color:var(--sh-foreground);border:1px solid var(--sh-border);border-radius:var(--r-md);box-shadow:var(--ombre-md);padding:4px;animation:ui-zoom .12s ease-out}
.menu-flot button,.menu-flot a,.me-menu button,.me-menu a,.aide-menu button,.aide-menu a{display:flex;align-items:center;gap:8px;border-radius:var(--r-sm);padding:6px 8px;font-size:14px;font-weight:400;color:var(--sh-foreground);border:0;background:transparent;text-decoration:none}
.menu-flot button:hover,.menu-flot a:hover,.me-menu button:hover,.me-menu a:hover,.aide-menu button:hover,.aide-menu a:hover{background:var(--sh-accent);color:var(--sh-foreground)}
.menu-flot .ms,.me-menu .ms,.aide-menu .ms{font-size:16px;color:var(--sh-muted-foreground)}
.menu-flot .menu-sec{padding:6px 8px;font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--sh-muted-foreground)}
.menu-flot .menu-sec:not(:first-child){margin-top:4px;border-top:1px solid var(--sh-border)}

/* ---------------------------------------------------------------- Command (Ctrl K) */
.pal{border:1px solid var(--sh-border);border-radius:var(--r-lg);box-shadow:var(--ombre-lg);background:var(--sh-popover)}
.pal-champ{height:48px;padding:0 12px;gap:8px;border-bottom:1px solid var(--sh-border)}
.pal-champ input{font-size:14px}
.pal-res{padding:4px}
.pal-g{padding:6px 8px;font-size:12px;font-weight:500;color:var(--sh-muted-foreground)}
.pal-it{min-height:32px;padding:6px 8px;gap:8px;border-radius:var(--r-sm);font-size:14px}

/* ---------------------------------------------------------------- Sonner (toasts) */
#toast{background:var(--sh-popover);color:var(--sh-foreground);border:1px solid var(--sh-border);border-radius:var(--r-lg);box-shadow:0 4px 12px rgb(0 0 0 / .1);
  font-size:13px;font-weight:500;padding:16px;min-width:300px;max-width:min(420px,92vw);bottom:24px;right:24px;left:auto;transform:translateY(8px);transition:opacity .25s,transform .25s}
#toast.visible{transform:none}
#toast.mauvais{background:var(--sh-popover);color:var(--sh-destructive)}
.toast-action{border-radius:var(--r-sm);padding:4px 8px;font-weight:500;font-size:12px;background:var(--sh-primary);color:var(--sh-primary-foreground);border:0}

/* ---------------------------------------------------------------- Tooltip (bulle immédiate, cf. app.js) */
.ui-bulle{position:fixed;z-index:3000;pointer-events:none;max-width:280px;width:max-content;background:var(--sh-foreground);color:var(--sh-background);
  border-radius:var(--r-md);padding:6px 12px;font-size:12px;line-height:16px;text-wrap:balance;white-space:pre-line;animation:ui-zoom .12s ease-out}

/* ---------------------------------------------------------------- Alert, Separator, Progress, Kbd */
.erreur{background:var(--sh-card);color:var(--sh-destructive);border:1px solid var(--sh-border);border-radius:var(--r-lg);padding:12px 16px;font-size:14px}
.note{background:var(--sh-card);color:var(--sh-foreground);border:1px solid var(--sh-border);border-radius:var(--r-lg);padding:12px 16px;font-size:14px}
hr{border:0;border-top:1px solid var(--sh-border)}
.jauge{height:8px;border-radius:999px;overflow:hidden;background:color-mix(in oklab,var(--sh-primary) 20%,transparent)}
.jauge-fill{background:var(--sh-primary)}
kbd{font:500 12px/1 Inter,system-ui,sans-serif;padding:2px 6px;border-radius:4px;border:1px solid var(--sh-border);background:var(--sh-muted);color:var(--sh-muted-foreground)}

/* ---------------------------------------------------------------- Sidebar (16rem · bouton h-8 p-2 rounded-md · libellé de groupe h-8 text-xs /70) */
@media (min-width:761px){.cadre{grid-template-columns:256px 1fr}.cadre.plie{grid-template-columns:64px 1fr}aside{padding:8px}}
aside{background:var(--sh-sidebar);border-right:1px solid var(--sh-border)}
aside nav a.nav-i,.nav-i{display:flex;align-items:center;gap:8px;min-height:32px;padding:8px;border-radius:var(--r-md);font-size:14px;line-height:16px;font-weight:400;color:var(--sh-foreground);transition:background-color .15s,color .15s}
aside nav a.nav-i .ms,.nav-i .ms,aside nav a .ms{font-size:16px}
aside nav a.nav-i:hover,.nav-i:hover{background:var(--sh-sidebar-accent);color:var(--sh-foreground)}
.nav-i.sel,aside nav a.sel{background:var(--sh-sidebar-accent);color:var(--sh-foreground);font-weight:500;box-shadow:none}
.nav-i.sel .ms,aside nav a.sel .ms{color:var(--sh-vert-fonce)}
.nav-i.sel .ic{color:var(--sh-vert-fonce)}
aside .grp{height:32px;padding:0 8px;margin-top:8px;display:flex;align-items:center}
aside .grp .label,aside .grp{font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:color-mix(in oklab,var(--sh-foreground) 70%,transparent)}

@media (prefers-reduced-motion:reduce){
  .voile,.pal-voile,.panneau,.menu-flot,.me-menu,.ui-bulle,.chargement::before,.squelette{animation-duration:.01ms!important;animation-iteration-count:1!important}
  .btn,#toast{transition:none}
}

/* ---------------------------------------------------------------- Tuiles d'indicateurs (al-kpi : Pilotage contrôle, Échéances) = SectionCards
   Carte À PLAT (sans dégradé ni ombre : l'utilisateur ne veut pas d'effet 3D, 14/10) · CardDescription au-dessus · CardTitle text-2xl → text-3xl tabular-nums.
   Statut (r / o / j / g) = pastille de couleur devant le libellé (Badge outline + point, comme dashboard-01). */
.al-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}
.al-kpi,.al-kpi.r,.al-kpi.o,.al-kpi.j,.al-kpi.g{container-type:inline-size;display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:8px;padding:24px;
  border:1px solid var(--sh-border);border-radius:var(--r-xl);box-shadow:none;background:var(--sh-card)}
html[data-theme="sombre"] .al-kpi{background:var(--sh-card)}
.al-kpi .n,.al-kpi.r .n,.al-kpi.o .n,.al-kpi.j .n,.al-kpi.g .n{font-size:24px;line-height:32px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--sh-foreground)}
@container (min-width:250px){.al-kpi .n{font-size:30px;line-height:36px}}
.al-kpi .l{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;color:var(--sh-muted-foreground)}
.al-kpi.r .l::before,.al-kpi.o .l::before,.al-kpi.j .l::before,.al-kpi.g .l::before{content:"";width:8px;height:8px;border-radius:50%;flex:0 0 auto}
.al-kpi.r .l::before{background:var(--sh-destructive)}.al-kpi.o .l::before{background:#f7ad71}.al-kpi.j .l::before{background:#f6dcae}.al-kpi.g .l::before{background:#6dbd8d}

/* Avertissements : jamais d'orange ni de vert EN FOND (décision 14/10) — fond carte, couleur sur le filet et le texte (Alert shadcn) */
.rf-kpi.rf-att{background:var(--sh-card);border-color:var(--sh-orange)}
.rf-kpi.rf-att b,.rf-kpi.rf-att .petit{color:var(--sh-orange-fonce)}
.rf-dbl{background:var(--sh-card);border-color:var(--sh-orange);color:var(--sh-orange-fonce)}
.rf-dbl.ko{background:var(--sh-card);border-color:var(--sh-destructive);color:var(--sh-destructive)}
.rf-dbl.ok{background:var(--sh-card);border-color:var(--sh-vert);color:var(--sh-vert-fonce)}
.rf-dbl-l{background:var(--sh-muted)}
/* Sélections (puces, cartes de choix, ligne sélectionnée) : bleu-gris de la marque, filet bleu nuit */
.rg-cl.on,.nr-chip.on,.mn-pill.on,.rf-groupe-choix:has(input:checked){background:var(--sh-sidebar-accent);border-color:var(--sh-primary);color:var(--sh-foreground)}
.rf-tab tbody tr.sel{background:var(--sh-sidebar-accent);box-shadow:inset 3px 0 0 var(--sh-primary)}
/* Bandeaux et contrôles d'état : fond carte, couleur sur le texte et le filet */
.bi-succes,.rv-ctl.ok,.ctl-p-ok{background:var(--sh-card);color:var(--sh-vert-fonce);border:1px solid var(--sh-vert)}
.bi-attention,.nva-alerte,.rv-ctl.attention{background:var(--sh-card);color:var(--sh-orange-fonce);border:1px solid var(--sh-orange)}
.bi-info{background:var(--sh-card);color:var(--sh-primary);border:1px solid var(--sh-primary)}
.bi-critique{background:var(--sh-card);color:var(--sh-destructive);border:1px solid var(--sh-destructive)}
.an-t-bandeau,.vf-raison{background:var(--sh-card);color:var(--sh-orange-fonce);border:1px solid var(--sh-orange)}
/* Badges de rôle et de confidentialité = Badge outline (texte coloré, pas de fond) */
.pastille.conf-p2,.pastille.role-responsable{background:transparent;border-color:var(--sh-border)}
.pastille.conf-p2{color:var(--sh-orange-fonce)}.pastille.role-responsable{color:var(--sh-vert-fonce)}

/* Icônes Lucide (remplacent les Material Symbols, cf. app.js « iconiser ») : taille = font-size (size-4 = 16 px), trait 2 */
.ms.lu{font-family:inherit;display:inline-flex;align-items:center;justify-content:center;width:1em;height:1em;line-height:1;vertical-align:-.125em;flex:0 0 auto}
.ms.lu svg{width:100%;height:100%;display:block;overflow:visible;pointer-events:none}

/* Pagination des listes = DataTable de shadcn/ui (dashboard-01) : compte à gauche (text-sm muted, masqué < lg),
   à droite gap-8 : « Lignes par page » (label text-sm font-medium + select sm w-20), « Page n sur N » (text-sm font-medium),
   boutons outline size-8 (première / dernière masquées < lg). */
.doc-footer.sh-pag{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 16px;flex-wrap:nowrap}
.sh-pag-compte{flex:1;min-width:0;font-size:14px;color:var(--sh-muted-foreground)}
.sh-pag-droite{display:flex;align-items:center;gap:32px;width:auto}
.sh-pag-taille{display:flex;align-items:center;gap:8px}
.sh-pag-taille label{margin:0;font-size:14px;font-weight:500;line-height:1;white-space:nowrap}
.sh-pag-taille select:not([multiple]){width:80px;height:32px;padding:0 28px 0 12px}
.sh-pag-num{display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:500;white-space:nowrap;color:var(--sh-foreground)}
.sh-pag-btns{display:flex;align-items:center;gap:8px}
.btn.sh-pag-b{width:32px;height:32px;padding:0;justify-content:center}
.btn.sh-pag-b .ms{font-size:16px}
@media (max-width:1023px){.sh-pag-compte,.sh-pag-taille,.sh-pag-ext{display:none}.sh-pag-droite{width:100%;gap:16px;justify-content:space-between}}

/* ---------------------------------------------------------------- Audit 14/10 : derniers écarts shadcn */
/* Pied des SectionCards (CardFooter : text-sm, ligne secondaire muted) */
.al-kpi .s{order:-1;font-size:14px;color:var(--sh-muted-foreground)}
.al-kpi .s:empty{display:none}
/* Barre de sélection : fond bleu-gris (muted), plus de turquoise */
.selbar{background:var(--sh-muted);border:1px solid var(--sh-border);border-radius:var(--r-lg);padding:8px 12px}
/* Alertes (Alert shadcn) : fond carte, filet et icône en couleur */
.dv-retenu{background:var(--sh-card);border:1px solid var(--sh-border);border-left:1px solid var(--sh-border);border-radius:var(--r-lg);padding:12px 16px}
.dv-retenu{border-color:var(--sh-orange)}
/* Échéances : badges outline + point (comme .pastille), table shadcn */
.ech-badge{gap:4px;padding:2px 8px;font-size:12px;line-height:16px;font-weight:500;border-radius:999px;background:transparent;border:1px solid var(--sh-border);color:var(--sh-muted-foreground)}
.ech-badge .ms{font-size:12px}
.ech-exp .ms{color:var(--sh-destructive)}.ech-30 .ms{color:var(--sh-orange-fonce)}.ech-90 .ms{color:var(--sh-muted-foreground)}
.ech-exp{color:var(--sh-destructive)}
.al-table{font-size:14px;background:var(--sh-card);border:1px solid var(--sh-border);border-radius:var(--r-lg);box-shadow:none;border-collapse:separate;border-spacing:0}
.al-table th{height:40px;padding:0 8px;font-size:14px;font-weight:500;color:var(--sh-foreground);text-transform:none;letter-spacing:0;border-bottom:1px solid var(--sh-border);white-space:nowrap}
.al-table td{padding:8px;border-bottom:1px solid var(--sh-border)}
.al-table tbody tr:last-child td{border-bottom:0}
.al-table tbody tr:hover td{background:color-mix(in oklab,var(--sh-muted) 50%,transparent)}
.al-table td:first-child,.al-table tr.exp td:first-child,.al-table tr.u30 td:first-child,.al-table tr.u90 td:first-child{border-left:0}
/* Suivi des échéances : Select shadcn (h-8, outline) */
/* Six indicateurs : une seule rangée dès que la largeur le permet (au lieu de 5 + 1) */
.al-kpis:has(> .al-kpi:nth-child(6):last-child){grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
/* Label en ligne (Label shadcn : text-sm font-medium) ; champ de recherche des filtres : largeur utile */
.champ-enligne{gap:8px;font-size:14px;font-weight:500;color:var(--sh-foreground)}
.champ-enligne input,.champ-enligne select{margin:0}
.filtres{align-items:center}
.filtres input[type=search]{flex:1 1 280px;max-width:420px}
/* Nouveautés : étiquettes = Badge outline + point de couleur (plus de fond vert ni bleu) */
.nv-tag,.nv-tag.nv-nouveau,.nv-tag.nv-ameliore,.nv-tag.nv-corrige{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:0;padding:2px 8px;font-size:12px;line-height:16px;font-weight:500;background:transparent;border:1px solid var(--sh-border);color:var(--sh-muted-foreground)}
.nv-tag::before{content:"";width:8px;height:8px;border-radius:50%;flex:0 0 auto;background:#a1a1a1}
.nv-tag.nv-nouveau::before{background:var(--sh-vert)}.nv-tag.nv-ameliore::before{background:var(--sh-primary)}.nv-tag.nv-corrige::before{background:var(--sh-orange)}
/* Colonne figée (Actions) : fond OPAQUE, sinon le texte des colonnes défilées se lit dessous (Tabulator : background inherit) */
.tabulator .tabulator-row{background-color:var(--sh-card)}
.tabulator .tabulator-row .tabulator-cell.tabulator-frozen{background-color:var(--sh-card)}
.tabulator .tabulator-row:hover .tabulator-cell.tabulator-frozen{background-color:color-mix(in oklab,var(--sh-muted) 50%,var(--sh-card))}
.tabulator .tabulator-row.tabulator-selected .tabulator-cell.tabulator-frozen{background-color:var(--sh-muted)}
.tabulator .tabulator-header .tabulator-col.tabulator-frozen{background:var(--sh-card)}
.tabulator .tabulator-cell.tabulator-frozen.tabulator-frozen-right,.tabulator .tabulator-col.tabulator-frozen.tabulator-frozen-right{border-left:1px solid var(--sh-border)}
/* Menu d'actions de ligne (DropdownMenu / ContextMenu shadcn) : bouton « ⋯ » et clic droit sur les lignes des grilles */
.menu-flot.menu-ligne{position:fixed;right:auto;z-index:2000;min-width:180px;max-width:min(440px,calc(100vw - 16px));display:flex;flex-direction:column}
/* 13/11 : un libellé plus long que le menu passe à la ligne au lieu de déborder de la boîte (ex. « Pris dans » : emplacement · lot · date · quantité) */
.menu-ligne button{width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere}
.menu-ligne button > .ms{flex:none}
.menu-ligne button:focus-visible{outline:none;background:var(--sh-accent)}
.menu-ligne .menu-sep{height:1px;margin:4px -4px;background:var(--sh-border)}
.menu-ligne button.danger,.menu-ligne button.danger .ms{color:var(--sh-destructive)}
.menu-ligne button.danger:hover,.menu-ligne button.danger:focus-visible{background:color-mix(in oklab,var(--sh-destructive) 10%,transparent);color:var(--sh-destructive)}
.tabulator .tabulator-row.ligne-menu-ouverte,.tabulator .tabulator-row.ligne-menu-ouverte .tabulator-cell.tabulator-frozen{background-color:var(--sh-muted)!important}
.cell-actions [data-menu][aria-expanded="true"]{background:var(--sh-accent)}
/* Échéances : le tableau défile dans son cadre sur tablette (au lieu d'élargir la page) */
#ech-liste{overflow-x:auto}
/* Menu replié : la pastille de compteur passe dans le coin de l'icône (au lieu de la recouvrir) */
.cadre.plie .nav-i{position:relative}
.cadre.plie .nav-i .pip{position:absolute;top:3px;left:auto;right:2px;margin:0;min-width:16px;height:16px;padding:0 3px;font-size:10px;line-height:13px;border:1.5px solid var(--sh-sidebar);box-sizing:border-box}
/* Menu replié (écran large) : titres de groupe masqués → séparateur fin au lieu d’un bloc vide */
@media (min-width:761px){.cadre.plie .grp{padding:0;height:1px;min-height:0;margin:8px 10px;background:var(--sh-sidebar-border,var(--trait))}}
/* Barre d'outils des listes (Documents, Agents, Véhicules) : passe à la ligne au lieu de déborder sur le titre ;
   sur tablette et petit portable, elle prend toute la largeur sous le titre (recherche extensible). */
.ba-outils{flex-wrap:wrap}
@media (max-width:1099px){.ba-outils{flex-basis:100%;margin-left:0;justify-content:flex-start}.ba-outils .chip-search{flex:1 1 220px;max-width:none}}
/* Recherche à puces (Documents, Agents, Véhicules) : UN seul contour = Input shadcn (h-9, border-input, shadow-xs, anneau au focus) */
.chip-search{min-height:36px;border:1px solid var(--sh-input);border-radius:var(--r-md);padding:0 8px;background:var(--sh-card);box-shadow:var(--ombre-xs)}
.chip-search:focus-within{border-color:var(--sh-ring);box-shadow:var(--anneau)}
.chip-search input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),.chip-search input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):focus,.chip-search input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):hover{border:0;box-shadow:none;outline:0;height:32px;padding:0 4px;background:transparent}
/* Barres de recherche à icône (Paramètres, listes, Référentiel, Documents attendus, connexion invité, aide, Support) : UN seul contour, celui
   du cadre ; le champ s'y fond (22/10 : la règle générale des champs lui ajoutait un second cadre) */
:is(.pa-rech,.liste-rech,.rf-recherche,.inv-rech,.aide-rech,.sp-rech,.tg-rech) input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),:is(.pa-rech,.liste-rech,.rf-recherche,.inv-rech,.aide-rech,.sp-rech,.tg-rech) input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):focus,:is(.pa-rech,.liste-rech,.rf-recherche,.inv-rech,.aide-rech,.sp-rech,.tg-rech) input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):hover{border:0;box-shadow:none;outline:0;border-radius:0;background:transparent;padding:0;height:auto;min-height:34px;line-height:1.4;align-self:stretch}
/* Tableaux de bord › galerie (04/11) : cadre de 32 px, le champ ne réclame pas 34 px ; anneau sur le cadre comme les autres */
.tg-rech input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]){min-height:0;height:100%}
.tg-rech:focus-within{border-color:var(--sh-ring);box-shadow:var(--anneau)}
/* Fenêtre « Raccourcis clavier » */
.rc-t{margin:16px 0 6px;font-size:14px;font-weight:600}
.rc-table{width:100%;border-collapse:collapse;font-size:14px}
.rc-table td{padding:6px 0;border-bottom:1px solid var(--sh-border);vertical-align:top}
.rc-table tr:last-child td{border-bottom:0}
.rc-table .rc-k{width:42%;white-space:nowrap;padding-right:12px;color:var(--sh-muted-foreground)}
/* Vue Cartes (véhicules, trombinoscope) : le bandeau image garde sa hauteur quel que soit le texte de la carte */
.carte-veh .cv-visuel{flex:none}
.cartes-grille{grid-auto-rows:max-content}
.btn.btn-plus{aspect-ratio:1;padding:0;justify-content:center;gap:0}.btn.btn-plus .ms{margin:0}

/* ---------------------------------------------------------------- Responsive (15/10) : paliers shadcn sm 640 · md 768 · lg 1024 · xl 1280
   Sous 1024 px (tablette portrait et paysage) : le menu devient un volet (Sheet) ouvert par le bouton ☰, au-dessus du
   contenu avec un voile ; il garde ses libellés même si l'utilisateur l'a replié sur grand écran. Barre du haut condensée. */
@media (max-width:1023px){
  .cadre,.cadre.plie{grid-template-columns:minmax(0,1fr)}
  .cadre aside,.cadre.plie aside{position:fixed;top:0;left:0;bottom:0;height:100%;width:272px;max-width:85vw;transform:translateX(-100%);transition:transform .2s ease;z-index:60;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:6px}
  .cadre.nav-open aside{transform:none;box-shadow:0 10px 40px rgba(0,0,0,.25)}
  .cadre .label,.cadre.plie .label{display:inline!important}
  .cadre.plie .nav-i{justify-content:flex-start;padding:8px}
  .cadre.plie .logo{justify-content:flex-start;margin:0 0 12px}
  .cadre.plie .switch-btn{justify-content:flex-start;padding:8px;gap:8px}
  .cadre.plie .grp{justify-content:flex-start;padding:12px 8px 4px}
  .cadre-bd{display:block;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:55}
  .cadre-bd[hidden]{display:none}
  .col{min-width:0}
  .topbar .tb-lbl,.topbar .tb-rech-t,.topbar .tb-rech kbd,.me .who2,.me .me-chev{display:none}
  main{padding:16px}
}
@media (prefers-reduced-motion:reduce){.cadre aside{transition:none}}
/* Tableau posé directement dans une carte : défilement horizontal dans la carte plutôt que débordement de la page. */
.carte:has(> table){overflow-x:auto}
/* Visionneuse sous 1024 px : aperçu pleine largeur, informations dessous, liste masquée (↑ / ↓ et précédent / suivant),
   barre d'actions qui passe à la ligne sous le titre. */
@media (max-width:1023px){
  div:has(> #apc-titre){flex-wrap:wrap}
  div:has(> #apc-titre) > div:has(> .btn){flex-shrink:1!important;min-width:0;width:100%}
  #apc-cols{flex-direction:column;overflow:auto;gap:10px}
  #apc-cols > #apc-liste,#apc-cols > .apc-sep{display:none!important}
  #apc-cols > #apc-centre{min-width:0!important;flex:none!important;height:58vh}
  #apc-cols > #apc-infos{width:auto!important;flex:none!important;overflow:visible!important}
}

/* ---------------------------------------------------------------- Harmonisation shadcn (15/10)
   Squelette (Skeleton) pendant le chargement d'une page entière : titre, trois cartes, lignes de tableau, pulsation douce. */
main > .chargement{display:block;height:420px;padding:0;color:transparent;font-size:0;border-radius:12px;
  background:linear-gradient(var(--sq,var(--sh-muted)) 0 0) 0 0/240px 28px no-repeat,
    linear-gradient(var(--sq,var(--sh-muted)) 0 0) 0 52px/32% 96px no-repeat,linear-gradient(var(--sq,var(--sh-muted)) 0 0) 50% 52px/32% 96px no-repeat,linear-gradient(var(--sq,var(--sh-muted)) 0 0) 100% 52px/32% 96px no-repeat,
    linear-gradient(var(--sq,var(--sh-muted)) 0 0) 0 176px/100% 40px no-repeat,linear-gradient(var(--sq,var(--sh-muted)) 0 0) 0 228px/100% 22px no-repeat,linear-gradient(var(--sq,var(--sh-muted)) 0 0) 0 262px/100% 22px no-repeat,
    linear-gradient(var(--sq,var(--sh-muted)) 0 0) 0 296px/100% 22px no-repeat,linear-gradient(var(--sq,var(--sh-muted)) 0 0) 0 330px/100% 22px no-repeat,linear-gradient(var(--sq,var(--sh-muted)) 0 0) 0 364px/70% 22px no-repeat}
main > .chargement::before{display:none}
main > .chargement{animation:sq-apparait .01s linear .4s both}   /* 04/11 : pas d'éclair gris si l'écran arrive en moins de 0,4 s */
@media (prefers-reduced-motion:no-preference){main > .chargement{animation:sq-apparait .2s ease-out .4s both,squelette 1.6s ease-in-out .6s infinite}}
@keyframes squelette{50%{opacity:.55}}
/* État vide (Empty) : bloc centré, bordure pointillée, texte atténué. */
div.vide{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:32px 20px;text-align:center;color:var(--sh-muted-foreground);font-size:14px;border:1px dashed var(--sh-border);border-radius:12px;background:var(--sh-card)}
/* Référentiel des types : ToggleGroup (filtre « Pour »), recherche = Input, cartes de chiffres = SectionCards. */
.rf-tg{display:inline-flex;align-items:center;border:1px solid var(--sh-input);border-radius:var(--r-md);overflow:hidden;box-shadow:var(--ombre-xs)}
.rf-tg .rf-puce{height:32px;padding:0 12px;border:0;border-radius:0;background:var(--sh-card);color:var(--sh-foreground);font-size:14px;font-weight:500}
.rf-tg .rf-puce + .rf-puce{border-left:1px solid var(--sh-input)}
.rf-tg .rf-puce:hover{background:var(--sh-accent)}
.rf-tg .rf-puce[aria-pressed="true"]{background:var(--sh-accent);color:var(--sh-foreground);box-shadow:inset 0 -2px 0 var(--sh-primary)}
.rf-tg .rf-puce:focus-visible{outline:none;box-shadow:var(--anneau);position:relative;z-index:1}
.rf-recherche{min-height:36px;border:1px solid var(--sh-input);border-radius:var(--r-md);background:var(--sh-card);box-shadow:var(--ombre-xs)}
.rf-recherche:focus-within{outline:none;border-color:var(--sh-ring);box-shadow:var(--anneau)}
.rf-lbl{text-transform:none;letter-spacing:0;font-size:14px;font-weight:500;color:var(--sh-muted-foreground)}
.rf-kpi{border:1px solid var(--sh-border);border-radius:12px;background:var(--sh-card);box-shadow:var(--ombre-xs);padding:16px 18px;gap:4px}
.rf-kpi .petit{font-size:13px;color:var(--sh-muted-foreground)}.rf-kpi .petit:first-child{font-size:14px}
.rf-kpi b{font-size:24px;font-weight:600;color:var(--sh-foreground);font-variant-numeric:tabular-nums}
.rf-kpi:hover{border-color:var(--sh-ring)}
/* Recherche dans le contenu (0230) : Input Group shadcn — Toggle « Contenu » logé à droite dans la barre de recherche */
.chip-search .ig-toggle{display:inline-flex;align-items:center;gap:4px;flex-shrink:0;height:28px;margin:0 -4px 0 4px;padding:0 8px;border:0;border-radius:calc(var(--r-md,8px) - 2px);background:transparent;font:inherit;font-size:12px;font-weight:500;color:var(--sh-muted-foreground,var(--gris));cursor:pointer;white-space:nowrap;transition:background .15s,color .15s}
.chip-search .ig-toggle .ms{font-size:16px}
.chip-search .ig-toggle:hover{background:var(--sh-muted,var(--bg-f4f4f5,#f4f4f5));color:var(--sh-foreground,var(--fg-09090b,#09090b))}
.chip-search .ig-toggle:focus-visible{outline:none;box-shadow:var(--anneau)}
.chip-search .ig-toggle[aria-pressed="true"]{background:var(--sh-accent,var(--bg-f4f4f5,#f4f4f5));color:var(--sh-accent-foreground,var(--sh-foreground,var(--fg-09090b,#09090b)))}
.chip-search .ig-toggle.charge{opacity:.55}
.ged-extrait{white-space:normal;font-size:13px;line-height:1.4;color:var(--sh-muted-foreground,var(--gris));display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ged-extrait mark,.ck-extrait mark{background:#fef08a;color:#0a0a0a;border-radius:3px;padding:0 2px}
.ged-ext-p{display:inline-block;margin-right:6px;padding:0 6px;border-radius:999px;background:var(--sh-muted,var(--bg-f4f4f5,#f4f4f5));font-size:11px;font-weight:600;color:var(--sh-foreground,var(--fg-09090b,#09090b))}
.pal-t .ck-extrait{display:block;margin-top:2px;font-size:12px;line-height:1.35;color:var(--sh-muted-foreground,var(--gris));white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
/* Visionneuse : en-tête sur une ligne (titre tronqué, nom complet dans « Informations »), actions regroupées */
.apc-tete{display:flex;align-items:center;gap:12px;margin-bottom:12px;min-width:0}
#apc-titre{margin:0;flex:1 1 auto;min-width:0;font-size:16px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.apc-barre{display:flex;align-items:center;gap:6px;flex-shrink:0;flex-wrap:nowrap}
.apc-barre .btn .ms + .ms{font-size:16px;opacity:.6;margin-left:-2px}
.apc-barre .apc-icone{width:32px;padding:0;justify-content:center}
.apc-barre .btn[aria-pressed="true"]{background:var(--sh-accent,var(--bg-f4f4f5,#f4f4f5));color:var(--sh-accent-foreground,var(--sh-foreground,var(--fg-09090b,#09090b)))}
/* Rythme vertical des pages (shadcn « space-y-4 ») : deux blocs empilés dans le flux ne se touchent jamais.
   Les grilles, rangées et barres (qui ont leur propre « gap ») sont exclues pour ne pas décaler les blocs côte à côte. */
:not([class*="grille"],[class*="grid"],[class*="kpis"],[class*="mosaique"],[class*="tuiles"],[class*="cols"],[class*="ligne"],[class*="rangee"],[class*="cartes"],[class*="deux"],[class*="trois"],[class*="chiffres"],.barre-actions,.ba-outils,.fiche-titre,
      .rd-sites,.rd-sigs,.wf-bas,.rf-groupes,.res-carte-mise,.res-arret-mise)   /* 09/11 : grilles de cartes dont le nom ne dit pas « grille » (2e carte décalée de 16 px) */
  > :is(.carte,.barre-actions,.al-kpis,.tbl-scroll,.fiche-onglets,.fiche-onglets-ligne,.bandeau,.fiche-tete,[class*="grille"],[class*="kpis"],.grid-stack,div:has(.grid-stack),div:has(> :is(.carte,.al-kpi):last-child))
  + :not(script,style,template,.cache,.menu-flot,input[type="file"],[hidden]){margin-top:16px}
.carte > :is(h2,h3):not(:last-child){margin-bottom:12px}
/* shadcn Button variant="link" : un <button> stylé en lien n'affiche jamais la bordure ni le fond du navigateur */
button.lien-sec,button.lien-bouton{background:none;border:0;padding:0;box-shadow:none;font:inherit;font-weight:500;color:var(--sh-primary);cursor:pointer;text-underline-offset:4px}
button.lien-sec:hover,button.lien-bouton:hover{text-decoration:underline}
button.lien-sec:focus-visible,button.lien-bouton:focus-visible{outline:none;box-shadow:var(--anneau);border-radius:4px}
/* shadcn Button variant="ghost" */
.btn.fantome{background:transparent;border:1px solid transparent;box-shadow:none;color:var(--sh-foreground)}
.btn.fantome:hover{background:var(--sh-accent,var(--bg-f4f4f5,#f4f4f5));color:var(--sh-accent-foreground,var(--sh-foreground))}
.btn.fantome.petit{height:28px;padding:0 8px;font-size:13px;gap:4px}
.btn.fantome .ms{font-size:16px}
/* Présélection du dépôt : shadcn Alert */
.dv-indice{display:flex;align-items:center;gap:10px;margin:12px 0 0;padding:10px 8px 10px 14px;background:var(--sh-card);color:var(--sh-foreground);border:1px solid var(--sh-border);border-radius:var(--r-lg,10px);font-size:14px;line-height:20px}
.dv-indice span{flex:1;min-width:0}
.dv-indice b{font-weight:600}
/* Services officiels (API-GOUV-01) : carte Card + Alert + ToggleGroup shadcn */
.off-tete{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.off-titre{min-width:0}
.off-titre h2{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 2px;font-size:15px}
.off-titre h2 .pastille{font-size:12px}
.off-titre p{margin:0}
.off-actions{display:flex;gap:8px;flex-wrap:wrap}
.off-vide{margin:0;color:var(--sh-muted-foreground);font-size:14px}
.off-note{display:flex;align-items:flex-start;gap:6px;margin:12px 0 0;color:var(--sh-muted-foreground)}
.off-note .ms{font-size:15px;margin-top:2px;flex:none}
.off-pied{margin:12px 0 0}
.off-pied .ms,.off-a-actions .ms{font-size:13px;margin-left:3px;vertical-align:-1px}
.off-ecarts{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:10px 8px 10px 14px;background:var(--sh-card);border:1px solid var(--sh-border);border-left:3px solid #f7ad71;border-radius:var(--r-lg);font-size:14px;line-height:20px}
.off-ecarts > span:not(.ms){flex:1;min-width:0}
.off-ecarts > .ms{font-size:17px;color:var(--sh-muted-foreground)}
.off-annonces{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.off-annonce{display:grid;grid-template-columns:88px minmax(0,1fr) auto;gap:4px 14px;padding:10px 0;border-top:1px solid var(--sh-border);font-size:14px}
.off-annonce:first-child{border-top:0;padding-top:0}
.off-a-date{color:var(--sh-muted-foreground);font-variant-numeric:tabular-nums}
.off-a-corps{display:flex;flex-direction:column;gap:3px;min-width:0}
.off-a-actions{display:flex;flex-direction:column;align-items:flex-end;gap:6px;white-space:nowrap}
@media (max-width:640px){.off-annonce{grid-template-columns:1fr}.off-a-actions{align-items:flex-start}}
.off-q{display:flex;gap:8px;align-items:center}
.off-q input{flex:1;min-width:0}
.off-res{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.off-choix{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;padding:10px 12px;border:1px solid var(--sh-border);border-radius:var(--r-lg);background:var(--sh-card);font:inherit;color:var(--sh-foreground);text-align:left;cursor:pointer;transition:background .15s,border-color .15s}
.off-choix:hover:not(:disabled){background:var(--sh-accent);border-color:var(--sh-input)}
.off-choix:focus-visible{outline:none;box-shadow:var(--anneau)}
.off-choix:disabled{cursor:default;opacity:.6}
.off-choix.en-cours{opacity:1;border-color:var(--sh-primary)}
.off-choix-nom{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.off-diff{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.off-ligne{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 16px;padding:12px 14px;border:1px solid var(--sh-border);border-radius:var(--r-lg);background:var(--sh-card)}
.off-ligne-lib{grid-column:1 / -1;font-weight:600;font-size:14px}
.off-val{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:14px;overflow-wrap:anywhere}
.off-val span{font-size:12px;color:var(--sh-muted-foreground)}
.off-val b{font-weight:500}
.off-seg{grid-column:1 / -1;display:inline-flex;justify-self:start;padding:3px;gap:2px;background:var(--sh-muted);border-radius:var(--r-md)}
/* 04/11 : le choix sous la valeur officielle ; la valeur qui ne sera pas gardée est barrée */
.off-val-off .off-seg{align-self:flex-start;margin-top:8px}
.off-ligne[data-choix="appliquer"] .off-val-fiche b,.off-ligne[data-choix="ignorer"] .off-val-off b{text-decoration:line-through;color:var(--sh-muted-foreground)}
.off-ligne[data-choix="appliquer"] .off-val-off b{color:var(--sh-foreground);font-weight:600}
.off-seg label{margin:0;position:relative;cursor:pointer}
.off-seg input{position:absolute;opacity:0;width:1px;height:1px}
.off-seg span{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:calc(var(--r-md) - 2px);font-size:13px;font-weight:500;color:var(--sh-muted-foreground);transition:background .15s,color .15s}
.off-seg input:checked + span{background:var(--sh-card);color:var(--sh-foreground);box-shadow:var(--ombre-xs)}
.off-seg input:focus-visible + span{box-shadow:var(--anneau)}
@media (max-width:560px){.off-ligne{grid-template-columns:1fr}}
.off-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.off-intro p{margin:0;flex:1 1 280px}
/* Charte shadcn : les contrôles de formulaire héritent de la police du portail (Inter) au lieu de la police système du navigateur */
button,input,select,textarea,optgroup{font-family:inherit}
/* Vérification d'un dépôt : boutons secondaires sur une ou deux lignes (jamais tronqués), « écarter » en variante destructive */
.vf-2{display:flex;flex-wrap:wrap;gap:8px}
.vf-2 .btn{flex:1 1 150px;min-width:0;white-space:normal;height:auto;min-height:36px;line-height:1.25;padding-top:6px;padding-bottom:6px}
.btn.clair.vf-rouge{color:var(--sh-destructive);border-color:color-mix(in oklab,var(--sh-destructive) 35%,var(--sh-border))}
.btn.clair.vf-rouge:hover{background:color-mix(in oklab,var(--sh-destructive) 8%,var(--sh-card));color:var(--sh-destructive)}
.btn.vf-rouge .ms{font-size:16px}
.vf-aide{margin:8px 0 0;line-height:1.45}
/* Menu du compte : assez large pour « Clair / Sombre » avec la police Inter */
.me-menu{width:276px}
.dv-annule{display:flex;align-items:center;gap:8px;margin:10px 0 0;font-size:14px;color:var(--sh-muted-foreground)}
/* Dossier : QR code du lien dans un bandeau repliable (Collapsible shadcn) */
.dos-qr{margin:12px 0 0;border:1px solid var(--sh-border);border-radius:var(--r-lg);background:var(--sh-card)}
.dos-qr summary{display:flex;align-items:center;gap:8px;padding:9px 12px;cursor:pointer;list-style:none;font-size:14px;font-weight:500;color:var(--sh-foreground)}
.dos-qr summary::-webkit-details-marker{display:none}
.dos-qr summary .ms{font-size:16px;color:var(--sh-muted-foreground)}
.dos-qr summary .dos-qr-chev{margin-left:auto;transition:transform .15s}
.dos-qr[open] summary .dos-qr-chev{transform:rotate(180deg)}
.dos-qr summary:focus-visible{outline:none;box-shadow:var(--anneau);border-radius:var(--r-lg)}
.dos-qr-code{display:flex;align-items:center;gap:14px;padding:4px 12px 12px;flex-wrap:wrap}
.dos-qr-img{width:148px;height:148px;padding:6px;background:#fff;border:1px solid var(--sh-border);border-radius:var(--r-md)}
.dos-qr-img svg{width:100%;height:100%;display:block}
.dos-qr-code .petit{flex:1 1 180px;margin:0}
/* Lot 3 : contrats porteurs d'établissement */
.ct-ajout-grille{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;margin-top:4px}
.ct-aq{color:var(--fg-b4833a,#b4833a);font-weight:600}
.ct-remplace{display:flex;align-items:center;gap:8px;margin:10px 0 0;font-size:14px;font-weight:500}
.fe-etab-barre{display:flex;justify-content:flex-end;margin:0 0 12px}

/* Contrastes (contrôle du 20/10, clair + sombre) :
   - boutons rouges : la règle .btn.danger.petit d'espace.css mettait le texte en rouge sur fond rouge (« Désactiver » illisible) ;
   - mode sombre : boutons principaux .petit en blanc sur bleu pâle (2,1:1), cases à cocher bordées à 10 % (invisibles),
     libellés secondaires --gris-2 à 3,9:1 (relevé à 5:1 ci-dessus). */
.btn.danger:not(.clair){color:#fff}
html[data-theme="sombre"] .btn.danger:not(.clair){background:#c4383b}
html[data-theme="sombre"] .btn:not(.clair):not(.danger):not(.lien-bouton){color:var(--sh-primary-foreground)}
html[data-theme="sombre"] input[type=checkbox],html[data-theme="sombre"] input[type=radio]{border-color:rgb(255 255 255 / .38)}

/* lot D (audit 28/10) : même correctif que l’appli — fins traits blancs entre les tuiles des cartes (réseau, rondes, dépôts) */

/* 0612 (lot E) : carnet d'adresses des rapports envoyés par e-mail (cockpit/carnet.js) — suggestions sous le champ des destinataires */
.carnet{display:flex;flex-direction:column;gap:6px;margin:4px 0 2px}
.carnet:empty{display:none}
.carnet-liste{display:flex;flex-wrap:wrap;gap:6px}
.carnet-sugg{display:inline-flex;align-items:center;max-width:100%;border:1px solid var(--sh-border);border-radius:999px;background:var(--sh-card);font-size:12px;line-height:18px}
.carnet-sugg button{border:0;background:none;color:var(--sh-foreground);font:inherit;padding:2px 10px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:280px}
.carnet-sugg button:hover{color:var(--sh-primary)}
.carnet-sugg .carnet-x{padding:2px 8px 2px 0;color:var(--sh-muted-foreground)}
.carnet-hors{font-size:13px;color:var(--sh-destructive);margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px}

/* ---------------------------------------------------------------- Champs (charte v1.16, § 9.3, 9.7-9.11) — aides communes d'app.js
   Erreur sous le champ (Field : FieldError, aria-invalid), compteur, derniers motifs, pièce jointe avant l'envoi, aperçu au survol
   (Hover Card), tiroir du bas sur téléphone (Drawer). Jamais sur le planning (écrans planning_*). */
.chp-err{margin:4px 0 0;font-size:14px;line-height:20px;font-weight:400;color:var(--sh-destructive)}
input:not([type=checkbox]):not([type=radio])[aria-invalid="true"],textarea[aria-invalid="true"],select[aria-invalid="true"],.sel-btn[aria-invalid="true"]{border-color:var(--sh-destructive)}
input:not([type=checkbox]):not([type=radio])[aria-invalid="true"]:focus,textarea[aria-invalid="true"]:focus,select[aria-invalid="true"]:focus,.sel-btn[aria-invalid="true"]:focus-visible{border-color:var(--sh-destructive);box-shadow:0 0 0 3px color-mix(in oklab,var(--sh-destructive) 20%,transparent)}
.chp-pied{display:flex;align-items:center;gap:8px;margin-top:6px}
.chp-pied:not(:has(> :not([hidden]))){display:none}
.chp-compteur{margin-left:auto;font-size:12px;line-height:16px;font-variant-numeric:tabular-nums;color:var(--sh-muted-foreground)}
.chp-compteur.chp-presque{color:var(--sh-orange-fonce);font-weight:500}
.chp-compteur[hidden],.chp-motifs-btn[hidden],.pj-apercu[hidden]{display:none}
.pj-apercu{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.pj-ligne{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid var(--sh-border);border-radius:var(--r-lg);background:var(--sh-card)}
.pj-mini{width:40px;height:40px;flex:0 0 40px;border-radius:var(--r-md);object-fit:cover;background:var(--sh-muted)}
.pj-ic{display:flex;align-items:center;justify-content:center;color:var(--sh-muted-foreground)}
.pj-ic .ms{font-size:16px}
.pj-nom{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.pj-nom b{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* champ fichier façon shadcn (Input type=file) : bouton de choix discret, bordure du champ */
input[type=file][data-pj]{width:100%;height:36px;padding:2px 3px;font-size:14px;color:var(--sh-muted-foreground);background:var(--sh-card);border:1px solid var(--sh-border);border-radius:var(--r-md);cursor:pointer}
input[type=file][data-pj]::file-selector-button{height:28px;margin-right:10px;padding:0 12px;font:inherit;font-weight:500;color:var(--sh-foreground);background:var(--sh-muted);border:0;border-radius:calc(var(--r-md) - 2px);cursor:pointer}
input[type=file][data-pj]:focus-visible{outline:none;border-color:var(--sh-ring);box-shadow:var(--anneau)}
input[type=file][data-pj][aria-invalid="true"]{border-color:var(--sh-destructive)}
input[type=file].pj-choisi{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0;white-space:nowrap}
/* Rangée « réglage + explication » restée en case à cocher (formulaire validé par Enregistrer) : la case passe devant le texte */
.rl-sw:has(> input[type=checkbox]:not(.sw)){flex-direction:row-reverse;justify-content:flex-end}
/* Aperçu au survol (Hover Card) */
.hc-carte{position:fixed;z-index:3000;width:280px;max-width:calc(100vw - 16px);display:flex;flex-direction:column;gap:6px;padding:12px;font-size:14px;line-height:20px;background:var(--sh-popover);color:var(--sh-foreground);border:1px solid var(--sh-border);border-radius:var(--r-lg);box-shadow:var(--ombre-md);pointer-events:none;animation:hc-entre .12s ease-out}
.hc-t{font-weight:600}
.hc-l{display:flex;align-items:flex-start;gap:8px;color:var(--sh-muted-foreground)}
.hc-l .ms{font-size:16px;flex:0 0 16px;margin-top:2px}
.hc-l>span:not(.ms){color:var(--sh-foreground);min-width:0}
.hc-p{display:flex;flex-wrap:wrap;gap:6px}
.hc-pied{margin-top:2px;padding-top:6px;border-top:1px solid var(--sh-border);color:var(--sh-muted-foreground)}
@keyframes hc-entre{from{opacity:0;transform:translateY(-2px)}to{opacity:1;transform:none}}
/* Tiroir du bas sur téléphone (Drawer, § 9.3) : le volet monte du bas sous 640 px ; fenêtres centrées et planning inchangés */
@keyframes ui-tiroir{from{transform:translateY(100%)}to{transform:none}}
@media (max-width:639px){
  body:not([data-ecran^="planning_"]) .voile:not(.centre):not(.ecran){align-items:flex-end}
  body:not([data-ecran^="planning_"]) .voile:not(.centre):not(.ecran)>.panneau:not(.en-ligne){position:relative;width:100%!important;max-width:100%;height:auto;max-height:92dvh;border-left:0;border-top:1px solid var(--sh-border);border-radius:16px 16px 0 0;padding-bottom:max(16px,env(safe-area-inset-bottom));animation:ui-tiroir .5s cubic-bezier(.32,.72,0,1)}
  body:not([data-ecran^="planning_"]) .voile:not(.centre):not(.ecran)>.panneau:not(.en-ligne)::before{content:"";position:absolute;top:6px;left:50%;z-index:5;width:48px;height:4px;margin-left:-24px;border-radius:999px;background:var(--sh-border)}
}
@media (prefers-reduced-motion:reduce){.hc-carte,.voile>.panneau{animation-duration:.01ms!important}}

/* Réglette (Slider shadcn, 03/11) : <input type="range" class="ui-reglette">, partie remplie selon --p (posée par le script).
   Piste 6 px (teinte des champs, plus lisible que muted sur une carte blanche), partie remplie primary, pouce 16 px rond bordé de primary, anneau au survol et au clavier. */
input[type=range].ui-reglette{-webkit-appearance:none;appearance:none;width:100%;height:16px;margin:0;padding:0;border:0;background:transparent;box-shadow:none;cursor:pointer;--p:50%}
input[type=range].ui-reglette:focus{outline:none;box-shadow:none}   /* l’anneau va sur le pouce, pas autour de la piste */
.ui-reglette::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:linear-gradient(to right,var(--sh-primary) var(--p),var(--sh-input) var(--p))}
.ui-reglette::-moz-range-track{height:6px;border-radius:999px;background:var(--sh-input)}
.ui-reglette::-moz-range-progress{height:6px;border-radius:999px;background:var(--sh-primary)}
.ui-reglette::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;margin-top:-5px;border-radius:50%;box-sizing:border-box;border:1px solid var(--sh-primary);background:var(--sh-card);box-shadow:var(--ombre-sm);transition:box-shadow .15s}
.ui-reglette::-moz-range-thumb{width:16px;height:16px;border-radius:50%;box-sizing:border-box;border:1px solid var(--sh-primary);background:var(--sh-card);box-shadow:var(--ombre-sm);transition:box-shadow .15s}
.ui-reglette:hover::-webkit-slider-thumb,.ui-reglette:focus-visible::-webkit-slider-thumb{box-shadow:var(--ombre-sm),0 0 0 4px rgb(142 153 189 / .45)}
.ui-reglette:hover::-moz-range-thumb,.ui-reglette:focus-visible::-moz-range-thumb{box-shadow:var(--ombre-sm),0 0 0 4px rgb(142 153 189 / .45)}
.ui-reglette:disabled{opacity:.5;cursor:default}
/* 04/11 — Un filtre ne fait plus bouger la page (retour de la direction : « lorsque l'on fait certains filtres, la page bouge de
   quelques pixels »). 1) Commandes posées en ligne (groupes de boutons, puces, pastilles) : même graisse au repos et active, comme
   les Tabs et Toggle Group de shadcn ; l'état actif se lit au fond et à la couleur, sinon le bouton choisi s'élargit et pousse ses
   voisins. Les menus verticaux gardent leur gras (rien ne bouge à côté). 2) Chiffres qui changent avec le filtre (compteurs,
   « Page 1 sur 34 ») en chasse fixe. 3) Bouton dont le libellé change (Confortable / Compact) : largeur du plus long. */
.seg-vue button,.ctl-seg button,.nv-seg button,.seg-theme button,.eq-filtres button,.rg-cl,.nr-chip,.mn-pill{font-weight:500}
.so-n,.doc-pagenum,.sh-pag-droite,.onglets .petit,.seg-vue .petit{font-variant-numeric:tabular-nums}
#ech-dens{min-width:130px;justify-content:center}
/* (cockpit.css arrive après ui.css : sélecteurs renforcés par « body ») */
body .lc-ff.actif .lc-ff-v{font-weight:inherit}
body .lc-pa-pill,body button.lc-pa-pill{font-weight:500}
/* Liste déroulante shadcn (selectShadcn) : le libellé le plus long des options est réservé, invisible, sous la valeur choisie,
   pour que le bouton garde sa largeur quand on change de valeur (comme une liste native). */
.sel-lib{display:inline-grid;min-width:0}
.sel-lib>span,.sel-lib::after{grid-area:1/1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sel-lib::after{content:attr(data-fantome);visibility:hidden;height:0;pointer-events:none}
/* Compteurs d'un groupe de boutons « (613) » → « (0) » : place réservée, le groupe voisin ne bouge plus.
   Barre d'outils des listes : bascule Liste / Cartes et recherche à gauche, actions à droite (comme la table de shadcn) ;
   les boutons propres à la vue Liste (Colonnes, Archives) apparaissent à droite sans déplacer la bascule. */
.seg-vue .so-n{display:inline-block;min-width:5ch;text-align:left}
.ba-outils .chip-search{margin-right:auto}
/* Onglets d'une entrée placés sous la ligne du titre (charte § 4, 04/11) : l'espace au-dessus vient du titre, pas des onglets. */
#app nav.nv-onglets.nv-onglets-sous{margin-top:0}   /* plus fort que le rythme vertical « space-y-4 » ci-dessus */
#app nav.nv-onglets.nv-onglets-attente{display:none}   /* 13/11 : en attendant le titre de la page (app.js, placerOngletsEntree) */
#app main > nav.onglets.nv-onglets-attente + :not(script,style,template,.cache,.menu-flot,input[type="file"],[hidden]){margin-top:0}   /* 14/11 : pas de marge sous des onglets encore cachés (Équipements remontait de 18 px) */
/* 08/11 (direction : « léger bug d'affichage ») : les onglets d'un écran ne touchent jamais ce qui suit (filtres, carte) — rythme « space-y-4 » */
#app main > nav.onglets + :not(script,style,template,.cache,.menu-flot,input[type="file"],[hidden]){margin-top:16px}
/* 08/11 (revue charte shadcn) : le bouton main de la grille des tuiles, posé dans l'en-tête à côté de boutons de 36 px, prend la même hauteur (jamais 32 et 36 sur une ligne) */
.entete-actions .lc-btn.lc-btn-main{height:36px;min-width:36px}

/* Info-bulle des graphiques (ChartTooltipContent shadcn) — habillage commun cockpit/graphes.js, charte des widgets v3 § 3 ter (05/11) */
.sh-tip { display: grid; min-width: 8rem; align-items: start; gap: 6px; border: 1px solid color-mix(in srgb, var(--sh-border) 50%, transparent); background: var(--sh-popover, var(--sh-card)); color: var(--sh-foreground);
  border-radius: 8px; padding: 6px 10px; font: 12px/1.33 Inter, system-ui, sans-serif; box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); }
.sh-tip-t { font-weight: 500; }
.sh-tip-l { display: flex; align-items: center; gap: 8px; }
.sh-tip-i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.sh-tip-n { color: var(--sh-muted-foreground); flex: 1; white-space: nowrap; }
.sh-tip-v { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 500; font-variant-numeric: tabular-nums; margin-left: 12px; white-space: nowrap; }
.sh-tip-n:empty + .sh-tip-v { margin-left: 0; }

/* ===== 09/11 (charte shadcn, lot 2 de l'audit) : Paramètres › Fonctions, boutons de la charte au lieu des pilules de 40 px ===== */
.btn.fxd-pill{border-radius:var(--r-md);height:36px;padding:0 16px;font-weight:500;background:var(--sh-primary);border:1px solid var(--sh-primary);color:var(--sh-primary-foreground)}
.btn.fxd-pill:hover{background:var(--sh-primary);opacity:.9}
.btn.clair.fxd-pill{background:var(--sh-background);color:var(--sh-foreground);border:1px solid var(--sh-border)}
.btn.clair.fxd-pill:hover{background:var(--sh-accent);opacity:1}
.btn.fxd-pill.petit{height:32px;padding:0 12px;font-size:14px}
/* l'encart garde son fond crème dans les deux thèmes : ses textes restent foncés (couleurs d'origine) */
.fxv-pied b{color:var(--sh-foreground)}
.fxd .btn.fxd-pill{background:#23305e;border-color:#23305e;color:#fff}
.fxd .btn.clair.fxd-pill{background:#fff;color:#23305e;border-color:rgba(35,48,94,.25)}
.fxd .btn.clair.fxd-pill:hover{background:#f3f4f8}
.vi-prop-acc{color:var(--sh-foreground)}
/* ===== Thème sombre : surfaces et pastilles écrites en dur (Fonctions, éditeur des tableaux de bord, Trajets, Visuels) ===== */
html[data-theme="sombre"] :is(.fxv-carte,.fx-carte.decouvrir){background:var(--sh-card);border-color:var(--sh-border)}
html[data-theme="sombre"] .fx-carte.decouvrir :is(.fx-t b,p){color:var(--sh-foreground)}
html[data-theme="sombre"] :is(.tbe-cadre,.tv-archive,.tg-ap){background:var(--sh-accent);border-color:var(--sh-border)}
html[data-theme="sombre"] .tg-ap i{background:var(--sh-card);border-color:var(--sh-border)}
html[data-theme="sombre"] .tg-ap i:is(.w2,.w4){background:var(--sh-border);border-color:var(--sh-border)}
html[data-theme="sombre"] :is(.tbe-mode,.tg-p.mod){color:#f3c56b}
html[data-theme="sombre"] .tg-p.arch{color:var(--sh-muted-foreground)}
html[data-theme="sombre"] .tg-p.corb{color:#f19999}
html[data-theme="sombre"] .tg-p.moi{color:#7fd1a5}
html[data-theme="sombre"] .tg-p.compte{color:#8cb8ef}
html[data-theme="sombre"] .tg-p.logi{color:#c3a6ef}
html[data-theme="sombre"] :is(.tbe-mode,.tg-p.mod,.tg-p.arch,.tg-p.corb,.tg-p.moi,.tg-p.compte,.tg-p.logi){background:color-mix(in srgb,currentColor 14%,transparent);border-color:color-mix(in srgb,currentColor 35%,transparent)}
html[data-theme="sombre"] :is(.trc-ml.sel,.trc-ml-r:has(.trc-ml.sel)){background:var(--sh-accent)}
html[data-theme="sombre"] .trc-ml-r:has(.trc-ml-c:checked):not(:has(.trc-ml.sel)){background:color-mix(in srgb,var(--sh-accent) 60%,transparent)}
html[data-theme="sombre"] .trc-mi.fin_probable{background:color-mix(in srgb,#f3c56b 12%,transparent);border-color:color-mix(in srgb,#f3c56b 40%,transparent)}
html[data-theme="sombre"] .trc-mi.fin_probable>.ms{color:#f3c56b}
html[data-theme="sombre"] .trc-mi.en_cours{background:color-mix(in srgb,#7cc4e8 12%,transparent);border-color:color-mix(in srgb,#7cc4e8 40%,transparent)}
html[data-theme="sombre"] .trc-mi.en_cours>.ms{color:#7cc4e8}
html[data-theme="sombre"] .trc-mi.non_venu{background:color-mix(in srgb,#f19999 12%,transparent);border-color:color-mix(in srgb,#f19999 40%,transparent)}
html[data-theme="sombre"] .trf-c.trou{background:transparent;border-color:var(--sh-muted-foreground)}
html[data-theme="sombre"] :is(.vi-badge,.vi-b-arch,.vi-b-cib){background:var(--sh-accent);color:var(--sh-foreground)}
html[data-theme="sombre"] .vi-b-al{background:color-mix(in srgb,#f3c56b 14%,transparent);color:#f3c56b}
html[data-theme="sombre"] .vi-b-sujet{background:color-mix(in srgb,#7fd1a5 14%,transparent);color:#7fd1a5}

/* 09/11 (lot 3, GRID) : tuile cliquable de grilleTuiles — lien ou filtre à état */
:is(a,button).al-kpi.lien{display:block;width:100%;text-align:left;font:inherit;color:inherit;text-decoration:none;cursor:pointer;background:var(--sh-card);transition:border-color .15s,box-shadow .15s}
:is(a,button).al-kpi.lien:hover{border-color:var(--sh-ring)}
:is(a,button).al-kpi.lien:focus-visible{outline:none;box-shadow:var(--anneau)}
button.al-kpi.lien.sel{border-color:var(--sh-primary);box-shadow:var(--anneau)}

/* 09/11 : Fonctions et accès par client — l'en-tête reste figé au défilement. La carte est le cadre de défilement (hauteur ajustée
   à l'écran par app.js, largeur pour les nombreuses colonnes) ; sans marge propre, les cellules de bord gardent 16 px jusqu'aux bordures. */
#mod-corps:has(> table.mat){padding:0;overflow:auto;overscroll-behavior:contain}
#mod-corps > table.mat{width:100%;border-collapse:separate;border-spacing:0}
#mod-corps > table.mat thead th{position:sticky;top:0;z-index:2;background:var(--sh-card);border-bottom:0;box-shadow:inset 0 -1px 0 var(--sh-border);padding-top:12px;padding-bottom:10px;height:auto}
#mod-corps > table.mat :is(th,td):first-child{padding-left:16px}
#mod-corps > table.mat :is(th,td):last-child{padding-right:16px}
#mod-corps > table.mat tbody tr:last-child > td{padding-bottom:12px}

/* 09/11 : Production › en-tête des vues (Recettes, Besoins & courses, Production du jour) — la règle générale input/select
   { width:100% } (espace.css) faisait prendre toute la ligne aux dates, à la liste et à la recherche : l'en-tête tient sur une ligne
   (charte § 4), champs à la hauteur des petits boutons. #app : passer devant la règle des champs d'ui.css (spécificité 0,5,1). */
#app .prd-tete .ba-outils>input:not([type=checkbox]):not([type=radio]),#app .prd-tete .ba-outils>select{width:auto;flex:0 0 auto;height:32px;margin:0;padding-top:0;padding-bottom:0}
#app .prd-tete .ba-outils>input.dt-champ:not([type=checkbox]){width:14.5em;min-width:0}
#app .prd-tete .ba-outils>select{max-width:220px}
#app .prd-tete .ba-outils>label{display:inline;margin:0;white-space:nowrap}
#app .prd-tete .ba-outils .chip-search{flex:0 1 280px}
/* 09/11 : Stock › emplacements d'un site — Modifier et Archiver côte à côte (les .btn-icone sont des blocs : ils s'empilaient). */
.stk-acts{display:inline-flex;align-items:center;gap:2px;vertical-align:middle}
/* 09/11 : Stock › réception — lecture IA de la facture (1127) : état de la lecture, lignes à choisir encadrées */
.sg-ia{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0;padding:8px 12px;border-radius:var(--r-md);border:1px solid var(--sh-border);background:var(--sh-card);font-size:14px}
.sg-ia .ms{font-size:16px}
.sg-ia-ok{border-color:var(--sh-vert,#16a34a)}.sg-ia-err{border-color:var(--sh-destructive);color:var(--sh-destructive)}
#app .sg-ia-choisir .sg-art:not([type=checkbox]),.voile .sg-ia-choisir .sg-art:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]){border-color:var(--sh-orange,#f59e0b);box-shadow:0 0 0 1px var(--sh-orange,#f59e0b)}
/* 09/11 : Production › mode cuisine (R4) — plein écran tactile sur la tablette partagée : zones de 56 px au moins, texte lisible à
   un mètre ; sous les volets (.voile, z-index 80) pour que « Produire » et « Décider » s'ouvrent par-dessus. */
.cui{position:fixed;inset:0;z-index:75;display:flex;flex-direction:column;background:var(--sh-background);color:var(--sh-foreground);font-size:18px}
.cui-haut{display:flex;align-items:center;gap:16px;padding:12px 20px;border-bottom:1px solid var(--sh-border);background:var(--sh-card);flex:none}
.cui-titre{display:flex;align-items:center;gap:10px;font-size:20px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cui-titre .ms{font-size:24px;color:var(--sh-primary)}
.cui-agent{display:flex;align-items:center;gap:10px}
.cui-qui{display:inline-flex;align-items:center;gap:8px;font-weight:600;padding:8px 14px;border-radius:var(--r-md);background:var(--sh-accent)}
.cui-heure{font-variant-numeric:tabular-nums;font-size:20px;font-weight:600;min-width:4ch;text-align:right}
.cui .btn{min-height:48px;font-size:17px;padding:0 18px}
.cui-corps{flex:1;overflow:auto;padding:20px 24px 40px}
.cui-gros-ic{font-size:56px;color:var(--sh-muted-foreground)}
.cui-verrou{max-width:420px;margin:24px auto;text-align:center}
.cui-verrou h1{font-size:30px;margin:8px 0}
.cui-verrou p{color:var(--sh-muted-foreground);margin:0 0 16px;font-size:18px}
#app .cui-code:not([type=checkbox]){width:100%;height:64px;font-size:36px;text-align:center;letter-spacing:10px;margin:0 0 16px;background:var(--sh-card)}
.cui-pave{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.cui-touche{height:72px;border-radius:var(--r-lg,12px);border:1px solid var(--sh-border);background:var(--sh-card);font-size:28px;font-weight:600;color:var(--sh-foreground);cursor:pointer;touch-action:manipulation}
.cui-touche:active{background:var(--sh-accent)}
.cui-t2{font-size:18px}
.cui-ok{background:var(--sh-primary);color:var(--sh-primary-foreground);border-color:var(--sh-primary)}
.cui-verrou .cui-err{min-height:1.4em;margin-top:12px;color:var(--sh-destructive);font-weight:600}
.cui-vide{text-align:center;margin:60px auto;color:var(--sh-muted-foreground)}
.cui-formule{font-size:22px;margin:8px 0 12px}
.cui-formule span{font-size:16px;font-weight:400;color:var(--sh-muted-foreground)}
.cui-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin-bottom:24px}
.cui-plat{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:150px;padding:18px;text-align:left;border:2px solid var(--sh-border);border-radius:var(--r-lg,12px);background:var(--sh-card);color:var(--sh-foreground);cursor:pointer;touch-action:manipulation}
.cui-plat:active{background:var(--sh-accent)}
.cui-plat-nom{font-size:22px;font-weight:600;line-height:1.2}
.cui-plat-reg{font-size:16px;color:var(--sh-muted-foreground)}.cui-plat-n{font-size:20px;margin-top:auto}
.cui-plat-etat{font-size:16px;font-weight:600}
.cui-fait{border-color:var(--sh-vert,#16a34a)}.cui-fait .cui-plat-etat,.cui-plat-etat.cui-fait{color:var(--sh-vert-fonce,#15803d)}
.cui-manque{border-color:var(--sh-orange,#f59e0b)}.cui-manque .cui-plat-etat,.cui-plat-etat.cui-manque{color:var(--sh-orange-fonce,#b45309)}
.cui-quar{border-color:var(--sh-destructive)}.cui-quar .cui-plat-etat,.cui-plat-etat.cui-quar{color:var(--sh-destructive)}
.cui-plat-tete{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.cui-plat-tete>div{flex:1;min-width:240px}
.cui-plat-tete h1{font-size:30px;margin:0 0 6px}
.cui-plat-tete p{margin:0;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.cui .cui-produire{min-height:64px;font-size:20px}
.cui-alerte{display:flex;align-items:center;gap:12px;padding:12px 16px;margin:0 0 12px;border-radius:var(--r-md);border:1px solid var(--sh-destructive);color:var(--sh-destructive);background:var(--sh-card)}
.cui-alerte>span:nth-child(2){flex:1}
.cui-pour{margin:0 0 16px;font-size:18px}
.cui .pastille{font-size:14px;padding:3px 10px}
.cui-etape{border:1px solid var(--sh-border);border-radius:var(--r-lg,12px);background:var(--sh-card);padding:16px 18px;margin:0 0 14px}
.cui-etape h3{display:flex;align-items:center;gap:12px;font-size:22px;margin:0 0 8px}
.cui-num{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--sh-primary);color:var(--sh-primary-foreground);font-size:18px;flex:none}
.cui-critique{border-color:var(--sh-orange,#f59e0b);border-width:2px}
.cui-crit{display:flex;align-items:center;gap:8px;font-weight:600;font-size:18px;color:var(--sh-orange-fonce,#b45309);margin:0 0 8px}
.cui-consigne{margin:0 0 10px;white-space:pre-line;font-size:19px;line-height:1.45}
/* 1405 : consignes du PMS sur la tablette (lecture au badge) et rappels d'étape : pages dessinées telles quelles */
.cui-rappels{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 12px}
.cui-rappel{display:flex;flex-direction:column;gap:6px;align-items:stretch;max-width:100%;padding:8px;border:1px solid var(--sh-border);border-radius:12px;background:var(--sh-card);cursor:zoom-in;text-align:left;min-height:56px}
.cui-rappel-t{display:flex;align-items:center;gap:6px;font-weight:600;font-size:16px}
.cui-rappel img{display:block;width:100%;max-width:640px;max-height:320px;object-fit:contain;object-position:top left;border-radius:6px}
.cui-cs{max-width:1140px;margin:0 auto}
.cui-cs-tete{display:flex;align-items:center;gap:10px;font-size:19px;margin:0 0 8px}
.cui-cs-pages{display:flex;flex-direction:column;gap:12px;margin:0 0 14px}
.cui-cs-page{display:block;width:100%;max-width:1100px;height:auto;border:1px solid var(--sh-border);border-radius:8px;background:#fff}
.cui-og-n{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;margin-left:4px;border-radius:11px;background:var(--sh-orange);color:#fff;font-size:13px;font-weight:700}
.rp-choix{display:flex;flex-direction:column;gap:10px;max-height:60vh;overflow:auto}
.rp-cs{border:1px solid var(--sh-border);border-radius:10px;padding:8px 12px;width:100%;box-sizing:border-box}
.rp-cs{display:flex;flex-direction:column;gap:4px}
.rp-cs-t{margin:0 0 2px;font-weight:600}
.cs-bloc-pdf{display:block;width:100%;height:70vh;border:1px solid var(--sh-border);border-radius:8px;background:#fff}
/* 1420 : prise de poste, plat témoin, changement de poste, départs (tablette) */
.cui-pp{display:flex;flex-direction:column;gap:10px;margin:8px 0 6px}
.cui-pp-c{display:flex;align-items:center;gap:14px;min-height:64px;padding:10px 14px;border:2px solid var(--sh-border);border-radius:14px;background:var(--sh-card);cursor:pointer;font-size:19px}
.cui-pp-c input{width:30px;height:30px;flex:none;accent-color:var(--sh-vert)}
.cui-pp-c .ms{font-size:30px;color:var(--sh-muted-foreground)}
.cui-pp-c small{display:block;font-size:15px;color:var(--sh-muted-foreground);font-weight:400}
.cui-pp-c.coche{border-color:var(--sh-vert);background:color-mix(in srgb,var(--sh-vert) 8%,var(--sh-card))}
.cui-tm,.cui-poste{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px;padding:12px 14px;border:2px dashed var(--sh-orange);border-radius:14px;font-size:17px}
.cui-tm>span:nth-child(2),.cui-poste>span:nth-child(2){flex:1 1 260px}
.cui-tm small,.cui-poste small{display:block;font-size:15px;color:var(--sh-muted-foreground)}
.cui-tm .ms,.cui-poste .ms{font-size:28px}
.cui-tm-ok{border-style:solid;border-color:var(--sh-vert)}
.cui-poste{border-style:solid;border-color:var(--sh-border);background:var(--sh-muted)}
.cui-dep{margin:0 0 14px}
.cui-dep-t{display:flex;align-items:center;gap:8px;font-size:18px;margin:0 0 6px}
.cui-ings{list-style:none;margin:0;padding:0}
.cui-ings li{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid var(--sh-border);font-size:20px}
.cui-ings li:first-child{border-top:0}
.cui-ings b{font-variant-numeric:tabular-nums;white-space:nowrap}
.cui-ings li.cui-ing-manque{color:var(--sh-orange-fonce,#b45309)}
.cui-ings small{font-size:15px}
/* 09/11 : Production › hygiène (1125) — onglet de Production du jour, volet de relevé, et sur la tablette (mode cuisine) */
.hy-liste{list-style:none;margin:0;padding:0}
.hy-liste li{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 0;border-top:1px solid var(--sh-border)}
.hy-liste li:first-child{border-top:0}
.hy-etat{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hy-reg{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#app .hy-reg input:not([type=checkbox]):not([type=radio]){width:auto;flex:0 0 auto;height:32px;margin:0}#app .hy-reg input.dt-champ:not([type=checkbox]){width:11em;min-width:0}#app .hy-reg label{margin:0}
.hy-grille{display:flex;gap:12px 20px;flex-wrap:wrap;margin:0 0 10px}.hy-grille>div{display:flex;flex-direction:column;gap:2px}
/* 09/11 : volet de relevé de température refait (direction : « ça va vraiment pas là ») — moment en contrôle segmenté, un bloc de saisie
   pleine largeur (signe · valeur · °C, 56 px), verdict immédiat ; hauteurs et rayons de la charte (shadcn) */
.hy-champ{display:flex;flex-direction:column;gap:6px;margin:16px 0 0}.voile .hy-champ .hy-lib{margin:0}
.hy-lib{font-size:14px;line-height:20px;font-weight:500;color:var(--sh-foreground)}
.hy-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:var(--r-md);background:var(--sh-muted)}
.hy-seg button{height:36px;border:0;border-radius:calc(var(--r-md) - 2px);background:transparent;color:var(--sh-muted-foreground);font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.hy-seg button.sel{background:var(--sh-card);color:var(--sh-foreground);box-shadow:var(--ombre-xs)}
.hy-temp{display:flex;align-items:stretch;height:56px;border:1px solid var(--sh-input);border-radius:var(--r-md);background:var(--sh-card);box-shadow:var(--ombre-xs);overflow:hidden}
.hy-temp:focus-within{border-color:var(--sh-ring);box-shadow:var(--anneau)}
.hy-signe{flex:0 0 56px;border:0;border-right:1px solid var(--sh-border);background:var(--sh-muted);color:var(--sh-foreground);font:inherit;font-size:26px;font-weight:600;cursor:pointer;touch-action:manipulation}
.hy-signe.neg{color:var(--sh-primary)}
.voile .hy-temp .hy-rel-v:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]){flex:1;min-width:0;width:auto;height:100%;margin:0;padding:0 12px;border:0;border-radius:0;box-shadow:none;background:transparent;font-size:28px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
.voile .hy-temp .hy-rel-v::placeholder{color:var(--sh-muted-foreground);opacity:.45;font-weight:500}
.hy-unite{flex:0 0 auto;display:flex;align-items:center;padding:0 16px;font-size:18px;color:var(--sh-muted-foreground);border-left:1px solid var(--sh-border)}
.hy-verdict{min-height:20px;margin:0;font-size:14px;font-weight:500;color:var(--sh-muted-foreground)}
.hy-verdict.ok{color:var(--sh-vert-fonce,#15803d)}.hy-verdict.ko{color:var(--sh-destructive)}
.hy-chips{display:flex;gap:6px;flex-wrap:wrap;margin:0}
.hy-nw{white-space:nowrap}.hy-champ[hidden]{display:none}.hy-seg.hy-seg2{grid-template-columns:repeat(2,1fr)}   /* 1132 */
.cui [hidden]{display:none!important}   /* 1129 : Quitter caché tant qu'aucun agent n'est badgé */
.cui-onglets{display:flex;gap:6px}
.cui-og{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 16px;border-radius:var(--r-md);border:1px solid var(--sh-border);background:var(--sh-card);color:var(--sh-foreground);font-size:17px;font-weight:600;cursor:pointer;touch-action:manipulation}
.cui-og.sel{background:var(--sh-primary);color:var(--sh-primary-foreground);border-color:var(--sh-primary)}
.cui-taches{list-style:none;margin:0 0 24px;padding:0;display:flex;flex-direction:column;gap:10px}
.cui-taches li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border:2px solid var(--sh-border);border-radius:var(--r-lg,12px);background:var(--sh-card);font-size:20px}
.cui-taches li.cui-fait{border-color:var(--sh-vert,#16a34a)}.cui-taches li.cui-manque{border-color:var(--sh-orange,#f59e0b)}
.cui-taches small{font-size:15px;color:var(--sh-muted-foreground)}
.cui-plat:disabled{opacity:.6;cursor:default}
@media (max-width:700px){.cui{font-size:16px}.cui-haut{flex-wrap:wrap;padding:10px 12px}.cui-titre{flex-basis:100%}.cui-agent{margin-right:auto}.cui-onglets{flex-basis:100%}.cui-og{flex:1;justify-content:center}.cui-corps{padding:14px 12px 32px}.cui-plat-tete h1{font-size:24px}}
/* 09/11 : mode cuisine — refonte UX (direction : « pour les agents plus d'icônes, personnes pas familiarisées avec le numérique ») :
   un pictogramme par plat, par état et par type d'étape ; déroulé « une étape / tout voir » (retenu sur la tablette) ; grande case
   par ingrédient (aide visuelle, rien d'enregistré) ; cibles de 56 px au moins ; couleurs lisibles en clair et en sombre. */
.cui .btn .ms{font-size:20px}
.cui-logo{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;border-radius:10px;background:var(--sh-primary);color:var(--sh-primary-foreground)}
.cui-titre .cui-logo .ms{font-size:24px;color:inherit}
.cui-titre-t{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.cui-titre-t b{overflow:hidden;font-size:20px;text-overflow:ellipsis;white-space:nowrap}
.cui-titre-t small{overflow:hidden;font-size:15px;color:var(--sh-muted-foreground);text-overflow:ellipsis;white-space:nowrap}
.cui-qui{padding:4px 14px 4px 4px;border-radius:999px}
.cui-avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;border-radius:50%;background:var(--sh-primary);color:var(--sh-primary-foreground);font-size:14px;font-weight:700}
.cui-og .ms{font-size:22px}
@media (max-width:1180px){.cui-txt{display:none}#cui-quitter{width:48px;padding:0;justify-content:center}}
.cui-pic{display:inline-flex;align-items:center;justify-content:center;flex:none;width:56px;height:56px;border-radius:14px}
.cui-pic .ms{font-size:30px}
.cui-pic.grand{width:72px;height:72px;border-radius:18px}.cui-pic.grand .ms{font-size:38px}
.cui-c-rouge{background:rgba(220,38,38,.12);color:#dc2626}.cui-c-bleu{background:rgba(37,99,235,.12);color:#2563eb}.cui-c-violet{background:rgba(124,58,237,.12);color:#7c3aed}
.cui-c-vert{background:rgba(22,163,74,.12);color:#16a34a}.cui-c-ambre{background:rgba(217,119,6,.14);color:#d97706}.cui-c-rose{background:rgba(219,39,119,.12);color:#db2777}
.cui-c-gris{background:var(--sh-muted);color:var(--sh-foreground)}
.cui-plat{gap:12px;min-height:200px}
.cui-plat-haut{display:flex;align-items:center;gap:14px;width:100%}
.cui-plat-reg{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.cui-plat-reg .ms{font-size:18px}
.cui-plat-bas{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-top:auto}
.cui-plat-bas .cui-plat-n{margin:0}.cui-plat-n b{font-size:32px;line-height:1}
.cui-plat-etat{display:inline-flex;align-items:center;gap:6px}.cui-plat-etat .ms{font-size:24px}
.cui-afaire .cui-plat-etat{color:var(--sh-primary)}
.cui-prog{display:block;width:100%;height:10px;border-radius:5px;background:var(--sh-muted);overflow:hidden}
.cui-prog i{display:block;height:100%;border-radius:5px;background:var(--sh-vert,#16a34a)}
.cui-plat-det{font-size:15px;color:var(--sh-muted-foreground)}
.cui-formule span .ms{font-size:18px;margin-right:4px;vertical-align:-3px}
.cui-tache-t{flex:1;min-width:0}
.cui-taches li .cui-pic{width:48px;height:48px;border-radius:12px}.cui-taches li .cui-pic .ms{font-size:26px}
.cui-touche{display:inline-flex;align-items:center;justify-content:center;gap:8px}.cui-touche .ms{font-size:22px}
.cui-verrou .cui-pic{margin:0 auto 8px}
/* 1905 (20/11) : écran cuisine « Qui travaille ? » — badge, ou nom puis code (plus de code tapé seul) */
.cui-verrou-noms{max-width:760px}
#app .cui-recherche{width:100%;max-width:420px;height:52px;font-size:20px;margin:0 auto 14px;display:block}
.cui-noms{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;text-align:left}
.cui-nom{min-height:64px;padding:10px 14px;border-radius:var(--r-lg,12px);border:1px solid var(--sh-border);background:var(--sh-card);color:var(--sh-foreground);font-size:18px;cursor:pointer;touch-action:manipulation;display:flex;flex-direction:column;justify-content:center;gap:2px}
.cui-nom small{font-size:14px;color:var(--sh-muted-foreground)}
.cui-nom-plan{border-color:var(--accent-bord,var(--sh-border))}
.cui-nom:active{background:var(--sh-accent)}
.cui-verrou .cui-pas-moi{margin-top:16px}
/* un plat */
.cui-plat-tete{align-items:center}
.cui-plat-tete-t{flex:1;min-width:240px}
.cui .cui-retour{min-height:56px}
.cui-outils{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin:0 0 16px}
.cui-pour,.cui-all{display:flex;align-items:center;gap:8px;margin:0;font-size:19px}
.cui-pour .ms{font-size:24px;color:var(--sh-muted-foreground)}
.cui-all{color:var(--sh-orange-fonce,#b45309)}.cui-all .ms{font-size:24px}
.cui-seg{display:inline-flex;gap:4px;margin-left:auto;padding:4px;border-radius:12px;background:var(--sh-muted)}
.cui-seg button{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 16px;border:0;border-radius:9px;background:transparent;color:var(--sh-foreground);font-size:17px;font-weight:600;cursor:pointer;touch-action:manipulation}
.cui-seg button.sel{background:var(--sh-card);box-shadow:0 1px 2px rgba(16,24,40,.12)}
.cui-seg .ms{font-size:22px}
.cui-points{display:flex;gap:6px;margin:0 0 12px}
.cui-points i{flex:1;height:8px;border-radius:4px;background:var(--sh-muted)}
.cui-points i.fait{background:var(--sh-vert,#16a34a)}.cui-points i.en{background:var(--sh-primary)}
.cui-etape-t{display:flex;align-items:center;gap:14px;margin:0 0 12px}
.cui-etape-t h3{flex:1;margin:0;font-size:26px;line-height:1.2}
.cui-etape .cui-num{width:44px;height:44px;font-size:22px}
.cui-pic-et{display:inline-flex;align-items:center;justify-content:center;flex:none;width:56px;height:56px;border-radius:14px;background:var(--sh-muted);color:var(--sh-foreground)}
.cui-pic-et .ms{font-size:30px}
.cui-sur{font-size:17px;color:var(--sh-muted-foreground);white-space:nowrap}
.cui .cui-crit{display:flex;align-items:center;gap:14px;margin:0 0 12px;padding:12px 16px;border-radius:12px;background:rgba(245,158,11,.12);color:var(--sh-orange-fonce,#b45309);font-weight:400}
.cui .cui-crit .ms{font-size:34px}
.cui-crit b{display:block;font-size:24px}
.cui-crit small{display:block;font-size:16px;font-weight:500}
.cui .cui-ings li{display:block;padding:0;border-top:1px solid var(--sh-border)}
.cui .cui-ings li:first-child{border-top:0}
#app .cui-ing{display:flex;align-items:center;gap:16px;min-height:64px;margin:0;padding:8px 4px;font-size:21px;font-weight:400;cursor:pointer;touch-action:manipulation}
#app .cui-ing input{width:32px!important;height:32px!important;min-width:32px;margin:0;border-width:2px;border-radius:8px}
#app .cui-ing input:checked{background:var(--sh-vert,#16a34a);border-color:var(--sh-vert,#16a34a)}
#app .cui-ing input:checked::before{width:22px;height:22px}
.cui-ing-n{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.cui-ing-n small{display:inline-flex;align-items:center;gap:4px;font-size:16px;color:var(--sh-orange-fonce,#b45309)}
.cui-ing b{font-size:26px;font-variant-numeric:tabular-nums;white-space:nowrap}
.cui-ing.coche .cui-ing-n,.cui-ing.coche b{color:var(--sh-muted-foreground);text-decoration:line-through}
.cui-ing.cui-ing-manque .cui-ing-n{color:var(--sh-orange-fonce,#b45309)}
.cui-nav{display:flex;gap:12px;margin-top:16px}
.cui-nav [hidden]{display:none}
.cui .cui-gros{flex:1;justify-content:center;min-height:64px;font-size:20px}
.cui .cui-gros .ms{font-size:24px}
@media (max-width:700px){.cui-seg{margin-left:0}.cui-etape-t h3{font-size:22px}.cui-pic-et{width:48px;height:48px}.cui-nav{flex-direction:column-reverse}.cui-pic.grand{width:56px;height:56px}}

/* 09/11 : Production › fiche recette en schéma vivant (R2, migration 1120) — étapes de haut en bas, débit de matière entre elles,
   ingrédients en puces dont la barre suit le poids, liste des ingrédients à droite en édition (glisser ou cliquer puis cliquer l’étape). */
.prv-reg-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:4px 16px;margin-top:12px}
.prv-q{width:84px;height:28px;text-align:right}
/* 09/11 : Production › fiche recette — refonte UX (direction : « charte shadcn stricte, alignement au pixel, PC et tablette ») :
   en-tête à une action + ☰, tuiles, réglages en grille de 4 colonnes (libellés sur une ligne), puces à case, schéma aux colonnes
   fixes (nom · barre · quantité · boutons), liste des ingrédients à droite, cartes + rail de barrettes (charte v1.37). Classes prv-*. */
.prv-page>.entete{margin-bottom:16px}
.prv-soustitre{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;min-height:22px;font-size:14px;line-height:20px;color:var(--sh-muted-foreground)}
.prv-soustitre a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.prv-etat{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;background:var(--sh-card);border:1px solid var(--sh-border);border-radius:var(--r-lg,12px);padding:12px 16px;margin:0 0 16px}
.prv-pas-liste{display:flex;align-items:center;gap:4px}
.prv-pas{display:inline-flex;align-items:center;height:24px;padding:0 10px;font-size:13px;border-radius:999px;border:1px solid var(--sh-border);color:var(--sh-muted-foreground);white-space:nowrap}
.prv-pas.actif{border-color:var(--sh-primary);color:var(--sh-foreground);font-weight:600}
.prv-sep{font-size:16px;color:var(--sh-muted-foreground)}
.prv-etat-txt{flex:1;min-width:220px;display:flex;flex-direction:column;gap:2px;font-size:14px;line-height:20px}
.prv-etat-l{font-size:13px;color:var(--sh-muted-foreground)}
.prv-kpis{margin:0 0 16px}.prv-kpis:empty{display:none}
.prv-corps{flex-wrap:nowrap}
.prv-flux{display:contents}
.prv-carte .fca-droite{align-self:center}
/* réglages */
.prv-reg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.prv-ch{min-width:0}
#app .prv-ch>label{display:block;margin:0 0 6px;font-size:14px;font-weight:500;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app .prv-ch>input,#app .prv-ch>.sel-btn{width:100%;height:36px;margin:0}
#app .prv-ch>.sel-btn{text-align:left}#app .prv-ch>.sel-btn>span:first-child{flex:1;min-width:0;text-align:left}
.prv-l2{grid-column:span 2}
.prv-choix{margin-top:16px;padding-top:16px;border-top:1px solid var(--sh-border)}
.prv-choix-t{margin:0 0 8px;font-size:14px;font-weight:500;line-height:20px}
.prv-choix-t span{font-size:13px;font-weight:400;color:var(--sh-muted-foreground)}
.prv-puces{display:flex;flex-wrap:wrap;gap:8px}
#app label.prv-puce{display:inline-flex;align-items:center;gap:8px;height:32px;margin:0;padding:0 12px 0 10px;border:1px solid var(--sh-border);border-radius:999px;background:var(--sh-card);color:var(--sh-foreground);font-size:13px;font-weight:500;line-height:16px;white-space:nowrap;cursor:pointer;user-select:none}
#app label.prv-puce:hover{background:var(--sh-accent)}
#app label.prv-puce.on{border-color:var(--sh-primary);background:var(--sh-accent)}
#app label.prv-puce.auto{border-style:dashed;color:var(--sh-muted-foreground);cursor:default}
#app label.prv-puce input{flex:none;width:16px;height:16px;margin:0}
/* schéma */
.prv-grille{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}
.prv-schema{display:flex;flex-direction:column;min-width:0}
.prv-etape,.prv-fini{background:var(--sh-card);border:1px solid var(--sh-border);border-radius:var(--r-lg,12px);padding:12px 16px}
.prv-etape.critique{border-color:var(--sh-orange,#f59e0b)}
.prv-etape.choisie{border-color:var(--sh-primary);box-shadow:var(--anneau)}
.prv-hors{border-style:dashed;margin-top:12px}
.prv-fini{border-color:var(--sh-vert,#16a34a)}
.prv-etape-t{display:flex;align-items:center;gap:8px;min-height:32px;flex-wrap:wrap}
.prv-etape-t h3{margin:0;font-size:16px;font-weight:600;line-height:24px}
.prv-num{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;border-radius:999px;background:var(--sh-primary);color:var(--sh-primary-foreground);font-size:13px;font-weight:600}
.prv-num.ok{background:var(--sh-vert,#16a34a)}.prv-num .ms{font-size:14px}
.prv-ty-l{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;border-radius:var(--r-md);background:var(--sh-muted);color:var(--sh-foreground)}
.prv-ty-l .ms{font-size:16px}
.btn-icone.prv-ty.propose{border-style:dashed}
#app .prv-etape-lib{flex:1 1 200px;min-width:120px;max-width:360px;height:32px;margin:0;font-weight:600}
.prv-etape-info{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}
.prv-etape-btns{display:flex;gap:4px;flex:none}
.prv-consigne{margin:8px 0 0 32px;font-size:14px;line-height:20px;color:var(--sh-muted-foreground);white-space:pre-line}
.prv-zone{display:flex;flex-direction:column;gap:4px;margin:8px 0 0 32px}
.prv-grille .prv-zone{min-height:44px;padding:4px;border:1px dashed var(--sh-border);border-radius:var(--r-md,8px)}
.prv-grille .prv-zone.survol{border-color:var(--sh-primary);background:var(--sh-accent)}
.prv-vide{display:flex;align-items:center;min-height:34px;padding:0 8px;font-size:13px;color:var(--sh-muted-foreground)}
.prv-masse{margin:8px 0 0 32px;font-size:13px;line-height:18px;color:var(--sh-muted-foreground)}
.prv-ing{display:grid;grid-template-columns:minmax(0,1fr) 160px 104px;align-items:center;gap:12px;min-height:40px;padding:4px 10px;border-radius:var(--r-md,8px);background:var(--sh-muted)}
.prv-grille .prv-ing{grid-template-columns:16px minmax(0,1fr) 96px 132px 68px;gap:8px;padding:4px 4px 4px 6px}
.prv-ing[draggable=true]{cursor:grab}
.prv-ing.choisi,.prv-ligne.choisi{outline:2px solid var(--sh-primary);outline-offset:1px}
.prv-poignee{font-size:16px;color:var(--sh-muted-foreground)}
.prv-ing-nom{display:flex;flex-direction:column;gap:2px;min-width:0}
.prv-ing-nom>span{overflow:hidden;font-size:14px;font-weight:500;line-height:20px;text-overflow:ellipsis;white-space:nowrap}
.prv-ing-nom small{font-size:12px;line-height:16px;color:var(--sh-muted-foreground)}
.prv-barre{height:6px;background:var(--sh-background);border-radius:3px;overflow:hidden}
.prv-barre i{display:block;height:100%;border-radius:3px;background:#6dbd8d}
.prv-barre i.sous{background:#8b7fd6}.prv-barre i.manque{background:var(--sh-destructive)}
.prv-ing-q{display:flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap;font-variant-numeric:tabular-nums}
.prv-ing-q b{font-size:14px;font-weight:600}
#app .prv-ing-q .prv-q{width:84px;height:32px;margin:0;text-align:right}
.prv-u{min-width:28px;font-size:13px;color:var(--sh-muted-foreground)}
.prv-ing-btns{display:flex;justify-content:flex-end;gap:4px}
.prv-flux-l{display:flex;align-items:center;gap:16px;min-height:32px;padding-left:16px;font-size:13px;color:var(--sh-muted-foreground)}
.prv-trait-b{display:flex;justify-content:center;flex:none;width:24px}
.prv-trait{display:block;height:32px;background:#6dbd8d;border-radius:1px}
.prv-flux-l .prv-et-aj{margin:8px 0}
.prv-fini-ch{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 24px;margin:8px 0 0 32px;font-size:14px}
.prv-fini-ch b{font-size:18px;font-weight:600}
.prv-note{margin:8px 0 0;font-size:13px;line-height:18px;color:var(--sh-muted-foreground)}
.prv-fini .prv-note{margin-left:32px}
.prv-erreur{display:flex;align-items:center;gap:8px;margin:0 0 12px;padding:8px 12px;border:1px solid var(--sh-destructive);border-radius:var(--r-md,8px);color:var(--sh-destructive);font-size:14px}
.prv-erreur .ms{font-size:16px}
#app .prv-port{margin:0;font-size:14px;font-weight:500}
#app .prv-port-in{width:88px;height:32px;margin:0}
/* liste des ingrédients (édition) */
.prv-liste{position:sticky;top:72px;max-height:calc(100vh - 96px);overflow:auto;padding:12px;border:1px solid var(--sh-border);border-radius:var(--r-lg,12px);background:var(--sh-background)}
.prv-liste-t{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 12px}
.prv-liste-t h3{margin:0;font-size:16px;font-weight:600;line-height:24px}
.prv-liste-t>span{font-size:13px;color:var(--sh-muted-foreground)}
.prv-ajout{display:flex;flex-direction:column;gap:8px;margin:0 0 12px}
#app .prv-ajout input{width:100%;height:36px;margin:0}
.prv-ajout-l{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px}
.prv-ajout-l .prv-u:empty{display:none}
.prv-ajout-ou{font-size:12px;line-height:16px;color:var(--sh-muted-foreground)}
.prv-grille .prv-aplacer{margin:0;min-height:60px;gap:6px}
.prv-ligne{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;column-gap:8px;padding:6px 8px 6px 4px;border:1px solid var(--sh-border);border-radius:var(--r-md,8px);background:var(--sh-card);cursor:grab}
.prv-ligne-n{overflow:hidden;font-size:14px;font-weight:500;line-height:20px;text-overflow:ellipsis;white-space:nowrap}
.prv-ligne-q{font-size:13px;font-variant-numeric:tabular-nums}
.prv-ligne-e{grid-column:2 / -1;font-size:12px;line-height:16px;color:var(--sh-muted-foreground)}
.prv-ligne.libre{border-color:var(--sh-orange,#f59e0b)}.prv-ligne.libre .prv-ligne-e{color:var(--sh-orange-fonce,#b45309);font-weight:500}
/* cartes */
.prv-kv{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px}
.prv-kv>span,.prv-kv>b{display:flex;align-items:center;min-height:40px;padding:4px 0;border-top:1px solid var(--sh-border);font-size:14px;line-height:20px}
.prv-kv>span:first-child,.prv-kv>span:first-child+b{border-top:0}
.prv-kv>span{color:var(--sh-muted-foreground)}
.prv-kv>b{justify-content:flex-end;gap:4px;font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
.prv-kv>b.prv-kv-l{font-size:13px;font-weight:400;color:var(--sh-muted-foreground)}
#app .prv-kv label{margin:0;font:inherit;color:inherit}
.prv-prix{display:inline-flex;align-items:center;gap:6px}
#app .prv-prix input{width:96px;height:32px;margin:0;text-align:right}
.prv-tbl{margin:0}
.prv-etiq{display:flex;flex-direction:column;gap:4px;max-width:420px;padding:12px;border:1px dashed var(--sh-border);border-radius:var(--r-md,8px);font-size:13px;line-height:18px}
.prv-etiq-pied{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-weight:600}
.prv-or{color:var(--sh-orange-fonce,#b45309)}.prv-ko{color:var(--sh-destructive)}.prv-okv{color:var(--sh-vert-fonce,#15803d)}
.prv-corps>.fiche-principal.fca-cartes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.prv-corps>.fiche-principal.fca-cartes>.prv-flux>.prv-carte-recette,.prv-corps>.fiche-principal.fca-cartes>.prv-flux>[data-fca=reglages],.prv-corps>.fiche-principal.fca-cartes>.prv-flux>.fca-rare{grid-column:1 / -1}
@media (max-width:1100px){.prv-corps>.fiche-principal.fca-cartes{grid-template-columns:minmax(0,1fr)}}
.prv-dec-hors{margin:4px 0;font-size:14px;font-weight:500;color:var(--sh-destructive)}
.prv-cycle{display:flex;align-items:center;gap:8px;margin:8px 0}.prv-cycle .ms{font-size:16px;color:var(--sh-muted-foreground)}
.prv-pan-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.prv-pan-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.prv-pan-aj{display:grid;grid-template-columns:minmax(0,1fr) 96px auto;gap:8px;align-items:center;margin-top:8px}
#app .prv-pan-aj input{margin:0;height:36px}
@media (max-width:1100px){.prv-reg{grid-template-columns:repeat(2,minmax(0,1fr))}.prv-grille{grid-template-columns:minmax(0,1fr)}.prv-liste{position:static;max-height:none;order:-1}}
@media (max-width:639px){.prv-reg{grid-template-columns:minmax(0,1fr)}.prv-l2{grid-column:auto}.prv-ing,.prv-grille .prv-ing{grid-template-columns:minmax(0,1fr) auto}.prv-barre,.prv-poignee{display:none}.prv-ing-btns{grid-column:1 / -1}}
.prv-sous{font-size:14px;font-weight:600;margin:16px 0 6px}
.prv-res-liste{margin:4px 0 8px;padding-left:18px;max-height:220px;overflow:auto}
/* 09/11 : Production › Produire (R3, migration 1122) — proposition, manques, relevés ; liste des productions avec quarantaine */
.prv-prod-n{display:flex;align-items:flex-end;gap:12px;margin-bottom:12px}
.prv-alerte{border:1px solid var(--sh-destructive);border-radius:var(--r-md,8px);padding:10px 12px;margin:0 0 12px;display:flex;flex-direction:column;gap:8px}
.prv-alerte-btns{display:flex;flex-wrap:wrap;gap:8px}
.prv-releve{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center;margin:6px 0}
.prv-releve label{margin:0}
.prv-hl{grid-column:1 / -1}
.prv-prods{margin:6px 0 0;padding-left:18px}
.prv-prods li{margin:4px 0}
/* ===== Lot B de la revue Production (10/11) : socle commun — en-tête, barre de filtres, jour commun, squelette, échelle ===== */
.sq-page .sq-ligne:empty::before{content:"";display:block;height:12px;border-radius:6px;background:var(--sq);animation:sq-pulse 1.8s ease-in-out infinite}
.page-docs.prd-page > *{margin-top:0!important}   /* le rythme commun (16 px entre blocs) ne s’ajoute pas : marges du bas seules */
.ee-onglets{margin:0 0 16px}
.ee-desc{margin:0 0 12px}
.page-docs.prd-page > .ee-filtres{margin:0 0 16px}
.ee-tete .btn-icone{width:32px;height:32px}   /* « ☰ » à la hauteur de l’action principale */
.ee-filtres .sel-btn{width:auto;height:32px}
.ee-filtres .btn-icone{width:32px;height:32px}
.menu-inactif,.menu-inactif:hover{opacity:.5;cursor:not-allowed;background:none!important}   /* entrée de menu visible mais impossible à choisir */
.lc-jour{display:inline-flex;align-items:center;gap:4px;flex-wrap:nowrap}
.lc-jour .btn-icone{flex:none;width:32px;height:32px}
.lc-jour .dt-champ{flex:none;width:176px;height:32px!important}   /* « Mardi 10/11/2026 » + calendrier, à la hauteur des flèches */
.lc-jour .lc-jour-note{margin-left:4px;white-space:nowrap}
.lc-jour .lc-mois{min-width:132px;text-align:center;font-size:14px;font-weight:600}
.prd-agent{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:999px;background:var(--sh-secondary);font-size:14px;font-weight:500;margin-left:auto}
.prd-agent .ms{font-size:16px}
.prd-page .cf-titre,.prd-page .rd-h2{font-size:16px}
.prd-compte{font-size:16px;margin:4px 0}
.ee-filtres .prd-bt{margin-left:auto}   /* réglage des tuiles, au bout de la barre */
input.prd-badge-ch{font-size:24px!important;letter-spacing:4px}   /* la règle commune des champs (14 px) est plus forte */
input.prv-n-grand{font-size:20px!important;width:120px}
input.prv-ch-court{width:120px}
/* largeurs fixes des champs courts (ex-styles en ligne de Livraisons, 14/11) : !important comme le style en ligne qu'elles remplacent */
input.larg-90{width:90px!important;max-width:100%}input.larg-110{width:110px!important;max-width:100%}input.larg-120{width:120px!important;max-width:100%}input.larg-150{width:150px!important;max-width:100%}input.larg-320{width:320px!important;max-width:100%}
.mt-14{margin-top:14px!important}
/* 1140 : Besoins & courses › Recettes possibles (direction, 10/11) */
.rp-n{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:14px;font-weight:500}   /* margin : la règle commune des label (16 px en haut) décalait le champ */
.rp-n input{width:72px;height:32px!important;text-align:right}
.rp-seg{display:inline-grid;grid-template-columns:repeat(2,auto);padding:3px;gap:3px}
.rp-seg button{height:26px;padding:0 12px;font-size:13px}
.rp-intro{margin:4px 0 12px}
.rp-pills{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.rp-manque{line-height:22px;white-space:nowrap}
.rp-actions{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:nowrap;white-space:nowrap}
.rp-tbl td{vertical-align:top}
.rp-choix{display:flex;align-items:center;justify-content:space-between;gap:16px;border-color:var(--sh-primary)}
.rp-pm tr.rp-sel td{background:var(--sh-muted)}
@media (max-width:640px){.rp-choix{flex-direction:column;align-items:flex-start}.rp-manque{white-space:normal}}
.prv-photo{margin-top:12px}
.prv-alerte{border-color:var(--sh-orange);background:var(--bg-fff8f1,#fff8f1)}
.lv-compteurs{margin:0 0 10px}
.lv-ko{color:var(--fg-b56a1e,#b56a1e)}   /* 12/11 : refusées en orange (charte v2.12) */
.lv-tournee{padding:0;margin-bottom:12px}
.lv-tournee-t{padding:12px 14px 0}
.pr-tour{display:flex;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--sh-border)}
.pr-tour-pt{width:12px;height:12px;border-radius:50%;flex:none}
.pr-tour-nom{min-width:140px}
.pr-tour-det{flex:1}
.pr-tour-aj{margin-top:10px}
/* Lot C de la revue Production (tablette des agents, décisions de la direction du 10/11) */
.prd-qui{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0;padding:10px 12px;border:1px solid var(--sh-border);border-radius:8px;background:var(--sh-muted,#f4f4f5)}
.prd-qui>.ms{font-size:16px;color:var(--sh-muted-foreground)}
.prd-qui-saisie{display:block}
.prd-qui-saisie>label[for=qui-c]{display:block}
input.prd-qui-code{-webkit-text-security:disc;letter-spacing:.2em}
.prd-qui-saisie input.prd-qui-code{width:220px}
.prd-qui .case{margin-top:8px}
.prd-qui-saisie>.petit{margin:6px 0 0}
/* 1905 : volets de Production — badge, ou nom puis code */.prd-nom-code{display:flex;flex-wrap:wrap;gap:8px 12px;margin-top:8px}.prd-nom-code>div{display:flex;flex-direction:column;gap:4px;flex:1 1 180px}.prd-nom-code input{max-width:140px}
.hy-detail{margin-top:2px;white-space:normal}
input.prv-revoir{border-color:var(--sh-orange)!important}
.prv-revoir-n{display:flex;align-items:center;gap:4px;margin-top:2px}
.prv-revoir-n .ms{font-size:14px}
.prv-mini{display:block;max-width:160px;max-height:120px;margin-top:8px;border-radius:6px;border:1px solid var(--sh-border);object-fit:cover}
.prd-taches-badge{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:8px 16px;margin:8px 0}
@media (pointer:coarse){.prd-page .btn,.prd-page .btn-icone,.prd-page .onglets button{min-height:44px}.prd-page .btn-icone{min-width:44px}}
body:has(#cui) .voile .panneau{font-size:16px}
body:has(#cui) .voile .panneau .btn{min-height:56px;font-size:18px;padding:0 20px}
body:has(#cui) .voile .panneau input:not([type=checkbox]):not([type=radio]):not([type=file]){min-height:56px!important;font-size:20px!important}
body:has(#cui) .voile .panneau input.prv-q{width:120px}
body:has(#cui) .voile .panneau input[type=checkbox],body:has(#cui) .voile .panneau input[type=radio]{width:28px!important;height:28px!important}
body:has(#cui) .voile .panneau .hy-seg button,body:has(#cui) .voile .panneau .hy-chips .btn,body:has(#cui) .voile .panneau .hy-signe{min-height:56px;font-size:18px}
body:has(#cui) .voile .panneau .lien-btn{min-height:44px}
/* Lot E de la revue Production : volet « Écran de la cuisine » (tuiles et créneaux, 1143) */
.ecr-h3{font-size:16px;font-weight:600;margin:18px 0 8px}
.ecr-h3 .petit{font-weight:400}
.ecr-tuiles{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ecr-tuile{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 14px;border:2px solid var(--sh-border);border-radius:12px;background:var(--sh-card);color:var(--sh-foreground);font:inherit;font-weight:600;text-align:left;cursor:pointer}
.ecr-tuile .ms{font-size:22px;color:var(--sh-muted-foreground)}
.ecr-tuile.sel{border-color:var(--sh-primary);background:var(--sh-accent)}
.ecr-tuile.sel .ms{color:var(--sh-primary)}
.ecr-rang{margin-left:auto;display:grid;place-items:center;min-width:24px;height:24px;border-radius:50%;background:var(--sh-primary);color:var(--sh-primary-foreground);font-size:13px}
.ecr-rang:empty{display:none}
.ecr-duree,.ecr-ecrans{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.ecr-min,.ecr-ecran{min-height:44px;padding:0 16px;border:1px solid var(--sh-border);border-radius:999px;background:var(--sh-card);color:var(--sh-foreground);font:inherit;cursor:pointer}
.ecr-min.sel,.ecr-ecran.sel{border-color:var(--sh-primary);background:var(--sh-primary);color:var(--sh-primary-foreground)}
.ecr-actions{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 4px}
.ecr-cren{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
.ecr-ligne{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr) auto;gap:8px;align-items:end}
.ecr-h{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--sh-muted-foreground)}
.ecr-h input{width:128px}
@media (max-width:700px){.ecr-ligne{grid-template-columns:minmax(0,1fr) auto}.ecr-ligne select,.ecr-ligne .sel-btn{grid-column:1/-1}}
body:has(#cui) .voile .panneau .ecr-min,body:has(#cui) .voile .panneau .ecr-ecran{min-height:56px;font-size:18px}
/* Lot F de la revue Production : Livraisons, Facturation, Paramètres, fiche article (10/11) */
.lv-anom td:first-child{box-shadow:inset 3px 0 0 var(--sh-orange)}   /* revue alimentaire 11/11 : liseré orange seul, plus de fond rempli (clair et sombre) */
.lv-alerte-corr{display:flex;align-items:center;gap:10px}
.lv-alerte-corr>.ms{color:var(--sh-orange)}
.lv-alerte-corr>span:not(.ms){flex:1}
.lv-histo{margin:4px 0 8px;padding-left:18px;font-size:13px;color:var(--sh-muted-foreground)}
.lv-avert{display:flex;gap:6px;align-items:flex-start;margin:4px 0 8px}
.lv-avert .ms{font-size:16px;color:var(--sh-orange)}
/* 18/11 : mini-planche numérotée de la fenêtre d'impression des étiquettes (ordre de remplissage, 1re étiquette libre) */
.le-vis,.hy-grille>.le-vis{display:flex;flex-direction:row;gap:14px;align-items:flex-start}
.le-vis svg{width:104px;height:auto;flex:none;display:block}
.le-vis svg{filter:drop-shadow(0 1px 3px rgb(0 0 0 / .14))}
/* 23/11 : impression des étiquettes — état de l'imprimante, sélection, nombre annoncé, cases de la liste des Livraisons */
.le-zst{margin:6px 0 4px;color:var(--texte-2,#475569)}
.le-zst.le-zko{color:var(--rouge,#b91c1c);font-weight:600}
.le-zbt{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.btn.le-zattend{opacity:.5;pointer-events:none}
.le-zst.chargement{padding:0;text-align:left;color:var(--texte-2,#475569)}
.le-sel,.le-n{display:flex;align-items:center;gap:6px;margin:8px 0}
.le-sel .ms,.le-n .ms{font-size:18px}
.lv-sel-c{width:32px;text-align:center}
/* 2057 : confirmation de réimpression (qui et quand) et historique des impressions */
.le-conf{display:flex;gap:10px;align-items:flex-start;margin:8px 0}
.le-conf ul{margin:6px 0 6px 18px;padding:0}
.le-conf li{margin:2px 0}
.hi-tot{margin:8px 0}
.hi-noms{margin:4px 0 4px 18px;padding:0;columns:2;column-gap:24px}
.hi-det td{background:var(--sh-muted,#f8fafc)}
.lv-impr1{vertical-align:middle}
/* 23/11 (direction : « améliore les doubles lignes par bénéficiaire ») : un bloc (tbody) par bénéficiaire, arrêt et nom une seule fois ;
   trait plein entre deux bénéficiaires, trait pointillé pâle entre ses barquettes ; survol du bloc entier */
.lv-tbl .lv-arret{width:56px;font-variant-numeric:tabular-nums;color:var(--sh-muted-foreground)}
.lv-tbl .lv-benef-c{width:18%}
.lv-tbl .lv-formule{white-space:nowrap}
.lv-tbl .lv-remise-c{min-width:150px}
.lv-tbl .lv-etiq-c{width:84px}
.lv-tbl .lv-impr1{margin:0 auto}   /* bouton en grille (bloc) : centré sous « Étiquette » */
.lv-tbl td.lv-rs{vertical-align:top;padding-top:12px}
.lv-tbl td.lv-arret{font-weight:600;font-size:15px;color:var(--sh-foreground)}
.lv-regimes{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.lv-tbl>tbody>tr>td{border-bottom:1px dashed var(--trait-2)}
.lv-tbl>tbody>tr:last-child>td,.lv-tbl>tbody>tr>td.lv-rs{border-bottom:1px solid var(--trait)}
.lv-tbl>tbody:last-child>tr:last-child>td,.lv-tbl>tbody:last-child>tr>td.lv-rs{border-bottom:0}
.lv-tbl>tbody.lv-benef:hover>tr>td{background:var(--sh-accent,#f7f7f8)}
.lv-tbl td.lv-avec{color:var(--sh-muted-foreground);font-size:13px}
.lv-sans{color:var(--sh-muted-foreground)}
.lv-etat{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px}
.lv-etat .lv-corr{margin:0}
.le-feuille{fill:var(--sh-card);stroke:var(--sh-ring);stroke-width:1.2}
.le-c{cursor:pointer}
.le-c rect{fill:var(--sh-card);stroke:var(--sh-ring);stroke-width:1.2}
.le-c text{fill:var(--sh-muted-foreground);font-weight:600;text-anchor:middle;dominant-baseline:central;pointer-events:none}
.le-c:hover rect{stroke:var(--sh-primary);stroke-width:2}
.le-c.prise rect{fill:var(--sh-muted);stroke:var(--sh-ring);stroke-dasharray:4 3}
.le-c.prise text{fill:var(--sh-muted-foreground);opacity:.55}
.le-c.dep rect{fill:var(--sh-primary);stroke:var(--sh-primary)}
.le-c.dep text{fill:var(--sh-primary-foreground)}
.le-leg{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-direction:column;gap:6px;color:var(--sh-muted-foreground)}
.le-leg li{display:flex;align-items:center;gap:8px}
.le-leg .le-leg-a{font-style:italic}
.le-l{flex:none;width:14px;height:10px;border-radius:2px;border:1px solid var(--sh-ring);background:var(--sh-card)}
.le-l.dep{background:var(--sh-primary);border-color:var(--sh-primary)}
.le-l.prise{background:var(--sh-muted);border:1px dashed var(--sh-ring)}
.lv-case-ligne{display:inline-flex;margin-right:12px}
.lv-adr{display:flex;gap:6px}
.lv-adr input{flex:1}
.tbl th.centre,.tbl td.centre{text-align:center}
.lv-susp{display:flex;gap:8px;align-items:center;margin-bottom:4px}
.lv-grille-bas{align-items:end}
.pr-ecran{display:flex;gap:10px;align-items:center;padding:6px 0}
.pr-ecran-vu{flex:1}
.pr-couleur{width:80px;height:34px}
.pr-url{width:100%}
.pr-ordre{padding:0;margin:8px 0;list-style:none;display:flex;flex-direction:column;gap:4px}
.pr-ordre-l{display:flex;gap:8px;align-items:center;padding:6px 8px;border:1px solid var(--sh-border);border-radius:8px;background:var(--sh-card)}
.pr-ordre-l.tire{opacity:.5}
.pr-ordre-l.vise{border-color:var(--sh-primary);box-shadow:0 -2px 0 var(--sh-primary)}
.pr-poignee{display:grid;place-items:center;width:28px;height:28px;cursor:grab;touch-action:none;color:var(--sh-muted-foreground)}
.pr-ordre-n{min-width:22px;font-weight:600;color:var(--sh-muted-foreground)}
.pr-ordre-t{flex:1;min-width:0}
input.fa-mois{width:170px;height:32px}
.stk-grave{color:var(--fg-b56a1e,#b56a1e)}   /* 12/11 : orange (charte v2.05) */
.stk-rappel{margin:4px 0 10px;padding-left:18px}
/* 1180 : rappels de produits (fiche article › Alertes, réception, Paramètres › Stock) */
.rc-carte{margin-bottom:12px}
.rc-item{border-top:1px solid var(--trait);padding:12px 0}
.rc-item:first-of-type{border-top:0}
.rc-item p{margin:4px 0}
.rc-ouvert{border-left:3px solid var(--fg-b56a1e,#b56a1e);padding-left:10px}   /* 12/11 : orange de la charte */
.rc-tete{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.rc-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.rc-prod summary{cursor:pointer;font-size:13px;color:var(--sh-muted-foreground)}
.rc-prod ul{margin:6px 0 0;padding-left:18px;font-size:13px}
.rc-source{margin-top:10px;color:var(--sh-muted-foreground)}
.rc-lots{border:0;padding:0;margin:10px 0;display:grid;gap:6px}
.rc-qualite{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:6px}
.fa-cb-aide{grid-column:1/-1;margin:2px 0 0;color:var(--sh-muted-foreground)}
.sg-rc{display:flex;gap:6px;align-items:flex-start;margin-top:4px;font-size:12px;color:var(--fg-b56a1e,#b56a1e);max-width:260px}   /* 12/11 : orange des alertes (charte v1.86), plus le rouge */
.sg-rc .ms{font-size:16px}
.sg-rc .petit{display:block;margin-top:4px}   /* 12/11 : avertissement RappelConso sous le message */
.rc-regles{margin:6px 0 4px;padding-left:18px;display:grid;gap:3px}
/* Lot F2 de la revue Production : ordre des arrêts calculé (Valhalla + OR-Tools), temps réels, créneaux (10/11) */
input.pr-heure{width:128px}
.pr-calc{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:8px 0}
.pr-prop{margin:6px 0 10px;border-color:var(--sh-primary)}
.pr-prop-l{margin:6px 0;padding-left:22px;display:flex;flex-direction:column;gap:3px}
.pr-prop-l li.pr-retard b,.pr-prop-l li.pr-retard .petit{color:var(--sh-orange)}
.pr-prop-b{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.pr-prop-ok{display:flex;align-items:center;gap:6px;margin:6px 0}
.pr-prop-ok .ms{color:var(--sh-green,#16a34a)}
/* 1151 (10/11) : photos des articles — galerie de la fiche, bibliothèque « Photos à ranger », visionneuse, vignettes (gestes, inventaire, recettes, courses) */
.ph-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:12px}
.ph-case{position:relative;margin:0;border:1px solid var(--sh-border);border-radius:var(--r-md);background:var(--sh-muted);aspect-ratio:1;overflow:hidden}
.ph-case.principale{border-color:var(--sh-primary);box-shadow:0 0 0 1px var(--sh-primary)}
.ph-img{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:0;border:0;background:none;cursor:zoom-in;color:var(--sh-muted-foreground)}
.ph-img img{width:100%;height:100%;object-fit:cover;display:block}
.ph-img:focus-visible{outline:0;box-shadow:inset 0 0 0 3px var(--sh-ring)}
.ph-badge{position:absolute;left:8px;bottom:8px;display:inline-flex;align-items:center;gap:3px;padding:1px 7px 1px 5px;border-radius:999px;background:var(--sh-card);color:var(--sh-foreground);font-size:11px;font-weight:600;box-shadow:var(--ombre-xs)}
.ph-badge .ms{font-size:13px;color:var(--sh-orange)}
.ph-menu{position:absolute;top:8px;right:8px;background:var(--sh-card)!important;box-shadow:var(--ombre-xs);opacity:0;transition:opacity .15s}
.ph-case:hover .ph-menu,.ph-menu:focus-visible,.ph-menu[aria-expanded="true"]{opacity:1}
@media (hover:none){.ph-menu{opacity:1}}
.ph-a-ranger{display:flex;align-items:center;gap:6px;margin:12px 0 0}
.ph-a-ranger .ms{font-size:16px;color:var(--sh-muted-foreground)}
.ph-depot{outline:2px dashed var(--sh-primary);outline-offset:-4px}
.ph-bib-outils{display:flex;align-items:center;gap:12px;margin:12px 0}
.ph-bib-z{max-height:min(52vh,520px);overflow:auto;border-radius:var(--r-md)}
.ph-choix{cursor:pointer}
.ph-choix input{position:absolute;opacity:0;pointer-events:none}
.ph-choix .ph-img{cursor:pointer}
.ph-coche{position:absolute;top:12px;left:8px;width:24px;height:24px;border-radius:50%;border:2px solid #fff;background:rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center;color:transparent}
.ph-coche .ms{font-size:16px}
.ph-choix.choisi{border-color:var(--sh-primary);outline:2px solid var(--sh-primary);outline-offset:-3px}   /* dessiné dedans : la zone qui défile ne le rogne pas */
.ph-choix.choisi .ph-coche{background:var(--sh-primary);border-color:var(--sh-primary);color:var(--sh-primary-foreground)}
.ph-choix input:focus-visible~.ph-img{box-shadow:inset 0 0 0 3px var(--sh-ring)}
.ph-zoom{position:absolute;top:8px;right:8px;background:var(--sh-card)!important;box-shadow:var(--ombre-xs)}
.ph-vis{margin:auto;border:0;padding:0;width:min(96vw,1100px);max-height:94vh;border-radius:var(--r-lg);background:var(--sh-card);color:var(--sh-foreground)}
.ph-vis::backdrop{background:rgba(9,9,11,.72)}
.ph-vis-t{display:flex;align-items:center;gap:12px;padding:10px 12px 10px 16px;border-bottom:1px solid var(--sh-border)}
.ph-vis-t>span:first-child{flex:1;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.ph-vis-c{position:relative;display:flex;align-items:center;justify-content:center;background:#09090b;min-height:240px}
.ph-vis-c img{max-width:100%;max-height:calc(94vh - 60px);object-fit:contain;display:block}
.ph-vis-p,.ph-vis-s{position:absolute;top:50%;transform:translateY(-50%);background:var(--sh-card)!important;box-shadow:var(--ombre-sm)}
.ph-vis-p{left:10px}.ph-vis-s{right:10px}
.fa-ava-b{width:100%;height:100%;padding:0;border:0;border-radius:50%;overflow:hidden;cursor:zoom-in;background:none}
.fa-ava-b:focus-visible{outline:0;box-shadow:0 0 0 3px var(--anneau)}
.fa-ava-b img{width:100%;height:100%;object-fit:cover;display:block}
.tbl .a-ph{display:inline-flex;align-items:center;vertical-align:middle}   /* vignette et libellé centrés au pixel dans une cellule */
img.art-ph{width:24px;height:24px;border-radius:5px;object-fit:cover;vertical-align:middle;margin-right:8px;border:1px solid var(--sh-border);background:var(--sh-muted);flex:none}
.sg-art-l{display:flex;align-items:center;gap:8px;min-width:186px}   /* la colonne Article garde la place du libellé (le volet tient sans défiler) */
.sg-art-l .sg-art{flex:1;min-width:0}
.sg-ph{display:none;flex:none}
.sg-ph.a-photo{display:block}
.sg-ph img{width:36px;height:36px;border-radius:6px;object-fit:cover;display:block;border:1px solid var(--sh-border)}
.cui-ing-nl{display:flex;align-items:center;gap:12px;min-width:0}
.cui-ing-nl>[data-art-ph]:empty{display:none}
.cui-ing-nl img.art-ph{width:40px;height:40px;margin:0;border-radius:8px}
.prv-ing-nom>span img.art-ph,.prv-ligne-n img.art-ph,.rp-manque img.art-ph{width:20px;height:20px;margin:-2px 6px 0 0;border-radius:4px}

/* Ressources › Articles (charte v1.74, 10/11/2026) : barre des gestes, tuiles, colonne Stock, sélection.
   Couleurs du stock en texte ou contour, jamais en fond : orange = stock bas / échéance proche, rouge = rupture, lot bloqué, DLC dépassée. */
.page-docs > .sous-entete, .page-docs > .art-sel{flex:none}
.art-gestes{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.art-tuiles{margin:0 0 12px}
.art-tuiles:empty{display:none}
.art-nom{display:flex;flex-direction:column;line-height:1.3;min-width:0}
.art-nom a{font-weight:600;overflow:hidden;text-overflow:ellipsis}
.art-nom .petit{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.art-stock{display:flex;flex-direction:column;gap:4px;min-width:0}
.art-stock-l{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.art-etat{display:inline-flex;align-items:center;border:1px solid currentColor;border-radius:999px;padding:0 8px;font-size:12px;font-weight:600;line-height:18px;white-space:nowrap}
.art-orange, .art-t-orange{color:var(--fg-b56a1e,#b56a1e)}
.art-rouge, .art-t-rouge{color:var(--rouge,#d93025)}
.art-t-orange, .art-t-rouge{font-weight:600}
.art-niveau{height:6px;max-width:140px;border-radius:999px;background:var(--bg-eceff4,#eceff4);overflow:hidden}
.art-niveau i{display:block;height:100%;border-radius:inherit;background:var(--turquoise,#038391)}
.art-n-orange i{background:var(--bd-f08c00,#f08c00)}
.art-n-rouge i{background:var(--bd-e5484d,#e5484d)}
.art-sel{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 12px;margin:0 0 8px;border:1px solid var(--trait);border-radius:10px;background:var(--bg-ffffff,#fff)}
.art-sel[hidden]{display:none}
.art-sel-n{font-weight:600;margin-right:4px}
.art-sel-x{margin-left:auto}
/* 1170 — recette faite à plusieurs (charte v1.75) : Production du jour, volet « Équipe du plat », fiche recette, mode cuisine */
.prd-actes{display:inline-flex;flex-wrap:wrap;gap:8px;align-items:center}
.prd-eq{margin:8px 0;padding:10px 12px;border:1px solid var(--sh-border);border-radius:var(--r-md);background:var(--sh-muted,#f4f4f5)}
.prd-eq-t{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;font-size:14px}.prd-eq-t .ms{font-size:16px}
.prd-parts{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.prd-parts>li{padding:8px 10px;border:1px solid var(--sh-border);border-radius:var(--r-sm);background:var(--sh-card)}
.prd-part-l1{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:14px}
.prd-part-act{display:inline-flex;gap:6px;margin-left:auto}
.prd-part-et{margin-top:4px}
.pq-pers{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 12px}
label.prv-puce.pq-p{height:auto!important;min-height:32px;padding:4px 12px 4px 10px!important;white-space:normal!important}
.pq-p small{display:block;font-size:12px;font-weight:400;color:var(--sh-muted-foreground)}
.pq-type{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px;font-size:13px;color:var(--sh-muted-foreground)}
.pq-manque{color:var(--sh-orange-fonce,#b45309)}
.pq-parts-t{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0}.pq-parts-t h3{margin:0;font-size:16px;flex:1}
.pq-rap{display:inline-flex;flex-wrap:wrap;gap:6px}
.pq-part{margin:0 0 10px;padding:10px 12px;border:1px solid var(--sh-border);border-radius:var(--r-md);background:var(--sh-card)}
.pq-part.fige{background:var(--sh-muted,#f4f4f5)}
.pq-part-t{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 6px}.pq-part-t>b{font-size:15px}
.pq-part-t .btn-icone{margin-left:auto}
label.pq-por{display:inline-flex!important;align-items:center;gap:6px;margin:0!important;font-size:13px}
.pq-part .pq-pers{margin:4px 0 8px}
.pq-et td{padding:6px 8px;vertical-align:middle}.pq-et td:last-child{width:50%}
.pq-pied{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.et-ligne{display:flex;align-items:center;gap:8px;margin:0 0 8px}.et-ligne .sel-btn{flex:1;min-width:0}.et-ligne .prv-ch-court{flex:none;width:72px}
/* mode cuisine : plusieurs agents badgés, parts et étapes signées (cibles de 56 px) */
button.cui-qui{border:0;font:inherit;color:inherit;cursor:pointer;min-height:48px;touch-action:manipulation}
.cui-qui.sel{box-shadow:0 0 0 2px var(--sh-primary)}
.cui-agent{flex-wrap:wrap}
.cui-plat-eq{display:flex;align-items:center;gap:6px;font-size:15px;color:var(--sh-muted-foreground)}.cui-plat-eq .ms{font-size:18px}
.cui-eq-l{display:flex;align-items:center;gap:8px;margin:0 0 16px;font-size:19px}.cui-eq-l .ms{font-size:24px}
.cui-part{margin:0 0 16px;padding:14px 16px;border:1px solid var(--sh-border);border-radius:14px;background:var(--sh-card)}
.cui-part-prete,.cui-part-validee{background:var(--sh-muted)}
.cui-part-t{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 0 10px;font-size:19px}
.cui-part-t>b{font-size:22px}
.cui-part-qui{display:inline-flex;align-items:center;gap:6px;color:var(--sh-muted-foreground)}.cui-part-qui .ms{font-size:22px}
.cui-part-etat{margin-left:auto;font-weight:600;color:var(--sh-primary)}
.cui-pets{list-style:none;margin:0;padding:0}
.cui-pets li{display:flex;align-items:center;gap:14px;min-height:72px;padding:8px;border-top:1px solid var(--sh-border)}
.cui-pets li:first-child{border-top:0}
.cui-pets li.mien{background:color-mix(in oklab,var(--sh-accent) 70%,transparent);border-radius:10px}
.cui-pets li.fait .cui-num{background:var(--sh-vert,#16a34a)}
.cui-pet-t{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.cui-pet-t b{font-size:21px;line-height:1.2}
.cui-pet-t small{font-size:16px;color:var(--sh-muted-foreground)}
.cui-pet-a{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.cui .cui-pet-a .btn{min-height:56px;padding:0 18px;font-size:18px}
.cui-ok-ic{font-size:36px;color:var(--sh-vert,#16a34a)}
.cui-part-b{display:flex;align-items:center;gap:12px;margin-top:12px}
.cui-part-aide{font-size:16px;color:var(--sh-muted-foreground)}
@media (max-width:700px){.cui-pets li{flex-wrap:wrap}.cui-pet-a{width:100%;justify-content:stretch}.cui .cui-pet-a .btn{flex:1}}
/* 1170 : puces à case aussi dans les volets (Équipe du plat) */
.voile label.prv-puce{display:inline-flex;align-items:center;gap:8px;height:32px;margin:0;padding:0 12px 0 10px;border:1px solid var(--sh-border);border-radius:999px;background:var(--sh-card);color:var(--sh-foreground);font-size:13px;font-weight:500;line-height:16px;white-space:nowrap;cursor:pointer;user-select:none}
.voile label.prv-puce:hover{background:var(--sh-accent)}
.voile label.prv-puce.on{border-color:var(--sh-primary);background:var(--sh-accent)}
.voile label.prv-puce.auto{border-style:dashed;color:var(--sh-muted-foreground);cursor:default}
.voile label.prv-puce input{flex:none;width:16px;height:16px;margin:0}

/* Stock, lot 3 (1162, 10/11/2026) : code + caméra, proposition d'Open Food Facts, crédit d'une photo reprise */
.sa-cb-l{display:flex;gap:8px;align-items:center}
.sa-cb-l > input{flex:1;min-width:0}
.sa-cb-l > .btn, .sa-cb-l > .btn-icone{flex:none}
.sa-off{margin:8px 0 4px;padding:12px;border:1px solid var(--sh-border,#e4e7ef);border-radius:10px;background:var(--sh-card,#fff);box-shadow:var(--ombre-xs,none)}
.sa-off[hidden]{display:none}
.sa-off.pris{padding:10px 12px;background:var(--sh-muted,#f6f7f9);box-shadow:none}
/* Open Food Facts : la proposition en fiche produit (11/11, charte v1.85) — photo, nom, marque · contenance, Nutri-Score pour info,
   puis une ligne par élément à reprendre (titre en 500, valeur en gris, jamais tout en gras) ; valeurs pour 100 g avec repères FSA */
.sof-tete{display:flex;gap:12px;align-items:flex-start}
.sof-img{width:72px;height:72px;flex:none;object-fit:contain;border-radius:8px;background:#fff;border:1px solid var(--sh-border,#e4e7ef)}
.sof-img.vide{display:flex;align-items:center;justify-content:center;color:var(--sh-muted-foreground);background:var(--sh-muted,#f6f7f9)}
.sof-id{flex:1;min-width:0}
.sof-nom{font-size:15px;line-height:20px;font-weight:600;color:var(--sh-foreground);overflow-wrap:anywhere}
.sof-sous{margin-top:2px;font-size:13px;line-height:18px;color:var(--sh-muted-foreground)}
.sof-ns{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:12px;line-height:16px;color:var(--sh-muted-foreground)}
.sof-ns-l{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:none;border-radius:6px;font-size:14px;font-weight:700;color:#fff}
.sof-ns-l.ns-a{background:#038141}.sof-ns-l.ns-b{background:#85bb2f}.sof-ns-l.ns-c{background:#fecb02;color:#1f2937}.sof-ns-l.ns-d{background:#ee8100}.sof-ns-l.ns-e{background:#e63e11}
.sof-consigne{margin:12px 0 4px;font-size:13px;line-height:18px;color:var(--sh-muted-foreground)}
.sof-l{display:grid;grid-template-columns:16px minmax(0,1fr);column-gap:10px;row-gap:2px;padding:10px 0;border-top:1px solid var(--sh-border,#e4e7ef)}
.sof-l > input{grid-row:1;width:16px;height:16px;margin:2px 0 0}
.sof-l > label{grid-column:2;margin:0;font-size:13px;line-height:20px;font-weight:500;color:var(--sh-foreground);cursor:pointer}
.sof-l-u{font-weight:400;color:var(--sh-muted-foreground)}
.sof-l-v{grid-column:2;font-size:13px;line-height:18px;color:var(--sh-muted-foreground);overflow-wrap:anywhere}
.sof-l-rien{margin:0;padding:10px 0 10px 26px;border-top:1px solid var(--sh-border,#e4e7ef);font-size:13px;line-height:18px;color:var(--sh-muted-foreground)}
.sof-al{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
.sof-al .pastille{color:var(--sh-foreground);border-color:var(--sh-border)}
.sof-nu{margin-top:6px;padding:0 10px;border:1px solid var(--sh-border,#e4e7ef);border-radius:8px}
.sof-nu-r{display:grid;grid-template-columns:minmax(0,1fr) auto 64px;align-items:center;gap:10px;min-height:32px;border-top:1px solid var(--sh-border,#e4e7ef);color:var(--sh-foreground)}
.sof-nu-r:first-child{border-top:0}
.sof-nu-r.sous .sof-nu-n{padding-left:12px;color:var(--sh-muted-foreground)}
.sof-nu-q{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.sof-nu-r .pastille{justify-self:start}
.sof-src{margin:10px 0 0;font-size:12px;line-height:16px;color:var(--sh-muted-foreground)}
.sof-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.sof-pris{display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:18px;color:var(--sh-foreground)}
.sof-pris > .ms{font-size:18px;color:#6dbd8d}
.sof-pris > div{flex:1;min-width:0}
.sof-pris b{font-weight:500}
.sof-pris small{display:block;margin-top:2px;font-size:12px;color:var(--sh-muted-foreground)}
.sof-pris > .btn{flex:none}
/* 12/11 (charte v1.87) : le scan d'abord — volet « Nouvel article » prérempli (bandeau du code inconnu, rattacher, champs posés en bleu) */
.sa-inconnu{display:flex;gap:10px;align-items:flex-start;margin:0 0 10px;padding:10px 12px;border:1px solid var(--sh-primary);border-radius:10px;background:var(--accent-pale,#eef0f6)}
.sa-inconnu>.ms{color:var(--sh-primary);flex:none}
.sa-inconnu>div{display:flex;flex-direction:column;gap:2px}
.sa-ratt-o{color:var(--sh-primary);text-decoration:underline;text-align:left;font:inherit;font-size:13px;margin-top:4px}
.sa-ratt{margin:0 0 10px;padding:8px 12px;border:1px dashed var(--sh-border,#e4e7ef);border-radius:10px}
.sa-ratt[hidden]{display:none}
.sa-off-ok{border-color:var(--sh-vert,#16a34a)}
.sa-off-alerte{border-color:var(--fg-b56a1e,#b56a1e)}
.sa-off-alerte p{margin:0}
.sa-off-attention{color:var(--fg-b56a1e,#b56a1e);font-weight:500}
.voile .panneau input.sa-prerempli:not([type=checkbox]):not([type=radio]),.voile .panneau textarea.sa-prerempli:not([disabled]),.voile .panneau select.sa-prerempli:not([disabled]),.voile .panneau select.sa-prerempli+button:not([disabled]){border-color:var(--sh-primary);box-shadow:0 0 0 1px var(--sh-primary) inset;background:var(--accent-pale,#eef0f6)}
html[data-theme="sombre"] .sa-inconnu,html[data-theme="sombre"] .voile .panneau input.sa-prerempli:not([type=checkbox]):not([type=radio]),html[data-theme="sombre"] .voile .panneau textarea.sa-prerempli:not([disabled]),html[data-theme="sombre"] .voile .panneau select.sa-prerempli:not([disabled]),html[data-theme="sombre"] .voile .panneau select.sa-prerempli+button:not([disabled]){background:rgb(159 176 232 / .12)}
.ph-credit{position:absolute;left:4px;right:4px;bottom:4px;font-size:10px;line-height:1.3;color:#fff;background:rgba(0,0,0,.55);border-radius:4px;padding:1px 4px;text-align:center;pointer-events:none}
/* 1190 (11/11) : Courses — jours et recettes à cocher, montant et plafond, dépassement avec leviers */
.crs-plaf{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.crs-plaf label{margin:0;font-weight:500}
.crs-plaf p{flex:1 0 100%;margin:0}
#app .crs-plaf .prv-prix input{width:120px}
.crs-depasse{border-color:var(--sh-orange);background:var(--sh-card)}
.crs-depasse h3{display:flex;align-items:center;gap:6px}
.crs-depasse h3 .ms{color:var(--sh-orange-fonce)}
.crs-depasse p{margin:4px 0}
.crs-leviers{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px 24px;margin:8px 0}
.crs-leviers h4{margin:0 0 4px;font-size:14px;font-weight:600}
.crs-leviers ul{list-style:none;margin:0;padding:0}
.crs-leviers li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:4px 12px;padding:6px 0;border-top:1px solid var(--sh-border)}
.crs-lv-n{display:flex;flex-direction:column;min-width:0}
#app #sr-prix .prv-prix input{width:120px}
.crs-leviers b{font-variant-numeric:tabular-nums}
.crs-sel-t{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.crs-sel-t .cf-titre{margin:0}
.crs-sel-b{margin-left:auto;display:flex;gap:8px}
.crs-jours{margin-top:8px;border-top:1px solid var(--sh-border)}
.crs-jour{border-bottom:1px solid var(--sh-border);display:grid;grid-template-columns:16px minmax(0,1fr);column-gap:12px;align-items:start}
.crs-jour>.crs-cj{margin:12px 0 0;width:16px;height:16px}
.crs-jd>summary{display:flex;align-items:center;gap:12px;min-height:40px;padding:4px 0;cursor:pointer;list-style:none}
.crs-jd>summary::-webkit-details-marker{display:none}
.crs-jn{font-weight:600;min-width:72px}
.crs-jc{margin-left:auto;font-variant-numeric:tabular-nums}
.crs-chev{margin-left:auto;font-size:18px;transition:transform .15s}
.crs-jc~.crs-chev{margin-left:0}
.crs-jd[open] .crs-chev{transform:rotate(180deg)}
.crs-jour.off .crs-jn,.crs-jour.off ul{opacity:.55}
.crs-jour ul{list-style:none;margin:0 0 8px;padding:0}
.crs-jour li{display:flex;align-items:center;gap:12px;min-height:32px}
.crs-jour li .case{margin:0;flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px}
.crs-jour li .case input{margin:0;vertical-align:0;flex:0 0 auto}
.crs-lc{font-variant-numeric:tabular-nums;white-space:nowrap}
.crs-ft{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 12px}
.crs-ft>:last-child:not(:first-child){margin-left:auto}
.crs-fm{margin-left:auto;font-variant-numeric:tabular-nums}
.crs-ft>.crs-fm:not(:last-child)+*{margin-left:0}
/* 1191 (11/11) : Courses, lot B — livraisons des fournisseurs (Paramètres › Stock, cartes « À acheter ») */
.crs-liv{margin:-4px 0 12px}
.crs-jrs{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;padding:4px;margin:0 0 12px;border-radius:var(--r-md);background:var(--sh-muted)}
.crs-jrs button{height:36px;border:0;border-radius:calc(var(--r-md) - 2px);background:transparent;color:var(--sh-muted-foreground);font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.crs-jrs button.sel{background:var(--sh-card);color:var(--sh-foreground);box-shadow:var(--ombre-xs)}
.crs-jrs button:focus-visible{outline:2px solid var(--sh-ring);outline-offset:1px}
/* 1192 (11/11) : Courses, lot C — bons de commande (onglet Commandes, volet du bon) */
tr.lien-ligne{cursor:pointer}
tr.lien-ligne:hover td{background:var(--sh-muted)}
.crs-ft .btn{font-size:13px}
.bc-q{display:inline-flex;align-items:center;gap:6px}
.voile .bc-q input,#app .bc-q input{width:88px;height:32px;margin:0;text-align:right}
.bc-tbl td{vertical-align:middle}
.bc-tot{display:flex;justify-content:flex-end;gap:16px;margin:8px 0 4px;font-variant-numeric:tabular-nums}
.bc-anom{margin:8px 0;padding:8px 12px;border:1px solid #e5e7eb;border-radius:8px}.bc-anom p{margin:0 0 4px}.bc-anom ul{margin:0;padding-left:18px}   /* 1273 */
.bc-actions{flex-wrap:wrap}
.bc-actions .bc-gauche{margin-right:auto}
.voile h2 .pastille{vertical-align:middle;margin-left:8px;font-size:12px}
/* 1170 (essai tablette, 11/11) : en portrait, le titre de l'écran cuisine garde sa ligne quand l'en-tête est plein (Badger, plusieurs agents) */
@media (max-width:1023px){.cui-haut{flex-wrap:wrap;row-gap:8px;column-gap:10px}.cui-titre{flex:1 1 100%}}
.cui-part-courte{padding:10px 16px}.cui-part-courte .cui-part-t{margin:0}
.cui-part-etat.cui-fait{display:inline-flex;align-items:center;gap:6px;color:var(--sh-vert,#16a34a)}.cui-part-etat .ms{font-size:22px}
.voile label.prv-photo{margin-top:12px}
/* revue alimentaire 11/11 — Stock et Articles */
/* rangées des volets et des réglages : flex, écart 8 px, champs à leur largeur (plus en pleine largeur) */
.sr-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.sr-chip{display:inline-flex;align-items:center;gap:4px}
.sr-chip .btn-icone{width:22px;height:22px;min-width:0}
.sr-ajout{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}
.voile .sr-ajout>input,#app .sr-ajout>input{flex:0 1 260px;width:auto;min-width:0;margin:0}
.sg-q{display:flex;align-items:center;gap:8px}
.sg-q>input{flex:none;width:70px;margin:0}
/* 13/11 : le texte choisi d'une liste habillée commence à gauche, comme le Select shadcn (« — Choisir — », « Aucune » étaient centrés) */
.sel-btn{text-align:left}
.sel-btn>span:not(.ms):first-child{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sg-q>.sel-btn{flex:1;min-width:0}
.sg-scan{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.sg-scan>label{margin:0}
.sg-scan>.sa-cb-l{flex:1 1 280px;max-width:480px}
.il-emps #il-emps{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.il-emps .case{margin:0}
/* choix de l'article = liste shadcn (data-recents="article") : le bouton prend la place du champ, libellé coupé proprement */
.sg-art-l>.sel-btn{flex:1;min-width:0}
.sg-art-l>.sel-btn>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
/* lecture de facture : « choisissez l'article » encadre la liste d'articles ; « vérifiez l'unité » encadre quantité et unité (orange, sans fond) */
.sg-ia-choisir:not(.sg-ia-unite) .sg-art+.sel-btn,.sg-ia-unite .sg-u+.sel-btn,.voile .sg-ia-unite .sg-n{border-color:var(--sh-orange,#f59e0b);box-shadow:0 0 0 1px var(--sh-orange,#f59e0b)}
/* n° de lot et date dans un même bloc ; empilés quand la colonne Temp. °C est là */
.sg-lot-in{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px}
/* 13/11 (vu par la direction en réceptionnant) : le message d'erreur du n° de lot ou de la date passe sous le bloc, sur toute sa largeur,
   sans l'élargir (la ligne passait sur deux rangées) ; les autres champs de la ligne restent alignés en haut tant qu'un message est affiché */
.sg-lot-in>.sg-ln{grid-area:1/1}.sg-lot-in>.sg-ld{grid-area:1/2}
.sg-lot-in>.chp-err{grid-area:2/1/3/-1;margin:0;contain:inline-size}
#sg-tb>tr:has(.chp-err)>td:not(.sg-c-sup){align-self:flex-start}
/* 1273 (lot 3, 13/11) : réception — état de chaque ligne, heure de livraison, camion ; inventaire — pleins + entamé, à jeter, zones */
.sg-livr{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:end}.sg-livr>div{min-width:180px}
.sg-et .case{margin:0;white-space:nowrap}
.sg-et-z{display:grid;gap:4px;margin-top:6px;min-width:180px}.sg-et-z input,.sg-et-z select{margin:0}
.sg-et-rem{display:flex;gap:4px}.sg-et-rem input{width:90px}.sg-et-ref input{width:130px}
.sg-et-ph{justify-self:start}
.iv-q{display:inline-flex;align-items:center;gap:6px;justify-content:flex-end}.iv-q input{width:80px;text-align:right;margin:0}.iv-q .petit{min-width:44px;text-align:left}.iv-tot{display:block;text-align:right;margin-top:2px}
.iv-tbl .iv-j{white-space:nowrap}
.il-zones{display:flex;flex-wrap:wrap;align-items:center;gap:6px;flex-basis:100%}
.nt-jours>div{display:flex;flex-wrap:wrap;gap:6px 14px}.nt-jours .case{margin:0}   /* 1274 */
/* 13/11 (charte v2.22) : gestes du stock à 1 080 px — champs du haut en grille de 3, libellé au-dessus de chaque champ */
.sg-tete{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px;align-items:start;margin:4px 0 12px}
.sg-tete[hidden]{display:none}
.sg-ch{display:flex;flex-direction:column;gap:6px;min-width:0}
.voile .sg-ch>label{margin:0}
.voile .sg-ch>input,.voile .sg-ch>select{width:100%;margin:0}
.sg-ch>.sel-btn{width:100%}
.sg-ch-l{display:flex;align-items:center;gap:8px;min-width:0}
.sg-ch-l>.sel-btn,.voile .sg-ch-l>input{flex:1 1 auto;width:auto;min-width:0;margin:0}
.sg-ch-l>.btn{flex:none;margin:0}
.sg-ch-2{grid-column:span 2}
.sg-ch>.sg-pq-b{align-self:flex-start}
@media (max-width:760px){.sg-tete{grid-template-columns:minmax(0,1fr)}.sg-ch-2{grid-column:auto}}
/* une ligne d'article sur deux rangées : article · quantité · retirer, puis (sg-br) emplacement, température, vers, lot, motif, montant, état */
.sg-lignes-z{margin-top:8px;border-top:1px solid var(--sh-border)}
.sg-lignes,.sg-lignes>tbody{display:block;width:100%}
.sg-lignes tr{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 16px;padding:12px 0;border-bottom:1px solid var(--sh-border)}
.sg-lignes td{display:flex;flex-direction:column;gap:4px;min-width:0;padding:0;border:0}
.sg-lignes td[hidden]{display:none}
.sg-cl{font-size:12px;font-weight:500;color:var(--sh-muted-foreground)}
.voile .sg-lignes td>select,.voile .sg-lignes td>input{width:100%;margin:0}
.sg-lignes td>.sel-btn{width:100%}
.sg-c-art{flex:1 1 380px}
.sg-c-q{flex:0 1 300px}
.voile .sg-q>input{width:90px}
.sg-c-sup{flex:none;margin-left:auto}
.sg-lignes td.sg-br{flex-basis:100%;height:0;overflow:hidden}
.sg-c-emp{flex:0 1 560px}
#sg-z-dest{margin-top:16px}
.sg-c-vers{flex:1 1 220px}
.sg-c-mot{flex:0 1 250px}
.sg-c-pre{flex:1 1 200px}
.sg-lignes tr:has(.sg-c-mot:not([hidden])) .sg-c-emp{flex:0 1 400px}   /* perte : emplacement, motif et précision sur la même rangée */
.sg-lignes tr:has(.sg-c-prix) .sg-c-emp{flex:1 1 220px;max-width:420px}   /* réception : emplacement, température, lot, montant et état sur la même rangée */
.sg-lignes tr:has(.sg-c-prix) .sg-c-t{flex:0 0 130px}
.sg-lignes tr:has(.sg-c-prix) .sg-c-prix{flex:0 0 120px}
.sg-lot>.petit{display:flex;align-items:center;min-height:36px}
.sg-c-t{flex:0 0 160px}
.sg-c-lot{flex:0 1 auto}
.sg-c-prix{flex:0 0 130px}
.sg-c-et{flex:0 1 auto;justify-content:flex-end}
.sg-c-et:has(.sg-bon:not(:checked)){flex:1 1 100%}
.sg-c-et:has(.sg-bon:not(:checked)) .sg-et-z:not([hidden]){display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.sg-c-et .sg-et-z>.sel-btn{flex:0 0 220px}
.voile .sg-c-et .sg-et-note{flex:1 1 240px;width:auto}
.sg-c-et .case{min-height:36px;display:inline-flex;align-items:center;gap:8px}
/* liste des inventaires sous les tuiles */
.art-inv-filtre{margin:4px 0 8px}
/* barre de la sélection : fond de carte (mode sombre compris) */
.art-sel{background:var(--sh-card)}
/* photos : « Principale » en haut à gauche (le crédit Open Food Facts garde le bas) ; coche alignée sur la loupe (8 px) */
.ph-case .ph-badge{top:8px;bottom:auto;left:8px}
.ph-coche{top:8px}
/* revue alimentaire 11/11 — Production (recettes, jour, courses, commandes) */
/* charte v1.63 : manque de stock, hausse de prix = orange en contour, jamais un fond ; le rouge reste pour ce qui bloque */
.prv-barre i.manque{background:var(--sh-orange)}
.prd-page .fe-alerte{background:var(--sh-card);border-color:var(--sh-orange)}
.prd-page .fe-alerte h3 .ms{color:var(--sh-orange-fonce)}
.crs-couv-t{display:flex;align-items:center;gap:6px;margin:10px 0 2px}.crs-couv-t .ms{color:var(--sh-vert-fonce,var(--sh-vert))}.crs-couv{margin:2px 0 0;font-size:13px;color:var(--sh-muted-foreground)}   /* 13/11 : articles couverts par une commande en cours (Besoins & courses) */
.crs-hausse{border-color:var(--sh-orange)}
.crs-hausse h3 .ms{color:var(--sh-orange-fonce)}
.crs-bons{display:inline-flex;flex-wrap:wrap;gap:8px}
/* « Tous les besoins du choix » replié */
.crs-tous>summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none}
.crs-tous>summary::-webkit-details-marker{display:none}
.crs-tous>summary .cf-titre{margin:0}
.crs-tous[open]>summary{margin-bottom:12px}
.crs-tous[open] .crs-chev{transform:rotate(180deg)}
/* écran de la cuisine : créneaux repliés (responsables) */
.ecr-cren-d>summary{cursor:pointer}
.ecr-cren-b{margin:8px 0 0}
/* mode cuisine : cibles de 56 px (charte), volets ouverts depuis la tablette compris */
.cui .btn,.cui-og,.cui-seg button,button.cui-qui,.cui .lien-btn,body:has(#cui) .voile .panneau .btn,body:has(#cui) .voile .panneau .lien-btn{min-height:56px}
/* 16/11 (tablette, barre du haut ; demande de la direction) : le titre gardait 15 px à 1 024 px et 85 px à 1 280 px (tout sur une ligne),
   et sous 700 px « Quitter » tombait seul sur une 4e rangée. Jusqu'à 1 439 px : titre, heure et « Quitter » sur la 1re rangée ; onglets et agent
   en dessous (une rangée chacun sous 700 px). Au-delà, tout tient sur une ligne. */
@media (max-width:1439px){.cui-haut{flex-wrap:wrap;row-gap:8px}.cui-haut .cui-titre{flex:1 1 0;order:1}.cui-haut .cui-heure{order:2}.cui-haut #cui-quitter{order:3}.cui-haut .cui-onglets{order:5}.cui-haut .cui-agent{order:6;margin-right:0}}
@media (min-width:701px) and (max-width:1439px){.cui-haut::before{content:"";order:4;flex-basis:100%;height:0;margin-top:-8px}}
@media (max-width:700px){.cui-haut .cui-onglets,.cui-haut .cui-agent{flex-basis:100%}}
/* 16/11 : largeur de téléphone (sous 480 px) — les trois onglets débordaient, « J'ai fini » passait sur une 4e rangée, le titre se coupait : onglets, boutons et titre un peu resserrés. */
@media (max-width:480px){.cui-haut{padding:10px;column-gap:8px}.cui-titre-t b{font-size:17px}.cui-titre-t small{font-size:13px}.cui-titre .cui-logo{width:34px;height:34px}.cui-heure{font-size:17px}.cui-onglets{gap:6px}.cui-og{padding:0 10px;gap:6px;font-size:15px}.cui-og .ms{font-size:18px}.cui-agent{gap:6px}.cui-agent > .btn{padding:0 12px}}
@media (max-width:1180px){#cui-quitter{width:56px}}
@media (max-width:1023px){.cui-pets li{flex-wrap:wrap}.cui-pet-a{margin-left:auto}}
/* Production du jour sur téléphone : titre, régimes et boutons de la carte passent à la ligne */
@media (max-width:700px){.prd-page .cf-entete{flex-wrap:wrap;gap:8px}.prd-page .cf-entete .cf-titre{flex:1 1 100%}.prd-page .prd-actes{display:flex;flex-wrap:wrap;gap:8px}}
/* revue alimentaire 11/11 — Menus, Livraisons, Facturation */
.lv-abs{color:var(--sh-orange-fonce)}   /* absents : avertissement orange ; refusées aussi en orange (.lv-ko, charte v2.12) */
.lv-alerte-corr.fe-alerte,.fa-avert.fe-alerte{background:var(--sh-card);border-color:var(--sh-orange)}   /* avertissement orange sans fond rempli */
.fa-avert.fe-alerte p:first-child{margin-top:0}
@media (max-width:1023px){.pr-tour,.pr-ecran{flex-wrap:wrap;row-gap:6px}.pr-tour-det{flex:1 1 220px}.pr-ecran-vu{flex:1 1 160px}}
@media (max-width:640px){.pr-tour-nom{min-width:0}}
@media (max-width:480px){.lc-jour{flex-wrap:wrap;row-gap:6px}}
@media (pointer:coarse){.lc-jour .btn-icone{width:44px;height:44px}.lc-jour .dt-champ{height:44px!important}}   /* flèches et champ date à la même hauteur au doigt */
@media (hover:none){#pm2-corps .pl2-plus{opacity:1}}   /* « + » de la vue Mois visible sans survol (tablette, téléphone) */
/* 12/11 (charte v1.95) : tuiles de compteurs repliées en pastilles libellées quand on descend dans la liste (grilleTuiles) ;
   même point de couleur que la tuile, zéro en grisé, pastille choisie marquée, « Garder réduit » mémorisé par liste */
.tp-reduit > .lc-hote-tuiles{display:none}
.tp-reduit{position:sticky;top:var(--haut-entete,48px);transition:top .2s ease;z-index:4;padding-bottom:6px;background:var(--sh-background,var(--bg,#fff))}   /* page qui défile en entier : les pastilles restent sous l'en-tête (48 px) */
.tp-barre{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;padding:2px 0}
.tp-barre[hidden]{display:none}
.tp-p{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border:1px solid var(--sh-border);border-radius:999px;background:var(--sh-card);font:inherit;font-size:13px;line-height:16px;color:var(--sh-muted-foreground);text-decoration:none;white-space:nowrap}
.tp-p b{font-weight:600;font-variant-numeric:tabular-nums;color:var(--sh-foreground)}
.tp-p.r::before,.tp-p.o::before,.tp-p.j::before,.tp-p.g::before{content:"";width:8px;height:8px;border-radius:50%;flex:0 0 auto}
.tp-p.r::before{background:var(--sh-destructive)}.tp-p.o::before{background:#f7ad71}.tp-p.j::before{background:#f6dcae}.tp-p.g::before{background:#6dbd8d}
.tp-p.nul{opacity:.55}
:is(a,button).tp-p{cursor:pointer;transition:border-color .15s,box-shadow .15s}
:is(a,button).tp-p:hover{border-color:var(--sh-ring)}
:is(a,button).tp-p:focus-visible{outline:none;box-shadow:var(--anneau)}
button.tp-p.sel{border-color:var(--sh-primary);box-shadow:var(--anneau);opacity:1}
.tp-garder{margin-left:auto;height:28px}
/* 1240 (charte v1.98) : fiche article › Historique — graphique de gestion du stock et carte de chaleur des sorties */
.fa-crb{display:grid;gap:16px;margin-bottom:16px}
.crb-tete{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.carte .crb-tete h3{margin:0}
.crb-resume{margin:8px 0 0;line-height:1.6}
.crb-graphe{height:340px;margin-top:8px}
.crb-chaleur{height:260px;margin-top:8px}
.crb-note{margin:8px 0 0;color:var(--sh-muted-foreground)}
@media (max-width:640px){.crb-graphe{height:300px}.crb-chaleur{height:240px}}
/* 1370 (charte v2.39) : graphique du stock — titre + ⓘ, bascule Graphique · Grille, filtres, calques, mouvements du jour, grille, menu « … » en bas à droite */
.crb-titre{display:flex;align-items:center;gap:4px;min-width:0}
.crb-droite{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.crb-outils{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.crb-filtres{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.crb-calques{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.crb-calques-t{font-size:12px;font-weight:500;color:var(--sh-muted-foreground);margin-right:2px}
.crb-cq{height:28px;display:inline-flex;align-items:center;gap:6px;padding:0 10px;border:1px solid var(--sh-border);border-radius:999px;background:var(--sh-card);color:var(--sh-muted-foreground);font:inherit;font-size:12px;font-weight:500;cursor:pointer;transition:background .15s,color .15s}
.crb-cq i{width:8px;height:8px;border-radius:2px;flex:none;opacity:.35}
.crb-cq:hover{background:var(--sh-accent)}
.crb-cq[aria-pressed="true"]{color:var(--sh-foreground);border-color:var(--sh-input);background:var(--sh-accent)}
.crb-cq[aria-pressed="true"] i{opacity:1}
.crb-cq:focus-visible{outline:none;box-shadow:var(--anneau)}
.crb-mvt{height:150px;margin-top:4px}
.crb-tbl{max-height:440px;overflow:auto;margin-top:8px;border:1px solid var(--sh-border);border-radius:8px}
.crb-tbl .tbl thead th{position:sticky;top:0;background:var(--sh-card);z-index:1}
.crb-pied{display:flex;align-items:flex-end;justify-content:space-between;gap:8px}
.crb-pied .crb-note{flex:1;min-width:0}
.crb-pied .lc-plus{margin:0 -6px -6px 0}
.crb-filtre{color:var(--sh-muted-foreground)}
.crb-bloc{display:flex;flex-direction:column;height:100%;min-height:0}
.crb-bloc .crb-resume{margin:0 0 4px}
.crb-bloc-g{flex:1;min-height:180px}
@media (max-width:640px){.crb-mvt{height:130px}.crb-droite{width:100%}}
/* 12/11 (charte v1.99, direction : gagner de la place dans les listes) */
/* tuiles repliées : les onglets qui les suivent passent dans la ligne des pastilles (onglets à gauche, pastilles à droite) */
.tp-ps{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#app .tp-barre > .onglets.tp-og{margin:0 auto 0 0;flex:0 0 auto}
/* filtres de colonnes repliés : l'entonnoir en tête de la colonne des cases ouvre la ligne « Filtrer… » ; point = filtre saisi */
.tabulator.lc-filtres-ferme .tabulator-header .tabulator-header-filter{display:none}
.lc-filtres-bt{position:absolute;right:0;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:20px;height:20px;padding:0;margin:0;border:0;border-radius:4px;background:transparent;color:var(--sh-muted-foreground);cursor:pointer;vertical-align:middle}
.lc-filtres-bt .ms{font-size:16px}
.lc-filtres-bt:hover{background:var(--sh-accent);color:var(--sh-foreground)}
.lc-filtres-bt:focus-visible{outline:none;box-shadow:var(--anneau)}
.lc-filtres-bt[aria-pressed="true"]{color:var(--sh-foreground);background:var(--sh-accent)}
.lc-filtres-bt.actif::after{content:"";position:absolute;top:1px;right:1px;width:6px;height:6px;border-radius:50%;background:var(--sh-primary)}
/* 12/11 : sélecteur renforcé (body …) — en mode dense, « body.dense … .tabulator-col-content{padding:4px 8px} » l'emportait ;
   l'entonnoir, calé à droite d'une zone de 46 px, recouvrait alors la case. Marges nulles : case 16 px alignée sur celles des
   lignes, entonnoir 20 px à sa droite, 3 px d'écart, en mode normal comme en dense. */
body .tabulator .tabulator-header .tabulator-col:has(.lc-filtres-bt) .tabulator-col-content{padding-left:0;padding-right:0}
.tabulator .tabulator-col:has(.lc-filtres-bt) .tabulator-col-title{position:relative;display:flex;align-items:center;justify-content:center;overflow:visible;min-height:20px}
/* une seule page : le pied devient une fine ligne avec le seul nombre d'éléments */
.tabulator.lc-une-page ~ .sh-pag,.sh-pag.al-pag-une{min-height:24px;padding-top:2px;padding-bottom:2px}
.tabulator.lc-une-page ~ .sh-pag .sh-pag-droite,.sh-pag.al-pag-une .sh-pag-droite{display:none}
.tabulator.lc-une-page ~ .sh-pag .sh-pag-compte,.sh-pag.al-pag-une .sh-pag-compte{font-size:12px;line-height:18px}
/* 12/11 (charte v2.00 § 8) : en-tête de fiche compact au défilement — la ligne des onglets colle sous l'en-tête du portail (48 px)
   et prend la petite photo, le nom et la pastille d'état ; sous 640 px, nom et actions seulement */
.fiche-ligne-collante{position:sticky;top:var(--haut-entete,48px);transition:top .2s ease;z-index:6;background:var(--sh-background,var(--fond,#fff))}
.fiche-mini{display:none}
.fiche-compacte .fiche-onglets-ligne{flex-wrap:nowrap;min-height:48px;box-shadow:0 1px 0 var(--sh-border)}
.fiche-compacte .fiche-mini{display:flex;align-items:center;gap:8px;flex:0 1 260px;min-width:0}
.fiche-mini b{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;line-height:20px;font-weight:600;color:var(--sh-foreground)}
.fiche-mini-ava{display:flex;align-items:center;justify-content:center;flex:none;width:28px;height:28px;overflow:hidden;border-radius:6px;background:var(--sh-muted);color:var(--sh-muted-foreground)}
.fiche-mini-ava img{width:100%;height:100%;object-fit:cover}
.fiche-mini-ava .ms{font-size:16px;width:16px;height:16px}
.fiche-mini .pastille{flex:none}
.fiche-compacte .fiche-onglets-ligne .fiche-onglets{flex:1 1 auto;min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.fiche-compacte .fiche-onglets-ligne .fiche-onglets::-webkit-scrollbar{display:none}
.fiche-compacte .fiche-onglets-ligne .fiche-actions{flex:0 0 auto}
.fiche-page .fca-rail{top:calc(var(--haut-entete,48px) + 56px)}   /* sous l'en-tête du portail (48) et la ligne collée des onglets (48) */
/* 15/11 (fiche recette) : les pastilles collées passent devant la colonne de raccourcis, qui commence juste dessous (--tp-haut :
   hauteur réelle des pastilles, mesurée par grilleTuiles ; sans pastilles, 64 px comme avant) */
.prv-page > .tp-reduit{z-index:6}
.prv-page .fca-rail{top:calc(var(--haut-entete,48px) + var(--tp-haut,8px) + 8px);transition:top .2s ease}
@media (prefers-reduced-motion:reduce){.prv-page .fca-rail{transition:none}}
@media (max-width:640px){.fiche-compacte .fiche-onglets-ligne .fiche-onglets{display:none}.fiche-compacte .fiche-mini{flex:1 1 auto}}
/* 12/11 (charte v2.04) : barre du bas des fiches seulement en modification (« Annuler » + « Enregistrer ») ; masquée en lecture et
   quand elle n'a rien à enregistrer (le retour à la liste reste le lien du haut de la fiche) */
.fiche-lecture .fiche-barre,.fiche-barre:not(:has(.btn[type="submit"])){display:none}
/* 12/11 (charte v2.04) : titres de colonnes collés des tableaux simples, sous l'en-tête du portail ou la barre compacte d'une fiche */
#app main{--tbl-haut:var(--haut-entete,48px)}
#app .fiche-page{--tbl-haut:calc(var(--haut-entete,48px) + 48px)}
.tbl-scroll.tbl-ajuste{overflow:visible}
table.tbl.tbl-colle > thead > tr > th{position:sticky;top:var(--tbl-haut);z-index:2;background:var(--sh-card,var(--bg-fbfbfc,#fbfbfc));box-shadow:inset 0 -1px 0 var(--sh-border,var(--trait))}
/* 1242 (charte v2.06) : liste des articles, vue « Graphique » (valeur du stock, articles en alerte, pics de sorties) */
.gl-graph{margin-top:4px}
.gl-graph.cache{display:none}
.carte .crl-sous{margin:16px 0 0;font-size:14px;font-weight:600}
.crl-alertes{height:130px}
/* 12/11 (charte v2.07) : phrase d'aide sous le titre repliée derrière un « ⓘ » (bulle au survol, au clic, au doigt) */
.ti-zone{position:relative}
.ti-zone > .ti-bulle{display:none}
.ti-zone.ti-ouvert > .ti-bulle{display:block;position:absolute;left:0;top:calc(100% + 4px);z-index:40;width:max-content;max-width:min(440px,calc(100vw - 32px));margin:0;padding:10px 12px;border:1px solid var(--sh-border);border-radius:var(--r-md,8px);background:var(--sh-popover,var(--sh-card,#fff));box-shadow:0 8px 24px rgb(0 0 0 / .12);color:var(--sh-foreground);font-size:13px;line-height:18px;font-weight:400;white-space:normal}
.ti-bt{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin-left:6px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--sh-muted-foreground);cursor:pointer;vertical-align:middle}
.ti-bt .ms{font-size:16px;width:16px;height:16px}
.ti-bt:hover,.ti-zone.ti-ouvert .ti-bt{background:var(--sh-accent);color:var(--sh-foreground)}
.ti-bt:focus-visible{outline:none;box-shadow:var(--anneau)}
/* 12/11 (charte v2.10 § 4) : barre du haut escamotable — masquée en descendant, revient au moindre mouvement vers le haut ; les
   éléments collés suivent --haut-entete (48 px, 0 quand elle est masquée) */
:root{--haut-entete:48px}
html.topbar-cachee{--haut-entete:0px}
.topbar{transition:transform .2s ease}
html.topbar-cachee .topbar{transform:translateY(-100%)}
table.tbl.tbl-colle > thead > tr > th{transition:top .2s ease}
html.topbar-cachee .param-nav{top:16px}html.topbar-cachee .rf-fiche{top:28px}html.topbar-cachee .cer-apercu,html.topbar-cachee .prv-liste{top:24px}
@media (prefers-reduced-motion:reduce){.topbar,.tp-reduit,.fiche-ligne-collante,table.tbl.tbl-colle > thead > tr > th{transition:none}}
/* 12/11 (charte v2.10) : bandeau du téléphone réduit à une ligne */
@media (max-width:700px){.bandeau-telephone{align-items:center;padding:6px 10px;margin-bottom:12px;font-weight:500;white-space:nowrap;overflow:hidden}.bandeau-telephone > span:last-child{overflow:hidden;text-overflow:ellipsis}.bandeau-telephone > .ms{margin-top:0}}
/* 12/11 (charte v2.10) : caméra au bout du champ « Rechercher ou scanner » des Articles (nommée au survol) */
.chip-search .chip-cam{display:inline-flex;align-items:center;justify-content:center;flex:none;width:28px;height:28px;margin-left:2px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--sh-muted-foreground);cursor:pointer}
.chip-search .chip-cam .ms{font-size:16px;width:16px;height:16px}
.chip-search .chip-cam:hover{background:var(--sh-accent);color:var(--sh-foreground)}
.chip-search .chip-cam:focus-visible{outline:none;box-shadow:var(--anneau)}
/* 12/11 (charte v2.11) : tuiles de compteurs plus basses (72 px au lieu de 104) — nombre et libellé resserrés */
.lc-hote-tuiles .al-kpi{padding:10px 16px;gap:2px}
.lc-hote-tuiles .al-kpi .n{font-size:22px;line-height:28px}
@container (min-width:250px){.lc-hote-tuiles .al-kpi .n{font-size:24px;line-height:30px}}
/* 15/11 (charte v2.70, § 9.16) : « i » du détail du calcul dans le coin haut droit d'une tuile de compteurs ; masqué en mode « modifier » */
.lc-hote-tuiles .tp-i{position:absolute;top:6px;right:6px;margin:0;z-index:1}
.lc-hote-tuiles .tp-i[hidden],.lc-grille.perso .tp-i{display:none}
/* repliées en pastilles (téléphone, « Réduire les compteurs ») : le « i » suit sa pastille */
.tp-pg{display:inline-flex;align-items:center;gap:0}
.tp-pg .tp-i{width:28px;height:28px;margin:0}
.tp-pg .tp-i[hidden]{display:none}
.lc-hote-tuiles .al-kpi .l{font-size:13px;line-height:18px}
/* 12/11 (charte v2.13, relevé tablette / téléphone) */
/* 1. sous 760 px : tuiles en pastilles d'office (pas de bouton « Garder réduit » : rien à garder) */
.tp-etroit .tp-garder{display:none}
/* 2. listes au gabarit commun sous 1024 px : « Colonnes » et « Exporter » sont dans le ☰ ; la recherche prend la place libre */
@media (max-width:1023px){#app .barre-actions #gl-colonnes,#app .barre-actions .menu-wrap:has(> #gl-export){display:none}#app .barre-actions .ba-outils .chip-search{flex:1 1 200px;width:auto;min-width:0;max-width:none}}
/* 2 bis. téléphone : les outils de la barre suivent le titre sur la même ligne (2 rangées au lieu de 4) */
@media (max-width:640px){#app .barre-actions{gap:8px}#app .barre-actions > .ba-outils{display:contents}#app .barre-actions .ba-outils .chip-search{flex:1 1 120px}}
/* 3. fiche : le lien « ‹ Retour… » au bout de la ligne du nom (à la ligne seulement s'il manque de place) */
#app .fiche-tete{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px}
#app .fiche-tete > .fiche-titre{order:1;flex:1 1 auto;min-width:0}
#app .fiche-tete > .fiche-retour{order:2;margin:0 0 0 auto;white-space:nowrap}
/* 12/11 (charte v2.14) : en-tête de l'Accueil resserré au téléphone — titre seul sur sa ligne, « Personnaliser » (petit) au bout de la ligne d'information, phrase du
   jour en 14 px, ligne d'information en 12 px, marges réduites ; rien n'est replié (état du jour, toujours visible) */
@media (max-width:640px){
#app .entete.acc-tete{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;row-gap:4px;align-items:center;margin-bottom:12px}
#app .entete.acc-tete > div:first-child{display:contents}
#app .entete.acc-tete h1{grid-column:1 / -1;margin:0;font-size:22px;line-height:28px}
#app .entete.acc-tete > .entete-actions{grid-column:2;grid-row:3;margin:0;align-self:end}
#app .entete.acc-tete > .entete-actions .btn{height:32px;padding:0 10px;font-size:13px}
#app .entete.acc-tete p{grid-column:1 / -1;margin:0}#app .entete.acc-tete p:not(.acc-phrase){grid-column:1;grid-row:3}
#app .entete.acc-tete p.acc-phrase{font-size:14px;line-height:20px}
#app .entete.acc-tete p:not(.acc-phrase){font-size:12px;line-height:16px}
}

/* 1270 : « ① Je prends · ② Je cuisine · ③ Je rends » (remise, bilan) — frise, assistant une question par écran (tablette 56 px), validation */
.rmz-frise{display:flex;gap:8px;list-style:none;margin:0 0 16px;padding:0;counter-reset:none}
.rmz-frise li{flex:1;display:flex;align-items:center;gap:8px;min-height:48px;padding:8px 12px;border:1px solid var(--sh-border);border-radius:var(--r-md);background:var(--sh-card);color:var(--sh-muted-foreground);font-weight:600;font-size:16px}
.rmz-frise li .ms{font-size:20px}
.rmz-frise li.en{border-color:var(--sh-primary);color:var(--sh-foreground);box-shadow:0 0 0 1px var(--sh-primary)}
.rmz-frise li.fait{color:var(--sh-vert-fonce,#15803d)}
.rmz-num{display:inline-flex;align-items:center;justify-content:center;flex:none;width:28px;height:28px;border-radius:50%;background:var(--sh-muted);color:var(--sh-foreground);font-size:14px}
.rmz-frise li.en .rmz-num{background:var(--sh-primary);color:var(--sh-primary-foreground)}
.rmz-frise li.fait .rmz-num{background:var(--sh-vert-fonce,#15803d);color:#fff}
.rmz-frise li.fait .rmz-num .ms{font-size:16px}
.rmz-frise.rmz-compact{gap:4px;margin:8px 0 4px}
.rmz-frise.rmz-compact li{min-height:32px;padding:4px 8px;font-size:13px;gap:6px}
.rmz-frise.rmz-compact li .ms{font-size:16px}
.rmz-frise.rmz-compact .rmz-num{width:20px;height:20px;font-size:12px}
.rmz-carte{margin:4px 0 8px}.rmz-carte p{margin:0}
.rmz-ass{display:flex;flex-direction:column;gap:16px}
.rmz-ecran{display:flex;flex-direction:column;gap:16px}
.rmz-q-titre{margin:0;font-size:26px;line-height:32px;font-weight:700}
.rmz-q-aide{margin:0;display:flex;align-items:center;gap:8px;font-size:18px;color:var(--sh-muted-foreground)}
.rmz-btns{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.rmz-btns.rmz-col{grid-template-columns:1fr}
.rmz-choix{display:flex;align-items:center;justify-content:center;gap:12px;min-height:72px;padding:12px 20px;border:1px solid var(--sh-border);border-radius:var(--r-md);background:var(--sh-card);color:var(--sh-foreground);font:inherit;font-size:20px;font-weight:600;cursor:pointer;text-align:left}
.rmz-choix .ms{font-size:28px}
.rmz-choix:hover{background:var(--sh-accent)}
.rmz-choix.rmz-plein{background:var(--sh-primary);color:var(--sh-primary-foreground);border-color:var(--sh-primary)}
.rmz-choix.rmz-propose{border-color:var(--sh-primary);box-shadow:0 0 0 1px var(--sh-primary)}
.rmz-choix.rmz-propose::after{content:"Proposé";margin-left:auto;font-size:13px;font-weight:600;color:var(--sh-muted-foreground)}
.rmz-niv .rmz-choix{flex-direction:column;gap:10px}
.rmz-jauge{display:block;width:100%;height:12px;border-radius:6px;background:var(--sh-muted);overflow:hidden}
.rmz-jauge i{display:block;height:100%;background:var(--sh-foreground)}
.rmz-autre{display:flex;flex-direction:column;gap:8px}
.rmz-autre input{min-height:56px;font-size:20px}
.rmz-err{margin:0;min-height:20px;color:var(--sh-destructive);font-size:16px}
.rmz-tuiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.rmz-tuile{display:flex;flex-direction:column;gap:4px;align-items:flex-start;min-height:72px;padding:12px 16px;border:1px solid var(--sh-border);border-radius:var(--r-md);background:var(--sh-card);font:inherit;font-size:18px;cursor:pointer;text-align:left;color:var(--sh-foreground)}
.rmz-tuile small{font-size:14px;color:var(--sh-muted-foreground)}
.rmz-tuile.sel{border-color:var(--sh-primary);box-shadow:0 0 0 2px var(--sh-primary);background:var(--sh-accent)}
.rmz-agents{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.rmz-agent{display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 8px;border:1px solid var(--sh-border);border-radius:var(--r-md);background:var(--sh-card);font:inherit;cursor:pointer;color:var(--sh-foreground)}
.rmz-agent:hover{background:var(--sh-accent)}
.rmz-agent img,.rmz-ini{width:88px;height:88px;border-radius:50%;object-fit:cover}
.rmz-ini{display:flex;align-items:center;justify-content:center;background:var(--sh-muted);font-size:32px;font-weight:700}
.rmz-agent b{font-size:20px}.rmz-agent small{font-size:12px;color:var(--sh-muted-foreground)}
.rmz-pad{position:relative;height:260px;border:2px dashed var(--sh-border);border-radius:var(--r-md);background:#fff;touch-action:none}
.rmz-pad canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}
.rmz-pad-ligne{position:absolute;left:24px;right:24px;bottom:56px;border-bottom:1px solid #c8ccd6;pointer-events:none}
.rmz-liste{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;border:1px solid var(--sh-border);border-radius:var(--r-md);background:var(--sh-card)}
.rmz-liste li{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 16px;font-size:20px;border-top:1px solid var(--sh-border)}
.rmz-liste li:first-child{border-top:0}
.rmz-liste li>span:not(.ms){flex:1}
.rmz-liste li .ms{color:var(--sh-muted-foreground)}
.rmz-liste.rmz-liste-p li{min-height:44px;font-size:16px}
/* 1310 (lot 5 du compte rendu cuisine, 14/11) : matériel de la recette — ① Je prends, volet Remettre, fiche recette */
.rmz-q-sous{margin:20px 0 8px;font-size:18px;line-height:24px;font-weight:600;color:var(--sh-muted-foreground)}
.rmz-liste.rmz-mt li b{font-size:16px;font-weight:600;color:var(--sh-muted-foreground)}
.rmz-liste.rmz-mt li.rmz-mt-ko .ms,.rmz-liste.rmz-mt li.rmz-mt-ko b{color:var(--sh-orange-fonce,#b45309)}
.rmz-mt-note{display:flex;align-items:flex-start;gap:8px;margin:12px 0 0;padding:8px 12px;border:1px solid var(--sh-border);border-radius:var(--r-md);background:var(--sh-muted);font-size:14px}
.rmz-mt-note .ms{color:var(--sh-muted-foreground);font-size:20px}
.mt-q{width:100%;margin:0 0 8px}
.mt-liste{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.mt-liste li{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 0;border-top:1px solid var(--sh-border)}
.mt-liste li:first-child{border-top:0}
.mt-liste li .case{flex:1 1 260px;min-width:0}
.mt-et-z{flex:0 1 260px;min-width:180px}
.hy-sous-titre{margin:16px 0 4px}   /* 1330 : balances sous les thermomètres */
.mt-carte{list-style:none;margin:0 0 8px;padding:0}.mt-carte li{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 0;border-top:1px solid var(--sh-border)}.mt-carte li:first-child{border-top:0;padding-top:0}.mt-carte li>a{font-weight:500}
.rmz-bas{display:flex}
.rmz-gros{min-height:56px;font-size:18px;justify-content:center}
.rmz-bas .rmz-gros{min-width:180px}
.rmz-bandeau{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:18px}
.cui-alerte.rmz-info{border-color:var(--sh-border);color:var(--sh-foreground)}
.rmz-tbl .rmz-q{white-space:nowrap}
.rmz-tbl .rmz-q .prv-q{width:88px}
.rmz-mo{display:flex;flex-direction:column;gap:4px;margin-top:4px;align-items:flex-end}
.rmz-mo input{width:220px}
.rmz-tete-v{display:grid;grid-template-columns:160px minmax(0,320px);gap:16px;align-items:end;margin-bottom:12px}
.rmz-vol{min-height:420px}
@media (max-width:760px){.rmz-frise li span:last-child{display:none}.rmz-tete-v{grid-template-columns:1fr}.rmz-q-titre{font-size:22px;line-height:28px}}
/* 1270 : le titre de la question garde sa taille dans un volet et sur la tablette (les règles h2 du portail l'écrasaient à 18 px) */
.rmz-ass h2.rmz-q-titre,.panneau .rmz-ass h2.rmz-q-titre,#app .rmz-ass h2.rmz-q-titre{font-size:26px;line-height:32px;font-weight:700;margin:0}
.rmz-ass .rmz-q-aide{line-height:24px}
@media (max-width:760px){.rmz-ass h2.rmz-q-titre,.panneau .rmz-ass h2.rmz-q-titre,#app .rmz-ass h2.rmz-q-titre{font-size:22px;line-height:28px}}
/* 1271 : onglet « Écarts » (Production du jour) — ligne de recette dépliable, détail des remises */
.rmz-ec-ouvrable{cursor:pointer}.rmz-ec-ouvrable:hover{background:var(--sh-accent)}
.rmz-ec-ouvrable .ms{font-size:16px;vertical-align:-3px;margin-right:4px;transition:transform .15s}.rmz-ec-ouvrable.ouvert .ms{transform:rotate(90deg)}
.rmz-ec-det>td{background:var(--sh-muted);padding:8px 12px}.rmz-ec-rem{margin:0 0 12px}.rmz-ec-rem p{margin:0 0 6px}.rmz-ec-rem .tbl{background:var(--sh-card)}
/* 12/11 (charte v2.18) : « Sortir » › « Pourquoi ? » — pour un usage ou perte, deux boutons à choix unique sous le titre */
.sg-pq{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.sg-pq-l{font-weight:600}
.sg-pq-b{display:inline-flex;border:1px solid var(--sh-border);border-radius:var(--r-md);overflow:hidden}
.sg-pq-b button{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border:0;background:var(--sh-card);color:var(--sh-foreground);font:inherit;font-weight:500;cursor:pointer}
.sg-pq-b button+button{border-left:1px solid var(--sh-border)}
.sg-pq-b button .ms{font-size:16px}
.sg-pq-b button.sel{background:var(--sh-primary);color:var(--sh-primary-foreground)}
.sg-pq-b button:focus-visible{outline:2px solid var(--sh-ring);outline-offset:-2px}
/* 13/11 : une ligne qui ouvre un volet (points de passage, secteurs, trajets) montre la main au survol ; son nom se souligne, comme un lien */
tr.cliquable{cursor:pointer}
tr.cliquable:hover .ppa-nom,tr.cliquable:hover .sect-nom,tr.cliquable:focus-visible .ppa-nom,tr.cliquable:focus-visible .sect-nom{text-decoration:underline;text-underline-offset:3px}
/* 1290 (13/11, charte v2.31) : minuteurs d'étape — schéma de la recette, tablette (bande toujours visible, bloc de l'étape, bip + l'écran
   scintille à la fin), suivi en direct de Production du jour */
.prv-duree{display:inline-flex;align-items:center;gap:4px}.prv-duree .ms{font-size:16px}
.prv-pan-duree #pe-mnz .case{margin-top:47px}
@media (max-width:759px){.prv-pan-duree #pe-mnz .case{margin-top:8px}}
.mnt-bande{display:flex;flex-wrap:wrap;gap:8px;padding:8px 20px;border-bottom:1px solid var(--sh-border);background:var(--sh-card);flex:none}
.mnt-bande[hidden]{display:none}
.mnt-puce{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--sh-border);border-radius:999px;background:var(--sh-background);padding:2px 4px 2px 2px}
.mnt-puce-t{display:inline-flex;align-items:center;gap:8px;border:0;background:none;color:inherit;font:inherit;font-size:17px;padding:6px 10px;cursor:pointer;border-radius:999px}
.mnt-puce-t .ms{font-size:20px}
.mnt-puce-t b{font-variant-numeric:tabular-nums;font-size:20px}
.mnt-puce.pause{opacity:.75}
.mnt-puce.sonne{border-color:var(--sh-destructive);background:var(--sh-destructive);color:var(--sh-primary-foreground,#fff)}
.cui .mnt-vu{min-height:40px;border-radius:999px}
.mnt-etape{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;margin:0 0 12px;padding:12px 16px;border:2px solid var(--sh-border);border-radius:var(--r-md);background:var(--sh-card)}
.mnt-etape-h{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.mnt-etape-h .ms{font-size:32px}
.mnt-grand{font-size:44px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.mnt-qui{font-size:16px;color:var(--sh-muted-foreground)}
.mnt-btns{display:flex;flex-wrap:wrap;gap:8px}
.mnt-etape.pause .mnt-grand{color:var(--sh-muted-foreground)}
.mnt-etape.sonne{border-color:var(--sh-destructive)}
.mnt-etape.sonne .mnt-grand,.mnt-etape.sonne .mnt-etape-h .ms{color:var(--sh-destructive)}
.mnt-pret{border-style:dashed;justify-content:flex-start}
.cui-plat-mnt{display:inline-flex;align-items:center;gap:4px;font-size:15px;color:var(--sh-foreground)}.cui-plat-mnt .ms{font-size:18px}
.cui-plat-mnt b{font-variant-numeric:tabular-nums}
.cui-plat-mnt.sonne{color:var(--sh-destructive);font-weight:600}
/* l'écran scintille : un cadre rouge qui clignote autour de la tablette tant qu'un minuteur sonné n'est pas vu */
.cui.mnt-scintille::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:2;border:10px solid var(--sh-destructive);animation:mnt-scintille 1s steps(2,jump-none) infinite}
@keyframes mnt-scintille{0%{opacity:1}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.cui.mnt-scintille::after{animation:none;opacity:.8}}
@media (max-width:759px){.mnt-grand{font-size:34px}.mnt-bande{padding:8px 12px}}
/* Production du jour : suivi en direct dans chaque carte */
.pj-tuiles:empty{display:none}
.msj-zone:empty{display:none}
.msj{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 12px;margin:4px 0 12px}
.msj-haut{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:14px}
.msj-etape{color:var(--sh-foreground)}
.msj-fin{color:var(--sh-muted-foreground)}.msj-fin b{color:var(--sh-foreground);font-weight:600}
.msj-barre{height:8px;border-radius:4px;background:var(--sh-muted);overflow:hidden}
.msj-barre i{display:block;height:100%;border-radius:4px;background:var(--sh-vert,#16a34a);transition:width .6s ease}
.msj-a_commencer .msj-barre i{background:var(--sh-muted-foreground)}
.msj-pct{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;min-width:40px;text-align:right}
.msj-mnts{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px}
.msj-mnt{display:inline-flex;align-items:center;gap:4px;font-size:13px;border:1px solid var(--sh-border);border-radius:999px;padding:2px 10px 2px 6px}
.msj-mnt .ms{font-size:16px}.msj-mnt b{font-variant-numeric:tabular-nums}
.msj-mnt.sonne{border-color:var(--sh-destructive);color:var(--sh-destructive);font-weight:600}
.msj-mnt.pause{opacity:.7}
/* 1300 (lot A, charte v2.30) : bénéficiaires d'un point, « C'est peut-être un point qui existe déjà » */
.ppa-benefs{margin:8px 0 12px;display:flex;flex-direction:column;gap:8px}
.ppa-benefs .cf-titre{margin:0}
.ppa-benef{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid var(--sh-border);border-radius:8px}
.ppa-benef>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.ppa-benef b{font-weight:600}
.ppa-benef .pastille{align-self:flex-start}
.lv-attente{border:1px dashed var(--sh-muted-foreground);background:var(--sh-card)}
.lv-rattache{display:flex;align-items:center;gap:6px;padding:8px 10px;border-radius:8px;background:var(--sh-muted);font-size:13px}
.lv-dbl{display:flex;flex-direction:column;gap:8px;margin:10px 0;padding:10px 12px;border:1px solid #fdba74;background:#fff7ed;border-radius:10px}
.lv-dbl-t{display:flex;align-items:center;gap:6px;margin:0;color:#9a3412}
.lv-dbl-c{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:8px 10px;background:var(--sh-card);border:1px solid #fed7aa;border-radius:8px}
.lv-dbl-c>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.lv-dbl-b{display:flex;gap:6px;flex-wrap:wrap;flex:none}
.lv-dbl-f{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0}
.lv-dbl-f .petit{color:#7c2d12}
/* Ressources › Clients et › Fournisseurs (lot 1 de la charte v2.33) : fiche (lazy/pageTiers.js) */
.ti-retour{margin:0 0 4px}
.ti-etat{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.ti-lieux,.ti-abos{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.ti-lieux li{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:6px 0;border-bottom:1px solid var(--sh-border,#e5e7eb)}
.ti-lieux li:last-child{border-bottom:0}
.ti-lieux .ti-l-nom{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.ti-lieux li > .petit{flex:1;min-width:160px}
.ti-pied{margin-top:12px}
.ti-comptes{display:flex;align-items:center;gap:8px;margin:0 0 10px}
.ti-genre{margin-bottom:10px}
.ti-jours{display:flex;flex-wrap:wrap;gap:6px 14px;border:0;padding:0;margin:0 0 6px}
.ti-jours legend{font-weight:600;margin-bottom:6px;padding:0}
.ti-dbl{margin-top:12px;padding:10px 12px;border:1px solid #c2610c;border-radius:8px}
.ti-dbl ul{margin:6px 0;padding-left:18px}
.ti-carte{margin:0 0 10px}
.ti-carte b .ms{font-size:18px;vertical-align:-4px;margin-right:4px;color:#c2610c}
.ti-carte p{margin:4px 0 0}

/* Volets latéraux — audit du 15/11/2026 (charte v2.35, § 9.3) */
body:not([data-ecran^="planning"]):has(>.voile){overflow:hidden}   /* C3 : la page derrière ne défile plus */
.voile>.panneau{overscroll-behavior:contain;transition:width .2s ease}
.voile>.panneau:focus{outline:none}
.voile>.panneau h2.pan-tete:has(.pan-agr){padding-right:86px}
.pan-agr{position:absolute;right:44px;top:11px}
@media (max-width:640px){.pan-agr{display:none}.voile>.panneau h2.pan-tete:has(.pan-agr){padding-right:52px}}
/* Confirmations en fenêtre centrée (C2) : pied sans filet ni marges négatives */
.voile>.panneau.bv-dialog>.actions-bas:last-child{position:static;margin:20px 0 0;padding:0;border-top:0;background:none}
.voile>.panneau.bv-dialog h2{margin-bottom:0}
/* Assistant IA agrandi (⤢, charte v2.35) */
.ia-panel.ia-grand{width:min(720px,calc(100vw - 32px));height:calc(100vh - 72px)}
@media (max-width:640px){#ia-agr{display:none}}
/* Deux champs côte à côte dans un volet élargi (audit des volets, charte v2.35) */
.v-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;align-items:end}
@media (max-width:640px){.v-duo{grid-template-columns:1fr}}
.col-cases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}   /* Colonnes affichées : volet de 480 px, cases sur deux colonnes */
@media (max-width:640px){.col-cases{grid-template-columns:1fr}}
.so-form .duo{align-items:end}   /* deux champs côte à côte : alignés par le bas, même si un libellé passe sur deux lignes */
/* Production › Effectifs (lot 3 du moteur, charte v2.33) : grille jours × formules (lazy/pageEffectifs.js) */
.ef-grille th[scope=row]{white-space:nowrap;vertical-align:top}
.ef-grille td{padding:4px;vertical-align:top;min-width:112px}
.ef-grille th.ef-auj{color:var(--sh-primary,#23305E)}
.ef-case{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-height:84px;padding:8px 10px;border:1px solid var(--sh-border,#e5e7eb);border-radius:10px;background:var(--sh-card,#fff);text-align:left;cursor:pointer;font:inherit}
.ef-case:hover{border-color:var(--sh-primary,#23305E)}
.ef-case:focus-visible{outline:2px solid var(--sh-primary,#23305E);outline-offset:2px}
.ef-case.passe{opacity:.6}
.ef-case.tardif{border-color:#c2610c}
.ef-n{font-size:22px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.ef-u{font-size:12px;color:var(--sh-muted-foreground,#64748b)}
.ef-det{font-size:12px;color:var(--sh-muted-foreground,#64748b)}
.ef-etat{display:inline-flex;align-items:center;gap:3px;font-size:12px;color:var(--sh-muted-foreground,#64748b);margin-top:2px}
.ef-etat .ms{font-size:14px}
.ef-tard{margin-top:2px}
.ef-or{color:#c2610c}
.ef-per{font-weight:600;padding:0 6px}
.ef-pied{margin-top:10px}
.ef-bulle{max-width:360px}
.ef-liste{list-style:none;margin:6px 0;padding:0;display:grid;gap:4px;max-height:260px;overflow:auto}
.ef-liste li{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.ef-alerte{display:flex;gap:10px;align-items:flex-start;border:1px solid #c2610c;margin:0 0 12px}
.ef-alerte > .ms{color:#c2610c}
.lv-couv{display:inline-flex;align-items:center;gap:4px;margin-left:8px;font-size:12px}
.lv-couv input{width:64px}
.ef-nav{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
.ef-bulle{position:fixed;z-index:1200;width:360px;max-width:calc(100vw - 16px);background:var(--sh-popover,#fff);color:var(--sh-popover-foreground,inherit);border:1px solid var(--sh-border,#e5e7eb);border-radius:12px;box-shadow:0 10px 30px rgba(15,23,42,.18);padding:12px 14px;font-size:13px}
.ef-bulle .pl2-bt{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.ef-bulle .pl2-bt b{flex:1;font-size:14px}
.ef-bulle .pl2-bact{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
.ef-bulle p{margin:4px 0}
/* 1440 (PMS, lot 3) : traçabilité d un repas ou d un lot, en frise */
.tr-barq{border:1px solid var(--sh-border);border-radius:10px;padding:14px 16px;margin:0 0 16px;background:var(--sh-card)}
.tr-tete h3{margin:0 0 2px;font-size:16px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tr-frise{list-style:none;margin:12px 0 0;padding:0}
.tr-et{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;position:relative;padding:0 0 14px}
.tr-et:not(:last-child)::before{content:"";position:absolute;left:15px;top:30px;bottom:0;width:2px;background:var(--sh-border)}
.tr-ic{width:32px;height:32px;border-radius:50%;background:var(--sh-muted);color:var(--sh-foreground);display:flex;align-items:center;justify-content:center;font-size:18px}
.tr-c{min-width:0}
.tr-c h4{margin:5px 0 6px;font-size:14px}
.tr-c h5{margin:8px 0 4px;font-size:13px}
.tr-prod{border-left:3px solid var(--sh-border);padding:4px 0 4px 10px;margin:0 0 10px}
.tr-prod > div{margin:2px 0}
.tr-tbl td{vertical-align:top}
.tr-lot .btn.petit,.tr-prod .btn.petit,.tr-c .btn.petit{margin-left:6px;vertical-align:middle}
.tr-sous{margin:4px 0 0 12px;padding-left:8px;border-left:2px dashed var(--sh-border)}
/* 15/11 (affichage, signalé par la direction) : onglets Traçabilité et Contrôle sanitaire — deux cartes côte à côte (une sous 900 px),
   espacées ; champs empilés, libellé au-dessus, toutes les listes à pleine largeur ; « ou » en séparateur ; bouton détaché */
.tr-rapports{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
@media (max-width:900px){.tr-rapports{grid-template-columns:minmax(0,1fr)}}
#app .tr-rapports > .carte{margin:0;min-width:0}
#app .tr-rapports .carte label{display:block;margin:16px 0 6px;font-size:14px;font-weight:500;line-height:20px}
#app .tr-rapports .carte .cf-titre + label{margin-top:0}
#app .tr-rapports .carte input,#app .tr-rapports .carte select,#app .tr-rapports .carte .sel-btn{width:100%;margin:0}
.tr-ou{display:flex;align-items:center;gap:8px;margin:16px 0 0;font-size:13px;line-height:20px;color:var(--sh-muted-foreground)}
.tr-ou::before,.tr-ou::after{content:"";flex:1;height:1px;background:var(--sh-border)}
#app .tr-ou + label{margin-top:8px}
.tr-aide{margin:6px 0 0;font-size:13px;line-height:20px;color:var(--sh-muted-foreground)}
.tr-act{margin:16px 0 0}
.tr-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#app .tr-rapports .tr-2 label{margin-top:0}
.tr-nw{white-space:nowrap}
.cf-titre.tr-h{margin:16px 0 8px}
.petit.tr-intro{margin:0 0 12px}
.tr-tbl td:nth-child(2),.tr-tbl td:nth-child(3){white-space:nowrap}
.tr-tbl td:first-child{min-width:140px}
#app .tr-rapports .lc-per-btn,.tr-2 .lc-per-btn{height:36px}
.dc-intro{margin:0 0 12px}
/* 1445 (PMS, lot 4) : préparer un contrôle */
.dc-chips{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}
.dc-chip{display:inline-flex;align-items:center;gap:2px}
/* 2075 : poste d'impression — pastille du PC qui imprime pour les tablettes (en bas à gauche, au-dessus du contenu) */
.poste-pastille{position:fixed;left:12px;bottom:12px;z-index:60;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--sh-border,#e2e8f0);background:var(--sh-card,#fff);color:var(--sh-foreground,#0f172a);font-size:13px;font-weight:500;box-shadow:0 1px 3px rgba(15,23,42,.12);cursor:pointer}
.poste-pastille .ms{font-size:18px;color:var(--vert,#15803d)}
.poste-pastille.ko{border-color:var(--orange,#c2410c);color:var(--orange,#c2410c)}
.poste-pastille.ko .ms{color:var(--orange,#c2410c)}
.poste-journal{list-style:none;padding:0;margin:0 0 12px;display:grid;gap:8px}
@media print{.poste-pastille{display:none}}
