/* ============================================================
   v5/parc.css — le Matériel : la barre du module, le stock, les tablettes, « Qui a quoi » (12/10/2026, élagué le
   16/11/2026). Le hangar en 3D, le rayonnage, la valise ouverte et le parking des voitures ont été retirés le
   16/11/2026 : leurs styles sont partis avec eux (la scène, le verre, le dock, les étiquettes, les panneaux).
   Jetons v2 partout ; graisses et rayons sur l'échelle (echelles.test.js).
   ============================================================ */
.x5-parc { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 24px; }

.x5-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.x5-btn { height: 36px; padding: 0 15px; border-radius: 99px; border: 1px solid var(--stroke, rgba(20, 20, 25, .12)); background: var(--panel-solid, #fff); font-family: inherit; font-size: 12.5px; font-weight: 640; color: var(--v2-text, #16171a); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; letter-spacing: inherit; white-space: nowrap; }
.x5-btn:hover { border-color: var(--accent-bright, #f5d547); }
.x5-btn:disabled { opacity: .45; cursor: default; }
.x5-btn.est-plein { background: var(--accent-bright, #f5d547); border-color: var(--accent-bright, #f5d547); color: var(--sur-accent, #1b1a12); }
.x5-btn.est-discret { border-style: dashed; color: var(--v2-text-2, #55595f); }

.x5-pt { display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: var(--v2-text-3, #9aa0a8); flex: none; }
.x5-pt.est-ok, .x5-pt.est-present { background: #2ecc71; } .x5-pt.est-echeance { background: #f0a020; } .x5-pt.est-a_traiter, .x5-pt.est-manquant { background: #ff3b2a; } .x5-pt.est-a_venir, .x5-pt.est-commande { background: #2f8dff; } .x5-pt.est-stock { background: #7a838d; }

.x5-panel { flex: 1 1 360px; max-width: 440px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.x5-cnt { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.x5-c { padding: 10px 12px; background: var(--panel-solid, #fff); border: 1px solid var(--stroke, rgba(20, 20, 25, .075)); border-radius: var(--r-sm, 12px); }
.x5-c b { display: block; font-size: 22px; font-weight: 680; letter-spacing: -.03em; line-height: 1.05; }
.x5-c span { font-size: 11px; font-weight: 620; color: var(--v2-text-2, #55595f); }
.x5-c.est-ok b { color: var(--pos-fg, #136d45); } .x5-c.est-echeance b { color: var(--corail-fg, #b4532a); } .x5-c.est-a_traiter b { color: var(--neg-fg, #a74137); } .x5-c.est-stock b { color: var(--v2-text-3, #6b6f76); } .x5-c.est-a_venir b { color: var(--info-fg, #3160b4); }
.x5-liste { background: var(--panel-solid, #fff); border: 1px solid var(--stroke, rgba(20, 20, 25, .075)); border-radius: var(--r-md, 18px); overflow: hidden; }

.x5-q b { display: block; font-size: 13.5px; font-weight: 640; } .x5-q b small { font-weight: 620; color: var(--v2-text-3, #6b6f76); } .x5-q span { display: block; font-size: 11.5px; color: var(--v2-text-3, #6b6f76); margin-top: 1px; }
.x5-chip { height: 20px; padding: 0 8px; border-radius: 99px; font-size: 10.5px; font-weight: 640; display: inline-flex; align-items: center; background: rgba(0, 0, 0, .05); color: var(--v2-text-2, #55595f); white-space: nowrap; }
.x5-chip.est-ok { background: #e2f3e9; color: #136d45; } .x5-chip.est-echeance { background: #fbe9dd; color: #b4532a; } .x5-chip.est-a_traiter { background: #f6e3e0; color: #a74137; } .x5-chip.est-a_venir { background: #e3ebf8; color: #3160b4; }
.x5-vide { padding: 18px 16px; border-radius: var(--r-sm, 12px); border: 1px dashed var(--stroke, rgba(20, 20, 25, .16)); font-size: 12.5px; color: var(--v2-text-3, #6b6f76); }
.x5-vide.est-leger { border: 0; padding: 8px 2px; }
.x5-pied { margin: 0; padding: 0 4px; font-size: 11.5px; color: var(--v2-text-3, #6b6f76); }

.x5-tab { background: var(--panel-solid, #fff); border: 1px solid var(--stroke, rgba(20, 20, 25, .075)); border-radius: var(--r-md, 18px); overflow: auto; }
.x5-tab table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.x5-tab th { font-size: 10.5px; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; color: var(--v2-text-3, #6b6f76); text-align: center; padding: 8px 6px; }
.x5-tab td { text-align: center; padding: 7px 6px; border-top: 1px solid var(--stroke-2, rgba(20, 20, 25, .05)); font-weight: 620; }
.x5-tab td:first-child, .x5-tab th:first-child { text-align: left; padding-left: 14px; }
.x5-tab td[data-x5-case] { cursor: pointer; } .x5-tab td.est-ok { color: #136d45; } .x5-tab td.est-echeance { color: #b4532a; background: #fbe9dd; } .x5-tab td.est-a_traiter { color: #a74137; background: #f6e3e0; } .x5-tab td.est-sel { outline: 2px solid var(--accent-bright, #f5d547); outline-offset: -2px; }
.x5-tab td.est-ok b, .x5-tab td.est-a_traiter b { font-weight: 640; }
.x5-fiche { background: var(--panel-solid, #fff); border: 1px solid var(--stroke, rgba(20, 20, 25, .075)); border-radius: var(--r-md, 18px); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.x5-fiche > b { font-size: 14px; font-weight: 680; }
.x5-fiche .x5-chip { align-self: flex-start; }
.x5-pm { display: flex; align-items: center; gap: 8px; } .x5-pm .x5-btn { width: 36px; padding: 0; justify-content: center; font-size: 18px; } .x5-pm > b { font-size: 22px; font-weight: 680; min-width: 40px; text-align: center; } .x5-pm span { font-size: 12px; color: var(--v2-text-3, #6b6f76); }

.x5-etiquettes { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

.x5-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.x5-tab-carte { background: var(--panel-solid, #fff); border: 1px solid var(--stroke, rgba(20, 20, 25, .075)); border-radius: var(--r-md, 18px); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.x5-tab-carte h3 { margin: 0; font-size: 16px; font-weight: 680; display: flex; align-items: center; gap: 8px; letter-spacing: -.02em; }
.x5-site { font-size: 13.5px; font-weight: 620; } .x5-meta { font-size: 12px; color: var(--v2-text-3, #6b6f76); } .x5-alerte { font-size: 12px; font-weight: 640; color: var(--corail-fg, #b4532a); margin-top: 4px; }
.x5-tab-carte .x5-actions { margin-top: 10px; }
.x5-champ { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 640; color: var(--v2-text-2, #55595f); margin: 0 0 12px; }
.x5-champ.est-ligne { flex-direction: row; align-items: center; gap: 8px; }
.x5-champ select, .x5-champ input[type="text"], .x5-champ input[type="file"] { height: 38px; border-radius: var(--r-sm, 12px); border: 1px solid var(--stroke, rgba(20, 20, 25, .12)); background: var(--panel-solid, #fff); font-family: inherit; font-size: 13px; color: var(--v2-text, #16171a); padding: 0 10px; }
.x5-colonnes { font-size: 12px; color: var(--v2-text-2, #55595f); margin: -4px 0 12px; } .x5-colonnes code { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; background: rgba(0, 0, 0, .05); padding: 1px 5px; border-radius: 4px; }
.x5-apercu { font-size: 12px; color: var(--v2-text-2, #55595f); } .x5-apercu .x5-tab { margin-top: 8px; max-height: 180px; }
.x5-dotation { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; font-weight: 620; } .x5-dotation label { display: flex; align-items: center; gap: 6px; } .x5-dotation select { height: 28px; border-radius: 99px; border: 1px solid var(--stroke, rgba(20, 20, 25, .12)); font-family: inherit; font-size: 11.5px; padding: 0 6px; }
.x5-tab td.est-ok { color: #136d45; } .x5-tab td.est-a_traiter { color: #a74137; }
@media (max-width: 900px) { .x5-panel { max-width: none; } }

.x5-lien { padding: 0; border: 0; background: none; font: inherit; font-weight: 640; color: var(--v2-accent, #7d640d); cursor: pointer; text-decoration: underline; }

.x5-btn.est-petit { height: 30px; padding: 0 11px; font-size: 12px; }

/* ── Le scan du magasin (23/10/2026) : sortie ou retour de stock à la caméra ── */
/* Le magasin dans la vue Stock (23/10/2026) : les onglets du panneau, le code d'étiquette, l'historique, les dotations. */
.x5-panel-barre { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.x5-onglets { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--inset, rgba(0, 0, 0, .05)); }
.x5-onglet { height: 30px; padding: 0 12px; border: 0; border-radius: 99px; background: none; font-family: inherit; font-size: 12.5px; font-weight: 640; color: var(--v2-text-2, #55595f); cursor: pointer; letter-spacing: inherit; }
.x5-onglet.est-actif { background: var(--panel-solid, #fff); color: var(--v2-text, #16171a); box-shadow: 0 1px 2px rgba(20, 20, 25, .1); }
.x5-code { align-self: flex-start; font-family: ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 620; letter-spacing: .12em; padding: 3px 9px; border-radius: 99px; background: var(--inset, rgba(0, 0, 0, .05)); color: var(--v2-text, #16171a); }
.x5-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--stroke-2, rgba(20, 20, 25, .05)); }
.x5-h:first-child { border-top: 0; } .x5-h .x5-q b { font-size: 12.5px; white-space: normal; }
.x5-dot-tete b { font-size: 14px; font-weight: 680; } .x5-dot-tete span { display: block; font-size: 11.5px; color: var(--v2-text-3, #6b6f76); margin-top: 1px; }
.x5-dot-l { display: flex; flex-wrap: wrap; gap: 6px; } .x5-dot-l span { font-size: 12px; font-weight: 620; padding: 3px 9px; border-radius: 99px; background: var(--inset, rgba(0, 0, 0, .05)); }
.x5-scan { position: fixed; inset: 0; z-index: var(--z-modale, 300); display: flex; align-items: flex-end; justify-content: center; background: rgba(20, 20, 25, .5); }
body.x5-scan-ouvert { overflow: hidden; }
.x5-scan-boite { width: min(560px, 100%); max-height: calc(100vh - 16px - env(safe-area-inset-top)); overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: var(--r-lg, 26px) var(--r-lg, 26px) 0 0; background: var(--panel-solid, #fff); color: var(--v2-text, #16171a); box-shadow: 0 -12px 40px rgba(20, 20, 25, .2); }
@media (min-width: 768px) { .x5-scan { align-items: center; padding: 20px; } .x5-scan-boite { border-radius: var(--r-lg, 26px); max-height: calc(100vh - 40px); } }
.x5-scan-tete { display: flex; align-items: center; gap: 10px; }
.x5-scan-modes { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--inset, rgba(0, 0, 0, .05)); }
.x5-scan-mode { height: 34px; padding: 0 14px; border: 0; border-radius: 99px; background: none; font-family: inherit; font-size: 13px; font-weight: 640; color: var(--v2-text-2, #55595f); cursor: pointer; letter-spacing: inherit; }
.x5-scan-mode.est-actif { background: var(--panel-solid, #fff); color: var(--v2-text, #16171a); box-shadow: 0 1px 2px rgba(20, 20, 25, .1); }
.x5-scan-x { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 99px; background: var(--inset, rgba(0, 0, 0, .05)); color: var(--v2-text, #16171a); display: grid; place-items: center; cursor: pointer; }
.x5-scan-cam { position: relative; aspect-ratio: 4 / 3; max-height: 280px; border-radius: var(--r-md, 18px); overflow: hidden; background: #111; }
.x5-scan-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.x5-scan-vise { position: absolute; inset: 18% 14%; border: 2px solid rgba(245, 213, 71, .9); border-radius: var(--r-sm, 12px); box-shadow: 0 0 0 999px rgba(0, 0, 0, .28); pointer-events: none; }
.x5-scan-etat { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12.5px; font-weight: 620; text-align: center; }
.x5-scan-saisie { display: flex; gap: 8px; }
.x5-scan-code { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: var(--r-sm, 12px); border: 1.5px solid var(--stroke, rgba(20, 20, 25, .12)); font-family: inherit; font-size: 16px; font-weight: 620; letter-spacing: .04em; text-transform: uppercase; }
.x5-scan-choix summary { cursor: pointer; font-size: 12.5px; font-weight: 640; color: var(--v2-accent, #7d640d); }
.x5-scan-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; margin-top: 8px; }
.x5-scan-art { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: var(--r-sm, 12px); border: 1px solid var(--stroke, rgba(20, 20, 25, .1)); background: var(--panel-solid, #fff); font-family: inherit; text-align: left; cursor: pointer; letter-spacing: inherit; color: var(--v2-text, #16171a); }
.x5-scan-art b { font-size: 12.5px; font-weight: 640; } .x5-scan-art span { font-size: 11px; color: var(--v2-text-3, #6b6f76); }
.x5-scan-lignes { display: flex; flex-direction: column; border-radius: var(--r-md, 18px); border: 1px solid var(--stroke, rgba(20, 20, 25, .1)); overflow: hidden; }
.x5-scan-vide { padding: 14px; font-size: 12.5px; color: var(--v2-text-3, #6b6f76); text-align: center; }
.x5-scan-l { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--stroke-2, rgba(20, 20, 25, .06)); }
.x5-scan-l:first-child { border-top: 0; }
.x5-scan-l b { font-size: 14px; font-weight: 640; } .x5-scan-l > span { font-size: 11.5px; color: var(--v2-text-3, #6b6f76); }
.x5-scan-qte { display: inline-flex; align-items: center; gap: 4px; }
.x5-scan-qte button { width: 32px; height: 32px; border-radius: 99px; border: 1px solid var(--stroke, rgba(20, 20, 25, .12)); background: var(--panel-solid, #fff); display: grid; place-items: center; cursor: pointer; color: var(--v2-text, #16171a); }
.x5-scan-qte i { min-width: 26px; text-align: center; font-style: normal; font-size: 15px; font-weight: 680; font-variant-numeric: tabular-nums; }
.x5-scan-qui label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; color: var(--v2-text-3, #6b6f76); }
.x5-scan-qui select, .x5-scan-autre { height: 44px; padding: 0 12px; border-radius: var(--r-sm, 12px); border: 1.5px solid var(--stroke, rgba(20, 20, 25, .12)); font-family: inherit; font-size: 15px; font-weight: 620; color: var(--v2-text, #16171a); background: var(--panel-solid, #fff); width: 100%; box-sizing: border-box; }
.x5-scan-autre { margin-top: 6px; }
/* Les tailles du technicien choisi, lues dans le logiciel de Mohamed. */
.x5-scan-tailles { font-size: 13px; font-weight: 550; color: var(--v2-text-2, #4a4d54); } .x5-scan-tailles[hidden] { display: none; }
.x5-scan-motifs { display: flex; flex-wrap: wrap; gap: 6px; } .x5-scan-motifs[hidden] { display: none; } .x5-scan-qui[hidden] { display: none; }
.x5-scan-motif { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--stroke, rgba(20, 20, 25, .12)); background: var(--panel-solid, #fff); font-family: inherit; font-size: 12.5px; font-weight: 640; color: var(--v2-text-2, #55595f); cursor: pointer; letter-spacing: inherit; }
.x5-scan-motif.est-actif { background: var(--v2-text, #16171a); border-color: var(--v2-text, #16171a); color: var(--panel-solid, #fff); }
.x5-scan-valider { height: 50px; justify-content: center; font-size: 15px; }
.x5-magasin { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 0; }
.x5-magasin:empty { display: none; }
.x5-magasin-etat { font-size: 11.5px; font-weight: 620; color: var(--v2-text-3, #6b6f76); }
.x5-magasin-etat::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 99px; background: var(--pos-fg, #136d45); margin-right: 6px; vertical-align: 1px; }
.x5-magasin-etat.est-attente::before { background: var(--corail-fg, #b4532a); } .x5-magasin-etat.est-off::before { background: var(--v2-text-3, #6b6f76); opacity: .5; }
/* Le premier branchement du magasin de Mohamed (18/11/2026) : les écarts avec le CRM, et le choix. */
.x5-magasin-choix { flex: 1 1 100%; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: var(--r-md, 18px); border: 1px solid var(--accent-bright, #f5d547); background: var(--accent-soft, rgba(245, 213, 71, .14)); color: var(--v2-text, #16171a); font-size: 13px; line-height: 1.4; }
.x5-magasin-choix > b { font-size: 14px; font-weight: 680; }
.x5-magasin-choix ul { margin: 0; padding-left: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 24px; }
.x5-magasin-choix li b { font-weight: 680; }
.x5-magasin-choix .x5-actions { margin-top: 2px; }

.x5-btn.est-noir { background: var(--v2-text, #16171a); border-color: var(--v2-text, #16171a); color: #fff; }

/* ── Le stock en grille des tailles (06/11/2026, maquette « Les autres menus — revus ») : plus de 3D ici, tous les
   articles en table, la fiche de la taille, « à commander maintenant » et les dernières sorties à côté. ── */
.x5-stock-tete { display: flex; gap: 8px; flex-wrap: wrap; }
.x5-panel.est-plein-large { max-width: none; flex: 1 1 auto; }
.x5-stock-duo { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; align-items: start; }
.x5-stock-grille { min-width: 0; }
.x5-stock-cote { display: flex; flex-direction: column; gap: 10px; }
.x5-stock-cmd.est-rouge { border-left: 4px solid #ff3b2a; }
.x5-stock-cmd-l { display: flex; flex-direction: column; }
.x5-stock-cmd-x { display: flex; flex-direction: column; gap: 1px; padding: 7px 0; border: 0; border-top: 1px solid var(--stroke-2, rgba(20, 20, 25, .05)); background: none; font-family: inherit; text-align: left; cursor: pointer; color: var(--v2-text, #16171a); letter-spacing: inherit; }
.x5-stock-cmd-x:first-child { border-top: 0; }
.x5-stock-cmd-x strong { font-size: 13px; font-weight: 640; } .x5-stock-cmd-x span { font-size: 11.5px; color: var(--v2-text-3, #6b6f76); }
.x5-stock-cmd-x:hover strong { color: var(--v2-accent, #7d640d); }
.x5-stock-dern-l { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid var(--stroke-2, rgba(20, 20, 25, .05)); font-size: 12.5px; }
.x5-stock-dern-l > span:first-child { color: var(--v2-text-3, #6b6f76); font-weight: 640; }
.x5-stock-dern-l strong { font-weight: 640; }
@media (max-width: 1000px) { .x5-stock-duo { grid-template-columns: minmax(0, 1fr); } }

/* ── La règle des couleurs (Joris, 06/11/2026) : vert disponible, rouge utilisée, gris pas utilisable en l'état ── */
.x5-pt.est-libre { background: #2ecc71; } .x5-pt.est-prise { background: #ff3b2a; } .x5-pt.est-inutilisable { background: #9aa0a8; }
.x5-chip.est-libre { background: var(--pos, rgba(23, 128, 81, .15)); color: var(--pos-fg, #136d45); }
.x5-chip.est-prise { background: var(--neg-soft, rgba(193, 75, 64, .11)); color: var(--neg-fg, #a74137); }
.x5-chip.est-inutilisable { background: rgba(0, 0, 0, .06); color: var(--v2-text-2, #55595f); }

/* ── Le stock d'outils à l'unité (06/11/2026) ── */
.x5-stk { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: 'ph q qte' 'ph act act'; gap: 6px 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-sm, 12px); border: 1px solid var(--stroke-2, rgba(20, 20, 25, .06)); background: var(--panel-solid, #fff); margin-bottom: 6px; font-size: 12.5px; }
.x5-stk:hover { border-color: var(--accent-bright, #f5d547); }
.x5-stk > .x5-stk-ph { grid-area: ph; align-self: start; } .x5-stk > .x5-q { grid-area: q; } .x5-stk > .x5-qte { grid-area: qte; } .x5-stk > .x5-btn, .x5-stk > .x5-stk-muet { grid-area: act; justify-self: end; }
.x5-stk-ph { width: 36px; height: 36px; border-radius: var(--r-xs, 9px); object-fit: cover; background: var(--inset, rgba(0, 0, 0, .05)); }
.x5-stk-ph.est-vide { display: block; }
.x5-stk .x5-q b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x5-qte { display: inline-flex; align-items: center; gap: 4px; }
.x5-qte button { width: 26px; height: 26px; border-radius: 99px; border: 1px solid var(--stroke, rgba(20, 20, 25, .12)); background: var(--panel-solid, #fff); color: var(--v2-text-2, #55595f); font: inherit; font-size: 15px; font-weight: 680; line-height: 1; cursor: pointer; }
.x5-qte button:hover:not(:disabled) { border-color: var(--accent-bright, #f5d547); color: var(--v2-text, #16171a); }
.x5-qte button:disabled { opacity: .35; cursor: default; }
.x5-qte b { font-family: var(--font-display, inherit); font-size: 17px; font-weight: 680; min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.x5-stk-muet { font-size: 11px; color: var(--v2-text-3, #9aa0a8); white-space: nowrap; }
.x5-stk-sep { margin: 10px 2px 6px; font-size: 10.5px; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; color: var(--v2-text-3, #6b6f76); }

/* ── Le choix du stock, habillement ou outils (06/11/2026) ── */
.x5-choix-stock { display: flex; gap: 8px; margin: 0 0 12px; }
.x5-choix { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 180px; padding: 9px 16px 10px; border: 1px solid var(--stroke, rgba(20, 20, 25, .1)); border-radius: var(--r-md, 18px); background: var(--panel-solid, #fff); font: inherit; color: var(--v2-text-2, #55595f); cursor: pointer; text-align: left; line-height: 1.2; }
.x5-choix b { font-size: 14px; font-weight: 680; color: var(--v2-text, #16171a); } .x5-choix span { font-size: 11px; color: var(--v2-text-3, #6b6f76); }
.x5-choix:hover { border-color: var(--accent-bright, #f5d547); }
.x5-choix.est-actif { background: var(--v2-text, #16171a); border-color: var(--v2-text, #16171a); } .x5-choix.est-actif b { color: var(--accent-bright, #f5d547); } .x5-choix.est-actif span { color: rgba(255, 255, 255, .7); }
.x5-stk.est-sur { border-color: var(--accent-bright, #f5d547); background: var(--accent-soft, rgba(245, 213, 71, .14)); }

/* ── La barre du Matériel (16/11/2026) : « À faire », puis les onglets, en haut de chaque page du module ──
   Le hangar et son dock sont partis (Joris, 13/11/2026 : « on supprime le hangar totalement »). La même barre est
   posée par les valises et la commande (v4/caisses.js), les voitures (v4/voitures.js) et ce fichier-ci. */
.x5-mat { display: flex; flex-direction: column; gap: 10px; min-width: 0; font-family: var(--font, 'Manrope', -apple-system, system-ui, sans-serif); color: var(--v2-text, #16171a); line-height: 1.2; letter-spacing: -.01em; }
.x4-caisses > .x5-mat { padding: 18px 30px 0; }
.x4-caisses > .x5-mat + .x4-caisses-corps { padding-top: 14px; }
.x4-voitures > .x5-mat { margin-bottom: 14px; }
.x5-mat a { color: inherit; text-decoration: none; }
.x5-mat-afaire { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; min-height: 46px; padding: 6px 18px; background: var(--panel-solid, #fff); border: 1px solid var(--stroke, rgba(20, 20, 25, .075)); border-radius: var(--r-md, 18px); font-size: 13px; }
.x5-mat-et { font-size: 10.5px; font-weight: 680; letter-spacing: .08em; text-transform: uppercase; color: var(--v2-text-3, #6b6f76); }
.x5-mat-geste, .x5-mat-rien { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-weight: 620; }
.x5-mat-geste:hover { text-decoration: underline; }
.x5-mat-afaire b { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; font-size: 12px; font-weight: 680; font-variant-numeric: tabular-nums; }
.x5-mat-afaire b.est-orange { background: var(--warn-soft, rgba(224, 138, 46, .12)); color: var(--warn-fg, #8a5510); }
.x5-mat-afaire b.est-rouge { background: var(--neg-soft, rgba(193, 75, 64, .11)); color: var(--neg-fg, #a74137); }
.x5-mat-afaire b.est-vert { background: var(--pos, rgba(23, 128, 81, .15)); color: var(--pos-fg, #136d45); }
.x5-mat-onglets { display: flex; flex-wrap: wrap; gap: 8px; }
.x5-mat-onglet { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 18px; border-radius: 99px; background: var(--panel-solid, #fff); border: 1px solid var(--stroke, rgba(20, 20, 25, .12)); font-size: 13.5px; font-weight: 680; white-space: nowrap; }
.x5-mat-onglet span { font-weight: 550; color: var(--v2-text-3, #6b6f76); font-variant-numeric: tabular-nums; }
.x5-mat-onglet:hover { background: var(--inset, rgba(0, 0, 0, .035)); }
.x5-mat-onglet.est-actif { background: #16171a; color: #f5d547; border-color: transparent; }
.x5-mat-onglet.est-actif span { color: #fff; }
.x5-mat-onglet.est-a-droite { margin-left: auto; }
.x5-mat-onglet:focus-visible, .x5-mat-geste:focus-visible { outline: 2px solid var(--accent-bright, #f5d547); outline-offset: 2px; }
[data-app-theme="dark"] .x5-mat-onglet.est-actif { background: #f5d547; color: #1b1a12; }
[data-app-theme="dark"] .x5-mat-onglet.est-actif span { color: #1b1a12; }

/* ── Les habits (16/11/2026) : un bloc par article, son image en 3D sur une tuile claire, une case par taille ── */
.x5-habits { display: flex; flex-direction: column; gap: 8px; }
.x5-habits-ray { margin: 8px 2px 0; font-size: 10.5px; font-weight: 640; letter-spacing: .08em; text-transform: uppercase; color: var(--v2-text-3, #6b6f76); }
.x5-habit { display: flex; align-items: center; gap: 16px; padding: 10px 16px 10px 10px; background: var(--panel-solid, #fff); border: 1px solid var(--stroke, rgba(20, 20, 25, .075)); border-radius: var(--r-md, 18px); min-width: 0; }
.x5-habit-img { flex: 0 0 auto; display: block; width: 104px; height: 104px; border-radius: var(--r-sm, 12px); background: #f1f0ec; overflow: hidden; }
.x5-habit-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.x5-habit-img.est-vide { background: var(--inset, rgba(0, 0, 0, .035)); }
.x5-habit-corps { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; min-width: 0; }
.x5-habit-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.x5-habit-tete b { font-family: var(--font-display, inherit); font-size: 16.5px; font-weight: 680; letter-spacing: -.02em; }
.x5-habit-tete span { font-size: 12.5px; color: var(--v2-text-3, #6b6f76); }
.x5-habit-tete .x5-chip { font-style: normal; }
.x5-habit-tailles { display: flex; flex-wrap: wrap; gap: 6px; }
.x5-taille { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 52px; height: 48px; padding: 0 10px; border-radius: var(--r-sm, 12px); border: 1px solid var(--stroke, rgba(20, 20, 25, .12)); background: var(--panel-solid, #fff); color: var(--v2-text, #16171a); font-family: inherit; cursor: pointer; }
.x5-taille small { font-size: 11px; font-weight: 640; color: var(--v2-text-3, #6b6f76); }
.x5-taille b { font-family: var(--font-display, inherit); font-size: 16px; font-weight: 680; font-variant-numeric: tabular-nums; line-height: 1; }
.x5-taille:hover { border-color: var(--accent-bright, #f5d547); }
.x5-taille.est-echeance { background: var(--warn-soft, rgba(224, 138, 46, .12)); border-color: transparent; } .x5-taille.est-echeance b { color: var(--warn-fg, #8a5510); }
.x5-taille.est-a_traiter { background: var(--neg-soft, rgba(193, 75, 64, .11)); border-color: transparent; } .x5-taille.est-a_traiter b { color: var(--neg-fg, #a74137); }
.x5-taille.est-sel { outline: 2px solid var(--v2-text, #16171a); outline-offset: 1px; }

/* Le stock d'outils sans l'étagère en 3D (16/11/2026) : toute la largeur, une ligne par outil. */
.x5-panel.est-plein-large .x5-stk { grid-template-columns: 36px minmax(0, 1fr) auto 190px; grid-template-areas: 'ph q qte act'; }

/* ── « Qui a quoi » (16/11/2026) : la seule page rangée par personne ── */
.x5-qui-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.x5-qui-tete h2 { margin: 0 0 3px; font-family: var(--font-display, inherit); font-size: 22px; font-weight: 680; letter-spacing: -.02em; }
.x5-qui-tete p { margin: 0; font-size: 12.5px; color: var(--v2-text-2, #55595f); }
.x5-qui { background: var(--panel-solid, #fff); border: 1px solid var(--stroke, rgba(20, 20, 25, .075)); border-radius: var(--r-md, 18px); overflow: hidden; }
.x5-qui-l { display: grid; grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(170px, 1fr)); gap: 16px; align-items: center; min-height: 72px; padding: 8px 20px; border-top: 1px solid var(--stroke-2, rgba(20, 20, 25, .06)); }
.x5-qui-l:first-child { border-top: 0; }
.x5-qui-nom b { display: block; font-size: 14.5px; font-weight: 680; }
.x5-qui-nom span { font-size: 12px; color: var(--v2-text-3, #6b6f76); }
.x5-qui-valise, .x5-qui-lien { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; letter-spacing: inherit; }
.x5-qui-lien { flex-direction: column; align-items: flex-start; gap: 2px; }
.x5-qui-lien b, .x5-qui-valise span { font-size: 13px; font-weight: 640; }
.x5-qui-lien span { font-size: 12px; color: var(--v2-text-3, #6b6f76); }
.x5-qui-valise:hover span, .x5-qui-lien:hover b { text-decoration: underline; }
.x5-qui-rien { font-size: 12.5px; color: var(--v2-text-3, #6b6f76); }
@media (max-width: 760px) {
  .x5-mat-onglet.est-a-droite { margin-left: 0; }
  .x5-qui-l { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* L'état des pièces d'un habit (16/11/2026) : neuf ou usagé, et la poubelle. Dans la fiche d'une taille, deux cases ;
   un clic sur une case qui a des pièces, puis l'autre état, ou la poubelle. Dans le scan, sous chaque ligne. */
.x5-etats { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--stroke-2, rgba(20, 20, 25, .06)); }
.x5-etats-t { font-size: 11.5px; font-weight: 640; color: var(--v2-text-3, #6b6f76); }
.x5-etats-l { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.x5-etat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 46px; padding: 0 4px; border-radius: var(--r-sm, 12px); border: 1px solid var(--stroke, rgba(20, 20, 25, .12)); background: var(--panel-solid, #fff); color: var(--v2-text, #16171a); font-family: inherit; letter-spacing: inherit; cursor: pointer; }
.x5-etat small { font-size: 11px; font-weight: 640; color: var(--v2-text-3, #6b6f76); }
.x5-etat b { font-family: var(--font-display, inherit); font-size: 16px; font-weight: 680; font-variant-numeric: tabular-nums; line-height: 1; }
.x5-etat:disabled { cursor: default; }
.x5-etat.est-vide b { font-weight: 400; color: var(--v2-text-3, #6b6f76); }
.x5-etat:not(:disabled):hover { border-color: var(--accent-bright, #f5d547); }
.x5-etat.est-sel { outline: 2px solid var(--v2-text, #16171a); outline-offset: 1px; }
.x5-etats-vers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .x5-etats-vers > span { width: 100%; font-size: 12px; color: var(--v2-text-2, #55595f); }
.x5-etats-aide { font-size: 11.5px; color: var(--v2-text-3, #6b6f76); }
.x5-btn.est-jeter { color: var(--neg-fg, #a74137); } .x5-btn.est-jeter:hover { border-color: var(--neg-fg, #a74137); }
.x5-scan-lignes { flex-shrink: 0; } .x5-scan-cam { min-height: 132px; }
.x5-scan-pieces { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .x5-scan-pieces > small { width: 100%; font-size: 11.5px; color: var(--v2-text-3, #6b6f76); }
.x5-scan-piece { height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--stroke, rgba(20, 20, 25, .12)); background: var(--panel-solid, #fff); font-family: inherit; font-size: 12px; font-weight: 640; color: var(--v2-text-2, #55595f); cursor: pointer; letter-spacing: inherit; }
.x5-scan-piece.est-actif { background: var(--v2-text, #16171a); border-color: var(--v2-text, #16171a); color: var(--panel-solid, #fff); }
.x5-scan-piece.est-poubelle { color: var(--neg-fg, #a74137); } .x5-scan-piece.est-poubelle.est-actif { background: var(--neg-fg, #a74137); border-color: var(--neg-fg, #a74137); color: #fff; }

/* Deux stocks par article (16/11/2026) : le neuf et l'occasion, une rangée de tailles chacun. Et la poubelle commune :
   ce qui a été jeté dans l'année, par article puis ligne à ligne. */
.x5-habit-grille { display: grid; grid-template-columns: auto repeat(var(--n, 4), minmax(36px, 54px)); gap: 5px 6px; align-items: center; justify-content: start; max-width: 100%; overflow-x: auto; padding: 2px; }
.x5-habit-grille > small { text-align: center; font-size: 11px; font-weight: 640; color: var(--v2-text-3, #6b6f76); }
.x5-habit-rang-t { padding-right: 4px; font-size: 11.5px; font-weight: 640; color: var(--v2-text-3, #6b6f76); }
.x5-habit-grille .x5-taille { min-width: 0; width: 100%; height: 36px; padding: 0; }
@media (max-width: 520px) { .x5-habit { align-items: flex-start; gap: 12px; padding-left: 10px; } .x5-habit-img { width: 60px; height: 60px; } .x5-habit-grille { grid-template-columns: auto repeat(var(--n, 4), minmax(32px, 54px)); gap: 5px 4px; } }
.x5-taille.est-vide b { font-weight: 400; color: var(--v2-text-3, #6b6f76); }
.x5-poub-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 2px; }
.x5-poub-tete > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.x5-poub-tete b { font-family: var(--font-display, inherit); font-size: 16.5px; font-weight: 680; letter-spacing: -.02em; } .x5-poub-tete span { font-size: 12.5px; color: var(--v2-text-3, #6b6f76); }
.x5-poub-annees { display: flex; gap: 6px; } .x5-poub-annees .x5-btn.est-actif { background: var(--v2-text, #16171a); border-color: var(--v2-text, #16171a); color: var(--panel-solid, #fff); }
.x5-poub-arts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.x5-poub-art { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; } .x5-poub-art b { font-size: 13.5px; font-weight: 640; } .x5-poub-art strong { font-family: var(--font-display, inherit); font-size: 20px; font-weight: 680; font-variant-numeric: tabular-nums; } .x5-poub-art span { grid-column: 1 / -1; font-size: 12px; color: var(--v2-text-3, #6b6f76); }

/* L'inventaire (16/11/2026) : la feuille du scan, avec une petite table par article et un nombre à corriger par case. */
.x5-inv .x5-scan-boite { width: min(640px, 100%); }
.x5-inv-titre { font-family: var(--font-display, inherit); font-size: 17px; font-weight: 680; letter-spacing: -.02em; }
.x5-inv-aide { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--v2-text-2, #55595f); }
.x5-inv-liste { display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; }
.x5-inv-art { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--stroke-2, rgba(20, 20, 25, .06)); } .x5-inv-art:last-child { border-bottom: 0; padding-bottom: 0; }
.x5-inv-art > b { font-size: 14px; font-weight: 640; }
.x5-inv-grille { grid-template-columns: auto repeat(var(--n, 4), minmax(44px, 64px)); }
.x5-inv-grille input { width: 100%; min-width: 0; height: 42px; box-sizing: border-box; padding: 0 2px; border-radius: var(--r-sm, 12px); border: 1.5px solid var(--stroke, rgba(20, 20, 25, .12)); background: var(--panel-solid, #fff); color: var(--v2-text, #16171a); font-family: inherit; font-size: 16px; font-weight: 680; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.x5-inv-grille input::-webkit-outer-spin-button, .x5-inv-grille input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.x5-inv-grille input:focus { outline: 2px solid var(--v2-text, #16171a); outline-offset: 1px; }
.x5-inv-grille input.est-change { border-color: var(--accent-bright, #f5d547); background: var(--warn-soft, rgba(224, 138, 46, .12)); }
.x5-inv-pied { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; padding: 10px 0 calc(18px + env(safe-area-inset-bottom)); margin-bottom: calc(-18px - env(safe-area-inset-bottom)); background: var(--panel-solid, #fff); flex-shrink: 0; }
.x5-inv-pied > span { font-size: 12.5px; color: var(--v2-text-2, #55595f); }

/* ── Rattacher les noms écrits au logiciel de Mohamed (23/11/2026) ──
   La bande au-dessus de « Qui a quoi », et la fenêtre : une ligne par nom, où il sert, vers qui, deux gestes. */
.x5-rat-bande { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 12px 0 4px; padding: 12px 16px; border-radius: var(--r-md, 18px); background: var(--accent-soft, rgba(245, 213, 71, .18)); font-size: 13px; color: var(--v2-text, #16171a); }
.x5-rat-bande b { font-weight: 680; }
.x5-rat { display: flex; flex-direction: column; gap: 10px; }
.x5-rat-surs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 14px; border-radius: var(--r-xs, 9px); background: var(--inset, rgba(20, 20, 25, .05)); font-size: 13px; }
.x5-rat-l { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--stroke-2, rgba(20, 20, 25, .06)); }
.x5-rat-nom, .x5-rat-vers { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.x5-rat-nom b { font-size: 14px; font-weight: 680; overflow-wrap: anywhere; }
.x5-rat-nom span, .x5-rat-vers small { font-size: 12px; color: var(--v2-text-3, #6b6f76); }
.x5-rat-gestes { display: flex; align-items: center; gap: 12px; }
@media (max-width: 720px) { .x5-rat-l { grid-template-columns: minmax(0, 1fr); } }

/* ── Le suivi d'un technicien (23/11/2026) : la fenêtre ouverte depuis la recherche ou « Qui a quoi » ── */
.x5-qui-suivi { appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.x5-qui-suivi:hover b { text-decoration: underline; }
.x5-suivi { display: flex; flex-direction: column; gap: 14px; }
.x5-suivi-tete { margin: 0; font-size: 13px; color: var(--v2-text-2, #55595f); }
.x5-suivi-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.x5-suivi-b { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-md, 18px); background: var(--inset, rgba(20, 20, 25, .05)); min-width: 0; }
.x5-suivi-b[hidden] { display: none; }
.x5-suivi-b h3 { margin: 0 0 6px; font-size: 11px; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; color: var(--v2-text-3, #6b6f76); }
.x5-suivi-l { appearance: none; -webkit-appearance: none; display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 6px 0; border: 0; border-top: 1px solid var(--stroke-2, rgba(20, 20, 25, .06)); background: none; font: inherit; color: var(--v2-text, #16171a); text-align: left; min-width: 0; }
.x5-suivi-b h3 + .x5-suivi-l { border-top: 0; }
button.x5-suivi-l { cursor: pointer; }
button.x5-suivi-l:hover b { text-decoration: underline; }
.x5-suivi-l b { font-size: 13.5px; font-weight: 680; overflow-wrap: anywhere; }
.x5-suivi-l span { font-size: 12px; color: var(--v2-text-2, #55595f); overflow-wrap: anywhere; }
.x5-suivi-rien { margin: 0; font-size: 12.5px; color: var(--v2-text-3, #6b6f76); }
@media (max-width: 720px) { .x5-suivi-g { grid-template-columns: minmax(0, 1fr); } }

