/* ===== v507 — DESIGN « BALISAGE » (toute l'app) ==========================
   Refonte demandée par Joan (05–06.11.2026), contrat REFONTE_CONTRAT.md §4,
   maquette .impeccable/mocks/balisage/index.html. Remplace le design v488
   « salle de contrôle » (jaune ambre, IBM Plex, angles ≤ 3 px) : abandonné.

   Ce fichier est chargé EN DERNIER : il porte les JETONS (couleurs et police
   de swisshw.ch, relevées le 06.11) et redessine les composants partagés.
   Règles :
     • un style ne lit QUE des jetons : aucune couleur en dur hors des trois
       blocs de jetons ci-dessous (vérifié par tests/test_v507_refonte_design.py) ;
     • bleu nuit SH (--nav) pour la barre de gauche, bleu d'action (--bleu)
       pour l'action principale et ce qui est en cours ; rouge = urgence,
       retard, refus ; vert = fait ; orange = attention ;
     • rayons : boutons et champs 8 px (--r-s), panneaux 10 px (--r), puces
       rondes ; la règle v488 « jamais plus de 3 px » est retirée ;
     • Inter servie par l'app (CSP font-src 'self', licence SIL OFL, voir
       fonts/Inter-OFL.txt), chiffres tabulaires partout ;
     • mouvement (règles d'Emil Kowalski) : appui scale(.97) 160 ms, feuilles
       300 ms à l'ouverture / 200 ms à la fermeture (--ease-drawer), transform
       et opacity seulement, survol seulement avec une souris, rien sur les
       filtres, onglets, navigation ; prefers-reduced-motion respecté.
   Les anciens noms de jetons (--bg, --card, --txt…) restent : ils pointent
   sur les nouveaux, si bien que tous les écrans existants suivent sans que
   leur contenu change. */

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

/* ---- jetons : CLAIR (défaut) ---- */
:root {
  --f: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --sol: #F5F7FA; --surface: #FFFFFF; --surface-2: #F8FAFC; --encre: #0F172A; --encre-2: #475569; --encre-3: #64748B;
  --trait: #E2E8F0; --trait-fort: #CBD5E1; --trait-doux: #EEF2F6; --actif: #EEF2F7;
  --bleu: #0066FF; --bleu-fonce: #0052CC; --bleu-pale: #E8F0FF; --sur-bleu: #FFFFFF;
  --rouge: #DC2626; --rouge-pale: #FEECEC; --vert: #15803D; --vert-pale: #E3F6EA; --orange: #B45309; --orange-pale: #FDF1E2;
  --sur-couleur: #FFFFFF;
  --violet: #6D28D9; --sarcelle: #0F766E;
  --nav: #1A1A2E; --nav-txt: #E2E8F0; --nav-txt-2: #9AA4B8; --nav-actif: #2A2A44;
  --nav-pastille: #FFFFFF; --nav-pastille-txt: #1A1A2E; --toast-lien: #7FB2FF;
  --voile: rgba(15,23,42,.42); --ombre: 0 16px 48px rgba(15,23,42,.18); --ombre-legere: 0 2px 8px rgba(15,23,42,.08);
  --r: 10px; --r-s: 8px;
  --ease-out: cubic-bezier(.23,1,.32,1); --ease-drawer: cubic-bezier(.32,.72,0,1);
  color-scheme: light;
}
/* ---- jetons : SOMBRE (système, sauf si l'on a choisi « clair ») ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sol: #0D0D18; --surface: #161627; --surface-2: #1B1B2F; --encre: #F1F5F9; --encre-2: #AEB7C7; --encre-3: #8F99AB;
    --trait: #26263D; --trait-fort: #35354F; --trait-doux: #1E1E33; --actif: #21213A;
    --bleu: #3B8BFF; --bleu-fonce: #2F74E0; --bleu-pale: #14254A;
    --rouge: #F87171; --rouge-pale: #3A1719; --vert: #4ADE80; --vert-pale: #10291B; --orange: #F5A54A; --orange-pale: #33230F;
    --sur-couleur: #0D0D18;
    --violet: #A78BFA; --sarcelle: #2DD4BF;
    --nav: #08080F; --nav-actif: #1F1F35;
    --voile: rgba(0,0,0,.6); --ombre: 0 16px 48px rgba(0,0,0,.6); --ombre-legere: 0 2px 10px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
/* ---- jetons : SOMBRE (choisi dans « Thème ») ---- */
:root[data-theme="dark"] {
  --sol: #0D0D18; --surface: #161627; --surface-2: #1B1B2F; --encre: #F1F5F9; --encre-2: #AEB7C7; --encre-3: #8F99AB;
  --trait: #26263D; --trait-fort: #35354F; --trait-doux: #1E1E33; --actif: #21213A;
  --bleu: #3B8BFF; --bleu-fonce: #2F74E0; --bleu-pale: #14254A;
  --rouge: #F87171; --rouge-pale: #3A1719; --vert: #4ADE80; --vert-pale: #10291B; --orange: #F5A54A; --orange-pale: #33230F;
  --sur-couleur: #0D0D18;
  --violet: #A78BFA; --sarcelle: #2DD4BF;
  --nav: #08080F; --nav-actif: #1F1F35;
  --voile: rgba(0,0,0,.6); --ombre: 0 16px 48px rgba(0,0,0,.6); --ombre-legere: 0 2px 10px rgba(0,0,0,.5);
  color-scheme: dark;
}

/* ---- anciens noms de jetons → nouveaux (tous les modules les lisent) ----
   Pas de valeur ici : uniquement des renvois, résolus avec le thème actif. */
:root {
  --f-txt: var(--f); --f-num: var(--f);
  --bg: var(--sol); --card: var(--surface); --txt: var(--encre); --txt2: var(--encre-2); --txt3: var(--encre-3);
  --sep: var(--trait); --sep-2: var(--trait-doux);
  --ink: var(--encre); --on-ink: var(--surface);
  --amber: var(--orange); --amber-ink: var(--orange); --amber-bg: var(--orange-pale);
  --blue: var(--bleu); --blue-bg: var(--bleu-pale);
  --green: var(--vert); --green-bg: var(--vert-pale);
  --red: var(--rouge); --red-bg: var(--rouge-pale);
  --purple: var(--violet); --teal: var(--sarcelle);
  --ok: var(--vert); --warn: var(--orange);
  --radius: var(--r); --r-m: var(--r);
  --fill: var(--actif); --fill-2: var(--trait); --fill-3: var(--surface-2);
  --tint: var(--bleu-pale); --seg-on: var(--surface);
  --on-bg: var(--nav); --on-txt: var(--sur-bleu);
  --hairline: 0 0 0 1px var(--trait);
  --ombre-1: none; --ombre-2: var(--ombre-legere); --ombre-3: var(--ombre);
}

/* ---- base ---- */
html, body { background: var(--sol); }
body, button, input, select, textarea { font-family: var(--f); }
body { color: var(--encre); letter-spacing: 0; font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased; }
.mono, .num, time, .clock, .timer, .stat b, .od-amount { font-family: var(--f);
  font-variant-numeric: tabular-nums; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
::selection { background: var(--bleu-pale); color: var(--encre); }
.screen { animation: none; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.sprite-icones { position: absolute; width: 0; height: 0; overflow: hidden; }
/* v517 (MODULES_CONTRAT T2) : une icône DANS une ligne de texte (à la place
   d'un emoji porteur de sens : étoile, récurrence, rappel, colis, pièce jointe)
   prend la taille du texte ; `.plein` = la version remplie (favori, suivi). */
svg.i.dans { width: 1.05em; height: 1.05em; vertical-align: -.17em; margin: 0 .12em; }
svg.i.plein { fill: currentColor; }
svg.i.etoile-on { color: var(--orange); fill: currentColor; }
/* v518 (MODULES_CONTRAT T7) : champs date / heure au format suisse (texte
   « jj.mm.aaaa » / « hh:mm ») ; le calendrier natif s'ouvre depuis l'icône
   posée au bout du champ ; sélecteur de mois « ‹ novembre 2026 › ». */
input[data-ch="date"], input[data-ch="time"] { font-variant-numeric: tabular-nums; }
input[data-ch="date"] { padding-right: 40px !important; }
input[data-ch="time"] { max-width: 9em; }
input[data-ch][aria-invalid="true"] { border-color: var(--rouge) !important; }
.champ-ch-cal { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; margin-left: -40px; vertical-align: middle; color: var(--encre-2); }
label > .champ-ch-cal { margin-top: 4px; }
.champ-ch-cal input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; margin: 0;
  border: 0; opacity: 0; cursor: pointer; }
/* v519 (MODULES_CONTRAT T4, P3) : la fiche en PANNEAU à droite (≥ 1100 px),
   la liste reste visible à gauche ; un seul fermer, pas de réduire. */
:root { --panneau-w: min(560px, 42vw); }
.sheet.win.panneau { left: auto !important; right: 0 !important; top: 0 !important; width: var(--panneau-w) !important;
  height: 100% !important; max-height: 100% !important; border-radius: 0 !important;
  border-left: 1px solid var(--trait); box-shadow: var(--ombre-2); }
.sheet.win.panneau .win-bar { cursor: default; border-radius: 0; }
/* v525 (correctif) : la fiche porte la classe « panneau » comme les cartes .panneau (lot A,
   overflow: hidden) — sans cette ligne, la fiche ne défilait plus : tout ce qui dépassait
   l'écran (composants, check-list, actions…) était inaccessible. */
.sheet.win.panneau { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.sheet.panneau .win-rs, .sheet.panneau .win-min, .sheet.panneau .win-max { display: none !important; }
body.avec-panneau #app { margin-right: var(--panneau-w); }
.pan-nav { display: flex; gap: 4px; margin-right: 6px; }
.sheet:not(.panneau) .pan-nav { display: none; }   /* v526 : redevenue fenêtre en rétrécissant */
.pan-nav .btn.icon { min-width: 36px; min-height: 36px; font-size: 20px; line-height: 1; }
/* téléphone : le titre de la feuille ne passe plus sous le ✕ */
.sheet:not(.win) > .sheet-top + h2, .sheet:not(.win) > .sheet-top + * > h2:first-child { padding-right: 52px; }
.sheet-close svg.i { width: 18px; height: 18px; }
/* v519 — composants P1 / P2 / P5 / P6 / P8 */
.p1 .p1-phrase { margin: 4px 0 0; color: var(--encre-2); font-size: 15px; }
.p1 .p1-cherche { min-width: 220px; }
.p2 { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.p2 .p2-n, .p5-onglets .p2-n { font-weight: 600; margin-left: 4px; opacity: .75; font-variant-numeric: tabular-nums; }
.p5-onglets { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; }
.p5-une { display: block !important; }
.p5-une > .p5-cache { display: none !important; }
.p5-une > :not(.p5-cache) { width: 100% !important; max-width: none !important; }
.p6-barre { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 8px; margin: 12px -20px -22px;
  padding: 10px 20px calc(env(safe-area-inset-bottom) + 10px); background: var(--surface); border-top: 1px solid var(--trait); }
.p6-barre[hidden] { display: none; }
.p6-barre .p6-txt { flex: 1; color: var(--encre-2); font-size: 14px; }
.p6-barre.p6-alerte .p6-txt { color: var(--rouge); font-weight: 600; }
.p8 { padding: 28px 16px; text-align: center; color: var(--encre-2); }
.p8 p { margin: 0 0 12px; }
.p8-erreur p { color: var(--rouge); }
.p8-charge { display: grid; gap: 10px; text-align: left; }
.p8-sq { height: 52px; border-radius: var(--r-s); background: var(--surface-2); animation: p8-pulse 1.4s ease-in-out infinite; }
@keyframes p8-pulse { 50% { opacity: .55; } }
/* v520 — P4 tableau → lignes, P9 chiffres-clés, P10 barre de sélection */
.p4 { overflow-x: auto; }
.p4-tab { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.p4-tab th { text-align: left; font-weight: 600; color: var(--encre-2); font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--trait); }
.p4-tab td { padding: 10px; border-bottom: 1px solid var(--trait); vertical-align: middle; }
.p4-tab .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.p4-tab tbody tr[data-id] { cursor: pointer; }
@media (max-width: 820px) {
  .p4 { overflow: visible; }
  .p4-tab thead { display: none; }
  .p4-tab, .p4-tab tbody { display: block; }
  .p4-tab tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 4px; border-bottom: 1px solid var(--trait); }
  .p4-tab td { display: none; padding: 0; border: 0; }
  .p4-tab td[data-role] { display: block; }
  .p4-tab td[data-role="titre"] { grid-area: 1 / 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .p4-tab td[data-role="montant"] { grid-area: 1 / 2; text-align: right; font-weight: 600; }
  .p4-tab td[data-role="sous"] { grid-area: 2 / 1; color: var(--encre-2); font-size: 13.5px; }
  .p4-tab td[data-role="etat"] { grid-area: 2 / 2; text-align: right; }
}
.p9 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.p9-t { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; min-height: 44px;
  border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); color: var(--encre); text-align: left; cursor: pointer; }
.p9-t b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.p9-t span { color: var(--encre-2); font-size: 13px; }
.p9-t.on { border-color: var(--bleu); box-shadow: inset 0 0 0 1px var(--bleu); }
.p9-t.p9-alerte b { color: var(--rouge); }
@media (max-width: 820px) { .p9 { grid-template-columns: 1fr 1fr; } .p9-t.p9-pc { display: none; } }
.p10 { position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding: 10px 14px; background: var(--nav); color: var(--sur-bleu); border-radius: var(--r); box-shadow: var(--ombre-2); }
.p10 .p10-n { flex: 1; font-weight: 600; }
@media (max-width: 820px) { .p10 { bottom: calc(env(safe-area-inset-bottom) + 72px); } }
.mois-sel { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.mois-sel .mois-lb { min-width: 7.6em; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.mois-sel .btn.icon { font-size: 20px; line-height: 1; }

/* =====================================================================
   COQUILLE : barre bleu nuit à gauche (≥ 821 px) / onglets en bas (< 821 px)
   ===================================================================== */
#navG, #onglets { display: none; }
body.avec-coque #coque { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100dvh; }
body.avec-coque #navG { display: flex; flex-direction: column; gap: 1px; position: sticky; top: 0;
  height: 100dvh; overflow-y: auto; background: var(--nav); color: var(--nav-txt);
  padding: calc(env(safe-area-inset-top) + 18px) 12px 16px; scrollbar-width: thin; z-index: 30; }
body.avec-coque #app { min-width: 0; }
.nav-marque { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; font-weight: 700;
  font-size: 16.5px; letter-spacing: -.01em; color: var(--nav-txt); }
.nav-marque img { width: 30px; height: 30px; border-radius: 7px; display: block; }
.nav-grp { font-size: 12.5px; color: var(--nav-txt-2); padding: 16px 10px 5px; font-weight: 500; }
.nl { display: flex; align-items: center; gap: 10px; padding: 0 10px; min-height: 36px; border-radius: var(--r-s);
  font-size: 14.5px; color: var(--nav-txt); width: 100%; text-align: left; background: transparent; border: 0;
  cursor: pointer; font-weight: 500; }
.nl svg.i { color: var(--nav-txt-2); }
.nl .nl-lb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* v517 : liens vers Odoo (onglet à part) — même ligne qu'un module, flèche discrète */
a.nl, a.ligne { text-decoration: none; }
.nl-ext .nl-ext-i { margin-left: auto; width: 14px; height: 14px; opacity: .7; }
a.ligne.nl-ext { color: var(--encre); }
.ligne.nl-ext > svg.i:first-child { color: var(--encre-2); }
.ligne.nl-ext .nl-lb { flex: 1; font-weight: 600; }
.nl b { margin-left: auto; font-weight: 500; font-size: 12.5px; color: var(--nav-txt-2); }
.nl b.q { background: var(--bleu); color: var(--sur-bleu); border-radius: 10px; padding: 0 7px; font-weight: 600; }
.nl b.al { background: var(--rouge); color: var(--sur-bleu); border-radius: 10px; padding: 0 7px; font-weight: 600; }
.nl .nl-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); }
.nl[aria-current="page"] { background: var(--nav-pastille); color: var(--nav-pastille-txt); font-weight: 600; }
.nl[aria-current="page"] svg.i { color: var(--bleu); }
.nl[aria-current="page"] b:not(.q):not(.al) { color: var(--nav-pastille-txt); }
.nav-pied { margin-top: auto; padding: 14px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.nav-theme { display: flex; background: var(--nav-actif); border-radius: var(--r-s); padding: 3px; }
.nav-theme button { flex: 1; height: 30px; border-radius: 6px; font-size: 13px; color: var(--nav-txt-2);
  background: transparent; border: 0; cursor: pointer; }
.nav-theme button[aria-pressed="true"] { background: var(--nav); color: var(--nav-txt); font-weight: 600; }
.nav-compte { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.nav-compte button { min-width: 0; height: 36px; padding: 0 6px; font-size: 12.5px; font-weight: 600; border-radius: var(--r-s);
  background: var(--nav-actif); border: 0; color: var(--nav-txt); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.nav-compte button.seul { grid-column: 1 / -1; }
.nav-moi { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--nav-txt); min-width: 0; }
.nav-moi .ini { width: 30px; height: 30px; border-radius: 50%; background: var(--nav-actif); display: grid;
  place-items: center; font-weight: 600; font-size: 12.5px; flex: none; }
.nav-moi .nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-moi .role { margin-left: auto; color: var(--nav-txt-2); font-size: 12.5px; }
/* la barre des fenêtres et le téléphone laissent la barre de gauche visible */
body.avec-coque .win-dock { left: 240px; }

@media (max-width: 820px) {
  body.avec-coque #coque { display: block; }
  body.avec-coque #navG { display: none; }
  body.avec-coque #onglets { display: grid; grid-template-columns: repeat(var(--n-onglets, 5), 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface);
    border-top: 1px solid var(--trait);
    padding: 6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); }
  body.avec-coque #app { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.avec-coque .win-dock { left: 0; bottom: calc(70px + env(safe-area-inset-bottom)); }
  body.avec-coque .tel-dock { bottom: calc(82px + env(safe-area-inset-bottom)); }
  body.avec-coque #toast { bottom: calc(94px + env(safe-area-inset-bottom)); }
}
.ong { height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11.5px; font-weight: 500; color: var(--encre-2); border-radius: var(--r); position: relative;
  background: transparent; border: 0; cursor: pointer; min-width: 0; }
.ong svg.i { width: 22px; height: 22px; }
.ong[aria-current="page"] { color: var(--bleu); font-weight: 700; }
/* v516 (MODULES_CONTRAT T3) : l'état ACTIF est le plus marqué — inactif en bleu
   pâle, actif en bleu d'action plein (avant : bleu vif inactif, bleu nuit actif,
   l'état se lisait à l'envers). */
.ong.centre { background: var(--bleu-pale); color: var(--bleu); margin: 2px 4px; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.ong.centre[aria-current="page"] { background: var(--bleu); color: var(--sur-bleu); box-shadow: 0 0 0 2px var(--bleu-pale); }
.ong .ong-n { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--rouge); color: var(--sur-bleu); font-size: 11px; font-weight: 700;
  line-height: 18px; text-align: center; }

/* =====================================================================
   BARRE DU HAUT de chaque écran (= barre du haut sur téléphone)
   ===================================================================== */
.tbar { background: var(--sol); border-bottom: 1px solid var(--trait);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  padding-top: calc(env(safe-area-inset-top) + 12px); padding-bottom: 12px; }
.tbar .back, .tbar .nseg { color: var(--encre-2); font-weight: 500; }
.tbar .nseg:not(.off) { color: var(--bleu); }
.tbar .back::before { color: var(--bleu); }
.tbar .nsep { color: var(--encre-3); }
.tbar h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
/* v516 (MODULES_CONTRAT T5) : le détail technique (admin seulement) */
.t-tech { display: inline-block; margin-left: 4px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px;
  color: var(--encre-3); }
/* v516 (MODULES_CONTRAT T3, P1) : un seul gabarit — titre à GAUCHE (après le
   fil d'Ariane), actions à droite à 16 px du bord, jamais rognées. */
.tbar { padding-right: 16px; }
.tbar h1 { text-align: left; }
.tbar .spacer { width: auto; min-width: 0; flex: none; display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; text-align: right; }
.tbar .clock { font-size: 13px; color: var(--encre-3); }
.nseg svg.i { width: 16px; height: 16px; }
@media (min-width: 821px) {
  .tbar h1 { font-size: 26px; }
  .tbar { padding-top: calc(env(safe-area-inset-top) + 20px); padding-bottom: 16px; }
}

/* =====================================================================
   AUJOURD'HUI (accueil) et TOUS LES MODULES
   ===================================================================== */
.tete { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap;
  padding: calc(env(safe-area-inset-top) + 28px) 32px 20px; }
.tete h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.tete p { margin: 4px 0 0; color: var(--encre-2); font-size: 15px; }
.tete .outils { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cherche { height: 42px; width: min(340px, 30vw); display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border: 1px solid var(--trait-fort); border-radius: var(--r-s); background: var(--surface); color: var(--encre-3);
  font-size: 14.5px; cursor: pointer; text-align: left; }
.cherche kbd { margin-left: auto; font: 12px var(--f); border: 1px solid var(--trait-fort); border-radius: 5px;
  padding: 1px 6px; color: var(--encre-2); }
.mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px;
  padding: 0 32px 48px; align-items: start; }
.panneau { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); min-width: 0; overflow: hidden; }
.ph { display: flex; align-items: center; gap: 10px; padding: 16px 20px 12px; flex-wrap: wrap; }
.ph h2 { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.ph .meta { color: var(--encre-2); font-size: 13.5px; }
.ligne { display: flex; gap: 12px; align-items: center; padding: 0 20px; min-height: 56px; border: 0;
  border-top: 1px solid var(--trait); width: 100%; text-align: left; font-size: 14.5px; background: transparent;
  color: var(--encre); cursor: pointer; }
.ligne .typ { color: var(--encre-2); display: inline-flex; }
.ligne .txt { min-width: 0; flex: 1; }
.ligne .txt b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne .txt small { display: block; color: var(--encre-2); font-size: 12.5px; }
.ligne .n { font-size: 17px; font-weight: 700; color: var(--encre); }
.ligne .n.al { color: var(--rouge); }
.ligne .n.vol { color: var(--bleu); }
.ligne .pt { width: 9px; height: 9px; border-radius: 50%; background: var(--vert); }
.mods-pied { padding: 0 32px 40px; color: var(--encre-2); font-size: 13.5px; }
.tete .h-menu { display: none; }
.tete .btn.icon svg.i { width: 20px; height: 20px; }
@media (max-width: 820px) {
  .tete { padding: calc(env(safe-area-inset-top) + 16px) max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left)); }
  .tete h1 { font-size: 24px; }
  .tete .outils { margin-left: 0; width: 100%; }
  .cherche { width: 100%; flex: 1; }
  .cherche kbd { display: none; }
  .tete .h-menu { display: inline-flex; flex: none; }
  .mods { padding: 0 max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left)); gap: 14px; }
  .mods-pied { padding: 0 16px 24px; }
  .ligne { padding: 0 16px; min-height: 58px; }
}

/* ancien accueil en tuiles (gardé pour les rares appelants) */
.home-head .avatar, .acc .avatar, .pin-wrap .avatar { border-radius: 50%; border: 0; box-shadow: none; }
.btn-quit { border-radius: var(--r-s); background: transparent; border: 1px solid var(--trait-fort); color: var(--rouge); }
.app-ic { border-radius: var(--r); background: var(--surface); border: 1px solid var(--trait); box-shadow: none; }
.app-ic .ic { box-shadow: none !important; }
.app-ic .ic::before, .app-ic .ic::after { display: none !important; }
.app-ic .cnt { border-radius: 10px; border: 0; background: var(--rouge); color: var(--sur-bleu); }
.app-ic .cnt.vol { background: var(--bleu); color: var(--sur-bleu); }

/* =====================================================================
   COMPOSANTS PARTAGÉS
   ===================================================================== */
/* ---- cartes, listes, statistiques ---- */
.card, .ilist, .stat, .tk-list { box-shadow: none !important; border: 1px solid var(--trait); border-radius: var(--r);
  background: var(--surface); }
.card h3 { font-size: 13px; letter-spacing: 0; color: var(--encre-2); font-weight: 600; text-transform: none; }
.irow { border-bottom: 1px solid var(--trait); }
.irow .t1 { font-weight: 600; }
.stat b { font-weight: 700; font-size: 28px; letter-spacing: -.02em; }
.stat span { font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--encre-2); }
.day-h { font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--encre-2); font-weight: 600; }
.etat-vide, .empty { color: var(--encre-2); }

/* ---- statuts (.chip) : puces rondes, teinte pâle ---- */
.chip { border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 2px 9px;
  background: var(--actif); border: 0; color: var(--encre-2); }
.chip.green { background: var(--vert-pale); color: var(--vert); }
.chip.red { background: var(--rouge-pale); color: var(--rouge); }
.chip.orange { background: var(--orange-pale); color: var(--orange); }
.chip.blue { background: var(--bleu-pale); color: var(--bleu); }

/* ---- recherche, champs ---- */
.search input, .frm input, .frm select, .frm textarea, .tbar input[type="search"] {
  border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--trait-fort); color: var(--encre); }
.search input:focus, .frm input:focus, .frm select:focus, .frm textarea:focus, .tbar input[type="search"]:focus {
  border-color: var(--bleu); outline: 2px solid var(--bleu); outline-offset: -1px; }
.frm label { font-size: 13px; letter-spacing: 0; color: var(--encre-2); font-weight: 500; text-transform: none; }

/* ---- filtres et segments : PAS d'animation (règle d'Emil) ---- */
.fchip { border-radius: 999px; box-shadow: none; border: 1px solid var(--trait-fort); background: var(--surface);
  color: var(--encre); font-weight: 500; transition: none; }
.fchip.on { background: var(--nav); color: var(--sur-bleu); border-color: var(--nav); }
.seg { border-radius: var(--r-s); background: var(--actif); border: 0; padding: 3px; }
.seg button { border-radius: 6px; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 13.5px;
  color: var(--encre-2); transition: none; }
.seg button.on, .seg button[aria-pressed="true"] { background: var(--surface); color: var(--encre); box-shadow: none; font-weight: 600; }
.seg button:active { transform: none; }
.sw { box-shadow: inset 0 0 0 1px var(--trait-fort); }

/* ---- boutons : trois niveaux ---- */
.btn { border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--trait-fort); color: var(--encre);
  font-weight: 600; letter-spacing: 0;
  transition: transform 160ms var(--ease-out), opacity 120ms ease; }
.btn:active { opacity: 1; transform: scale(.97); }
.btn:disabled { opacity: .45; transform: none; }
.btn.primary { background: var(--bleu); color: var(--sur-bleu); border-color: var(--bleu); }
.btn.primary:active { opacity: 1; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--bleu); text-decoration: none; }
.btn.danger { color: var(--rouge); border-color: var(--rouge); background: var(--surface); }
.btn.round { border-radius: 999px; }
.btn.plus { background: var(--vert-pale); border-color: var(--vert); color: var(--vert); }
.btn.minus { background: var(--rouge-pale); border-color: var(--rouge); color: var(--rouge); }
.btn svg.i { margin-right: 2px; }
.btn-punch { border-radius: var(--r-s); box-shadow: none; text-transform: none; letter-spacing: 0; }
.btn-punch.out { box-shadow: none; }
.btn-aa, .btn-theme { border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--trait-fort); color: var(--encre); }

/* ---- PIN ---- */
.pad button { border-radius: var(--r); background: var(--surface); border: 1px solid var(--trait); }
.pad button:active, .pad button.hit { background: var(--actif); transform: scale(.97); }
.pad button.ghost { border-color: transparent; background: transparent; color: var(--encre); }
.pad button.ok { background: var(--bleu); color: var(--sur-bleu); border-color: var(--bleu); }
.pin-dots i { border-radius: 50%; }

/* ---- kanban (Commandes, Tâches) ---- */
.kcol { border-radius: var(--r) !important; background: var(--surface-2); border: 1px solid var(--trait); }
.kcard { border-radius: var(--r-s) !important; border: 1px solid var(--trait); box-shadow: none !important; background: var(--surface); }
.kcards.dragover { outline-color: var(--bleu); }

/* ---- circuit des Commandes : panneaux bleus en flèche (balisage) ---- */
.balises { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 14px;
  scroll-snap-type: x proximity; }
.balises::-webkit-scrollbar { display: none; }
.balise { position: relative; flex: 1 0 150px; min-height: 84px; padding: 11px 34px 10px 14px; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px; border: 0; cursor: pointer;
  background: var(--bleu); color: var(--sur-bleu); scroll-snap-align: start;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%);
  transition: transform 160ms var(--ease-out); }
.balise:active { transform: scale(.97); }
.balise .nom { font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.balise .nb { font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.balise.tout { background: var(--actif); color: var(--encre); }
.balise[aria-pressed="true"] { background: var(--nav); color: var(--sur-bleu); box-shadow: inset 0 -4px 0 var(--bleu); }
/* retard = marquage rouge-blanc-rouge (balise de chantier) */
.balise .alp { position: absolute; bottom: 12px; right: 34px; width: 16px; height: 15px; background: var(--surface);
  border: 5px solid var(--rouge); border-left-width: 1px; border-right-width: 1px; }
@media (max-width: 820px) { .balise { flex-basis: 132px; min-height: 76px; } .balise .nb { font-size: 24px; } }

/* ---- feuilles (modales) : 300 ms à l'ouverture, 200 ms à la fermeture ---- */
.sheet { border-top: 0; box-shadow: var(--ombre); background: var(--surface);
  animation: feuilleOuvre 300ms var(--ease-drawer); }
.sheet:not(.win) { border-radius: 16px 16px 0 0; }
.sheet .grab { background-color: var(--trait-fort); background-clip: content-box; }
/* la feuille reçoit le focus à l'ouverture (lecteurs d'écran) : pas d'anneau
   autour de tout le panneau, seulement sur ses contrôles */
.sheet:focus, .sheet:focus-visible { outline: none; }
.sheet .actions .btn { border-radius: var(--r-s); }
.sheet:not(.win) > h2, .sheet:not(.win) > .row:first-of-type h2 { padding-right: 92px; }
.sheet h2 { font-weight: 700; letter-spacing: -.02em; text-align: left; }
.sheet:not(.win) > .actions { background: var(--surface); }
@keyframes feuilleOuvre { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fenetreOuvre { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes feuilleFerme { from { transform: none; } to { transform: translateY(100%); } }
@keyframes fenetreFerme { from { transform: none; opacity: 1; } to { transform: scale(.97); opacity: 0; } }
.sheet.win { animation: fenetreOuvre 300ms var(--ease-drawer); }
/* une feuille qui se ferme : sortie de 200 ms, puis retirée (closeSheet) */
.sheet-sortie { position: fixed; inset: 0; z-index: 499; pointer-events: none; display: flex;
  align-items: flex-end; justify-content: center; }
.sheet-sortie > .sheet { animation: feuilleFerme 200ms ease-in forwards; }
.sheet-sortie > .sheet.win { animation: fenetreFerme 200ms ease-in forwards; }

/* ---- fenêtres v489 (réduire, agrandir, fermer ; barre des fenêtres) ----
   Titre à gauche, trois boutons NOMMÉS à droite, double-clic = agrandir ;
   une fenêtre réduite part dans la barre des fenêtres en bas. */
.win-bar { display: flex; align-items: stretch; gap: 0; height: 48px; box-sizing: border-box; padding: 0 0 0 18px;
  background: var(--surface) !important; border-bottom: 1px solid var(--trait);
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; cursor: move;
  user-select: none; -webkit-user-select: none; border-radius: var(--r) var(--r) 0 0; }
.win-title { position: static !important; flex: 1; min-width: 0; align-self: center; text-align: left !important;
  font-size: 15.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding-right: 10px; opacity: 1 !important; color: var(--encre); }
.win-lights.win-actions { display: flex; gap: 4px; align-items: center; flex: none; padding-right: 6px; }
.win-dot { width: 36px !important; height: 36px !important; min-height: 0 !important; border-radius: var(--r-s) !important;
  background: transparent !important; border: 0; color: var(--encre-2); filter: none !important;
  display: inline-flex; align-items: center; justify-content: center; position: relative; }
.win-dot span { opacity: 1 !important; font-size: 16px !important; font-weight: 500 !important; color: inherit !important; }
.win-dot::after { display: none; }
.sheet.win { border: 1px solid var(--trait); box-shadow: var(--ombre-legere) !important; border-radius: var(--r); }
.sheet.win.winon { border-color: var(--trait-fort); box-shadow: var(--ombre) !important; }
.sheet.win.winon .win-bar { box-shadow: inset 0 3px 0 var(--bleu); }
.sheet.win.winfull, .sheet.win.winfull .win-bar { border-radius: 0; }
.sheet-bg.bgmin { display: none !important; }
/* feuille du téléphone : Réduire + Fermer */
.sheet-top { gap: 6px; }
.sheet-close, .sheet-min { pointer-events: auto; width: 40px; height: 40px; border-radius: 50% !important;
  background: var(--actif); border: 0; color: var(--encre); font-size: 16px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; transform: translateY(4px); position: relative;
  box-shadow: none; }
.sheet-min::after { content: ""; position: absolute; inset: -6px; }
/* barre des fenêtres */
.win-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px calc(env(safe-area-inset-bottom) + 8px); background: var(--surface); border-top: 1px solid var(--trait);
  box-shadow: var(--ombre-legere); }
.wd-lbl { font-size: 12.5px; font-weight: 500; color: var(--encre-2); white-space: nowrap; }
.wd-liste { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.wd-liste::-webkit-scrollbar { display: none; }
.wd-it { display: inline-flex; align-items: stretch; border: 1px solid var(--trait-fort); background: var(--surface-2);
  flex: none; max-width: 240px; border-radius: var(--r-s); overflow: hidden; }
.wd-it.on { border-color: var(--bleu); background: var(--bleu-pale); }
.wd-it.min .wd-go { color: var(--encre-2); }
.wd-go { padding: 7px 10px; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0; color: var(--encre); }
.wd-x { padding: 0 9px; border-left: 1px solid var(--trait); color: var(--encre-3); font-size: 13px; }
.wd-act { border: 1px solid var(--trait-fort); padding: 7px 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: var(--surface); border-radius: var(--r-s); color: var(--encre); }
.wd-danger { color: var(--rouge); border-color: var(--rouge); }
body.avec-dock .sheet-bg:not(.winbg) { bottom: calc(env(safe-area-inset-bottom) + 54px); }
body.avec-dock #app { padding-bottom: 54px; }
@media (max-width: 640px) { .wd-lbl, .wd-act:not(.wd-danger) { display: none; } }

/* ---- toast (avec « Annuler » 5 s) ---- */
#toast, .notif-banner { border-radius: var(--r-s); background: var(--nav); color: var(--sur-bleu);
  backdrop-filter: none; -webkit-backdrop-filter: none; border-left: 0; box-shadow: var(--ombre); }
#toast { display: flex; align-items: center; justify-content: center; gap: 14px;
  transition: opacity 200ms ease, transform 280ms var(--ease-drawer); }
#toast.show.avec-annuler { pointer-events: auto; }
#toast .toast-annuler { color: var(--toast-lien); font-weight: 600; background: transparent; border: 0; cursor: pointer;
  padding: 6px 4px; font-size: inherit; }
.notif-banner .nb-body { color: inherit; opacity: .8; }

/* v491 — exceptions de droits d'une personne (sheetUserPerms) */
.up-liste { display: grid; border: 1px solid var(--trait); background: var(--surface); max-height: 60vh; overflow-y: auto;
  border-radius: var(--r); }
.up-l { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--trait-doux); font-weight: 600; }
.up-l.sous { padding-left: 26px; font-weight: 400; font-size: 14px; }
.up-seg { flex: none; }
.up-seg button { padding: 5px 8px; font-size: 11px; }

/* menu « Compte et affichage », « Modifier les modules de la barre » */
.menu-liste .irow .ic svg.i { color: var(--encre-2); }
.editrow .mini svg.i { color: var(--encre-2); }

/* v491 (audit) : les champs des feuilles qui ne sont pas dans un « .frm »
   avaient l'aspect natif du navigateur. Spécificité NULLE (:where). */
:where(.sheet) :where(input:not([type]), input[type="text"], input[type="tel"], input[type="email"], input[type="date"],
  input[type="number"], input[type="password"], input[type="search"], input[type="time"], select, textarea) {
  border: 1px solid var(--trait-fort); background: var(--surface); color: var(--encre); padding: 9px 11px;
  border-radius: var(--r-s); font-size: 15px; max-width: 100%; box-sizing: border-box; }
:where(.sheet) :where(label) > :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { width: 100%; margin-top: 4px; }
:where(.sheet) :where(.card) > :where(input, textarea) { width: 100%; }
:where(.screen) :where(select:not([class])) { border: 1px solid var(--trait-fort); background: var(--surface); color: var(--encre);
  border-radius: var(--r-s); padding: 8px 10px; max-width: 100%; }
:where(.sheet) :where(input, select, textarea):focus { border-color: var(--bleu); outline: 2px solid var(--bleu); outline-offset: -1px; }

/* =====================================================================
   SURVOL : seulement avec une souris (rien d'essentiel au survol)
   ===================================================================== */
@media (hover: hover) and (pointer: fine) {
  /* v532 — Séances */
  .sc-item:hover { background: var(--surface-2); } .sc-item.on:hover { background: var(--bleu-pale); }
  .sc-check:not(.on):not(:disabled):hover { border-color: var(--vert); color: var(--vert); }
  .sc-edit:hover .sc-puce { background: var(--bleu-pale); color: var(--bleu); }
  .nl:not([aria-current="page"]):hover { background: var(--nav-actif); }
  .nav-compte button:hover, .nav-theme button:not([aria-pressed="true"]):hover { color: var(--nav-txt); }
  .btn:not(.primary):not(:disabled):hover { background: var(--surface-2); }
  .btn.primary:not(:disabled):hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); }
  .ligne:hover, .irow:hover { background: var(--surface-2); }
  .balise:not([aria-pressed="true"]):not(.tout):hover { background: var(--bleu-fonce); }
  .balise.tout:not([aria-pressed="true"]):hover { background: var(--trait); }
  .win-dot:hover { background: var(--actif) !important; color: var(--encre); }
  .win-dot.win-close:hover { background: var(--rouge) !important; color: var(--sur-bleu); }
  .wd-x:hover { background: var(--rouge); color: var(--sur-bleu); }
  .app-ic:hover { border-color: var(--bleu); }
  .cherche:hover { border-color: var(--encre-3); }
}

/* =====================================================================
   MOUVEMENT RÉDUIT : aucune translation, fondus courts seulement
   ===================================================================== */
/* v512 (lot F) : un champ SANS classe (ancien écran) prend les jetons au lieu
   du gris du navigateur — en sombre surtout. :where() garde une spécificité
   basse : une classe ou un style en ligne de l'écran l'emporte toujours. */
:where(#app, .sheet) :where(input[type="search"], input[type="text"], input[type="number"], input[type="email"],
  input[type="tel"], input[type="date"], input[type="time"], input:not([type]), select, textarea):not([class]) {
  background: var(--surface); color: var(--encre); border: 1px solid var(--trait-fort); border-radius: var(--r-s);
  min-height: 40px; padding: 0 10px; font: inherit;
}
:where(#app, .sheet) textarea:not([class]) { padding: 8px 10px; }
/* v518 (MODULES_CONTRAT T7) : un <select> AVEC une classe de mise en page
   (« grow », « tk-eq-sel »…) gardait le gris du navigateur (Tâches,
   Historique) : il prend lui aussi les jetons — spécificité nulle, toute
   règle de l'écran l'emporte. */
:where(#app, .sheet) :where(select[class]) {
  background-color: var(--surface); color: var(--encre); border: 1px solid var(--trait-fort); border-radius: var(--r-s);
  min-height: 40px; padding: 0 10px; font: inherit; }

@media (prefers-reduced-motion: reduce) {
  .p8-sq { animation: none; }   /* v519 : squelette P8 immobile */
  * { animation: none !important; transition: none !important; }
  .btn:active, .balise:active, .ong:active, .pad button:active { transform: none; }
}

/* ===== v532 — Séances refaites (MODULES_CONTRAT « Séances », lot I 3/3) =====
   P1 + phrase, segment Séances · Par personne, P3 au PC (liste | séance), fiche P6, lignes à case de 44 px,
   puces cliquables, Trello P5 (une colonne à la fois au téléphone). Jetons uniquement. */
.sc-contenu { display: flex; flex-direction: column; gap: 12px; }
.sc-phrase { margin: 0; color: var(--encre-2); font-size: 14px; }
.sc-barre { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc-barre .seg button { min-height: 40px; }
.sc-barre .p2 { margin: 0; }
.sc-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1100px) {
  .sc-split { grid-template-columns: 360px minmax(0, 1fr); }
  .sc-pane { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: 16px 18px; }
  .sc-pane:empty { display: none; }
}
@media (max-width: 1099px) { .sc-pane { display: none; } }
.sc-grp { margin: 6px 0 6px; font-size: 13px; font-weight: 600; color: var(--encre-2); }
.sc-liste { display: grid; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; }
.sc-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; width: 100%;
  padding: 10px 12px; border: 0; border-bottom: 1px solid var(--trait); background: var(--surface); color: var(--encre); font: inherit; cursor: pointer; min-height: 64px; }
.sc-item:last-child { border-bottom: 0; }
.sc-item.on { background: var(--bleu-pale); box-shadow: inset 3px 0 0 var(--bleu); }
.sc-date { display: grid; justify-items: center; line-height: 1.05; }
.sc-date b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sc-date small { font-size: 12px; color: var(--encre-2); }
.sc-item-m { display: grid; gap: 2px; min-width: 0; }
.sc-item-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-item-s { font-size: 12.5px; color: var(--encre-2); }
.sc-item-k { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--encre-2); }
.sc-item-k .rouge, .sc-n .rouge { color: var(--rouge); font-weight: 600; }
.sc-avs { display: inline-flex; }
.sc-avs i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 700;
  background: var(--bleu-pale); color: var(--bleu); border: 2px solid var(--surface); margin-left: -6px; }
.sc-avs i:first-child { margin-left: 0; }
/* fiche (P6) */
.sc-tete { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.sc-tete-l { flex: 1; min-width: 0; display: grid; gap: 4px; }
.sc-tete-l h2 { margin: 0; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.sc-tete-l p { margin: 0; }
.sc-tete-a { display: flex; gap: 6px; flex: none; }
.sc-tete-a .btn.icon { width: 44px; min-height: 44px; }
.sc-archivee { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border-radius: var(--r-s);
  background: var(--orange-pale); color: var(--orange); font-weight: 600; }
.sc-archivee .btn { margin-left: auto; }
.sc-sec { margin-bottom: 18px; }
.sc-sec-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sc-sec-h h3 { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.sc-n { font-weight: 500; color: var(--encre-2); font-size: 13.5px; }
.sc-recap-txt { white-space: pre-wrap; line-height: 1.5; color: var(--encre); }
.sc-recap-txt.vide { color: var(--encre-3); }
.sc-recap-barre { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.sc-recap-barre .t2 { flex: 1; }
.sc-recap-barre[hidden] { display: none; }
.sc-ajout { display: flex; gap: 8px; margin-bottom: 10px; }
.sc-ajout input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--trait-fort); border-radius: var(--r-s); padding: 0 12px;
  background: var(--surface); color: var(--encre); font: inherit; }
.sc-ajout input:focus { outline: 2px solid var(--bleu); outline-offset: 0; border-color: var(--bleu); }
.sc-ajout .btn { min-height: 44px; }
/* lignes de tâches */
.sc-lignes { display: grid; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; }
.sc-ligne { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px 8px 8px; border-bottom: 1px solid var(--trait); }
.sc-ligne:last-child { border-bottom: 0; }
.sc-ligne.retard { box-shadow: inset 3px 0 0 var(--rouge); }
.sc-check { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--trait-fort); background: var(--surface);
  display: grid; place-items: center; color: transparent; cursor: pointer; padding: 0; }
.sc-check svg.i { width: 20px; height: 20px; }
.sc-check.on { background: var(--vert); border-color: var(--vert); color: var(--sur-bleu); }
.sc-check:disabled { cursor: default; opacity: .6; }
.sc-ligne-m { flex: 1; min-width: 0; display: grid; gap: 4px; cursor: pointer; padding-top: 2px; }
.sc-ligne-btn { border: 0; background: none; text-align: left; font: inherit; color: inherit; padding: 2px 0 0; }
.sc-ligne-t { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.sc-ligne-d { font-size: 13px; color: var(--encre-2); }
.sc-ligne.fini .sc-ligne-t { text-decoration: line-through; color: var(--encre-3); }
.sc-puces { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sc-puce { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  background: var(--surface-2); color: var(--encre-2); white-space: nowrap; }
.sc-puce.rouge { background: var(--rouge-pale); color: var(--rouge); }
.sc-puce.orange { background: var(--orange-pale); color: var(--orange); }
.sc-puce.vert { background: var(--vert-pale); color: var(--vert); }
.sc-puce.bleu { background: var(--bleu-pale); color: var(--bleu); }
.sc-puce-vide { color: var(--encre-3); }
.sc-edit { border: 0; background: none; padding: 8px 0; margin: -8px 0; font: inherit; color: inherit; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.sc-pers .sc-sec-h h3 { font-size: 16px; }
.sc-pers .sc-ligne .sc-puces { flex: none; padding-top: 10px; }
/* Trello des séances */
.sc-trello .kcard.sc-kcard { border: 1px solid var(--trait); border-radius: var(--r-s); background: var(--surface); box-shadow: none; display: grid; gap: 6px; }
.sc-trello .sc-kcard.sc-late { box-shadow: inset 3px 0 0 var(--rouge); }
.sc-trello .sc-kcard.sc-done .sc-kt { text-decoration: line-through; color: var(--encre-3); }
.sc-kt { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.sc-kmove { display: flex; gap: 6px; align-items: center; }
.sc-kmove .btn { min-height: 40px; font-size: 13px; }
.sc-kvide { padding: 10px; color: var(--encre-3); }
.sc-trello .kh { gap: 8px; }
@media (max-width: 820px) {
  .sc-barre { flex-wrap: nowrap; overflow-x: auto; }
  .sc-tete-l h2 { font-size: 18px; }
  .sc-trello .sc-recul { display: none; }
  .sc-trello.p5-une .kcol { width: 100%; }
  .sc-pers .sc-ligne { flex-wrap: wrap; }
  .sc-pers .sc-ligne .sc-puces { flex-basis: 100%; padding: 0 0 0 54px; }
}

/* ===== v533 — Réparations refaites (MODULES_CONTRAT « Réparations », lot J) =====
   P1 + phrase, P2 à compteurs, P5 : colonnes de 280 px, une colonne VIDE se réduit à 48 px (nom vertical) ;
   carte = n°, âge, client, appareil, panne, 2 puces ; fiche P6 en panneau ; cibles de 44 px. Jetons uniquement. */
.rp-contenu { display: flex; flex-direction: column; gap: 12px; }
.rp-phrase { margin: 0; color: var(--encre-2); font-size: 14px; }
.rp-contenu .p2 { margin: 0; }
.rp-kanban { display: flex; gap: 10px; align-items: flex-start; overflow-x: auto; padding-bottom: 6px; }
.rp-col { flex: 0 1 280px; min-width: 220px; max-width: 300px; background: var(--surface-2); border: 1px solid var(--trait);
  border-radius: var(--r); padding: 10px; display: grid; gap: 8px; align-content: start; }
.rp-col.rp-col-vide { flex: 0 0 48px; min-width: 48px; max-width: 48px; padding: 10px 0; justify-items: center; gap: 8px; align-self: stretch; min-height: 240px; }
.rp-col-v { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 13px; font-weight: 600; color: var(--encre-2); white-space: nowrap; }
.rp-col.rp-over { border-color: var(--bleu); background: var(--bleu-pale); }
.rp-col-t { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin: 0; }
.rp-col-t span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-vide { color: var(--encre-3); font-size: 13px; padding: 6px 0; }
.rp-card { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-s); padding: 10px 12px; margin: 0;
  display: grid; gap: 3px; cursor: pointer; box-shadow: none; }
.rp-card.rp-urgent { box-shadow: inset 3px 0 0 var(--rouge); }
.rp-card.rp-drag { opacity: .5; }
.rp-card:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.rp-c-haut { display: flex; align-items: center; gap: 6px; margin: 0; }
.rp-num { font-weight: 600; font-size: 12.5px; color: var(--encre-2); letter-spacing: 0; }
.rp-ics { display: inline-flex; gap: 4px; color: var(--encre-3); }
.rp-ic { display: inline-grid; place-items: center; min-width: 18px; height: 18px; font-size: 11px; font-weight: 700; }
.rp-ic svg.i { width: 14px; height: 14px; }
.rp-age { margin-left: auto; font-size: 12px; color: var(--encre-3); white-space: nowrap; }
.rp-client { font-weight: 600; font-size: 14.5px; color: var(--encre); overflow-wrap: anywhere; }
.rp-app { font-size: 13px; color: var(--encre-2); }
.rp-panne { font-size: 13px; color: var(--encre); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; margin: 0; }
.rp-puces { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.rp-puce { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  background: var(--surface-2); color: var(--encre-2); white-space: nowrap; }
.rp-puce svg.i { width: 14px; height: 14px; }
.rp-puce.rouge { background: var(--rouge-pale); color: var(--rouge); }
.rp-puce.bleu { background: var(--bleu-pale); color: var(--bleu); }
.rp-suiv { justify-self: start; min-height: 40px; margin-top: 6px; font-size: 13.5px; }
@media (min-width: 641px) { .rp-suiv { display: none; } }
.rp-etapes { margin: 0; gap: 6px; }
.rp-etapes .fchip { min-height: 44px; flex: 0 0 auto; }
@media (max-width: 640px) {
  .rp-kanban { display: block; overflow: visible; }
  .rp-col { max-width: none; min-width: 0; }
  .rp-col-t { display: none; }
}
/* fiche */
.rp-f-tete { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.rp-f-titre { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-f-titre h2 { margin: 0; font-size: 20px; }
.rp-f-nav { display: flex; gap: 6px; }
.rp-f-nav .btn.icon { width: 44px; min-height: 44px; }
.rp-f-qui { margin-bottom: 10px; font-size: 15px; }
.rp-f-qui .rouge { color: var(--rouge); font-weight: 600; }
.rp-contact { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.rp-c-btn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.rp-c-btn svg.i { width: 18px; height: 18px; }
.rp-prochaine { display: grid; gap: 8px; padding: 12px; border-radius: var(--r); background: var(--bleu-pale); margin-bottom: 14px; }
.rp-prochaine label { font-weight: 600; font-size: 13.5px; color: var(--encre); }
.rp-prochaine select { min-height: 44px; }
.rp-next { min-height: 48px; font-size: 16px; width: 100%; }
.rp-autre { justify-self: start; min-height: 40px; background: transparent; border-color: transparent; color: var(--bleu); padding-left: 0; }
.rp-frm .rp-h3 { margin: 16px 0 6px; font-size: 15px; font-weight: 600; color: var(--encre); }
.rp-frm .rp-h3 .t2 { font-weight: 400; font-size: 12.5px; }
.rp-frm input, .rp-frm select, .rp-frm textarea { min-height: 44px; }
.rp-travaux { min-height: 96px; border-color: var(--bleu); }
.rp-code { display: flex; gap: 6px; }
.rp-code input { flex: 1; min-width: 0; }
.rp-code .btn.icon { width: 44px; min-height: 44px; }
.rp-cases { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.rp-case { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; }
.rp-case input { width: 22px; height: 22px; min-height: 0; }
.rp-lie { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.rp-lie .btn { min-height: 40px; }
.rp-res { max-height: 28vh; overflow-y: auto; }
.rp-res .irow { min-height: 44px; }
.rp-fac { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--trait); }
.rp-fac .btn { min-height: 40px; display: inline-flex; gap: 6px; align-items: center; }
.rp-lien-odoo .orange { color: var(--orange); }
.rp-hist { margin-top: 16px; }
.rp-hist > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.rp-suivi { margin-top: 16px; }
.rp-suivi > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.rp-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px 0 10px; }
.rp-actions .btn { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; }
.rp-actions .btn svg.i { width: 20px; height: 20px; }
@media (max-width: 640px) { .rp-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rp-contenu > #rpPuces .p2 { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }

/* ===== v534 — Calendrier refait (MODULES_CONTRAT « Calendrier », lot J) =====
   PC : colonne de gauche 240 px (mini-mois, équipe, calendriers en cases de couleur), grille horaire
   7 h–20 h en Semaine / Jour avec bandeau « journée » ; téléphone : Agenda + bande de 7 jours, filtres en
   feuille. Les couleurs d'événement viennent des calendriers (--cev, donnée) ; le reste lit les jetons. */
.cal-contenu { display: flex; flex-direction: column; gap: 10px; }
.cal-phrase { margin: 0; color: var(--encre-2); font-size: 14px; }
.cal-cadre { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.cal-cote { display: grid; gap: 10px; position: sticky; top: 76px; }
.cal-cote:empty { display: none; }
.cal-filtres-btn { display: none; }
@media (max-width: 820px) {
  .cal-cadre { grid-template-columns: minmax(0, 1fr); }
  .cal-filtres-btn { display: inline-flex; min-height: 44px; }
}
.cal-mini-t { display: flex; align-items: center; gap: 4px; }
.cal-mini-t b { flex: 1; text-align: center; font-size: 14px; text-transform: capitalize; }
.cal-mini-t .btn.icon { width: 32px; min-height: 32px; }
.cal-mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-mini-h { font-size: 11px; color: var(--encre-3); padding: 2px 0; }
.cal-mini-j { border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--encre); height: 30px; border-radius: 999px; cursor: pointer; font-variant-numeric: tabular-nums; }
.cal-mini-j.hors { color: var(--encre-3); }
.cal-mini-j.auj { color: var(--bleu); font-weight: 700; }
.cal-mini-j.on { background: var(--bleu); color: var(--sur-bleu); }
.cal-grp { display: grid; gap: 2px; }
.cal-grp-t { font-size: 12.5px; font-weight: 600; color: var(--encre-2); margin: 6px 0 2px; }
.cal-eq-sel { min-height: 40px; width: 100%; }
.cal-case { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; font-size: 14px; color: var(--encre); }
.cal-case input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cal-case-b { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--cev); flex: none; display: inline-grid; place-items: center; }
.cal-case input:checked + .cal-case-b { background: var(--cev); }
.cal-case input:focus-visible + .cal-case-b { outline: 2px solid var(--bleu); outline-offset: 2px; }
.cal-case-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-gerer { min-height: 40px; justify-self: start; margin-top: 4px; }
.cal-filtres .cal-case { min-height: 44px; }
/* barre de navigation de la zone principale */
.cal-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-nav .btn { min-height: 44px; }
.cal-nav .btn.icon { width: 44px; }
.cal-titre { flex: 1; min-width: 120px; margin: 0; font-size: 18px; text-transform: capitalize; }
.cal-vues button { min-height: 44px; min-width: 64px; }
/* mois */
.cal-cell .cal-evt { display: flex; align-items: center; gap: 4px; min-height: 22px; }
.cal-evt-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.cal-evt svg.i, .cal-ligne svg.i, .cal-bloc svg.i, .cal-barre-j svg.i { width: 13px; height: 13px; flex: none; vertical-align: -2px; }
.cal-plus { border: 0; background: none; font: inherit; font-size: 12px; color: var(--bleu); font-weight: 600; cursor: pointer; padding: 2px 5px; text-align: left; }
.cal-points { display: flex; gap: 3px; justify-content: center; margin-top: 4px; }
.cal-points i { width: 6px; height: 6px; border-radius: 50%; background: var(--cev); }
.cal-cell.choisi { border-color: var(--bleu); box-shadow: inset 0 0 0 1.5px var(--bleu); }
.cal-jour-t { margin: 14px 0 6px; font-size: 14px; font-weight: 600; color: var(--encre-2); text-transform: capitalize; }
.cal-jour-t.auj { color: var(--bleu); }
.cal-rien { margin: 6px 0; }
/* lignes (Agenda, Jour au téléphone, surimpression) : alignées à gauche */
.cal-lignes { display: grid; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; }
.cal-ligne { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--trait);
  background: var(--surface); color: var(--encre); font: inherit; padding: 10px 12px; min-height: 56px; cursor: pointer; }
.cal-ligne:last-child { border-bottom: 0; }
.cal-ligne .cal-barre { width: 4px; align-self: stretch; border-radius: 2px; background: var(--cev); flex: none; }
.cal-ligne .hrs { flex: none; width: 78px; font-size: 13px; font-weight: 600; color: var(--encre-2); font-variant-numeric: tabular-nums; padding-top: 1px; }
.cal-ligne-m { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cal-ligne-m .t1 { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.cal-ligne-m .t2 { font-size: 12.5px; color: var(--encre-2); }
/* bande de 7 jours (Agenda) */
.cal-bande { display: grid; grid-template-columns: repeat(7, minmax(44px, 1fr)); gap: 4px; margin-bottom: 4px; }
.cal-bj { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border: 1px solid var(--trait); border-radius: var(--r-s); background: var(--surface);
  font: inherit; color: var(--encre); cursor: pointer; min-height: 56px; position: relative; }
.cal-bj small { font-size: 11px; color: var(--encre-2); }
.cal-bj b { font-size: 16px; font-variant-numeric: tabular-nums; }
.cal-bj i { width: 5px; height: 5px; border-radius: 50%; background: var(--bleu); }
.cal-bj.auj b { color: var(--bleu); }
.cal-bj.on { background: var(--bleu); border-color: var(--bleu); color: var(--sur-bleu); }
.cal-bj.on small, .cal-bj.on b { color: var(--sur-bleu); }
.cal-bj.on i { background: var(--sur-bleu); }
/* grille horaire (Semaine / Jour) */
.cal-semaine { border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.cal-sem-h, .cal-journee { display: grid; grid-template-columns: 56px repeat(var(--n), minmax(0, 1fr)); border-bottom: 1px solid var(--trait); }
.cal-sem-j { border: 0; border-left: 1px solid var(--trait); background: none; font: inherit; color: var(--encre); padding: 8px 4px; cursor: pointer; min-height: 44px; }
.cal-sem-j small { color: var(--encre-2); }
.cal-sem-j.auj b { color: var(--sur-bleu); background: var(--bleu); border-radius: 999px; padding: 1px 7px; }
.cal-journee { grid-template-columns: 56px minmax(0, 1fr); min-height: 32px; }
.cal-journee-l { font-size: 11px; color: var(--encre-3); padding: 8px 4px; text-align: right; }
.cal-journee-g { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; padding: 4px 0; border-left: 1px solid var(--trait); align-content: start; }
.cal-barre-j { min-height: 24px; border: 0; border-radius: 6px; background: var(--cev); color: var(--sur-bleu); font: inherit; font-size: 12.5px; text-align: left; padding: 2px 8px;
  display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; cursor: pointer; }
.cal-barre-j span { overflow: hidden; text-overflow: ellipsis; }
.cal-barre-j.avant { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cal-barre-j.apres { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal-heures { max-height: calc(100vh - 300px); min-height: 320px; overflow-y: auto; }
.cal-heures-in { display: grid; grid-template-columns: 56px repeat(var(--n), minmax(0, 1fr)); position: relative; }
.cal-axe { position: relative; }
.cal-axe span { position: absolute; right: 6px; font-size: 11px; color: var(--encre-3); transform: translateY(-6px); font-variant-numeric: tabular-nums; }
.cal-axe span:first-child { transform: none; }
.cal-col { position: relative; border-left: 1px solid var(--trait); cursor: copy;
  background-image: repeating-linear-gradient(to bottom, var(--trait) 0 1px, transparent 1px 48px); }
.cal-col.auj { background-color: var(--bleu-pale); }
.cal-bloc { position: absolute; border: 0; border-left: 3px solid var(--cev); border-radius: 6px; background: var(--surface-2); color: var(--encre);
  font: inherit; font-size: 12.5px; text-align: left; padding: 3px 6px; overflow: hidden; cursor: pointer; display: block; line-height: 1.3; }
.cal-bloc b { font-weight: 600; color: var(--encre-2); }
/* fiche et formulaire */
.cal-f-tete { display: flex; align-items: flex-start; gap: 8px; }
.cal-f-tete h2 { flex: 1; min-width: 0; }
.cal-f-tete .btn.icon { width: 44px; min-height: 44px; }
.cal-fiche { display: grid; gap: 10px; margin: 6px 0 14px; }
.cal-f-l { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.cal-f-l svg.i { width: 18px; height: 18px; flex: none; color: var(--encre-2); margin-top: 2px; }
.cal-f-l .cal-dot { margin: 5px 4px 0; }
.cal-f-det { white-space: pre-wrap; color: var(--encre); background: var(--surface-2); border-radius: var(--r-s); padding: 10px 12px; }
.cal-h3 { margin: 14px 0 4px; font-size: 14px; font-weight: 600; }
.cal-switch { display: flex !important; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 500; }
.cal-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cal-switch-b { width: 48px; height: 28px; border-radius: 999px; background: var(--trait-fort); position: relative; flex: none; }
.cal-switch-b::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); transition: transform 160ms var(--ease-out); }
.cal-switch input:checked + .cal-switch-b { background: var(--bleu); }
.cal-switch input:checked + .cal-switch-b::after { transform: translateX(20px); }
.cal-switch input:focus-visible + .cal-switch-b { outline: 2px solid var(--bleu); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .cal-switch-b, .cal-switch-b::after { transition: none; } }
.cal-plus-f { margin-top: 12px; }
.cal-plus-f > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.cal-ajouts { margin-top: 12px; }
@media (max-width: 820px) {
  .cal-titre { font-size: 16px; }
  .cal-cell { min-height: 54px; }
  .cal-heures { max-height: none; }
}

/* ===== v535 — Procédures de montage refaites (MODULES_CONTRAT « Procédures », lot J) =====
   P1 + phrase, P2 Toutes · Favoris · catégories · Archivées, P3 au PC, fiche « mode atelier », édition P7. */
.mo-contenu { display: flex; flex-direction: column; gap: 12px; }
.mo-phrase { margin: 0; color: var(--encre-2); font-size: 14px; }
#moPuces .p2 { margin: 0; }
.mo-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1100px) {
  .mo-split { grid-template-columns: 360px minmax(0, 1fr); }
  .mo-pane { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: 18px 20px; }
  .mo-pane:empty { display: none; }
}
@media (max-width: 1099px) { .mo-pane { display: none; } }
.mo-liste { display: grid; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; }
.mo-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--trait);
  background: var(--surface); color: var(--encre); font: inherit; padding: 10px 14px; min-height: 60px; cursor: pointer; }
.mo-item:last-child { border-bottom: 0; }
.mo-item.on { background: var(--bleu-pale); box-shadow: inset 3px 0 0 var(--bleu); }
.mo-item-m { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mo-item-t { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.mo-item-s { font-size: 13px; color: var(--encre-2); }
.mo-etoile { color: var(--orange); flex: none; display: inline-grid; place-items: center; }
.mo-etoile svg.i { width: 18px; height: 18px; }
/* fiche « mode atelier » */
.mo-f-tete { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.mo-f-titre { flex: 1; min-width: 0; }
.mo-f-titre h2 { margin: 0; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.mo-f-titre p { margin: 2px 0 0; }
.mo-f-tete .btn.icon { width: 44px; min-height: 44px; }
.mo-archivee { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border-radius: var(--r-s);
  background: var(--orange-pale); color: var(--orange); font-weight: 600; }
.mo-archivee .btn { margin-left: auto; }
.mo-attention { background: var(--orange-pale); border-left: 4px solid var(--orange); border-radius: var(--r-s); padding: 12px 14px; margin-bottom: 16px; }
.mo-attention h3 { margin: 0 0 6px; font-size: 14px; color: var(--orange); }
.mo-attention div { white-space: pre-wrap; font-size: 16px; line-height: 1.55; color: var(--encre); }
.mo-etapes { margin: 0; padding-left: 0; list-style: none; counter-reset: etape; display: grid; gap: 14px; }
.mo-etapes li { counter-increment: etape; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; font-size: 17.5px; line-height: 1.5; color: var(--encre); }
.mo-etapes li::before { content: counter(etape); width: 32px; height: 32px; border-radius: 50%; background: var(--bleu-pale); color: var(--bleu);
  font-weight: 700; font-size: 15px; display: grid; place-items: center; }
/* édition */
.mo-e-ligne { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 6px; align-items: start; padding: 4px 0; }
.mo-e-n { font-weight: 700; color: var(--encre-2); padding-top: 12px; }
.mo-e-ligne textarea { min-height: 44px; resize: none; overflow: hidden; line-height: 1.4; padding: 10px 12px; }
.mo-e-act { display: flex; gap: 4px; }
.mo-e-act .btn.icon { width: 40px; min-height: 44px; }
.mo-switch { display: flex !important; align-items: center; gap: 10px; min-height: 44px; margin-top: 12px; cursor: pointer; font-weight: 500; }
.mo-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mo-switch-b { width: 48px; height: 28px; border-radius: 999px; background: var(--trait-fort); position: relative; flex: none; }
.mo-switch-b::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); transition: transform 160ms var(--ease-out); }
.mo-switch input:checked + .mo-switch-b { background: var(--bleu); }
.mo-switch input:checked + .mo-switch-b::after { transform: translateX(20px); }
.mo-switch input:focus-visible + .mo-switch-b { outline: 2px solid var(--bleu); outline-offset: 2px; }
.mo-switch svg.i { width: 18px; height: 18px; color: var(--orange); }
@media (prefers-reduced-motion: reduce) { .mo-switch-b::after { transition: none; } }
@media (max-width: 640px) {
  .mo-e-ligne { grid-template-columns: 26px minmax(0, 1fr); }
  .mo-e-act { grid-column: 2; justify-content: flex-end; }
}

/* ===== v536 — Configs PC refaites (MODULES_CONTRAT « Configs PC », lot J) =====
   P1 + phrase, recherche pleine largeur, P2 à compteurs, P4 : tableau dense au PC, lignes à 3 étages au
   téléphone (vignette 56 px, nom + prix, CPU · GPU · RAM, état), copier en 1 toucher ; fiche P6. */
.cfg-contenu { display: flex; flex-direction: column; gap: 10px; }
.cfg-phrase { margin: 0; color: var(--encre-2); font-size: 14px; }
.cfg-q { width: 100%; min-height: 44px; border: 1px solid var(--trait-fort); border-radius: var(--r-s); background: var(--surface);
  color: var(--encre); padding: 0 14px; font: inherit; }
.cfg-q:focus { outline: 2px solid var(--bleu); outline-offset: 0; border-color: var(--bleu); }
#cfgPuces .p2 { margin: 0; }
.cfg-compte { margin: 0 2px; }
.cfg-tab { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; }
.cfg-tab th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--encre-2); padding: 10px 10px; border-bottom: 1px solid var(--trait); background: var(--surface-2); }
.cfg-tab td { padding: 8px 10px; border-bottom: 1px solid var(--trait); font-size: 14px; color: var(--encre); vertical-align: middle; }
.cfg-tab tr:last-child td { border-bottom: 0; }
.cfg-tr { cursor: pointer; }
.cfg-tr:focus-visible { outline: 2px solid var(--bleu); outline-offset: -2px; }
.cfg-td-img { width: 64px; }
.cfg-vig { width: 48px; height: 48px; object-fit: contain; border-radius: var(--r-s); background: var(--surface-2); display: grid; place-items: center; }
.cfg-photo-vide { color: var(--encre-3); }
.cfg-photo-vide svg.i { width: 22px; height: 22px; }
.cfg-td-nom b { font-weight: 600; }
.cfg-td-prix { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
th.cfg-td-prix { text-align: right; }
.cfg-td-act { width: 52px; text-align: right; }
.cfg-td-act .btn.icon { width: 44px; min-height: 44px; }
.cfg-tel-cle { display: none; }
.cfg-puce { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  background: var(--surface-2); color: var(--encre-2); white-space: nowrap; }
.cfg-puce.orange { background: var(--orange-pale); color: var(--orange); }
.cfg-puce.vert { background: var(--vert-pale); color: var(--vert); }
.cfg-puce.bleu { background: var(--bleu-pale); color: var(--bleu); }
@media (max-width: 1100px) { .cfg-td-coul, .cfg-td-ram { display: none; } }
/* téléphone : lignes à 3 étages */
@media (max-width: 820px) {
  .cfg-tab thead { display: none; }
  .cfg-tab, .cfg-tab tbody { display: block; }
  .cfg-tr { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "img nom prix" "img cle act" "img etat act";
    column-gap: 10px; row-gap: 2px; padding: 8px 10px; border-bottom: 1px solid var(--trait); }
  .cfg-tr:last-child { border-bottom: 0; }
  .cfg-tr td { padding: 0; border: 0; }
  .cfg-td-img { grid-area: img; width: auto; }
  .cfg-vig { width: 56px; height: 56px; }
  .cfg-td-nom { grid-area: nom; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cfg-td-prix { grid-area: prix; }
  .cfg-tel-cle { display: block; grid-area: cle; font-size: 12.5px; color: var(--encre-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cfg-td-nom .cfg-tel-cle { margin-top: 1px; }
  .cfg-td-coul, .cfg-td-cpu, .cfg-td-gpu, .cfg-td-ram { display: none; }
  .cfg-td-etat { grid-area: etat; min-width: 0; }
  .cfg-td-act { grid-area: act; align-self: end; width: auto; }
  .cfg-td-nom { white-space: normal; }
  .cfg-td-nom b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* fiche */
.cfg-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.cfg-hero-photo { width: 160px; height: 130px; flex: none; object-fit: contain; border-radius: var(--r); background: var(--surface-2); display: grid; place-items: center; }
.cfg-hero-photo.cfg-photo-vide svg.i { width: 40px; height: 40px; }
.cfg-hero-prix { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.cfg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cfg-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 16px; }
.cfg-actions .btn { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; }
.cfg-actions .btn svg.i { width: 18px; height: 18px; }
.cfg-actions .btn small { font-size: 11.5px; font-weight: 400; }
.cfg-h3 { margin: 14px 0 6px; font-size: 15px; font-weight: 600; }
.cfg-pieces, .cfg-options { display: grid; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; }
.cfg-p { padding: 8px 12px; border-bottom: 1px solid var(--trait); display: grid; gap: 1px; }
.cfg-p:last-child { border-bottom: 0; }
.cfg-p-cat { font-size: 12px; color: var(--encre-2); }
.cfg-p-nom { font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cfg-option { padding: 8px 12px; border-bottom: 1px solid var(--trait); }
.cfg-option:last-child { border-bottom: 0; }
.cfg-calcul { margin-top: 14px; }
.cfg-calcul > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 500; color: var(--encre-2); }
@media (max-width: 640px) { .cfg-hero { flex-direction: column; align-items: stretch; } .cfg-hero-photo { width: 100%; height: 180px; } }
@media (max-width: 820px) {
  #cfgPuces .p2 { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .cfg-compte-tout { display: none; }
  .cfg-pro-pc { display: none; }
  .cfg-tr { padding: 6px 10px; }
}

/* ===== v538 — Paniers refaits (MODULES_CONTRAT « Paniers », lot K) =====
   P1 + phrase + « Appeler le suivant », ⋯ (Rafraîchir, tri, vue) ; P2 à compteurs ; ligne à 3 étages avec UNE
   action (Appeler) ; cases toujours visibles au PC, appui long au téléphone ; barre P10 collante ; glisser à
   gauche = Archiver ; fiche P6 en panneau (prochaine action, intérêt en segment, sections, grille d'actions). */
.pan-contenu { display: flex; flex-direction: column; gap: 10px; }
.pan-phrase { margin: 0; color: var(--encre-2); font-size: 14px; }
.pan-maj, .pan-demo { color: var(--encre-3); }
.pan-q { width: 100%; min-height: 44px; border: 1px solid var(--trait-fort); border-radius: var(--r-s); background: var(--surface);
  color: var(--encre); padding: 0 14px; font: inherit; }
.pan-q:focus { outline: 2px solid var(--bleu); outline-offset: 0; border-color: var(--bleu); }
#shPuces .p2 { margin: 0; }
.pan-liste { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; }
.pan-ligne { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--trait);
  background: var(--surface); touch-action: pan-y; }
.pan-ligne:last-child { border-bottom: 0; }
.pan-ligne.pan-coche { background: var(--bleu-pale); }
.pan-ligne.pan-glisse { background: var(--surface-2); }
.pan-case { flex: none; width: 44px; height: 44px; margin: -6px 0 -6px -8px; display: grid; place-items: center; border: 0; background: none;
  color: var(--sur-bleu); cursor: pointer; padding: 0; position: relative; }
.pan-case::before { content: ""; position: absolute; width: 20px; height: 20px; border: 1.5px solid var(--trait-fort); border-radius: 5px; background: var(--surface); }
.pan-case[aria-checked="true"]::before { background: var(--bleu); border-color: var(--bleu); }
.pan-case svg.i { position: relative; width: 14px; height: 14px; }
.pan-corps { min-width: 0; cursor: pointer; display: grid; gap: 3px; }
.pan-corps:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; border-radius: var(--r-s); }
.pan-l1 { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.pan-nom { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pan-montant { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pan-l2 { font-size: 13.5px; color: var(--encre-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pan-l3 { display: flex; flex-wrap: wrap; gap: 4px; }
.pan-l4 { font-size: 13px; color: var(--encre-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pan-puce { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--surface-2); color: var(--encre-2); white-space: nowrap; }
.pan-puce svg.i { width: 13px; height: 13px; }
.pan-puce.vert { background: var(--vert-pale); color: var(--vert); }
.pan-puce.orange { background: var(--orange-pale); color: var(--orange); }
.pan-puce.bleu { background: var(--bleu-pale); color: var(--bleu); }
.pan-appeler { flex: none; min-height: 44px; min-width: 44px; align-self: center; }
.pan-bulk { margin-top: 0; }
.pan-bulk .btn { min-height: 40px; }
.pan-bulk .btn:disabled { opacity: .45; }
.pan-h3 { margin: 14px 0 6px; font-size: 15px; font-weight: 600; }
#shSuivant:disabled { opacity: .5; }
@media (max-width: 820px) {
  .pan-lb-long, .pan-lb { display: none; }
  .pan-case { display: none; }
  .pan-sel .pan-case { display: grid; }
  .pan-bulk { display: none; }
  .pan-sel .pan-bulk { display: flex; }
  .pan-ligne { padding: 10px; }
}
/* fiche */
.pan-f-tete h2 { margin: 0 0 2px; }
.pan-f-sous { margin: 0 0 6px; color: var(--encre-2); }
.pan-f-sous .pan-montant { color: var(--encre); font-size: 20px; }
.pan-f-action { display: grid; gap: 10px; margin: 10px 0 14px; padding: 12px; border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface-2); }
.pan-f-appeler { min-height: 52px; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pan-interet { display: grid; grid-template-columns: 1fr 1fr 64px; }
.pan-interet button { min-height: 44px; }
.pan-interet button.on.non { color: var(--rouge); }
.pan-f-sec { margin: 0 0 14px; }
.pan-f-sec h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.pan-f-sec h3 .t2 { font-weight: 400; }
.pan-f-panier { padding: 6px 0; border-bottom: 1px solid var(--trait); }
.pan-f-panier:last-child { border-bottom: 0; }
.pan-note-pied { gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.pan-promo { margin-top: 8px; }
.pan-promo summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--bleu); font-weight: 600; }
.pan-promo-champs { gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.pan-promo-champs label { flex: 0 0 auto; }
.pan-promo-champs label.grow { flex: 1 1 140px; }
.pan-promo-res { gap: 8px; margin: 8px 0; align-items: center; white-space: normal; }
.pan-promo-l { gap: 8px; align-items: center; padding: 4px 0; flex-wrap: wrap; }
.pan-promo-l.pale { opacity: .55; }
.pan-f-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.pan-f-act { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px;
  border: 1px solid var(--trait); border-radius: var(--r-s); background: var(--surface); color: var(--encre); text-decoration: none; font: inherit;
  font-size: 13.5px; cursor: pointer; text-align: center; }
.pan-f-act svg.i { width: 20px; height: 20px; color: var(--bleu); }
.pan-note-qui { margin: 4px 0 0; }

/* ===== v539 — CRM refait (MODULES_CONTRAT « CRM », lot K) =====
   P1 + phrase, « Nouveau lead » seul bouton bleu, segment Kanban | Liste ; P2 à compteurs ; colonnes de
   ~280 px, carte à 2 puces (montant, âge) + discret ; « Déplacer vers… » ; liste à 2 étages ; devis à
   relancer ; fiche P6 (étape en segment, prochaine action, « Enregistré » au champ) ; stats avec états vides. */
.crm-contenu { display: flex; flex-direction: column; gap: 10px; }
.crm-phrase { margin: 0; color: var(--encre-2); font-size: 14px; min-height: 1.4em; }
.crm-q { width: 100%; min-height: 44px; border: 1px solid var(--trait-fort); border-radius: var(--r-s); background: var(--surface);
  color: var(--encre); padding: 0 14px; font: inherit; }
.crm-q:focus { outline: 2px solid var(--bleu); outline-offset: 0; border-color: var(--bleu); }
#crmChips .p2 { margin: 0; }
.crm-etapes .p2 { margin: 6px 0 0; }
.crm-seg button { min-height: 36px; padding: 0 12px; }
.crm-kanban .kcol { flex: 0 0 280px; max-width: 280px; }
.crm-col-tot { font-size: 12.5px; color: var(--encre-2); padding: 0 4px 8px; }
.crm-vide { margin: 4px 0 8px; text-align: center; font-size: 13px; color: var(--encre-3); }
.crm-carte { display: grid; gap: 4px; cursor: pointer; }
.crm-carte:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.crm-c1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.crm-c1 b { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-c2 { font-size: 12.5px; color: var(--encre-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-c3 { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.crm-deplacer { flex: none; width: 44px; min-height: 36px; margin: -6px -8px -6px 0; }
.crm-puce { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--surface-2); color: var(--encre-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.crm-puce.orange { background: var(--orange-pale); color: var(--orange); }
.crm-puce.rouge { background: var(--rouge-pale); color: var(--rouge); }
.crm-puce.bleu { background: var(--bleu-pale); color: var(--bleu); }
.crm-puce.crm-mt { color: var(--encre); font-weight: 600; }
.crm-discret { margin-left: auto; font-size: 12px; color: var(--encre-3); display: inline-flex; align-items: center; gap: 4px; }
.crm-discret svg.i { width: 14px; height: 14px; }
.crm-plus { width: 100%; margin-top: 8px; }
.crm-note { margin: 8px 4px; }
.crm-liste .crm-ligne, .crm-devis { width: 100%; text-align: left; }
.crm-l1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.crm-l1 b { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-mt { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.crm-l2 { font-size: 13px; color: var(--encre-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-l2 svg.i { width: 14px; height: 14px; vertical-align: -2px; }
.crm-orange { color: var(--orange); }
.crm-rouge { color: var(--rouge); }
.crm-vert { color: var(--vert); }
.crm-h3 { margin: 12px 0 6px; font-size: 15px; font-weight: 600; }
.crm-devis-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.crm-devis-act .btn { min-height: 40px; text-decoration: none; }
.crm-rel-msg { width: 100%; }
.crm-rel-ext pre { white-space: pre-wrap; font-size: 12.5px; color: var(--encre-2); }
@media (max-width: 820px) {
  .crm-ecran .tb-outils { flex-wrap: wrap; gap: 6px; }
  .crm-kanban .kcol { flex: none; max-width: none; }
}
/* fiche */
.crm-f-tete { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.crm-f-tete h2 { margin: 0 0 4px; font-size: 18px; }
.crm-f-sous { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crm-f-sous b { font-variant-numeric: tabular-nums; }
.crm-f-action { display: grid; gap: 10px; margin: 0 0 14px; padding: 12px; border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface-2); }
.crm-f-ech label { display: block; font-size: 13px; color: var(--encre-2); margin-bottom: 4px; }
.crm-f-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.crm-f-btns .btn { min-height: 44px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.crm-f-etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
.crm-f-etapes button { min-height: 44px; }
.crm-f-autre { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--encre-2); }
.crm-f-autre select { flex: 1; }
.crm-perdu { margin: 0; color: var(--rouge); font-size: 13.5px; }
.crm-f-sec { margin: 0 0 14px; }
.crm-f-sec h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.crm-f-sec h3 .t2 { font-weight: 400; }
.crm-ok { font-size: 12px; font-weight: 400; color: var(--vert); margin-left: 6px; }
.crm-ok.err { color: var(--rouge); }
.crm-lu { padding: 6px 2px; }
.crm-prio { display: grid; grid-template-columns: repeat(4, 1fr); }
.crm-prio button { min-height: 44px; }
.crm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.crm-tag { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--trait-fort); background: var(--surface); color: var(--encre-2); font: inherit; font-size: 13px; cursor: pointer; }
.crm-tag.on { background: var(--bleu-pale); border-color: var(--bleu); color: var(--bleu); }
.crm-chev { color: var(--encre-3); font-size: 18px; }
/* stats */
.crm-st { margin-bottom: 10px; }
.crm-st-l { padding: 5px 0; border-bottom: 1px solid var(--trait); }
.crm-st-vide { margin: 4px 0; }
.crm-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.crm-bar-v { height: 100%; border-radius: 4px; background: var(--bleu); }
.crm-bar-v.vert { background: var(--vert); }
.crm-bar-v.rouge { background: var(--rouge); }

/* ===== v541 — Mails refaits (MODULES_CONTRAT « Mails », lot K) =====
   P1 « Mails » + phrase, « Écrire » (bouton flottant au téléphone), recherche en icône au téléphone, ⋯ ; icône
   SVG par rôle de dossier ; au téléphone, boîte + dossier dans un sélecteur ; lecture : barre d'actions sur une
   ligne au PC, collante en bas au téléphone ; suggestion de lien en bouton plein ; rédaction « Annuler · Envoyer ». */
.ml-phrase { margin: 0 0 8px; color: var(--encre-2); font-size: 14px; }
.ml-q { min-width: 220px; }
.ml-q-btn { display: none; }
.ml-fab { display: none; }
.ml-dossier svg.i, .ml-sel-d .ic svg.i, .ml-selecteur svg.i { width: 18px; height: 18px; flex: none; color: var(--encre-2); }
.ml-dossier.on svg.i { color: var(--bleu); }
.ml-err svg.i { color: var(--orange); width: 16px; height: 16px; }
.ml-nb { background: var(--bleu); color: var(--sur-bleu); border-radius: 999px; }
.ml-selecteur { display: none; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin-bottom: 8px; padding: 6px 12px;
  border: 1px solid var(--trait-fort); border-radius: var(--r-s); background: var(--surface); color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.ml-selecteur .grow { min-width: 0; display: grid; }
.ml-selecteur .t2 { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-filtres .p2 { margin: 0; flex-wrap: nowrap; }
.ml-compte { text-align: right; }
.ml-sel-b.on, .ml-sel-d.on { background: var(--bleu-pale); }
.ml-sel-d { padding-left: 34px; }
.ml-ligne.ml-glisse-g { background: var(--surface-2); }
.ml-l-nav { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ml-gauche { transform: scaleX(-1); }
.ml-dest summary { cursor: pointer; min-height: 28px; display: inline-flex; align-items: center; }
.ml-actions { flex-wrap: nowrap; gap: 4px; min-width: 0; }
.ml-actions .btn { min-height: 40px; white-space: nowrap; flex: none; }
.ml-actions .btn:not(.icon) { padding: 0 12px; }
.ml-actions .btn.icon, .ml-actions .ml-ic { width: 40px; padding: 0; justify-content: center; }
.ml-ic .ml-lb { display: none; }
@media (min-width: 1101px) and (max-width: 1600px) { .ml .ml-grille { grid-template-columns: 210px minmax(260px, 320px) minmax(0, 1fr); } }
@media (min-width: 1700px) { .ml-ic .ml-lb { display: inline; } .ml-actions .ml-ic { width: auto; padding: 0 12px; } }
.ml-actions .btn.icon { width: 40px; }
.ml-seule { margin: 0 0 8px; }
.ml-sugg { align-items: center; }
.ml-sugg:empty { display: none; }
.ml-sug-txt { font-size: 12.5px; color: var(--encre-2); }
.ml-sug-btn { min-height: 44px; }
.ml-lien { min-height: 32px; padding: 0 10px; border-radius: 999px; background: var(--bleu-pale); color: var(--bleu); font-size: 13px; }
.ml-lien svg.i { width: 15px; height: 15px; }
.ml-pj { list-style: none; padding: 0; }
.ml-pj-item svg.i { width: 16px; height: 16px; color: var(--encre-2); }
.ml-pj-dl { min-height: 32px; text-decoration: none; }
.mc-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mc-tete h2 { margin: 0; text-align: center; font-size: 17px; }
.mc-tete .btn { min-height: 44px; }
@media (max-width: 1100px) { .ml-selecteur { display: flex; } }
@media (max-width: 640px) {
  .ml-ecran .tbar.tb-pleine { flex-wrap: nowrap; }
  .ml-ecran .tbar.tb-pleine .spacer { flex: 1 1 auto; }
  .ml-ecran .tbar.tb-pleine .tb-outils { flex-wrap: nowrap; justify-content: flex-end; }
  .ml-ecran .ml-q { display: none; }
  .ml-ecran.ml-cherche .ml-q { display: block; position: absolute; left: 12px; right: 12px; top: calc(100% + 4px); z-index: 5; min-width: 0; }
  .ml-ecran .tbar { position: relative; }
  .ml-q-btn { display: inline-flex; }
  .ml-ecrire-pc { display: none !important; }
  .ml-fab:not([hidden]) { display: inline-flex; position: fixed; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 140px); z-index: 20;
    min-height: 52px; padding: 0 18px; border-radius: 999px; box-shadow: var(--ombre-2); gap: 6px; align-items: center; }
  .ml.lecture .ml-fab { display: none; }
  .ml-pc { display: none !important; }
  .ml-lire .ml-lecture { display: flex; flex-direction: column; }
  .ml-actions { order: 99; position: sticky; bottom: calc(env(safe-area-inset-bottom) + 72px); z-index: 4; background: var(--surface);
    border-top: 1px solid var(--trait); margin: 0 -12px 10px; padding: 8px 12px; }
  .ml-actions .btn.primary { flex: 1; justify-content: center; }
  .ml-retour { display: inline-flex; width: 44px; min-height: 44px; }
}
/* ===== v542 — Care refait (MODULES_CONTRAT « Care », lot K) =====
   P1 « Care » + phrase, action principale selon le segment ; segments Flotte · Clients · Demandes · Scripts ·
   Réglages ; tuiles qui filtrent (2 au téléphone) ; légende en points ; fiche PC en panneau avec « Prochaine
   action » et grille de scripts ; demandes : ID RustDesk insécable + Copier, Appeler / Mail en icônes 44 px. */
.care-phrase { margin: 0 0 10px; color: var(--encre-2); font-size: 14px; }
.care-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-bottom: 14px; max-width: 640px; }
.care-seg button { min-height: 40px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.care-p9-tel { display: none; }
.care-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.care-barre .p2 { margin: 0; }
.care-q { flex: 1 1 240px; min-width: 0; min-height: 40px; padding: 0 12px; font: inherit; color: var(--encre);
  background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--r-s); }
.care-q:focus { border-color: var(--bleu); outline: 2px solid var(--bleu); outline-offset: -1px; }
.care-p9 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.care-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 8px; font-size: 12.5px; }
.care-dot { background: var(--trait-fort); }
.care-dot.on { background: var(--vert); box-shadow: 0 0 0 3px var(--vert-pale); }
.care-dot.idle { background: var(--orange); }
.care-dot.off { background: transparent; box-shadow: inset 0 0 0 2px var(--encre-3); }
.care-l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.care-l1 b { overflow-wrap: anywhere; }
.care-l2 { color: var(--encre-2); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.care-l3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; color: var(--encre-2); font-size: 12.5px; }
.care-liste .irow { align-items: flex-start; }
.care-aide { margin-top: 14px; }
.care-aide summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; font-weight: 600; }
.care-pc-nom { margin: 0 0 4px; overflow-wrap: anywhere; }
.care-puces { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.care-hero { align-items: flex-start; }
.care-ring.ok { border-color: var(--vert); } .care-ring.warn { border-color: var(--orange); } .care-ring.bad { border-color: var(--rouge); }
.care-ring { border-color: var(--trait); }
.care-action { border: 1px solid var(--trait); border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; background: var(--surface); }
.care-action h3, .care-sec h3 { margin: 0 0 8px; font-size: 15px; }
.care-action .care-issue { align-items: center; }
.care-action .care-issue .btn { flex: none; min-height: 40px; }
.care-issue { border-bottom-color: var(--trait); }
.care-issue.s2 .sev { background: var(--orange); }
.care-note { margin: 10px 0 0; font-size: 12.5px; }
.care-sec { margin-bottom: 16px; }
.care-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.care-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 8px;
  border: 1px solid var(--trait); border-radius: var(--r-s); background: var(--surface); color: var(--encre); font: inherit; font-size: 13px;
  text-align: center; text-decoration: none; cursor: pointer; }
.care-act svg.i { width: 22px; height: 22px; color: var(--bleu); }
.care-act:active { transform: scale(.98); }
.care-act:disabled { opacity: .5; }
.care-disque { margin-bottom: 8px; }
.care-bar i { background: var(--vert); }
.care-bar.warn i { background: var(--orange); } .care-bar.bad i { background: var(--rouge); }
.care-hist summary { cursor: pointer; list-style: none; display: flex; align-items: center; min-height: 40px; }
.care-hist summary::-webkit-details-marker { display: none; }
.care-hist summary h3 { margin: 0; }
.care-hist summary::after { content: "Afficher"; margin-left: auto; color: var(--bleu); font-size: 13px; }
.care-hist[open] summary::after { content: "Masquer"; }
.care-danger .t1, .care-danger svg.i { color: var(--rouge); }
.care-pre-l { max-height: 60vh; }
.care-client-act { display: flex; gap: 6px; flex: none; align-items: center; }
.care-client-act .btn { min-height: 40px; }
.care-req { border-left-color: var(--bleu); }
.care-req.red { border-left-color: var(--rouge); } .care-req.orange { border-left-color: var(--orange); }
.care-req-tete { display: flex; gap: 10px; align-items: flex-start; }
.care-req-tete .grow { min-width: 0; }
.care-req-act { display: flex; gap: 6px; align-items: center; flex: none; }
.care-req-act .btn { min-height: 44px; }
.care-req-act .btn.icon { width: 44px; justify-content: center; padding: 0; }
.care-req-msg { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.care-rd-bloc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; }
.care-rd { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 19px; letter-spacing: .08em; }
.care-rd-bloc .btn { min-height: 44px; gap: 6px; }
.care-req-focus { box-shadow: 0 0 0 2px var(--bleu); }
.care-nowrap { white-space: nowrap; }
.care-sous { margin: 0 0 10px; color: var(--encre-2); font-size: 14px; }
.care-traitees { margin-top: 12px; }
.care-traitees summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; color: var(--encre-2); }
.care-script-nom { font-size: 16px; }
.care-script .actions { margin-top: 10px; }
.care-ver-n { width: 76px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: none; }
.care-ver-pct { width: 170px; display: flex; align-items: center; gap: 8px; flex: none; }
.care-ver-pct .care-bar { width: 70px; margin-top: 0; }
.care-ver-meta { color: var(--encre-3); }
.care-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.care-soft-row, .care-soft-add { gap: 6px; align-items: center; }
.care-soft-row .sid { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.care-soft-row .slb, .care-soft-add input { flex: 1; min-width: 0; }
.care-soft-add { margin-top: 8px; }
.care-soft-row .btn.icon { width: 40px; min-height: 40px; justify-content: center; padding: 0; }
@media (max-width: 820px) {
  .care-ecran .tbar.tb-pleine { flex-wrap: nowrap; }
  .care-ecran .tbar.tb-pleine .tb-outils { flex-wrap: nowrap; }
  .care-seg { display: flex; max-width: none; }
  .care-seg button { flex: 1 1 auto; font-size: 12.5px; padding: 0 4px; text-overflow: clip; }
  .care-long { display: none; }
  .care-rd-bloc > .t2 { flex-basis: 100%; }
  .care-seg .p2-n { margin-left: 2px; }
  .care-p9-tel { display: flex; }
  .care-p9 { grid-template-columns: 1fr 1fr; margin-bottom: 10px; }
  .care-barre .p2 { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .care-p9 .p9-t { padding: 8px 12px; }
  .care-p9 .p9-t b { font-size: 19px; }
  .care-legende { display: none; }
  .care-ver { flex-wrap: wrap; }
  .care-ver .grow { flex-basis: 100%; }
}
@media (max-width: 480px) {
  .care-req-tete { flex-wrap: wrap; }
  .care-req-act { width: 100%; }
  .care-req-act .btn.primary { margin-left: auto; min-width: 112px; justify-content: center; }
}
@media (max-width: 760px) {
  .care-hero { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .care-hero > .grow { flex-basis: 100%; order: 3; }
  .care-hero #carePcMenu { align-self: flex-end; margin: 0 56px 0 auto; }
}
/* ===== v543 — WhatsApp : SH Chat DANS l'app (Joan, 06.11 point 9 et 08.11) =====
   Le cadre prend tout l'espace sous l'en-tête ; la barre de gauche (PC) et les onglets du bas (téléphone)
   restent. Au téléphone, la bulle du téléphone remonte pour ne pas couvrir la zone de saisie de SH Chat. */
.wac-ecran { display: flex; flex-direction: column; min-height: 0; }
.wac-box { flex: 1; min-height: 0; }
.wac-cadre { display: block; width: 100%; height: calc(100dvh - 120px); border: 0; background: var(--surface); }
body.wac-ouvert #app { padding-bottom: 0; }
body.wac-ouvert .tel-dock, body.wac-ouvert.avec-coque .tel-dock { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (max-width: 820px) {
  .wac-ecran .tbar.tb-pleine { flex-wrap: nowrap; }
  body.wac-ouvert.avec-coque #app { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.wac-ouvert .tel-dock, body.wac-ouvert.avec-coque .tel-dock { bottom: calc(170px + env(safe-area-inset-bottom)); }
}
/* ===== v545 — Influenceurs dans la coquille (MODULES_CONTRAT « Influenceurs », lot K 6/6) =====
   P1 + phrase, 4 tuiles (une seule au téléphone), segments Streamers · Vue d'ensemble, lignes P4, fiche en
   panneau ; barre Versé / À verser / En attente sur des jetons définis (vert, bleu, gris). */
.inf-phrase { margin: 0 0 10px; color: var(--encre-2); font-size: 14px; }
.inf-p9 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.inf-p9 .p9-t.inf-du b { color: var(--bleu); }
.inf-demo { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--encre-2); font-size: 13px; }
.inf-seg { display: inline-flex; margin-bottom: 12px; }
.inf-seg button { min-height: 40px; padding: 0 16px; }
.inf-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.inf-barre .p2 { margin: 0; }
.inf-q { flex: 1 1 200px; min-width: 0; min-height: 40px; padding: 0 12px; font: inherit; color: var(--encre);
  background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--r-s); }
.inf-ligne { cursor: pointer; align-items: center; gap: 12px; }
.inf-av { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 600; font-size: 13px;
  background: var(--bleu-pale); color: var(--bleu); }
.inf-av-l { width: 56px; height: 56px; font-size: 18px; }
.inf-l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.inf-l1 b { overflow-wrap: anywhere; }
.inf-l2 { color: var(--encre-2); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.inf-l2 code, .inf-code { font-family: ui-monospace, Menlo, Consolas, monospace; }
.inf-du-l { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.inf-du-l small { color: var(--encre-3); font-size: 12px; }
.inf-du-l.on b { color: var(--bleu); font-size: 15px; }
.inf-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
.inf-sec h3 { margin: 0 0 2px; font-size: 15px; }
.inf-sec > .t2 { margin: 0 0 10px; }
.inf-sec { margin-bottom: 12px; }
.inf-mois { display: flex; align-items: flex-end; gap: 8px; min-height: 190px; overflow-x: auto; padding-top: 8px; }
.inf-m { flex: 1 0 44px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; }
.inf-m em { font-style: normal; color: var(--encre-2); font-variant-numeric: tabular-nums; }
.inf-m-b { width: 70%; max-width: 36px; border-radius: 3px 3px 0 0; background: var(--bleu); }
.inf-m small { color: var(--encre-3); }
.inf-top { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--trait);
  background: transparent; color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.inf-top:last-child { border-bottom: 0; }
.inf-top .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inf-top small { color: var(--encre-2); font-size: 12px; }
.inf-rk { width: 22px; flex: none; color: var(--encre-3); font-variant-numeric: tabular-nums; text-align: center; }
.inf-trk { display: block; height: 5px; border-radius: 999px; background: var(--actif); overflow: hidden; }
.inf-trk i { display: block; height: 100%; background: var(--bleu); }
.inf-v { flex: none; font-variant-numeric: tabular-nums; font-weight: 600; }
.inf-tete { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.inf-nom { margin: 0 0 6px; overflow-wrap: anywhere; }
.inf-puces { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.inf-chaine { font-size: 13px; overflow-wrap: anywhere; }
.inf-code-l { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.inf-code { font-size: 18px; letter-spacing: .04em; padding: 6px 12px; background: var(--actif); border-radius: var(--r-s); white-space: nowrap; user-select: all; }
.inf-code-l .btn, .inf-sec-act .btn { min-height: 44px; gap: 6px; }
.inf-action { border: 1px solid var(--trait); border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; background: var(--surface); }
.inf-action h3, .inf-sec2 h3 { margin: 0 0 8px; font-size: 15px; }
.inf-action .t2 { margin: 0; }
.inf-verser { min-height: 44px; width: 100%; justify-content: center; }
.inf-sec2 { margin-bottom: 16px; }
.inf-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--actif); }
.inf-bar i { display: block; height: 100%; }
.inf-b-v { background: var(--vert); } .inf-b-a { background: var(--bleu); } .inf-b-t { background: var(--trait-fort); }
.inf-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 10px; font-size: 13px; color: var(--encre-2); }
.inf-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.inf-sec-act { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.inf-cmd .chip, .inf-vers .chip { margin-right: 4px; }
.inf-code-in { text-transform: uppercase; font-family: ui-monospace, Menlo, Consolas, monospace; }
@media (max-width: 820px) {
  .inf-ecran .tbar.tb-pleine { flex-wrap: nowrap; }
  .inf-long { display: none; }
  .inf-p9 { grid-template-columns: 1fr; margin-bottom: 10px; }
  .inf-p9 .p9-t { padding: 8px 12px; }
  .inf-cols { grid-template-columns: minmax(0, 1fr); }
  .inf-seg { display: flex; }
  .inf-seg button { flex: 1; }
}
/* ===== v546 — Heures + Frais refaits (MODULES_CONTRAT « Heures », lot L) =====
   Heures : phrase, onglets Pointages · Frais · Mes PC ; au PC, carte de badge + totaux à gauche (360 px) et
   journal à droite ; au téléphone, badge 56 px pleine largeur, totaux sur une ligne. Frais : tuiles, puces de
   statut, « Valider » sur la ligne, barre P10, fiche « Prochaine action », formulaire type en gros boutons. */
.h-phrase { margin: 0 0 10px; color: var(--encre-2); font-size: 14px; }
.h-corr { border: 0; background: var(--orange-pale); color: var(--orange); font: inherit; font-weight: 600; border-radius: 999px; padding: 2px 10px; min-height: 28px; cursor: pointer; }
.h-onglets .seg { display: inline-flex; }
.h-onglets .seg button { min-height: 40px; padding: 0 16px; }
.h-grille { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.h-gauche { display: flex; flex-direction: column; gap: 12px; }
.h-badge { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.h-etat { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.h-point { width: 10px; height: 10px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px var(--encre-3); flex: none; }
.h-badge.on .h-point { background: var(--vert); box-shadow: 0 0 0 3px var(--vert-pale); }
.btn.h-punch { min-height: 56px; width: 100%; justify-content: center; gap: 12px; font-size: 16px; font-weight: 600; padding: 0 18px; }
.btn.h-punch b { font-size: 18px; font-variant-numeric: tabular-nums; }
.btn.h-punch.out { background: var(--rouge); border-color: var(--rouge); color: var(--sur-couleur); justify-content: space-between; }
.h-depuis { margin: 0; }
.h-totaux { display: flex; flex-direction: column; border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); }
.h-tot { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 10px 14px; border-bottom: 1px solid var(--trait); }
.h-tot:last-child { border-bottom: 0; }
.h-tot b { font-size: 17px; }
.h-tot small { grid-column: 1 / -1; color: var(--encre-3); font-size: 12px; }
.h-journal-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.h-journal-tete h3 { margin: 0; font-size: 16px; }
.h-journal-tete .btn { min-height: 40px; }
.h-droite .day-h { display: flex; justify-content: space-between; padding: 14px 4px 6px; }
.h-ligne { width: 100%; text-align: left; align-items: center; }
.h-l2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; }
.h-duree { flex: none; font-variant-numeric: tabular-nums; }
.h-duree-l { margin: 2px 0 6px; color: var(--encre-2); font-size: 14px; }
.h-avert { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--r-s); background: var(--orange-pale); color: var(--encre); font-size: 14px; }
.h-paye { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--trait); border-radius: var(--r-s); }
.h-pc-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.h-pc-tete h3 { margin: 0; }
.h-pc-p9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h-pc { align-items: center; gap: 8px; }
.fr-tete .grow { flex: 1; }
.fr-tete .btn { min-height: 40px; }
.fr-p9 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.fr-p9 .p9-t.fr-p9-a b { color: var(--orange); }
.fr-ligne { gap: 8px; }
.fr-ouvrir { color: var(--encre); }
.fr-ouvrir:focus-visible { outline: 2px solid var(--bleu); outline-offset: -2px; }
.fr-date, .fr-txt small { color: var(--encre-2); }
.fr-valider { flex: none; min-height: 40px; margin-right: 4px; }
.fr-liste, .fr-ligne, .fr-mini, .fr-ticket, .fr-tk-x, .fr-fiche .kv { border-color: var(--trait); }
.fr-mini, .fr-ticket { border-radius: var(--r-s); background: var(--actif); }
.fr-tk-x { display: grid; place-items: center; width: 28px; height: 28px; background: var(--surface); color: var(--encre); border-radius: var(--r-s); }
.fr-tk-x svg.i { width: 14px; height: 14px; }
.fr-tickets-l .fr-ticket { width: 112px; height: 112px; }
.fr-tete-f { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.fr-motif { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--r-s); background: var(--rouge-pale); color: var(--encre); }
.fr-action { border: 1px solid var(--trait); border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; background: var(--surface); }
.fr-action h3 { margin: 0 0 8px; font-size: 15px; }
.fr-action .t2 { margin: 6px 0 0; }
.fr-action .btn, .fr-act-l .btn { min-height: 44px; }
.fr-act-l { display: flex; flex-wrap: wrap; gap: 8px; }
.fr-refus { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.fr-refus textarea { min-height: 64px; padding: 8px 10px; font: inherit; color: var(--encre); background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--r-s); }
.fr-sec { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fr-sec .btn { min-height: 44px; gap: 6px; }
.fr-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.fr-type { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 8px;
  border: 1px solid var(--trait); border-radius: var(--r-s); background: var(--surface); color: var(--encre); font: inherit; font-size: 14px; cursor: pointer; }
.fr-type svg.i { width: 24px; height: 24px; color: var(--encre-2); }
.fr-type.on { border-color: var(--bleu); box-shadow: inset 0 0 0 1px var(--bleu); background: var(--bleu-pale); }
.fr-type.on svg.i { color: var(--bleu); }
.fr-tk { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; }
.fr-photo { min-height: 56px; width: 100%; justify-content: center; gap: 8px; font-size: 16px; font-weight: 600; border-style: dashed; }
.fr-form label.fr-photo { flex-direction: row; align-items: center; justify-content: center; color: var(--encre); font-size: 16px; }
.fr-photo svg.i { width: 22px; height: 22px; }
.fr-fichier { color: var(--bleu) !important; font-size: 14px !important; cursor: pointer; text-decoration: underline; min-height: 32px; justify-content: center; }
.fr-kmcalc { margin: 0; color: var(--encre-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.fr-form input, .fr-form textarea { color: var(--encre); }
.fr-form label { color: var(--encre-2); }
.fr-actions .btn:disabled { opacity: .6; }
.fr-f-h { margin: 12px 0 6px; font-size: 14px; }
.fr-f-qui .irow.on { background: var(--bleu-pale); }
@media (max-width: 820px) {
  .h-grille { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .h-onglets .seg { display: flex; }
  .h-onglets .seg button { flex: 1; padding: 0 6px; }
  .h-totaux { flex-direction: row; }
  .h-tot { flex: 1; grid-template-columns: 1fr; padding: 8px 10px; border-bottom: 0; border-right: 1px solid var(--trait); }
  .h-tot:last-child { border-right: 0; }
  .h-tot small { display: none; }
  .h-tot span { font-size: 12px; color: var(--encre-2); }
  .h-pc-p9 { grid-template-columns: 1fr; }
  .fr-plus:not([hidden]) { position: fixed; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 140px); z-index: 20;
    min-height: 52px; border-radius: 999px; box-shadow: var(--ombre-2); min-width: 0; padding: 0 20px; }
  .fr-p9 { grid-template-columns: 1fr 1fr; }
  .fr-tete { flex-wrap: nowrap; gap: 6px; }
  .fr-tete .grow { display: none; }
  .fr-tete .mois-sel { flex: 1; justify-content: space-between; }
  .fr-tete .mois-sel .mois-lb { min-width: 0; }
  .fr-ligne { flex-wrap: wrap; }
  .fr-ouvrir { flex: 1 1 260px; }
  .fr-tete .mois-sel .mois-lb { white-space: nowrap; font-size: 15px; }
  .fr-tete #frFiltres { padding: 0 12px; }
  .fr-valider { margin: -4px 4px 8px auto; }
  .fr-liste { padding-bottom: 72px; }
  .fr-p9 .p9-t:first-child { grid-column: 1 / -1; }
  .fr-tickets-l .fr-ticket { width: 96px; height: 96px; }
}
/* ===== v547 — RH refait (MODULES_CONTRAT « RH », lot L 2/3) =====
   P1 « RH » + mois + phrase de paie, « Préparer la paie » ; 4 tuiles ; liste de l'équipe avec « Payer » sur la
   ligne ; fiche en panneau (prochaine action, Paie, PC montés, Journal) ; feuille de paie avec bilan avant validation. */
.rh-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.rh-phrase { margin: 0; color: var(--encre-2); font-size: 14px; }
.rh-p9 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rh-p9 .p9-t.rh-du b { color: var(--bleu); }
.rh-ligne { align-items: center; gap: 12px; cursor: pointer; }
.rh-av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--sur-couleur); font-weight: 700; font-size: 14px; }
.rh-av-l { width: 52px; height: 52px; font-size: 18px; }
.rh-l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.rh-l2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--encre-2); font-size: 13px; margin-top: 2px; }
.rh-du-l { flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.rh-du-l small { color: var(--encre-3); font-size: 12px; }
.rh-du-l.on b { color: var(--bleu); font-size: 14px; }
.rh-payer { flex: none; min-height: 40px; }
.rh-f-tete { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.rh-nom { margin: 0 0 6px; }
.rh-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.rh-action { border: 1px solid var(--trait); border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; background: var(--surface); }
.rh-action h3, .rh-sec h3 { margin: 0 0 8px; font-size: 15px; }
.rh-action p { margin: 8px 0 0; }
.rh-payer-l { min-height: 44px; width: 100%; justify-content: center; white-space: normal; text-align: center; }
.rh-corr { color: var(--orange); font-size: 14px; }
.rh-chiffres { margin-bottom: 14px; }
.rh-sec { margin-bottom: 16px; }
.rh-sec-t { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rh-sec-t h3 { margin: 0; }
.rh-sec-t .btn { min-height: 40px; }
.rh-pc, .rh-e { width: 100%; text-align: left; align-items: center; }
.rh-sec-act { display: flex; flex-wrap: wrap; gap: 8px; }
.rh-sec-act .btn { min-height: 44px; gap: 6px; }
.rh-seg { display: flex; margin-bottom: 12px; }
.rh-seg button { flex: 1; min-height: 40px; }
.rh-bilan { margin: 12px 0 6px; padding: 10px 12px; border-radius: var(--r-s); background: var(--bleu-pale); color: var(--encre); font-size: 14px; min-height: 44px; }
.rh-bilan p { margin: 0; }
.rh-bilan-err { margin: 0; color: var(--rouge); }
.rh-jr { align-items: flex-start; gap: 10px; }
.rh-jr .mono { min-width: 52px; }
.rh-regle h3 { margin: 16px 0 4px; font-size: 15px; }
.rh-regle h3:first-child { margin-top: 0; }
.rh-regle .t2 { margin: 4px 0 6px; }
.rh-case { display: flex; min-height: 44px; align-items: center; gap: 10px; }
.rh-case input { width: 22px; height: 22px; flex: none; }
.rh-regle p.t2 { font-size: 13px; color: var(--encre-2); line-height: 1.4; }
.pr-t-row { gap: 8px; align-items: center; margin: 4px 0; }
.pr-t-row .pr-t-mnt { width: 110px; }
.pr-t-row .btn.icon { width: 40px; min-height: 40px; justify-content: center; padding: 0; }
@media (max-width: 820px) {
  .rh-ecran .tbar.tb-pleine { flex-wrap: nowrap; }
  .rh-long { display: none; }
  .rh-p9 { grid-template-columns: 1fr 1fr; }
  .rh-ligne { flex-wrap: wrap; }
  .rh-ligne .grow { flex: 1 1 200px; }
  .rh-payer { margin-left: auto; }
}
/* ===== v548 — Contacts refait (MODULES_CONTRAT « Contacts », lot L 3/3) =====
   P1 « Contacts » + segments + phrase (conflits avec Odoo cliquables) ; lignes P4 avec appel 44 px ; fiche en
   lecture avec prochaine action et grille d'actions ; NPA et localité séparés. */
.ct-seg { display: inline-flex; margin-bottom: 10px; }
.ct-seg button { min-height: 40px; padding: 0 18px; }
.ct-phrase { margin: 0 0 10px; color: var(--encre-2); font-size: 14px; }
.ct-conflits { border: 0; background: var(--orange-pale); color: var(--orange); font: inherit; font-weight: 600; border-radius: 999px; padding: 2px 10px; min-height: 28px; cursor: pointer; }
.ct-q { width: 100%; min-height: 44px; padding: 0 12px; font: inherit; color: var(--encre); background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--r-s); margin-bottom: 10px; }
.ct-q:focus { border-color: var(--bleu); outline: 2px solid var(--bleu); outline-offset: -1px; }
.ct-puces .p2 { margin: 0 0 10px; }
.ct-ligne { align-items: center; gap: 10px; cursor: pointer; }
.ct-l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.ct-l1 b { overflow-wrap: anywhere; }
.ct-l2 { display: flex; align-items: center; gap: 6px; color: var(--encre-2); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.ct-sync svg.i, .ct-fav svg.i { width: 15px; height: 15px; flex: none; }
.ct-sync { color: var(--orange); display: inline-flex; }
.ct-fav { color: var(--orange); display: inline-flex; }
.btn.icon.ct-appel { width: 44px; min-height: 44px; flex: none; justify-content: center; padding: 0; color: var(--bleu); }
.ct-vide-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.ct-puces-f { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ct-action { border: 1px solid var(--trait); border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; background: var(--surface); }
.ct-action h3 { margin: 0 0 8px; font-size: 15px; }
.ct-action .t2 { margin: 0; }
.ct-action .btn.ct-appeler { display: flex; box-sizing: border-box; min-height: 44px; width: 100%; margin: 0; justify-content: center; align-items: center; gap: 8px; text-decoration: none; }
.ct-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-bottom: 14px; }
.ct-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 72px; padding: 8px;
  border: 1px solid var(--trait); border-radius: var(--r-s); background: var(--surface); color: var(--encre); font: inherit; font-size: 13px;
  text-align: center; text-decoration: none; cursor: pointer; }
.ct-act svg.i { width: 22px; height: 22px; color: var(--bleu); }
.ct-act:active { transform: scale(.98); }
.ct-act.ct-danger, .ct-act.ct-danger svg.i { color: var(--rouge); }
.ct-fiche .kv a { color: var(--bleu); }
.ct-notes { margin-top: 10px; }
.ct-notes small { color: var(--encre-3); font-size: 12px; }
.ct-notes p { margin: 4px 0 0; white-space: pre-wrap; }
.cc-carte { margin-bottom: 10px; padding: 14px; }
.frm .duo.ct-npa > div:first-child { flex: 0 0 110px; }
@media (max-width: 820px) {
  .ct-ecran .tbar.tb-pleine { flex-wrap: nowrap; }
  .ct-long { display: none; }
  .ct-seg { display: flex; }
  .ct-seg button { flex: 1; }
  .ct-puces .p2 { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
}
/* ===== v549 — Réglages à sections (MODULES_CONTRAT « Réglages », lot M 1/2) =====
   PC : colonne des sections (240 px) + contenu ; téléphone : liste des sections puis la section en plein écran.
   Personnes : une seule liste, lignes de 2 étages, actions en 1 toucher. */
.rg-grille { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.rg-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 12px; }
.rg-sec { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-s);
  background: transparent; color: var(--encre); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
.rg-sec svg.i { width: 18px; height: 18px; color: var(--encre-2); flex: none; }
.rg-sec span:not(.rg-fl) { flex: 1; }
.rg-sec.on { background: var(--bleu-pale); color: var(--bleu); font-weight: 600; }
.rg-sec.on svg.i { color: var(--bleu); }
.rg-fl { color: var(--encre-3); font-size: 18px; line-height: 1; }
.rg-corps { min-width: 0; }
.rg-h { margin: 0 0 12px; font-size: 20px; }
.rg-h-l { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.rg-h-l .rg-h { margin: 0; }
.rg-phrase { margin: 4px 0 12px; color: var(--encre-2); font-size: 14px; }
.rg-profil { display: flex; align-items: center; gap: 14px; }
.rg-av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--sur-couleur); font-weight: 700; font-size: 15px; }
.rg-profil .rg-av { width: 52px; height: 52px; font-size: 20px; }
.rg-liste .irow { width: 100%; text-align: left; align-items: center; gap: 12px; min-height: 56px; }
.rg-liste .ic svg.i { width: 20px; height: 20px; color: var(--encre-2); }
.rg-liste select { min-height: 40px; padding: 0 10px; font: inherit; color: var(--encre); background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--r-s); }
.rg-l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.rg-l1 b { overflow-wrap: anywhere; }
.rg-l2 { color: var(--encre-2); font-size: 13px; margin-top: 2px; }
.rg-personnes .us-row { align-items: center; gap: 12px; cursor: pointer; }
.rg-personnes .us-row .grow { min-width: 0; }
.rg-personnes .us-acts { display: flex; gap: 6px; flex: none; }
.rg-personnes .us-acts .btn { min-height: 40px; }
.rg-puces { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rg-action { border: 1px solid var(--trait); border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; background: var(--surface); }
.rg-action h3 { margin: 0 0 8px; font-size: 15px; }
.rg-action p { margin: 0 0 8px; }
.rg-action .btn { min-height: 44px; }
.rg-retour { min-height: 40px; margin-bottom: 8px; font-size: 15px; }
.rg-pin { font-size: 22px; text-align: center; letter-spacing: 8px; }
.st-monteurs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.st-pt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.hi-vue { display: inline-flex; margin-bottom: 10px; }
.hi-vue button { min-height: 40px; padding: 0 16px; }
.sec-comptes .t2 { margin: 6px 0; }
@media (max-width: 820px) {
  .rg-grille { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rg-grille.rg-avec .rg-nav { display: none; }
  .rg-nav { position: static; border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); padding: 4px; }
  .rg-sec { min-height: 52px; }
  .rg-personnes .us-row { flex-wrap: wrap; }
  .rg-personnes .us-row .grow { flex: 1 1 200px; }
  .rg-pinst { display: none; }
  .rg-personnes .us-acts { width: auto; padding-left: 0; margin-left: auto; }
}

/* ===== v550 — Réglages, 2e moitié (MODULES_CONTRAT « Réglages », lot M 2/2) =====
   Rôles et droits : puces des rôles avec compteur, modules en deux colonnes (PC) / accordéon (téléphone),
   « Enregistrer » collant ; Notifications en une feuille ; pictogrammes d'équipe au trait ; Sauvegardes. */
.pm-onglets { margin-bottom: 12px; }
.pm-onglets button { min-height: 40px; padding: 0 16px; }
.pm-roles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.pm-roles .fchip { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.pm-roles .fchip svg.i { width: 14px; height: 14px; }
.pm-n { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--encre-2); font-size: 12px; font-weight: 600; text-align: center; }
.pm-roles .fchip.on .pm-n { background: var(--surface); color: var(--bleu); }
.pm-admin { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.pm-admin svg.i, .bk-liste svg.i { width: 18px; height: 18px; }
.pm-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
.pm-mod, .pm-carte { border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); padding: 0 12px; }
.pm-mod.on { border-color: var(--trait-fort); }
.pm-mod summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; cursor: default; }
.pm-mod summary::-webkit-details-marker { display: none; }
.pm-t { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.pm-t .t2 { color: var(--encre-2); font-size: 12.5px; }
.pm-mod:not(.on) .pm-t b { color: var(--encre-2); font-weight: 500; }
.pm-acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 12px; }
.pm-acts .fchip { min-height: 36px; font-size: 13px; }
.pm-carte { padding: 10px 12px; }
.pm-carte .pm-t { justify-content: space-between; margin-bottom: 4px; }
.pm-barre { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); box-shadow: var(--ombre-legere); }
.pm-barre .p10-n { color: var(--encre-2); font-weight: 500; }
.pm-barre.pm-sale .p10-n { color: var(--encre); font-weight: 600; }
.pm-barre .btn { min-height: 44px; }
.up-intro { margin: 6px 0 10px; padding-right: 44px; }   /* les boutons réduire / fermer ne mordent plus sur le texte */
.up-l .t2 { font-weight: 400; font-size: 12.5px; color: var(--encre-2); }
.up-seg button { min-height: 36px; padding: 0 10px; font-size: 12.5px; }
.nt-abo, .nt-ligne { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--trait-doux); }
.nt-abo .btn { min-height: 44px; }
.nt-app { margin: 12px 0 0; }
.nt-h { margin: 16px 0 6px; font-size: 15px; }
.nt-liste { border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); }
.nt-type { padding: 10px 12px; border-bottom: 1px solid var(--trait-doux); }
.nt-type:last-child { border-bottom: 0; }
.nt-l1 { display: flex; align-items: center; gap: 10px; }
.nt-l2 { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nt-l2 select { min-height: 40px; padding: 0 10px; font: inherit; font-size: 14px; color: var(--encre); background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--r-s); }
.nt-l2 .btn { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.nt-l2 .btn svg.i { width: 16px; height: 16px; }
.nt-off .nt-l1 .t1 { color: var(--encre-2); }
.nt-off .nt-l2 { opacity: .5; }
.bk-liste .irow { align-items: center; gap: 8px; }
.bk-nom { overflow-wrap: anywhere; }
.bk-liste .btn { min-height: 44px; }
.bk-liste .btn.icon { width: 44px; display: inline-grid; place-items: center; }
.bk-note { margin: 12px 0 6px; }
.bk-compris { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0 4px; font-weight: 500; cursor: pointer; }
.bk-compris input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; }
.eq-titre { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.eq-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: var(--r-s); background: var(--surface-2); color: var(--encre); }
.eq-carte .eq-ic { color: var(--c); }
.eq-ic svg.i { width: 18px; height: 18px; }
.eq-pictos { display: flex; flex-wrap: wrap; gap: 6px; }
.eq-pictos .btn.icon { width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
.eq-pictos .btn.icon.on { background: var(--bleu-pale); border-color: var(--bleu); color: var(--bleu); }
.eq-membres .fchip svg.i { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.tf-nouvelle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 820px) {
  .pm-grille { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pm-mod summary { cursor: pointer; }
  .pm-barre .p10-n { flex-basis: 100%; }
  .pm-barre .btn.primary { flex: 1; }
  .pm-nomrole { display: none; }
  .nt-l2 { flex-wrap: nowrap; }
  .nt-l2 select { flex: 1 1 0; min-width: 0; }
  .nt-l2 .btn { width: 44px; justify-content: center; padding: 0; flex: none; }
  .nt-test { display: none; }
}

/* ===== v551 — Agents IA (MODULES_CONTRAT « Agents IA », lot M) =====
   Direct | Apprentissage ; « À décider » = une seule file en tête ; agents en lignes compactes avec interrupteur de
   pause ; réglages en interrupteurs et puces du design ; plus d'emoji (icônes du sprite). */
.ag-onglets { display: inline-flex; margin: 14px 0 0; }
.ag-onglets button { min-height: 40px; padding: 0 18px; }
.ag-pouls { grid-template-columns: auto minmax(0, 1fr) auto; }
.ag-cout { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--encre-2); }
.ag-kpi span { white-space: nowrap; }
.ag-al { display: flex; align-items: flex-start; gap: 8px; }
.ag-al svg.i, .ag-i svg.i, .ag-mails svg.i { width: 16px; height: 16px; flex: none; }
.ag-i { display: grid; place-items: start center; padding-top: 1px; color: var(--encre-2); }
.ag-grille { grid-template-columns: minmax(0, 1fr) 380px; }
.ag-col { min-width: 0; }
.ag-decider .ag-liste { border: 1px solid var(--bleu); }
.ag-dec { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--trait-doux); }
.ag-dec:first-child { border-top: 0; }
.ag-dec[data-tache] { cursor: pointer; }
.ag-dec .btn { min-height: 40px; }
.ag-dec-ic { width: 32px; height: 32px; border-radius: var(--r-s); background: var(--surface-2); color: var(--encre); display: grid; place-items: center; flex: none; }
.ag-dec-ic svg.i { width: 18px; height: 18px; }
.ag-dec-m { color: var(--encre-2); }
.ag-dec-lec { align-items: start; }
.ag-dec-lec textarea { width: 100%; box-sizing: border-box; min-height: 56px; margin-top: 4px; padding: 8px 10px; font: inherit; font-size: 14px; color: var(--encre);
  background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--r-s); resize: vertical; }
.ag-dec-lec .ag-lec-b { display: flex; flex-direction: column; gap: 6px; }
.ag-doute { color: var(--orange); }
.ag-ag { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 0; border-top: 1px solid var(--trait-doux); }
.ag-ag:first-child { border-top: 0; }
.ag-ag-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 0 6px 12px; min-height: 52px;
  border: 0; background: transparent; color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.ag-ag-l1 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.ag-ag-l1 b { font-weight: 600; }
.ag-ag.panne .ag-dec-ic { background: var(--rouge-pale); color: var(--rouge); }
.ag-ag.travaille .ag-dec-ic { background: var(--orange-pale); color: var(--orange); }
.ag-ag.pause .ag-ag-main { color: var(--encre-2); }
.ag-chips { display: block; margin-bottom: 8px; }
.ag-mails { display: flex; gap: 6px; align-items: flex-start; }
.ag-appr { margin-top: 4px; max-width: 980px; }
.ag-pct { white-space: nowrap; }
.ag-motifs > div { grid-template-columns: minmax(0, 1fr) 48px; }
.ag-fiche-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ag-marche { border: 1px solid var(--trait); border-radius: var(--r); padding: 10px 12px; background: var(--surface); }
.ag-regl { grid-template-columns: minmax(0, 1fr) auto; }
.ag-regl-large { grid-template-columns: minmax(0, 1fr); }
.ag-select, .ag-regl select, .ag-regl input[type=number], .ag-regl input[type=text] { min-height: 40px; padding: 0 10px; font: inherit; font-size: 14px; color: var(--encre);
  background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--r-s); max-width: 260px; }
.ag-num .btn { min-height: 40px; }
.ag-coches { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.ag-coches .fchip { min-height: 36px; }
.ag-adm { background: var(--surface-2); color: var(--encre-2); text-transform: none; letter-spacing: .04em; }
.ag-refaire textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; font: inherit; font-size: 14px; color: var(--encre);
  background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--r-s); resize: vertical; }
.ag-refaire-b { display: flex; flex-wrap: wrap; gap: 8px; }
/* fiche ouverte en panneau à droite : la place manque pour deux colonnes, on empile (même ordre qu'au téléphone) */
body.avec-panneau .ag-grille { display: flex; flex-direction: column; gap: 0; }
body.avec-panneau .ag-col { display: contents; }
body.avec-panneau .ag-decider { order: 1; } body.avec-panneau .ag-agents { order: 2; } body.avec-panneau .ag-matin { order: 3; }
body.avec-panneau .ag-fait { order: 4; } body.avec-panneau .ag-encours { order: 5; }
body.avec-panneau .ag-pouls { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1050px) {
  .ag-grille { display: flex; flex-direction: column; gap: 0; }
  .ag-col { display: contents; }
  .ag-decider { order: 1; } .ag-agents { order: 2; } .ag-matin { order: 3; } .ag-fait { order: 4; } .ag-encours { order: 5; }
  .ag-pouls { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ag-dec { grid-template-columns: 32px minmax(0, 1fr); }
  .ag-dec > .btn, .ag-dec .ag-lec-b { grid-column: 2; justify-self: start; }
  .ag-dec .ag-lec-b { flex-direction: row; }
  .ag-regl:not(.ag-regl-large) { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ===== v552 — Import fournisseurs : entrée sans page-relais, Lots (MODULES_CONTRAT « Import », lot N 1/3) =====
   En-tête P1 partagé (phrase, + Nouveau lot, ⋯) + onglets P2 Lots | Produits | Suivi | Prix ; liste des lots P4. */
.imp-tete { padding: 10px 20px 0; }
.imp-phrase { margin: 0 0 8px; }
.imp-alerte { margin: 0 0 10px; align-items: flex-start; }
.imp-alerte svg.i { width: 18px; height: 18px; color: var(--rouge); }
.imp-alerte .btn { flex: none; min-height: 40px; }
.imp-onglets .p2 { margin-bottom: 4px; }
.imp-onglets .fchip { min-height: 44px; padding: 0 16px; font-size: 14.5px; }
.imp-ecran > .content { padding-top: 6px; }
.il-outils { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.il-outils #ilQ { flex: 1 1 280px; min-height: 44px; }
.il-outils select { min-height: 44px; }
.il-liste { margin-top: 4px; }
.il-ligne { align-items: center; gap: 8px; }
.il-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 4px 0; border: 0; background: transparent;
  color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.il-l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.il-l1 b { font-weight: 600; overflow-wrap: anywhere; }
.il-l2 { font-size: 14px; color: var(--encre); }
.il-att { color: var(--bleu); }
.il-err { color: var(--rouge); }
.il-l3 { font-size: 12.5px; color: var(--encre-2); overflow-wrap: anywhere; }
.il-acts { display: flex; gap: 6px; flex: none; }
.il-acts .btn.icon { width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
.il-pages { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
@media (max-width: 820px) {
  .imp-tete { padding: 8px 14px 0; }
  .imp-onglets .p2 { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .imp-onglets .fchip { flex: none; }
  .il-ligne { align-items: flex-start; }
  .il-acts { flex-direction: column; }
}

/* ===== v553 — Import fournisseurs : Produits (MODULES_CONTRAT « Import », lot N 2/3) =====
   Recherche + « Filtres (n) » en feuille, puces d'état P2 avec compteurs, lignes P4 à 3 étages, barre P10 collante
   seulement après la 1re case cochée. */
.ip-outils { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ip-outils #ipQ { flex: 1 1 280px; min-height: 44px; }
.ip-outils .btn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.ip-outils .btn svg.i { width: 16px; height: 16px; }
.ip-lot { margin: 2px 0 8px; font-size: 14px; color: var(--encre-2); }
.ip-alertes { display: grid; gap: 6px; margin: 4px 0 10px; }
.ip-alerte { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); font-size: 14px; }
.ip-alerte svg.i { width: 18px; height: 18px; color: var(--orange); }
.ip-alerte .btn { flex: none; min-height: 40px; }
.ip-tete-liste { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 6px; }
.ip-tete-liste .linkbtn { min-height: 40px; }
.ip-tronque { margin: 4px 0 8px; align-items: flex-start; }
.ip-liste { margin-bottom: 12px; }
.ip-ligne { align-items: flex-start; gap: 10px; }
.ip-ligne.sel { background: var(--bleu-pale); }
.ip-ck { display: grid; place-items: center; width: 40px; min-height: 44px; flex: none; cursor: pointer; }
.ip-ck input { width: 20px; height: 20px; margin: 0; accent-color: var(--bleu); }
.ip-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 6px 0; border: 0; background: transparent;
  color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.ip-l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ip-l1 b { font-weight: 600; overflow-wrap: anywhere; }
.ip-l2 { font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.ip-perte { color: var(--rouge); font-weight: 700; }
.ip-frais { color: var(--encre-2); font-size: 12.5px; }
.ip-l3 { font-size: 12.5px; color: var(--encre-2); overflow-wrap: anywhere; }
.ip-msg { font-size: 13px; color: var(--rouge); }
.ip-p10 .btn { min-height: 44px; }
.ip-decoche { margin-left: 8px; min-height: 36px; color: inherit; text-decoration: underline; }
@media (max-width: 820px) {
  .ip-p10 .p10-n { flex-basis: 100%; }
  .ip-p10 .btn { flex: 1 1 calc(50% - 8px); min-height: 42px; padding: 0 8px; }
}

/* ===== v554 — retours de Joan du 09.11 : modules presque plein écran, Commandes compactes =====
   Barre de gauche repliée en icônes dans un module (épinglable), barre du haut plus basse, étapes de Commandes en
   petites puces, filtres actifs visibles et effaçables, « Vient chercher » voyant, client en tête de la fiche. */
@media (min-width: 821px) {
  body.avec-coque.coque-mini:not(.coque-epinglee) #coque { grid-template-columns: 64px minmax(0, 1fr); }
  body.avec-coque.coque-mini:not(.coque-epinglee) #navG { padding-left: 8px; padding-right: 8px; align-items: stretch; }
  body.coque-mini:not(.coque-epinglee) .nav-marque { flex-direction: column; padding: 0 0 12px; gap: 8px; }
  body.coque-mini:not(.coque-epinglee) .nav-marque-lb,
  body.coque-mini:not(.coque-epinglee) .nl .nl-lb,
  body.coque-mini:not(.coque-epinglee) .nav-theme,
  body.coque-mini:not(.coque-epinglee) .nav-moi .nom,
  body.coque-mini:not(.coque-epinglee) .nav-moi .role,
  body.coque-mini:not(.coque-epinglee) .nl-ext-i { display: none; }
  body.coque-mini:not(.coque-epinglee) .nav-grp { font-size: 0; padding: 8px 0 4px; border-top: 1px solid var(--nav-actif); margin-top: 6px; }
  body.coque-mini:not(.coque-epinglee) .nl { justify-content: center; padding: 0; min-height: 40px; position: relative; }
  body.coque-mini:not(.coque-epinglee) .nl b { position: absolute; top: 2px; right: 2px; margin: 0; min-width: 16px; font-size: 10.5px; line-height: 16px; padding: 0 4px; }
  body.coque-mini:not(.coque-epinglee) .nl .nl-dot { position: absolute; top: 6px; right: 8px; margin: 0; }
  body.coque-mini:not(.coque-epinglee) .nav-compte { grid-template-columns: 1fr; }
  body.coque-mini:not(.coque-epinglee) .nav-compte button { font-size: 0; gap: 0; }
  body.coque-mini:not(.coque-epinglee) .nav-moi { justify-content: center; }
  body.avec-coque.coque-mini:not(.coque-epinglee) .win-dock { left: 64px; }
  /* dans un module, la barre du haut est plus basse : le contenu commence plus haut */
  body.coque-mini .tbar { padding-top: calc(env(safe-area-inset-top) + 10px); padding-bottom: 10px; }
  body.coque-mini .tbar h1 { font-size: 21px; }
}
.nav-replier { margin-left: auto; width: 28px; height: 28px; border-radius: var(--r-s); border: 0; background: var(--nav-actif);
  color: var(--nav-txt); font-size: 16px; line-height: 1; cursor: pointer; flex: none; }
body:not(.coque-mini) .nav-replier { display: none; }
/* Commandes : les étapes en petites puces (plus de grands panneaux fléchés) */
.cmd-ecran .balises { gap: 6px; margin: 2px 0 8px; padding: 2px 0 4px; mask-image: none; -webkit-mask-image: none; }
.cmd-ecran .balises .balise { min-height: 34px; height: auto; padding: 0 12px; clip-path: none; border-radius: 999px; background: var(--surface);
  color: var(--encre); border: 1px solid var(--trait-fort); flex: 0 0 auto; flex-direction: row; justify-content: flex-start; align-items: center;
  gap: 6px; min-width: 0; box-shadow: none; }
.cmd-ecran .balises .balise .nom { font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.cmd-ecran .balises .balise .nb { font-size: 13px; font-weight: 700; }
.cmd-ecran .balises .balise[aria-pressed="true"] { background: var(--encre); color: var(--surface); border-color: var(--encre); box-shadow: none; }
.cmd-ecran .balises .balise .alp { position: static; width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--rouge); }
/* filtres actifs */
.cmd-actifs-z { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.cmd-actifs-lb { font-size: 13px; color: var(--encre-2); margin-right: 2px; }
.cmd-fx { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; }
.cmd-fx svg.i { width: 14px; height: 14px; }
.cmd-fx-tout { min-height: 34px; }
/* « Vient chercher » voyant */
.kvient, .chip.vient { display: inline-flex; align-items: center; gap: 5px; background: var(--orange); color: var(--sur-couleur); font-weight: 700;
  border-radius: 999px; padding: 2px 10px; font-size: 12.5px; letter-spacing: .01em; }
.kvient { margin: 4px 0 2px; }
.kvient svg.i, .chip.vient svg.i { width: 14px; height: 14px; }
.od-vient-haut { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 10px 14px; border-radius: var(--r);
  background: var(--orange); color: var(--sur-couleur); font-size: 15px; }
.od-vient-haut svg.i { width: 20px; height: 20px; flex: none; }
@media (max-width: 820px) {
  /* Commandes au téléphone : recherche, ⋯ et « + Commande » sur une seule ligne sous le titre */
  .cmd-s .tbar.tb-pleine .spacer { flex: 1 1 100%; }
  .cmd-s .tbar.tb-pleine .tb-outils { display: flex; flex-wrap: nowrap; width: 100%; gap: 6px; }
  .cmd-s .tbar.tb-pleine #cSearch { flex: 1 1 auto; min-width: 0; }
  .cmd-s .tbar.tb-pleine .tb-sep { display: none; }
  .cmd-s .tbar.tb-pleine #cNouv { flex: none; padding: 0 12px; }
  .cmd-s .tbar { padding-bottom: 8px; }
}
/* v554 : pièces pas encore pointées au passage en montage */
.ms-liste { margin: 8px 0 4px; padding: 8px 12px 8px 28px; max-height: 40vh; overflow-y: auto; border: 1px solid var(--trait);
  border-radius: var(--r-s); background: var(--surface-2); font-size: 14px; line-height: 1.5; }

/* ===== v555 — Import fournisseurs : Suivi « À traiter » et Réglages (MODULES_CONTRAT « Import », lot N 3/3) ===== */
.dgs-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.dgs-tete .btn { min-height: 40px; }
.dgs-h { margin: 8px 0; }
.dgs-traiter, .dgs-mecas { border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); }
.dgs-traiter { border-color: var(--bleu); }
.dgs-t, .dgs-m { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--trait-doux); }
.dgs-t:first-child, .dgs-m:first-child { border-top: 0; }
.dgs-t > .btn, .dgs-m > .btn { flex: none; min-height: 40px; }
.dgs-t .ic svg.i, .dgs-m .ic svg.i, .dgs-rien svg.i { width: 18px; height: 18px; margin-top: 2px; }
.dgs-t.rouge .ic { color: var(--rouge); }
.dgs-t.orange .ic { color: var(--orange); }
.dgs-m .ic { color: var(--encre-2); }
.dgs-m > .sw { flex: none; margin-top: 4px; }
.dgs-rien { display: flex; align-items: center; gap: 10px; padding: 12px; color: var(--encre-2); }
.dgs-rien svg.i { color: var(--vert); margin-top: 0; }
.dgs-aide { margin-top: 4px; font-size: 13px; color: var(--encre-2); }
.dgs-aide summary { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--trait-fort);
  font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; color: var(--encre-2); }
.dgs-aide summary::-webkit-details-marker { display: none; }
.dgs-aide[open] > div { margin-top: 6px; padding: 8px 10px; border-radius: var(--r-s); background: var(--surface-2); line-height: 1.45; }
.dgs-rouge { color: var(--rouge); }
.dgs-orange { color: var(--orange); }
.dgs-vert { color: var(--vert); }
.dgs-sep { margin-top: 16px; }
.imr-ancre { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; white-space: nowrap; }
.imr-ancre svg.i { width: 16px; height: 16px; }
@media (max-width: 820px) {
  .dgs-t, .dgs-m { flex-wrap: wrap; }
  .dgs-t > .btn, .dgs-m > .btn { margin-left: 28px; }
}

/* ===== v556 — Commandes au téléphone : les cartes plus haut (retour de Joan du 09.11, capture iPhone) =====
   Fil d'Ariane réduit à la maison, phrase sur une ligne, plus de titre « Toutes les étapes », filtres rapides en
   petites puces, puces d'étapes retirées en kanban (les onglets de colonnes les remplacent), en-tête de colonne
   retiré (l'onglet le dit), panneau sans cadre. */
@media (max-width: 820px) {
  .tbar .nseg .nseg-lb { display: none; }
  .cmd-s .cmd-ecran { padding-top: 4px; }
  .cmd-s .cmd-phrase { margin: 0 0 6px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cmd-s.cmd-kanban .balises { display: none; }
  .cmd-s .cmd-panneau { border: 0; background: transparent; box-shadow: none; padding: 0; margin: 0; }
  .cmd-s .cmd-panneau > .ph { padding: 0; margin: 0 0 6px; min-height: 0; }
  .cmd-s .cmd-panneau > .ph h2, .cmd-s .cmd-panneau > .ph .meta { display: none; }
  .cmd-s .cmd-segs { width: 100%; }
  .cmd-s .cmd-segs .seg { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; background: transparent; padding: 0; gap: 6px; }
  .cmd-s .cmd-segs .seg button { flex: none; min-height: 34px; padding: 0 12px; border: 1px solid var(--trait-fort); border-radius: 999px; font-size: 13.5px; }
  .cmd-s .cmd-segs .seg button[aria-pressed="true"] { background: var(--encre); color: var(--surface); border-color: var(--encre); }
  .cmd-s .p5-onglets { margin: 0 0 8px; gap: 6px; }
  .cmd-s .p5-onglets .fchip { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
  .cmd-s .p5-une .kcol { border: 0; background: transparent; padding: 0; }
  .cmd-s .p5-une .kcol-h { display: none; }
}

/* ===== v557 — Contrôle des prix (MODULES_CONTRAT « Contrôle des prix », lot N) =====
   Phrase chiffrée, puces P2 avec compteurs, tableau P4 (6 colonnes au PC, 3 étages au téléphone), barre P10 à la
   1re case, décisions sur la ligne dans « À vérifier », plan de correction groupé par type. */
.cp-phrase { margin: 0 0 8px; }
.cp-ecran .p2 { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; margin-bottom: 10px; }
.cp-ecran .p2 .fchip { flex: none; min-height: 44px; }
.cp-tete-liste { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 2px 0 8px; }
.cp-tete-liste .linkbtn, .cp-tete-liste .btn { min-height: 40px; }
.cp-tete-liste .cp-aide { margin-top: 0; }
.cp-tete-liste .cp-aide[open] { flex-basis: 100%; order: 9; }
.cp-alerte { margin: 0 0 8px; align-items: flex-start; }
.cp-table { border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); margin-bottom: 12px; }
.cp-ligne { display: grid; grid-template-columns: 44px minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center; gap: 4px 10px; padding: 6px 12px 6px 4px; border-top: 1px solid var(--trait-doux); font-size: 14px; }
.cp-ligne:first-child { border-top: 0; }
.cp-ligne.sel { background: var(--bleu-pale); }
.cp-entete { font-size: 12.5px; font-weight: 600; color: var(--encre-2); min-height: 36px; }
.cp-ck { display: grid; place-items: center; width: 40px; min-height: 44px; flex: none; cursor: pointer; }
.cp-ck input { width: 20px; height: 20px; margin: 0; accent-color: var(--bleu); }
.cp-prod { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.cp-prod b { font-weight: 600; overflow-wrap: anywhere; }
.cp-cat { flex-basis: 100%; font-size: 12.5px; color: var(--encre-2); }
.cp-prix { font-variant-numeric: tabular-nums; }
.cp-four, .cp-age { font-size: 13px; color: var(--encre-2); overflow-wrap: anywhere; }
.cp-age.dgs-orange { color: var(--orange); }
.cp-p10-hote { position: sticky; bottom: 0; z-index: 6; }
.cp-p10-hote .p10 { position: static; }
.cp-motif { grid-column: 2 / -1; font-size: 13px; color: var(--rouge); }
.cp-v { align-items: flex-start; gap: 10px; }
.cp-dec { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.cp-dec .btn { min-height: 44px; }
.cp-groupe { margin-bottom: 14px; }
.cp-gh { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 4px 0 6px; }
.cp-gh h3 { margin: 0; font-size: 16px; }
.cp-gh h3 .p2-n { margin-left: 4px; color: var(--encre-2); font-weight: 600; }
.cp-gh .linkbtn { min-height: 40px; }
.cp-pa { align-items: flex-start; gap: 8px; }
.cp-pa.sel { background: var(--bleu-pale); }
.cp-raison { color: var(--encre-2); }
.cp-p10 .btn { min-height: 44px; }
.cp-apercu, .cp-recap { max-height: 50vh; overflow-y: auto; margin: 6px 0 10px; }
.cp-av { flex: none; font-variant-numeric: tabular-nums; }
.cp-av s { color: var(--encre-2); }
.cp-par { display: grid; gap: 6px; margin: 4px 0 10px; font-weight: 600; }
.cp-par .inp { max-width: 120px; min-height: 44px; }
.cp-attente { margin: 4px 0 8px; }
@media (max-width: 820px) {
  .cp-entete { display: none; }
  .cp-p10-hote { bottom: calc(env(safe-area-inset-bottom) + 72px); }
  .cp-ligne { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "ck prod prod" "ck prix ecart" "ck four age" "ck motif motif";
    gap: 2px 8px; padding: 8px 10px 8px 2px; align-items: start; }
  .cp-ligne > .cp-ck { grid-area: ck; align-self: start; }
  .cp-prod { grid-area: prod; }
  .cp-prix { grid-area: prix; }
  .cp-ecart { grid-area: ecart; text-align: right; }
  .cp-four { grid-area: four; }
  .cp-age { grid-area: age; text-align: right; }
  .cp-motif { grid-area: motif; }
  .cp-v { flex-wrap: wrap; }
  .cp-dec { flex-basis: 100%; justify-content: flex-start; }
  .cp-dec .btn { flex: 1 1 auto; }
  .cp-p10 .p10-n { flex-basis: 100%; }
  .cp-p10 .btn { flex: 1 1 auto; min-height: 42px; }
}

/* ===== v558 — PC Builder (MODULES_CONTRAT « PC Builder », lot N) =====
   Liste : phrase, puce « écriture éteinte », recherche, puces P2, tableau P4. Fiche : à 1100 px et plus, onglets à
   gauche et résumé collant de 360 px à droite (prochaine action, Enregistrer qui compte) ; en dessous, résumé en tête. */
.pcb-tete { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; }
.pcb-phrase { margin: 0; }
.pcb-eteinte { min-height: 36px; border: 1px solid var(--trait-fort); background: var(--orange-pale); color: var(--encre); cursor: pointer; }
.pcb-outils { margin-bottom: 8px; }
.pcb-outils .inp { width: 100%; min-height: 44px; }
.pcb-ecran .p2, .pcb-fiche .p2 { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; margin-bottom: 10px; }
.pcb-ecran .p2 .fchip, .pcb-fiche .p2 .fchip { flex: none; min-height: 44px; }
.pcb-table { border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); }
.pcb-l { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center; gap: 4px 12px; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--trait-doux); background: transparent;
  color: var(--encre); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.pcb-l:first-child { border-top: 0; }
.pcb-entete { font-size: 12.5px; font-weight: 600; color: var(--encre-2); cursor: default; min-height: 36px; }
.pcb-nom { display: flex; flex-direction: column; min-width: 0; }
.pcb-nom b { font-weight: 600; overflow-wrap: anywhere; }
.pcb-ids, .pcb-bq { font-size: 12.5px; color: var(--encre-2); }
.pcb-pv { font-variant-numeric: tabular-nums; }
.pcb-alerte { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--rouge); }
.pcb-alerte svg.i { width: 16px; height: 16px; flex: none; }
.pcb-fiche { display: grid; gap: 14px; }
.pcb-fiche .pcb-gauche { min-width: 0; }
.pcb .pcb-gauche .card, .pcb .pcb-resume.card { max-width: none; }
.pcb-resume { display: grid; gap: 8px; align-content: start; }
.pcb-res-prix { display: flex; align-items: center; gap: 8px; }
.pcb-res-pv { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pcb-res-l { font-size: 14px; }
.pcb-res-kv { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.pcb-res-al { display: grid; gap: 6px; }
.pcb-al { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 8px 10px; border: 1px solid var(--trait); border-radius: var(--r-s);
  background: var(--surface-2); color: var(--encre); font: inherit; font-size: 13.5px; text-align: left; }
button.pcb-al { cursor: pointer; min-height: 44px; }
.pcb-al svg.i { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.pcb-al.rouge { border-color: var(--rouge); background: var(--rouge-pale); }
.pcb-al.orange { border-color: var(--orange); background: var(--orange-pale); }
.pcb-prochaine, .pcb-autres, .pcb-res-save { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pcb-prochaine .btn { flex: 1 1 100%; min-height: 48px; }
.pcb-autres .btn, .pcb-res-save .btn { min-height: 44px; }
.pcb-res-save { padding-top: 8px; border-top: 1px solid var(--trait-doux); }
.pcb-res-det summary { min-height: 40px; display: flex; align-items: center; font-weight: 600; font-size: 14px; cursor: pointer; }
.pcb-ret { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 2px 8px; padding: 4px 0; border-top: 1px solid var(--trait-doux); font-size: 13px; }
.pcb-ret-lb { color: var(--encre-2); }
.pcb-ret-nom { overflow-wrap: anywhere; }
.pcb-ret-st { grid-column: 2 / -1; font-size: 12.5px; color: var(--encre-2); }
.pcb-ret.manque .pcb-ret-nom { color: var(--rouge); }
.pcb-var { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 4px 0; border-top: 1px solid var(--trait-doux); font-size: 13px; }
.pcb-var-nom { flex-basis: 100%; }
.pcb-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pcb-h h3 { margin: 0; font-size: 16px; }
.pcb-h2 { margin-top: 14px; }
.pcb-h .pcb-aide { margin-top: 0; }
.pcb-h .pcb-aide[open] { flex-basis: 100%; }
.pcb-h:has(.pcb-aide[open]) { flex-wrap: wrap; }
.pcb-filtres { gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.pcb-filtres .fchip { min-height: 40px; }
.pcb-compte { text-align: right; color: var(--encre-2); }
.pcb .pcb-cat { border-color: var(--trait); }
.pcb .pcb-cat.ouverte { border-color: var(--bleu); box-shadow: none; }
.pcb .pcb-cat-vide { padding: 4px 10px; }
.pcb-cat-tete { gap: 8px; align-items: center; flex-wrap: wrap; }
.pcb .pcb-cat-tete .btn { min-height: 40px; }
.pcb .pcb-qty { width: 64px; }
.pcb-cat-etat { margin: 6px 0 0; }
.pcb .pcb-retenu { gap: 10px; align-items: center; margin-top: 6px; }
.pcb .pcb-retenu .grow { min-width: 0; }
.pcb-opts { gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pcb-cat-filtre { gap: 8px; align-items: center; margin-top: 8px; }
.pcb .pcb-cand { gap: 8px; align-items: center; padding: 2px 0; border-top: 1px solid var(--trait-doux); margin: 0; font-weight: 400; cursor: pointer; }
.pcb .pcb-cand.retenu { background: var(--bleu-pale); }
.pcb-ck { display: grid; place-items: center; width: 44px; min-height: 44px; flex: none; }
.pcb .pcb-cat label.pcb-cand .pcb-ck input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--bleu); }
.pcb-cand-nom { min-width: 0; overflow-wrap: anywhere; }
.pcb-cand.retenu .pcb-cand-nom { font-weight: 600; }
.pcb-cand-st { min-width: 86px; text-align: right; }
.pcb-libre { border: 1px solid var(--trait); border-radius: var(--r-s); padding: 10px; margin-bottom: 8px; }
.pcb-libre-tete { gap: 8px; align-items: center; flex-wrap: wrap; }
.pcb-2col, .pcb-3col { gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-top: 6px; }
.pcb-2col .btn { min-height: 44px; }
.pcb-ck-l { align-items: center; gap: 8px; margin-top: 8px; }
.pcb-colls { max-height: 180px; overflow: auto; border: 1px solid var(--trait); border-radius: var(--r-s); padding: 6px; }
.pcb label.pcb-coll { display: flex; gap: 8px; align-items: center; margin: 0; padding: 3px 0; font-weight: 400; color: var(--encre); }
.pcb-jl { padding: 4px 0; border-top: 1px solid var(--trait-doux); font-size: 13.5px; }
.pcb-apercu-img { max-width: 100%; max-height: 52vh; object-fit: contain; border-radius: var(--r-s); background: var(--surface); }
.pcb .pcb-thumb-vide { background: var(--surface-2); }
@media (min-width: 1100px) {
  .pcb-fiche { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .pcb-fiche .pcb-resume { grid-column: 2; grid-row: 1; position: sticky; top: 12px; max-height: calc(100vh - 96px); overflow-y: auto; }
  .pcb-fiche .pcb-gauche { grid-column: 1; grid-row: 1; }
}
.pcb-fiche-ecran .tbar h1 { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 820px) {
  .pcb-entete { display: none; }
  .pcb-l { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 10px 12px; }
  .pcb-nom { grid-column: 1; }
  .pcb-etat { grid-column: 2; grid-row: 1; justify-self: end; }
  .pcb-pv { grid-column: 1; }
  .pcb-mg { grid-column: 2; justify-self: end; }
  .pcb-st { grid-column: 1; font-size: 13px; }
  .pcb-bq { grid-column: 2; justify-self: end; }
  .pcb-res-pv { font-size: 22px; }
  .pcb .pcb-cand { flex-wrap: wrap; row-gap: 0; }
  .pcb .pcb-cand .pcb-cand-nom { flex: 1 1 calc(100% - 140px); }
  .pcb .pcb-cand .pcb-frn { margin-left: 52px; }
  .pcb .pcb-cand .pcb-voir { display: none; }   /* la vignette ouvre déjà l'aperçu au toucher */
  .pcb .pcb-qty { width: 56px; }
  .pcb-cat-tete > .t1 { flex: 1 1 140px; min-width: 0; }
  .pcb-cand-st { min-width: 0; }
  .pcb-ret { grid-template-columns: 80px minmax(0, 1fr); }
  .pcb-ret-px { grid-column: 2; }
  .pcb .pcb-prop-grille { grid-template-columns: 1fr; }
}

/* ===== v559 — Commandes au PC : l'en-tête plus bas (retour de Joan du 09.11, capture PC « trop gros aussi ») =====
   Comme au téléphone (v556) : plus de titre « Toutes les étapes » ni de cadre autour du kanban, filtres rapides et
   Liste / Kanban en petites puces sur une ligne, phrase serrée ; en kanban, les puces d'étapes s'effacent (les
   colonnes portent déjà les étapes et leurs compteurs). */
@media (min-width: 821px) {
  .cmd-s .cmd-ecran { padding-top: 6px; }
  .cmd-s .cmd-phrase { margin: 0 0 6px; font-size: 14px; }
  .cmd-s .balises { margin: 0 0 6px; padding: 0; }
  .cmd-s.cmd-kanban .balises { display: none; }
  .cmd-s .cmd-panneau { border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .cmd-s .cmd-panneau > .ph { padding: 0; margin: 0 0 8px; min-height: 0; }
  .cmd-s .cmd-panneau > .ph h2, .cmd-s .cmd-panneau > .ph .meta { display: none; }
  .cmd-s .cmd-segs { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
  .cmd-s .cmd-segs .seg { display: flex; flex-wrap: wrap; background: transparent; padding: 0; gap: 6px; }
  .cmd-s .cmd-segs .seg button { min-height: 32px; padding: 0 12px; border: 1px solid var(--trait-fort); border-radius: 999px; font-size: 13.5px; background: var(--surface); }
  .cmd-s .cmd-segs .seg button[aria-pressed="true"] { background: var(--encre); color: var(--surface); border-color: var(--encre); }
}

/* ===== v560 — Plus fin partout au PC (retour de Joan du 09.11 : « tout doit être plus fin, partout ») =====
   Seulement à la souris (pointer: fine) et dès 821 px : le téléphone et la tablette gardent leurs cibles de 44 px.
   Barre du haut plus basse, titres plus petits, boutons / puces / segments à 30–34 px, en-têtes de panneau, cartes et
   lignes de liste plus serrés. Les `min-height` des modules (44 px pensés pour le doigt) sont plafonnés ici. */
@media (min-width: 821px) and (pointer: fine) {
  .tbar { padding-top: calc(env(safe-area-inset-top) + 7px); padding-bottom: 7px; }
  .tbar h1, body.coque-mini .tbar h1 { font-size: 18px; }
  .tbar .nseg, .tbar .back { font-size: 14px; }
  .tbar .tb-outils input[type="search"] { min-height: 32px; height: 32px; padding-top: 0; padding-bottom: 0; font-size: 14px; }
  .btn { padding: 5px 12px; font-size: 14px; min-height: 32px !important; }
  .btn.icon { min-width: 32px; padding: 0 8px; }
  .sheet .actions .btn { padding: 8px 14px; font-size: 15px; }
  .fchip { padding: 3px 11px; font-size: 13.5px; min-height: 30px !important; }
  .seg { padding: 2px; }
  .seg button { min-height: 28px !important; padding: 3px 10px; font-size: 13px; }
  .p2 { margin: 2px 0 8px; }
  .p2-n { font-size: 12.5px; }
  .ph { padding: 10px 14px 8px; }
  .ph h2 { font-size: 15px; }
  .card { padding: 12px 14px; }
  .content { padding-top: 6px; }
  .tete p, .p1 .p1-phrase, .rg-phrase { font-size: 13.5px; margin-top: 2px; margin-bottom: 8px; }
  .irow { padding: 9px 14px; gap: 10px; }
  .kcol-h { font-size: 11.5px; }
  .cmd-ecran .balises .balise { min-height: 30px; padding: 0 10px; }
  .cmd-ecran .balises .balise .nom, .cmd-ecran .balises .balise .nb { font-size: 13px; }
  .balise { min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
  .kcol { padding: 8px; }
  .kcards { gap: 6px; }
  .kcard { padding: 7px 10px; font-size: 14px; }
}

/* ===== v561 — Plus fin partout au PC, suite (Tâches, Aujourd'hui, Matériel) =====
   Même règle que v560 (souris, ≥ 821 px) : puces de personnes 30 px, cases « fait » 32 px, lignes de tâche serrées. */
@media (min-width: 821px) and (pointer: fine) {
  .puce, .aj-qui-liste .puce, .cr-noms .puce { height: 30px; min-height: 30px; font-size: 13.5px; gap: 6px; }
  .puce i { width: 22px; height: 22px; font-size: 10.5px; }
  .coche { width: 30px; height: 30px; }
  .ligne.tache > .txt { padding: 5px 0; }
  .ecran-jour .qui { padding-bottom: 12px; }
}

/* ===== v563 — widget iPhone : étapes et script à copier (Réglages › Sécurité) ===== */
.wg-etapes { margin: 4px 0 10px; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.4; }
.wg-script { width: 100%; box-sizing: border-box; margin: 10px 0; padding: 10px; border: 1px solid var(--trait); border-radius: var(--r-s);
  background: var(--surface-2); color: var(--encre); font: 12px/1.45 ui-monospace, "SF Mono", Menlo, monospace; resize: vertical; }

/* ===== v566 — Matériel : synthèse des colis qui arrivent, encadré « À recevoir pour S0… » (retour de Joan du 12.11) =====
   Un colis = une ligne (commandes reliées, état, fournisseur · pièces, aperçu), ce qui n'est pas encore expédié
   résumé par commande ; l'encadré de la commande ouvert depuis « Ouvrir la réception ». */
.mat-colis, .mat-focus { margin-bottom: 16px; }
.mat-focus { border-color: var(--bleu); }
.mat-focus .ph .droite { margin-left: auto; display: flex; gap: 6px; }
.mat-colis-l { display: grid; }
.mat-colis-li { display: grid; gap: 2px; width: 100%; padding: 9px 20px; border: 0; border-top: 1px solid var(--trait); background: transparent;
  color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.mat-colis-l .mat-colis-li:first-child { border-top: 0; }
.mat-colis-t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mat-colis-t b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.mat-colis-t .chip { flex: none; }
.mat-sans { color: var(--encre-3); font-weight: 500; }
.mat-colis-s { font-size: 12.5px; color: var(--encre-2); }
.mat-colis-a { font-size: 12.5px; color: var(--encre-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-colis-li:focus-visible { outline: 2px solid var(--bleu); outline-offset: -2px; }
.mat-att { border-top: 1px solid var(--trait); }
.mat-att-h { margin: 0; padding: 10px 20px 4px; font-size: 12.5px; font-weight: 600; color: var(--encre-2); text-transform: uppercase; letter-spacing: .04em; }
.mat-att-n { flex: none; font-size: 13px; color: var(--encre-2); }
.mat-focus-c > .mat-att-h:first-child { padding-top: 4px; }
.mat-piece .chip { flex: none; }
@media (max-width: 820px) {
  .mat-colis-li, .mat-att-h { padding-left: 14px; padding-right: 14px; }
  .mat-focus .ph { flex-wrap: wrap; }
}

/* ===== v567 — Matériel : actions en masse sur les colis (cocher plusieurs colis, ou tout un colis d'un coup) ===== */
.mat-colis-r { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: stretch; border-top: 1px solid var(--trait); }
.mat-colis-l > .mat-colis-r:first-child { border-top: 0; }
.mat-colis-r > .mat-colis-li { border-top: 0; padding-left: 4px; }
.mat-colis-r.on { background: var(--bleu-pale); }
.mat-ck { display: flex; align-items: center; justify-content: center; min-height: 44px; cursor: pointer; }
.mat-ck input { width: 20px; height: 20px; margin: 0; accent-color: var(--bleu); cursor: pointer; }
.mat-ck-tout { justify-content: flex-start; gap: 10px; min-height: 36px; padding: 0 20px 0 12px; font-size: 13px; color: var(--encre-2);
  border-bottom: 1px solid var(--trait); }
.mat-p10 { border-top: 1px solid var(--trait); }
.mat-p10 .linkbtn { margin-left: 8px; font-weight: 500; }
.mat-lot-liste { margin: 4px 0 8px; padding-left: 18px; font-size: 14px; }
.mat-lot-liste li { margin: 3px 0; }
.mat-lot-doute { color: var(--orange); }
.rcp2-lot { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.rcp-synth { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; }
@media (max-width: 820px) {
  .mat-ck-tout { padding-left: 12px; }
  .mat-p10 .p10-n { flex-basis: 100%; }
  .mat-p10 .btn { flex: 1 1 auto; }
  .rcp2-lot .btn { flex: 1 1 100%; }
}

/* ===== v568 — revue de design du 12.11.2026 : ce qui se recouvre, déborde ou se coupe, corrigé en une passe =====
   T1 bouton téléphone · T2 croix des feuilles · T3 barres d'actions · T5 fenêtres du PC · T7 feuilles opaques ·
   T8 fil d'Ariane · T9 puces qui défilent ; puis champs, largeurs, colonnes et écrans un par un (plus bas). */

/* --- T1 : en veille, le bouton téléphone flottant ne recouvre plus rien --- */
[data-coque-menu="tel"] { position: relative; }
[data-coque-menu="tel"] .tel-pastille { top: 5px; right: 5px; }
.tel-ico { display: inline-flex; }
.tel-entrant-titre svg.i { width: 16px; height: 16px; margin-right: 6px; vertical-align: -2px; }
@media (min-width: 821px) {
  body.tel-veille .tel-bouton { display: none; }      /* « Téléphone », dans la barre de gauche, l'ouvre et montre son état */
}
@media (max-width: 820px) {
  body.tel-veille .tel-dock { z-index: 45; }           /* sous les feuilles, au-dessus des onglets du bas */
  body.avec-coque.avec-tel #app { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }   /* la dernière ligne remonte au-dessus du bouton */
  body.avec-tel #app .p10 { padding-right: 68px; }     /* dans une feuille, le bouton est dessous : rien à réserver */
  body.avec-tel .ml-fab:not([hidden]), body.avec-tel .fr-plus:not([hidden]) { right: 68px; bottom: calc(env(safe-area-inset-bottom) + 84px); }
}

/* --- T7 : feuilles du téléphone opaques (l'ancien « verre » laissait lire la page à travers) --- */
.sheet:not(.win) { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 0; }

/* --- T2 : la croix de fermeture a sa place dans l'en-tête --- */
.sheet:not(.win) .sheet-entete, .sheet:not(.win) > .sheet-top + h2, .sheet:not(.win) > .sheet-top + h3 { padding-right: 52px; }

/* --- T3 : barres d'actions — collées au bas, fond plein, jamais hors de l'écran --- */
.sheet .actions { flex-wrap: wrap; }
.sheet .actions .btn { flex: 1 1 auto; min-width: 0; }
.sheet:not(.win) > .actions { bottom: calc(-22px - env(safe-area-inset-bottom)); background: var(--surface);
  backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 1px solid var(--trait); }

/* --- T5 : fenêtres du PC — les boutons d'action restent visibles au bas de la fenêtre --- */
.sheet.win > .actions { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); z-index: 20;
  margin: 16px -20px calc(-22px - env(safe-area-inset-bottom)); padding: 10px 20px 12px;
  background: var(--surface); border-top: 1px solid var(--trait); }

/* --- T8 : fil d'Ariane — un segment trop long se termine par « … », son chevron reste visible --- */
.tbar .chemin { overflow: hidden; }
.tbar .chemin > .nseg:first-child { flex: none; }
.tbar .chemin > .nseg:not(:first-child) { display: block; flex: 0 1 auto; min-width: 3ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 820px) {
  .tbar .chemin > .nseg:not(:first-child):not(:nth-last-child(2)),
  .tbar .chemin > .nseg:not(:first-child):not(:nth-last-child(2)) + .nsep { display: none; }   /* au téléphone : le parent direct seulement */
}

/* --- T9 : une rangée de puces qui continue s'estompe au bord (classes posées par pucesCadrer) --- */
.defile-suite { -webkit-mask-image: linear-gradient(to right, var(--encre) calc(100% - 36px), transparent);
  mask-image: linear-gradient(to right, var(--encre) calc(100% - 36px), transparent); }
.defile-avant { -webkit-mask-image: linear-gradient(to left, var(--encre) calc(100% - 36px), transparent);
  mask-image: linear-gradient(to left, var(--encre) calc(100% - 36px), transparent); }
.defile-suite.defile-avant { -webkit-mask-image: linear-gradient(to right, transparent, var(--encre) 36px, var(--encre) calc(100% - 36px), transparent);
  mask-image: linear-gradient(to right, transparent, var(--encre) 36px, var(--encre) calc(100% - 36px), transparent); }

/* --- T3 (suite) : au téléphone, des boutons d'action un peu moins hauts ; un libellé long prend sa propre rangée --- */
@media (max-width: 820px) {
  .sheet:not(.win) > .actions { gap: 8px; }
  .sheet:not(.win) > .actions .btn { padding: 12px 14px; font-size: 16px; }
}

/* --- Commandes --- */
.kvide { color: var(--encre-3); text-align: center; padding: 10px 0; font-size: 13px; }
.alpin { margin-right: 5px; vertical-align: -1px; }                      /* le repère de retard n'est plus collé au mot */
.mini.grand { grid-template-columns: repeat(6, auto); }                    /* frise de la fiche : une ligne par étape, rien de rogné */
.mini.grand span { display: block; min-width: 0; line-height: 32px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet h3 > .lien { text-align: left; }                                    /* nom de client long : aligné à gauche comme le reste */
.sev-ligne { flex-wrap: wrap; }
.sev-ligne > .inp { flex: 1 1 200px; }
.ci-ic { display: inline-flex; flex: none; width: 30px; justify-content: center; color: var(--encre-2); }
.od-lic-act .btn { white-space: nowrap; }
.od-licence .od-lic + .t2, .od-licence .od-lic ~ p { margin-top: 10px; }
@media (max-width: 820px) {
  .mini.grand { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 4px; }
  .mini.grand span { height: 30px; line-height: 30px; font-size: 11.5px; padding: 0 12px 0 8px; }
  .od-lic-act .btn { flex: 1 1 100%; }
}
@media (min-width: 821px) and (pointer: fine) {
  .od-urg { min-height: 32px; padding: 0 10px; font-size: 14px; }
  .od-urg input { width: 16px; height: 16px; }
}

/* --- Tâches : l'échéance se lit (elle était rouge sur rouge en Liste et en Trello) --- */
.tk-ech-chip.retard { color: var(--rouge); background: var(--rouge-pale); }
.tk-ech-chip.auj { color: var(--orange); background: var(--orange-pale); }
.tk-ech-chip.semaine { color: var(--bleu); background: var(--bleu-pale); }

/* --- champs : un texte d'exemple trop long se termine par « … » au lieu d'être coupé net --- */
input { text-overflow: ellipsis; }
.frm .duo { align-items: flex-end; }      /* un libellé sur deux lignes ne décale plus son champ par rapport au voisin */

/* --- T10 : au PC, le contenu d'une page s'aligne sur le titre de la barre du haut (plus de colonne centrée décalée) --- */
@media (min-width: 821px) {
  #app .content { margin-left: 0; margin-right: auto; }
}

/* --- T12 : le nom d'une pièce ou d'une tâche n'est plus coupé à 20 caractères — deux lignes au besoin --- */
.mv .mv-t b, .mat-li-t b, .pc-tab .c-nom b, .tk-list .tk-titre, .cr-wk-l1 > b {
  white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.pc-tab .c-nom b { max-width: none; }
.mv .mv-h { font-size: 12px; }

/* --- Stock et Matériel : fiche pièce --- */
.pc-ent-t > b { display: none; }           /* le nom est déjà le titre de la fiche : il n'est plus écrit deux fois */
.pc-ph-vide { grid-column: 1 / -1; }       /* « Pas encore de photo. » tient sur une ligne */
.pc-sans { display: grid; place-items: center; }
.pc-tab .c-img .pc-sans { width: 48px; height: 48px; border-radius: var(--r-s); }

/* --- Tâches --- */
#fEquipeAide { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; color: var(--encre-2); }   /* une phrase, pas un titre en capitales */
.tk-av-tous { background: var(--trait-fort); color: var(--encre-2); }      /* la pastille « tous » se lit */

/* --- boutons : un bouton principal désactivé reste lisible (il porte parfois la consigne : « Indique le client… ») --- */
.btn.primary:disabled, .btn.primary[disabled] { opacity: 1; background: var(--actif); color: var(--encre-2); border-color: var(--trait); box-shadow: none; }

/* --- sections repliables : un chevron dit qu'elles s'ouvrent (« Suivi et devis », « Plus : lieu, commande… ») --- */
:is(.rp-suivi, .rp-hist, .cal-plus-f, .cfg-calcul, .pan-promo, .care-aide, .care-traitees) > summary { list-style: none; }
:is(.rp-suivi, .rp-hist, .cal-plus-f, .cfg-calcul, .pan-promo, .care-aide, .care-traitees) > summary::-webkit-details-marker { display: none; }
:is(.rp-suivi, .rp-hist, .cal-plus-f, .cfg-calcul, .pan-promo, .care-aide, .care-traitees) > summary::before { content: ""; flex: none;
  width: 7px; height: 7px; margin: 0 12px 2px 3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
:is(.rp-suivi, .rp-hist, .cal-plus-f, .cfg-calcul, .pan-promo, .care-aide, .care-traitees)[open] > summary::before { transform: rotate(45deg); margin-bottom: 5px; }

/* --- Réparations --- */
.rp-case { line-height: 1.2; }
.rp-case input { flex: none; }

/* --- Calendrier --- */
.cal-bloc { white-space: nowrap; text-overflow: ellipsis; }        /* un titre long finit par « … », plus de ligne tranchée en deux */
#cevDuree { margin-top: 6px; font-size: 13px; color: var(--encre-2); }
.cal-cote, .cal-cote > * { min-width: 0; }                          /* un nom de calendrier long ne déborde plus sur la grille */
.cal-cote label, .cal-cote select { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ligne .hrs { width: auto; min-width: 92px; white-space: nowrap; }
@media (max-width: 820px) {
  .cal-titre-doublon { display: none; }                             /* « Agenda » était écrit en titre ET en onglet */
  .cal-vues { margin-left: auto; }
}

/* --- Mails --- */
.sheet.win .mc-tete { position: sticky; top: 38px; z-index: 5; background: var(--bg); padding-bottom: 6px; }   /* « Envoyer » reste visible quand le message défile */
select { text-overflow: ellipsis; }

/* --- Paniers : le montant reste en colonne même sans bouton d'appel --- */
.pan-sans-tel { visibility: hidden; pointer-events: none; }

/* --- T4 : un texte n'est plus écrasé par les boutons de sa ligne — sous 821 px, les actions passent dessous --- */
@media (max-width: 820px) {
  .row[style*="flex-wrap"] > .grow { min-width: min(100%, 220px); }
  .dgs-m > .grow, .dgs-t > .grow { flex: 1 1 calc(100% - 40px); min-width: 0; }      /* Import › Suivi */
  .dgs-m > .sw { margin-left: 28px; }
  .dgs-tete { flex-wrap: wrap; gap: 8px; }
  .irow.care-client { flex-wrap: wrap; }                                               /* Care › Clients */
  .care-client > .grow { flex: 1 1 100%; min-width: 0; }
  .care-client-act { margin-top: 4px; }
  .care-l2 { overflow-wrap: anywhere; }
  .pcb-2col > *, .pcb-3col > * { flex: 1 1 100%; min-width: 0; }                       /* PC Builder › Prix : un champ par ligne */
  .pcb-h { flex-wrap: wrap; gap: 8px; }
  .pcb-h > h3 { flex: 1 1 100%; }                                                      /* « Comparer… » passait sur le titre */
  #careOnglets { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }   /* Care : six onglets qui respirent */
  #careOnglets > button { flex: none; padding-left: 12px; padding-right: 12px; }
  .sc-barre { flex-wrap: wrap; overflow: visible; }                                    /* Séances : le sélecteur sur sa ligne, les puces dessous */
  .sc-barre > .seg { flex: 1 1 100%; }
  .sc-barre .p2 { flex-wrap: nowrap; }
}

/* --- T11 : Frais — date, montant et vignette restent en colonne (case et bouton absents gardent leur place) --- */
.fr-sel-vide { visibility: hidden; }
.fr-valider-vide { visibility: hidden; pointer-events: none; }
.fr-form label { position: relative; }
.fr-form label > .champ-ch-cal { position: absolute; right: 2px; bottom: 2px; margin: 0; }   /* l'icône calendrier revient dans le champ « Date » */
@media (max-width: 820px) { .fr-valider-vide { display: none; } }

/* --- Carnet atelier --- */
.cr-wk-l1 { min-width: 0; }
.cr-wk-l1 > b { flex: 1 1 auto; min-width: 0; }
.at-lh > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-lh .load { flex: none; white-space: nowrap; }                    /* « 0 h / 8 h » ne casse plus sur trois lignes */

/* --- T6 : un seul gabarit de formulaire dans les feuilles — libellé AU-DESSUS, champ pleine largeur, un seul style de champ --- */
.sheet label:not([class]):not(:has(input, select, textarea)) { display: block; margin: 12px 0 5px; font-size: 13px; font-weight: 500;
  line-height: 1.35; color: var(--encre-2); }
.sheet label:not([class]):not(:has(input, select, textarea)) + :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { width: 100%; max-width: none; }
.sheet :is(.card, .frm, h2) > label:not([class]):first-child, .sheet h2 + label:not([class]) { margin-top: 0; }
.inp, .txtarea, .pcb input[type=text], .pcb input[type=number], .pcb input[type=search], .pcb select, .pcb textarea {
  background: var(--surface); border: 1px solid var(--trait-fort); }
.pcb input[type=text], .pcb input[type=number], .pcb input[type=search], .pcb select, .pcb textarea { max-width: none; }
.aide-champ { margin: 6px 0 0; font-size: 13px; color: var(--encre-2); }
.pt-etat { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--rouge); vertical-align: 1px; }
.pt-etat.ok { background: var(--vert); }
.kv { gap: 14px; }                                                  /* « AdresseRue du Test… » : libellé et valeur ne se collent plus */
.kv > :first-child { flex: none; }
.kv > :last-child { min-width: 0; text-align: right; overflow-wrap: anywhere; }
@media (min-width: 821px) and (pointer: fine) {
  /* au PC, les champs suivent les boutons affinés (v560) : 36 px, 14 px */
  .sheet :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select), .inp, #app .content select, #app .content input.inp {
    font-size: 14px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
  .sheet textarea, textarea.inp, .txtarea { font-size: 14px; }
  .frm input, .frm select, .frm textarea { padding: 7px 11px; }
  .frm label { margin: 10px 0 4px; }
}

/* --- Import et Réglages : cartes, prix, lignes écrasées au téléphone --- */
/* des valeurs PAR DÉFAUT (:where = aucune priorité) : toute règle d'un module continue de gagner */
:where(.card) > .t1 { font-weight: 600; }                           /* le titre d'une carte se lit comme un titre… */
:where(.card) > .t1 + .t2 { margin-top: 4px; }
:where(.card, .sheet) .t2 { font-size: 14px; line-height: 1.45; }   /* …et un texte secondaire comme un texte secondaire */
.ligne { padding-top: 6px; padding-bottom: 6px; }                   /* un nom sur trois lignes ne touche plus les filets */
.ip-prix3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; }
.ip-prix3 > div { display: flex; flex-direction: column; min-width: 0; }
.ip-prix3 small { font-size: 12px; color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-prix3 b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ip-prix3 b.ip-perte { color: var(--rouge); }
.ip-prix3 span { font-size: 12px; color: var(--encre-3); }
.ip-fixer > .inp { min-width: 96px; }
.sw-avec { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--encre-2); }
.rb-etats { margin-top: 10px; }
.hi-date { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 150px; font-size: 14px; color: var(--encre-2); }
.hi-date > input { flex: 1; min-width: 0; }
.hi-journal { max-height: none; height: calc(100dvh - 250px); min-height: 240px; }
.ml-acces { gap: 6px; margin-bottom: 12px; }
.ml-acces-l > .seg { margin: 0; }
@media (max-width: 820px) {
  .ip-prix3 b { font-size: 15px; }
  .bk-liste .irow { flex-wrap: wrap; }                              /* Sauvegardes : le nom du fichier sur sa ligne, les boutons dessous */
  .bk-liste .irow > .grow { flex: 1 1 100%; }
  .bk-liste .irow > .btn.danger { margin-left: auto; }
  .setrow > label { flex: 1 1 62%; min-width: 0; }                  /* Sécurité : le libellé garde la largeur, le champ court suit */
  .setrow > input[type=number] { flex: 0 0 88px; width: 88px; }
  .dgc-actions > .btn { flex: 1 1 40%; white-space: nowrap; }   /* Conformité : les deux actions longues sur leur ligne, les deux courtes côte à côte */
  .dgc-actions > #dgcCheck { order: -2; flex-basis: 100%; }
  .dgc-actions > #dgcGo { order: -1; flex-basis: 100%; }
  .ip-fixer { flex-wrap: wrap; }                                    /* fiche produit : le champ de prix sur sa ligne, « Fixer » et « Recalculer » dessous */
  .ip-fixer > .inp { flex: 1 1 100%; }
  .ip-fixer > .btn { flex: 1 1 auto; white-space: nowrap; }
  #sec-outils .row > .btn { flex: 1 1 100%; }                       /* Réglages de l'Import : un outil par ligne, plus de libellé sur trois lignes */
}

/* --- un sélecteur segmenté posé dans une rangée ne la décale plus (sa marge basse de 14 px faussait le centrage :
       barre du CRM, accès d'une boîte mail) --- */
.row > .seg, .tbar .seg { margin-bottom: 0; }
@media (max-width: 820px) {
  /* Aujourd'hui : trois compteurs qui tiennent dans leur colonne (le sous-texte, réaffiché par mégarde, s'efface) */
  .aj-cli .ligne .txt { flex: none; width: 100%; }
  .aj-cli .ligne .txt b { white-space: normal; line-height: 1.25; }
  .aj-cli .ligne .txt small { display: none; }
  .aj-repli > summary .meta { display: none; }                      /* « L'équipe aujourd'hui » sur une ligne */
  .aj-repli > summary h2 { white-space: nowrap; }
  /* Carnet › Appels : les trois boutons d'un panier sur une rangée */
  .cr-pan-a { display: flex; flex-wrap: nowrap; gap: 6px; }
  .cr-pan-a > .btn { flex: 1 1 auto; min-width: 0; padding: 9px 8px; font-size: 14px; white-space: nowrap; }
}

/* --- Agents IA : la page prend la largeur des autres modules et ses cartes ont toutes le même bord droit --- */
.ag-host { width: 100%; }
.ag-grille > * { min-width: 0; }
@media (min-width: 821px) { .ag-host { margin: 0; padding-left: 20px; } }
@media (max-width: 1050px) { .ag-grille { grid-template-columns: minmax(0, 1fr); } }
.pm-barre[hidden] { display: none; }                               /* Rôles et droits : pas de barre tant que rien n'a changé */
.regl-import { max-width: 880px; }                                 /* Réglages de l'Import : la barre « Enregistrer » a la largeur de ses cartes */
@media (max-width: 820px) {
  .imp-nv-2 { flex-wrap: wrap; }                                    /* Nouveau lot : deux boutons de même hauteur, l'un sous l'autre */
  .imp-nv-2 > .btn { flex: 1 1 100%; }
}
.care-script-act { flex-wrap: wrap; gap: 8px; }                     /* Care › Scripts : deux boutons qui ne se touchent plus */
@media (max-width: 820px) {
  /* une ligne de liste (Aujourd'hui, Tâches « À faire ») : le titre a droit à deux lignes avant d'être coupé */
  .ligne .txt b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
}
.tel-tete svg.i { width: 16px; height: 16px; vertical-align: -2px; margin-right: 4px; }
button.irow { width: 100%; text-align: left; }                      /* une ligne de liste cliquable prend toute la ligne (Mails › Boîtes et dossiers) */
.fr-role-l { margin-bottom: 8px; }                                  /* Réglages de l'atelier : les rôles respirent, les deux colonnes de chiffres ont un nom */
.fr-role-l > span { font-size: 14px; color: var(--encre-2); }
.fr-regl-h { font-size: 12px; color: var(--encre-2); }
@media (max-width: 820px) {
  .care-lic-outils > .care-lic-auto { flex: 1 1 100%; }             /* Care › Licences : la case sur sa ligne, le bouton dessous */
  .fr-role-l > span { width: 118px !important; }
}

/* v583 — Budget pub */
.bp-phrase { margin: 0 0 12px; color: var(--encre-2); }
.bp-barre { margin: 0 0 12px; }
.bp-note { margin: 8px 0; }
.bp-table { padding: 0; overflow: hidden; margin-top: 12px; }
.bp-l { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr .7fr; gap: 8px; align-items: center; padding: 12px 14px; }
.bp-tete { font-size: 12px; color: var(--encre-2); padding-top: 10px; padding-bottom: 6px; }
.bp-l > span:not(.bp-nom) { text-align: right; font-variant-numeric: tabular-nums; }
.bp-nom small { display: block; color: var(--encre-2); font-size: 12px; }
.bp-pied { margin-top: 10px; }
.bp-cv { text-align: right; }
.bp-cv small { display: block; color: var(--encre-2); }
.bp-vars { margin: 6px 0 0 18px; }
@media (max-width: 820px) {
  .bp-l { grid-template-columns: 1.6fr 1fr .8fr 1fr; }
  .bp-pc { display: none; }
}
