/* AVStudio — feuille de style unique, sans framework (mémo : aucune bibliothèque) */
:root {
  --fond: #f4f6f8;
  --surface: #ffffff;
  --texte: #1c2329;
  --discret: #5d6872;
  --ligne: #dfe3e7;
  --accent: #0d6e7a;
  --accent-doux: #e2f1f2;
  --alerte: #b42318;
  --ok: #1a7f37;
  --selection: #2563eb;
  --police: Inter, "Inter Fallback", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
/* Un élément masqué l'est toujours, même si sa classe lui donne un display (bandeau, palette…) */
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--police); background: var(--fond); color: var(--texte); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--accent); }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 15px; margin: 28px 0 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--discret); }
.discret { color: var(--discret); }
.nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

header.barre { display: flex; align-items: center; gap: 20px; padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--ligne); }
header.barre .marque { font-weight: 700; text-decoration: none; color: var(--texte); font-size: 16px; }
header.barre nav { display: flex; gap: 16px; }
header.barre nav a { text-decoration: none; color: var(--discret); }
header.barre nav a:hover { color: var(--texte); }
header.barre .compte { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--discret); }

.page { max-width: 1200px; margin: 0 auto; padding: 24px 20px 48px; }
.page.etroite { max-width: 420px; }
.entete { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fil { margin: 0 0 6px; color: var(--discret); }
.carte { background: var(--surface); border: 1px solid var(--ligne); border-radius: 8px; padding: 20px; }
.pile { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.message { min-height: 1.5em; }
.message.erreur { color: var(--alerte); }

input, select, button { font: inherit; }
input, select { padding: 7px 10px; border: 1px solid var(--ligne); border-radius: 5px; background: var(--surface); color: var(--texte); }
.bouton { padding: 7px 14px; border-radius: 5px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
.bouton.discret { background: var(--surface); color: var(--texte); border-color: var(--ligne); }
.bouton:disabled { opacity: .45; cursor: default; }
.bouton:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--selection); outline-offset: 1px; }

.pastille { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: color-mix(in srgb, var(--teinte, var(--accent)) 14%, white); border: 1px solid color-mix(in srgb, var(--teinte, var(--accent)) 45%, white); }

.tableau-cadre { overflow-x: auto; background: var(--surface); border: 1px solid var(--ligne); border-radius: 8px; }
.tableau { width: 100%; border-collapse: collapse; }
.tableau caption { text-align: left; padding: 10px 12px 0; font-weight: 600; }
.tableau th, .tableau td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
.tableau th { font-size: 12px; color: var(--discret); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau td.vignette { width: 56px; }
.tableau td.vignette img { width: 48px; height: 36px; object-fit: contain; display: block; }
.filtres { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filtres input[type=search] { min-width: 260px; flex: 1; }
.pagination { display: flex; gap: 16px; justify-content: center; margin-top: 14px; color: var(--discret); }
.liste-simple { margin: 0; padding-left: 20px; }

.fiche { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 8px; }
.fiche-image { background: var(--surface); border: 1px solid var(--ligne); border-radius: 8px; min-height: 200px; display: grid; place-items: center; padding: 12px; }
.fiche-image img { max-width: 100%; max-height: 300px; object-fit: contain; }
.fiche-entete { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.caracteristiques { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 8px 0 0; }
.caracteristiques dt { color: var(--discret); }
.caracteristiques dd { margin: 0; }
.caracteristiques.large { background: var(--surface); border: 1px solid var(--ligne); border-radius: 8px; padding: 14px 16px; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .fiche, .deux-colonnes { grid-template-columns: 1fr; } }

/* ── Éditeur de synoptique ─────────────────────────────── */
body.page-editeur { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.editeur { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.editeur-corps { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; }
.canvas { position: relative; overflow: hidden; outline: none; background-color: #f9fafb; }
/* Firefox (navigation au curseur, F7) peint un curseur de texte dans le canvas focalisé, au coin des cadres : il
   n'y a rien à saisir hors des champs, on le rend invisible ailleurs. */
.canvas { caret-color: transparent; }
/* Le canvas forme son propre empilement, comme le conteneur de React Flow (.react-flow { z-index: 0 }) : ses barres
   (z-index 1000 à l'intérieur) restent sous les panneaux fixes de la page, dont le panneau « Zone ». */
.canvas { isolation: isolate; }
.canvas input, .canvas textarea, .canvas [contenteditable="true"] { caret-color: auto; }
.canvas.panoramique { cursor: grabbing; }
.monde { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.calque-zones, .calque-blocs { position: absolute; left: 0; top: 0; }
.calque-liens { position: absolute; left: 0; top: 0; overflow: visible; width: 1px; height: 1px; pointer-events: none; }
.calque-liens path.trait { fill: none; pointer-events: none; }
.calque-liens path.zone-clic { fill: none; stroke: transparent; stroke-width: 12; pointer-events: stroke; cursor: pointer; }
.calque-liens text { font: 600 10px var(--police); pointer-events: none; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.lasso { position: absolute; border: 1px dashed var(--selection); background: rgba(37, 99, 235, .08); pointer-events: none; }


.ancre-externe { position: absolute; width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box; border: 2px dashed #d1d5db; background: rgba(255,255,255,.8); opacity: 0; transition: opacity .15s; }
.ancre-externe:hover { opacity: .6; }
.ancre-externe.selectionnee { opacity: 1; border-color: #818cf8; background: #eef2ff; }

.bandeau { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); background: #fff7e6; border: 1px solid #f0c36d; border-radius: 6px; padding: 10px 14px; box-shadow: 0 6px 18px rgba(0,0,0,.12); display: flex; gap: 12px; align-items: center; z-index: 10; }

/* Étiquettes de port (mode « Flèches » de l'outil actuel) */
.calque-etiquettes { position: absolute; left: 0; top: 0; }
.calque-etiquettes > svg { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
.etiquette { position: absolute; font: 700 9px/1.3 var(--police); background: rgba(255,255,255,.95); padding: 2px 6px; border: 1px solid; white-space: nowrap; cursor: pointer; }
.etiquette.selectionnee { box-shadow: 0 0 0 2px var(--selection); }
.etiquette-contenu { display: inline-flex; align-items: center; }
.etiquette-contenu > span { display: inline-flex; align-items: center; }
.etiquette-cable { height: 11px; line-height: 11px; border-radius: 3px; padding: 0 3px; margin: 0 4px; font-size: 8px; }
.etiquette-depart { min-width: 10px; height: 10px; line-height: 10px; border-radius: 3px; text-align: center; font-size: 7px; color: #fff; margin: 0 4px; justify-content: center; }


/* Liaisons */
.calque-liens path.trait-en-cours { fill: none; stroke: var(--selection); stroke-width: 2; stroke-dasharray: 6 4; }

/* Palette d'équipements — valeurs exactes d'EquipmentPalette.tsx / SynoptiqueCanvas.tsx (Tailwind) :
   panneau flottant absolute top-16 left-3 z-10 w-56, rounded-xl shadow-lg border-gray-200 */
.palette { position: absolute; top: 64px; left: 12px; z-index: 10; width: 224px; max-height: calc(100% - 8rem);
  display: flex; flex-direction: column; border-radius: 12px; border: 1px solid #e5e7eb; overflow: hidden; background: #fff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); cursor: default; }
.palette button { font-family: inherit; cursor: pointer; }
.pal-tete { padding: 12px; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; justify-content: space-between; }
.pal-titre { margin: 0; font-size: 13px; line-height: 1.5; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; }
.pal-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pal-icone { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 0; background: none; color: #9ca3af; transition: color .15s, background-color .15s; }
.pal-ajouter { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 0; background: #0035f5; color: #fff; transition: background-color .15s; }
.pal-ajouter:hover { background: #0028c2; }
.pal-icone:hover { color: #4b5563; background: #f3f4f6; }
.pal-icone.tourne { animation: pal-tourne 1s linear infinite; }
@keyframes pal-tourne { to { transform: rotate(360deg); } }
.pal-icone.petite { width: auto; height: auto; padding: 4px; }
.pal-icone.petite.actif { background: #ede9fe; color: #7c3aed; }
.pal-recherche { padding: 8px 8px 4px; }
.pal-recherche-boite { display: flex; align-items: center; gap: 6px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 8px; }
.pal-loupe { flex-shrink: 0; color: #9ca3af; }
.pal-recherche-boite input { flex: 1; min-width: 0; border: 0; padding: 0; background: transparent; font-size: 12px; line-height: 16px; color: #374151; outline: none; }
.pal-recherche-boite input::placeholder { color: #9ca3af; }
.pal-effacer { border: 0; background: none; padding: 0; color: #9ca3af; flex-shrink: 0; display: flex; }
.pal-effacer:hover { color: #4b5563; }
.pal-liste { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 12px; }
.pal-bloc.separe { padding-bottom: 12px; border-bottom: 1px solid #f3f4f6; }
.pal-section { width: 100%; display: flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; text-align: left; }
.pal-section .pal-trait { display: block; width: 4px; height: 14px; border-radius: 9999px; flex-shrink: 0; }
.pal-section .chevron { width: 14px; height: 14px; flex-shrink: 0; }
.pal-section .libelle { font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-section .compte { font-size: 9px; font-weight: 700; margin-left: auto; flex-shrink: 0; padding: 2px 6px; border-radius: 9999px; }
.pal-project { color: #0035f5; } .pal-project .pal-trait { background: #4d7aff; } .pal-project .compte { background: #f0f4ff; }
.pal-library { color: #7c3aed; } .pal-library .pal-trait { background: #a78bfa; } .pal-library .compte { background: #f5f3ff; }
.pal-generic { color: #6b7280; } .pal-generic .pal-trait { background: #d1d5db; } .pal-generic .compte { background: #f3f4f6; }
.pal-enclosure { color: #475569; } .pal-enclosure .pal-trait { background: #94a3b8; } .pal-enclosure .compte { background: #f1f5f9; }
.pal-accessory { color: #d97706; } .pal-accessory .pal-trait { background: #fbbf24; } .pal-accessory .compte { background: #fffbeb; }
.pal-ligne-section { display: flex; align-items: center; }
.pal-flex { flex: 1; min-width: 0; }
.pal-tri { position: relative; flex-shrink: 0; }
.pal-menu-tri { position: absolute; right: 0; top: 100%; margin-top: 4px; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; padding: 4px 0; z-index: 50; min-width: 110px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.pal-menu-tri button { display: block; width: 100%; text-align: left; padding: 6px 12px; font-size: 12px; line-height: 16px; border: 0; background: none; color: #4b5563; }
.pal-menu-tri button:hover { background: #f9fafb; }
.pal-menu-tri button.actif { color: #7c3aed; font-weight: 600; background: #f5f3ff; }
.pal-retrait { margin: 4px 0 0 4px; padding-left: 10px; border-left: 1px solid; display: flex; flex-direction: column; gap: 4px; }
.pal-retrait-project { border-left-color: #dce6ff; }
.pal-retrait-library { border-left-color: #ede9fe; }
.pal-groupe { width: 100%; display: flex; align-items: center; gap: 4px; padding: 2px 0 2px 4px; border: 0; background: none; text-align: left; }
.pal-groupe .chevron { width: 12px; height: 12px; flex-shrink: 0; color: #d1d5db; }
.pal-groupe:hover .chevron { color: #6b7280; }
.pal-groupe .libelle { font-size: 11px; font-weight: 600; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-groupe:hover .libelle { color: #1f2937; }
.pal-groupe .compte { font-size: 9px; color: #d1d5db; margin-left: auto; flex-shrink: 0; }
.pal-articles { display: flex; flex-direction: column; gap: 2px; }
.pal-articles.haut { margin-top: 2px; }
.pal-familles { margin-top: 2px; display: flex; flex-direction: column; gap: 6px; }
.pal-famille { margin: 0; font-size: 11px; font-weight: 600; color: #4b5563; padding: 2px 0 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-article { width: 100%; text-align: left; padding: 6px 8px; border-radius: 8px; border: 0; background: none; display: flex; align-items: center; gap: 8px; min-width: 0; }
.pal-survol-project:hover { background: #f0f4ff; } .pal-survol-library:hover { background: #f5f3ff; } .pal-survol-generic:hover { background: #f9fafb; }
.pal-article .pal-point { display: block; width: 8px; height: 8px; border-radius: 9999px; flex-shrink: 0; }
.pal-article .corps { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pal-article .nom { font-size: 11px; line-height: 1.25; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-article:hover .nom { color: #111827; }
.pal-article .sous { font-size: 10px; line-height: 1.25; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-badge { flex-shrink: 0; font-size: 9px; font-weight: 700; border-radius: 9999px; padding: 2px 6px; }
.pal-badge-project { color: #1a4eff; background: #f0f4ff; }
.pal-badge-complet { color: #16a34a; background: #f0fdf4; }
.pal-u { font-size: 9px; color: #9ca3af; flex-shrink: 0; }
.pal-vide { font-size: 12px; color: #9ca3af; text-align: center; padding: 16px 0; margin: 0; }
.pal-pied { padding: 8px; border-top: 1px solid #f3f4f6; }
.pal-pied a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 12px; color: #6b7280; text-decoration: none; }
.pal-pied a:hover { background: #f9fafb; color: #374151; }

/* ── Bloc d'équipement : valeurs exactes d'AVNode.tsx (Tailwind traduit) ─────────────────── */
/* transition-all d'AVNode : dans React Flow elle porte sur le contenu du nœud, positionné par une enveloppe
   (transform) qui, elle, n'est pas animée. Ici le bloc est positionné lui-même par left/top : les animer
   faisait traîner le bloc derrière la souris pendant un glisser (étiquettes déjà à destination).
   width: max-content — positionné par left dans un calque sans largeur, un bloc en largeur automatique
   prenait la place restante jusqu'au bord du calque : sa largeur changeait avec sa position. Un nœud
   React Flow (positionné par transform) garde sa largeur naturelle. */
.bloc { position: absolute; min-width: 260px; width: max-content; background: #fff; border-radius: 16px; user-select: none; cursor: move;
  transition: all .15s cubic-bezier(.4,0,.2,1); transition-property: box-shadow, border-color, background-color, color, opacity, outline-color; }
.bloc-pointilles { position: absolute; pointer-events: none; overflow: visible; }
.bloc-outils { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; padding: 4px 6px; z-index: 10; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); cursor: default; }
.bloc-outil { padding: 6px; border-radius: 8px; border: 0; background: none; color: #6b7280; display: flex; cursor: pointer; transition: color .15s, background-color .15s; }
.bloc-outil:hover { color: #4f46e5; background: #eef2ff; }
.bloc-outil.actif { color: #4f46e5; background: #eef2ff; }
.bloc-outil.lien { color: #0284c7; } .bloc-outil.lien:hover { background: #f0f9ff; color: #0284c7; }
.bloc-outil.danger:hover { color: #ef4444; background: #fef2f2; }
.bloc-tete { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 16px 16px 0 0; }
.bloc-photo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; object-position: center; flex-shrink: 0; }
.bloc-vignette { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bloc-textes { flex: 1; min-width: 0; padding-top: 2px; }
.bloc-nom { margin: 0; font-size: 14px; line-height: 1.25; font-weight: 700; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bloc-modele { margin: 2px 0 0; font-size: 11px; line-height: 1.5; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bloc-categorie { margin: 2px 0 0; font-size: 11px; line-height: 1.5; color: #9ca3af; }
.bloc-pastille-ref { margin-top: 4px; max-width: 100%; display: inline-flex; align-items: center; gap: 4px; font-size: 10px; line-height: 1.5; font-weight: 600; padding: 2px 6px; border-radius: 9999px; color: #0369a1; background: #f0f9ff; border: 0; cursor: pointer; }
.bloc-pastille-ref:hover { background: #e0f2fe; }
.bloc-pastille-ref.orphelin { color: #b45309; background: #fffbeb; cursor: default; }
.bloc-pastille-ref .tronque { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bloc-tete-droite { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-top: 2px; }
.bloc-serie { display: flex; align-items: center; gap: 2px; font-size: 11px; line-height: 1.5; font-weight: 800; padding: 2px 4px 2px 6px; border-radius: 9999px; font-variant-numeric: tabular-nums; color: #fff; border: 0; cursor: pointer; }
.bloc-x { font-size: 11px; line-height: 1.5; font-weight: 800; padding: 2px 6px; border-radius: 9999px; font-variant-numeric: tabular-nums; }
.bloc-dmx { font-size: 10px; line-height: 1.5; font-weight: 700; padding: 2px 6px; border-radius: 9999px; white-space: nowrap; font-variant-numeric: tabular-nums; color: #115e59; background: #f0fdfa; border: 1px solid #99f6e4; }
.bloc-dmx .fid { opacity: .7; margin-right: 4px; }
.bloc-repere-pastille { font-size: 10px; line-height: 1.5; font-weight: 700; padding: 2px 6px; border-radius: 9999px; white-space: nowrap; }
.bloc-boitier { padding: 0 12px 8px; }
.bloc-boitier.attente { min-height: 40px; }
.bloc-boitier-svg { width: 100%; height: auto; border-radius: 6px; border: 1px solid #e5e7eb; }
.bloc-boitier-orphelin { margin: 4px 0 0; font-size: 10px; font-weight: 600; color: #b45309; }
.pal-boitiers { margin: 4px 0 0 4px; padding-left: 10px; border-left: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 4px; }
.pal-boitier-modele { margin: 0; padding: 2px 4px; font-size: 11px; font-weight: 600; color: #4b5563; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-boitier { width: 100%; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; border-radius: 8px; border: 0; background: none; text-align: left; cursor: pointer; }
.pal-boitier:hover:not(:disabled) { background: #f8fafc; }
.pal-boitier:disabled { cursor: default; }
.pal-boitier-point { width: 8px; height: 8px; border-radius: 2px; background: #64748b; flex-shrink: 0; }
.pal-boitier-rep { flex: 1; min-width: 0; font: 11px var(--mono); color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-boitier-rep.pose { color: #9ca3af; }
.pal-boitier-info { flex-shrink: 0; max-width: 50%; font-size: 9px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bloc-filet { height: 1px; }
.bloc-ports { padding: 6px 0; display: grid; grid-template-columns: 1fr 1fr; }
.accessoire-ports { display: grid; grid-template-columns: 1fr 1fr; }
.colonne.gauche { border-right: 1px solid #f3f4f6; }
.port { height: 26px; display: flex; align-items: center; padding: 0 12px; position: relative; transition: background-color .7s; }
.port.droite { justify-content: flex-end; }
.port.focus { background: #fef3c7; }
.port.arme { background: #fef3c7; }
.nom-port { font-size: 11px; line-height: 1; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.port.gauche .nom-port { flex: 1; }
.port:hover .nom-port { color: #111827; }
.renommer { flex-shrink: 0; opacity: 0; color: #9ca3af; border: 0; background: none; padding: 0; display: flex; cursor: pointer; transition: opacity .15s; }
.port.gauche .renommer { margin-right: 4px; } .port.droite .renommer { margin-left: 4px; }
.port:hover .renommer { opacity: 1; } .renommer:hover { color: #4b5563; }
.bidir { margin-left: 4px; font-size: 9px; color: #9ca3af; flex-shrink: 0; }
.badge { font-size: 8px; line-height: 1.5; font-weight: 700; padding: 0 4px; border-radius: 4px; flex-shrink: 0; }
.badge.ml { margin-left: 4px; } .badge.mr { margin-right: 4px; }
.badge.pont { background: #f3f4f6; color: #9ca3af; }
.badge.chiffres { font-variant-numeric: tabular-nums; }
.badge .ligne-audio { margin-left: 2px; opacity: .75; }
.badge.trunk { border: 1px solid #d1d5db; color: #6b7280; }
.badge.dmx { color: #0f766e; background: #ccfbf1; }
.badges-tagges { font-size: 8px; line-height: 1.5; font-weight: 700; flex-shrink: 0; display: flex; gap: 2px; }
.badges-tagges.ml { margin-left: 4px; } .badges-tagges.mr { margin-right: 4px; }
.badges-tagges .tag { padding: 0 2px; border-radius: 4px; } .badges-tagges .plus { color: #9ca3af; }
.verrouille .bloc, .verrouille .texte-libre, .verrouille .ancre-externe { cursor: default; } .verrouille .poignee { cursor: default; }
.poignee { position: absolute; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; border: 2px solid #fff; border-radius: 100%; cursor: crosshair; }
.port.gauche .poignee { left: -5px; } .port.droite .poignee { right: -5px; }
.ports-libres { width: 100%; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 0; font-size: 9px; line-height: 1.5; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; border: 0; border-top: 1px dashed #f3f4f6; background: none; cursor: pointer; transition: color .15s, background-color .15s; }
.ports-libres:hover { color: #4b5563; background: #f9fafb; }
.bloc-accessoires { border-top: 1px solid #f3f4f6; padding: 8px 12px; display: flex; flex-direction: column; gap: 8px; }
.bloc-section-titre { margin: 0; font-size: 9px; line-height: 13.5px; font-weight: 700; color: #d1d5db; text-transform: uppercase; letter-spacing: .1em; }
.bloc-section-titre.mb { margin-bottom: 6px; }
.bloc-section-titre.entre { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bloc-section-titre .reserve { text-transform: none; letter-spacing: normal; color: #9ca3af; }
.accessoire { border-radius: 12px; border: 1px solid #7c3aed30; overflow: hidden; }
.accessoire-tete { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: #7c3aed0c; }
.accessoire-icone { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; overflow: hidden; background: #fff; border: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: center; color: #d1d5db; }
.accessoire-icone img { width: 100%; height: 100%; object-fit: cover; }
.accessoire-nom { font-size: 10px; line-height: 15px; font-weight: 500; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.accessoire-poe { font-size: 9px; padding: 0 4px; border-radius: 4px; flex-shrink: 0; font-weight: 500; color: #059669; background: #05966920; }
.bloc-notes { padding: 4px 12px 8px; font-size: 10px; line-height: 1.5; color: #9ca3af; font-style: italic; border-top: 1px solid #f9fafb; }
.bloc-pied { border-top: 1px solid #f3f4f6; padding: 8px 12px; }
.bloc-vlans { display: flex; flex-direction: column; gap: 4px; }
.bloc-vlan { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bloc-vlan .carre { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.bloc-vlan .id { font-size: 10px; font-weight: 700; flex-shrink: 0; }
.bloc-vlan .nom { font-size: 10px; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.bloc-vlan .reseau { font-size: 9px; color: #9ca3af; font-family: var(--mono); flex-shrink: 0; }
.bloc-vlan .ports { font-size: 9px; padding: 0 4px; border-radius: 4px; flex-shrink: 0; font-weight: 500; }
.jauge { display: flex; align-items: center; gap: 8px; }
.jauge .jauge-barre { flex: 1; height: 6px; border-radius: 9999px; background: #f3f4f6; overflow: hidden; }
.jauge .plein { height: 100%; border-radius: 9999px; }
.jauge .plein.neutre { width: 100%; background: #d1d5db; }
.jauge .valeur { font-size: 10px; font-weight: 700; flex-shrink: 0; }
.jauge .valeur.neutre { color: #6b7280; }
.bloc-fourni { border-top: 1px dashed #fca5a5; padding: 6px 12px; border-radius: 0 0 16px 16px; background: #fef2f2; text-align: center; font-size: 10px; line-height: 1.5; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #dc2626; }
.pal-concevoir { margin: 4px 0 0 4px; width: calc(100% - 0.25rem); text-align: left; padding: 6px 8px; border-radius: 8px; border: 0; background: none; font-size: 11px; line-height: 1.5; font-weight: 600; color: #475569; display: flex; align-items: center; gap: 6px; }
.pal-concevoir:hover { background: #f8fafc; }
.pal-concevoir .plus { width: 16px; height: 16px; border-radius: 4px; background: #475569; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; line-height: 1; }
.pal-groupe .chevron { color: #d1d5db; }

/* ── Formes, zones et textes : ShapeNode.tsx / TextNode.tsx (valeurs exactes) ─────────── */
.forme, .texte-libre { position: absolute; }
.forme-svg { display: block; position: absolute; left: 0; top: 0; }
.forme-svg.debord { overflow: visible; }
.zone-titre { position: absolute; transform: translate(-50%, -50%); cursor: move; user-select: none; font-weight: 600; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.85); box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); white-space: nowrap; pointer-events: auto; line-height: 1.5; }
.zone-titre .zone-baie { display: inline-block; width: 12px; height: 12px; margin-right: 4px; margin-top: -1px; vertical-align: baseline; }
.texte-contenu { padding: 4px 8px; outline: none; white-space: pre-wrap; overflow-wrap: break-word; cursor: grab; line-height: 1.5; }
.texte-contenu.edition { cursor: text; box-shadow: 0 0 0 2px #818cf8; border-radius: 6px; }
/* NodeResizer de React Flow : coins de 12 px (handleStyle), bandes de saisie de 10 px (.synoptique-resize-line) */
.rf-redim { position: absolute; pointer-events: auto; z-index: 5; }
.rf-redim.coin { width: 12px; height: 12px; border-radius: 3px; border: 1px solid #fff; background: #3367d9; translate: -50% -50%; scale: var(--echelle-poignee, 1); }
.rf-redim.coin.top.left { left: 0; top: 0; cursor: nwse-resize; } .rf-redim.coin.top.right { left: 100%; top: 0; cursor: nesw-resize; }
.rf-redim.coin.bottom.left { left: 0; top: 100%; cursor: nesw-resize; } .rf-redim.coin.bottom.right { left: 100%; top: 100%; cursor: nwse-resize; }
.rf-redim.ligne { border-color: #3367d9; border-style: solid; border-width: 0; }
.rf-redim.ligne.left, .rf-redim.ligne.right { top: 0; height: 100%; width: 10px; transform: translate(-50%, 0); cursor: ew-resize; }
.rf-redim.ligne.left { left: 5px; border-left-width: 1px; } .rf-redim.ligne.right { left: calc(100% - 5px); border-right-width: 1px; }
.rf-redim.ligne.top, .rf-redim.ligne.bottom { left: 0; width: 100%; height: 10px; transform: translate(0, -50%); cursor: ns-resize; }
.rf-redim.ligne.top { top: 5px; border-top-width: 1px; } .rf-redim.ligne.bottom { top: calc(100% - 5px); border-bottom-width: 1px; }
.angle, .angle-milieu { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; }
.angle { cursor: move; z-index: 30; } .angle > div { width: 10px; height: 10px; border-radius: 2px; background: #fff; border: 2px solid #6366f1; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.angle-milieu { cursor: pointer; z-index: 29; } .angle-milieu > div { width: 8px; height: 8px; border-radius: 50%; background: #6366f1; opacity: .55; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
/* NodeToolbar : au-dessus du nœud, centrée, à 10 px */
.calque-outils { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 1000; }
.barre-noeud { position: absolute; transform: translate(-50%, -100%); display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; padding: 8px 10px; white-space: nowrap; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.barre-noeud button { font-family: inherit; cursor: pointer; border: 0; background: none; }
.outil-groupe-plat { display: flex; align-items: center; gap: 4px; }
.outil-valeur { font-size: 10px; color: #9ca3af; text-align: right; } .outil-valeur.w4 { width: 16px; } .outil-valeur.w5 { width: 20px; }
.outil-curseur { accent-color: #4f46e5; } .outil-curseur.w16 { width: 64px; } .outil-curseur.w14 { width: 56px; }
.outil-segments { display: flex; align-items: center; gap: 2px; background: #f3f4f6; border-radius: 8px; padding: 2px; }
.outil-segment { width: 28px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: background-color .15s; color: #6b7280; }
.outil-segment.carre { width: 24px; }
.outil-segment:hover { background: #e5e7eb; }
.outil-segment.actif { background: #fff; box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); color: #4f46e5; }
.apercu-trait { width: 20px; height: 8px; }
.outil-sep { width: 1px; height: 20px; background: #e5e7eb; }
.outil-texte { font-size: 10px; padding: 4px 6px; border-radius: 6px; font-weight: 500; transition: background-color .15s, color .15s; background: #f3f4f6 !important; color: #6b7280; }
.outil-texte.actif { background: #eef2ff !important; color: #4f46e5; }
.outil-texte.danger { background: none !important; color: #9ca3af; } .outil-texte.danger:hover { color: #ef4444; background: #fef2f2 !important; }
.outil-icone { padding: 4px; border-radius: 6px; color: #9ca3af; display: flex; transition: color .15s, background-color .15s; }
.outil-icone:hover { color: #4f46e5; background: #eef2ff; }
.outil-icone.actif { color: #4f46e5; background: #eef2ff; }
.outil-icone.danger:hover { color: #ef4444; background: #fef2f2; }
/* ColorSwatchPicker */
.couleur { position: relative; flex-shrink: 0; }
.couleur-carre { width: 24px; height: 24px; border-radius: 6px; border: 1px solid #e5e7eb !important; display: block; }
.couleur-panneau { position: absolute; top: 100%; left: 0; margin-top: 6px; display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; padding: 10px; z-index: 1001; min-width: 132px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.couleur-recentes { display: flex; flex-direction: column; gap: 4px; }
.couleur-titre { font-size: 10px; color: #9ca3af; font-weight: 500; }
.couleur-rangee { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.couleur-pastille { width: 20px; height: 20px; border-radius: 9999px; border: 1px solid #e5e7eb !important; transition: transform .15s; flex-shrink: 0; }
.couleur-pastille:hover { transform: scale(1.1); }
.couleur-autre { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #6b7280; cursor: pointer; }
.couleur-autre:hover { color: #374151; }
.couleur-apercu { width: 20px; height: 20px; border-radius: 6px; border: 1px solid #e5e7eb; position: relative; overflow: hidden; flex-shrink: 0; }
.couleur-apercu input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; padding: 0; border: 0; }
/* ZoneEditPanel */
.zone-voile { position: fixed; inset: 0; background: rgba(0,0,0,.1); z-index: 30; }
.zone-panneau { position: fixed; top: 0; right: 0; height: 100%; z-index: 40; width: 380px; background: #fff; border-left: 1px solid #e5e7eb; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); display: flex; flex-direction: column; }
.zp-tete { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f3f4f6; }
.zp-titre { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #1f2937; }
.zp-ic { color: #6366f1; flex-shrink: 0; }
.zp-fermer { padding: 4px; border-radius: 6px; color: #9ca3af; border: 0; background: none; display: flex; cursor: pointer; }
.zp-fermer:hover { background: #f3f4f6; color: #4b5563; }
.zp-corps { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.zp-case { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; cursor: pointer; }
.zp-case.cadre { border-radius: 8px; border: 1px solid #ececf0; padding: 10px 12px; }
.zp-case input[type=checkbox] { width: 16px; height: 16px; accent-color: #4f46e5; flex-shrink: 0; margin-top: 2px; }
.zp-min { min-width: 0; }
.zp-libelle { font-size: 14px; font-weight: 500; color: #1f2937; }
.zp-libelle.avec-icone { display: flex; align-items: center; gap: 6px; }
.zp-aide { font-size: 12px; color: #9ca3af; margin: 2px 0 0; }
.zp-etiquette { display: block; font-size: 12px; font-weight: 500; color: #6b7280; margin-bottom: 4px; }
.zp-champ { width: 100%; padding: 8px 12px; font-size: 14px; border: 1px solid #e5e7eb; border-radius: 8px; }
.zp-champ:focus { outline: none; box-shadow: 0 0 0 2px #6366f1; border-color: transparent; }
.zp-ligne { display: flex; align-items: center; gap: 16px; }
.zp-flex { flex: 1; }
.zp-curseur { display: flex; align-items: center; gap: 8px; } .zp-curseur input { flex: 1; accent-color: #4f46e5; }
.zp-valeur { font-size: 12px; color: #9ca3af; width: 24px; text-align: right; }

/* Comme React Flow (.react-flow__node, .react-flow__edgelabel-renderer…) : pas de sélection de texte sur le schéma */
.canvas, .canvas .monde, .calque-etiquettes, .palette .pal-liste, .palette .pal-tete { -webkit-user-select: none; user-select: none; }
.texte-contenu.edition, .canvas input, .canvas textarea { -webkit-user-select: text; user-select: text; }

/* ── Habillage de l'éditeur : barre d'outils unique (SynoptiqueCanvas.tsx), sections, aide,
      Controls et MiniMap de React Flow — valeurs Tailwind d'origine traduites telles quelles ── */
.editeur { height: 100vh; }
.cb-hote { position: absolute; top: 12px; left: calc(100% / 2); transform: translateX(-50%); z-index: 10; }
.cb-hote button, .aide-fenetre button, .rf-controles button { font-family: inherit; }
.cb-barre { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; white-space: nowrap;
  background: rgb(255 255 255 / .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); border: 1px solid #e5e7eb; }
.cb-barre button { border: 0; background: none; padding: 0; cursor: pointer; color: inherit; }
.cb-barre svg { flex-shrink: 0; }
.cb-sep { width: 1px; height: 20px; background: #e5e7eb; flex-shrink: 0; }
.cb-sep.mx { margin: 0 2px; }
.cb-retour { display: flex; align-items: center; justify-content: center; color: #6b7280; transition: color .15s; }
.cb-retour:hover { color: #1f2937; }
.cb-nom { font-size: 14px; line-height: 20px; font-weight: 600; color: #111827; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-type { font-size: 11px; background: #f0f4ff; color: #0035f5; padding: 2px 8px; border-radius: 9999px; flex-shrink: 0; }
.cb-rel { position: relative; }
.cb-sections { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px !important; border-radius: 6px;
  font-size: 12px; line-height: 16px; font-weight: 500; color: #4b5563 !important; transition: background-color .15s; }
.cb-sections:hover { background: #f3f4f6 !important; }
.cb-sections-lib { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-sections .cb-chevron { transition: transform .15s; }
.cb-sections.ouvert .cb-chevron { transform: rotate(180deg); }
.cb-menu-sections { position: absolute; top: 100%; left: 0; margin-top: 8px; z-index: 30; width: 240px; max-height: 70vh; overflow-y: auto;
  background: rgb(255 255 255 / .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 12px; border: 1px solid #e5e7eb;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); padding: 8px; white-space: normal; }
.cb-groupe { margin-bottom: 4px; }
.cb-groupe:last-child { margin-bottom: 0; }
.cb-groupe-titre { margin: 0; font-size: 10px; line-height: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; padding: 8px 8px 4px; }
.cb-groupe-liste > * + * { margin-top: 2px; }
.cb-section { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: 13px; line-height: 19.5px; font-weight: 500;
  color: #4b5563; text-decoration: none; transition: background-color .15s, color .15s; }
.cb-section:hover { background: #f3f4f6; color: #111827; }
.cb-section.actif { background: #f0f4ff; color: #0028c2; }
.cb-tronque { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cb-aide { height: 32px; width: 32px; flex-shrink: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #6b7280 !important; transition: background-color .15s; }
.cb-aide:hover { background: #f3f4f6 !important; }
.cb-aide.actif { background: #0035f5 !important; color: #fff !important; }
.cb-ic7 { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #6b7280 !important; transition: background-color .15s; }
.cb-ic7:hover { background: #f3f4f6 !important; }
.cb-ic7.actif-indigo { background: #eef2ff !important; color: #4f46e5 !important; }
.cb-commentaires { position: relative; height: 28px; min-width: 28px; padding: 0 6px !important; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #6b7280 !important; transition: background-color .15s; }
.cb-commentaires:hover { background: #f3f4f6 !important; }
.cb-cloche { position: relative; width: 32px; height: 32px; margin: -4px 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #6b7280 !important; transition: background-color .15s; }
.cb-cloche:hover { background: #f3f4f6 !important; }
.cb-outils { display: flex; align-items: center; gap: 2px; background: #f3f4f6; border-radius: 8px; padding: 2px; }
.cb-outil { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #6b7280 !important; transition: background-color .15s; }
.cb-outil:hover { background: #e5e7eb !important; }
.cb-outil.actif { background: #fff !important; box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05); color: #4f46e5 !important; }
.cb-prerequis { height: 28px; padding: 0 8px !important; border-radius: 6px; display: flex; align-items: center; gap: 4px; color: #6b7280 !important; transition: background-color .15s; }
.cb-prerequis:hover { background: #e5e7eb !important; }
.cb-prerequis-lib { font-size: 11px; font-weight: 500; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-alertes { position: relative; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: #6b7280 !important; transition: background-color .15s; }
.cb-alertes:hover { background: #f3f4f6 !important; }
.cb-alertes.rouge { color: #dc2626 !important; }
.cb-alertes.rouge:hover, .cb-alertes.ouvert { background: #fef2f2 !important; color: #dc2626 !important; }
.cb-compteur { position: absolute; top: -4px; right: -4px; min-width: 14px; height: 14px; padding: 0 4px; border-radius: 9999px; background: #dc2626; color: #fff;
  font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }
.cb-menu-alertes { position: absolute; top: 100%; right: 0; margin-top: 8px; z-index: 20; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; width: 320px; overflow: hidden;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); white-space: normal; }
.cb-alertes-tete { padding: 8px 12px; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; gap: 8px; }
.cb-alertes-titre, .cb-aff-titre { font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .025em; }
.cb-alertes-n { font-size: 10px; font-weight: 700; color: #dc2626; }
.cb-alertes-vide { margin: 0; padding: 16px 12px; font-size: 11px; color: #9ca3af; display: flex; align-items: center; gap: 6px; }
.cb-vert { color: #10b981; flex-shrink: 0; }
.cb-alertes-liste { max-height: 288px; overflow-y: auto; }
.cb-alertes-groupe { margin: 0; padding: 8px 12px 4px; font-size: 9px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .1em; background: #f9fafb; }
.cb-alerte { border-top: 1px solid #f9fafb; }
.cb-alerte-bouton { display: block; width: 100%; text-align: left; padding: 8px 12px 6px !important; transition: background-color .15s; }
.cb-alerte-bouton:hover { background: rgb(254 242 242 / .6) !important; }
.cb-alerte-titre { margin: 0; font-size: 11px; font-weight: 600; color: #1f2937; display: flex; align-items: flex-start; gap: 6px; }
.cb-rouge { flex-shrink: 0; margin-top: 2px; color: #ef4444; }
.cb-alerte-detail { margin: 2px 0 0; font-size: 10px; color: #6b7280; padding-left: 18px; }
.cb-alerte-fix { padding: 0 12px 8px 30px; }
.cb-corriger { display: inline-flex !important; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: #fff !important; background: #4f46e5 !important; padding: 4px 8px !important; border-radius: 8px; transition: background-color .15s; }
.cb-corriger:hover { background: #4338ca !important; }
.cb-affichage { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: #6b7280 !important; transition: background-color .15s; }
.cb-affichage:hover, .cb-affichage.ouvert { background: #f3f4f6 !important; }
.cb-menu-affichage { position: absolute; top: 100%; right: 0; margin-top: 8px; z-index: 20; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; padding: 12px; width: 256px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); white-space: normal; }
.cb-aff-tete { display: flex; align-items: center; justify-content: space-between; }
.cb-aff-tout { font-size: 10px; font-weight: 500; color: #6366f1 !important; }
.cb-aff-tout:hover { color: #4338ca !important; }
.cb-aff-aide { margin: 2px 0 0; font-size: 10px; color: #9ca3af; }
.cb-aff-signaux { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cb-aff-signal { font-size: 10px; padding: 2px 8px !important; border-radius: 4px; font-weight: 700; text-transform: uppercase; white-space: nowrap; transition: all .15s;
  color: #6b7280 !important; background: #f3f4f6 !important; }
.cb-aff-signal:hover { background: #e5e7eb !important; }
.cb-aff-signal.actif { color: #fff !important; box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05); }
.cb-aff-bas { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f3f4f6; }
.cb-aff-case { margin-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #374151; cursor: pointer; }
.cb-aff-case input { accent-color: #4f46e5; margin: 0; }
.cb-histo { display: flex; align-items: center; gap: 2px; }
.cb-ic { padding: 6px !important; border-radius: 8px; color: #9ca3af !important; transition: background-color .15s, color .15s; display: flex; }
.cb-ic:hover { color: #374151 !important; background: #f3f4f6 !important; }
.cb-ic:disabled { opacity: .3; cursor: not-allowed; background: none !important; color: #9ca3af !important; }
.cb-etat { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: #9ca3af; padding-left: 4px; }
.cb-etat-l { display: flex; align-items: center; gap: 4px; }
.cb-etat-l.ambre { color: #d97706; font-weight: 500; }
.cb-etat-l.vert { color: #16a34a; }
.cb-lecture { color: #d97706; font-weight: 500; }
.cb-tourne { animation: cb-tourne 1s linear infinite; }
@keyframes cb-tourne { to { transform: rotate(360deg); } }

/* HelpWindow */
.aide-fenetre { position: fixed; left: 16px; top: 96px; z-index: 40; width: 23rem; max-height: calc(100vh - 9rem); display: flex; flex-direction: column;
  background: #fff; border-radius: 12px; box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); border: 1px solid #d1d5db; overflow: hidden; }
.aide-tete { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid #e5e7eb; }
.aide-titre { font-size: 14px; line-height: 20px; font-weight: 600; color: #111827; }
.aide-fermer { border: 0; background: none; padding: 0; cursor: pointer; color: #9ca3af; display: flex; transition: color .15s; }
.aide-fermer:hover { color: #4b5563; }
.aide-corps { min-height: 0; overflow-y: auto; padding: 10px 12px; }
.aide-corps > * + * { margin-top: 12px; }
.aide-section > * + * { margin-top: 6px; }
.aide-section-tete { display: flex; align-items: center; gap: 8px; }
.aide-section-titre { font-size: 11px; color: #6b7280; flex-shrink: 0; }
.aide-trait { flex: 1; height: 1px; background: #e5e7eb; }
.aide-ligne { display: flex; align-items: flex-start; gap: 10px; }
.aide-ic { flex-shrink: 0; width: 20px; padding-top: 2px; color: #6b7280; }
.aide-texte { min-width: 0; flex: 1; }
.aide-lib { display: block; font-size: 13px; line-height: 1.375; color: #1f2937; }
.aide-touches { margin-left: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 10px; padding: 2px 4px; border-radius: 4px; border: 1px solid #e5e7eb; color: #6b7280; }
.aide-detail { display: block; font-size: 11px; line-height: 1.375; color: #6b7280; margin-top: 2px; }

/* Controls de React Flow (orientation horizontale, bas droite, bottom 168) */
.rf-panneau { position: absolute; z-index: 5; margin: 15px; }
.rf-controles-hote { right: 0; bottom: 168px; }
.rf-controles { display: flex; flex-direction: row; box-shadow: 0 0 2px 1px rgba(0, 0, 0, .08); }
.rf-ctl { display: flex; justify-content: center; align-items: center; height: 26px; width: 26px; padding: 4px; border: none; background: #fefefe;
  border-bottom: 1px solid #eee; color: inherit; cursor: pointer; user-select: none; }
.rf-ctl:hover { background: #f4f4f4; }
.rf-ctl svg { width: 100%; max-width: 12px; max-height: 12px; fill: currentColor; }
.rf-ctl:disabled { pointer-events: none; }
.rf-ctl:disabled svg { fill-opacity: .4; }
.rf-ctl .indigo { color: #4f46e5; }
.rf-ctl .gris { color: #9ca3af; }

/* MiniMap de React Flow (bas droite) */
.rf-minimap { right: 0; bottom: 0; background: #fff; line-height: 0; cursor: grab; }
.rf-minimap-svg { display: block; }
.rf-minimap-masque { fill: rgba(240, 240, 240, .6); stroke: transparent; }

/* ── Étiquettes de port : barre d'outils, saisie, rebranchement (PortArrowEdge.tsx) ── */
.etiquette-hote { position: absolute; }
.etiquette-saisie { font: 700 9px/1.3 var(--police); background: #fff; border: 1px solid; border-radius: 4px; padding: 0 4px; outline: none; }
.etiquette-cable-saisie { box-sizing: content-box; font-family: var(--police); font-weight: 700; outline: none; }
.etiq-barre { position: absolute; bottom: calc(100% + 1px); left: -1px; transform: translateY(-6px); pointer-events: all; z-index: 20; cursor: default; }
.etiq-barre-in { display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; padding: 4px 6px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); }
.etiq-outil { padding: 6px; border-radius: 8px; border: 0; background: none; color: #6b7280; display: flex; cursor: pointer; transition: color .15s, background-color .15s; }
.etiq-outil:hover { color: #4f46e5; background: #eef2ff; }
.etiq-outil.rouge:hover { color: #ef4444; background: #fef2f2; }
.etiq-sep { width: 1px; height: 16px; background: #e5e7eb; }
.etiq-deplacer { position: absolute; transform: translate(-50%, -50%); z-index: 21; pointer-events: auto; }
.etiq-deplacer-in { width: 16px; height: 16px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1); }
/* globals.css de l'outil actuel */
.poignee.synoptique-drop-target { background-color: #22c55e !important; border-color: #16a34a !important; width: 12px !important; height: 12px !important; box-shadow: 0 0 0 4px rgba(34, 197, 94, .35); }
.bloc.synoptique-drop-target-node { outline: 3px solid #16a34a; outline-offset: 3px; border-radius: 1rem; }
@keyframes synoptique-focus-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .55); } 50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); } }
.poignee.synoptique-focus-highlight { background-color: #f59e0b !important; border-color: #d97706 !important; width: 14px !important; height: 14px !important; animation: synoptique-focus-pulse .8s ease-out 3; }
/* Sélection groupée d'étiquettes (Panel top-center, !top-[45px]) */
.groupe-etiquettes { top: 45px; left: 50%; transform: translateX(-15px) translateX(-50%); }
.ge-colonne { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ge-barre { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; padding: 6px 12px; white-space: nowrap;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); }
.ge-titre { font-size: 12px; line-height: 16px; font-weight: 500; color: #6b7280; }
.ge-changer { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; border: 0; background: none; font: 500 12px/16px var(--police); color: #4b5563; cursor: pointer; transition: color .15s, background-color .15s; }
.ge-changer:hover { color: #4f46e5; background: #eef2ff; }
.ge-changer.actif { color: #fff; background: #16a34a; }
.ge-annuler { padding: 4px; border-radius: 8px; border: 0; background: none; color: #9ca3af; display: flex; cursor: pointer; transition: color .15s, background-color .15s; }
.ge-annuler:hover { color: #4b5563; background: #f3f4f6; }
.ge-avertissement { display: flex; align-items: center; gap: 6px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 4px 10px; font-size: 11px; color: #b45309;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1); }
/* Pastille agrandie : reste centrée sur le bord du bloc (le handle React Flow est centré par translate) */
.port.gauche .poignee.synoptique-drop-target { left: -6px; } .port.droite .poignee.synoptique-drop-target { right: -6px; }
.port.gauche .poignee.synoptique-focus-highlight { left: -7px; } .port.droite .poignee.synoptique-focus-highlight { right: -7px; }

/* ── Liaisons tracées (WaypointEdge.tsx) ── */
.calque-liens path.seg-clic { fill: none; stroke: transparent; stroke-width: 20; pointer-events: stroke; cursor: grab; }
.trait-hold { position: absolute; width: max-content; }
.trait-repere { font: 600 9px/1.3 var(--police); background: rgba(255,255,255,.92); padding: 1px 5px; border-radius: 4px; white-space: nowrap; pointer-events: auto; touch-action: none; }
.trait-saisie { font: 700 9px/1.3 var(--police); background: #fff; border: 1px solid; border-radius: 4px; padding: 0 4px; outline: none; }
.trait-point { width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; touch-action: none; }
.trait-barre { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%) translate(0, -20px); pointer-events: all; z-index: 20; }
.etiq-outil.indigo { color: #4f46e5; }
.trait-mid { position: absolute; transform: translate(-50%, -50%); pointer-events: all; z-index: 15; }
.trait-mid-in { width: 9px; height: 9px; box-sizing: border-box; background: #fff; border: 2px solid #94a3b8; border-radius: 2px; transform: rotate(45deg); transition: background-color .12s, border-color .12s; }
.trait-mid-in.actif { background: #6366f1; border-color: #6366f1; }

/* ── Propriétés de la connexion (ConnectionPropertiesPanel.tsx) ── */
.canvas { transition: margin-right .3s cubic-bezier(.4,0,.2,1); }
.canvas.panneau-ouvert { margin-right: 580px; }
.cp-voile { position: fixed; inset: 0; background: rgba(0,0,0,.1); z-index: 30; }
.cp-hote { position: fixed; top: 0; right: 0; height: 100%; z-index: 40; }
.cp-panneau { width: 580px; height: 100%; background: #fff; border-left: 1px solid #e5e7eb; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); font-family: var(--police); }
.cp-panneau p { margin: 0; }
.cp-panneau button { font-family: inherit; cursor: pointer; }
.cp-tete { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; }
.cp-tete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cp-tete-gauche { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.cp-point { width: 8px; height: 8px; border-radius: 9999px; flex-shrink: 0; }
.cp-surtitre { font-size: 9px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .1em; flex-shrink: 0; }
.cp-nom { font: 700 14px/20px var(--police); color: #111827; background: transparent; border: 0; border-bottom: 1px solid transparent; padding: 0 2px; margin-left: -2px;
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; outline: none; }
.cp-nom:hover { border-bottom-color: #e5e7eb; } .cp-nom:focus { border-bottom-color: #818cf8; }
.cp-nom::placeholder { color: #9ca3af; font-weight: 400; }
.cp-fermer { padding: 6px; border: 0; background: none; border-radius: 8px; color: #9ca3af; display: flex; flex-shrink: 0; transition: background-color .15s; }
.cp-fermer:hover { background: #f3f4f6; }
.cp-resume { font-size: 11px; line-height: 16.5px; color: #9ca3af; margin-top: 6px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-fleche { color: #d1d5db; margin: 0 6px; }
.cp-corps { flex: 1; overflow-y: auto; padding: 16px; }
.cp-section { border: 1px solid #f3f4f6; border-radius: 12px; margin-bottom: 12px; }
.cp-section-tete { width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgb(249 250 251 / .8); border: 0; text-align: left; transition: background-color .15s; }
.cp-section-tete:hover { background: rgb(243 244 246 / .8); }
.cp-chevron { color: #9ca3af; flex-shrink: 0; }
.cp-section-titre { font-size: 12px; line-height: 16px; font-weight: 600; color: #374151; }
.cp-section-corps { padding: 16px; background: #fff; }
.cp-section-corps > * + * { margin-top: 12px; }
.cp-libelle { display: block; font-size: 10px; line-height: 15px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.cp-input { width: 100%; padding: 8px 12px; font: 14px/20px var(--police); background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; color: #1f2937; outline: none; transition: border-color .15s, box-shadow .15s; }
.cp-input:focus { box-shadow: 0 0 0 2px #a5b4fc; border-color: #818cf8; }
.cp-input::placeholder { color: #d1d5db; }
.cp-input.centre { text-align: center; }
.cp-hint { font-size: 11px; line-height: 1.375; color: #6b7280; }
.cp-section-corps > .cp-hint.moins { margin-top: -4px; }
.cp-hint.plus { margin-top: 4px !important; }
.cp-cases > * + * { margin-top: 6px; }
.cp-case { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.cp-check { margin: 2px 0 0; }
.cp-check-accent { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #4f46e5; flex-shrink: 0; }
.cp-case-titre { display: block; font-size: 12px; line-height: 16px; color: #374151; }
.cp-case-aide { display: block; font-size: 10px; line-height: 15px; color: #9ca3af; }
.cp-case-texte { font-size: 12px; line-height: 16px; color: #4b5563; }
.cp-compteur, .cp-ligne { display: flex; align-items: center; gap: 8px; }
.cp-pas { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid #e5e7eb; background: none; color: #6b7280; }
.cp-pas:hover { background: #f9fafb; }
.cp-cordons > * + * { margin-top: 8px; }
.cp-cordon { border-radius: 8px; border: 1px solid #e5e7eb; padding: 8px; }
.cp-cordon > * + * { margin-top: 8px; }
.cp-retirer { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 0; background: none; color: #9ca3af; transition: color .15s; }
.cp-retirer:hover { color: #ef4444; }
.cp-qte-lib { font-size: 10px; color: #9ca3af; flex-shrink: 0; }
.cp-input.cp-qte { width: 64px; }
.cp-ajouter, .cp-reinit { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; font-size: 12px; line-height: 16px; font-weight: 500;
  border-radius: 8px; border: 1px dashed #e5e7eb; background: none; color: #6b7280; transition: background-color .15s; }
.cp-reinit { border-style: solid; }
.cp-ajouter:hover, .cp-reinit:hover { background: #f9fafb; }
.cp-notes { resize: none; }
.cp-compte { font-size: 10px; color: #9ca3af; text-align: right; }
.cp-supprimer { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 12px; font-size: 14px; line-height: 20px; font-weight: 600;
  color: #dc2626; background: none; border: 0; border-radius: 8px; transition: background-color .15s; }
.cp-supprimer:hover { background: #fef2f2; }

/* ── Menu groupe de la sélection multiple (Panel top-center, !top-[45px]) ── */
.menu-groupe { top: 45px; left: 50%; transform: translateX(-15px) translateX(-50%); }
.mg-groupe { display: flex; align-items: center; gap: 2px; }
.mg-outil { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; border: 0; background: none; color: #6b7280; cursor: pointer; transition: color .15s, background-color .15s; }
.mg-outil.indigo:hover { color: #4f46e5; background: #eef2ff; }
.mg-outil.rose:hover { color: #db2777; background: #fdf2f8; }
.mg-action { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; border: 0; background: none; font: 500 12px/16px var(--police); color: #4b5563; cursor: pointer; transition: color .15s, background-color .15s; }
.mg-action.indigo:hover { color: #4f46e5; background: #eef2ff; }
.mg-action.rouge:hover { color: #ef4444; background: #fef2f2; }

/* ── Dupliquer : fantômes, état de la barre, choix des liaisons ── */
.fantome { opacity: .6; pointer-events: none !important; }
.fantome * { pointer-events: none !important; }
.cb-placement { color: #4f46e5; font-weight: 500; font-size: 10px; }
.dup-voile { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.3); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dup-boite { background: #fff; border-radius: 16px; box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); width: 100%; max-width: 24rem; margin: 0 16px; overflow: hidden; font-family: var(--police); }
.dup-boite p { margin: 0; }
.dup-tete { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; }
.dup-picto { width: 36px; height: 36px; border-radius: 12px; background: #e0e7ff; color: #6366f1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dup-titre { font-size: 14px; line-height: 20px; font-weight: 600; color: #111827; }
.dup-texte { font-size: 12px; line-height: 16px; color: #6b7280; margin-top: 2px !important; }
.dup-actions { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 20px; }
.dup-actions button { font-family: inherit; cursor: pointer; transition: background-color .15s, color .15s; }
.dup-oui { width: 100%; padding: 8px 16px; border-radius: 12px; border: 0; background: #4f46e5; color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; }
.dup-oui:hover { background: #4338ca; }
.dup-non { width: 100%; padding: 8px 16px; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; color: #374151; font-size: 14px; line-height: 20px; font-weight: 500; }
.dup-non:hover { background: #f9fafb; }
.dup-annuler { width: 100%; padding: 6px 16px; border: 0; background: none; color: #6b7280; font-size: 12px; line-height: 16px; }
.dup-annuler:hover { color: #374151; }
/* Copie en attente (bouton Coller de la barre) et message d'information */
.cb-clip { display: flex; align-items: center; height: 28px; border-radius: 6px; background: #f0f4ff; color: #0028c2; }
.cb-clip-coller { display: flex !important; align-items: center; gap: 4px; padding: 0 4px 0 8px !important; height: 100%; font-size: 11px; font-weight: 500; color: inherit !important; }
.cb-clip-coller:hover { text-decoration: underline; }
.cb-clip-vider { padding: 0 4px !important; height: 100%; opacity: .6; color: inherit !important; display: flex !important; align-items: center; }
.cb-clip-vider:hover { opacity: 1; }
.cb-etat-l.indigo { color: #4f46e5; }

/* ── Panneau d'édition d'un équipement (NodeEditPanel.tsx) ── */
.en-panneau { width: 580px; max-width: 100vw; height: 100%; background: #fff; border-left: 1px solid #e5e7eb; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); font-family: var(--police); }
.en-panneau p { margin: 0; }
.en-panneau button { font-family: inherit; cursor: pointer; }
.en-tete { padding: 12px 16px 0; border-bottom: 1px solid #f3f4f6; }
.en-haut { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.en-vignette { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.en-vignette img { width: 100%; height: 100%; object-fit: cover; }
.en-textes { flex: 1; min-width: 0; }
.en-surtitre { font-size: 9px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px !important; }
.en-nom { display: flex; align-items: center; gap: 6px; text-align: left; width: 100%; border: 0; background: none; padding: 0; }
.en-nom-texte { font-size: 14px; font-weight: 700; color: #111827; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.en-nom-crayon { color: #9ca3af; opacity: 0; transition: opacity .15s; flex-shrink: 0; }
.en-nom:hover .en-nom-crayon { opacity: 1; }
.en-nom-saisie { width: 100%; font: 700 14px/1.25 var(--police); color: #111827; background: transparent; border: 0; border-bottom: 2px solid #818cf8; outline: none; padding: 0; }
.en-marque { font-size: 11px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px !important; }
.en-logo { width: 36px; height: 36px; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1); border: 1px solid #f3f4f6; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; margin-top: 2px; }
.en-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.en-fermer { padding: 6px; border: 0; background: none; border-radius: 8px; color: #9ca3af; display: flex; flex-shrink: 0; margin-top: 2px; transition: background-color .15s; }
.en-fermer:hover { background: #f3f4f6; }
.en-onglets { display: flex; flex-wrap: wrap; row-gap: 2px; margin-bottom: -1px; }
.en-onglet { padding: 8px 12px; font-size: 12px; line-height: 16px; font-weight: 500; border: 0; border-bottom: 2px solid transparent; background: none; color: #6b7280; white-space: nowrap; transition: color .15s, border-color .15s; }
.en-onglet:hover { color: #374151; border-bottom-color: #e5e7eb; }
.en-onglet.actif { border-bottom-color: #6366f1; color: #4f46e5; }
.en-compte { margin-left: 6px; padding: 2px 6px; border-radius: 9999px; font-size: 9px; font-weight: 700; background: #f3f4f6; color: #6b7280; }
.en-onglet.actif .en-compte { background: #e0e7ff; color: #4f46e5; }
.en-alerte { margin-left: 4px; display: inline-block; width: 6px; height: 6px; border-radius: 9999px; background: #ef4444; vertical-align: middle; }
.en-corps { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px; }
.en-pied { padding: 12px 16px; border-top: 1px solid #f3f4f6; background: rgb(249 250 251 / .6); flex-shrink: 0; }
.en-pied > * + * { margin-top: 8px; }
.en-appliquer { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; font-size: 14px; line-height: 20px; font-weight: 600; background: #4f46e5; color: #fff; border: 0; border-radius: 12px; box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05); transition: all .15s; }
.en-appliquer:hover { background: #4338ca; } .en-appliquer:active { transform: scale(.98); }
.en-actualiser { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; font-size: 12px; line-height: 16px; font-weight: 600; color: #4f46e5; background: #fff; border: 1px solid #c7d2fe; border-radius: 12px; transition: all .15s; }
.en-actualiser:hover { background: #eef2ff; } .en-actualiser:active { transform: scale(.98); }
.en-section { border: 1px solid #f3f4f6; border-radius: 12px; margin-bottom: 12px; }
.en-section-tete { width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgb(249 250 251 / .8); border: 0; text-align: left; transition: background-color .15s; }
.en-section-tete:hover { background: rgb(243 244 246 / .8); }
.en-chevron, .en-section-ic { color: #9ca3af; flex-shrink: 0; display: flex; }
.en-section-titre { font-size: 12px; line-height: 16px; font-weight: 600; color: #374151; }
.en-section-corps { padding: 16px; background: #fff; }
.en-section-corps > * + * { margin-top: 12px; }
.en-libelle { display: block; font-size: 10px; line-height: 15px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.en-requis { color: #ef4444; margin-left: 2px; }
.en-erreur { font-size: 10px; color: #ef4444; margin-top: 4px !important; }
.en-input { width: 100%; padding: 8px 12px; font: 14px/20px var(--police); background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; color: #1f2937; outline: none; transition: border-color .15s, box-shadow .15s; }
.en-input:focus { box-shadow: 0 0 0 2px #a5b4fc; border-color: #818cf8; }
.en-input::placeholder { color: #d1d5db; }
.en-input.desactive { color: #9ca3af; cursor: not-allowed; }
.en-input.erreur { border-color: #fca5a5; }
.en-zone { resize: none; }
.en-grille { display: grid; gap: 12px; }
.en-grille.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .en-grille.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.en-mdp { position: relative; } .en-input.mdp { padding-right: 40px; }
.en-oeil { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 0; color: #9ca3af; display: flex; }
.en-oeil:hover { color: #4b5563; }
.en-case { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: #4b5563; }
.en-case.cliquable, .en-case.nc { cursor: pointer; }
.en-case.nc { color: #6b7280; margin-top: 8px !important; }
.en-check { width: 14px; height: 14px; margin: 0; accent-color: #4f46e5; }
.en-check.rouge { accent-color: #dc2626; }
.en-check:disabled { opacity: .6; }
.en-deduit { font-size: 10px; font-weight: 500; color: #4f46e5; background: #eef2ff; padding: 2px 6px; border-radius: 4px; }
.en-hint { font-size: 11px; line-height: 1.375; color: #6b7280; }
.en-section-corps > .en-hint.moins { margin-top: 6px; }
.en-hint.mt1 { margin-top: 4px !important; }
.en-lecture { padding: 8px 12px; font-size: 14px; line-height: 20px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; color: #4b5563; }
.en-zones { border-radius: 8px; background: #eef2ff; border: 1px solid #e0e7ff; padding: 8px 12px; }
.en-zones > * + * { margin-top: 6px; }
.en-zones-titre { font-size: 10px; font-weight: 600; color: #6366f1; text-transform: uppercase; letter-spacing: .025em; }
.en-zones-ligne { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.en-zones-niveau { color: #6b7280; } .en-zones-nom { font-weight: 500; color: #1f2937; }
.en-pile > * + * { margin-top: 6px; }
.en-ligne { display: flex; gap: 6px; }
.en-nouvelle-marque { width: 100%; padding: 10px 12px; font: 500 16px/24px var(--police); background: #fff; border: 2px solid #a5b4fc; border-radius: 8px; color: #111827; outline: none; }
.en-nouvelle-marque:focus { border-color: #6366f1; box-shadow: 0 0 0 2px #c7d2fe; }
.en-creer { flex: 1; padding: 6px 10px; font-size: 12px; font-weight: 500; border-radius: 8px; border: 0; background: #4f46e5; color: #fff; }
.en-creer:hover { background: #4338ca; } .en-creer:disabled { opacity: .5; }
.en-annuler { padding: 6px 10px; font-size: 12px; font-weight: 500; border-radius: 8px; border: 1px solid #e5e7eb; background: none; color: #6b7280; }
.en-annuler:hover { background: #f9fafb; }
.en-non-repris { font-size: 13px; color: #6b7280; background: #f9fafb; border: 1px dashed #e5e7eb; border-radius: 12px; padding: 16px; }

/* ── Onglet Ports du panneau d'édition (PortsTab / PortSection / PortRow) ── */
.po-ia { margin-bottom: 12px; }
.po-ia-bouton { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; font-size: 12px; font-weight: 500; border: 1px dashed #c7d2fe; border-radius: 12px; background: none; color: #4f46e5; transition: background-color .15s; }
.po-ia-bouton:hover { background: #eef2ff; } .po-ia-bouton:disabled { opacity: .4; cursor: not-allowed; background: none; }
.po-ia-requis { margin-left: 4px; color: #9ca3af; }
.po-barre { margin-bottom: 12px; background: #111827; border-radius: 12px; overflow: hidden; }
.po-barre-tete { display: flex; align-items: center; gap: 8px; padding: 10px 12px 4px; }
.po-barre-titre { font-size: 12px; font-weight: 700; color: #fff; flex: 1; }
.po-barre-x { padding: 2px; border: 0; background: none; color: #9ca3af; border-radius: 4px; display: flex; } .po-barre-x:hover { color: #fff; }
.po-barre-hint { padding: 0 12px 8px; }
.po-renommer { display: flex; align-items: center; gap: 8px; padding: 0 12px 8px; }
.po-renommer-saisie { flex: 1; font-size: 12px; padding: 6px 8px; background: #1f2937; border: 1px solid #4b5563; border-radius: 8px; color: #fff; outline: none; }
.po-renommer-saisie::placeholder { color: #6b7280; } .po-renommer-saisie:focus { border-color: #818cf8; }
.po-renommer-ok { font-size: 10px; font-weight: 500; color: #818cf8; padding: 4px 8px; border-radius: 8px; border: 0; background: none; }
.po-renommer-ok:hover { color: #a5b4fc; background: #1f2937; }
.po-renommer-annuler { font-size: 10px; color: #6b7280; padding: 4px; border: 0; background: none; border-radius: 4px; } .po-renommer-annuler:hover { color: #d1d5db; }
.po-actions { display: flex; align-items: center; gap: 4px; padding: 0 8px 10px; flex-wrap: wrap; }
.po-action { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 500; color: #e5e7eb; padding: 4px 8px; border-radius: 8px; border: 0; background: none; white-space: nowrap; transition: background-color .15s; }
.po-action:hover { background: #374151; } .po-action.actif { background: #4f46e5; color: #fff; }
.po-espace { flex: 1; }
.po-icone { padding: 6px; color: #d1d5db; border: 0; background: none; border-radius: 8px; display: flex; transition: background-color .15s, color .15s; }
.po-icone:hover { color: #fff; background: #374151; }
.po-icone.rouge { color: #f87171; } .po-icone.rouge:hover { color: #fca5a5; background: rgb(127 29 29 / .3); }
.po-conteneur { position: relative; }
.po-lasso { position: fixed; background: rgba(99,102,241,.07); border: 1.5px solid rgba(99,102,241,.45); border-radius: 4px; pointer-events: none; z-index: 9999; }
.po-section { border: 1px solid #f3f4f6; border-radius: 12px; margin-bottom: 12px; }
.po-section-tete { display: flex; align-items: center; padding: 10px 12px; background: rgb(249 250 251 / .8); gap: 8px; }
.po-case { width: 14px; height: 14px; margin: 0; flex-shrink: 0; cursor: pointer; accent-color: #4f46e5; }
.po-section-titre-bouton { display: flex; align-items: center; gap: 6px; flex: 1; text-align: left; min-width: 0; border: 0; background: none; padding: 0; }
.po-section-titre { font-size: 12px; font-weight: 600; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-section-compte { margin-left: 6px; padding: 2px 6px; background: #e0e7ff; color: #4f46e5; border-radius: 9999px; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.po-ajouter { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 500; color: #4f46e5; padding: 4px 8px; border-radius: 8px; border: 0; background: none; flex-shrink: 0; transition: background-color .15s, color .15s; }
.po-ajouter:hover { color: #3730a3; background: #eef2ff; } .po-ajouter.actif { background: #e0e7ff; color: #4338ca; }
.po-section-corps { background: #fff; padding: 4px; }
.po-vide { text-align: center; padding: 16px 0; } .po-vide p { font-size: 12px; color: #9ca3af; }
.po-vide-ajouter { margin: 8px auto 0; font-size: 12px; color: #4f46e5; display: flex; align-items: center; gap: 4px; border: 0; background: none; }
.po-masse { padding: 12px; background: rgb(238 242 255 / .6); border-top: 1px solid #e0e7ff; }
.po-masse > * + * { margin-top: 8px; }
.po-masse-titre { font-size: 10px; font-weight: 600; color: #4338ca; text-transform: uppercase; letter-spacing: .05em; }
.po-masse-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.po-masse-libelle { display: block; font-size: 10px; color: #6b7280; margin-bottom: 2px; } .po-masse-libelle.mb { margin-bottom: 4px; }
.po-masse-input { width: 100%; font: 12px var(--police); padding: 6px 8px; border: 1px solid #c7d2fe; border-radius: 8px; background: #fff; outline: none; }
.po-masse-input.centre { text-align: center; } .po-masse-input:focus { box-shadow: 0 0 0 1px #818cf8; }
.po-masse-dirs { display: flex; gap: 6px; }
.po-masse-dir { flex: 1; font-size: 10px; padding: 4px 0; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; color: #4b5563; font-weight: 500; transition: all .15s; }
.po-masse-dir:hover { border-color: #a5b4fc; } .po-masse-dir.actif { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.po-masse-pied { display: flex; gap: 8px; padding-top: 4px; }
.po-masse-creer { flex: 1; font-size: 12px; font-weight: 600; background: #4f46e5; color: #fff; padding: 6px 12px; border-radius: 8px; border: 0; } .po-masse-creer:hover { background: #4338ca; }
.po-masse-annuler { font-size: 12px; color: #6b7280; padding: 6px 12px; border-radius: 8px; border: 1px solid #e5e7eb; background: none; } .po-masse-annuler:hover { background: #f3f4f6; }
.po-ligne { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; border-top: 3px solid transparent; transition: all .15s; }
.po-ligne:hover { background: #f9fafb; } .po-ligne.coche { background: #eef2ff; }
.po-ligne.survol { border-top-color: #6366f1; margin-top: -1px; }
.po-ligne.glisse { opacity: .4; transform: scale(.98); background: #eef2ff; box-shadow: inset 0 0 0 1px #a5b4fc; }
.po-poignee { flex-shrink: 0; display: inline-flex; cursor: grab; color: #d1d5db; } .po-ligne:hover .po-poignee { color: #6b7280; }
.po-poignee svg { pointer-events: none; }
.po-nom { width: 144px; min-width: 0; font: 12px var(--police); color: #374151; background: transparent; border: 0; border-bottom: 1px solid transparent; padding: 2px 0; outline: none; }
.po-nom:hover { border-bottom-color: #e5e7eb; } .po-nom:focus { border-bottom-color: #818cf8; }
.po-dir { flex-shrink: 0; display: flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 500; border: 0; transition: opacity .15s; }
.po-dir:hover { opacity: .8; }
.po-dir.in { background: #eff6ff; color: #2563eb; } .po-dir.out { background: #f0fdf4; color: #16a34a; } .po-dir.both { background: #f5f3ff; color: #7c3aed; }
.po-signal { flex-shrink: 0; display: flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 600; border: 0; transition: opacity .15s; }
.po-signal:hover { opacity: .8; }
.po-point { width: 8px; height: 8px; border-radius: 9999px; flex-shrink: 0; } .po-point.petit { width: 6px; height: 6px; } .po-point.indigo { width: 6px; height: 6px; background: #818cf8; }
.po-conn-zone { flex: 1; min-width: 0; }
.po-conn { width: 100%; text-align: left; font-size: 10px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 6px; border-radius: 4px; border: 1px solid transparent; background: none; transition: all .15s; }
.po-conn:hover { color: #4b5563; border-color: #e5e7eb; }
.po-outils { display: flex; align-items: center; gap: 2px; opacity: 0; transition: opacity .15s; flex-shrink: 0; }
.po-ligne:hover .po-outils { opacity: 1; }
.po-outil { padding: 4px; border-radius: 4px; border: 0; background: none; color: #9ca3af; display: flex; transition: all .15s; }
.po-outil:hover { background: #f3f4f6; color: #4b5563; } .po-outil.rouge:hover { background: #fef2f2; color: #ef4444; }
.po-menu { position: fixed; z-index: 9999; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); overflow: hidden; font-family: var(--police); }
.po-menu button { font-family: inherit; cursor: pointer; }
.po-menu p { margin: 0; }
.po-menu.w44 { width: 176px; } .po-menu.w48 { width: 192px; } .po-menu.w52 { width: 208px; }
.po-menu-liste { max-height: 192px; overflow-y: auto; padding: 4px 0; } .po-menu-liste.haute { max-height: 224px; padding: 0; }
.po-menu-signal, .po-menu-item { width: 100%; text-align: left; display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 6px 12px; border: 0; background: none; color: #374151; transition: background-color .15s, color .15s; }
.po-menu-signal:hover, .po-menu-item:hover { background: #eef2ff; color: #4338ca; }
.po-menu-item.actif { color: #4f46e5; font-weight: 500; }
.po-menu-dir { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12px; text-align: left; border: 0; background: none; color: #374151; transition: background-color .15s; }
.po-menu-dir:hover { background: #f9fafb; } .po-menu-dir.actif { font-weight: 600; color: #4f46e5; }
.po-menu-dir-ic { color: #9ca3af; display: flex; } .po-menu-dir.actif .po-menu-dir-ic { color: #6366f1; }
.po-coche { margin-left: auto; color: #6366f1; }
.po-conn-haut { padding: 6px; border-bottom: 1px solid #f3f4f6; }
.po-conn-saisie { width: 100%; font: 12px var(--police); padding: 4px 8px; border: 1px solid #e5e7eb; border-radius: 8px; outline: none; }
.po-conn-saisie:focus { box-shadow: 0 0 0 1px #a5b4fc; }
.po-menu-groupe { padding: 6px 12px 2px; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.po-menu-groupe.suggere { padding-top: 8px; color: #6366f1; }
.po-menu-sep { height: 1px; background: #f3f4f6; margin: 4px 8px; }

/* ── Onglet Réseau (ReseauTab, VLANTab, PortVlanRow, VlanProfileMenu) ── */
.re-pile > * + * { margin-top: 20px; }
.re-bloc > * + * { margin-top: 12px; }
.re-titre { margin: 0; font-size: 10px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; }
.re-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.re-tete-droite { display: flex; align-items: center; gap: 12px; }
.re-reinit, .re-ajouter { display: flex; align-items: center; gap: 4px; font: 500 12px/16px var(--police); border: 0; background: none; padding: 0; transition: color .15s; }
.re-reinit { color: #9ca3af; } .re-reinit:hover { color: #ef4444; }
.re-ajouter { color: #4f46e5; } .re-ajouter:hover { color: #4338ca; }
.re-vide { text-align: center; padding: 24px 0; border: 1px dashed #e5e7eb; border-radius: 12px; }
.re-vide-1 { font-size: 12px; color: #9ca3af; } .re-vide-2 { font-size: 10px; color: #d1d5db; margin-top: 2px !important; }
.re-liste > * + * { margin-top: 6px; }
.re-vlan { border-radius: 12px; border: 1px solid; overflow: hidden; }
.re-vlan-tete { display: flex; align-items: center; gap: 8px; padding: 8px; }
.re-couleur { width: 28px; height: 28px; border-radius: 8px; cursor: pointer; border: 0; padding: 0; flex-shrink: 0; background: none; }
.re-vid { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.re-vid-lib { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.re-vid-saisie { width: 56px; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; border: 1px solid #e5e7eb; border-radius: 4px; padding: 2px 4px; background: #fff; }
.re-nom { flex: 1; min-width: 0; font: 600 12px/16px var(--police); border: 1px solid #e5e7eb; border-radius: 4px; padding: 2px 8px; background: #fff; }
.re-compte { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 9999px; flex-shrink: 0; }
.re-deplier { padding: 4px; border-radius: 4px; border: 0; background: none; color: #9ca3af; display: flex; flex-shrink: 0; } .re-deplier:hover { background: rgb(255 255 255 / .6); }
.re-suppr { padding: 4px; border: 0; background: none; color: #d1d5db; display: flex; flex-shrink: 0; } .re-suppr:hover { color: #f87171; }
.re-vlan-corps { padding: 12px; border-top: 1px solid; background: #fff; }
.re-vlan-corps > * + * { margin-top: 10px; }
.en-zone.petit { font-size: 12px; } .en-grille.serre { gap: 8px; }
.re-assign { position: relative; }
.re-sel { font-size: 10px; color: #6366f1; font-weight: 500; }
.re-barre { margin-bottom: 8px; display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: #1e1b4b; border-radius: 8px; flex-wrap: wrap; }
.re-barre-mode { font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 6px; border: 0; background: #3730a3; color: #e0e7ff; } .re-barre-mode:hover { background: #4338ca; }
.re-barre-sep { width: 1px; height: 12px; background: #4338ca; margin: 0 2px; }
.re-barre-vlan { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px; border: 0; }
.re-pt { width: 6px; height: 6px; border-radius: 9999px; flex-shrink: 0; }
.re-barre-x { margin-left: auto; font-size: 10px; color: #818cf8; border: 0; background: none; } .re-barre-x:hover { color: #c7d2fe; }
.re-table-cadre { border: 1px solid #f3f4f6; border-radius: 12px; overflow: hidden; }
.re-table { width: 100%; border-collapse: collapse; }
.re-table thead tr { background: #f9fafb; border-bottom: 1px solid #f3f4f6; }
.re-table th { text-align: left; padding: 8px; font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; }
.re-table th.g { padding: 8px 12px; } .re-table th.m { width: 96px; }
.re-table tbody tr + tr { border-top: 1px solid #f9fafb; }
.re-table tbody tr.choisi { box-shadow: inset 0 0 0 1px #a5b4fc; }
.re-table td.c1 { padding: 6px 12px; } .re-table td.c2, .re-table td.c3 { padding: 6px 8px; }
.re-port { display: flex; align-items: center; gap: 6px; }
.re-cote { width: 6px; height: 6px; border-radius: 9999px; flex-shrink: 0; } .re-cote.gauche { background: #60a5fa; } .re-cote.droite { background: #fb923c; }
.re-port-nom { font-size: 12px; font-weight: 500; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.re-select { font: 11px var(--police); border: 1px solid #e5e7eb; border-radius: 4px; padding: 2px 6px; width: 100%; background: #fff; color: #374151; }
.re-tags { display: flex; flex-wrap: wrap; gap: 2px; }
.re-tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; border: 1px solid; transition: all .15s; }
.re-non { font-size: 11px; color: #d1d5db; }
.re-profil { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.re-profil-bouton { display: flex; align-items: center; gap: 4px; font: 500 12px/16px var(--police); color: #6b7280; border: 0; background: none; padding: 0; } .re-profil-bouton:hover { color: #4f46e5; }
.re-flash { font-size: 10px; color: #16a34a; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.re-profil-menu { position: absolute; z-index: 50; top: 100%; margin-top: 4px; right: 0; width: 288px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); padding: 4px 0; }
.re-profil-titre { padding: 6px 12px 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: #9ca3af; }
.re-profil-vide { padding: 8px 12px; font-size: 12px; color: #9ca3af; }
.re-profil-item { width: 100%; text-align: left; padding: 6px 12px; border: 0; background: none; } .re-profil-item:hover { background: #f9fafb; }
.re-profil-item.ligne { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5563; } .re-profil-item:disabled { opacity: .4; }
.re-profil-l1 { display: flex; align-items: center; gap: 8px; }
.re-profil-nom { font-size: 12px; font-weight: 500; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.re-profil-diff { font-size: 10px; color: #9ca3af; flex-shrink: 0; }
.re-profil-l2 { display: flex; align-items: center; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.re-profil-v { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: #6b7280; }
.re-profil-carre { width: 8px; height: 8px; border-radius: 2px; }
.re-profil-pied { border-top: 1px solid #f3f4f6; margin-top: 4px; padding-top: 4px; }

/* ── Onglet PoE (PoETab, PoEPortRow) ── */
.pe-pile > * + * { margin-top: 12px; }
.pe-tete { display: flex; align-items: center; justify-content: space-between; }
.pe-resume { font-size: 10px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-budget { width: 100%; font: 14px/20px var(--police); border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 10px; background: #fff; color: #374151; }
.pe-slots { font-size: 10px; color: #9ca3af; margin-top: 4px !important; }
.pe-aucun { font-size: 11px; color: #d1d5db; font-style: italic; }
.pe-collant { position: sticky; top: 0; z-index: 20; }
.pe-collant::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; background: #fff; }
.po-barre.ombre { box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); margin-bottom: 0; }
.pe-ligne-roles { display: flex; align-items: center; gap: 4px; padding: 0 8px 8px; flex-wrap: wrap; }
.pe-ligne-norme { display: flex; align-items: center; gap: 6px; padding: 0 12px 10px; flex-wrap: wrap; }
.pe-lib { font-size: 10px; color: #6b7280; padding: 0 4px; } .pe-lib.ml { margin-left: 4px; padding: 0; }
.pe-sombre { font: 10px var(--police); background: #1f2937; border: 1px solid #4b5563; border-radius: 8px; padding: 4px 6px; color: #fff; outline: none; }
.pe-sombre:focus { border-color: #818cf8; } .pe-sombre.w { width: 64px; } .pe-sombre::placeholder { color: #6b7280; } .pe-sombre:disabled { opacity: .4; }
.po-renommer-ok:disabled { opacity: .4; }
.pe-cadre { position: relative; border: 1px solid #f3f4f6; border-radius: 8px; overflow: hidden; }
.pe-table { width: 100%; border-collapse: collapse; }
.pe-table thead tr { background: #f9fafb; }
.pe-table th { padding: 6px 8px; text-align: left; font-size: 10px; font-weight: 500; color: #9ca3af; text-transform: uppercase; letter-spacing: .025em; }
.pe-table td { padding: 6px 8px; }
.pe-table .pe-c0 { padding: 6px 0 6px 12px; width: 24px; }
.pe-table tbody tr + tr { border-top: 1px solid #f9fafb; }
.pe-table tr.alerte { background: rgb(254 242 242 / .6); } .pe-table tr.choisi { background: rgb(238 242 255 / .7); }
.pe-norme-zone { display: flex; align-items: center; gap: 4px; }
.pe-norme { font-size: 9px; font-weight: 700; padding: 2px 4px; border-radius: 4px; flex-shrink: 0; }
.pe-norme.deduite { font-weight: 500; background: #f3f4f6; color: #6b7280; }
.re-select.pe-classe { width: 4.5rem; flex-shrink: 0; padding: 2px 4px; }
.pe-watts { font: 11px var(--police); border: 1px solid #e5e7eb; border-radius: 4px; padding: 2px 6px; width: 64px; background: #fff; color: #374151; }
.pe-watts.alerte { border-color: #fca5a5; }
.pe-issue { padding: 0 12px 6px !important; }
.pe-issue p { font-size: 10px; color: #b91c1c; display: flex; align-items: flex-start; gap: 4px; }
.pe-jauge { display: flex; align-items: center; gap: 8px; }
.pe-jauge-barre { flex: 1; height: 6px; border-radius: 9999px; background: #f3f4f6; overflow: hidden; }
.pe-jauge-plein { height: 100%; border-radius: 9999px; transition: all .15s; }
.pe-jauge-val { font-size: 11px; font-weight: 500; flex-shrink: 0; }
.pe-depasse { font-size: 11px; color: #dc2626; display: flex; align-items: flex-start; gap: 4px; }

/* ── Onglet Audio (AudioTab, AudioPortRow, AudioTapsEditor) ── */
.pe-tete.gap { gap: 8px; }
.au-pile > * + * { margin-top: 8px; } .au-pile.serre > * + * { margin-top: 6px; }
.au-aucun { font-size: 11px; color: #9ca3af; font-style: italic; }
.au-tous { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #6b7280; cursor: pointer; }
.au-tous.petit { font-size: 10px; color: #9ca3af; } .au-tous.petit .po-case { width: 12px; height: 12px; }
.au-groupe { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 8px; padding: 6px 8px; }
.au-groupe-lib { font-size: 10px; font-weight: 500; color: #6b7280; }
.au-petit { font: 10px var(--police); border: 1px solid #e5e7eb; border-radius: 4px; padding: 4px 6px; background: #fff; color: #374151; } .au-petit.w20 { width: 80px; }
.au-appliquer { font-size: 10px; font-weight: 500; color: #4f46e5; padding: 4px 8px; border-radius: 4px; border: 0; background: none; } .au-appliquer:hover { background: #eef2ff; }
.pe-table.au tr.absorbe { background: rgb(249 250 251 / .7); }
.re-port-nom.gris { color: #9ca3af; }
.au-pont-texte { font-size: 11px; color: #6b7280; } .au-pont-nom { font-weight: 500; color: #374151; }
.au-manuel { font-size: 9px; font-weight: 700; padding: 2px 4px; border-radius: 4px; flex-shrink: 0; border: 1px dashed #d1d5db; background: none; color: #6b7280; }
.au-manuel:hover { border-color: #818cf8; color: #4f46e5; }
.au-auto { font-size: 9px; font-weight: 700; padding: 2px 4px; border-radius: 4px; flex-shrink: 0; background: #eef2ff; color: #4f46e5; }
.au-pont { display: inline-flex; align-items: center; gap: 2px; font-size: 9px; font-weight: 700; padding: 2px 4px; border-radius: 4px; flex-shrink: 0; background: #ede9fe; color: #6d28d9; }
.au-pont-x { margin-left: 2px; border: 0; background: none; padding: 0; color: inherit; font-size: 9px; } .au-pont-x:hover { color: #ef4444; }
.au-bidi { font-size: 9px; font-weight: 700; padding: 2px 4px; border-radius: 4px; flex-shrink: 0; background: #f3f4f6; color: #6b7280; }
.pe-watts.ambre { border-color: #fcd34d; } .pe-watts.w14 { width: 56px; }
.au-cablage { margin-top: 4px; font: 10px var(--police); border: 1px solid #e5e7eb; border-radius: 4px; padding: 2px 4px; width: 56px; background: #fff; color: #374151; display: block; }
.au-charge { font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.au-ligne-hp { display: block; font-size: 10px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.au-note { font-size: 10px; color: #9ca3af; }
.en-hint .gras { font-weight: 600; } .en-hint .moyen { font-weight: 500; }
.au-prises { font-size: 10px; font-weight: 500; padding: 2px 6px; border-radius: 4px; border: 1px dashed #d1d5db; background: none; color: #9ca3af; transition: all .15s; }
.au-prises.pleine { border-style: solid; border-color: #c7d2fe; color: #4f46e5; background: #eef2ff; }
.au-editeur { padding: 8px !important; }
.au-prises-texte { font-size: 10px; color: #6b7280; line-height: 1.375; }
.au-prise { display: flex; align-items: center; gap: 4px; }
.au-mini { font: 10px var(--police); border: 1px solid #e5e7eb; border-radius: 4px; padding: 2px 4px; background: #fff; color: #374151; }
.au-mini.w14 { width: 56px; } .au-mini.w12 { width: 48px; } .au-mini.flex { flex: 1; min-width: 0; }
.au-defaut { display: flex; align-items: center; gap: 4px; font-size: 10px; color: #6b7280; cursor: pointer; flex-shrink: 0; }
.au-retirer { font-size: 10px; color: #9ca3af; padding: 0 4px; border: 0; background: none; flex-shrink: 0; } .au-retirer:hover { color: #ef4444; }
.au-ajouter-prise { font-size: 10px; font-weight: 500; color: #4f46e5; padding: 2px 6px; border-radius: 4px; border: 0; background: none; } .au-ajouter-prise:hover { background: #eef2ff; }

/* ── Onglet Caractéristiques (ConstructeurBlock, CoverageFields, CaracteristiquesTab) ── */
.ca-bloc { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #f3f4f6; }
.ca-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ca-titre { font-size: 12px; font-weight: 600; color: #374151; }
.ca-rechercher { flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 12px; font-weight: 500; color: #4f46e5; border: 1px solid #c7d2fe; border-radius: 8px; background: none; transition: background-color .15s; }
.ca-rechercher:hover { background: #eef2ff; } .ca-rechercher:disabled { opacity: .4; }
.ca-grille { display: grid; gap: 8px; } .ca-grille + .ca-grille { margin-top: 8px; }
.ca-grille.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ca-grille.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ca-input { width: 100%; padding: 6px 10px; font: 12px var(--police); background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; color: #374151; outline: none; }
.ca-input:focus { box-shadow: 0 0 0 1px #a5b4fc; } .ca-input::placeholder { color: #d1d5db; }
.ca-input.flex { flex: 1; }
.en-hint.bas { align-self: end; padding-bottom: 6px; }
.ca-couverture { margin-top: 8px; } .ca-couverture > * + * { margin-top: 8px; }
.ca-vide { text-align: center; padding: 32px 0; }
.ca-vide-1 { font-size: 12px; color: #9ca3af; margin-bottom: 4px !important; } .ca-vide-2 { font-size: 10px; color: #d1d5db; }
.ca-liste { margin-bottom: 12px; } .ca-liste > * + * { margin-top: 8px; }
.ca-grille.entete { padding: 0 4px; margin-bottom: 4px; }
.ca-ligne { display: flex; align-items: center; gap: 8px; }
.ca-suppr { padding: 4px; color: #d1d5db; opacity: 0; border: 0; background: none; display: flex; flex-shrink: 0; transition: all .15s; }
.ca-ligne:hover .ca-suppr { opacity: 1; } .ca-suppr:hover { color: #f87171; }
.ca-ajouter { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; font-size: 12px; font-weight: 500; color: #4f46e5; border: 1px dashed #c7d2fe; border-radius: 12px; background: none; transition: background-color .15s; }
.ca-ajouter:hover { background: #eef2ff; }

/* ── Onglets DMX et Boîtier (DmxTab, EnclosureTab) ── */
.dx-pile { font-size: 14px; } .dx-pile > * + * { margin-top: 20px; }
.dx-tete { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.dx-titre { margin: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: #6b7280; }
.dx-ajouter { display: inline-flex; align-items: center; gap: 4px; font: 12px var(--police); color: #4f46e5; border: 0; background: none; padding: 0; } .dx-ajouter:hover { text-decoration: underline; }
.dx-texte { font-size: 12px; color: #6b7280; }
.dx-liste > * + * { margin-top: 6px; }
.dx-ligne { display: flex; align-items: center; gap: 8px; }
.dx-input { border-radius: 4px; border: 1px solid #e5e7eb; background: #fff; padding: 4px 8px; font: 12px var(--police); color: #111827; outline: none; }
.dx-input:focus { border-color: #818cf8; } .dx-input.flex { flex: 1; } .dx-input.w20 { width: 80px; font-variant-numeric: tabular-nums; }
.dx-input.bloc { margin-top: 4px; width: 100%; display: block; } .dx-input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
.dx-gris { font-size: 12px; color: #9ca3af; } .dx-gris.ml { margin-left: 4px; }
.dx-suppr { color: #9ca3af; border: 0; background: none; padding: 0; display: flex; } .dx-suppr:hover { color: #ef4444; }
.dx-mode { font-size: 12px; color: #374151; }
.dx-patch { border-radius: 8px; border: 1px solid #e5e7eb; padding: 12px; } .dx-patch > * + * { margin-top: 12px; }
.dx-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dx-lib { font-size: 12px; color: #6b7280; }
.dx-univers { margin-top: 4px; padding: 4px 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #111827; }
.dx-rouge { color: #dc2626; }
.dx-note { font-size: 11px; color: #9ca3af; }
.dx-lien { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #4f46e5; text-decoration: none; } .dx-lien:hover { text-decoration: underline; }
.bx-pile { font-size: 14px; } .bx-pile > * + * { margin-top: 16px; }
.bx-carte { border-radius: 8px; border: 1px solid #e5e7eb; padding: 12px; } .bx-carte > * + * { margin-top: 4px; }
.bx-sur { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
.bx-rep { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; font-weight: 600; color: #111827; }
.bx-modele { color: #4b5563; } .bx-gris { color: #6b7280; } .bx-orphelin { color: #b45309; font-weight: 500; }
.bx-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.bx-bouton { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; border: 1px solid #d1d5db; padding: 6px 12px; font: 14px var(--police); color: #374151; background: none; text-decoration: none; }
.bx-bouton:hover { background: #f9fafb; }
.bx-bouton.plein { background: #4f46e5; border-color: #4f46e5; color: #fff; font-weight: 500; } .bx-bouton.plein:hover { background: #4338ca; }
.bx-bouton.indigo { color: #4338ca; }

/* ── Onglet Accessoires (LibraryPicker, AccessoiresTab) ── */
.en-hint.mb3 { margin-bottom: 12px; }
.ac-vide { text-align: center; padding: 32px 0; } .ac-vide.petit { padding: 24px 0; }
.ac-vide-1 { font-size: 12px; color: #9ca3af; margin-bottom: 4px !important; } .ac-vide-2 { font-size: 10px; color: #d1d5db; }
.ac-liste { margin-bottom: 12px; } .ac-liste > * + * { margin-top: 8px; }
.ac-carte { border-radius: 8px; border: 1px solid #f3f4f6; background: rgb(249 250 251 / .6); overflow: hidden; }
.ac-ligne { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.ac-vignette { width: 32px; height: 32px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #fff; border: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: center; }
.ac-vignette img, .ac-item-vignette img { width: 100%; height: 100%; object-fit: cover; }
.ac-gris { color: #d1d5db; } .ac-gris.petit { font-size: 10px; color: #9ca3af; }
.ac-textes { flex: 1; min-width: 0; }
.ac-nom { font-size: 12px; font-weight: 500; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-modele { font-size: 10px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-ports { font-size: 9px; padding: 2px 6px; border-radius: 9999px; background: #f3f4f6; color: #6b7280; font-weight: 500; flex-shrink: 0; }
.ac-watts { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.ac-watts-saisie { width: 56px; font: 11px var(--police); border: 1px solid #e5e7eb; border-radius: 4px; padding: 4px 6px; background: #fff; color: #374151; }
.ac-outil { padding: 4px; color: #d1d5db; border: 0; background: none; display: flex; flex-shrink: 0; opacity: 0; transition: all .15s; }
.ac-ligne:hover .ac-outil { opacity: 1; } .ac-outil:hover { color: #818cf8; } .ac-outil.rouge:hover { color: #f87171; }
.ac-outil.ambre { color: #f59e0b; opacity: 1; }
.ac-alim { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-top: 1px solid #f3f4f6; cursor: pointer; }
.ac-alim-case { width: 12px; height: 12px; margin: 0; accent-color: #6366f1; }
.ac-alim-texte { font-size: 10px; color: #6b7280; } .ac-alim-sinon { color: #d1d5db; }
.ac-slots { padding-top: 16px; border-top: 1px solid #f3f4f6; }
.ac-slots-titre { font-size: 10px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px !important; }
.ac-picker { border: 1px solid #e5e7eb; border-radius: 12px; padding: 8px; }
.ac-recherche { position: relative; margin-bottom: 8px; }
.ac-loupe { color: #d1d5db; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
.ac-recherche-saisie { width: 100%; padding: 6px 10px 6px 32px; font: 12px var(--police); background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; outline: none; }
.ac-recherche-saisie:focus { box-shadow: 0 0 0 1px #a5b4fc; } .ac-recherche-saisie::placeholder { color: #d1d5db; }
.ac-picker-liste { max-height: 224px; overflow-y: auto; } .ac-picker-liste > * + * { margin-top: 4px; }
.ac-picker-info { font-size: 10px; color: #d1d5db; text-align: center; padding: 12px 0; }
.ac-entete { padding: 2px 8px 0; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ac-entete.indigo { color: #4f46e5; } .ac-entete.vert { color: #059669; } .ac-entete.gris { color: #9ca3af; }
.ac-entete.sep { padding-top: 8px; margin-top: 4px; border-top: 1px solid #f3f4f6; }
.ac-item { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; border: 0; background: none; text-align: left; transition: background-color .15s; }
.ac-item:hover { background: #eef2ff; }
.ac-item-vignette { width: 24px; height: 24px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #fff; border: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: center; }
.ac-item-nom { font-size: 11px; font-weight: 500; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-item-modele { font-size: 9px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-compte { font-size: 9px; padding: 2px 6px; border-radius: 9999px; background: #eef2ff; color: #4f46e5; font-weight: 500; flex-shrink: 0; }
.ac-annuler { width: 100%; margin-top: 8px; padding: 6px 12px; font-size: 11px; font-weight: 500; color: #6b7280; border: 0; background: none; border-radius: 8px; } .ac-annuler:hover { background: #f9fafb; }
.ac-voile { position: fixed; inset: 0; z-index: 70; display: flex; justify-content: flex-end; background: rgba(0,0,0,.2); }
.ac-pile-hote { height: 100%; }

/* ── Onglet Exemplaires (GroupMembersTab) ── */
.gx-pad { padding: 16px; } .gx-pad.pile > * + * { margin-top: 16px; }
.gx-intro { border-radius: 12px; border: 1px solid #e5e7eb; padding: 16px; } .gx-intro > * + * { margin-top: 12px; }
.gx-intro-titre { font-size: 14px; font-weight: 600; color: #1f2937; }
.gx-intro-texte { font-size: 12px; color: #6b7280; line-height: 1.625; }
.gx-creer-ligne { display: flex; align-items: flex-end; gap: 8px; } .gx-w24 { width: 96px; }
.gx-champ { width: 100%; padding: 8px 12px; font: 14px/20px var(--police); background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; color: #1f2937; outline: none; }
.gx-champ:focus { box-shadow: 0 0 0 2px #a5b4fc; border-color: #818cf8; }
.gx-creer { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; font-size: 14px; font-weight: 600; background: #4f46e5; color: #fff; border: 0; border-radius: 8px; }
.gx-creer:hover { background: #4338ca; }
.gx-pile2 > * + * { margin-top: 8px; }
.gx-grille { display: grid; gap: 8px; } .gx-grille.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gx-grille.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gx-topo { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border-radius: 8px; border: 1px solid #e5e7eb; background: none; text-align: left; transition: background-color .15s; }
.gx-topo:hover { background: #f9fafb; } .gx-topo.actif { border-color: #818cf8; background: #eef2ff; }
.gx-topo-ic { margin-top: 2px; flex-shrink: 0; color: #9ca3af; } .gx-topo.actif .gx-topo-ic { color: #4f46e5; }
.gx-topo-titre { display: block; font-size: 12px; font-weight: 600; color: #374151; } .gx-topo.actif .gx-topo-titre { color: #4338ca; }
.gx-topo-sous { display: block; font-size: 10px; color: #6b7280; line-height: 1.375; margin-top: 2px; }
.gx-topo-hint { font-size: 10px; color: #6b7280; line-height: 1.375; }
.en-hint.gx-moins { margin-top: -8px !important; }
.gx-totaux { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; }
.gx-pastille { padding: 4px 8px; border-radius: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gx-pastille.indigo { background: #eef2ff; color: #4338ca; } .gx-pastille.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #f3f4f6; color: #4b5563; }
.gx-pastille.cyan { background: #ecfeff; color: #0e7490; } .gx-pastille.gris { background: #f3f4f6; color: #4b5563; } .gx-pastille.ambre { background: #fffbeb; color: #b45309; }
.gx-cadre { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.gx-table { width: 100%; font-size: 12px; border-collapse: collapse; }
.gx-table thead { background: #f9fafb; }
.gx-table th { padding: 8px; text-align: left; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; }
.gx-table th.w7 { width: 28px; padding: 8px 4px; } .gx-table th.w16 { width: 64px; }
.gx-table tbody tr { border-top: 1px solid #f3f4f6; } .gx-table tbody tr.retire { opacity: .45; }
.gx-table td { padding: 4px 8px; }
.gx-num { text-align: center; font-size: 10px; color: #9ca3af; font-variant-numeric: tabular-nums; padding: 4px !important; }
.gx-cellule { width: 100%; padding: 6px 8px; font: 12px var(--police); background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; color: #1f2937; outline: none; }
.gx-cellule:focus { box-shadow: 0 0 0 2px #a5b4fc; border-color: #818cf8; } .gx-cellule::placeholder { color: #d1d5db; }
.gx-cellule.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; } .gx-cellule.tab { font-variant-numeric: tabular-nums; }
.gx-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.gx-outil { padding: 4px; border-radius: 4px; border: 0; background: none; color: #9ca3af; display: flex; transition: all .15s; }
.gx-outil:hover { color: #374151; background: #f3f4f6; } .gx-outil.rouge:hover { color: #dc2626; background: #fef2f2; }
.gx-bas { display: flex; align-items: center; gap: 8px; }
.gx-champ.gx-n { width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.gx-ajouter { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; font-size: 12px; font-weight: 600; color: #4f46e5; border: 1px solid #c7d2fe; border-radius: 8px; background: none; } .gx-ajouter:hover { background: #eef2ff; }
.gx-renum { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; font-size: 12px; font-weight: 600; color: #4b5563; border: 1px solid #e5e7eb; border-radius: 8px; background: none; } .gx-renum:hover { background: #f9fafb; }
.gx-degrouper { width: 100%; padding: 8px 12px; font-size: 12px; font-weight: 600; color: #6b7280; border: 0; background: none; } .gx-degrouper:hover { color: #dc2626; }

/* ── Onglet Fichiers (FichiersTab) ── */
.fi-pile > * + * { margin-top: 16px; }
.fi-titre { font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px !important; }
.fi-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.fi-vignette { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid #e5e7eb; background: #f9fafb; }
.fi-vignette > img { width: 100%; height: 100%; object-fit: cover; }
.fi-badge { position: absolute; bottom: 4px; font-size: 9px; font-weight: 700; color: #fff; padding: 2px 6px; border-radius: 9999px; }
.fi-badge.cover { left: 4px; background: #fbbf24; } .fi-badge.facade { right: 4px; background: #0ea5e9; }
.fi-voile { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .15s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; }
.fi-vignette:hover .fi-voile { opacity: 1; }
.fi-bouton { font-size: 9px; padding: 2px 8px; border-radius: 9999px; font-weight: 500; border: 0; transition: all .15s; }
.fi-bouton.blanc { background: #fff; color: #1f2937; } .fi-bouton.blanc.ambre:hover { background: #fbbf24; color: #fff; } .fi-bouton.blanc.bleu:hover { background: #0ea5e9; color: #fff; }
.fi-bouton.ciel { background: #0ea5e9; color: #fff; } .fi-bouton.ciel:hover { background: #0284c7; }
.fi-bouton.clair { background: rgb(255 255 255 / .2); color: #fff; font-weight: 400; } .fi-bouton.clair:hover { background: #fff; color: #1f2937; } .fi-bouton.clair.rouge:hover { background: #ef4444; color: #fff; }
.fi-type-pastille { width: 100%; max-width: 110px; font: 9px var(--police); background: rgb(255 255 255 / .9); color: #374151; border-radius: 9999px; padding: 2px 6px; text-align: center; border: 0; }
.fi-doctype { position: absolute; top: 4px; left: 4px; font-size: 8px; font-weight: 500; background: rgb(255 255 255 / .9); color: #4b5563; padding: 2px 6px; border-radius: 9999px; max-width: calc(100% - 8px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-docs > * + * { margin-top: 6px; }
.fi-doc { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 12px; }
.fi-doc-ic { color: #9ca3af; flex-shrink: 0; }
.fi-doc-nom { flex: 1; font-size: 12px; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-type { flex-shrink: 0; font: 10px var(--police); border: 1px solid #e5e7eb; border-radius: 8px; padding: 4px 6px; background: #fff; color: #4b5563; max-width: 110px; }
.fi-ouvrir { padding: 4px; color: #9ca3af; display: flex; } .fi-ouvrir:hover { color: #4f46e5; }
.fi-suppr { padding: 4px; color: #d1d5db; border: 0; background: none; display: flex; opacity: 0; transition: all .15s; } .fi-doc:hover .fi-suppr { opacity: 1; } .fi-suppr:hover { color: #f87171; }
.fi-pointille { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; font-size: 12px; font-weight: 500; color: #4f46e5; border: 1px dashed #c7d2fe; border-radius: 12px; background: none; transition: background-color .15s; }
.fi-pointille:hover { background: #eef2ff; } .fi-pointille:disabled { opacity: .4; cursor: not-allowed; background: none; }
.fi-lien { border: 1px solid #c7d2fe; border-radius: 12px; padding: 12px; background: rgb(238 242 255 / .5); display: flex; flex-direction: column; gap: 8px; }
.fi-lien-tete { display: flex; align-items: center; justify-content: space-between; }
.fi-lien-titre { font-size: 10px; font-weight: 600; color: #4338ca; text-transform: uppercase; letter-spacing: .05em; }
.fi-lien-web { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 500; color: #4f46e5; border: 0; background: none; } .fi-lien-web:disabled { opacity: .4; }
.fi-lien-saisie { width: 100%; font: 12px var(--police); padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; outline: none; } .fi-lien-saisie:focus { box-shadow: 0 0 0 1px #a5b4fc; }
.fi-erreur { font-size: 10px; color: #ef4444; padding: 0 4px; }
.fi-lien-boutons { display: flex; gap: 8px; }
.fi-telecharger { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 500; background: #4f46e5; color: #fff; padding: 6px 12px; border-radius: 8px; border: 0; } .fi-telecharger:hover { background: #4338ca; } .fi-telecharger:disabled { opacity: .4; }
.fi-lien-seul { font-size: 12px; color: #4f46e5; border: 1px solid #c7d2fe; padding: 6px 12px; border-radius: 8px; background: none; white-space: nowrap; } .fi-lien-seul:hover { background: #eef2ff; } .fi-lien-seul:disabled { opacity: .4; }
.fi-lien-x { font-size: 12px; color: #9ca3af; padding: 6px 8px; border-radius: 8px; border: 0; background: none; display: flex; } .fi-lien-x:hover { background: #f3f4f6; }
.fi-depot { border: 2px dashed #e5e7eb; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: all .15s; }
.fi-depot:hover { border-color: #a5b4fc; background: #f9fafb; } .fi-depot.survol { border-color: #818cf8; background: #eef2ff; }
.fi-depot-ic { color: #9ca3af; } .fi-depot-texte { text-align: center; }
.fi-depot-1 { font-size: 14px; font-weight: 500; color: #374151; } .fi-parcourir { color: #4f46e5; text-decoration: underline; }
.fi-depot-2 { font-size: 10px; color: #9ca3af; margin-top: 2px !important; }
.fi-envoi { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4f46e5; }
.fi-tourne { width: 12px; height: 12px; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 9999px; animation: cb-tourne 1s linear infinite; display: inline-block; }
.fi-tourne.indigo { width: 16px; height: 16px; border-color: #818cf8; border-top-color: transparent; }

/* ── Historique des versions (VersionHistory.tsx) ── */
.historique { position: relative; height: 100vh; display: flex; background: #f9fafb; font-family: var(--police); }
.hi-apercu { position: relative; flex: 1; min-width: 0; }
.hi-cadre { width: 100%; height: 100%; border: 0; display: block; }
.hi-barre { position: absolute; top: 12px; left: 12px; z-index: 10; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: rgb(255 255 255 / .95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 12px; border: 1px solid #e5e7eb; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); }
.hi-retour { color: #6b7280; display: flex; } .hi-retour:hover { color: #1f2937; }
.hi-ic { color: #0035f5; }
.hi-nom { font-size: 14px; font-weight: 600; color: #111827; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-quand { font-size: 12px; color: #6b7280; }
.hi-lecture { font-size: 11px; padding: 2px 8px; border-radius: 9999px; background: #fffbeb; color: #b45309; }
.hi-panneau { width: 360px; flex-shrink: 0; height: 100%; display: flex; flex-direction: column; border-left: 1px solid #e5e7eb; background: #fff; }
.hi-panneau button { font-family: inherit; cursor: pointer; }
.hi-tete { padding: 12px 16px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; gap: 8px; }
.hi-titre { margin: 0; font-size: 14px; font-weight: 600; color: #111827; flex: 1; }
.hi-nommer { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #0035f5; border: 0; background: none; padding: 0; } .hi-nommer:hover { text-decoration: underline; }
.hi-notice { margin: 12px 16px 0; padding: 8px 12px; border-radius: 8px; font-size: 12px; display: flex; align-items: flex-start; gap: 8px; }
.hi-notice.ok { background: #f0fdf4; color: #166534; } .hi-notice.ko { background: #fef2f2; color: #991b1b; }
.hi-notice-texte { flex: 1; } .hi-notice button { border: 0; background: none; color: inherit; padding: 0; display: flex; }
.hi-naming { margin: 12px 16px 0; padding: 12px; border-radius: 8px; border: 1px solid #e5e7eb; } .hi-naming > * + * { margin-top: 8px; }
.hi-naming-texte { font-size: 12px; color: #4b5563; }
.hi-naming-saisie { width: 100%; font: 14px var(--police); padding: 6px 8px; border-radius: 4px; border: 1px solid #d1d5db; background: #fff; }
.hi-naming-boutons { display: flex; justify-content: flex-end; gap: 8px; }
.hi-naming-annuler { font-size: 12px; padding: 4px 8px; color: #6b7280; border: 0; background: none; }
.hi-naming-ok { font-size: 12px; padding: 4px 12px; border-radius: 4px; background: #0035f5; color: #fff; border: 0; } .hi-naming-ok:disabled { opacity: .5; }
.hi-liste { flex: 1; min-height: 0; overflow: auto; padding: 8px 0; }
.hi-chargement { padding: 24px 16px; color: #9ca3af; }
.hi-ligne { display: block; width: 100%; text-align: left; padding: 10px 16px; border: 0; border-left: 2px solid transparent; background: none; cursor: pointer; }
.hi-ligne.v { padding: 8px 16px; } .hi-ligne:hover { background: #f9fafb; } .hi-ligne.actif { border-left-color: #0035f5; background: rgb(240 244 255 / .6); }
.hi-ligne-titre { font-size: 14px; font-weight: 500; color: #111827; }
.hi-ligne-sous { font-size: 12px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-vide { padding: 16px; font-size: 12px; color: #9ca3af; margin: 0; }
.hi-jour { padding: 12px 16px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: #9ca3af; }
.hi-l1 { display: flex; align-items: center; gap: 8px; }
.hi-nomv { font-size: 11px; padding: 2px 6px; border-radius: 4px; background: #f0f4ff; color: #0028c2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.hi-type { font-size: 11px; padding: 2px 6px; border-radius: 4px; background: #f3f4f6; color: #4b5563; }
.hi-tag { margin-left: auto; opacity: 0; color: #9ca3af; border: 0; background: none; padding: 0; display: flex; } .hi-ligne:hover .hi-tag { opacity: 1; } .hi-tag:hover { color: #0035f5; }
.hi-bas { border-top: 1px solid #e5e7eb; max-height: 45%; display: flex; flex-direction: column; }
.hi-bas-titre { padding: 12px 16px 4px; font-size: 12px; font-weight: 600; color: #374151; }
.hi-diff { flex: 1; min-height: 0; overflow: auto; padding: 0 16px 8px; } .hi-diff > * + * { margin-top: 2px; }
.hi-diff-ligne { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 2px 0; cursor: pointer; } .hi-diff-ligne.ajoute { opacity: .7; cursor: default; }
.hi-diff-ligne input { margin: 0; } .hi-diff-vide { width: 13px; }
.hi-diff-nom { flex: 1; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-diff-statut { flex-shrink: 0; } .hi-diff-statut.rouge { color: #dc2626; } .hi-diff-statut.ambre { color: #d97706; } .hi-diff-statut.vert { color: #16a34a; }
.hi-gestes { padding: 12px 16px; border-top: 1px solid #f3f4f6; } .hi-gestes > * + * { margin-top: 8px; }
.hi-recuperer { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; padding: 6px 12px; border-radius: 8px; border: 1px solid #d1d5db; background: none; color: #374151; }
.hi-recuperer:hover { background: #f9fafb; } .hi-recuperer:disabled { opacity: .5; }
.hi-confirm > * + * { margin-top: 8px; } .hi-confirm-texte { margin: 0; font-size: 12px; color: #4b5563; }
.hi-confirm-boutons { display: flex; gap: 8px; }
.hi-annuler { flex: 1; font-size: 12px; padding: 6px 12px; border-radius: 8px; color: #4b5563; border: 0; background: none; } .hi-annuler:hover { background: #f3f4f6; }
.hi-restaurer { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; padding: 6px 12px; border-radius: 8px; background: #0035f5; color: #fff; border: 0; }
.hi-restaurer.plein { width: 100%; } .hi-restaurer:hover { background: #0028c2; } .hi-restaurer:disabled { opacity: .5; }

/* Bandeau « Connexion perdue » (absolute top-16 left-1/2 -translate-x-1/2 z-20 … bg-amber-50 text-amber-900 border-amber-200 text-xs shadow) */
.hl-bandeau { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: #fffbeb; color: #78350f; border: 1px solid #fde68a; font-size: 12px; line-height: 16px; box-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1); pointer-events: none; }
.hl-bandeau > svg { flex-shrink: 0; }

/* Palette : section Suggestions (SECTION_STYLES.suggest : emerald) */
.pal-suggest { color: #059669; } .pal-suggest .pal-trait { background: #34d399; } .pal-suggest .compte { background: #ecfdf5; }
.pal-retrait-suggest { border-left-color: #d1fae5; }
.pal-survol-suggest:hover { background: #ecfdf5; }

/* Remplacer la référence (ReplaceReferencePanel) */
.rr-voile { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.3); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); padding: 16px; }
.rr-carte { background: #fff; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); width: 100%; max-width: 768px; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.rr-carte button { font-family: inherit; cursor: pointer; }
.rr-tete { display: flex; align-items: center; gap: 12px; padding: 20px 20px 12px; flex-shrink: 0; }
.rr-picto { width: 36px; height: 36px; border-radius: 12px; background: #e0e7ff; color: #4f46e5; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rr-textes { min-width: 0; flex: 1; }
.rr-titre { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: #111827; }
.rr-sous { margin: 2px 0 0; font-size: 12px; line-height: 16px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-avant { font-weight: 500; color: #374151; } .rr-apres { font-weight: 500; color: #4f46e5; }
.rr-fermer { flex-shrink: 0; padding: 6px; border-radius: 8px; border: 0; background: none; color: #9ca3af; display: flex; transition: color .15s, background-color .15s; }
.rr-fermer:hover { color: #374151; background: #f3f4f6; }
.rr-pioche { flex: 1; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid #f3f4f6; overflow: hidden; background: #fff; }
.rr-pioche button { font-family: inherit; cursor: pointer; }
.rr-choix { padding: 0 20px 12px; flex-shrink: 0; display: flex; align-items: flex-start; gap: 12px; }
.rr-image { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; object-position: center; flex-shrink: 0; border: 1px solid #f3f4f6; }
.rr-nom { flex: 1; min-width: 0; }
.rr-etiquette { display: block; font-size: 10px; line-height: 15px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.rr-noms { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.rr-nom-choix { font-size: 11px; line-height: 16px; padding: 4px 8px; border-radius: 6px; border: 1px solid #e5e7eb; background: none; color: #4b5563; transition: background-color .15s; }
.rr-nom-choix:hover { background: #f9fafb; }
.rr-nom-choix.actif { border-color: #818cf8; background: #eef2ff; color: #4338ca; }
.rr-champ { width: 100%; box-sizing: border-box; font-size: 14px; line-height: 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 10px; color: #111827; font-family: inherit; }
.rr-champ:focus { outline: none; box-shadow: 0 0 0 1px #818cf8; }
.rr-changer { flex-shrink: 0; margin-top: 20px; font-size: 11px; line-height: 16px; font-weight: 500; color: #4f46e5; padding: 6px 10px; border-radius: 8px; border: 0; background: none; transition: background-color .15s; }
.rr-changer:hover { background: #eef2ff; }
.rr-compteurs { padding: 0 20px 12px; flex-shrink: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 10px; line-height: 15px; font-weight: 600; }
.rr-puce { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px; }
.rr-puce.indigo { color: #4338ca; background: #eef2ff; } .rr-puce.rouge { color: #b91c1c; background: #fef2f2; }
.rr-puce.ambre { color: #b45309; background: #fffbeb; } .rr-puce.vert { color: #047857; background: #ecfdf5; } .rr-puce.gris { color: #4b5563; background: #f3f4f6; }
.rr-defile { flex: 1; overflow-y: auto; padding: 0 20px 8px; display: flex; flex-direction: column; gap: 10px; }
.rr-boite { border-radius: 12px; border: 1px solid #e5e7eb; overflow: hidden; flex-shrink: 0; }
.rr-boite-tete { width: 100%; padding: 8px 12px; background: #f9fafb; display: flex; align-items: center; gap: 8px; border: 0; text-align: left; }
.rr-deplier { transition: background-color .15s; } .rr-deplier:hover { background: #f3f4f6; }
.rr-boite-icone { color: #9ca3af; flex-shrink: 0; }
.rr-boite-titre { font-size: 12px; line-height: 16px; font-weight: 600; color: #111827; }
.rr-boite-sous { font-size: 10px; line-height: 15px; color: #9ca3af; }
.rr-lignes > .rr-ligne + .rr-ligne { border-top: 1px solid #f9fafb; }
.rr-ligne { padding: 8px 12px; } .rr-ligne.orphelin { background: rgba(255,251,235,.5); }
.rr-ligne-haut { display: flex; align-items: center; gap: 8px; }
.rr-cote { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.rr-droite { flex: 1; min-width: 0; }
.rr-pastille { flex-shrink: 0; font-size: 9px; line-height: 13.5px; font-weight: 700; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; color: #fff; }
.rr-nom-port { font-size: 12px; line-height: 16px; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-nom-port.barre { text-decoration: line-through; opacity: .6; }
.rr-connecteur { font-size: 10px; line-height: 15px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.rr-liens { flex-shrink: 0; display: inline-flex; align-items: center; gap: 2px; font-size: 9px; line-height: 13.5px; font-weight: 700; color: #4f46e5; background: #eef2ff; padding: 2px 6px; border-radius: 4px; }
.rr-absent { font-size: 10px; line-height: 15px; color: #9ca3af; font-style: italic; }
.rr-fleche { color: #d1d5db; flex-shrink: 0; }
.rr-select { width: 100%; font-size: 12px; line-height: 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 4px 8px; color: #1f2937; font-family: inherit; }
.rr-select:focus { outline: none; box-shadow: 0 0 0 1px #818cf8; }
.rr-note { margin: 4px 0 0; display: flex; align-items: center; gap: 4px; font-size: 10px; line-height: 15px; color: #b45309; }
.rr-note > svg { flex-shrink: 0; }
.rr-orphelin { margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.rr-orphelin-texte { font-size: 10px; line-height: 15px; color: #b45309; margin-right: auto; }
.rr-choix-orphelin { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; line-height: 15px; font-weight: 600; padding: 2px 8px; border-radius: 6px; border: 1px solid #e5e7eb; background: none; color: #6b7280; transition: background-color .15s; }
.rr-choix-orphelin:hover { background: #f9fafb; }
.rr-choix-orphelin.garde { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.rr-choix-orphelin.lache { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.rr-aide { margin: 0; padding: 0 4px; font-size: 11px; line-height: 1.375; color: #6b7280; }
.rr-pied { padding: 12px 20px; border-top: 1px solid #f3f4f6; background: rgba(249,250,251,.6); flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.rr-exemplaires { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.rr-exemplaires input { margin: 2px 0 0; width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; accent-color: #4f46e5; }
.rr-exemplaires-texte { font-size: 12px; line-height: 16px; color: #374151; }
.rr-exemplaires-sous { display: block; font-size: 10px; line-height: 15px; color: #9ca3af; }
.rr-boutons { display: flex; align-items: center; gap: 8px; }
.rr-annuler { padding: 8px 16px; font-size: 12px; line-height: 16px; font-weight: 600; color: #4b5563; border-radius: 12px; border: 0; background: none; transition: background-color .15s; }
.rr-annuler:hover { background: #f3f4f6; }
.rr-valider { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; font-size: 14px; line-height: 20px; font-weight: 600; background: #4f46e5; color: #fff; border-radius: 12px; border: 0; box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); transition: all .15s; }
.rr-valider:hover { background: #4338ca; } .rr-valider:active { transform: scale(.98); }

/* Actualiser depuis la bibliothèque (récapitulatif du plan) — même cadre que Remplacer la référence */
.ra-carte { max-height: 86vh; }
.ra-sous { margin: 2px 0 0; font-size: 12px; line-height: 16px; color: #6b7280; }
.ra-tout { margin-top: 0; }
.ra-carte-tete { padding: 8px 12px; background: #f9fafb; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ra-case { width: 16px; height: 16px; margin: 0; flex-shrink: 0; cursor: pointer; accent-color: #4f46e5; }
.ra-case:disabled { opacity: .4; }
.ra-case.petite { width: 14px; height: 14px; margin-top: 2px; }
.ra-fois { font-size: 11px; line-height: 16px; font-weight: 700; color: #4338ca; background: #e0e7ff; padding: 2px 6px; border-radius: 4px; flex-shrink: 0; }
.ra-nom { font-size: 12px; line-height: 16px; font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-modele { font-size: 10px; line-height: 15px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-lignes > .ra-ligne + .ra-ligne { border-top: 1px solid #f9fafb; }
.ra-ligne { display: flex; align-items: flex-start; gap: 10px; padding: 6px 12px; }
.ra-ligne.cochable { cursor: pointer; } .ra-ligne.cochable:hover { background: rgba(249,250,251,.7); }
.ra-ligne.verrou { background: rgba(255,251,235,.4); }
.ra-cadenas { margin-top: 2px; color: #f59e0b; flex-shrink: 0; }
.ra-badge { font-size: 9px; line-height: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .025em; padding: 2px 4px; border-radius: 4px; flex-shrink: 0; margin-top: 1px; }
.ra-badge.gris { color: #475569; background: #f1f5f9; } .ra-badge.vert { color: #047857; background: #ecfdf5; }
.ra-badge.indigo { color: #4338ca; background: #eef2ff; } .ra-badge.rouge { color: #b91c1c; background: #fef2f2; } .ra-badge.ambre { color: #b45309; background: #fffbeb; }
.ra-corps { min-width: 0; flex: 1; }
.ra-libelle { margin: 0; font-size: 11px; line-height: 1.25; }
.ra-signe { font-weight: 700; margin-right: 4px; }
.ra-quoi { font-weight: 500; color: #1f2937; } .ra-quoi.retire { color: #b91c1c; text-decoration: line-through; }
.ra-nb { margin-left: 4px; font-size: 9px; font-weight: 700; color: #9ca3af; }
.ra-valeurs { margin: 4px 0 0; font-size: 10.5px; line-height: 1.25; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ra-avant { color: #9ca3af; text-decoration: line-through; } .ra-avant.seul { color: #f87171; text-decoration: none; }
.ra-apres { color: #374151; font-weight: 500; }
.ra-chevron { color: #d1d5db; flex-shrink: 0; }
.ra-note { color: #9ca3af; font-style: italic; }
.ra-pilules { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ra-pilule { font-size: 9px; line-height: 13.5px; font-weight: 700; padding: 2px 6px; border-radius: 9999px; flex-shrink: 0; }
.ra-pilule.barre { opacity: .45; text-decoration: line-through; }
.ra-connecteur { font-weight: 500; border: 1px solid #e5e7eb; color: #6b7280; }
.ra-sens { display: inline-flex; align-items: center; gap: 2px; font-size: 9px; font-weight: 500; padding: 2px 4px; border-radius: 9999px; flex-shrink: 0; background: #f3f4f6; color: #6b7280; }
.ra-sens.terne { opacity: .45; }
.ra-manquants { margin: 0; font-size: 11px; line-height: 16px; color: #b45309; display: flex; align-items: flex-start; gap: 6px; padding: 0 4px 4px; }
.ra-manquants > svg { flex-shrink: 0; margin-top: 1px; }
.ra-pied { display: flex; align-items: center; gap: 8px; padding: 16px 20px; flex-shrink: 0; border-top: 1px solid #f3f4f6; }
.ra-retenues { margin: 0; flex: 1; font-size: 11px; line-height: 16px; color: #6b7280; }
.ra-annuler { padding: 8px 16px; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; font-size: 14px; line-height: 20px; color: #4b5563; font-weight: 500; transition: background-color .15s; }
.ra-annuler:hover { background: #f9fafb; }
.ra-appliquer { padding: 8px 16px; border-radius: 12px; border: 0; background: #4f46e5; color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; transition: background-color .15s; }
.ra-appliquer:hover { background: #4338ca; }
.ra-appliquer:disabled { opacity: .4; cursor: not-allowed; }

/* Palette : section Autres synoptiques (SECTION_STYLES.linked : sky) */
.pal-linked { color: #0284c7; } .pal-linked .pal-trait { background: #38bdf8; } .pal-linked .compte { background: #f0f9ff; }
.pal-retrait-linked { border-left-color: #e0f2fe; }
.pal-survol-linked:hover { background: #f0f9ff; }
.pal-note { margin: 0; font-size: 10px; line-height: 1.375; color: #9ca3af; padding: 0 4px 4px; }
.pal-lien { flex-shrink: 0; }
.pal-ref-repere { flex-shrink: 0; font-size: 9px; font-weight: 700; color: #0284c7; }
.pal-badge-ici { color: #16a34a; background: #f0fdf4; }

/* Bloc référence (EquipmentRefDialog) */
.dr-voile { position: fixed; inset: 0; background: rgba(0,0,0,.2); z-index: 40; }
.dr-boite { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 50; width: 440px; max-width: calc(100vw - 32px); background: #fff; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); border: 1px solid #e5e7eb; }
.dr-boite button { font-family: inherit; cursor: pointer; }
.dr-tete { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-bottom: 1px solid #f3f4f6; }
.dr-picto { width: 36px; height: 36px; border-radius: 12px; background: #f0f9ff; color: #0284c7; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dr-textes { flex: 1; min-width: 0; }
.dr-nom { margin: 0; font-size: 14px; line-height: 20px; font-weight: 700; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-sous { margin: 2px 0 0; font-size: 12px; line-height: 16px; color: #6b7280; }
.dr-sous b { color: #374151; }
.dr-fermer { padding: 4px; border-radius: 8px; border: 0; background: none; color: #9ca3af; display: flex; }
.dr-fermer:hover { color: #4b5563; background: #f3f4f6; }
.dr-corps { padding: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 12px; line-height: 1.625; color: #4b5563; }
.dr-corps p { margin: 0; }
.dr-gris { color: #6b7280; }
.dr-orphelin { display: flex; gap: 8px; padding: 10px; border-radius: 12px; background: #fffbeb; color: #92400e; }
.dr-orphelin > svg { flex-shrink: 0; margin-top: 1px; }
.dr-confirmer { padding: 10px; border-radius: 12px; background: #fef2f2; color: #b91c1c; }
.dr-pied { display: flex; align-items: center; gap: 8px; padding: 0 16px 16px; }
.dr-espace { flex: 1; }
.dr-detacher { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; border: 0; background: none; font-size: 12px; line-height: 16px; font-weight: 600; color: #4b5563; }
.dr-detacher:hover { background: #f3f4f6; }
.dr-detacher.confirme { color: #fff; background: #ef4444; } .dr-detacher.confirme:hover { background: #dc2626; }
.dr-ouvrir { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; border: 0; font-size: 12px; line-height: 16px; font-weight: 600; color: #fff; background: #0284c7; }
.dr-ouvrir:hover { background: #0369a1; }

/* Menu « Prérequis » de la barre */
.cb-prerequis.actif { background: #fff !important; box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); color: #4f46e5 !important; }
.cb-prerequis .cb-chevron { flex-shrink: 0; transition: transform .15s; } .cb-prerequis.ouvert .cb-chevron { transform: rotate(180deg); }
.cb-menu-prerequis { position: absolute; top: 100%; left: 0; margin-top: 8px; z-index: 40; width: 288px; white-space: normal; text-align: left; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); padding: 6px; }
.cb-prerequis-titre { margin: 0; font-size: 10px; line-height: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; padding: 4px 8px; }
.cb-prerequis-item { width: 100%; display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; border-radius: 8px; border: 0; background: none; text-align: left; cursor: pointer; font-family: inherit; transition: background-color .15s; }
.cb-prerequis-item:hover { background: #f3f4f6; } .cb-prerequis-item.actif { background: #eef2ff; }
.cb-prerequis-pastille { width: 20px; height: 20px; border-radius: 9999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; color: #fff; margin-top: 2px; }
.cb-prerequis-lien { color: #9ca3af; flex-shrink: 0; margin-top: 2px; }
.cb-prerequis-textes { min-width: 0; flex: 1; }
.cb-prerequis-court { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-prerequis-long { display: block; font-size: 10px; line-height: 1.375; color: #9ca3af; }
.cb-prerequis-filet { height: 1px; background: #f3f4f6; margin: 4px 0; }
.cb-prerequis-aide { margin: 4px 0 0; padding: 6px 8px 2px; border-top: 1px solid #f3f4f6; font-size: 11px; line-height: 1.375; color: #6b7280; }
/* Outil armé : rappel en haut du canvas (Panel top-center, !top-[45px]) */
.ext-bandeau { position: absolute; top: 45px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); border: 1px solid #e5e7eb; padding: 6px 12px; white-space: nowrap; }
.ext-point { width: 8px; height: 8px; border-radius: 9999px; flex-shrink: 0; }
.ext-libelle { font-size: 12px; line-height: 16px; font-weight: 500; color: #374151; }
.ext-aide { font-size: 11px; line-height: 16px; color: #9ca3af; }
.ext-filet { width: 1px; height: 20px; background: #e5e7eb; }
.ext-fermer { padding: 4px; border-radius: 8px; border: 0; background: none; color: #9ca3af; display: flex; cursor: pointer; transition: color .15s, background-color .15s; }
.ext-fermer:hover { color: #4b5563; background: #f3f4f6; }

/* Planche d'impression (PrintSheetNode) */
.planche { position: absolute; pointer-events: none; }
.planche-cadre { position: relative; width: 100%; height: 100%; pointer-events: none; outline: max(1px, calc(2px / var(--zoom, 1))) dashed rgba(14,165,233,.6); }
.planche.choisie .planche-cadre { outline-color: #0ea5e9; background: rgba(14,165,233,.04); }
.planche-onglet { position: absolute; left: 0; bottom: 100%; transform: scale(calc(1 / var(--zoom, 1))); transform-origin: bottom left; pointer-events: auto; }
.planche-barre { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; height: 28px; padding: 0 4px 0 6px; border-radius: 6px; color: #fff; box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); white-space: nowrap; background: rgba(14,165,233,.8); }
.planche.choisie .planche-barre { background: #0ea5e9; }
.planche-prise { display: flex; align-items: center; gap: 6px; height: 100%; }
.planche-prise.saisissable { cursor: grab; } .planche-prise.saisissable:active { cursor: grabbing; }
.planche-nom { background: transparent; border: 0; font-size: 12px; line-height: 16px; font-weight: 600; color: #fff; outline: none; border-radius: 4px; padding: 0 4px; width: 160px; font-family: inherit; }
.planche-nom::placeholder { color: rgba(255,255,255,.7); } .planche-nom:focus { background: rgba(255,255,255,.2); }
.planche-papier { background: rgba(255,255,255,.15); font-size: 11px; font-weight: 500; color: #fff; border-radius: 4px; padding: 0 4px; height: 20px; outline: none; border: 0; font-family: inherit; }
.planche-papier:hover { background: rgba(255,255,255,.25); } .planche-papier option { color: #111827; }
.planche-bouton { padding: 2px; border-radius: 4px; border: 0; background: none; color: #fff; display: flex; cursor: pointer; }
.planche-bouton.actif { background: rgba(255,255,255,.3); } .planche-bouton:not(.actif):hover { background: rgba(255,255,255,.2); }
.planche-titre { font-size: 12px; line-height: 16px; font-weight: 600; padding: 0 4px; }
.planche-format { font-size: 11px; opacity: .8; padding-right: 4px; }
.planche .rf-redim.coin { background: #0ea5e9; } .planche .rf-redim.ligne { border-color: #0ea5e9; }

/* Cadre d'une série dépliée (GroupFrameNode) */
.cadre-serie { position: absolute; pointer-events: none; }
.cadre-paroi { position: relative; width: 100%; height: 100%; border-radius: 16px; pointer-events: none; box-sizing: border-box; }
.cadre-barre { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-radius: 12px 12px 0 0; cursor: grab; pointer-events: auto; }
.cadre-barre:active { cursor: grabbing; }
.cadre-vide { width: 16px; }
.cadre-picto { flex-shrink: 0; }
.cadre-titre { font-size: 12px; line-height: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cadre-compte { flex-shrink: 0; font-size: 11px; line-height: 16px; font-weight: 800; padding: 2px 6px; border-radius: 9999px; color: #fff; font-variant-numeric: tabular-nums; }
.cadre-espace { flex: 1; }
.cadre-bouton { padding: 4px; border-radius: 4px; border: 0; background: none; color: #6b7280; display: flex; cursor: pointer; transition: color .15s, background-color .15s; }
.cadre-bouton.replier { padding: 2px; }
.cadre-bouton:hover { color: #4f46e5; background: rgba(255,255,255,.6); }
.cadre-bouton.replier:hover { background: none; }
.cadre-bouton.actif { color: #4f46e5; }
.cadre-bouton.danger:hover { color: #ef4444; background: #fef2f2; }
.cadre-serie .rf-redim.coin { background: var(--cadre); } .cadre-serie .rf-redim.ligne { border-color: var(--cadre); }
.cadre-menu { position: fixed; z-index: 1000; min-width: 230px; transform: translateX(-100%); border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); padding: 4px 0; font-size: 12px; line-height: 16px; }
.cadre-menu-item { width: 100%; text-align: left; padding: 6px 12px; border: 0; background: none; color: #374151; cursor: pointer; font-family: inherit; font-size: 12px; }
.cadre-menu-item:hover { background: #f9fafb; }
.cadre-menu-item .gras { font-weight: 600; } .cadre-menu-item .gris { color: #9ca3af; }
.cadre-menu-item.tout { font-weight: 600; color: #4f46e5; }
.cadre-menu-filet { margin: 4px 0; border-top: 1px solid #f3f4f6; }
/* Confirmation de suppression d'une série */
.cs-carte { background: #fff; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); width: 100%; max-width: 448px; overflow: hidden; }
.cs-carte button { font-family: inherit; cursor: pointer; }
.cs-tete { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 0; }
.cs-picto { width: 36px; height: 36px; border-radius: 12px; background: #fee2e2; color: #dc2626; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cs-textes { min-width: 0; }
.cs-titre { margin: 0; font-size: 14px; line-height: 20px; font-weight: 700; color: #111827; }
.cs-sous { margin: 2px 0 0; font-size: 12px; line-height: 16px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-corps { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; color: #4b5563; }
.cs-corps p { margin: 0; } .cs-corps b { color: #111827; font-variant-numeric: tabular-nums; }
.cs-nb { font-variant-numeric: tabular-nums; } .cs-rouge { color: #dc2626; }
.cs-pied { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; background: rgba(249,250,251,.7); border-top: 1px solid #f3f4f6; }
.cs-annuler { padding: 6px 12px; font-size: 14px; line-height: 20px; font-weight: 500; color: #4b5563; border-radius: 8px; border: 0; background: none; }
.cs-annuler:hover { background: #f3f4f6; }
.cs-ok { padding: 6px 12px; font-size: 14px; line-height: 20px; font-weight: 600; color: #fff; background: #dc2626; border-radius: 8px; border: 0; transition: all .15s; }
.cs-ok:hover { background: #b91c1c; } .cs-ok:active { transform: scale(.98); }

/* Importer depuis un autre synoptique (ImportSynoptiqueDialog) */
.im-carte { background: #fff; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); width: 100%; max-width: 896px; height: min(640px, 90vh); display: flex; flex-direction: column; overflow: hidden; border: 1px solid transparent; font-size: 14px; }
.im-carte button { font-family: inherit; cursor: pointer; } .im-carte input { font-family: inherit; }
.im-tete { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #f3f4f6; }
.im-picto { width: 36px; height: 36px; border-radius: 12px; background: #f0f4ff; color: #0035f5; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.im-textes { flex: 1; min-width: 0; }
.im-titre { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: #111827; }
.im-sous { margin: 0; font-size: 12px; line-height: 16px; color: #6b7280; }
.im-fermer { padding: 6px; border-radius: 6px; border: 0; background: none; color: #9ca3af; display: flex; } .im-fermer:hover { background: #f3f4f6; }
.im-corps { flex: 1; min-height: 0; display: flex; }
.im-gauche { width: 288px; flex-shrink: 0; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #f3f4f6; }
.im-rech { padding: 12px; } .im-rech-boite { position: relative; }
.im-loupe { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.im-recherche { width: 100%; box-sizing: border-box; padding: 6px 8px 6px 32px; font-size: 14px; line-height: 20px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; color: #111827; }
.im-docs { flex: 1; overflow-y: auto; padding: 0 8px 12px; }
.im-attente { display: flex; justify-content: center; padding: 32px 0; color: #9ca3af; }
.im-tourne { animation: pal-tourne 1s linear infinite; }
.im-vide { margin: 0; font-size: 12px; color: #9ca3af; padding: 16px 8px; }
.im-projet { margin-bottom: 2px; }
.im-projet-bouton { width: 100%; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; border: 0; background: none; text-align: left; font-size: 14px; line-height: 20px; color: #1f2937; }
.im-projet-bouton:hover { background: #f9fafb; }
.im-gris { color: #9ca3af; flex-shrink: 0; }
.im-tronque { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .im-projet-bouton .im-tronque { flex: 1; }
.im-ce-projet { font-size: 10px; padding: 0 6px; border-radius: 4px; background: #f3f4f6; color: #6b7280; }
.im-nb { font-size: 11px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.im-doc { display: flex; align-items: center; gap: 4px; margin-left: 20px; padding-right: 4px; border-radius: 6px; }
.im-doc:hover { background: #f9fafb; } .im-doc.actif { background: #f0f4ff; }
.im-document .im-gauche { width: 100%; border-right: 0; }
.im-copier-ici { font-size: 11px; color: #0035f5; opacity: 0; } .im-doc:hover .im-copier-ici { opacity: 1; }
.im-doc-bouton { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 0; background: none; text-align: left; font-size: 13px; color: #374151; }
.im-droite { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.im-invite { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #9ca3af; padding: 0 24px; text-align: center; }
.im-choix-tete { padding: 12px 16px 8px; border-bottom: 1px solid #f3f4f6; }
.im-choix-nom { margin: 0; font-size: 14px; font-weight: 500; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-choix-projet { margin: 0; font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-tout { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #1f2937; cursor: pointer; }
.im-choix-liste { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 16px; }
.im-rubrique { margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .025em; color: #9ca3af; } .im-rubrique.flex { flex: 1; margin: 0; }
.im-ligne-zone { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; color: #1f2937; cursor: pointer; }
.im-eq-tete { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.im-filtre { width: 160px; padding: 2px 8px; font-size: 12px; border-radius: 4px; border: 1px solid #e5e7eb; background: #fff; color: #111827; }
.im-ligne-eq { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-size: 13px; color: #374151; cursor: pointer; }
.im-ligne-eq .flex { flex: 1; }
.im-ref { font-family: ui-monospace, monospace; font-size: 11px; color: #6b7280; width: 56px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-zone { font-size: 11px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.im-pied { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid #f3f4f6; }
.im-erreur { flex: 1; margin: 0; font-size: 12px; color: #dc2626; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-copier { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; font-size: 14px; line-height: 20px; color: #374151; border: 1px solid #e5e7eb; background: #fff; }
.im-copier:hover { background: #f9fafb; } .im-copier:disabled { opacity: .5; }
.im-importer { padding: 6px 16px; border-radius: 8px; background: #0035f5; color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; border: 0; }
.im-importer:hover { background: #0028c2; } .im-importer:disabled { opacity: .4; cursor: default; }

/* Panneau bas (SynoptiqueDock) */
.dk-hote { flex-shrink: 0; }
.dk { position: relative; display: flex; flex-direction: column; background: #fff; border-top: 1px solid #e5e7eb; box-shadow: 0 -4px 12px rgba(0,0,0,.04); font-size: 12px; }
.dk button { font-family: inherit; cursor: pointer; } .dk input, .dk select { font-family: inherit; }
.dk-poignee { position: absolute; top: -6px; left: 0; right: 0; height: 12px; cursor: row-resize; z-index: 10; display: flex; justify-content: center; align-items: center; }
.dk-poignee span { width: 40px; height: 4px; border-radius: 9999px; background: #d1d5db; } .dk-poignee:hover span { background: #4d7aff; }
.dk-onglets { display: flex; align-items: stretch; gap: 4px; padding: 0 8px; flex-shrink: 0; border-bottom: 1px solid #e5e7eb; }
.dk-onglet { display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 12px; font-size: 12px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: #6b7280; transition: color .15s; }
.dk-onglet:hover { color: #1f2937; } .dk-onglet.actif { border-bottom-color: #0035f5; color: #111827; font-weight: 600; }
.dk-compte { font-size: 10px; color: #9ca3af; font-variant-numeric: tabular-nums; font-weight: 400; }
.dk-pale { opacity: .6; }
.dk-plier { margin-left: auto; align-self: center; width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #6b7280; border: 0; background: none; }
.dk-plier:hover { background: #f3f4f6; }
.dk-corps { flex: 1; min-height: 0; }
.dk-col { height: 100%; display: flex; flex-direction: column; }
.dk-ligne { flex: 1; min-height: 0; display: flex; height: 100%; }
.dk-plein { flex: 1; min-height: 0; }
.dk-vide { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #9ca3af; padding: 0 24px; text-align: center; }
.dk-vues { display: flex; align-items: center; gap: 4px; padding: 6px 12px 0; flex-shrink: 0; border-bottom: 1px solid #f3f4f6; }
.dk-vue { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 11px; border-radius: 6px 6px 0 0; border: 1px solid transparent; border-bottom: 0; margin-bottom: -1px; background: none; color: #6b7280; }
.dk-vue:hover { color: #1f2937; } .dk-vue.actif { background: #fff; border-color: #e5e7eb; color: #111827; font-weight: 600; }
.dk-outils { display: flex; align-items: center; gap: 8px; padding: 8px 12px; flex-shrink: 0; border-bottom: 1px solid #f3f4f6; }
.dk-droite { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dk-gris { color: #9ca3af; font-size: 11px; } .dk-gris.normal { font-weight: 400; } .dk-gris.marque { margin-right: 4px; font-size: inherit; }
.dk-select { height: 28px; padding: 0 8px; font-size: 11px; border-radius: 6px; border: 1px solid #e5e7eb; background: #fff; color: #374151; outline: none; }
.dk-bouton { height: 28px; padding: 0 10px; font-size: 11px; border-radius: 6px; border: 1px solid #e5e7eb; background: none; color: #4b5563; display: inline-flex; align-items: center; gap: 4px; transition: background-color .15s; }
.dk-bouton:hover { background: #f9fafb; } .dk-bouton:disabled { opacity: .4; }
.dk-bouton-brand { height: 28px; padding: 0 10px; font-size: 11px; border-radius: 6px; border: 0; background: #f0f4ff; color: #0028c2; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.dk-bouton-brand:hover { background: #dce6ff; } .dk-bouton-brand:disabled { opacity: .4; }
.dk-ouvrir { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #6b7280; border: 1px solid #e5e7eb; border-radius: 6px; padding: 4px 8px; background: none; }
.dk-ouvrir:hover { color: #0035f5; }
.dk-defile { flex: 1; min-width: 0; min-height: 0; overflow: auto; }
.dk-cables { padding: 4px 0; }
.dk-groupe { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12px; font-weight: 600; color: #1f2937; border: 0; background: none; text-align: left; }
.dk-chevron { color: #9ca3af; transition: transform .15s; } .dk-chevron.ferme { transform: rotate(-90deg); }
.dk-point { width: 8px; height: 8px; border-radius: 9999px; flex-shrink: 0; } .dk-point.petit { width: 6px; height: 6px; }
.dk-filet { flex: 1; height: 1px; background: #f3f4f6; margin-left: 8px; }
.dk-cable { display: flex; align-items: center; gap: 16px; margin: 0 12px 6px; padding: 8px 12px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; cursor: pointer; transition: border-color .15s; }
.dk-cable:hover { border-color: #a3bcff; box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); }
.dk-code { font-size: 11px; font-weight: 700; font-family: ui-monospace, monospace; padding: 2px 8px; border-radius: 6px; flex-shrink: 0; min-width: 64px; text-align: center; color: #fff; }
.dk-cable-type { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; width: 84px; }
.dk-designation { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-longueur { display: inline-flex; align-items: center; gap: 4px; }
.dk-longueur-champ { width: 56px; height: 24px; padding: 0 6px; font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; border-radius: 4px; border: 1px solid #d1d5db; background: #fff; color: #111827; outline: none; box-sizing: border-box; }
.dk-longueur-champ:focus { border-color: #0035f5; box-shadow: 0 0 0 2px rgba(0,53,245,.2); } .dk-longueur-champ:disabled { background: #f9fafb; color: #9ca3af; }
.dk-unite { font-size: 10px; color: #9ca3af; }
.dk-fleche { flex-shrink: 0; }
.dk-bout { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; max-width: 300px; }
.dk-vignette { width: 36px; height: 36px; flex-shrink: 0; border-radius: 6px; border: 1px solid #e5e7eb; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dk-vignette img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dk-bout-textes { min-width: 0; }
.dk-bout-ref { display: block; font-size: 12px; font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-bout-ligne { display: flex; align-items: center; gap: 4px; margin-top: 2px; min-width: 0; }
.dk-modele { font-size: 9px; font-weight: 500; padding: 1px 6px; border-radius: 4px; background: #f0f4ff; color: #0035f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
.dk-signal { font-size: 9px; padding: 1px 6px; border-radius: 9999px; border: 1px solid #e5e7eb; color: #6b7280; display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.dk-port { font-size: 10px; font-weight: 600; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-parcours { margin-left: auto; padding-left: 8px; min-width: 0; max-width: 260px; display: none; }
@media (min-width: 1280px) { .dk-parcours { display: block; } }
.dk-parcours-titre { display: block; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: #9ca3af; }
.dk-parcours-texte { display: block; font-size: 10px; font-family: ui-monospace, monospace; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-achat { width: 256px; flex-shrink: 0; border-left: 1px solid #f3f4f6; display: flex; flex-direction: column; }
.dk-achat-tete { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid #f3f4f6; }
.dk-rubrique { margin: 0; font-size: 10px; font-weight: 600; letter-spacing: .025em; color: #6b7280; text-transform: uppercase; }
.dk-copier { height: 24px; padding: 0 8px; font-size: 10px; border-radius: 4px; border: 1px solid #e5e7eb; background: none; color: #4b5563; display: inline-flex; align-items: center; gap: 4px; }
.dk-achat-liste { flex: 1; min-height: 0; overflow: auto; padding: 4px 12px; }
.dk-achat-ligne { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; }
.dk-achat-n { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: #111827; flex-shrink: 0; }
.dk-fois { font-size: 10px; color: #9ca3af; font-weight: 400; margin-left: 2px; }
.dk-achat-milieu { min-width: 0; flex: 1; }
.dk-achat-lib { display: block; font-size: 12px; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-achat-detail { display: block; font-size: 10px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-achat-warn { display: block; font-size: 10px; color: #d97706; } .dk-achat-warn.bloc { display: block; }
.dk-achat-qte { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: #1f2937; flex-shrink: 0; }
.dk-achat-vide { margin: 0; font-size: 11px; color: #9ca3af; padding: 8px 0; }
.dk-achat-pied { padding: 8px 12px; border-top: 1px solid #f3f4f6; font-size: 11px; color: #6b7280; } .dk-achat-pied b { color: #1f2937; }
.dk-case { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #4b5563; cursor: pointer; user-select: none; }
.dk-alerte { display: flex; align-items: center; gap: 8px; padding: 6px 12px; flex-shrink: 0; background: #fffbeb; border-bottom: 1px solid #fde68a; font-size: 11px; color: #92400e; }
.dk-alerte-texte { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-alerte-bouton { margin-left: auto; flex-shrink: 0; height: 24px; padding: 0 8px; border-radius: 4px; border: 1px solid #fcd34d; background: #fff; font-weight: 500; font-size: 11px; color: #92400e; }
.dk-lan { display: flex; align-items: flex-end; gap: 12px; padding: 8px 12px; flex-shrink: 0; border-bottom: 1px solid #e5e7eb; }
.dk-lan-champ { display: flex; flex-direction: column; gap: 2px; }
.dk-lan-lib { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: #6b7280; }
.dk-lan-input { width: 144px; height: 28px; padding: 0 8px; font-size: 12px; font-family: ui-monospace, monospace; border-radius: 4px; border: 1px solid #d1d5db; background: #fff; color: #1f2937; outline: none; box-sizing: border-box; }
.dk-lan-input:disabled { background: #f9fafb; color: #6b7280; } .dk-lan-input.invalide { border-color: #f87171; }
.dk-lan-aide { margin: 0; font-size: 10px; color: #9ca3af; padding-bottom: 6px; max-width: 280px; line-height: 1.25; }
.dk-table { font-size: 12px; border-collapse: separate; border-spacing: 0; min-width: 100%; }
.dk-table thead { position: sticky; top: 0; z-index: 1; background: #f9fafb; }
.dk-table th { padding: 6px 8px; text-align: left; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: #6b7280; white-space: nowrap; border-right: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.dk-table th.l200 { min-width: 200px; } .dk-table th.l160 { min-width: 160px; } .dk-table th.l140 { min-width: 140px; } .dk-table th.l120 { min-width: 120px; } .dk-table th.l110 { min-width: 110px; } .dk-table th.l90 { min-width: 90px; } .dk-table th.w8 { width: 32px; } .dk-table th.w16 { width: 64px; }
.dk-table td { border-right: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6; padding: 0; height: 28px; color: #4b5563; white-space: nowrap; }
.dk-table td.pad { padding: 0 8px; } .dk-table td.mono { font-family: ui-monospace, monospace; font-size: 11px; } .dk-table td.centre { text-align: center; } .dk-table td.nb { font-variant-numeric: tabular-nums; }
.dk-table tbody tr:hover { background: rgba(249,250,251,.7); }
.dk-cellule { width: 100%; height: 28px; padding: 0 8px; font-size: 12px; background: transparent; outline: none; border: 0; border-radius: 0; box-sizing: border-box; color: #1f2937; }
.dk-cellule:focus { background: rgba(240,244,255,.6); box-shadow: inset 0 0 0 1px #4d7aff; }
.dk-cellule::placeholder { font-style: italic; color: #9ca3af; } .dk-cellule:disabled { cursor: default; }
.dk-cellule.mono { font-family: ui-monospace, monospace; } .dk-cellule.gras { font-weight: 600; } .dk-cellule.moyen { font-weight: 500; }
.dk-cellule.conflit { color: #dc2626; background: rgba(254,242,242,.6); }
.dk-produit { display: flex; align-items: center; gap: 6px; height: 28px; max-width: 240px; text-align: left; color: #1f2937; border: 0; background: none; padding: 0; font-size: 12px; }
.dk-produit:hover { color: #0035f5; } .dk-produit img { width: 20px; height: 16px; object-fit: contain; flex-shrink: 0; } .dk-sans-image { width: 20px; flex-shrink: 0; }
.dk-tronque { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-passerelle { display: block; padding: 0 8px; line-height: 28px; font-family: ui-monospace, monospace; color: #6b7280; }
.dk-vlan { font-size: 10px; padding: 2px 6px; border-radius: 9999px; border: 1px solid #e5e7eb; }
.dk-tiret { color: #d1d5db; }
.dk-pied { padding: 6px 12px; flex-shrink: 0; border-top: 1px solid #f3f4f6; font-size: 11px; color: #6b7280; } .dk-pied b { color: #1f2937; }
.dk-rouge { margin-left: 8px; color: #dc2626; }
.dk-couleur { width: 20px; height: 20px; border-radius: 4px; cursor: pointer; border: 0; background: transparent; padding: 0; vertical-align: middle; }
.dk-suppr { color: #9ca3af; border: 0; background: none; display: inline-flex; } .dk-suppr:hover { color: #ef4444; } .dk-suppr:disabled { opacity: .3; color: #9ca3af; cursor: default; }
.dk-aide-droite { margin-left: auto; font-size: 10px; color: #9ca3af; }
.dk-profil { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.dk-flash { font-size: 10px; color: #16a34a; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.dk-profil-menu { position: absolute; z-index: 50; top: 100%; left: 0; margin-top: 4px; width: 288px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); padding: 4px 0; }
.dk-profil-titre { margin: 0; padding: 6px 12px 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: #9ca3af; }
.dk-profil-vide { margin: 0; padding: 8px 12px; font-size: 12px; color: #9ca3af; }
.dk-profil-item { width: 100%; text-align: left; padding: 6px 12px; border: 0; background: none; display: block; }
.dk-profil-item:hover { background: #f9fafb; } .dk-profil-item:disabled { opacity: .4; }
.dk-profil-item.ligne { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5563; }
.dk-profil-l1 { display: flex; align-items: center; gap: 8px; }
.dk-profil-nom { font-size: 12px; font-weight: 500; color: #1f2937; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-profil-diff { font-size: 10px; color: #9ca3af; flex-shrink: 0; }
.dk-profil-l2 { display: flex; align-items: center; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.dk-profil-v { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: #6b7280; }
.dk-profil-carre { width: 8px; height: 8px; border-radius: 2px; }
.dk-profil-pied { border-top: 1px solid #f3f4f6; margin-top: 4px; padding-top: 4px; }
.dk-produits-tete { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid #f3f4f6; }
.dk-filtre { height: 24px; width: 192px; padding: 0 8px; font-size: 12px; border-radius: 4px; border: 1px solid #e5e7eb; background: #fff; outline: none; box-sizing: border-box; }
.dk-filtre:focus { border-color: #4d7aff; }
.dk-cat { display: flex; align-items: center; gap: 6px; padding: 8px 12px 4px; margin: 0; font-size: 11px; font-weight: 500; color: #374151; }
.dk-carre { width: 8px; height: 8px; border-radius: 2px; }
.dk-produit-ligne { display: flex; align-items: center; gap: 12px; margin: 2px 8px; padding: 6px 8px; border-radius: 6px; border: 1px solid #f3f4f6; cursor: pointer; }
.dk-produit-ligne:hover { border-color: #c7d6ff; }
.dk-exemplaires { width: 36px; text-align: center; flex-shrink: 0; }
.dk-exemplaires-n { display: block; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: #111827; line-height: 1; }
.dk-exemplaires-lib { font-size: 9px; color: #9ca3af; text-transform: uppercase; }
.dk-produit-image { width: 40px; height: 28px; object-fit: contain; flex-shrink: 0; } .dk-produit-image.vide { border-radius: 4px; background: #f3f4f6; }
.dk-produit-milieu { min-width: 0; flex: 1; }
.dk-produit-nom { display: block; font-size: 12px; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-produit-detail { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-client { color: #ef4444; display: inline-flex; align-items: center; gap: 2px; }
.dk-produit-w { text-align: right; flex-shrink: 0; }
.dk-w { display: block; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; color: #374151; }
.dk-btu { display: block; font-size: 10px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.dk-nomenclature { width: 224px; flex-shrink: 0; border-left: 1px solid #f3f4f6; overflow: auto; padding: 8px 12px; font-size: 12px; }
.dk-nomenclature .dk-rubrique { color: #9ca3af; margin-bottom: 8px; } .dk-nomenclature .dk-rubrique.haut { margin-top: 12px; }
.dk-resume { display: flex; align-items: center; justify-content: space-between; padding: 2px 0; } .dk-resume .dk-gris { font-size: 12px; color: #6b7280; }
.dk-fort { font-variant-numeric: tabular-nums; font-weight: 600; color: #111827; } .dk-moyen { font-variant-numeric: tabular-nums; color: #4b5563; }

/* Aperçu d'une fiche au survol (EquipmentPreview) */
.af-flottante { position: fixed; z-index: 1000; pointer-events: none; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); padding: 12px; box-sizing: border-box; }
.af-carte { display: flex; flex-direction: column; gap: 12px; }
.af-image { border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.af-image img { width: 100%; height: 100%; object-fit: contain; padding: 12px; box-sizing: border-box; }
.af-textes { min-width: 0; }
.af-sur { margin: 0; font-size: 11px; line-height: 16px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-titre { margin: 0; font-size: 14px; font-weight: 700; color: #111827; line-height: 1.375; }
.af-note { margin: 2px 0 0; font-size: 11px; color: #0035f5; }
.af-faits { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; font-size: 12px; line-height: 16px; margin: 0; }
.af-faits dt { color: #6b7280; } .af-faits dd { margin: 0; color: #111827; min-width: 0; overflow-wrap: break-word; }
.af-puces { display: flex; flex-wrap: wrap; gap: 4px; }
.af-puce { font-size: 10px; line-height: 15px; padding: 2px 6px; border-radius: 9999px; font-weight: 500; }
.af-description { margin: 0; font-size: 12px; line-height: 1.375; color: #4b5563; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Commentaires et demandes (CommentLayer, ThreadView, CommentComposer, CommentBell) ───────────── */
.cb-commentaires.actif { background: #fef3c7 !important; color: #92400e !important; }
.cb-com-demandes { display: flex; align-items: center; gap: 2px; height: 20px; padding: 0 6px; border-radius: 9999px; background: #f59e0b; color: #fff; font-size: 11px; font-weight: 600; }
.cb-com-commentaires { display: flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; }
.cm-cloche-zone { position: relative; }
.cm-cloche-compte { position: absolute; top: -2px; right: -2px; min-width: 1.05rem; height: 1.05rem; padding: 0 4px; box-sizing: border-box; border-radius: 9999px; background: #f59e0b; color: #fff; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.cm-cloche-menu { position: absolute; top: 100%; margin-top: 8px; z-index: 50; width: min(360px, calc(100vw - 2rem)); border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); overflow: hidden; text-align: left; }
.cm-cloche-menu.droite { right: 0; } .cm-cloche-menu.gauche { left: 0; }
.cm-cloche-tete { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #f3f4f6; }
.cm-cloche-titre { font-size: 14px; line-height: 20px; font-weight: 600; color: #111827; }
.cm-cloche-tete .cm-lien { margin-left: auto; }
.cm-lien { font-size: 12px; line-height: 16px; color: #0028c2; background: none; border: 0; padding: 0; cursor: pointer; }
.cm-lien:hover { text-decoration: underline; }
.cm-cloche-liste { max-height: 420px; overflow-y: auto; }
.cm-cloche-vide { padding: 24px 12px; margin: 0; text-align: center; font-size: 14px; line-height: 20px; color: #6b7280; }
.cm-notif { width: 100%; text-align: left; display: flex; gap: 10px; padding: 10px 12px; border: 0; border-bottom: 1px solid #f9fafb; background: none; cursor: pointer; font: inherit; }
.cm-notif:hover { background: #f9fafb; }
.cm-notif.non-lue { background: rgba(255,251,235,.6); }
.cm-notif-icone { margin-top: 2px; width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #f3f4f6; color: #9ca3af; }
.cm-notif-icone.non-lue { background: #fef3c7; color: #b45309; }
.cm-notif-corps { min-width: 0; flex: 1; }
.cm-notif-ligne { display: flex; align-items: baseline; gap: 8px; }
.cm-notif-titre { font-size: 14px; line-height: 20px; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-notif-titre.non-lue { font-weight: 600; color: #111827; }
.cm-notif-quand { margin-left: auto; font-size: 11px; color: #9ca3af; flex-shrink: 0; }
.cm-notif-lieu { display: block; font-size: 12px; line-height: 16px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-notif-extrait { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 16px; color: #4b5563; margin-top: 2px; }
.cm-cloche-autres { display: block; padding: 8px 12px; border-top: 1px solid #f3f4f6; font-size: 12px; line-height: 16px; color: #6b7280; text-decoration: none; }
.cm-cloche-autres:hover { background: #f9fafb; }

.cm-bandeaux { position: fixed; bottom: 16px; left: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 2rem)); }
.cm-bandeaux:empty { display: none; }
.cm-bandeau { border-radius: 12px; border: 1px solid #e5e7eb; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); background: #fff; padding: 12px; display: flex; align-items: flex-start; gap: 12px; }
.cm-bandeau-icone { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #fffbeb; color: #d97706; }
.cm-bandeau-corps { min-width: 0; flex: 1; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.cm-bandeau-titre { font-size: 14px; line-height: 20px; font-weight: 600; color: #111827; }
.cm-bandeau-lieu { font-size: 12px; line-height: 16px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-bandeau-extrait { font-size: 14px; line-height: 20px; color: #374151; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-bandeau-voir { display: inline-block; margin-top: 4px; font-size: 12px; line-height: 16px; font-weight: 500; color: #0028c2; }
.cm-bandeau-fermer { padding: 4px; margin: -4px; color: #9ca3af; background: none; border: 0; cursor: pointer; }
.cm-bandeau-fermer:hover { color: #4b5563; }

.cm-bandeau-fils { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 8px; border: 1px solid #e5e7eb; background: rgba(255,255,255,.95); color: #374151; font-size: 14px; line-height: 20px; box-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1); white-space: nowrap; }
.cm-bandeau-fils > svg { flex-shrink: 0; color: #6b7280; }
.cm-bandeau-fils.demandes { background: #fffbeb; color: #78350f; border-color: #fcd34d; }
.cm-bandeau-fils.demandes > svg { color: #d97706; }
.cm-bandeau-fils-voir { margin-left: 4px; padding: 2px 8px; border-radius: 6px; background: #f59e0b; color: #fff; font-size: 12px; line-height: 16px; font-weight: 500; border: 0; cursor: pointer; }
.cm-bandeau-fils-voir:hover { background: #d97706; }
.cm-bandeau-fils-fermer { padding: 4px; color: rgba(180,83,9,.7); background: none; border: 0; cursor: pointer; display: flex; }
.cm-bandeau-fils-fermer:hover { color: #78350f; }

.cm-calque { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 6; }
.cm-pastille { pointer-events: auto; position: absolute; display: flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px; box-sizing: border-box; border-radius: 9999px; border-bottom-left-radius: 0; border: 2px solid #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); color: #fff; font-size: 11px; font-weight: 600; cursor: pointer; transition: transform .15s; font-family: inherit; }
.cm-pastille:hover { transform: scale(1.05); }
.cm-pastille.active { transform: scale(1.1); box-shadow: 0 0 0 2px #fbbf24, 0 4px 6px -1px rgba(0,0,0,.1); }
.cm-pastille.resolue { opacity: .6; }
.cm-pastille.orpheline { filter: grayscale(1); }
.cm-pastille-compte { margin-left: 4px; font-size: 10px; opacity: .9; }
.cm-pastille-demande { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; box-sizing: border-box; border-radius: 9999px; background: #f59e0b; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; }
.cm-brouillon-point { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 9999px; background: #f59e0b; box-shadow: 0 0 0 2px #fff, 0 1px 2px rgba(0,0,0,.2); }
.cm-brouillon { pointer-events: auto; position: absolute; box-sizing: border-box; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.cm-brouillon-tete { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: #6b7280; min-width: 0; }
.cm-brouillon-tete > svg { flex-shrink: 0; }
.cm-brouillon-tete .cm-fermer { margin-left: auto; }
.cm-case-demande { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: #374151; cursor: pointer; user-select: none; }
.cm-case-demande input { accent-color: #f59e0b; margin: 0; }
.cm-ambre { color: #d97706; } .cm-ambre-vif { color: #f59e0b; } .cm-gris { color: #9ca3af; }
.cm-tronque { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cm-fermer { padding: 2px; color: #9ca3af; background: none; border: 0; cursor: pointer; display: flex; border-radius: 4px; }
.cm-fermer:hover { color: #1f2937; }
.cm-erreur { margin: 0; font-size: 12px; line-height: 16px; color: #dc2626; }

.cm-panneau { pointer-events: auto; position: absolute; right: 12px; top: 64px; width: 300px; max-height: calc(100% - 9rem); display: flex; flex-direction: column; border-radius: 12px; border: 1px solid #e5e7eb; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.cm-panneau-tete { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; }
.cm-panneau-tete > svg { flex-shrink: 0; }
.cm-panneau-titre { font-size: 14px; line-height: 20px; font-weight: 600; color: #111827; }
.cm-panneau-lien { font-size: 11px; color: #0028c2; text-decoration: none; display: flex; align-items: center; gap: 2px; }
.cm-panneau-lien:hover { text-decoration: underline; }
.cm-panneau-quitter { margin-left: auto; padding: 4px; }
.cm-filtres { display: flex; gap: 4px; padding: 0 12px 8px; }
.cm-filtre { padding: 2px 8px; border-radius: 6px; font-size: 12px; line-height: 16px; color: #4b5563; background: none; border: 0; cursor: pointer; font-family: inherit; }
.cm-filtre:hover { background: #f3f4f6; }
.cm-filtre.actif { background: #111827; color: #fff; }
.cm-panneau-liste { flex: 1; min-height: 0; overflow-y: auto; border-top: 1px solid #f3f4f6; }
.cm-vide { padding: 12px; margin: 0; font-size: 12px; line-height: 16px; color: #6b7280; }
.cm-item { width: 100%; text-align: left; padding: 8px 12px; border: 0; border-bottom: 1px solid #f9fafb; background: none; cursor: pointer; display: block; font-family: inherit; }
.cm-item:hover { background: #f9fafb; }
.cm-item.ouvert { background: rgba(255,251,235,.7); }
.cm-ligne { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cm-item-auteur { font-size: 12px; line-height: 16px; font-weight: 500; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-item-quand { margin-left: auto; font-size: 10px; color: #9ca3af; flex-shrink: 0; }
.cm-item-cible { font-size: 11px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.cm-item-texte { font-size: 12px; line-height: 16px; color: #374151; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-item-pied { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 11px; color: #6b7280; min-width: 0; }
.cm-item-pied > svg { flex-shrink: 0; }
.cm-item-nature { display: flex; align-items: center; gap: 2px; }
.cm-item-reponses { margin-left: auto; flex-shrink: 0; }
.cm-lecture-seule { margin: 0; padding: 8px 12px; font-size: 11px; color: #6b7280; border-top: 1px solid #f3f4f6; }

.cm-avatar { border-radius: 9999px; color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cm-statut { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.cm-statut-nouvelle { background: #fef3c7; color: #92400e; }
.cm-statut-en_cours { background: #e0f2fe; color: #075985; }
.cm-statut-traitee { background: #d1fae5; color: #065f46; }
.cm-statut-refusee { background: #e5e7eb; color: #374151; }

.cm-fil { display: flex; flex-direction: column; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); box-sizing: border-box; }
.cm-fil-flottant { pointer-events: auto; position: absolute; max-height: 420px; }
.cm-fil-tete { padding: 8px 12px; border-bottom: 1px solid #f3f4f6; display: flex; flex-direction: column; gap: 6px; }
.cm-fil-cible { font-size: 12px; line-height: 16px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.cm-fil-nature { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #4b5563; }
.cm-fil-nature.demande { color: #b45309; }
.cm-lien-discret { margin-left: auto; font-weight: 400; font-size: 11px; color: #6b7280; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.cm-lien-discret:hover { color: #1f2937; text-decoration: underline; }
.cm-fil-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 4px; font-size: 12px; line-height: 16px; }
.cm-action { display: flex; align-items: center; gap: 4px; color: #4b5563; background: none; border: 0; padding: 0; cursor: pointer; font-size: 12px; line-height: 16px; font-family: inherit; }
.cm-action:hover { color: #111827; }
.cm-action.resoudre { color: #047857; } .cm-action.resoudre:hover { color: #064e3b; }
.cm-action.transformer { margin-left: auto; color: #b45309; } .cm-action.transformer:hover { text-decoration: underline; }
.cm-suivi { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cm-suivi.compact { font-size: 12px; line-height: 16px; }
.cm-suivi-lecture { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: #4b5563; }
.cm-champ { height: 28px; border-radius: 6px; border: 1px solid #e5e7eb; background: #fff; font-size: 12px; line-height: 16px; color: #1f2937; padding: 0 6px; font-family: inherit; box-sizing: border-box; }
.cm-champ-statut { font-weight: 500; }
.cm-champ-responsable { max-width: 140px; }
.cm-champ-date { width: 118px; }
.cm-fil-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 12px; }
.cm-auteur { font-size: 12px; line-height: 16px; font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-quand { font-size: 10px; color: #9ca3af; flex-shrink: 0; }
.cm-modifie { font-size: 10px; color: #9ca3af; font-style: italic; flex-shrink: 0; }
.cm-outils-message { margin-left: auto; display: flex; align-items: center; gap: 2px; opacity: 0; }
.cm-message:hover .cm-outils-message, .cm-outils-message:focus-within { opacity: 1; }
.cm-outil-message { padding: 2px; color: #9ca3af; background: none; border: 0; cursor: pointer; display: flex; }
.cm-outil-message:hover { color: #0035f5; } .cm-outil-message.danger:hover { color: #dc2626; }
.cm-confirmer { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 11px; }
.cm-supprimer { color: #dc2626; font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer; font-size: 11px; font-family: inherit; }
.cm-annuler { color: #6b7280; background: none; border: 0; padding: 0; cursor: pointer; font-size: 11px; font-family: inherit; }
.cm-supprimer:hover, .cm-annuler:hover { text-decoration: underline; }
.cm-corps { margin: 2px 0 0; padding-left: 28px; font-size: 14px; line-height: 20px; color: #1f2937; white-space: pre-wrap; overflow-wrap: break-word; }
.cm-mention { font-weight: 500; color: #0028c2; background: #f0f4ff; border-radius: 4px; padding: 0 2px; }
.cm-edition { margin-top: 4px; padding-left: 28px; display: flex; flex-direction: column; gap: 4px; }
.cm-aide { margin: 0; font-size: 10px; color: #9ca3af; }
.cm-resolu { margin: 0; font-size: 11px; color: #6b7280; }
.cm-fil-pied { padding: 4px 10px 10px; display: flex; flex-direction: column; gap: 4px; }

.cm-saisie { position: relative; }
.cm-suggestions { position: absolute; bottom: 100%; left: 0; margin-bottom: 4px; width: 100%; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); padding: 4px 0; z-index: 10; }
.cm-suggestion { width: 100%; display: flex; align-items: center; gap: 8px; padding: 4px 8px; text-align: left; font-size: 14px; line-height: 20px; color: #1f2937; background: none; border: 0; cursor: pointer; font-family: inherit; }
.cm-suggestion:hover { background: #f9fafb; }
.cm-suggestion.actif { background: #f0f4ff; }
.cm-suggestion-avatar { width: 20px; height: 20px; border-radius: 9999px; font-size: 9px; font-weight: 600; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cm-saisie-cadre { display: flex; align-items: flex-end; gap: 6px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; padding: 6px 8px; }
.cm-saisie-cadre:focus-within { border-color: #4d7aff; }
.cm-texte { flex: 1; resize: none; background: transparent; font-size: 14px; color: #111827; outline: none; border: 0; padding: 0; line-height: 20px; max-height: 160px; font-family: inherit; }
.cm-texte::placeholder { color: #9ca3af; }
.cm-envoyer { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: #0035f5; color: #fff; border: 0; cursor: pointer; flex-shrink: 0; padding: 0; }
.cm-envoyer:disabled { opacity: .3; cursor: default; }

/* ── Brassage réseau du panneau bas (PatchingPanel piloté, FilterBar, SwitchFrontView, PatchBoard) ── */
.br { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #f9fafb; font-size: 12px; line-height: 16px; }
.br-resume { flex-shrink: 0; background: #fff; border-bottom: 1px solid #e5e7eb; padding: 10px 16px 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.br-resume-item { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: #6b7280; }
.br-resume-item.ambre { color: #d97706; font-weight: 500; }
.br-resume-item.rouge { color: #dc2626; font-weight: 600; }
.br-resume-espace { width: 100%; height: 8px; }
.br-gras-fonce { font-weight: 600; color: #111827; }
.br-gras { font-weight: 600; }
.br-gris3 { color: #d1d5db; } .br-gris4 { color: #9ca3af; } .br-gris5 { color: #6b7280; } .br-gris6 { color: #4b5563; } .br-gris7 { color: #374151; }
.br-blanc { color: #fff; font-weight: 500; } .br-rouge3 { color: #fca5a5; } .br-italique { font-style: italic; }
.br-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.br-tronque { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-min0 { min-width: 0; }
.br-10 { font-size: 10px; }
.br-ambre5 { color: #f59e0b; } .br-brand { color: #0035f5; }
.br-normal { font-weight: 400; color: #6b7280; }

.br-filtres { flex-shrink: 0; background: #fff; border-bottom: 1px solid #e5e7eb; padding: 8px 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.br-filtres.nu { background: none; border: 0; padding: 0; }
.br-recherche { font-size: 12px; line-height: 16px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 10px; max-width: 100%; font-family: inherit; box-sizing: border-box; }
.br-recherche.large { width: 256px; } .br-recherche.etroite { width: 160px; }
.br-select { font-size: 12px; line-height: 16px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 8px; background: #fff; font-family: inherit; }
.br-reinit { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #9ca3af; margin-left: 4px; background: none; border: 0; cursor: pointer; font-family: inherit; transition: color .15s; }
.br-reinit:hover { color: #ef4444; }

.br-erreur { flex-shrink: 0; background: #fef2f2; border-bottom: 1px solid #fecaca; color: #b91c1c; font-size: 12px; line-height: 16px; padding: 8px 16px; display: flex; align-items: center; gap: 8px; }
.br-erreur > svg, .br-alerte-poe > svg { flex-shrink: 0; }
.br-erreur-fermer { margin-left: auto; color: #f87171; background: none; border: 0; cursor: pointer; }
.br-erreur-fermer:hover { color: #dc2626; }
.br-alerte-poe { flex-shrink: 0; background: #dc2626; color: #fff; font-size: 12px; line-height: 16px; padding: 8px 16px; display: flex; align-items: center; gap: 8px; }
.br-alerte-fermer { margin-left: auto; opacity: .7; background: none; border: 0; color: inherit; cursor: pointer; }
.br-alerte-fermer:hover { opacity: 1; }

/* Vue des switchs */
.br-faces { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 24px; }
.br-aucun { font-size: 14px; color: #9ca3af; font-style: italic; margin: 0; }
.br-carte { background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); border: 1px solid #e5e7eb; overflow: hidden; flex-shrink: 0; }
.br-carte-tete { padding: 10px 14px; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.br-repere { font-size: 12px; line-height: 16px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: #eef2ff; color: #4f46e5; flex-shrink: 0; }
.br-carte-nom { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-carte-ref { margin: 0; font-size: 11px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-facade { background: #1f2937; padding: 12px 14px; overflow-x: auto; }
.br-facade-vide { margin: 0; color: #9ca3af; font-size: 12px; font-style: italic; }
.br-rangee { display: flex; align-items: flex-end; gap: 8px; width: max-content; }
.br-rangee.haut { margin-bottom: 12px; }
.br-groupe { display: flex; align-items: flex-end; gap: 4px; }
.br-port { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.br-port-case { position: relative; width: 24px; height: 24px; box-sizing: border-box; border-radius: 2px; border: 1px solid; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.br-port-case.sfp { width: 32px; }
.br-port-case.survol { transform: scale(1.25); box-shadow: 0 10px 15px -3px rgba(0,0,0,.3); z-index: 10; }
.br-port-nom { font-size: 8px; font-weight: 700; color: #fff; line-height: 1; user-select: none; }
.br-port-poe { position: absolute; top: -6px; right: -6px; width: 10px; height: 10px; box-sizing: border-box; border-radius: 9999px; border: 1px solid #1f2937; display: flex; align-items: center; justify-content: center; line-height: 1; }
.br-port-poe span { font-size: 6px; }
.br-port-trunk { position: absolute; bottom: -6px; left: -6px; width: 12px; height: 12px; box-sizing: border-box; border-radius: 9999px; background: #38bdf8; border: 1px solid #1f2937; display: flex; align-items: center; justify-content: center; line-height: 1; font-size: 7px; font-weight: 700; color: #111827; }
.br-port-charge { font-size: 6.5px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; user-select: none; }
.br-bulle { pointer-events: none; position: fixed; z-index: 9999; width: 224px; transform: translateX(-50%); }
.br-bulle-corps { background: #111827; color: #fff; font-size: 11px; line-height: 16px; border-radius: 8px; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.br-bulle-corps p { margin: 0; }
.br-ligne { display: flex; align-items: center; gap: 6px; }
.br-badges { display: inline-flex; flex-wrap: wrap; gap: 2px; }
.br-badge { font-size: 9px; font-weight: 700; padding: 0 4px; border-radius: 4px; }
.br-badge-signal { font-weight: 600; }
.br-plus { font-size: 9px; color: #9ca3af; }
.br-tiret { color: #d1d5db; }
.br-legende { padding: 8px 14px; border-bottom: 1px solid #f3f4f6; display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 4px; font-size: 10px; color: #6b7280; }
.br-legende-item { display: flex; align-items: center; gap: 4px; }
.br-l-carre { width: 10px; height: 10px; box-sizing: border-box; border-radius: 2px; border: 1px solid #9ca3af; }
.br-l-carre.pointille { border-style: dashed; }
.br-l-rond { width: 10px; height: 10px; box-sizing: border-box; border-radius: 9999px; border: 1px solid #6b7280; }
.br-l-rond.rouge { background: #ef4444; }
.br-l-rond.trunk { background: #38bdf8; font-size: 7px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.br-l-charge { font-weight: 700; font-variant-numeric: tabular-nums; color: #9ca3af; }
.br-legende-plein { width: 100%; color: #9ca3af; }
.br-section { padding: 12px 14px; border-bottom: 1px solid #f3f4f6; }
.br-section-titre { margin: 0 0 8px; font-size: 12px; line-height: 16px; font-weight: 600; color: #374151; }
.br-grille-champs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1023px) { .br-grille-champs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .br-grille-champs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.br-champ { min-width: 0; }
.br-champ-lib { margin: 0; font-size: 9px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .025em; }
.br-champ-val { margin: 0; font-size: 12px; line-height: 16px; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-aucun-petit { margin: 0; font-size: 12px; line-height: 16px; color: #9ca3af; font-style: italic; }
.br-vlans { border: 1px solid #f3f4f6; border-radius: 8px; overflow: hidden; }
.br-vlans-ligne { display: grid; grid-template-columns: 1fr 70px 1fr 1fr 110px; gap: 8px; padding: 6px 12px; border-top: 1px solid #f3f4f6; align-items: center; font-size: 12px; line-height: 16px; }
.br-vlans-ligne.tete { background: #f9fafb; border-top: 0; font-size: 9px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .025em; line-height: 13.5px; }
.br-vlans-nom { display: flex; align-items: center; gap: 6px; min-width: 0; color: #1f2937; }
.br-vlans-pastille { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.br-jauges { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 12px; }
.br-jauge { flex: 1; min-width: 180px; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; padding: 16px; display: flex; flex-direction: column; align-items: center; }
.br-jauge-titre { margin: 0 0 8px; font-size: 12px; line-height: 16px; font-weight: 600; color: #6b7280; }
.br-jauge-cercle { position: relative; width: 112px; height: 112px; }
.br-jauge-cercle svg { width: 112px; height: 112px; transform: rotate(-90deg); }
.br-jauge-valeur { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 28px; font-weight: 700; color: #111827; }
.br-jauge-sous { margin: 8px 0 0; font-size: 11px; color: #9ca3af; text-align: center; }

/* Vue patch (PatchBoard) */
.br-board { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; background: #fff; }
.br-board-barre { display: flex; align-items: center; gap: 8px; padding: 6px 12px; flex-shrink: 0; border-bottom: 1px solid #f3f4f6; }
.br-modes { display: flex; align-items: center; background: #f3f4f6; border-radius: 6px; padding: 2px; }
.br-mode { height: 24px; padding: 0 8px; font-size: 11px; border-radius: 4px; display: inline-flex; align-items: center; gap: 4px; color: #6b7280; background: none; border: 0; cursor: pointer; font-family: inherit; }
.br-mode.actif { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); color: #111827; font-weight: 500; }
.br-rech { position: relative; }
.br-rech-icone { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.br-rech-champ { height: 28px; width: 192px; padding: 0 8px 0 24px; font-size: 11px; border-radius: 6px; border: 1px solid #e5e7eb; background: #fff; outline: none; font-family: inherit; box-sizing: border-box; }
.br-rech-champ:focus { border-color: #4d7aff; }
.br-pilule { height: 24px; padding: 0 8px; font-size: 11px; border-radius: 9999px; border: 1px solid #e5e7eb; color: #6b7280; background: none; cursor: pointer; transition: background-color .15s; font-family: inherit; white-space: nowrap; }
.br-pilule:hover { background: #f9fafb; }
.br-pilule.actif-ambre { background: #fffbeb; border-color: #fcd34d; color: #b45309; }
.br-pilule.actif { background: #f0f4ff; border-color: #85a8ff; color: #0028c2; }
.br-board-poe { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #dc2626; }
.br-auto { margin-left: auto; height: 28px; padding: 0 10px; font-size: 11px; border-radius: 6px; background: #0035f5; color: #fff; font-weight: 500; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-family: inherit; white-space: nowrap; }
.br-auto.sans-marge { margin-left: 0; }
.br-auto:hover { background: #0028c2; }
.br-auto:disabled { opacity: .4; cursor: default; }
.br-poe-besoin { font-size: 9px; font-weight: 700; padding: 0 4px; border-radius: 4px; background: #fffbeb; color: #b45309; flex-shrink: 0; }
.br-board-corps { flex: 1; min-height: 0; display: flex; }
.br-vide-centre { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #9ca3af; }
.br-appareils { width: 320px; flex-shrink: 0; border-right: 1px solid #f3f4f6; display: flex; flex-direction: column; }
.br-appareils-aide { margin: 0; padding: 6px 12px; font-size: 10px; color: #9ca3af; border-bottom: 1px solid #f9fafb; flex-shrink: 0; }
.br-selection { margin-left: 8px; color: #0035f5; background: none; border: 0; cursor: pointer; font-size: 10px; padding: 0; font-family: inherit; }
.br-appareils-liste { flex: 1; min-height: 0; overflow: auto; padding-bottom: 8px; }
.br-zone { position: sticky; top: 0; background: rgba(255,255,255,.95); padding: 8px 12px 2px; margin: 0; font-size: 10px; font-weight: 600; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-appareil { margin: 2px 8px; padding: 4px 8px; border-radius: 6px; border: 1px solid #f3f4f6; display: flex; align-items: center; gap: 6px; font-size: 11px; cursor: grab; user-select: none; }
.br-appareil:hover { border-color: #d1d5db; }
.br-appareil:active { cursor: grabbing; }
.br-appareil.choisi { border-color: #4d7aff; background: #f0f4ff; }
.br-point { width: 6px; height: 6px; border-radius: 9999px; flex-shrink: 0; }
.br-point.vert { background: #10b981; } .br-point.ambre { background: #fbbf24; }
.br-appareil-ref { font-weight: 600; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
.br-appareil-port { color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-appareil-vers { margin-left: auto; font-size: 10px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0; max-width: 90px; }
.br-debrancher { opacity: 0; color: #9ca3af; flex-shrink: 0; background: none; border: 0; padding: 0; cursor: pointer; display: flex; }
.br-appareil:hover .br-debrancher { opacity: 1; }
.br-debrancher:hover { color: #ef4444; }
.br-tout-brasse { margin: 0; padding: 16px 12px; font-size: 11px; color: #9ca3af; text-align: center; }
.br-switch { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.br-switch-onglets { display: flex; align-items: center; gap: 4px; padding: 6px 12px 0; flex-shrink: 0; overflow-x: auto; border-bottom: 1px solid #f3f4f6; }
.br-switch-onglet { flex-shrink: 0; padding: 4px 10px; font-size: 11px; border-radius: 6px 6px 0 0; border: 1px solid transparent; border-bottom: 0; margin-bottom: -1px; color: #6b7280; background: none; cursor: pointer; font-family: inherit; }
.br-switch-onglet:hover { color: #1f2937; }
.br-switch-onglet.actif { background: #fff; border-color: #e5e7eb; font-weight: 600; color: #111827; }
.br-switch-occupe { margin-left: 4px; font-variant-numeric: tabular-nums; color: #9ca3af; font-weight: 400; }
.br-switch-occupe.plein { color: #ef4444; }
.br-switch-zone { flex: 1; min-height: 0; overflow: auto; padding: 12px; }
.br-switch-info { margin: 0 0 8px; font-size: 11px; color: #6b7280; display: flex; align-items: center; gap: 4px; }
.br-noms { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; font-size: 11px; color: #4b5563; }
.br-noms input { width: 14px; height: 14px; margin: 0; }
.br-pinceaux { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.br-pinceaux-titre { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: #9ca3af; margin-right: 4px; }
.br-pinceau { height: 24px; padding: 0 8px; font-size: 10px; font-weight: 700; border-radius: 9999px; border: 1px solid; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; background: none; font-family: inherit; }
.br-pinceau.sans { font-weight: 400; border-style: dashed; border-color: #d1d5db; color: #6b7280; }
.br-pinceau.arme { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #1a4eff; }
.br-pinceau-point { width: 8px; height: 8px; border-radius: 9999px; }
.br-pinceau-actif { font-size: 10px; color: #0035f5; margin-left: 4px; }
.br-souligne { text-decoration: underline; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font-size: 10px; font-family: inherit; }
.br-face { display: inline-flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 8px; background: #1f2937; box-shadow: inset 0 2px 4px rgba(0,0,0,.05); }
.br-face.pinceau { cursor: crosshair; }
.br-face-rangee { display: flex; gap: 4px; }
.br-case { position: relative; border-radius: 3px; border: 1px solid #4b5563; font-size: 9px; line-height: 1.25; display: flex; flex-direction: column; transition: transform .15s; cursor: pointer; font-family: inherit; box-sizing: border-box; }
.br-case.noms { width: 92px; height: 54px; padding: 2px 4px; align-items: stretch; justify-content: flex-start; text-align: left; }
.br-case.compacte { width: 44px; height: 40px; padding: 0; align-items: center; justify-content: center; }
.br-case.surcharge { border-color: #ef4444; }
.br-case.cible { transform: scale(1.1); box-shadow: 0 0 0 2px #4d7aff; }
.br-case.focus { box-shadow: 0 0 0 2px #fff; }
.br-case-l1 { display: flex; align-items: baseline; gap: 4px; padding-right: 8px; min-width: 0; }
.br-case-num { font-weight: 700; flex-shrink: 0; }
.br-case-id { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; font-weight: 600; opacity: .8; }
.br-case-nom { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; font-size: 8.5px; line-height: 1.15; margin-top: 2px; opacity: .95; }
.br-case-ref { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40px; opacity: .9; }
.br-case-poe { position: absolute; top: 0; right: 2px; font-size: 8px; color: #fcd34d; }
.br-case-vlan { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 0 0 2px 2px; }
.br-case-trunk { position: absolute; top: 0; left: 2px; font-size: 7px; font-weight: 700; opacity: .8; }
.br-board-legende { margin-top: 8px; display: flex; align-items: center; gap: 12px; font-size: 10px; color: #9ca3af; flex-wrap: wrap; }
.br-l-sq { width: 10px; height: 10px; border-radius: 2px; box-sizing: border-box; }
.br-focus { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; border: 1px solid #e5e7eb; font-size: 11px; }
.br-focus-debrancher { display: inline-flex; align-items: center; gap: 4px; color: #ef4444; background: none; border: 0; cursor: pointer; font-size: 11px; font-family: inherit; padding: 0; }
.br-focus-debrancher:hover { color: #dc2626; }
.br-liste { flex: 1; min-height: 0; overflow: auto; }
.br-table { font-size: 12px; border-collapse: separate; border-spacing: 0; min-width: 100%; }
.br-table thead { position: sticky; top: 0; z-index: 1; background: #f9fafb; }
.br-table th { padding: 6px 8px; text-align: left; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: #6b7280; white-space: nowrap; border-right: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.br-table th.large { min-width: 150px; }
.br-table td { padding: 0 8px; height: 28px; border-right: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6; white-space: nowrap; }
.br-table tbody tr:hover { background: rgba(249,250,251,.7); }
.br-td-zone { color: #9ca3af; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.br-td-appareil { font-weight: 600; color: #1f2937; }
.br-td-port { color: #4b5563; }
.br-td-select { height: 24px; width: 100%; font-size: 11px; background: transparent; outline: none; border: 0; padding: 0; border-radius: 0; font-family: inherit; }
.br-td-select:disabled { opacity: .6; }
.br-td-code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 10px; color: #6b7280; }
.br-plan { position: absolute; inset: 0; z-index: 10; background: rgba(255,255,255,.97); backdrop-filter: blur(4px); display: flex; flex-direction: column; }
.br-plan-tete { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #e5e7eb; flex-shrink: 0; }
.br-plan-titre { font-size: 12px; line-height: 16px; font-weight: 600; color: #111827; }
.br-plan-aide { font-size: 10px; color: #9ca3af; }
.br-plan-annuler { margin-left: auto; height: 28px; padding: 0 10px; font-size: 11px; border-radius: 6px; border: 1px solid #e5e7eb; color: #4b5563; background: #fff; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-family: inherit; }
.br-plan-corps { flex: 1; min-height: 0; overflow: auto; }
.br-plan-table { font-size: 12px; width: 100%; border-collapse: collapse; }
.br-plan-table tr { border-bottom: 1px solid #f9fafb; }
.br-plan-table tr.exclu { opacity: .4; }
.br-plan-table td { padding: 4px 8px; }
.br-plan-case { padding-left: 12px !important; padding-right: 4px !important; width: 24px; }
.br-plan-zone { color: #9ca3af; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-plan-app { font-weight: 600; color: #1f2937; white-space: nowrap; }
.br-plan-fleche { color: #9ca3af; }
.br-plan-raison { font-size: 10px; color: #9ca3af; }
.br-plan-raison.ambre { color: #d97706; }
.br-plan-sans { padding: 8px 12px; font-size: 11px; color: #b45309; }
.br-plan-sans p { margin: 0; }
.br-plan-sans .br-gras { display: flex; align-items: center; gap: 4px; }

/* ── Page « Demande de modification » (RequestsBoard) ─────────────────────────────────────────── */
.page-demandes #demandes { max-width: 72rem; margin: 0 auto; }
.dm-tete { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.dm-titres { min-width: 0; flex: 1; }
.dm-titre { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; color: #111827; }
.dm-sous { margin: 0; font-size: 14px; line-height: 20px; color: #6b7280; }
.dm-nouvelle { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; background: #0035f5; color: #fff; font-size: 14px; line-height: 20px; font-weight: 500; border: 0; cursor: pointer; }
.dm-nouvelle:hover { background: #0028c2; }
.dm-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.dm-statuts { display: flex; flex-wrap: wrap; gap: 4px; }
.dm-statut { padding: 4px 10px; border-radius: 8px; font-size: 12px; line-height: 16px; font-weight: 500; border: 1px solid #e5e7eb; color: #4b5563; background: none; cursor: pointer; transition: background-color .15s; }
.dm-statut:hover { background: #f9fafb; }
.dm-statut.actif { background: #111827; color: #fff; border-color: #111827; }
.dm-compte { opacity: .6; }
.dm-select { height: 32px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; font-size: 12px; padding: 0 8px; color: #374151; }
.dm-recherche { position: relative; margin-left: auto; display: block; }
.dm-recherche-icone { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.dm-recherche input { height: 32px; width: 192px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; font-size: 12px; padding: 0 8px 0 28px; color: #1f2937; box-sizing: border-box; }
.dm-carte { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); overflow: hidden; }
.dm-ligne-tete { display: grid; grid-template-columns: 92px minmax(0,1fr) 200px 140px 96px; gap: 12px; padding: 8px 16px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: #6b7280; border-bottom: 1px solid #f3f4f6; }
.dm-ligne { width: 100%; text-align: left; display: grid; grid-template-columns: 92px minmax(0,1fr) 200px 140px 96px; column-gap: 12px; row-gap: 4px; padding: 12px 16px; border: 0; border-bottom: 1px solid #f9fafb; background: none; cursor: pointer; font: inherit; }
@media (max-width: 767px) { .dm-ligne-tete { display: none; } .dm-ligne { grid-template-columns: 1fr; } }
.dm-ligne:hover { background: #f9fafb; }
.dm-ligne.ouverte { background: rgba(255,251,235,.7); }
.dm-ligne.resolue { opacity: .7; }
.dm-min0 { min-width: 0; }
.dm-corps { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 20px; color: #111827; }
.dm-auteur { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 11px; color: #6b7280; }
.dm-ou { font-size: 12px; line-height: 16px; }
.dm-ou-doc { display: block; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-ou-ancre { display: block; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-resp { font-size: 12px; line-height: 16px; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-echeance { font-size: 12px; line-height: 16px; color: #4b5563; }
.dm-echeance.retard { color: #dc2626; font-weight: 600; }
.dm-gris { color: #9ca3af; }
.dm-vide { padding: 32px 16px; margin: 0; text-align: center; font-size: 14px; color: #6b7280; }
.dm-vide.gris { color: #9ca3af; }
.dm-volet { position: fixed; right: 16px; top: 16px; bottom: 16px; z-index: 40; width: min(400px, calc(100vw - 2rem)); }
.dm-voir { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; font-weight: 500; color: #0028c2; text-decoration: none; }
.dm-voir:hover { text-decoration: underline; }
.dm-nouvelle-carte { position: fixed; right: 16px; top: 16px; z-index: 40; width: min(400px, calc(100vw - 2rem)); box-sizing: border-box; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.dm-nouvelle-tete { display: flex; align-items: center; gap: 8px; }
.dm-brand { color: #0035f5; }
.dm-nouvelle-titre { font-size: 14px; line-height: 20px; font-weight: 600; color: #111827; }
.dm-fermer { margin-left: auto; padding: 4px; color: #9ca3af; background: none; border: 0; cursor: pointer; display: flex; }
.dm-fermer:hover { color: #374151; }
.dm-champ { display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 16px; color: #4b5563; }
.dm-saisie { width: 100%; height: 32px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; font-size: 14px; padding: 0 8px; color: #1f2937; box-sizing: border-box; }
.dm-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dm-aide { margin: 0; font-size: 11px; color: #6b7280; }
.dm-erreur { margin: 0; font-size: 12px; color: #dc2626; }

/* Bouts déplaçables d'une liaison tracée (EdgeUpdaterAnchor), et la liaison en cours de rebranchement */
.calque-liens circle.trait-bout { fill: transparent; stroke: transparent; pointer-events: all; cursor: move; }
.calque-liens g.mise-a-jour path.trait { stroke: #777; }

/* ── Page Bibliothèque (app/dashboard/library/page.tsx) ───────────────────────────────────────── */
body.page-bibliotheque { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.bi-page { flex: 1; min-height: 0; display: flex; overflow: hidden; background: #f9fafb; }
.bi-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bi-filtres { width: 208px; flex-shrink: 0; border-right: 1px solid #f3f4f6; background: rgba(249,250,251,.4); overflow-y: auto; display: flex; flex-direction: column; }
.bi-filtres-tete { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f3f4f6; }
.bi-filtres-titre { font-size: 14px; line-height: 20px; font-weight: 600; color: #1f2937; }
.bi-effacer { font-size: 11px; color: #9ca3af; display: flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.bi-effacer:hover { color: #ef4444; }
.bi-section { border-bottom: 1px solid #f3f4f6; }
.bi-section:last-child { border-bottom: 0; }
.bi-section-tete { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; text-align: left; background: none; border: 0; cursor: pointer; font-family: inherit; }
.bi-section-tete:hover { background: #f9fafb; }
.bi-section-titre { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
.bi-section-chevron { color: #9ca3af; font-size: 12px; transition: transform .15s; }
.bi-section-chevron.ouvert { transform: rotate(180deg); }
.bi-section-corps { padding: 0 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.bi-check { position: relative; display: flex; align-items: center; gap: 10px; padding: 4px 0; cursor: pointer; user-select: none; }
.bi-check-case { width: 16px; height: 16px; box-sizing: border-box; border-radius: 4px; display: flex; align-items: center; justify-content: center; border: 1px solid #d1d5db; background: #fff; flex-shrink: 0; color: #fff; transition: all .15s; }
.bi-check:hover .bi-check-case:not(.coche) { border-color: #9ca3af; }
.bi-check-label { font-size: 14px; line-height: 20px; color: #374151; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bi-check:hover .bi-check-label { color: #111827; }
.bi-check-compte { font-size: 10px; color: #9ca3af; flex-shrink: 0; }
.bi-voir-exempt { position: relative; display: flex; align-items: center; gap: 8px; padding-top: 8px; margin-top: 4px; border-top: 1px solid #f3f4f6; cursor: pointer; user-select: none; font-size: 11px; color: #6b7280; }
.bi-voir-exempt input { width: 14px; height: 14px; margin: 0; padding: 0; }
.bi-resultats { flex: 1; overflow-y: auto; transition: margin .3s; }
.bi-resultats.decale { margin-right: 580px; }
.bi-contenu { padding: 24px; }
.bi-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.bi-titres { display: flex; align-items: center; gap: 12px; }
.bi-titre-icone { width: 40px; height: 40px; border-radius: 12px; background: #dce6ff; color: #0035f5; display: flex; align-items: center; justify-content: center; }
.bi-titre { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; color: #111827; }
.bi-sous { margin: 0; font-size: 14px; line-height: 20px; color: #6b7280; }
.bi-boutons { display: flex; align-items: center; gap: 8px; }
.bi-importer { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 14px; line-height: 20px; font-weight: 500; border: 1px solid #e5e7eb; border-radius: 12px; color: #4b5563; background: #fff; cursor: pointer; font-family: inherit; }
.bi-importer:hover { background: #f9fafb; }
.bi-ajouter { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 14px; line-height: 20px; font-weight: 500; border: 0; border-radius: 12px; color: #fff; background: #0035f5; cursor: pointer; font-family: inherit; }
.bi-ajouter:hover { background: #0028c2; }
.bi-barre { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.bi-recherche { position: relative; flex: 1; }
.bi-recherche-icone { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
.bi-recherche input { width: 100%; box-sizing: border-box; padding: 8px 32px 8px 36px; font-size: 14px; line-height: 20px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; color: #111827; font-family: inherit; }
.bi-recherche input:focus { outline: none; box-shadow: 0 0 0 2px #4d7aff; }
.bi-recherche-effacer { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #9ca3af; background: none; border: 0; padding: 0; cursor: pointer; display: flex; }
.bi-tri { position: relative; }
.bi-tri select { appearance: none; padding: 8px 32px; font-size: 14px; line-height: 20px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; color: #374151; cursor: pointer; font-family: inherit; }
.bi-tri-icone { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
.bi-outils-ia { display: contents; }
.bi-releve, .bi-outil { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 14px; line-height: 20px; font-weight: 500; border-radius: 12px; white-space: nowrap; background: #fff; cursor: pointer; font-family: inherit; }
.bi-releve { border: 1px solid #a7f3d0; color: #047857; }
.bi-releve:hover { background: #ecfdf5; }
.bi-outil { border: 1px solid #e5e7eb; color: #4b5563; }
.bi-outil:hover { color: #4f46e5; background: #eef2ff; }
.bi-releve:disabled, .bi-outil:disabled { opacity: .4; cursor: default; }
.bi-lg { display: none; }
@media (min-width: 1024px) { .bi-lg { display: inline; } }
.bi-vues { display: flex; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.bi-vue, .bi-vue-apercu { padding: 8px; color: #6b7280; background: #fff; border: 0; cursor: pointer; display: flex; transition: background-color .15s; }
.bi-vue:hover, .bi-vue-apercu:hover { background: #f9fafb; }
.bi-vue.actif, .bi-vue-apercu.actif { background: #111827; color: #fff; }
.bi-vue-apercu { border: 1px solid #e5e7eb; border-radius: 12px; display: none; }
@media (min-width: 1280px) { .bi-vue-apercu { display: flex; } }
.bi-puces { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.bi-puce { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; padding: 2px 10px; border-radius: 9999px; border: 1px solid; }
.bi-puce.neutre { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }
.bi-puce-x { margin-left: 2px; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; display: flex; }
.bi-puce-x:hover { opacity: .7; }
.bi-zone { display: flex; align-items: flex-start; gap: 16px; }
.bi-res { flex: 1; min-width: 0; }
.bi-chargement { text-align: center; padding: 64px 0; color: #9ca3af; }
.bi-vide { text-align: center; padding: 64px 0; color: #d1d5db; display: flex; flex-direction: column; align-items: center; }
.bi-vide > svg { margin-bottom: 12px; }
.bi-vide-titre { margin: 0; color: #6b7280; font-weight: 500; }
.bi-vide-texte { margin: 4px 0 0; color: #9ca3af; font-size: 14px; }
.bi-vide .bi-ajouter { margin-top: 16px; }
.bi-lien { margin-top: 12px; font-size: 14px; color: #0035f5; display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; font-family: inherit; }
.bi-grille { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 640px) { .bi-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bi-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .bi-grille:not(.avec-apercu) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1536px) { .bi-grille.avec-apercu { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bi-carte { background: #fff; border-radius: 16px; border: 1px solid #e5e7eb; overflow: hidden; display: flex; flex-direction: column; transition: all .15s; }
.bi-carte:hover { border-color: #d1d5db; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.bi-carte-image { position: relative; display: flex; align-items: center; justify-content: center; height: 144px; overflow: hidden; }
.bi-carte-image > img { width: 100%; height: 100%; object-fit: contain; padding: 16px; box-sizing: border-box; }
.bi-carte-icone { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.bi-logo { position: absolute; bottom: 8px; right: 8px; width: 36px; height: 36px; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1); border: 1px solid #f3f4f6; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bi-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.bi-actions-carte { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; background: rgba(0,0,0,0); transition: all .15s; }
.bi-carte:hover .bi-actions-carte { opacity: 1; background: rgba(0,0,0,.05); }
.bi-actions-carte .bi-act { background: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); border-radius: 12px; padding: 8px; color: #4b5563; border: 0; cursor: pointer; display: flex; }
.bi-actions-carte .bi-act:hover { background: #f9fafb; color: #4f46e5; }
.bi-actions-carte .bi-act.indigo { color: #6366f1; }
.bi-actions-carte .bi-act.rouge { color: #f87171; }
.bi-actions-carte .bi-act.rouge:hover { background: #fef2f2; }
.bi-carte-corps { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.bi-carte-corps p { margin: 0; }
.bi-carte-nom { font-weight: 700; color: #111827; font-size: 14px; line-height: 1.25; }
.bi-gris { font-size: 12px; line-height: 16px; color: #9ca3af; margin: 2px 0 0; }
.bi-tronque { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bi-pilules { display: flex; flex-wrap: wrap; gap: 4px; }
.bi-pilule { font-size: 10px; padding: 2px 6px; border-radius: 9999px; font-weight: 500; }
.bi-manques { display: flex; flex-wrap: wrap; gap: 4px; }
.bi-manque { font-size: 10px; font-weight: 500; padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(253,230,138,.7); background: #fffbeb; color: #b45309; font-family: inherit; }
.bi-manque.exempt { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; text-decoration: line-through; }
.bi-manque.cliquable { cursor: pointer; transition: opacity .15s; }
.bi-manque.cliquable:hover { opacity: .7; }
.bi-liste { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; }
.bi-ligne { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #f3f4f6; transition: background-color .15s; }
.bi-ligne:last-child { border-bottom: 0; }
.bi-ligne:hover { background: #f9fafb; }
.bi-ligne-image { width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bi-ligne-image img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.bi-ligne-textes { flex: 1; min-width: 0; }
.bi-ligne-textes p { margin: 0; }
.bi-ligne-nom { font-size: 14px; line-height: 20px; font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bi-ligne-cat { width: 128px; flex-shrink: 0; display: none; justify-content: flex-end; }
@media (min-width: 640px) { .bi-ligne-cat { display: flex; } }
.bi-ligne-cat-pastille { font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 9999px; background: #f3f4f6; color: #4b5563; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.bi-ligne-sig { width: 208px; flex-shrink: 0; display: none; justify-content: flex-end; }
@media (min-width: 768px) { .bi-ligne-sig { display: flex; } }
.bi-actions-ligne { width: 112px; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.bi-actions-ligne .bi-act { padding: 6px; border-radius: 8px; color: #9ca3af; background: none; border: 0; cursor: pointer; display: flex; opacity: 0; transition: all .15s; }
.bi-ligne:hover .bi-actions-ligne .bi-act { opacity: 1; }
.bi-actions-ligne .bi-act:hover { color: #4f46e5; background: #eef2ff; }
.bi-actions-ligne .bi-act.rouge:hover { color: #ef4444; background: #fef2f2; }
.bi-apercu { width: 320px; flex-shrink: 0; position: sticky; top: 0; max-height: calc(100vh - 7rem); overflow-y: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 16px; box-sizing: border-box; }
.bi-apercu-vide { padding: 64px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #9ca3af; }
.bi-apercu-vide p { margin: 0; font-size: 12px; }
.bi-modale { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; }
.bi-modale-voile { position: absolute; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(4px); }
.bi-modale-boite { position: relative; background: #fff; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); width: 100%; max-width: 32rem; margin: 0 16px; max-height: 85vh; overflow-y: auto; }
.bi-modale-tete { display: flex; align-items: center; gap: 8px; padding: 20px; border-bottom: 1px solid #f3f4f6; }
.bi-modale-titre { margin: 0; flex: 1; font-size: 18px; line-height: 28px; font-weight: 700; color: #111827; }
.bi-modale-fermer { padding: 6px; border-radius: 8px; background: none; border: 0; color: #6b7280; cursor: pointer; display: flex; }
.bi-modale-fermer:hover { background: #f3f4f6; }
.bi-modale-corps { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.bi-choix { width: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; text-align: left; cursor: pointer; font-family: inherit; transition: all .15s; }
.bi-choix:hover { border-color: #d1d5db; background: #f9fafb; }
.bi-choix.ia:hover { border-color: #a5b4fc; background: rgba(238,242,255,.4); }
.bi-choix-icone { flex-shrink: 0; margin-top: 2px; color: #6b7280; }
.bi-choix.ia .bi-choix-icone { color: #6366f1; }
.bi-choix-titre { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: #1f2937; }
.bi-choix-texte { margin: 2px 0 0; font-size: 12px; line-height: 16px; color: #6b7280; }
.bi-message { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 70; background: #111827; color: #fff; font-size: 13px; padding: 8px 14px; border-radius: 8px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.2); }

/* ── Onglets de la bibliothèque (LibraryNav), Fournisseurs, Marques, choix du logo ───────────────── */
.bn-onglets { display: flex; align-items: center; gap: 4px; padding: 12px 24px 0; border-bottom: 1px solid #e5e7eb; background: #fff; flex-shrink: 0; }
.bn-onglet { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 14px; line-height: 20px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; color: #6b7280; text-decoration: none; transition: color .15s; }
.bn-onglet:hover { color: #1f2937; border-bottom-color: #e5e7eb; }
.bn-onglet.actif { border-bottom-color: #0035f5; color: #0028c2; }
.rf-page { flex: 1; min-height: 0; overflow-y: auto; padding: 24px; background: #f9fafb; }
.rf-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.rf-titre { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; color: #111827; }
.rf-sous { margin: 0; font-size: 14px; line-height: 20px; color: #6b7280; }
.rf-grille { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .rf-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rf-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rf-carte { background: #fff; border-radius: 16px; border: 1px solid #e5e7eb; padding: 16px; transition: all .15s; }
.rf-carte:hover { border-color: #d1d5db; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.rf-carte-tete { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.rf-logo { width: 40px; height: 40px; box-sizing: border-box; border-radius: 12px; background: #f9fafb; border: 1px solid #f3f4f6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; color: #d1d5db; }
.rf-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.rf-min0 { flex: 1; min-width: 0; }
.rf-min0 p { margin: 0; }
.rf-nom { font-weight: 700; color: #111827; font-size: 14px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-gris { font-size: 12px; line-height: 16px; color: #9ca3af; margin: 0; }
.rf-usage { font-size: 11px; color: #9ca3af; }
.rf-garantie { display: inline-flex !important; align-items: center; gap: 4px; margin-top: 4px !important; padding: 2px 6px; border-radius: 9999px; background: #ecfdf5; font-size: 10px; font-weight: 500; color: #047857; }
.rf-exceptions { color: #d97706; }
.rf-sans-garantie { margin-top: 4px !important; font-size: 10px; color: #d97706; }
.rf-actions { display: flex; gap: 4px; opacity: 0; transition: opacity .15s; flex-shrink: 0; }
.rf-carte:hover .rf-actions { opacity: 1; }
.rf-act { padding: 6px; border-radius: 8px; color: #9ca3af; background: none; border: 0; cursor: pointer; display: flex; }
.rf-act:hover { color: #4f46e5; background: #eef2ff; }
.rf-act.rouge:hover { color: #ef4444; background: #fef2f2; }
.rf-details { display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 16px; color: #6b7280; }
.rf-detail { display: flex; align-items: center; gap: 6px; margin: 0; overflow: hidden; white-space: nowrap; font-size: 12px; line-height: 16px; color: #6b7280; }
.rf-detail > svg { flex-shrink: 0; }
.rf-lien { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.rf-lien:hover { color: #4f46e5; }
.rf-fournisseurs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.rf-fournisseur { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 9999px; background: #f3f4f6; color: #4b5563; }
.rf-modale { max-width: 28rem; max-height: 90vh; }
.rf-form { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.rf-label { display: block; font-size: 14px; line-height: 20px; font-weight: 500; color: #374151; margin-bottom: 4px; }
.rf-label-petit { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: #4b5563; margin-bottom: 4px; }
.rf-mb2 { margin-bottom: 8px !important; }
.rf-mt3 { margin-top: 12px; }
.rf-form .input { width: 100%; box-sizing: border-box; }
.rf-zone { resize: none; }
.rf-erreur { margin: 4px 0 0; font-size: 12px; color: #dc2626; }
.rf-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rf-trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rf-deux-cols { grid-column: span 2 / span 2; }
.rf-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-puce { font-size: 12px; line-height: 16px; padding: 4px 10px; border-radius: 9999px; font-weight: 500; border: 1px solid #e5e7eb; color: #6b7280; background: #fff; cursor: pointer; transition: all .15s; font-family: inherit; }
.rf-puce:hover { border-color: #d1d5db; }
.rf-puce.actif { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.rf-garantie-zone { padding-top: 8px; border-top: 1px solid #f3f4f6; }
.rf-garantie-titre { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: #374151; }
.rf-gris-normal { font-weight: 400; color: #9ca3af; }
.rf-exceptions-liste { display: flex; flex-direction: column; gap: 8px; }
.rf-exception { display: flex; align-items: center; gap: 8px; }
.rf-flex1 { flex: 1; }
.rf-form .input.rf-w24 { width: 96px; flex-shrink: 0; }
.rf-ajout-exception { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 12px; border-radius: 8px; border: 1px solid #e5e7eb; color: #374151; background: #fff; cursor: pointer; font-family: inherit; }
.rf-ajout-exception:hover { background: #f9fafb; }
.rf-aide { margin: 4px 0 0; font-size: 11px; color: #9ca3af; }
.rf-pied { display: flex; gap: 12px; padding-top: 8px; }
.rf-valider { flex: 1; justify-content: center; }
.rf-valider:disabled { opacity: .5; cursor: default; }
.rf-annuler { padding: 8px 16px; font-size: 14px; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; color: #374151; cursor: pointer; font-family: inherit; }
.lp-ligne { display: flex; gap: 12px; align-items: flex-start; }
.lp-vignette { width: 64px; height: 64px; box-sizing: border-box; border-radius: 12px; border: 2px dashed #e5e7eb; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; cursor: pointer; color: #d1d5db; transition: border-color .15s; }
.lp-vignette:hover { border-color: #4d7aff; }
.lp-vignette img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.lp-corps { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.lp-boutons { display: flex; gap: 8px; }
.lp-bouton { font-size: 12px; padding: 6px 12px; border: 1px solid #e5e7eb; border-radius: 8px; color: #4b5563; background: #fff; cursor: pointer; font-family: inherit; }
.lp-bouton:hover { background: #f9fafb; }
.lp-chercher { font-size: 12px; padding: 6px 12px; border: 1px dashed #c7d2fe; border-radius: 8px; color: #4f46e5; background: #fff; cursor: pointer; display: flex; align-items: center; gap: 4px; font-family: inherit; }
.lp-chercher:disabled { opacity: .4; cursor: not-allowed; }
.lp-url { font-size: 12px !important; }
.lp-pied { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 4px; }
.lp-retirer { font-size: 11px; color: #ef4444; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }

/* La cloche dans l’en-tête des pages : pas l’habillage des boutons de l’en-tête */
header.barre .cb-cloche { border: 0; background: none; padding: 0; }

/* Prix d'une fiche (LibraryPricesEditor) */
.lpe { display: flex; flex-direction: column; gap: 8px; }
.lpe-tete { display: flex; align-items: center; justify-content: space-between; }
.lpe-titre { font-size: 12px; line-height: 16px; font-weight: 500; color: #4b5563; }
.lpe-retenu { font-size: 11px; color: #6b7280; }
.lpe-retenu strong { color: #1f2937; }
.lpe-bloc { border-radius: 8px; border: 1px solid #f3f4f6; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.lpe-bloc.distributeur { border-color: #e0e7ff; background: rgba(238,242,255,.4); }
.lpe-grille2 { display: grid; grid-template-columns: 1fr 7rem; gap: 8px; align-items: center; }
.lpe-grille3 { display: grid; grid-template-columns: 1fr 7rem auto; gap: 8px; align-items: center; }
.lpe-libelle { font-size: 12px; color: #6b7280; }
.lpe-input { width: 100%; box-sizing: border-box; padding: 6px 8px; font-size: 14px; line-height: 20px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; color: #1f2937; font-family: inherit; }
.lpe-input:focus { outline: none; box-shadow: 0 0 0 2px #a5b4fc; border-color: #818cf8; }
.lpe-input::placeholder { color: #d1d5db; }
.lpe-input.droite { text-align: right; }
.lpe-input.lpe-petit, .lpe-petit { font-size: 12px; }
.lpe-retirer { padding: 4px; color: #9ca3af; background: none; border: 0; cursor: pointer; display: flex; }
.lpe-retirer:hover { color: #ef4444; }
.lpe-vide { width: 20px; }
.lpe-pied { display: flex; align-items: center; justify-content: space-between; }
.lpe-ajout { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #4f46e5; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.lpe-historique { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #6b7280; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.lpe-ajout:hover, .lpe-historique:hover { text-decoration: underline; }
.lpe-aide { margin: 0; font-size: 11px; color: #9ca3af; }
.lpe-histo { border-radius: 8px; border: 1px solid #f3f4f6; padding: 8px; font-size: 12px; max-height: 192px; overflow-y: auto; }
.lpe-histo table { width: 100%; border-collapse: collapse; }
.lpe-histo tr { border-bottom: 1px solid #f9fafb; }
.lpe-histo tr:last-child { border-bottom: 0; }
.lpe-h-date { padding: 4px 8px 4px 0; color: #6b7280; white-space: nowrap; }
.lpe-h-qui { padding: 4px 8px 4px 0; color: #4b5563; }
.lpe-h-montant { padding: 4px 0; text-align: right; font-weight: 500; color: #1f2937; white-space: nowrap; }
.lpe-gris { color: #9ca3af; }

/* ── Onglet Accessoires (catalogue unique), tiroir CatalogDrawer, façade et photo ──────────────── */
.ac-grille { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .ac-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ac-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .ac-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ac-carte { background: #fff; border-radius: 16px; border: 1px solid #e5e7eb; overflow: hidden; display: flex; flex-direction: column; transition: all .15s; }
.ac-carte:hover { border-color: #d1d5db; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.ac-carte.cliquable, .bi-ligne.cliquable { cursor: pointer; }
.ac-vis { position: relative; display: flex; align-items: center; justify-content: center; height: 96px; padding: 0 12px; }
.ac-vis-fond { position: absolute; inset: 0; background: #f3f4f6; }
.ac-img { position: relative; max-width: 100%; object-fit: contain; }
.ac-facade { position: relative; overflow: hidden; border-radius: 2px; background: #111827; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 0 0 1px rgba(0,0,0,.1); }
.ac-facade img { display: block; }
.ac-vis > svg { position: relative; }
.ac-acts-carte { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,.9); border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.05); opacity: 0; transition: opacity .15s; }
.ac-carte:hover .ac-acts-carte { opacity: 1; }
.ac-act { padding: 6px; border-radius: 8px; color: #9ca3af; background: none; border: 0; cursor: pointer; display: flex; transition: all .15s; opacity: 0; }
.ac-carte:hover .ac-act, .bi-ligne:hover .ac-act { opacity: 1; }
.ac-act:hover { color: #4f46e5; background: #eef2ff; }
.ac-act.rouge:hover { color: #ef4444; background: #fef2f2; }
.ac-corps { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ac-nom { margin: 0; font-size: 14px; line-height: 1.375; font-weight: 600; color: #111827; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ac-ref { margin: 0; font-size: 12px; line-height: 16px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-bas { margin-top: auto; padding-top: 4px; display: flex; flex-direction: column; gap: 6px; }
.ac-faits { display: flex; flex-wrap: wrap; gap: 4px; }
.ac-fait { font-size: 10px; font-weight: 500; padding: 2px 6px; border-radius: 4px; background: #f3f4f6; color: #4b5563; }
.ac-fait.ardoise { background: #f1f5f9; color: #475569; }
.ac-fait.vert { background: #ecfdf5; color: #047857; }
.ac-famille-ligne { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; }
.ac-famille { padding: 2px 8px; border-radius: 9999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 500; }
.ac-fournisseur { color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-l-famille { width: 160px; flex-shrink: 0; display: none; justify-content: flex-end; }
@media (min-width: 640px) { .ac-l-famille { display: flex; } }
.ac-l-fournisseur { width: 144px; flex-shrink: 0; display: none; font-size: 12px; color: #6b7280; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 768px) { .ac-l-fournisseur { display: block; } }
.ac-l-faits { width: 160px; flex-shrink: 0; display: none; justify-content: flex-end; }
@media (min-width: 1024px) { .ac-l-faits { display: flex; } }
.ac-l-acts { width: 96px; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.ac-note { font-size: 12px; line-height: 16px; color: #9ca3af; margin: 24px 0 0; }
.ac-lien { color: inherit; text-decoration: underline; display: inline-flex; align-items: center; gap: 2px; }
.ac-lien:hover { color: #4b5563; }
.cd-tiroir { position: fixed; top: 0; right: 0; height: 100%; width: 480px; max-width: 100%; z-index: 40; background: #fff; border-left: 1px solid #e5e7eb; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); display: flex; flex-direction: column; }
.cd-tete { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #f3f4f6; }
.cd-titres { flex: 1; min-width: 0; }
.cd-titre { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-sous { margin: 0; font-size: 12px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-fermer { padding: 6px; border-radius: 8px; color: #9ca3af; background: none; border: 0; cursor: pointer; display: flex; }
.cd-fermer:hover { color: #374151; background: #f3f4f6; }
.cd-corps { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 24px; }
.cd-section { display: flex; flex-direction: column; gap: 12px; }
.cd-section-titre { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; color: #374151; }
.cd-label { display: block; font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.cd-input { width: 100%; box-sizing: border-box; padding: 6px 10px; font-size: 14px; line-height: 20px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #1f2937; font-family: inherit; }
.cd-input:focus { outline: none; box-shadow: 0 0 0 2px #1a4eff; border-color: transparent; }
.cd-input.gras { font-weight: 500; }
.cd-input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; }
.cd-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cd-col2 { grid-column: span 2 / span 2; }
.cd-pose { text-align: left; padding: 8px 12px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; cursor: pointer; transition: background-color .15s; font-family: inherit; }
.cd-pose:hover { background: #f9fafb; }
.cd-pose.actif { border-color: #1a4eff; background: #f0f4ff; }
.cd-pose-titre { display: block; font-size: 12px; font-weight: 600; color: #1f2937; }
.cd-pose-aide { display: block; font-size: 10px; color: #9ca3af; }
.cd-case { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.cd-case input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: #0035f5; }
.cd-case-texte { font-size: 12px; color: #4b5563; }
.cd-case-aide { font-size: 10px; color: #9ca3af; }
.cd-aide { margin: 0; font-size: 11px; color: #9ca3af; }
.cd-aide-10 { margin: 0; font-size: 10px; color: #9ca3af; }
.cd-apparence { display: flex; align-items: flex-start; gap: 16px; }
.cd-min0 { min-width: 0; }
.cd-couleur { width: 32px; height: 32px; display: block; border-radius: 8px; cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); overflow: hidden; box-sizing: border-box; }
.cd-couleur input { opacity: 0; width: 100%; height: 100%; cursor: pointer; padding: 0; border: 0; }
.cd-pictos { display: flex; flex-wrap: wrap; gap: 6px; }
.cd-picto { width: 32px; height: 32px; box-sizing: border-box; border-radius: 8px; border: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: center; color: #9ca3af; background: #fff; cursor: pointer; transition: all .15s; }
.cd-picto:hover { background: #f9fafb; color: #4b5563; }
.cd-picto.actif { border-color: transparent; color: #fff; }
.cd-pied { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid #f3f4f6; }
.cd-pied .bi-ajouter:disabled { opacity: .5; cursor: default; }
.ff { display: flex; flex-direction: column; gap: 8px; }
.ff-apercu-zone { position: relative; }
.ff-apercu { display: block; position: relative; overflow: hidden; width: 100%; border: 1px solid #e5e7eb; background: #1f2937; padding: 0; cursor: pointer; }
.ff-retirer-coin { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; border-radius: 9999px; background: #fff; border: 1px solid #e5e7eb; color: #9ca3af; opacity: 0; cursor: pointer; padding: 0; transition: opacity .15s; }
.ff-apercu-zone:hover .ff-retirer-coin { opacity: 1; }
.ff-retirer-coin:hover { color: #ef4444; }
.ff-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ff-bouton { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 11px; font-weight: 500; border: 1px solid #e5e7eb; color: #4b5563; background: #fff; cursor: pointer; font-family: inherit; }
.ff-bouton:hover { background: #f9fafb; }
.ff-carre { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid #e5e7eb; color: #6b7280; background: #fff; cursor: pointer; padding: 0; }
.ff-retirer { margin-left: auto; font-size: 11px; font-weight: 500; color: #9ca3af; background: none; border: 0; cursor: pointer; font-family: inherit; }
.ff-retirer:hover { color: #ef4444; }
.ff-vide { display: flex; align-items: center; gap: 4px; }
.ff-depot { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 0; font-size: 11px; font-weight: 500; border: 1px dashed #e5e7eb; color: #d1d5db; background: #fff; cursor: pointer; font-family: inherit; transition: all .15s; }
.ff-depot:hover { border-color: #85a8ff; color: #1a4eff; }
.ff-erreur { margin: 4px 0 0; font-size: 10px; color: #ef4444; }
.pf { display: flex; flex-direction: column; gap: 8px; }
.pf-vis { display: flex; align-items: center; justify-content: center; height: 128px; border-radius: 8px; background: #f9fafb; }
.pf-vis img { max-height: 112px; max-width: 100%; object-fit: contain; }
.pf-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-bouton { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 12px; border-radius: 8px; border: 1px solid #e5e7eb; color: #4b5563; background: #fff; cursor: pointer; font-family: inherit; }
.pf-bouton:hover { background: #f9fafb; }
.pf-lien { display: flex; gap: 8px; }
.pf-erreur { margin: 0; font-size: 11px; color: #d97706; line-height: 1.375; }

/* Outil de cadrage de façade (FacadeCropper) */
.fc-fond { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 24px; }
.fc-boite { background: #fff; width: 100%; max-width: 56rem; max-height: 100%; display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); overflow: hidden; }
.fc-tete { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f3f4f6; }
.fc-tete-g { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fc-ciel { color: #0ea5e9; flex-shrink: 0; }
.fc-min0 { min-width: 0; }
.fc-titre { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-label { margin: 0; font-size: 11px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-x { padding: 6px; background: none; border: 0; color: #9ca3af; cursor: pointer; display: flex; flex-shrink: 0; }
.fc-x:hover { background: #f3f4f6; }
.fc-corps { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.fc-modes-ligne { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.fc-modes { display: inline-flex; border: 1px solid #e5e7eb; flex-shrink: 0; }
.fc-mode { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 11px; font-weight: 500; color: #6b7280; background: #fff; border: 0; cursor: pointer; font-family: inherit; }
.fc-mode:hover { background: #f9fafb; }
.fc-mode.actif { background: #f0f9ff; color: #0284c7; }
.fc-aide { flex: 1; min-width: 16rem; margin: 0; font-size: 11px; color: #6b7280; line-height: 1.375; }
.fc-zone { position: relative; user-select: none; margin: 0 auto; background-image: repeating-conic-gradient(#e5e7eb 0 25%, transparent 0 50%); background-size: 16px 16px; }
.fc-zone.croix { cursor: crosshair; }
.fc-image { display: block; width: 100%; pointer-events: none; height: auto; max-height: 46vh; object-fit: contain; }
.fc-image.pleine { height: 100%; max-height: none; }
.fc-calque { position: absolute; inset: 0; }
.fc-ombre { position: absolute; background: rgba(0,0,0,.55); pointer-events: none; }
.fc-fenetre { position: absolute; border: 2px solid #38bdf8; cursor: move; box-sizing: border-box; }
.fc-poignee { position: absolute; width: 12px; height: 12px; box-sizing: border-box; background: #fff; border: 2px solid #0ea5e9; }
.fc-poignee.nw { top: -6px; left: -6px; } .fc-poignee.ne { top: -6px; right: -6px; }
.fc-poignee.sw { bottom: -6px; left: -6px; } .fc-poignee.se { bottom: -6px; right: -6px; }
.fc-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fc-sans-pointeur { pointer-events: none; }
.fc-poly { cursor: move; }
.fc-coin { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; box-sizing: border-box; border-radius: 9999px; background: #fff; border: 2px solid #0ea5e9; cursor: grab; }
.fc-coin.faux { border-color: #ef4444; }
.fc-coin.cache { opacity: 0; }
.fc-loupe { position: absolute; pointer-events: none; border-radius: 9999px; border: 2px solid #fff; box-shadow: 0 20px 25px -5px rgba(0,0,0,.2); overflow: hidden; background-color: #111827; box-sizing: border-box; }
.fc-mire-v { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(56,189,248,.9); }
.fc-mire-h { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(56,189,248,.9); }
.fc-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fc-bouton { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 11px; font-weight: 500; border: 1px solid #e5e7eb; color: #4b5563; background: #fff; cursor: pointer; font-family: inherit; }
.fc-bouton:hover { background: #f9fafb; }
.fc-bouton:disabled { opacity: .4; cursor: default; }
.fc-info { font-size: 10px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.fc-erreur { display: flex; align-items: center; gap: 4px; font-size: 10px; color: #ef4444; }
.fc-ap-titre { margin: 0 0 6px; font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; }
.fc-ap { position: relative; overflow: hidden; background: #1f2937; width: 100%; }
.fc-pied { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid #f3f4f6; }
.fc-annuler { padding: 6px 12px; font-size: 12px; font-weight: 500; color: #6b7280; background: none; border: 0; cursor: pointer; font-family: inherit; }
.fc-annuler:hover { background: #f3f4f6; }
.fc-valider { padding: 6px 12px; font-size: 12px; font-weight: 600; color: #fff; background: #0ea5e9; border: 0; cursor: pointer; font-family: inherit; }
.fc-valider:hover { background: #0284c7; }
.fc-valider:disabled { opacity: .5; cursor: default; }

/* Détourage (BackgroundRemover) */
.bg-fond { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 24px; }
.bg-boite { background: #fff; width: 100%; max-width: 64rem; max-height: 100%; display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.bg-tete { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f3f4f6; }
.bg-tete-g { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bg-titre { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bg-corps { flex: 1; min-height: 0; overflow: auto; padding: 16px; display: grid; gap: 16px; }
@media (min-width: 768px) { .bg-corps { grid-template-columns: 1fr 220px; } }
.bg-images { display: grid; gap: 12px; align-content: start; }
@media (min-width: 640px) { .bg-images { grid-template-columns: 1fr 1fr; } }
.bg-sur { margin: 0 0 4px; font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; }
.bg-apres-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.bg-apres-tete .bg-sur { margin: 0; }
.bg-fonds { display: flex; }
.bg-fond-choix { padding: 2px 6px; font-size: 10px; border: 1px solid #e5e7eb; margin-left: -1px; color: #6b7280; background: #fff; cursor: pointer; font-family: inherit; }
.bg-fond-choix:hover { background: #f9fafb; }
.bg-fond-choix.actif { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }
.bg-cadre { border: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: center; min-height: 120px; color: #9ca3af; }
.bg-cadre.damier { background-color: #fff; background-image: linear-gradient(45deg,#d1d5db 25%,transparent 25%),linear-gradient(-45deg,#d1d5db 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d1d5db 75%),linear-gradient(-45deg,transparent 75%,#d1d5db 75%); background-size: 16px 16px; background-position: 0 0,0 8px,8px -8px,-8px 0; }
.bg-cadre.sombre { background: #1f2937; }
.bg-cadre.blanc { background: #fff; }
.bg-img { max-width: 100%; max-height: 55vh; }
.bg-img.pipette { cursor: crosshair; }
.bg-reglages { display: flex; flex-direction: column; gap: 16px; }
.bg-lib { margin: 0 0 4px; font-size: 11px; font-weight: 500; color: #4b5563; }
.bg-ligne { display: flex; align-items: center; gap: 8px; }
.bg-couleur { width: 32px; height: 28px; padding: 0; border: 1px solid #e5e7eb; background: transparent; cursor: pointer; }
.bg-pipette { display: flex; align-items: center; gap: 4px; padding: 4px 8px; font-size: 11px; border: 1px solid #e5e7eb; color: #4b5563; background: #fff; cursor: pointer; font-family: inherit; }
.bg-pipette.actif { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }
.bg-auto { padding: 4px; color: #9ca3af; background: none; border: 0; cursor: pointer; display: flex; }
.bg-aide { display: block; margin: 4px 0 0; font-size: 10px; color: #9ca3af; line-height: 1.375; }
.bg-curseur { display: block; }
.bg-lib-ligne { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 500; color: #4b5563; }
.bg-valeur { font-variant-numeric: tabular-nums; color: #9ca3af; }
.bg-curseur input { width: 100%; accent-color: #0ea5e9; padding: 0; border: 0; }
.bg-radio { display: flex; gap: 8px; padding: 4px 0; cursor: pointer; }
.bg-radio input { margin-top: 2px; accent-color: #0ea5e9; padding: 0; }
.bg-radio-titre { display: block; font-size: 11px; color: #374151; }
.bg-erreur { margin: 0 16px 12px; display: flex; gap: 8px; padding: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 11px; line-height: 1.375; }
.bg-erreur[hidden] { display: none; }
.bg-erreur p { margin: 0; }
.bg-erreur > svg { color: #f59e0b; flex-shrink: 0; }
.bg-valider { display: flex; align-items: center; gap: 6px; }
.lp-lien { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #6b7280; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.lp-lien:hover { color: #0284c7; }

/* ── Coquille des pages (AppShell, Sidebar, Header) ─────────────────────────────────────────────── */
body:has(.as-chassis) { margin: 0; }
.as-chassis { display: flex; height: 100vh; background: #f9fafb; overflow: hidden; gap: 12px; padding: 12px; box-sizing: border-box; }
.as-sidebar { width: 240px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); display: flex; flex-direction: column; overflow: hidden; flex-shrink: 0; box-sizing: border-box;
  position: fixed; top: 12px; left: 12px; bottom: 12px; z-index: 40; transform: translateX(-110%); transition: transform .2s ease-out; }
.as-sidebar.ouvert { transform: translateX(0); }
@media (min-width: 1024px) { .as-sidebar { position: static; z-index: auto; transform: none; align-self: flex-start; bottom: auto; max-height: calc(100vh - 1.5rem); } }
.as-voile { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.4); }
@media (min-width: 1024px) { .as-voile { display: none; } }
.as-tete { height: 64px; display: flex; align-items: center; gap: 8px; padding: 0 20px; border-bottom: 1px solid #e5e7eb; flex-shrink: 0; box-sizing: border-box; }
.as-tete.projet { padding: 0 12px; }
.as-logo { width: 32px; height: 32px; background: #0035f5; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; }
.as-marque { font-weight: 700; color: #111827; }
.as-fermer { margin-left: auto; padding: 6px; margin-right: -6px; color: #9ca3af; background: none; border: 0; cursor: pointer; display: flex; }
.as-fermer:hover { color: #374151; }
@media (min-width: 1024px) { .as-fermer { display: none; } .as-hamburger { display: none !important; } }
.as-retour { padding: 6px; border-radius: 8px; color: #9ca3af; display: flex; flex-shrink: 0; transition: all .15s; }
.as-retour:hover { color: #374151; background: #f3f4f6; }
.as-projet { min-width: 0; flex: 1; font-weight: 600; font-size: 14px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; color: #111827; text-decoration: none; transition: color .15s; }
.as-projet:hover, .as-projet.actif { color: #0028c2; }
.as-nav { flex: 1; min-height: 0; padding: 12px; overflow-y: auto; }
.as-liste { display: flex; flex-direction: column; gap: 4px; }
.as-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: #4b5563; text-decoration: none; transition: all .15s; }
.as-item.projet { font-size: 13px; }
.as-item:hover { background: #f3f4f6; color: #111827; }
.as-item.actif { background: #f0f4ff; color: #0028c2; }
.as-item.actif-admin { background: #faf5ff; color: #7e22ce; }
.as-item > svg { flex-shrink: 0; }
.as-tronque { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-admin { margin-top: 16px; padding-top: 12px; border-top: 1px solid #e9d5ff; display: flex; flex-direction: column; gap: 4px; }
.as-admin-titre { display: flex; align-items: center; gap: 6px; padding: 0 12px 4px; margin: 0; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #9333ea; }
.as-groupe { margin-bottom: 4px; }
.as-groupe-titre { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; padding: 12px 12px 4px; margin: 0; }
.as-groupe-liste { display: flex; flex-direction: column; gap: 2px; }
.as-compteur { margin-left: auto; min-width: 1.25rem; height: 20px; padding: 0 6px; border-radius: 9999px; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; color: #fff; background: #f59e0b; box-sizing: border-box; }
.as-compteur[hidden] { display: none; }
.as-version { padding: 16px; border-top: 1px solid #f3f4f6; }
.as-version p { margin: 0; font-size: 12px; color: #9ca3af; }
.as-droite { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; gap: 12px; }
.as-header { align-self: flex-start; height: 44px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-radius: 12px; border: 1px solid #e5e7eb; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); display: flex; align-items: center; gap: 12px; padding: 0 12px; flex-shrink: 0; box-sizing: border-box; }
@media (min-width: 1024px) { .as-header { align-self: flex-end; } }
.as-hamburger { padding: 8px; margin-left: -8px; color: #6b7280; background: none; border: 0; cursor: pointer; display: flex; }
.as-header-zone { display: flex; align-items: center; gap: 12px; }
.as-compte { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #374151; min-width: 0; }
.as-avatar { width: 32px; height: 32px; background: #dce6ff; border-radius: 9999px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #0035f5; }
.as-nom { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; display: none; }
@media (min-width: 640px) { .as-nom { display: inline; } .as-deconnexion-lib { display: inline !important; } }
.as-deconnexion { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #6b7280; background: none; border: 0; cursor: pointer; flex-shrink: 0; font-family: inherit; transition: color .15s; }
.as-deconnexion:hover { color: #374151; }
.as-deconnexion-lib { display: none; }
.as-main { flex: 1; min-height: 0; overflow: auto; padding: 16px; }
@media (min-width: 640px) { .as-main { padding: 24px; } }
.as-header .cm-cloche-zone .cb-cloche { margin: 0; }
/* Bibliothèque : la page prend toute la hauteur et fait défiler ses colonnes elle-même (LibraryNav -m-6) */
body.page-bibliotheque { height: auto; display: block; overflow: hidden; }
body.page-bibliotheque .as-main { padding: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; }
.as-header .cb-cloche { border: 0; background: none; padding: 0; }
.as-header .cb-cloche:hover { background: #f3f4f6 !important; }

/* ── Page d'un projet (app/dashboard/projects/[id]/page.tsx) ─────────────────────────────────── */
/* Pastilles de phase et de statut : classes Tailwind rendues par lib/project-phase et lib/project-status */
.bg-slate-500 { background: #64748b; } .bg-sky-500 { background: #0ea5e9; } .bg-indigo-500 { background: #6366f1; }
.bg-violet-500 { background: #8b5cf6; } .bg-amber-600 { background: #d97706; } .bg-orange-600 { background: #ea580c; }
.bg-green-600 { background: #16a34a; } .bg-gray-500 { background: #6b7280; } .bg-gray-100 { background: #f3f4f6; }
.bg-amber-500 { background: #f59e0b; } .bg-sky-600 { background: #0284c7; } .bg-rose-600 { background: #e11d48; }
.text-white { color: #fff; } .text-gray-500 { color: #6b7280; }
.card { background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.btn-primary { background: #0035f5; color: #fff; padding: 8px 16px; border-radius: 8px; font-weight: 500; border: 0; cursor: pointer; transition: background .15s; }
.btn-primary:hover { background: #0028c2; } .btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-secondary { display: inline-block; background: #fff; color: #374151; padding: 8px 16px; border-radius: 8px; font-weight: 500; border: 1px solid #d1d5db; text-decoration: none; cursor: pointer; }
.btn-secondary:hover { background: #f9fafb; }
input.input, select.input { width: 100%; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; background: #fff; color: #111827; box-sizing: border-box; }
input.input:focus, select.input:focus { outline: none; box-shadow: 0 0 0 2px #1a4eff; border-color: transparent; }
input.input::placeholder { color: #9ca3af; }
@keyframes pj-tourne { to { transform: rotate(360deg); } }
.pj-tourne { animation: pj-tourne 1s linear infinite; }
.pj-gris { color: #9ca3af; flex-shrink: 0; }
.pj-tronque { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-introuvable { max-width: 42rem; margin: 48px auto; text-align: center; color: #6b7280; }
.pj-page { max-width: 72rem; margin: 0 auto; padding: 24px; display: flex; flex-direction: column; gap: 24px; box-sizing: border-box; }
.pj-retour { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #6b7280; text-decoration: none; margin-bottom: 16px; transition: color .15s; }
.pj-retour:hover { color: #374151; }
.pj-tete-ligne { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pj-tete-gauche { min-width: 0; }
.pj-titres { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pj-titre { font-size: 24px; line-height: 32px; font-weight: 700; color: #111827; text-transform: uppercase; margin: 0; }
.pj-titre-groupe { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.pj-crayon { opacity: 0; padding: 4px; border-radius: 6px; border: 0; background: none; color: #9ca3af; cursor: pointer; display: inline-flex; transition: opacity .15s; }
.pj-titre-groupe:hover .pj-crayon, .pj-crayon:focus { opacity: 1; }
.pj-crayon:hover { color: #0035f5; background: #f3f4f6; }
.pj-titre-edition { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
input.pj-titre-champ { font-size: 24px; line-height: 32px; font-weight: 700; text-transform: uppercase; background: transparent; border: 0; border-bottom: 2px solid #1a4eff; border-radius: 0; padding: 0; color: #111827; min-width: 0; width: min(28rem, 60vw); }
input.pj-titre-champ:focus { outline: none; }
.pj-titre-ok, .pj-titre-annuler { padding: 6px; border-radius: 6px; border: 0; background: none; cursor: pointer; display: inline-flex; }
.pj-titre-ok { color: #0035f5; } .pj-titre-ok:hover { background: #f0f4ff; }
.pj-titre-annuler { color: #9ca3af; } .pj-titre-annuler:hover { color: #374151; background: #f3f4f6; }
.pj-erreur { font-size: 12px; color: #dc2626; }
.pj-menu { position: relative; }
.pj-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .025em; border-radius: 9999px; padding: 4px 10px; font-size: 12px; line-height: 16px; border: 0; }
.pj-pill-bouton { cursor: pointer; transition: opacity .15s; } .pj-pill-bouton:hover { opacity: .9; }
.pj-chevron { opacity: .8; }
.pj-menu-liste { position: absolute; z-index: 30; margin-top: 6px; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); padding: 4px; }
.pj-menu-phase { width: 256px; } .pj-menu-statut { width: 288px; }
.pj-menu-item { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; border: 0; background: none; text-align: left; cursor: pointer; transition: background .15s; }
.pj-menu-item:hover { background: #f9fafb; }
.pj-menu-item-statut { display: block; padding: 8px 10px; }
.pj-menu-pastille { display: inline-flex; align-items: center; justify-content: center; width: 44px; flex-shrink: 0; height: 20px; border-radius: 9999px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.pj-menu-lib { font-size: 14px; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pj-menu-lib.fort { font-weight: 500; }
.pj-menu-pct { margin-left: auto; font-size: 10px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.pj-coche { color: #0035f5; flex-shrink: 0; }
.pj-menu-ligne { display: flex; align-items: center; gap: 8px; } .pj-menu-ligne .pj-coche { margin-left: auto; }
.pj-point { width: 8px; height: 8px; border-radius: 9999px; flex-shrink: 0; }
.pj-menu-aide { display: block; font-size: 11px; color: #9ca3af; margin-top: 2px; padding-left: 16px; }
.pj-menu-erreur { position: absolute; left: 0; top: 100%; margin: 4px 0 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #dc2626; }
.pj-commercial { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #6b7280; }
.pj-initiales { width: 20px; height: 20px; border-radius: 9999px; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #fff; flex-shrink: 0; }
.pj-description { color: #6b7280; margin: 4px 0 0; }
.pj-adresse { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #9ca3af; margin: 6px 0 0; }
.pj-tete-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.pj-dup { display: inline-flex; flex-direction: column; align-items: flex-end; }
.pj-bouton-tete { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 8px 12px; border-radius: 8px; border: 0; background: none; color: #6b7280; cursor: pointer; transition: all .15s; }
.pj-bouton-tete:hover { color: #1f2937; background: #f3f4f6; } .pj-bouton-tete:disabled { opacity: .6; }
.pj-sup { position: relative; display: inline-flex; flex-shrink: 0; }
.pj-supprimer { color: #ef4444; } .pj-supprimer:hover { color: #ef4444; background: #fef2f2; }
.pj-supprimer.confirme { background: #dc2626; color: #fff; } .pj-supprimer.confirme:hover { background: #b91c1c; color: #fff; }
.pj-sup-erreur { position: absolute; right: 0; top: 100%; margin-top: 4px; z-index: 10; width: 256px; font-size: 12px; color: #dc2626; background: #fff; border: 1px solid #fecaca; border-radius: 6px; padding: 6px 8px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.pj-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 768px) { .pj-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pj-kpi { padding: 16px; }
.pj-kpi-lib { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6b7280; }
.pj-kpi-val { font-size: 24px; line-height: 32px; font-weight: 700; color: #111827; margin: 6px 0 0; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-frise { padding: 20px; }
.pj-h2-petit { font-size: 14px; font-weight: 600; color: #111827; margin: 0 0 16px; }
.pj-h2 { font-size: 18px; line-height: 28px; font-weight: 600; color: #111827; margin: 0 0 16px; }
.sans-marge { margin: 0; }
.pj-etapes { display: flex; align-items: flex-start; }
.pj-etape { flex: 1; display: flex; align-items: center; }
.pj-etape:last-child { flex: 1; }
.pj-etape-bouton { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; border: 0; background: none; padding: 0; cursor: pointer; }
div.pj-etape-bouton { cursor: default; } .pj-etape-bouton:disabled { cursor: wait; }
.pj-bulle { width: 28px; height: 28px; border-radius: 9999px; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 2px solid #e5e7eb; color: #9ca3af; box-sizing: border-box; transition: all .15s; }
.pj-bulle.fait { background: #0035f5; border-color: #0035f5; color: #fff; }
.pj-bulle.courant { background: #f0f4ff; border-color: #1a4eff; color: #0028c2; }
button.pj-etape-bouton:not(.courant):hover .pj-bulle { border-color: #4d7aff; transform: scale(1.1); }
.pj-etape-lib { font-size: 10px; font-weight: 500; color: #9ca3af; } .pj-etape-lib.courant { color: #0028c2; }
button.pj-etape-bouton:not(.courant):hover .pj-etape-lib { color: #0035f5; }
.pj-trait { height: 2px; flex: 1; margin: -16px 4px 0; border-radius: 9999px; background: #e5e7eb; } .pj-trait.fait { background: #1a4eff; }
.pj-etapes-erreur { margin: 8px 0 0; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #dc2626; }
.pj-docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .pj-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .pj-docs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pj-doc-carte { padding: 20px; }
.pj-doc-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pj-doc-picto { width: 36px; height: 36px; background: #f0f4ff; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #0035f5; flex-shrink: 0; }
.pj-doc-titre { font-weight: 500; color: #111827; font-size: 14px; margin: 0; }
.pj-doc-desc { font-size: 12px; color: #6b7280; margin: 0; }
.pj-aucun { font-size: 12px; color: #9ca3af; margin: 0 0 12px; }
.pj-pieces .pj-aucun { padding: 8px 0; margin: 0; }
.pj-doc-liste { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pj-doc-ligne { display: flex; align-items: center; gap: 4px; }
.pj-doc-lien { font-size: 14px; color: #0035f5; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.pj-doc-lien:hover { text-decoration: underline; }
.pj-doc-actions { display: flex; align-items: center; opacity: 0; transition: opacity .15s; }
.pj-doc:hover .pj-doc-actions, .pj-doc-actions:focus-within { opacity: 1; }
.pj-icone-bouton { flex-shrink: 0; padding: 4px; border-radius: 6px; border: 0; background: none; color: #d1d5db; cursor: pointer; display: inline-flex; transition: all .15s; }
.pj-icone-bouton:hover { color: #0035f5; background: #f0f4ff; }
.pj-doc-sup:hover { color: #ef4444; background: #fef2f2; }
.pj-doc-sup.confirme, .pj-doc-sup.confirme:hover { color: #fff; background: #dc2626; }
.pj-doc-edition { display: flex; align-items: center; gap: 4px; }
input.pj-doc-champ { flex: 1; min-width: 0; font-size: 14px; background: transparent; border: 0; border-bottom: 1px solid #1a4eff; border-radius: 0; padding: 0; color: #111827; }
input.pj-doc-champ:focus { outline: none; }
.pj-doc-erreur { font-size: 11px; color: #dc2626; padding-left: 2px; margin: 0; }
.pj-badges { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.pj-badge-demande, .pj-badge-commentaire { display: inline-flex; align-items: center; gap: 2px; height: 20px; padding: 0 6px; border-radius: 9999px; font-size: 11px; font-weight: 600; box-sizing: border-box; text-decoration: none; }
.pj-badge-demande { background: #f59e0b; color: #fff; } .pj-badge-demande:hover { background: #d97706; }
.pj-badge-commentaire { background: #f3f4f6; color: #4b5563; }
.pj-badge-exemplaires { flex-shrink: 0; display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 9999px; font-size: 11px; font-weight: 600; background: #f0f4ff; color: #0035f5; }
.pj-doc-nom-fixe { font-size: 14px; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.pj-exemplaires-x { font-size: 14px; color: #6b7280; }
input.pj-exemplaires-champ { flex: 0 0 56px; text-align: right; }
.pj-nouveau { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #6b7280; text-decoration: none; border: 0; background: none; padding: 0; cursor: pointer; transition: color .15s; }
.pj-nouveau:hover { color: #0035f5; }
.pj-importer { margin-top: 6px; }
.pj-pieces { padding: 20px; transition: all .15s; }
.pj-pieces.survol { box-shadow: 0 0 0 2px #4d7aff; background: rgba(240,244,255,.4); }
.pj-pieces-tete { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.pj-nb { font-size: 11px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.pj-ajouter { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #0035f5; border: 0; background: none; padding: 0; cursor: pointer; }
.pj-ajouter:hover { text-decoration: underline; } .pj-ajouter:disabled { opacity: .5; }
.pj-pieces-erreur { font-size: 12px; color: #ef4444; margin: 0 0 12px; }
.pj-pieces-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pj-piece { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; transition: background .15s; }
.pj-piece:hover { background: #f9fafb; }
.pj-piece-lien { font-size: 14px; color: #374151; text-decoration: none; flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 6px; overflow: hidden; }
.pj-piece-lien:hover { color: #0035f5; }
.pj-piece-ext { flex-shrink: 0; opacity: 0; } .pj-piece:hover .pj-piece-ext { opacity: .6; }
.pj-piece-date { font-size: 11px; color: #9ca3af; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.pj-piece-retirer { opacity: 0; color: #d1d5db; border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; transition: all .15s; }
.pj-piece:hover .pj-piece-retirer { opacity: 1; } .pj-piece-retirer:hover { color: #ef4444; }
.pj-membres { padding: 24px; }
.pj-membres-tete { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.pj-membres-liste { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.pj-membre { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f3f4f6; }
.pj-membre:last-child { border-bottom: 0; }
.pj-membre-gauche { display: flex; align-items: center; gap: 12px; }
.pj-membre-avatar { width: 32px; height: 32px; background: #dce6ff; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #0035f5; }
.pj-membre-nom { font-size: 14px; font-weight: 500; color: #111827; margin: 0; }
.pj-membre-mail { font-size: 12px; color: #9ca3af; margin: 0; }
.pj-membre-droite { display: flex; align-items: center; gap: 12px; }
.pj-role { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 4px 10px; border-radius: 9999px; font-weight: 500; background: #f3f4f6; color: #4b5563; }
.pj-role.owner { background: #fffbeb; color: #b45309; } .pj-role.editor { background: #f0fdf4; color: #15803d; }
.pj-quitter { display: inline-flex; align-items: center; gap: 8px; }
.pj-quitter-bouton { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 8px; border: 0; background: none; color: #ef4444; cursor: pointer; transition: all .15s; }
.pj-quitter-bouton:hover { background: #fef2f2; }
.pj-quitter-bouton.confirme { background: #dc2626; color: #fff; } .pj-quitter-bouton.confirme:hover { background: #b91c1c; }
.pj-inviter { border-top: 1px solid #f3f4f6; padding-top: 20px; }
.pj-inviter-titre { font-size: 14px; font-weight: 600; color: #374151; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.pj-inviter-form { display: flex; gap: 8px; flex-wrap: wrap; }
input.pj-inviter-mail { flex: 1; min-width: 192px; width: auto; }
select.pj-inviter-role { width: 144px; }
.pj-inviter-go { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pj-inviter-erreur { margin: 8px 0 0; font-size: 14px; color: #dc2626; }
.pj-inviter-ok { margin: 8px 0 0; font-size: 14px; color: #16a34a; display: flex; align-items: center; gap: 6px; }
.im-document .im-doc-bouton { flex: 1; }
/* ── Nouveau synoptique ── */
.nd-page { max-width: 32rem; margin: 0 auto; padding: 24px; }
.nd-page-large { max-width: 42rem; margin: 0 auto; padding: 24px; }
.nd-refus { padding: 48px; text-align: center; color: #6b7280; }
.nd-retour { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #6b7280; text-decoration: none; margin-bottom: 24px; }
.nd-retour:hover { color: #374151; }
.nd-carte { padding: 32px; }
.nd-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.nd-picto { width: 40px; height: 40px; background: #f0f4ff; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #0035f5; }
.nd-titre { font-size: 20px; line-height: 28px; font-weight: 700; color: #111827; margin: 0; }
.nd-sous { font-size: 14px; color: #6b7280; margin: 0; }
.nd-form { display: flex; flex-direction: column; gap: 16px; }
.nd-label { display: block; font-size: 14px; font-weight: 500; color: #374151; margin-bottom: 6px; }
.nd-erreur { font-size: 14px; color: #dc2626; margin: 0; }
.nd-boutons { display: flex; gap: 12px; padding-top: 8px; }
.nd-creer { display: flex; align-items: center; gap: 8px; }
.nd-mobile { padding: 32px; text-align: center; }
.nd-mobile-picto { width: 48px; height: 48px; background: #fffbeb; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: #d97706; }
.nd-mobile-titre { font-size: 18px; font-weight: 600; color: #111827; margin: 0 0 6px; }
.pj-page h2, .pj-page h3, .nd-page h1 { text-transform: none; letter-spacing: normal; }

/* ── Tableau de bord « Projets » (app/dashboard/page.tsx, DashboardProjects) ─────────────────── */
.tb-page { max-width: 1600px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.tb-page h1, .tb-page h2, .tb-page h3 { text-transform: none; letter-spacing: normal; }
.tb-section { display: flex; flex-direction: column; gap: 16px; } .tb-section.serre { gap: 12px; }
.tb-section-tete { display: flex; align-items: center; justify-content: space-between; }
.tb-section-titre { display: flex; align-items: center; gap: 8px; }
.tb-h2 { font-size: 20px; line-height: 28px; font-weight: 700; color: #111827; margin: 0; }
.tb-nb { font-size: 14px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.tb-tout-voir { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: #0035f5; text-decoration: none; } .tb-tout-voir:hover { text-decoration: underline; }
.tb-a-venir { padding: 24px; font-size: 14px; color: #6b7280; }
.tb-ambre { color: #f59e0b; flex-shrink: 0; }
.tb-a-traiter { padding: 2px 8px; border-radius: 9999px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tb-sur { font-size: 14px; color: #9ca3af; }
.tb-entete { display: flex; align-items: center; justify-content: space-between; }
.tb-titre { font-size: 24px; line-height: 32px; font-weight: 700; color: #111827; margin: 0; }
.tb-sous { font-size: 14px; color: #6b7280; margin: 2px 0 0; }
.tb-entete-droite { display: flex; align-items: center; gap: 12px; }
.tb-comptes { display: inline-flex; border-radius: 8px; border: 1px solid #e5e7eb; padding: 2px; font-size: 12px; font-weight: 500; }
.tb-compte { padding: 4px 10px; border-radius: 6px; color: #6b7280; text-decoration: none; transition: color .15s; } .tb-compte:hover { color: #1f2937; }
.tb-compte.actif { background: #0035f5; color: #fff; }
.tb-nouveau, .tb-creer, .tb-ouvrir { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.tb-ouvrir { font-size: 14px; flex-shrink: 0; }
.tb-aucun { padding: 48px; text-align: center; }
.tb-aucun-picto { color: #d1d5db; display: block; margin: 0 auto 12px; }
.tb-aucun-titre { color: #111827; font-weight: 500; margin: 0 0 4px; font-size: 16px; }
.tb-aucun-texte { font-size: 14px; color: #6b7280; margin: 0 0 16px; } .tb-aucun-texte.sans-marge { margin: 0; }
.tb-corps { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
@media (min-width: 1024px) { .tb-corps { flex-direction: row; } }
.tb-rail { width: 100%; flex-shrink: 0; padding: 12px; overflow-y: auto; box-sizing: border-box; }
@media (min-width: 1024px) { .tb-rail { width: 19rem; position: sticky; top: 16px; max-height: calc(100vh - 2rem); } }
.tb-rech { position: relative; margin-bottom: 8px; }
.tb-loupe { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
input.tb-recherche { padding-left: 36px; padding-right: 32px; }
.tb-effacer { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #9ca3af; cursor: pointer; padding: 0; display: inline-flex; }
.tb-effacer:hover { color: #4b5563; }
.tb-portees { display: flex; border-radius: 8px; border: 1px solid #e5e7eb; overflow: hidden; margin-bottom: 8px; }
.tb-portee { flex: 1; font-size: 11px; font-weight: 500; padding: 6px 4px; border: 0; border-right: 1px solid #e5e7eb; background: none; color: #6b7280; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .15s; }
.tb-portee:last-child { border-right: 0; } .tb-portee:hover { background: #f9fafb; }
.tb-portee.actif { background: #0035f5; color: #fff; }
.tb-portee-nb { margin-left: 4px; font-variant-numeric: tabular-nums; color: #9ca3af; } .tb-portee.actif .tb-portee-nb { color: rgba(255,255,255,.7); }
.tb-filtres-ligne { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.tb-filtres { flex: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 6px 8px; border-radius: 8px; border: 1px solid #e5e7eb; background: none; color: #6b7280; cursor: pointer; transition: background .15s; }
.tb-filtres:hover { background: #f9fafb; }
.tb-filtres.actif { border-color: #b9ccff; color: #0028c2; background: #f0f4ff; }
.tb-filtres-nb { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 10px; font-weight: 700; }
.tb-reinit { padding: 6px; border-radius: 8px; border: 0; background: none; color: #9ca3af; cursor: pointer; display: inline-flex; } .tb-reinit:hover { color: #374151; background: #f3f4f6; }
.tb-tiroir { display: flex; flex-direction: column; gap: 6px; padding: 8px; margin-bottom: 8px; border-radius: 8px; background: #f9fafb; }
select.tb-select { width: 100%; font-size: 12px; font-weight: 500; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; color: #4b5563; padding: 6px 10px; }
.tb-phases { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 2px; }
.tb-phase { font-size: 11px; font-weight: 500; padding: 4px 8px; border-radius: 8px; border: 1px solid #e5e7eb; background: none; color: #6b7280; cursor: pointer; }
.tb-phase:hover { background: #f9fafb; } .tb-phase.actif { background: #f0f4ff; border-color: #85a8ff; color: #0028c2; }
.tb-rail-section { margin-bottom: 8px; }
.tb-rail-titre { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; padding: 4px 8px; margin: 0; }
.tb-rail-projet { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; border: 0; background: none; text-align: left; cursor: pointer; transition: background .15s; }
.tb-rail-projet:hover { background: #f3f4f6; } .tb-rail-projet.actif { background: #f0f4ff; }
.tb-rail-nom { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; text-transform: uppercase; color: #4b5563; }
.tb-rail-projet.actif .tb-rail-nom { color: #0028c2; font-weight: 600; }
.tb-rail-phase { flex-shrink: 0; display: inline-flex; align-items: center; height: 16px; padding: 0 6px; border-radius: 9999px; font-size: 8px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.tb-axe { display: flex; align-items: center; gap: 4px; padding: 8px 4px 0; margin-top: 4px; border-top: 1px solid #f3f4f6; }
select.tb-axe-select { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; background: transparent; border: 0; padding: 0 16px 0 0; cursor: pointer; }
select.tb-axe-select:focus { outline: none; }
.tb-axe-nb, .tb-noeud-nb { font-size: 10px; color: #9ca3af; font-variant-numeric: tabular-nums; margin-left: auto; }
.tb-nav { margin-top: 4px; }
.tb-noeud { width: 100%; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; border: 0; background: none; text-align: left; cursor: pointer; transition: background .15s; }
.tb-noeud:hover { background: #f3f4f6; } .tb-noeud.actif { background: #f0f4ff; }
.tb-noeud-picto { flex-shrink: 0; color: #9ca3af; } .tb-noeud-picto.actif { color: #0035f5; }
.tb-noeud-lib { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4b5563; }
.tb-noeud-lib.actif { color: #0028c2; }
.tb-lieux { position: relative; margin-left: .9rem; padding-left: 8px; border-left: 1px solid #e5e7eb; }
.tb-lieu { width: 100%; display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; border: 0; background: none; text-align: left; cursor: pointer; }
.tb-lieu:hover { background: #f3f4f6; } .tb-lieu.actif { background: #f0f4ff; }
.tb-lieu-picto { flex-shrink: 0; color: #9ca3af; } .tb-lieu-picto.actif { color: #0035f5; }
.tb-lieu-lib { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4b5563; }
.tb-lieu-lib.actif { font-weight: 600; color: #0028c2; } .tb-lieu-lib.orphelin { font-style: italic; color: #9ca3af; }
.tb-lieu-chevron { flex-shrink: 0; color: #9ca3af; transition: transform .15s; } .tb-lieu-chevron.ouvert { transform: rotate(90deg); }
.tb-lieu-vide { width: 12px; flex-shrink: 0; }
.tb-nav-vide { font-size: 12px; color: #9ca3af; padding: 24px 8px; text-align: center; margin: 0; }
.tb-droite { flex: 1; min-width: 0; display: none; } @media (min-width: 1024px) { .tb-droite { display: block; } }
.tb-liste { display: flex; flex-direction: column; gap: 12px; }
.tb-liste-tete { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.tb-liste-titre { font-size: 14px; font-weight: 600; color: #374151; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.tb-page .tb-liste-titre { text-transform: uppercase; }
.tb-liste-info { font-size: 12px; color: #9ca3af; white-space: nowrap; }
.tb-liste-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.tb-lien-gris { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #9ca3af; border: 0; background: none; padding: 0; cursor: pointer; } .tb-lien-gris:hover { color: #374151; }
.tb-tableau-carte { overflow: hidden; }
.tb-defile { overflow-x: auto; }
.tb-tableau { width: 100%; font-size: 14px; min-width: 640px; border-collapse: collapse; }
.tb-tableau thead tr { border-bottom: 1px solid #e5e7eb; }
.tb-tableau th { text-align: left; padding: 6px; white-space: nowrap; font-weight: normal; background: none; border: 0; }
.tb-th { display: inline-flex; align-items: center; }
.tb-th-point { font-size: 10px; color: #d1d5db; }
.tb-tri { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 6px; border: 0; background: none; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; cursor: pointer; transition: all .15s; }
.tb-tri:hover { color: #374151; background: #f3f4f6; } .tb-tri.actif { color: #0035f5; }
.tb-tri-picto { opacity: 0; } .tb-tri:hover .tb-tri-picto { opacity: 1; }
.tb-ligne { cursor: pointer; border-bottom: 1px solid #f3f4f6; transition: background .15s; } .tb-ligne:last-child { border-bottom: 0; } .tb-ligne:hover { background: #f9fafb; }
.tb-cellule { padding: 10px 12px; border: 0; }
.tb-col-sm, .tb-col-md, .tb-col-lg, .tb-col-xl { display: none; }
@media (min-width: 640px) { .tb-col-sm { display: table-cell; } }
@media (min-width: 768px) { .tb-col-md { display: table-cell; } }
@media (min-width: 1024px) { .tb-col-lg { display: table-cell; } }
@media (min-width: 1280px) { .tb-col-xl { display: table-cell; } }
.tb-nom-cellule { display: flex; align-items: center; gap: 12px; }
.tb-carre { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(to bottom right, #4d7aff, #0035f5); flex-shrink: 0; }
.tb-carre.grand { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
.tb-nom-bloc { min-width: 0; }
.tb-nom { font-weight: 600; color: #111827; text-transform: uppercase; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.tb-pills { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.tb-pill-table { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 9999px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .025em; line-height: 1; }
.tb-tiret { color: #d1d5db; }
.tb-owner { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #374151; min-width: 0; }
.tb-initiales { width: 20px; height: 20px; border-radius: 9999px; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #fff; flex-shrink: 0; }
.tb-owner-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; } .tb-owner-nom.moi { font-weight: 600; }
.tb-client { font-size: 12px; color: #4b5563; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; max-width: 220px; }
.tb-lieu-texte { font-size: 11px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; max-width: 220px; margin-top: 2px; }
.tb-agence { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5563; }
.tb-agence-picto { color: #9ca3af; flex-shrink: 0; }
.tb-agence-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.tb-avancement { display: flex; align-items: center; gap: 8px; }
.tb-barre { height: 6px; width: 64px; border-radius: 9999px; background: #f3f4f6; overflow: hidden; }
.tb-barre-plein { height: 100%; border-radius: 9999px; background: #1a4eff; }
.tb-pct { font-size: 11px; color: #6b7280; font-variant-numeric: tabular-nums; }
.tb-avatars { display: flex; }
.tb-avatar { width: 24px; height: 24px; border-radius: 9999px; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #fff; box-shadow: 0 0 0 2px #fff; margin-left: -6px; }
.tb-avatar:first-child { margin-left: 0; } .tb-avatar.plus { color: #6b7280; background: #f3f4f6; }
.tb-docs { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #6b7280; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; padding: 2px 8px; }
.tb-modifie { font-size: 11px; color: #9ca3af; white-space: nowrap; }
.tb-fiche { padding: 24px; }
.tb-revenir { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #9ca3af; border: 0; background: none; padding: 0; margin-bottom: 16px; cursor: pointer; } .tb-revenir:hover { color: #374151; }
.tb-fiche-tete { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.tb-fiche-milieu { min-width: 0; flex: 1; }
.tb-fiche-nom { font-size: 18px; line-height: 28px; font-weight: 700; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.tb-page .tb-fiche-nom { text-transform: uppercase; }
.tb-fiche-pills { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tb-fiche-phase { font-size: 11px; color: #9ca3af; }
.pj-pill.sm { height: 20px; padding: 0 8px; font-size: 10px; box-sizing: border-box; }
.tb-fiche-bouton { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; padding: 8px 10px; border-radius: 8px; border: 0; background: none; color: #6b7280; cursor: pointer; flex-shrink: 0; transition: all .15s; }
.tb-fiche-bouton:hover { color: #1f2937; background: #f3f4f6; } .tb-fiche-bouton:disabled { opacity: .6; }
.tb-fiche-bouton.actif { color: #0028c2; background: #f0f4ff; }
.pj-bouton-tete.tb-fiche-sup { padding-left: 10px; padding-right: 10px; }
.tb-epingle { padding: 8px; border-radius: 8px; border: 0; background: none; color: #9ca3af; cursor: pointer; flex-shrink: 0; display: inline-flex; transition: all .15s; }
.tb-epingle:hover { color: #0035f5; background: #f3f4f6; } .tb-epingle.actif { color: #0035f5; background: #f0f4ff; }
.tb-fiche-desc { font-size: 14px; color: #6b7280; line-height: 1.625; padding-bottom: 16px; margin: 0 0 16px; border-bottom: 1px solid #f3f4f6; }
.tb-fiche-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (min-width: 1024px) { .tb-fiche-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tb-fiche-kpi { border-radius: 8px; background: #f9fafb; padding: 10px 12px; }
.tb-fiche-kpi-lib { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; margin: 0; }
.tb-fiche-kpi-val { font-size: 16px; font-weight: 600; color: #111827; margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-attrs { display: grid; column-gap: 32px; } @media (min-width: 768px) { .tb-attrs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tb-attr { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #f9fafb; }
.tb-attr:last-child { border-bottom: 0; }
.tb-attr-lib { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #9ca3af; }
.tb-attr-val { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tb-attr-texte { font-size: 12px; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tb-attr-gris { font-size: 12px; color: #9ca3af; }
.tb-params { margin-top: 20px; padding-top: 20px; border-top: 1px solid #f3f4f6; }
.tb-params-titre { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; margin: 0 0 12px; }
/* Formulaire de paramètres (ProjectParamsForm, LocationPicker) */
.pp-carte { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; }
.pp-attente { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: #9ca3af; padding: 24px 0; margin: 0; }
.pp-erreur-bloc { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 8px 12px; margin: 0; }
.pp-erreur-bloc.marge { margin-bottom: 16px; }
.pp-champ { margin-bottom: 16px; } .pp-champ.dernier { margin-bottom: 24px; }
.pp-label { display: block; font-size: 12px; font-weight: 500; color: #4b5563; margin-bottom: 6px; }
input.pp-input, select.pp-input { width: 100%; padding: 8px 12px; font-size: 14px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #111827; box-sizing: border-box; }
input.pp-input:focus, select.pp-input:focus { outline: none; box-shadow: 0 0 0 2px #1a4eff; border-color: transparent; }
input.pp-input:disabled, select.pp-input:disabled { background: #f9fafb; color: #6b7280; }
input.pp-input.majuscules { text-transform: uppercase; }
.pp-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.pp-lieux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pp-lieu-ligne { display: flex; gap: 6px; }
.pp-lieu-plus { flex-shrink: 0; padding: 0 8px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; color: #6b7280; cursor: pointer; display: inline-flex; align-items: center; }
.pp-lieu-plus:hover { color: #0035f5; border-color: #85a8ff; }
.pp-lieu-creation { margin-top: 12px; display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-radius: 8px; background: #f9fafb; border: 1px solid #e5e7eb; }
.pp-flex { flex: 1; } .pp-repere { width: 96px; }
.pp-lieu-ajouter { padding: 8px 12px; border-radius: 8px; border: 0; background: #0035f5; color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 6px; } .pp-lieu-ajouter:disabled { opacity: .6; }
.pp-lieu-fermer { padding: 8px; border: 0; background: none; color: #9ca3af; cursor: pointer; display: inline-flex; } .pp-lieu-fermer:hover { color: #4b5563; }
.pp-lieu-erreur { margin: 8px 0 0; font-size: 12px; color: #dc2626; }
.pp-aide { font-size: 11px; color: #9ca3af; margin: 4px 0 0; }
.pp-enregistrer { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: #0035f5; color: #fff; font-size: 14px; font-weight: 500; border-radius: 8px; border: 0; cursor: pointer; transition: background .15s; }
.pp-enregistrer:hover { background: #0028c2; } .pp-enregistrer:disabled { opacity: .6; }
/* Récapitulatif des demandes (RequestsRecap) */
.rc-racine { display: flex; flex-direction: column; gap: 12px; }
.rc-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rc-groupe { display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: 8px; background: #f3f4f6; }
.rc-chip { padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; border: 0; background: none; color: #6b7280; cursor: pointer; transition: color .15s; }
.rc-chip:hover { color: #1f2937; } .rc-chip.actif { background: #fff; color: #111827; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
select.rc-select { height: 32px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; font-size: 12px; color: #374151; padding: 0 8px; max-width: 220px; }
.rc-chercher { margin-left: auto; position: relative; }
.rc-loupe { color: #9ca3af; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); }
input.rc-recherche { height: 32px; width: 192px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; font-size: 12px; color: #1f2937; padding: 0 8px 0 28px; box-sizing: border-box; }
.rc-carte { overflow: hidden; }
.rc-manque { padding: 24px; font-size: 14px; color: #6b7280; }
.rc-vide { padding: 32px 16px; text-align: center; font-size: 14px; color: #6b7280; margin: 0; }
.rc-liste > * + * { border-top: 1px solid #f3f4f6; }
.rc-ligne { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; cursor: pointer; } .rc-ligne:hover, .rc-ligne.ouvert { background: #f9fafb; }
.rc-chevron { margin-top: 2px; color: #9ca3af; flex-shrink: 0; display: inline-flex; }
.rc-etat { width: 104px; flex-shrink: 0; padding-top: 2px; }
.rc-com { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 500; background: #e5e7eb; color: #374151; } .rc-com.resolu { background: #f3f4f6; color: #6b7280; }
.rc-corps { min-width: 0; flex: 1; }
.rc-texte { font-size: 14px; color: #111827; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; margin: 0; } .rc-texte.resolu { color: #6b7280; }
.rc-meta { margin: 2px 0 0; font-size: 12px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-projet { font-weight: 500; color: #374151; }
.rc-qui { display: none; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; font-size: 12px; color: #6b7280; width: 170px; }
@media (min-width: 768px) { .rc-qui { display: flex; } }
.rc-italique { font-style: italic; }
.rc-quand { display: none; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; font-size: 12px; width: 96px; }
@media (min-width: 640px) { .rc-quand { display: flex; } }
.rc-echeance { font-variant-numeric: tabular-nums; color: #6b7280; } .rc-echeance.retard { color: #dc2626; font-weight: 500; }
.rc-tiret { color: #d1d5db; } .rc-dernier { color: #9ca3af; }
.rc-fil { padding: 0 12px 12px 52px; background: #f9fafb; }
.rc-liste > .rc-fil { border-top: 0; }
.rc-boite { border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.rc-msg-tete { display: flex; align-items: center; gap: 6px; }
.rc-auteur { font-size: 12px; font-weight: 600; color: #111827; } .rc-date { font-size: 10px; color: #9ca3af; }
.rc-msg { margin: 2px 0 0; padding-left: 26px; font-size: 14px; color: #1f2937; white-space: pre-wrap; overflow-wrap: break-word; }
.rc-liens { display: flex; align-items: center; gap: 12px; padding-top: 4px; border-top: 1px solid #f3f4f6; }
.rc-voir { margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: #0028c2; text-decoration: none; } .rc-voir:hover { text-decoration: underline; }
.rc-demandes { margin-top: 8px; font-size: 12px; color: #6b7280; text-decoration: none; } .rc-demandes:hover { text-decoration: underline; }
.rc-plus { width: 100%; padding: 8px 12px; font-size: 12px; font-weight: 500; color: #0028c2; background: none; border: 0; border-top: 1px solid #f3f4f6; cursor: pointer; } .rc-plus:hover { background: #f9fafb; }

/* ── Nouveau projet, Paramètres du projet ─────────────────────────────────────────────────────── */
.np-page { max-width: 42rem; margin: 0 auto; }
.np-form { display: flex; flex-direction: column; gap: 20px; }
.np-label { display: block; font-size: 14px; font-weight: 500; color: #374151; margin-bottom: 6px; }
.np-requis { color: #ef4444; }
.np-optionnel { color: #9ca3af; font-weight: 400; margin-left: 4px; }
input.np-majuscules { text-transform: uppercase; } input.np-majuscules::placeholder { text-transform: none; }
textarea.np-description { width: 100%; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; resize: none; box-sizing: border-box; font: inherit; font-size: 14px; }
textarea.np-description:focus { outline: none; box-shadow: 0 0 0 2px #1a4eff; border-color: transparent; }
.np-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.np-erreur { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 14px; border-radius: 8px; padding: 12px 16px; }
.np-erreur[hidden] { display: none; }
.ps-page { max-width: 42rem; margin: 0 auto; padding: 24px; }
.ps-page h1, .ps-page h2 { text-transform: none; letter-spacing: normal; }
.ps-tete { margin-bottom: 24px; }
.ps-h1 { font-size: 20px; line-height: 28px; font-weight: 700; color: #111827; margin: 0; }
.ps-texte { font-size: 14px; color: #6b7280; margin: 4px 0 0; }
.ps-section { margin-top: 40px; border-radius: 12px; border: 1px solid #e5e7eb; padding: 20px; }
.ps-titre { font-size: 16px; font-weight: 600; color: #111827; margin: 0; }
.ps-profil { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #374151; }
select.ps-select { border-radius: 6px; border: 1px solid #d1d5db; background: #fff; padding: 4px 8px; font-size: 14px; }
.ps-liste { list-style: none; margin: 16px 0 0; padding: 0; }
.ps-liste > li + li { border-top: 1px solid #f3f4f6; }
.ps-ligne { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
input.ps-couleur { width: 36px; height: 28px; border-radius: 4px; border: 1px solid #d1d5db; background: transparent; cursor: pointer; padding: 0; }
input.ps-couleur:disabled { cursor: default; }
.ps-lib { flex: 1; min-width: 0; font-size: 14px; color: #1f2937; }
.ps-cle { font-family: ui-monospace, monospace; font-size: 12px; color: #9ca3af; }
.ps-revenir { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #6b7280; border: 0; background: none; padding: 0; cursor: pointer; } .ps-revenir:hover { color: #1f2937; }
.ps-pastille { width: 12px; height: 12px; border-radius: 2px; border: 1px solid #d1d5db; }
.ps-gris { font-size: 12px; color: #9ca3af; }
.ps-pied { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.ps-enregistrer { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; background: #4f46e5; padding: 6px 12px; font-size: 14px; font-weight: 500; color: #fff; border: 0; cursor: pointer; } .ps-enregistrer:disabled { opacity: .5; cursor: default; }
.ps-ok { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: #059669; }
.ps-erreur { margin: 8px 0 0; font-size: 14px; color: #dc2626; }

/* ── Clients (ClientsManager, ClientLocations) ────────────────────────────────────────────────── */
.ck-page { max-width: 72rem; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.ck-page h1, .ck-page h2, .ck-page h3 { text-transform: none; letter-spacing: normal; }
.ck-tete { display: flex; align-items: center; justify-content: space-between; }
.ck-nouveau { display: flex; align-items: center; gap: 8px; }
.ck-rech { position: relative; max-width: 24rem; }
input.ck-recherche { padding-left: 36px; padding-right: 32px; }
.ck-corps { display: flex; gap: 20px; align-items: flex-start; }
.ck-gauche { flex: 1; min-width: 0; }
.ck-carte { overflow: hidden; }
.ck-tableau { width: 100%; font-size: 14px; border-collapse: collapse; }
.ck-tableau thead tr { border-bottom: 1px solid #e5e7eb; }
.ck-tableau th { text-align: left; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; padding: 10px 16px; white-space: nowrap; background: none; border: 0; }
.ck-tableau td { padding: 10px 16px; border: 0; }
.ck-ligne { cursor: pointer; border-bottom: 1px solid #f3f4f6; transition: background .15s; } .ck-ligne:last-child { border-bottom: 0; }
.ck-ligne:hover { background: #f9fafb; } .ck-ligne.actif { background: #f0f4ff; }
.ck-nom-cellule { display: flex; align-items: center; gap: 12px; }
.ck-nom { font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.ck-contact { color: #4b5563; } .ck-coord { font-size: 12px; color: #6b7280; }
td.ck-aucun { padding: 40px 16px; text-align: center; font-size: 14px; color: #9ca3af; }
.ck-volet { width: 20rem; flex-shrink: 0; position: sticky; top: 0; display: none; }
@media (min-width: 768px) { .ck-volet { display: block; } }
.ck-choisir { padding: 32px; text-align: center; font-size: 14px; color: #9ca3af; }
.ck-apercu { overflow: hidden; }
.ck-apercu-tete { padding: 16px; border-bottom: 1px solid #f3f4f6; }
.ck-apercu-id { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tb-carre.moyen { width: 36px; height: 36px; font-size: 14px; }
.ck-min { min-width: 0; }
.ck-apercu-nom { font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; font-size: 16px; }
.ck-apercu-contact { font-size: 11px; color: #9ca3af; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-ouvrir { width: 100%; justify-content: center; display: flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 8px; text-decoration: none; box-sizing: border-box; }
.ck-boutons { display: flex; gap: 8px; }
.ck-modifier { flex: 1; justify-content: center; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.ck-supprimer { padding: 8px; border-radius: 8px; border: 0; background: none; color: #9ca3af; cursor: pointer; display: inline-flex; transition: all .15s; }
.ck-supprimer:hover { color: #dc2626; background: #fef2f2; } .ck-supprimer:disabled { opacity: .3; cursor: default; } .ck-supprimer:disabled:hover { background: transparent; color: #9ca3af; }
.ck-erreur { font-size: 12px; color: #ef4444; margin: 8px 0 0; }
.ck-apercu-corps { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ck-coordonnee { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: #4b5563; text-decoration: none; margin: 0; }
a.ck-coordonnee:hover { color: #0035f5; }
.ck-coord-picto { color: #9ca3af; flex-shrink: 0; margin-top: 2px; }
.ck-dossiers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ck-dossier { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #0035f5; text-decoration: none; }
.ck-dossier:hover { text-decoration: underline; }
.ck-dossier-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.ck-avant-vente { font-size: 10px; color: #9ca3af; flex-shrink: 0; }
.ck-fleche { opacity: 0; flex-shrink: 0; } .ck-dossier:hover .ck-fleche { opacity: .6; }
.ck-form { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.ck-form-tete { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ck-form-titre { font-size: 14px; font-weight: 600; color: #111827; margin: 0; }
.ck-fermer { margin-left: auto; border: 0; background: none; color: #9ca3af; cursor: pointer; padding: 0; display: inline-flex; } .ck-fermer:hover { color: #4b5563; }
.ck-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; margin-bottom: 4px; }
textarea.ck-adresse { width: 100%; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; font-size: 14px; resize: none; box-sizing: border-box; }
.ck-logo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ck-logo-img { height: 40px; width: 80px; object-fit: contain; border-radius: 4px; border: 1px solid #e5e7eb; background: #fff; }
.ck-logo-vide { height: 40px; width: 80px; border-radius: 4px; border: 1px dashed #d1d5db; display: grid; place-items: center; font-size: 10px; color: #9ca3af; }
.btn-secondary.ck-petit { font-size: 12px; display: flex; align-items: center; gap: 6px; }
.ck-lien { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #9ca3af; border: 0; background: none; padding: 0; cursor: pointer; }
.ck-lien:hover { color: #0284c7; } .ck-lien.rouge:hover { color: #ef4444; }
.ck-aide { font-size: 11px; color: #9ca3af; margin: 4px 0 0; }
.ck-pied { display: flex; gap: 8px; padding-top: 4px; }
.ck-petit-primaire { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cl-titre { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; padding: 16px 0 4px; margin: 0; display: flex; align-items: center; gap: 6px; }
.cl-titre-nb { font-weight: 400; text-transform: none; letter-spacing: normal; }
.cl-vide { font-size: 12px; color: #9ca3af; margin: 0; }
.cl-liste { list-style: none; margin: 0; padding: 0; }
.cl-noeud { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.cl-picto { flex-shrink: 0; color: #d1d5db; } .cl-picto.racine { color: #1a4eff; }
.cl-nom { font-size: 14px; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-code, .cl-compte { font-size: 10px; color: #9ca3af; flex-shrink: 0; } .cl-compte { font-variant-numeric: tabular-nums; }
.cl-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; opacity: 0; transition: opacity .15s; flex-shrink: 0; }
.cl-noeud:hover .cl-actions { opacity: 1; }
.cl-action { padding: 2px; border: 0; background: none; color: #9ca3af; cursor: pointer; display: inline-flex; } .cl-action:hover { color: #0035f5; } .cl-action.sup:hover { color: #dc2626; }
.cl-ajout { display: flex; align-items: center; gap: 4px; padding: 4px 0; }
input.cl-champ { padding-top: 4px; padding-bottom: 4px; font-size: 12px; flex: 1; } input.cl-champ.fin { padding-top: 2px; padding-bottom: 2px; }
.cl-ok, .cl-annuler { padding: 4px; border: 0; background: none; cursor: pointer; display: inline-flex; } .cl-ok { color: #0035f5; } .cl-ok:disabled { opacity: .4; } .cl-annuler { color: #9ca3af; }
.cl-ajouter-site { margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #0035f5; border: 0; background: none; padding: 0; cursor: pointer; } .cl-ajouter-site:hover { text-decoration: underline; }
.cl-erreur { font-size: 12px; color: #ef4444; margin: 4px 0 0; }

/* ── Fiche client (ClientFile) ────────────────────────────────────────────────────────────────── */
.fc-page { max-width: 1400px; margin: 0 auto; padding: 24px; display: flex; flex-direction: column; gap: 20px; box-sizing: border-box; }
.fc-page h1, .fc-page h2 { text-transform: none; letter-spacing: normal; }
.fc-retour { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #9ca3af; text-decoration: none; align-self: flex-start; } .fc-retour:hover { color: #374151; }
.fc-entete { padding: 24px; }
.fc-identite { display: flex; align-items: flex-start; gap: 16px; }
.fc-logo { height: 56px; width: 96px; object-fit: contain; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; flex-shrink: 0; }
.tb-carre.fc-carre { width: 56px; height: 56px; border-radius: 12px; font-size: 20px; }
.fc-titres { min-width: 0; flex: 1; }
.fc-nom { font-size: 20px; line-height: 28px; font-weight: 700; color: #111827; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-coords { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 4px; margin-top: 6px; font-size: 12px; color: #6b7280; }
.fc-coord { display: inline-flex; align-items: center; gap: 4px; color: #6b7280; text-decoration: none; } a.fc-coord:hover { color: #0035f5; }
.fc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
@media (min-width: 1024px) { .fc-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fc-stat { border-radius: 12px; border: 1px solid #e5e7eb; padding: 12px 16px; }
.fc-stat-lib { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; display: flex; align-items: center; gap: 6px; margin: 0; }
.fc-stat-val { font-size: 20px; font-weight: 700; color: #111827; font-variant-numeric: tabular-nums; margin: 2px 0 0; }
.fc-stat-aide { font-size: 11px; color: #9ca3af; margin: 0; }
.fc-onglets { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid #e5e7eb; }
.fc-onglet { padding: 8px 12px; font-size: 14px; font-weight: 500; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: #6b7280; cursor: pointer; transition: color .15s; }
.fc-onglet:hover { color: #1f2937; } .fc-onglet.actif { border-bottom-color: #0035f5; color: #0028c2; }
.fc-grille { display: grid; gap: 20px; } @media (min-width: 1024px) { .fc-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fc-bloc { padding: 20px; }
.fc-h2 { font-size: 14px; font-weight: 600; color: #111827; margin: 0 0 12px; }
.fc-pile { display: flex; flex-direction: column; gap: 16px; }
.fc-projets { list-style: none; margin: 0; padding: 0; } .fc-projets > li + li { border-top: 1px solid #f3f4f6; }
.fc-projet { display: flex; align-items: center; gap: 12px; padding: 8px 0; text-decoration: none; }
.fc-projet-textes { flex: 1; min-width: 0; }
.fc-projet-nom { display: block; font-size: 14px; font-weight: 500; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-projet-info { display: block; font-size: 11px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-statut { font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 9999px; flex-shrink: 0; }
.fc-phase { font-size: 11px; color: #9ca3af; flex-shrink: 0; width: 40px; text-align: right; }
.fc-fleche { color: #d1d5db; opacity: 0; flex-shrink: 0; } .fc-projet:hover .fc-fleche { opacity: 1; }
.fc-marques { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fc-marque { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.fc-marque-nom { color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.fc-garantie { font-size: 11px; color: #9ca3af; flex-shrink: 0; }
.fc-qte { font-size: 14px; font-weight: 600; color: #111827; font-variant-numeric: tabular-nums; flex-shrink: 0; width: 32px; text-align: right; }
.fc-vide { padding: 32px; text-align: center; font-size: 14px; color: #9ca3af; }
.fc-parc { overflow: hidden; }
.fc-parc-rech { padding: 16px; border-bottom: 1px solid #f3f4f6; position: relative; }
.fc-loupe { color: #9ca3af; position: absolute; left: 28px; top: 50%; transform: translateY(-50%); }
input.fc-recherche { padding-left: 36px; }
.fc-tableau { width: 100%; font-size: 14px; border-collapse: collapse; }
.fc-tableau thead tr { background: #f9fafb; border-bottom: 1px solid #e5e7eb; text-align: left; }
.fc-tableau th { padding: 10px 16px; font-size: 12px; font-weight: 600; color: #6b7280; text-align: left; border: 0; background: none; }
.fc-tableau th.droite, .fc-tableau td.droite { text-align: right; }
.fc-tableau td { padding: 8px 16px; border: 0; }
.fc-tableau tbody tr + tr { border-top: 1px solid #f3f4f6; }
.fc-fab { color: #374151; } .fc-mod { font-weight: 500; color: #111827; } .fc-q { font-variant-numeric: tabular-nums; font-weight: 600; color: #111827; }
.fc-petit { font-size: 12px; color: #4b5563; } .fc-petit.gris { color: #6b7280; }
.fc-lien { color: #0035f5; text-decoration: none; } .fc-lien:hover { text-decoration: underline; }
.fc-note { padding: 8px 16px; font-size: 11px; color: #9ca3af; border-top: 1px solid #f3f4f6; margin: 0; }
.fc-rattacher { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.fc-rattacher-ouvrir { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #0035f5; border: 0; background: none; padding: 0; cursor: pointer; align-self: flex-start; } .fc-rattacher-ouvrir:hover { text-decoration: underline; }
.fc-dispo { font-size: 12px; color: #9ca3af; }
.fc-rattacher-titre { font-size: 14px; font-weight: 500; color: #111827; margin: 0; }
.fc-orphelins { max-height: 14rem; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 4px; }
.fc-orphelin { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #374151; }
.fc-rattacher-pied { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.fc-rattacher-go { display: flex; align-items: center; gap: 6px; font-size: 14px; } .fc-rattacher-go:disabled { opacity: .6; }

/* ── Prérequis (PrerequisitesTable) ───────────────────────────────────────────────────────────── */
.pq-page { padding: 24px; height: 100%; display: flex; flex-direction: column; box-sizing: border-box; }
.pq-page h1 { text-transform: none; letter-spacing: normal; }
.pq-tete { margin-bottom: 24px; flex-shrink: 0; }
.pq-vide { padding: 32px; text-align: center; font-size: 14px; color: #9ca3af; max-width: 42rem; margin: 0 auto; }
.pq-fort { font-weight: 500; color: #6b7280; }
.pq-corps { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pq-totaux { flex-shrink: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.pq-total { display: flex; align-items: baseline; gap: 6px; padding-right: 12px; border-right: 1px solid #e5e7eb; }
.pq-total-qte { font-size: 24px; font-weight: 600; color: #111827; }
.pq-total-lib { font-size: 14px; color: #6b7280; }
.pq-gris { color: #9ca3af; }
.pq-implante { display: flex; align-items: baseline; gap: 6px; padding: 0 12px; border-left: 1px solid #e5e7eb; }
.pq-ok { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #16a34a; }
.pq-a-implanter { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #d97706; } .pq-a-implanter.petit { font-size: 12px; display: inline; }
.pq-gras { font-weight: 600; }
.pq-csv { margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 12px; font-weight: 500; color: #4b5563; border: 1px solid #e5e7eb; border-radius: 8px; background: none; cursor: pointer; } .pq-csv:hover { background: #f9fafb; }
.pq-groupes { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.pq-groupe { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.pq-groupe-tete { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; text-align: left; background: #f9fafb; border: 0; cursor: pointer; transition: background .15s; } .pq-groupe-tete:hover { background: #f3f4f6; }
.pq-chevron { color: #9ca3af; flex-shrink: 0; }
.pq-zone { font-size: 14px; font-weight: 500; color: #1f2937; } .pq-zone.hors { color: #9ca3af; font-style: italic; }
.pq-groupe-qte { margin-left: auto; font-size: 14px; font-weight: 500; color: #374151; }
.pq-tableau { width: 100%; font-size: 14px; border-collapse: collapse; }
.pq-tableau thead tr { border-bottom: 1px solid #f3f4f6; }
.pq-tableau th { text-align: left; font-weight: 600; padding: 8px 12px; font-size: 12px; color: #6b7280; background: none; border: 0; }
.pq-tableau th.droite, .pq-tableau td.droite { text-align: right; }
.pq-tableau td { padding: 8px 12px; vertical-align: top; border: 0; }
.pq-tableau tbody tr { border-top: 1px solid #f3f4f6; }
.pq-tableau .nowrap { white-space: nowrap; }
.pq-pill { display: inline-block; border-radius: 4px; padding: 2px 6px; font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--c); background: var(--c-bg); }
.pq-type-lib { font-size: 12px; color: #6b7280; margin-top: 2px; }
.pq-qte { font-weight: 500; color: #1f2937; }
.pq-eq { color: #1f2937; }
.pq-ref { margin-left: 6px; font-family: ui-monospace, monospace; font-size: 12px; color: #9ca3af; }
.pq-eq2 { display: block; color: #6b7280; } .pq-fleche { color: #d1d5db; margin-right: 4px; } .pq-port2 { margin-left: 6px; font-size: 12px; color: #9ca3af; }
.pq-doux { color: #6b7280; }
.pq-sombre { color: #374151; } .pq-mono { font-family: ui-monospace, monospace; font-size: 12px; } .pq-sous { display: block; font-size: 12px; color: #9ca3af; }
/* Prises connectées (page propre à la version PHP) */
.pc-page { overflow: auto; }
.pc-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pc-etat { font-size: 12px; color: #9ca3af; white-space: nowrap; padding-top: 6px; }
.pc-corps { display: flex; flex-direction: column; gap: 16px; }
.pc-reglages { padding: 16px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.pc-reglages-champs { flex: 1 1 360px; display: flex; flex-direction: column; gap: 12px; }
.pc-ligne { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.pc-champ { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #6b7280; position: relative; }
.pc-champ-lib { font-weight: 500; }
.pc-unite { position: absolute; right: 8px; bottom: 8px; font-size: 12px; color: #9ca3af; pointer-events: none; }
.pc-input { height: 32px; padding: 0 8px; font-size: 13px; color: #111827; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; }
.pc-input.num { width: 120px; padding-right: 40px; }
.pc-input:disabled { background: #f9fafb; color: #6b7280; }
.pc-coche { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #374151; cursor: pointer; padding-bottom: 7px; }
.pc-note { margin: 0; font-size: 12px; color: #6b7280; line-height: 1.5; }
.pc-frise { flex: 0 1 340px; display: flex; flex-direction: column; gap: 3px; }
.pc-frise-ligne { display: flex; align-items: center; gap: 8px; }
.pc-frise-jour { width: 28px; font-size: 11px; color: #6b7280; flex-shrink: 0; }
.pc-frise-barre { flex: 1; display: grid; grid-template-columns: repeat(48, 1fr); height: 12px; border-radius: 3px; overflow: hidden; }
.pc-frise-barre .on { background: #fde68a; } .pc-frise-barre .off { background: #1e3a8a; }
.pc-frise-echelle { flex: 1; display: flex; justify-content: space-between; font-size: 10px; color: #9ca3af; }
.pc-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.pc-chiffre { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #f9fafb; border: 1px solid #e5e7eb; }
.pc-chiffre-lib { font-size: 12px; color: #6b7280; }
.pc-chiffre-val { font-size: 24px; font-weight: 600; color: #111827; }
.pc-chiffre-sous { font-size: 12px; color: #6b7280; }
.pc-chiffre.bon { background: #ecfdf5; border-color: #a7f3d0; } .pc-chiffre.bon .pc-chiffre-val { color: #047857; }
.pc-chiffre.alerte { background: #fffbeb; border-color: #fde68a; }
.pc-recap { overflow: hidden; }
.pc-tableau td.centre, .pc-tableau th.centre { text-align: center; }
.pc-tableau .pc-total td { font-weight: 600; color: #111827; border-top: 1px solid #e5e7eb; }
.pc-tableau tr.pc-exclu td { color: #9ca3af; }
.pc-doc { display: flex; flex-direction: column; gap: 8px; }
.pc-doc-titre { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: #374151; text-transform: none; letter-spacing: normal; }
.pc-salle-res { margin-left: auto; font-size: 13px; color: #9ca3af; } .pc-salle-res.actif { color: #047857; font-weight: 500; }
.pc-salle { border-top: 1px solid #f3f4f6; }
.pc-multiprises { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: #fcfcfd; border-bottom: 1px solid #f3f4f6; }
.pc-mp { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pc-mp-num { font-size: 13px; font-weight: 600; color: #1f2937; min-width: 88px; }
.pc-mp .pc-input { min-width: 260px; max-width: 100%; }
.pc-mp-info { font-size: 12px; color: #6b7280; } .pc-mp-info.alerte { color: #d97706; }
.pc-icone { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: #9ca3af; cursor: pointer; } .pc-icone:hover { background: #fef2f2; color: #dc2626; }
.pc-ajout { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 12px; font-weight: 500; color: #4b5563; border: 1px dashed #d1d5db; border-radius: 8px; background: none; cursor: pointer; } .pc-ajout:hover { background: #f9fafb; }
.pc-tableau .pc-input { height: 28px; font-size: 12px; }
.pc-gain { color: #047857; font-weight: 600; }
/* Liste de câbles (CablePurchaseTable) */
.lc-chiffre { display: flex; align-items: baseline; gap: 6px; } .lc-chiffre.trait { padding-left: 12px; border-left: 1px solid #e5e7eb; }
.lc-alerte { flex-shrink: 0; margin-bottom: 16px; border-radius: 12px; border: 1px solid #fde68a; background: #fffbeb; padding: 10px 12px; }
.lc-alerte-titre { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: #92400e; }
.lc-alerte-liste { margin: 6px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: rgba(146,64,14,.9); }
.lc-ml { margin-left: 4px; }
.lc-refs { font-size: 12px; color: #9ca3af; }
.lc-designation { display: flex; align-items: center; gap: 6px; color: #1f2937; }
.lc-sous { padding-left: 20px; font-size: 12px; color: #6b7280; }
.lc-ref { font-family: ui-monospace, monospace; font-size: 12px; color: #4b5563; }
.lc-a-renseigner { font-family: inherit; color: #d1d5db; }
.lc-petit { font-size: 12px; color: #6b7280; } .lc-manque { font-size: 12px; color: #d97706; }
.pq-groupe.pointille { border-style: dashed; }
.lc-a-referencer { padding: 10px 12px; background: #f9fafb; font-size: 14px; font-weight: 500; color: #6b7280; }
.lc-w24 { width: 96px; }
/* Liste équipements (ProjectEquipmentLibraryTable) */
.le-tete { margin-bottom: 24px; flex-shrink: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.le-ajout, .bi-ajout-bouton { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.le-zone { flex: 1; min-height: 0; overflow: auto; }
.le-barre { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.le-rech { position: relative; flex: 1; max-width: 24rem; }
.le-loupe { color: #9ca3af; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
input.le-recherche { width: 100%; font-size: 14px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 12px 6px 32px; box-sizing: border-box; }
input.le-recherche:focus { outline: none; box-shadow: 0 0 0 2px #dce6ff; border-color: #4d7aff; }
.le-filtre { font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 8px; border: 1px solid #e5e7eb; background: none; color: #4b5563; cursor: pointer; flex-shrink: 0; } .le-filtre:hover { background: #f9fafb; }
.le-filtre.actif { background: #0035f5; border-color: #0035f5; color: #fff; }
.le-compte { font-size: 12px; color: #9ca3af; flex-shrink: 0; }
.le-erreur { margin-bottom: 12px; padding: 8px 12px; font-size: 12px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; }
.le-groupes { display: flex; flex-direction: column; gap: 12px; }
.le-groupe-tete { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: #f9fafb; border: 0; border-bottom: 1px solid #e5e7eb; cursor: pointer; } .le-groupe-tete:hover { background: #f3f4f6; }
.le-groupe-lib { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #1f2937; }
.le-groupe-nb { font-size: 12px; font-weight: 400; color: #9ca3af; }
.le-items > * + * { border-top: 1px solid #f3f4f6; }
.le-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; font-size: 14px; } .le-item:hover { background: #f9fafb; }
.le-item-lib { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; cursor: default; } .le-item-lib.cliquable { cursor: pointer; }
input.le-case { flex-shrink: 0; padding: 0; } input.le-case:disabled { opacity: .7; }
.le-couleur { width: 8px; height: 8px; border-radius: 9999px; flex-shrink: 0; }
.le-nom { font-weight: 500; color: #111827; white-space: nowrap; }
.le-ref { color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.le-fourni { margin-left: 6px; display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; border: 1px dashed #fca5a5; background: #fef2f2; color: #dc2626; white-space: nowrap; }
.le-qte { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.le-qte-lib { font-size: 12px; color: #9ca3af; margin-right: 2px; }
.le-pas { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid #e5e7eb; background: none; color: #6b7280; cursor: pointer; padding: 0; }
.le-pas:hover { background: #f3f4f6; color: #374151; } .le-pas:disabled { opacity: .4; cursor: not-allowed; }
.le-qte-val { width: 24px; text-align: center; font-size: 14px; font-weight: 500; color: #111827; font-variant-numeric: tabular-nums; }
/* Cotation (CotationTable, CotationAssignPanel) */
.co-haut { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.co-bouton, .co-petit { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #4b5563; border: 1px solid #e5e7eb; border-radius: 8px; background: none; cursor: pointer; transition: all .15s; }
.co-bouton { padding: 6px 12px; } .co-petit { padding: 4px 10px; }
.co-bouton:hover { color: #0035f5; background: #f9fafb; } .co-petit:hover { color: #0035f5; background: #fff; }
.co-petit.erreur { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.co-alerte { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; font-size: 14px; color: #92400e; }
.co-alerte-texte { flex: 1; }
.co-groupe { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.co-groupe.sans { border-color: #fde68a; } .co-groupe.client { border-color: #fecaca; border-style: dashed; }
.co-groupe-tete { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; background: #f9fafb; }
.co-groupe.sans .co-groupe-tete { background: #fffbeb; border-bottom-color: #fde68a; } .co-groupe.client .co-groupe-tete { background: #fef2f2; border-bottom-color: #fecaca; }
.co-groupe-titre { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #1f2937; border: 0; background: none; padding: 0; cursor: pointer; } .co-groupe-titre:hover { color: #0035f5; }
.co-groupe.sans .co-groupe-titre { color: #92400e; } .co-groupe.client .co-groupe-titre { color: #b91c1c; }
.co-groupe-nb { font-size: 12px; font-weight: 400; color: #9ca3af; } .co-groupe.sans .co-groupe-nb { color: #f59e0b; }
.co-ambre { color: #f59e0b; }
.co-actions { display: flex; align-items: center; gap: 8px; }
.co-ligne:hover { background: #f9fafb; }
.co-des { color: #111827; font-weight: 500; }
.co-qte { color: #374151; }
.co-origine { font-size: 10px; color: #9ca3af; }
.co-w0 { width: 0; }
.co-affecter { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #b45309; border: 0; background: none; padding: 0; cursor: pointer; text-decoration: none; } .co-affecter:hover { color: #92400e; }
.co-voile { position: fixed; inset: 0; background: rgba(0,0,0,.1); z-index: 30; }
.co-hote { position: fixed; top: 0; right: 0; height: 100%; z-index: 40; }
.co-panneau { width: 420px; max-width: 100vw; background: #fff; border-left: 1px solid #e5e7eb; display: flex; flex-direction: column; height: 100%; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); overflow: hidden; }
.co-p-tete { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.co-p-titre { font-size: 14px; font-weight: 600; color: #111827; margin: 0; text-transform: none; letter-spacing: normal; }
.co-p-sous { font-size: 12px; color: #6b7280; margin: 2px 0 0; }
.co-p-fermer { border: 0; background: none; color: #9ca3af; cursor: pointer; padding: 0; display: inline-flex; flex-shrink: 0; } .co-p-fermer:hover { color: #374151; }
.co-p-corps { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 20px; }
.co-p-label { display: block; font-size: 12px; font-weight: 500; color: #4b5563; margin-bottom: 4px; }
input.co-input { width: 100%; font-size: 14px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 12px; box-sizing: border-box; }
input.co-input:focus { outline: none; box-shadow: 0 0 0 2px #dce6ff; border-color: #4d7aff; }
.co-p-nouveau { font-size: 12px; color: #0035f5; margin: 4px 0 0; }
.co-p-liste { display: flex; flex-direction: column; gap: 6px; }
.co-p-fournisseur { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #374151; cursor: pointer; }
.co-p-nouveau-f { display: flex; align-items: center; gap: 6px; margin-top: 8px; } .co-p-nouveau-f input.co-input { padding: 6px 10px; }
.co-p-creer { font-size: 12px; font-weight: 500; color: #0035f5; border: 0; background: none; padding: 6px 8px; cursor: pointer; }
.co-p-annuler { font-size: 12px; color: #9ca3af; border: 0; background: none; padding: 0 4px; cursor: pointer; }
.co-p-ajout { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: #4b5563; border: 0; background: none; padding: 0; margin-top: 8px; cursor: pointer; } .co-p-ajout:hover { color: #0035f5; }
.co-p-erreur { font-size: 12px; color: #dc2626; margin: 0; }
.co-p-pied { padding: 12px 16px; border-top: 1px solid #f3f4f6; background: rgba(249,250,251,.6); flex-shrink: 0; }
.co-p-enregistrer { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; font-size: 14px; font-weight: 600; background: #0035f5; color: #fff; border: 0; border-radius: 12px; cursor: pointer; } .co-p-enregistrer:hover { background: #0028c2; } .co-p-enregistrer:disabled { opacity: .5; }
/* Référentiel réseau (NetworkReferentialTable) */
.rf-barre { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.rf-compte { font-size: 14px; color: #6b7280; white-space: nowrap; margin: 0; }
select.rf-select { font-size: 12px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 10px; background: #fff; color: #374151; max-width: 16rem; }
input.rf-filtre { flex: 1; max-width: 20rem; font-size: 12px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 12px; background: #fff; }
.rf-droite { display: flex; align-items: center; gap: 8px; }
.rf-indic { font-size: 12px; color: #9ca3af; display: flex; align-items: center; gap: 4px; white-space: nowrap; } .rf-indic.ok { color: #16a34a; }
.rf-corps { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rf-cadre { flex: 1; min-height: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: auto; }
.rf-tableau { width: 100%; font-size: 14px; border-collapse: collapse; }
.rf-tableau thead { position: sticky; top: 0; z-index: 10; }
.rf-tableau th { border: 0; }
.rf-gris { background: #f3f4f6; }
.rf-groupe { text-align: left; padding: 4px 10px; font-size: 10px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .025em; white-space: nowrap; }
.rf-entetes { background: #fff; border-bottom: 1px solid #e5e7eb; }
.rf-entetes th { text-align: left; padding: 8px 10px; font-weight: 600; color: #9ca3af; font-size: 10px; text-transform: uppercase; letter-spacing: .025em; white-space: nowrap; background: #fff; }
.rf-w8 { width: 32px; }
.rf-tri { display: flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-transform: inherit; cursor: pointer; } .rf-tri:hover { color: #1f2937; }
.rf-tri-actif { color: #0035f5; } .rf-tri-picto { color: #d1d5db; }
.rf-ligne + .rf-ligne { border-top: 1px solid #f3f4f6; } .rf-ligne:hover { background: #f9fafb; }
.rf-ligne td { border: 0; }
.rf-qr { padding: 4px 0 4px 8px; }
.rf-qr-bouton { padding: 6px; border-radius: 6px; border: 0; background: none; color: #9ca3af; cursor: pointer; display: inline-flex; } .rf-qr-bouton:hover { color: #0035f5; background: #f0f4ff; }
.rf-c { padding: 6px 10px; font-size: 12px; } .rf-c.mono, .rf-champ.mono { font-family: ui-monospace, monospace; }
.rf-label { font-weight: 500; color: #111827; } .rf-texte { color: #4b5563; } .rf-doc { color: #9ca3af; }
.rf-repere { font-family: ui-monospace, monospace; font-size: 10.5px; font-weight: 600; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 4px; padding: 2px 6px; color: #4b5563; }
.rf-tiret { font-size: 12px; color: #9ca3af; }
.rf-cat { display: inline-flex; align-items: center; gap: 6px; } .rf-pastille { width: 8px; height: 8px; border-radius: 9999px; flex-shrink: 0; } .rf-cat-lib { color: #374151; }
.rf-vlan { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 9999px; }
.rf-saisie { padding: 4px 6px; }
input.rf-champ { width: 112px; font-size: 12px; border-radius: 6px; padding: 4px 8px; border: 1px solid #e5e7eb; background: #fff; color: #374151; box-sizing: border-box; }
input.rf-champ.vide { border-style: dashed; border-color: #d1d5db; background: rgba(249,250,251,.7); }
input.rf-champ.lecture { border-color: transparent; background: transparent; color: #9ca3af; }
input.rf-champ:focus { outline: none; box-shadow: 0 0 0 2px rgba(77,122,255,.4); border-color: #4d7aff; }
.rf-aucun { padding: 24px 12px; text-align: center; color: #9ca3af; font-size: 14px; }
/* Infrastructure réseau (VlanProfilesManager) */
.ir-page { max-width: 42rem; margin: 0 auto; padding: 24px; }
.ir-page h1, .ir-page h2 { text-transform: none; letter-spacing: normal; }
.ir-tete { margin-bottom: 24px; }
.ir-vide { padding: 32px; text-align: center; }
.ir-vide-picto { color: #d1d5db; display: block; margin: 0 auto 12px; }
.ir-vide-texte { font-size: 14px; color: #6b7280; margin: 0 0 16px; }
.ir-creer { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: #0035f5; text-decoration: none; } .ir-creer:hover { color: #0028c2; }
.ir-liste { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.ir-liste > * + * { border-top: 1px solid #f3f4f6; }
.ir-doc { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.ir-doc-textes { min-width: 0; flex: 1; }
.ir-doc-nom { font-size: 14px; font-weight: 500; color: #111827; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ir-doc-nb { font-size: 12px; color: #9ca3af; margin: 0; }
.ir-boutons { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.co-bouton.ir-lien { text-decoration: none; }
.ir-section { margin-top: 40px; scroll-margin-top: 24px; }
.ir-s-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ir-s-titre { font-size: 16px; font-weight: 600; color: #111827; display: flex; align-items: center; gap: 8px; margin: 0; }
.ir-bleu { color: #0035f5; }
.ir-s-texte { font-size: 14px; color: #6b7280; margin: 0 0 16px; }
.ir-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.ir-nouveau { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; background: #0035f5; color: #fff; font-weight: 500; border: 0; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; } .ir-nouveau:hover { background: #0028c2; }
.ir-depuis { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; border: 1px solid #e5e7eb; background: none; color: #374151; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; } .ir-depuis:hover { background: #f9fafb; } .ir-depuis:disabled { opacity: .4; cursor: default; }
.ir-aucun { padding: 32px 0; text-align: center; font-size: 14px; color: #9ca3af; }
.ir-profil { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.ir-chevron { border: 0; background: none; color: #9ca3af; padding: 0; cursor: pointer; display: inline-flex; } .ir-chevron:hover { color: #374151; }
input.ir-nom { flex: 1; min-width: 0; padding: 4px 8px; font-size: 14px; font-weight: 500; background: transparent; border: 1px solid transparent; border-radius: 6px; }
input.ir-nom:hover { border-color: #e5e7eb; } input.ir-nom:focus { outline: none; box-shadow: 0 0 0 2px #1a4eff; }
.ir-pastilles { display: none; align-items: center; gap: 4px; flex-shrink: 0; } @media (min-width: 640px) { .ir-pastilles { display: flex; } }
.ir-pastille { width: 10px; height: 10px; border-radius: 2px; }
.ir-nb { font-size: 12px; color: #9ca3af; flex-shrink: 0; width: 56px; text-align: right; }
.ir-defaut { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: #fffbeb; color: #b45309; display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.ir-icone { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; border: 0; background: none; color: #d1d5db; cursor: pointer; flex-shrink: 0; padding: 0; }
.ir-icone:hover { color: #4b5563; background: #f9fafb; } .ir-icone.etoile:hover { color: #f59e0b; background: #fffbeb; } .ir-icone.rouge:hover { color: #ef4444; background: #fef2f2; } .ir-icone:disabled { opacity: .3; }
.ir-icone.petit { width: 24px; height: 24px; }
.ir-vlans { padding: 0 12px 12px 36px; }
.ir-source { font-size: 11px; color: #9ca3af; margin: 0 0 8px; }
.ir-grille { display: grid; grid-template-columns: 28px 64px 1fr 1fr 1fr 28px; gap: 6px; align-items: center; margin-bottom: 4px; }
.ir-grille.entetes { font-size: 10px; font-weight: 600; text-transform: uppercase; color: #9ca3af; }
.ir-couleur { width: 24px; height: 24px; border-radius: 6px; cursor: pointer; border: 1px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1); overflow: hidden; display: block; }
.ir-couleur input { opacity: 0; width: 100%; height: 100%; cursor: pointer; padding: 0; border: 0; }
input.ir-champ { width: 100%; padding: 4px 8px; font-size: 12px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; box-sizing: border-box; }
input.ir-champ:focus { outline: none; box-shadow: 0 0 0 2px #1a4eff; border-color: transparent; }
input.ir-champ.mono { font-family: ui-monospace, monospace; } input.ir-champ.centre { text-align: center; }
.ir-ajout { margin-top: 4px; font-size: 12px; font-weight: 500; color: #0035f5; border: 0; background: none; padding: 0; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.ir-projet { font-size: 11px; color: #9ca3af; margin: 8px 0 0; }
/* Nomenclature (CableRefSchemeForm) */
.nm-page { max-width: 64rem; margin: 0 auto; padding: 24px 24px 0; display: flex; flex-direction: column; gap: 16px; }
.nm-page h1, .nm-page h2, .nm-page h3 { text-transform: none; letter-spacing: normal; }
.nm-carte { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; }
.nm-h2 { font-size: 14px; font-weight: 600; color: #111827; margin: 0; }
.nm-aide { margin: 4px 0 0; font-size: 12px; color: #6b7280; } .nm-aide.petit { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.nm-bases { margin-top: 12px; display: grid; gap: 12px; } @media (min-width: 640px) { .nm-bases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nm-base { text-align: left; padding: 16px; border-radius: 12px; border: 1px solid #e5e7eb; background: none; cursor: pointer; transition: background .15s; }
.nm-base:hover { background: #f9fafb; } .nm-base.actif { border-color: #1a4eff; background: #f0f4ff; } .nm-base:disabled { opacity: .6; cursor: default; }
.nm-base-ligne { display: flex; align-items: center; gap: 8px; }
.nm-radio { width: 14px; height: 14px; border-radius: 9999px; border: 2px solid #d1d5db; flex-shrink: 0; box-sizing: border-box; } .nm-radio.actif { border-color: #0035f5; background: #0035f5; }
.nm-bleu { color: #0035f5; }
.nm-base-titre { font-size: 14px; font-weight: 600; color: #111827; }
.nm-chips { margin: 8px 0 0; display: flex; gap: 6px; }
.nm-chip { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 11px; background: #f3f4f6; color: #4b5563; }
.nm-chip.exemple { background: #f0f4ff; color: #0028c2; font-size: 12px; padding: 4px 8px; }
.nm-chip.barre { color: #6b7280; text-decoration: line-through; } .nm-chip.nouveau { background: #f0f4ff; color: #0028c2; font-weight: 600; }
.nm-format { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 32px; row-gap: 16px; }
.nm-droite { margin-left: auto; }
.nm-lib { font-size: 12px; font-weight: 500; color: #4b5563; margin: 0 0 6px; }
.nm-seg { display: inline-flex; border-radius: 8px; border: 1px solid #e5e7eb; overflow: hidden; }
.nm-seg-b { padding: 6px 12px; font-size: 12px; border: 0; background: none; color: #4b5563; cursor: pointer; } .nm-seg-b + .nm-seg-b { border-left: 1px solid #e5e7eb; }
.nm-seg-b:hover { background: #f9fafb; } .nm-seg-b.actif { background: #f0f4ff; color: #0028c2; font-weight: 600; } .nm-seg-b:disabled { opacity: .5; }
input.nm-prefixe { width: 128px; padding: 6px 10px; font-size: 12px; font-family: ui-monospace, monospace; text-transform: uppercase; border: 1px solid #e5e7eb; border-radius: 8px; box-sizing: border-box; }
.nm-cadre { margin-top: 12px; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 8px; }
.nm-tableau { width: 100%; font-size: 12px; border-collapse: collapse; }
.nm-tableau thead { background: #f9fafb; color: #6b7280; }
.nm-tableau th { padding: 8px 12px; text-align: left; font-weight: 500; border: 0; } .nm-tableau th.droite, .nm-tableau td.droite { text-align: right; }
.nm-tableau .w24 { width: 96px; } .nm-tableau .w32 { width: 128px; }
.nm-tableau td { padding: 8px 12px; border: 0; } .nm-tableau td.haut { vertical-align: top; }
.nm-tableau tbody tr + tr { border-top: 1px solid #f3f4f6; }
.nm-signal { display: inline-flex; align-items: center; gap: 8px; }
.nm-pastille { width: 10px; height: 10px; border-radius: 9999px; flex-shrink: 0; }
.nm-signal-lib { color: #1f2937; } .nm-cle { font-family: ui-monospace, monospace; font-size: 10px; color: #9ca3af; }
.nm-membres { display: block; margin-top: 2px; font-size: 10px; color: #9ca3af; }
input.nm-champ { width: 112px; padding: 4px 8px; font-size: 11px; font-family: ui-monospace, monospace; text-transform: uppercase; border: 1px solid #e5e7eb; border-radius: 4px; box-sizing: border-box; }
.nm-rattache { margin-top: 16px; }
.nm-grille { margin-top: 8px; display: grid; gap: 8px; } @media (min-width: 640px) { .nm-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nm-ratt { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 8px; }
.nm-ratt-lib { font-size: 12px; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
select.nm-select { font-size: 11px; padding: 4px 6px; border: 1px solid #e5e7eb; border-radius: 4px; background: #fff; color: #374151; }
.nm-erreur { display: flex; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; font-size: 12px; color: #b91c1c; }
.nm-ok { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 8px; background: #f0fdf4; border: 1px solid #bbf7d0; font-size: 12px; color: #15803d; }
.nm-barre { position: sticky; bottom: 0; z-index: 20; margin: 0 -24px; padding: 12px 24px; border-top: 1px solid #e5e7eb; background: rgba(255,255,255,.95); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.nm-info { font-size: 12px; color: #6b7280; min-width: 0; flex: 1; margin: 0; } .nm-fort { color: #1f2937; font-weight: 500; }
.nm-enregistrer { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 14px; font-weight: 500; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; color: #374151; cursor: pointer; } .nm-enregistrer:hover { background: #f9fafb; } .nm-enregistrer:disabled { opacity: .5; }
.nm-vert { color: #16a34a; }
.nm-appliquer { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 14px; font-weight: 500; border-radius: 8px; border: 0; background: #0035f5; color: #fff; cursor: pointer; } .nm-appliquer:hover { background: #0028c2; } .nm-appliquer:disabled { opacity: .4; }
.nm-fond { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; padding: 16px; }
.nm-modale { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; width: 100%; max-width: 48rem; max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); }
.nm-m-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #f3f4f6; }
.nm-m-titre { font-size: 14px; font-weight: 600; color: #111827; margin: 0; }
.nm-m-fermer { padding: 6px; border-radius: 8px; border: 0; background: none; color: #9ca3af; cursor: pointer; display: inline-flex; } .nm-m-fermer:hover { background: #f3f4f6; }
.nm-m-options { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid #f3f4f6; }
.nm-m-option { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; } .nm-m-option.trait { padding-top: 4px; border-top: 1px solid #f3f4f6; }
.nm-m-option input { margin-top: 2px; }
.nm-m-otitre { display: block; font-size: 12px; font-weight: 500; color: #1f2937; } .nm-m-odesc { display: block; font-size: 11px; color: #6b7280; }
.nm-m-liste { flex: 1; overflow-y: auto; padding: 12px 20px; }
.nm-m-vide { font-size: 12px; color: #6b7280; padding: 24px 0; text-align: center; margin: 0; }
.nm-m-tableau { width: 100%; font-size: 12px; border-collapse: collapse; } .nm-m-tableau tr + tr { border-top: 1px solid #f3f4f6; }
.nm-m-tableau td { padding: 6px 8px 6px 0; border: 0; } .nm-m-tableau .w28 { width: 112px; } .nm-m-tableau .w5 { width: 20px; }
.nm-m-qui { color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-m-pied { padding: 12px 20px; border-top: 1px solid #f3f4f6; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
/* Fiches et manuels */
.fm-page { max-width: 64rem; margin: 0 auto; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.fm-page h1, .fm-page h2 { text-transform: none; letter-spacing: normal; }
.fm-titre-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fm-zip { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; }
.fm-h2 { font-size: 14px; font-weight: 600; color: #1f2937; margin: 0; } .fm-h2.marge { margin-bottom: 4px; color: #111827; }
.fm-aide { font-size: 12px; color: #6b7280; margin: 0 0 16px; }
.fm-cases { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.fm-case { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #374151; }
.fm-petit { margin-left: 6px; font-size: 12px; font-weight: 400; color: #9ca3af; }
.fm-carte { overflow: hidden; }
.fm-carte-tete { padding: 12px 16px; background: #f9fafb; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; gap: 8px; }
.fm-nb { font-size: 12px; color: #9ca3af; background: #f3f4f6; padding: 2px 6px; border-radius: 9999px; }
.fm-tableau { width: 100%; font-size: 14px; border-collapse: collapse; }
.fm-tableau thead tr { background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.fm-tableau th { text-align: left; padding: 10px 16px; font-weight: 600; color: #6b7280; font-size: 12px; white-space: nowrap; border: 0; background: none; } .fm-tableau .centre { text-align: center; }
.fm-tableau td { padding: 8px 16px; border: 0; } .fm-tableau tbody tr + tr { border-top: 1px solid #f3f4f6; } .fm-tableau tbody tr:hover { background: #f9fafb; }
.fm-nom { color: #111827; font-weight: 500; white-space: nowrap; }
.fc-lien-eq { text-align: left; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; } .fc-lien-eq:hover { color: #0035f5; text-decoration: underline; }
.fm-source { color: #9ca3af; width: 100%; max-width: 0; }
.fm-source-texte { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-plus { color: #d1d5db; }
.fm-ok { color: #16a34a; display: inline; }
.fm-manque { display: inline-flex; align-items: center; gap: 4px; color: #dc2626; font-size: 12px; font-weight: 500; }
.fm-groupes { display: flex; flex-direction: column; gap: 24px; }
.fm-liste > * + * { border-top: 1px solid #f3f4f6; }
.fm-item { padding: 12px 16px; }
.fm-item-eq { font-size: 12px; font-weight: 500; color: #6b7280; margin: 0 0 6px; }
.fm-item-doc { color: #d1d5db; margin-left: 6px; }
.fm-fichier { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #374151; text-decoration: none; } .fm-fichier:hover { color: #0035f5; }
.fm-fichier-picto { color: #d1d5db; flex-shrink: 0; } .fm-fichier:hover .fm-fichier-picto { color: #1a4eff; }
.fm-fichier-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.fm-hote { position: fixed; top: 0; right: 0; height: 100%; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; }
.fm-erreur { margin: 12px; padding: 8px 12px; font-size: 12px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; }
.fm-erreur[hidden] { display: none; }
.fm-remontee { position: fixed; bottom: 16px; right: 16px; z-index: 50; display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12px; font-weight: 500; color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 8px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }
/* Choix d'un document (DocChooserList) */
.ir-liste.cd-liste { margin-bottom: 16px; }
.cd-doc { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; transition: background .15s; } .cd-doc:hover { background: #f9fafb; }

/* ── Recherche IA de la modale « Ajouter un équipement » (ia-) ─────────────────────────── */
.bi-modale-retour { padding: 6px; margin-left: -6px; border-radius: 8px; background: none; border: 0; color: #6b7280; cursor: pointer; display: flex; }
.bi-modale-retour:hover { background: #f3f4f6; }
.ia-corps { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.ia-libelle { display: block; font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.ia-zone { width: 100%; box-sizing: border-box; padding: 8px 12px; font-size: 14px; line-height: 20px; font-family: inherit; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; resize: none; }
.ia-zone:focus { outline: none; border-color: #818cf8; box-shadow: 0 0 0 2px #a5b4fc; }
.ia-erreur { margin: 0; font-size: 12px; line-height: 16px; color: #d97706; }
.ia-lancer { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 0; font-size: 14px; line-height: 20px; font-weight: 600; font-family: inherit; border: 0; border-radius: 12px; background: #4f46e5; color: #fff; cursor: pointer; transition: background .15s; }
.ia-lancer:hover { background: #4338ca; }
.ia-lancer:disabled { opacity: .5; cursor: default; }
.ia-lancer:disabled:hover { background: #4f46e5; }
.ia-roue { width: 16px; height: 16px; box-sizing: border-box; border: 2px solid rgba(255,255,255,.6); border-top-color: transparent; border-radius: 9999px; animation: pj-tourne 1s linear infinite; }
.ia-proposition { border: 1px solid #c7d2fe; background: rgba(238,242,255,.4); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ia-proposition p { margin: 0; }
.ia-prop-titre { font-size: 14px; line-height: 20px; font-weight: 700; color: #111827; }
.ia-prop-sous { font-size: 12px; line-height: 16px; color: #6b7280; }
.ia-prop-desc { font-size: 12px; line-height: 16px; color: #4b5563; }
.ia-prop-ports { font-size: 11px; color: #6b7280; }
.ia-prop-faits { font-size: 11px; color: #4b5563; }
.ia-prop-ok { color: #047857; }
.ia-prop-ko { color: #b45309; }
.ia-prop-poe { font-size: 11px; font-weight: 500; color: #b45309; display: flex; align-items: center; gap: 4px; }
.ia-prop-poe svg { flex-shrink: 0; }
.ia-prop-actions { display: flex; gap: 8px; padding-top: 4px; }
.ia-prop-utiliser { flex: 1; font-size: 12px; font-weight: 600; font-family: inherit; background: #4f46e5; color: #fff; padding: 8px 12px; border: 0; border-radius: 8px; cursor: pointer; transition: background .15s; }
.ia-prop-utiliser:hover { background: #4338ca; }
.ia-prop-recommencer { font-size: 12px; font-family: inherit; color: #6b7280; padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid #e5e7eb; cursor: pointer; }
.ia-prop-recommencer:hover { background: #f3f4f6; }

/* Boutons IA du panneau d'édition : roue et message (generateAiPorts, ConstructeurBlock) */
.po-ia-roue { width: 14px; height: 14px; box-sizing: border-box; border: 2px solid #818cf8; border-top-color: transparent; border-radius: 9999px; animation: pj-tourne 1s linear infinite; }
.po-ia-message { margin: 6px 0 0; padding: 0 4px; font-size: 11px; color: #6b7280; }
.ca-roue { width: 14px; height: 14px; box-sizing: border-box; border: 2px solid #818cf8; border-top-color: transparent; border-radius: 9999px; animation: pj-tourne 1s linear infinite; }
.ca-message { margin: 8px 0 0; font-size: 11px; color: #6b7280; }

/* ── Outils IA en lot de la bibliothèque (lia-) : FicheAuditPanel, FicheCharacteristicsPanel ── */
.lia-roue { width: 12px; height: 12px; box-sizing: border-box; border: 2px solid currentColor; border-top-color: transparent; border-radius: 9999px; animation: pj-tourne 1s linear infinite; flex-shrink: 0; }
.lia-audit { position: relative; background: #fff; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); width: 100%; max-width: 48rem; margin: 0 16px; max-height: 88vh; display: flex; flex-direction: column; }
.lia-tete { display: flex; align-items: center; gap: 8px; padding: 20px; border-bottom: 1px solid #f3f4f6; }
.lia-tete-icone { color: #6366f1; flex-shrink: 0; }
.lia-tete-textes { flex: 1; min-width: 0; }
.lia-titre { margin: 0; text-transform: none; letter-spacing: normal; font-size: 18px; line-height: 28px; font-weight: 700; color: #111827; }
.lia-sous { margin: 2px 0 0; font-size: 12px; line-height: 16px; color: #6b7280; }
.lia-corps { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.lia-applique { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px; padding: 8px 12px; }
.lia-fiche { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.lia-fiche-tete { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f9fafb; }
.lia-fiche-id { flex: 1; min-width: 0; }
.lia-fiche-id p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lia-fiche-nom { font-size: 14px; line-height: 20px; font-weight: 600; color: #111827; }
.lia-fiche-ref { font-size: 11px; color: #9ca3af; }
.lia-puce { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; gap: 4px; }
.lia-puce.gris, .lia-pilule.gris { background: #f3f4f6; color: #6b7280; }
.lia-puce.indigo { background: #e0e7ff; color: #4338ca; }
.lia-puce.vert { background: #d1fae5; color: #047857; }
.lia-puce.ambre { background: #fef3c7; color: #b45309; }
.lia-puce.rouge { background: #fee2e2; color: #b91c1c; }
.lia-tout { font-size: 10px; font-weight: 500; color: #4f46e5; background: none; border: 0; cursor: pointer; flex-shrink: 0; font-family: inherit; }
.lia-tout:hover { text-decoration: underline; }
.lia-erreur { margin: 0; padding: 8px 12px; font-size: 11px; color: #dc2626; }
.lia-note { margin: 0; padding: 8px 12px; font-size: 11px; color: #6b7280; font-style: italic; }
.lia-ecarts > * + * { border-top: 1px solid #f3f4f6; }
.lia-ecart { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; cursor: pointer; transition: background-color .15s; }
.lia-ecart:hover { background: #f9fafb; }
.lia-ecart.on { background: rgba(238,242,255,.4); }
.lia-ecart input { margin-top: 2px; width: 14px; height: 14px; flex-shrink: 0; accent-color: #4f46e5; }
.lia-ecart-corps { min-width: 0; flex: 1; }
.lia-ecart-l1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lia-sev { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.lia-sev.err { background: #fee2e2; color: #b91c1c; }
.lia-sev.warn { background: #fef3c7; color: #b45309; }
.lia-ecart-titre { font-size: 12px; font-weight: 600; color: #1f2937; }
.lia-ecart-l2 { margin: 4px 0 0; font-size: 11px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lia-avant { color: #9ca3af; text-decoration: line-through; }
.lia-fleche { color: #d1d5db; }
.lia-apres { font-weight: 600; color: #047857; }
.lia-raison { margin: 2px 0 0; font-size: 11px; color: #6b7280; }
.lia-obs { padding: 8px 12px; border-top: 1px solid #f3f4f6; background: rgba(249,250,251,.6); display: flex; flex-direction: column; gap: 4px; }
.lia-obs p { margin: 0; }
.lia-obs-l { font-size: 11px; color: #6b7280; display: flex; align-items: flex-start; gap: 6px; }
.lia-obs-l svg { flex-shrink: 0; margin-top: 2px; color: #9ca3af; }
.lia-obs-pied { font-size: 10px; color: #9ca3af; padding-left: 16px; }
.lia-pied { display: flex; align-items: center; gap: 8px; padding: 16px; border-top: 1px solid #f3f4f6; }
.lia-pied-texte { margin: 0; font-size: 11px; color: #6b7280; flex: 1; }
.lia-fermer { font-size: 12px; font-weight: 500; font-family: inherit; color: #4b5563; padding: 8px 12px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; cursor: pointer; }
.lia-fermer:hover { background: #f9fafb; }
.lia-appliquer { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; font-family: inherit; background: #4f46e5; color: #fff; padding: 8px 12px; border-radius: 8px; border: 0; cursor: pointer; }
.lia-appliquer:hover { background: #4338ca; }
.lia-appliquer:disabled { opacity: .4; cursor: default; }
.lia-voile { position: fixed; inset: 0; background: rgba(0,0,0,.2); z-index: 40; }
.lia-tiroir { position: fixed; top: 0; bottom: 0; right: 0; width: 100%; max-width: 42rem; z-index: 50; background: #fff; border-left: 1px solid #e5e7eb; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); display: flex; flex-direction: column; }
.lia-tiroir-tete { flex-shrink: 0; padding: 16px 20px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.lia-tiroir-titre { margin: 0; text-transform: none; letter-spacing: normal; display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: #111827; }
.lia-tiroir-titre svg { color: #6366f1; }
.lia-tiroir-sous { margin: 4px 0 0; font-size: 12px; line-height: 16px; color: #6b7280; }
.lia-tiroir-x { padding: 6px; border-radius: 8px; color: #9ca3af; background: none; border: 0; cursor: pointer; display: flex; }
.lia-tiroir-x:hover { color: #4b5563; background: #f3f4f6; }
.lia-tiroir-x:disabled { opacity: .4; }
.lia-tiroir-corps { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.lia-carac { border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; }
.lia-carac-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lia-carac-nom { font-size: 14px; line-height: 20px; font-weight: 500; color: #111827; }
.lia-carac-ref { font-size: 12px; line-height: 16px; color: #9ca3af; }
.lia-pilule { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9999px; font-size: 11px; font-weight: 500; }
.lia-pilule.indigo { background: #eef2ff; color: #4f46e5; }
.lia-pilule.vert { background: #ecfdf5; color: #047857; }
.lia-pilule.ambre { background: #fffbeb; color: #b45309; }
.lia-pilule.rouge { background: #fef2f2; color: #b91c1c; }
.lia-carac-erreur { margin: 8px 0 0; display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: #b45309; }
.lia-carac-erreur svg, .lia-ecriture-erreur svg { margin-top: 2px; flex-shrink: 0; }
.lia-carac-note { margin: 8px 0 0; font-size: 12px; color: #6b7280; font-style: italic; }
.lia-carac-valeurs { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.lia-carac-ligne { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 2px 0; cursor: pointer; }
.lia-carac-champ { width: 96px; flex-shrink: 0; color: #6b7280; }
.lia-carac-val { font-weight: 500; color: #111827; }
.lia-tiroir-pied { flex-shrink: 0; padding: 16px 20px; border-top: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: 8px; }
.lia-ecriture-erreur { margin: 0; display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: #dc2626; }
.lia-tiroir-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lia-tiroir-ligne .lia-pied-texte { font-size: 12px; }
.lia-tiroir-boutons { display: flex; align-items: center; gap: 8px; }
.lia-tiroir-fermer { padding: 8px 12px; font-size: 14px; font-family: inherit; border-radius: 8px; border: 1px solid #e5e7eb; color: #374151; background: #fff; cursor: pointer; }
.lia-tiroir-fermer:hover { background: #f9fafb; }
.lia-tiroir-fermer:disabled { opacity: .4; }
.lia-tiroir-appliquer { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 14px; font-weight: 500; font-family: inherit; border-radius: 8px; border: 0; background: #0035f5; color: #fff; cursor: pointer; }
.lia-tiroir-appliquer:hover { background: #0028c2; }
.lia-tiroir-appliquer:disabled { opacity: .4; cursor: default; }

/* ── Pages d'impression (app/print/* : page au format, sans chrome, fond blanc) ─────────────── */
body.impression { height: auto; overflow: visible; background: #fff; display: block; }
.impression-page { box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-end; background: #fff; overflow: hidden; }
.impression-dessin { flex: 1; width: 100%; min-width: 0; min-height: 0; display: flex; }
body.impression .editeur { height: 100%; width: 100%; flex: 1; }
body.impression .canvas { background: #fff !important; background-image: none !important; }
body.impression .rf-panneau, body.impression .cb-hote, body.impression .palette, body.impression .bandeau,
body.impression .calque-outils, body.impression .lasso, body.impression .hl-bandeau, body.impression .dk-hote,
body.impression .mode-lecture-badge { display: none !important; }
.impression-cartouche:empty { display: none; }

/* ── Page Export (ex-) : ExportHub, ExportPieceTree, ExportSettingsPanel, PieceMenu ─────────────── */
#export { max-width: 72rem; margin: 0 auto; padding: 24px; box-sizing: border-box; }
.ex-tete { margin-bottom: 24px; }
.ex-h1 { margin: 0; text-transform: none; letter-spacing: normal; font-size: 20px; line-height: 28px; font-weight: 700; color: #111827; }
.ex-intro { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: #6b7280; }
.ex-corps { display: flex; flex-direction: column; gap: 24px; }
.ex-grille { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .ex-grille { grid-template-columns: minmax(0, 1fr) 340px; } .ex-droite { position: sticky; top: 16px; } }
.ex-droite { display: flex; flex-direction: column; gap: 16px; }
.ex-carte { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.ex-pad { padding: 16px; }
.ex-pad-l { padding: 24px; }
.ex-h2 { margin: 0; text-transform: none; letter-spacing: normal; font-size: 14px; line-height: 20px; font-weight: 600; color: #111827; }
.ex-mb { margin-bottom: 12px; }
.ex-mb-p { margin-bottom: 4px; }
.ex-flex { flex: 1; }
.ex-erreur { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 8px 12px; }
.ex-erreur svg { flex-shrink: 0; }
.ex-avert-bloc { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 12px; }
.ex-avert-bloc svg { flex-shrink: 0; margin-top: 2px; }
.ex-avert-bloc p { margin: 0; }
.ex-avert-t { font-weight: 600; }
.ex-avert-l { font-size: 12px; }
/* Panier */
.ex-panier { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.ex-panier-tete { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e5e7eb; }
.ex-compte { font-size: 12px; color: #9ca3af; }
.ex-tout { font-size: 12px; color: #0035f5; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.ex-tout:hover { text-decoration: underline; } .ex-tout:disabled { opacity: .5; }
.ex-vues { display: flex; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.ex-vue { padding: 4px 10px; font-size: 12px; font-weight: 500; color: #4b5563; background: #fff; border: 0; cursor: pointer; font-family: inherit; transition: background-color .15s; }
.ex-vue:hover { background: #f9fafb; } .ex-vue.actif { background: #111827; color: #fff; }
.ex-groupe { border-bottom: 1px solid #f3f4f6; }
.ex-groupe:last-child { border-bottom: 0; }
.ex-groupe-tete { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: #f9fafb; font-size: 12px; font-weight: 500; color: #4b5563; cursor: pointer; user-select: none; }
.ex-chev { flex-shrink: 0; color: #9ca3af; }
.ex-groupe-titre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-groupe-n { font-weight: 400; color: #9ca3af; }
.ex-groupe-resume { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; font-weight: 400; color: #9ca3af; }
.ex-panier ul { list-style: none; margin: 0; padding: 0; }
.ex-ligne { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 24px; }
.ex-ligne:hover, .ex-arbre-ligne:hover { background: rgba(249,250,251,.6); }
.ex-case-vide { width: 13px; flex-shrink: 0; }
.ex-ic { flex-shrink: 0; } .ex-ic.muet { color: #d1d5db; } .ex-ic.doc { color: #0035f5; } .ex-ic.autre { color: #6b7280; }
.ex-lib { font-size: 14px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1f2937; }
.ex-lib.muet { color: #9ca3af; } .ex-lib.doc { font-weight: 600; color: #111827; }
.ex-meta { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; text-align: right; }
.ex-meta.gris { color: #9ca3af; } .ex-meta.bleu { color: #0028c2; }
.ex-orient { flex-shrink: 0; display: flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-family: inherit; border: 1px solid transparent; color: #9ca3af; background: none; cursor: pointer; transition: all .15s; }
.ex-orient:hover { border-color: #e5e7eb; color: #4b5563; }
.ex-orient.propre { border-color: #85a8ff; background: #f0f4ff; color: #0028c2; }
.ex-orient:disabled { opacity: .5; }
.ex-orient-ic { display: inline-block; border: 1px solid currentColor; border-radius: 1px; }
.ex-orient-ic.p { width: 7px; height: 10px; } .ex-orient-ic.l { width: 10px; height: 7px; }
.ex-carte-doc { border-top: 1px solid #f3f4f6; padding-bottom: 6px; }
.ex-carte-doc:first-child { border-top: 0; }
.ex-arbre-ligne { display: flex; align-items: stretch; padding-right: 8px; }
.ex-arbre-marge { width: 36px; flex-shrink: 0; }
.ex-rail { width: 20px; flex-shrink: 0; } .ex-rail.trait { border-left: 1px solid #d1d5db; }
.ex-coude { position: relative; width: 20px; flex-shrink: 0; }
.ex-coude-v { position: absolute; left: 0; top: 0; height: 100%; border-left: 1px solid #d1d5db; }
.ex-coude-v.demi { height: 50%; }
.ex-coude-h { position: absolute; left: 0; top: 50%; width: 14px; border-top: 1px solid #d1d5db; }
.ex-arbre-lab { display: flex; flex: 1; min-width: 0; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; }
.ex-tag { flex-shrink: 0; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; padding: 2px 6px; border-radius: 4px; }
.ex-tag.violet { background: #ede9fe; color: #5b21b6; } .ex-tag.turquoise { background: #ccfbf1; color: #115e59; }
.ex-tag.gris { background: #f3f4f6; color: #374151; } .ex-tag.ambre { background: #fef3c7; color: #92400e; } .ex-tag.ciel { background: #e0f2fe; color: #075985; }
.ex-arbre-nom { font-size: 14px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1f2937; }
.ex-arbre-nom.fort { font-weight: 600; color: #111827; }
.ex-arbre-fmt { font-size: 11px; color: #9ca3af; }
.ex-arbre-fin { display: flex; align-items: center; gap: 4px; }
/* Menu d'une pièce */
.ex-menu-hote { position: relative; flex-shrink: 0; }
.ex-menu-vide { width: 28px; flex-shrink: 0; }
.ex-menu-bouton { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; border: 0; background: none; color: #9ca3af; cursor: pointer; transition: all .15s; }
.ex-menu-bouton:hover { color: #374151; background: #f3f4f6; } .ex-menu-bouton:disabled { opacity: .4; }
.ex-menu { position: absolute; right: 0; z-index: 20; width: 288px; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); overflow: hidden; }
.ex-menu.bas { top: 36px; } .ex-menu.haut { bottom: 36px; }
.ex-menu-tete { padding: 12px 14px 10px; border-bottom: 1px solid #f3f4f6; }
.ex-menu-tete p { margin: 0; }
.ex-menu-titre { font-size: 14px; line-height: 20px; font-weight: 500; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-menu-sous { font-size: 11px; color: #9ca3af; }
.ex-menu-section { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ex-menu-section.sep { border-top: 1px solid #f3f4f6; }
.ex-menu-st { padding: 0 4px; } .ex-menu-st p { margin: 0; }
.ex-menu-st-t { font-size: 11px; font-weight: 500; color: #6b7280; } .ex-menu-st-n { font-size: 11px; color: #9ca3af; }
.ex-menu-contenu { padding: 0 4px; }
.ex-colonnes { display: flex; flex-direction: column; gap: 4px; }
.ex-colonne { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #374151; }
.ex-menu-primaire { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: #f9fafb; }
.ex-menu-p-txt { flex: 1; min-width: 0; }
.ex-menu-p-l { display: block; font-size: 14px; line-height: 20px; color: #1f2937; }
.ex-menu-p-h { display: block; font-size: 11px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-menu-apercu { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 0; background: none; color: #6b7280; cursor: pointer; }
.ex-menu-apercu:hover { color: #1f2937; background: #fff; }
.ex-menu-dl { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 0; background: #0035f5; color: #fff; cursor: pointer; }
.ex-menu-dl:hover { background: #0028c2; }
.ex-menu-tuiles { display: grid; gap: 6px; } .ex-menu-tuiles.c3 { grid-template-columns: repeat(3, 1fr); } .ex-menu-tuiles.c2 { grid-template-columns: repeat(2, 1fr); }
.ex-menu-tuile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; border-radius: 8px; border: 1px solid #f3f4f6; background: #fff; cursor: pointer; font-family: inherit; transition: all .15s; }
.ex-menu-tuile:hover { border-color: #b9ccff; background: rgba(240,244,255,.5); }
.ex-menu-tuile-h { font-size: 11px; line-height: 1.25; text-align: center; color: #6b7280; }
.ex-badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 24px; border-radius: 6px; font-size: 10px; font-weight: 600; letter-spacing: .025em; flex-shrink: 0; }
.ex-badge.pdf { background: #fef2f2; color: #b91c1c; } .ex-badge.png, .ex-badge.jpg { background: #f5f3ff; color: #6d28d9; }
.ex-badge.svg { background: #fffbeb; color: #b45309; } .ex-badge.xlsx { background: #ecfdf5; color: #047857; } .ex-badge.csv { background: #f3f4f6; color: #4b5563; }
/* Sortie */
.ex-options { display: flex; flex-direction: column; gap: 8px; }
.ex-option { width: 100%; text-align: left; display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; cursor: pointer; font-family: inherit; transition: background-color .15s; }
.ex-option:hover { background: #f9fafb; }
.ex-option.actif { border-color: #1a4eff; background: #f0f4ff; }
.ex-option-ic { margin-top: 2px; flex-shrink: 0; color: #9ca3af; } .ex-option.actif .ex-option-ic { color: #0035f5; }
.ex-option-l { display: block; font-size: 14px; line-height: 20px; font-weight: 500; color: #111827; } .ex-option.actif .ex-option-l { color: #0028c2; }
.ex-option-h { display: block; font-size: 11px; color: #6b7280; }
.ex-sortie-n { margin: 12px 0 0; font-size: 12px; color: #4b5563; }
.ex-societe { margin: 8px 0 0; font-size: 11px; color: #b45309; }
.ex-souligne { text-decoration: underline; font-weight: 500; color: inherit; }
.ex-actions { margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.ex-apercu { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #e5e7eb; font-size: 14px; font-weight: 500; font-family: inherit; border-radius: 8px; background: #fff; color: #111827; cursor: pointer; transition: background-color .15s; }
.ex-apercu:hover { background: #f9fafb; } .ex-apercu:disabled { opacity: .6; cursor: default; }
.ex-generer { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; background: #0035f5; color: #fff; font-size: 14px; font-weight: 500; font-family: inherit; border-radius: 8px; border: 0; cursor: pointer; transition: background-color .15s; }
.ex-generer.auto { flex: none; padding: 8px 16px; display: inline-flex; }
.ex-generer:hover { background: #0028c2; } .ex-generer:disabled { opacity: .6; cursor: default; }
.ex-tache { margin-top: 12px; }
.ex-tache-l { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4b5563; }
.ex-tache-t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-annuler { display: flex; align-items: center; gap: 4px; padding: 4px 8px; font-size: 12px; font-family: inherit; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #374151; cursor: pointer; }
.ex-annuler:hover { background: #f9fafb; }
.ex-avancement { margin-top: 16px; }
.ex-barre { height: 4px; border-radius: 9999px; background: #f3f4f6; overflow: hidden; }
.ex-barre-p { height: 100%; background: #0035f5; transition: width .5s; }
.ex-etapes { list-style: none; margin: 12px 0 0; padding: 0 4px 0 0; max-height: 224px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.ex-etape { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: #6b7280; }
.ex-etape svg { flex-shrink: 0; }
.ex-etape.done svg { color: #16a34a; } .ex-etape.current svg { color: #0035f5; } .ex-etape.pending svg { color: #d1d5db; }
.ex-etape-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-etape.pending .ex-etape-l { color: #9ca3af; } .ex-etape.current .ex-etape-l { color: #111827; font-weight: 500; } .ex-etape.done .ex-etape-l { color: #374151; }
.ex-etapes-n { margin: 8px 0 0; font-size: 12px; color: #6b7280; }
/* Réglages communs */
.ex-reg-tete { display: flex; align-items: center; gap: 8px; padding: 12px 16px; }
.ex-reg-tete.ouvert { border-bottom: 1px solid #e5e7eb; }
.ex-lien { font-size: 12px; font-weight: 500; color: #0035f5; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.ex-lien:hover { text-decoration: underline; }
.ex-resume { margin: 0; padding: 0 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.ex-resume-l { display: flex; gap: 8px; font-size: 12px; }
.ex-resume-t { width: 64px; flex-shrink: 0; color: #9ca3af; }
.ex-resume-v { margin: 0; min-width: 0; color: #374151; }
.ex-resume-h { display: block; font-size: 11px; color: #0028c2; }
.ex-section { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; }
.ex-section:last-child { border-bottom: 0; }
.ex-section-t { margin: 0 0 8px; font-size: 12px; font-weight: 500; color: #374151; }
.ex-section-h { margin-left: 6px; font-weight: 400; color: #0028c2; }
.ex-ligne-reg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: #4b5563; }
.ex-marge { margin-top: 8px; } .ex-marge-p { margin-top: 6px; } .ex-marge-g { margin-top: 12px; }
.ex-seg { display: flex; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.ex-seg-b { padding: 4px 10px; font-size: 12px; font-weight: 500; font-family: inherit; color: #4b5563; background: #fff; border: 0; cursor: pointer; transition: background-color .15s; }
.ex-seg-b:hover { background: #f9fafb; } .ex-seg-b.actif { background: #111827; color: #fff; }
.ex-coche { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5563; }
.ex-dims { font-size: 11px; color: #9ca3af; }
.ex-champ-l { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5563; }
.ex-champ { padding: 4px 8px; font-size: 12px; font-family: inherit; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #111827; }
.ex-champ.court { width: 80px; } .ex-champ.num { width: 64px; } .ex-champ.plein { width: 100%; box-sizing: border-box; }
.ex-avert { font-size: 11px; color: #b45309; }
.ex-cart-b { display: flex; align-items: center; gap: 4px; font-size: 12px; font-family: inherit; color: #4b5563; background: none; border: 0; padding: 0; cursor: pointer; }
.ex-cart-b:hover { color: #111827; }
.ex-cart-r { color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-cart-g { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ex-cart-g .large { grid-column: span 2; }
.ex-petit-bloc { display: block; font-size: 11px; color: #9ca3af; margin-bottom: 2px; }
.ex-cart-g .ex-petit-bloc { color: #6b7280; }
.ex-note { margin: 4px 0 0; font-size: 11px; color: #9ca3af; }
.ex-sous-t { margin: 0 0 6px; font-size: 11px; color: #6b7280; }
.ex-radios { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #4b5563; }
.ex-radio { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #4b5563; }
.ex-radio input { margin-top: 2px; }
.ex-radio .ex-petit-bloc { margin-bottom: 0; }
/* Autres livrables */
.ex-autres { display: grid; gap: 16px; align-items: start; }
@media (min-width: 768px) { .ex-autres { grid-template-columns: 1fr 1fr; } }
.ex-aide { margin: 0 0 16px; font-size: 12px; line-height: 16px; color: #6b7280; }
.ex-zip-cases { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ex-zip-case { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #374151; }
.ex-zip-n { font-size: 12px; color: #9ca3af; }
.ex-bim-lien { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid #e5e7eb; font-size: 14px; font-weight: 500; border-radius: 8px; color: #111827; text-decoration: none; transition: background-color .15s; }
.ex-bim-lien:hover { background: #f9fafb; }

/* Pages d'impression en flux : base Tailwind des pages /print (marges nulles, interligne 1,5) */
body.impression { margin: 0; line-height: 1.5; color: #111827; }
body.impression h1, body.impression h2, body.impression h3 { margin: 0; font-size: inherit; font-weight: inherit; text-transform: none; letter-spacing: normal; }
.impression-flux { box-sizing: border-box; background: #fff; }
.impression-flux *, .impression-flux *::before, .impression-flux *::after { box-sizing: border-box; }

/* DejaVu Sans : le « system-ui » des pages d'impression et du cartouche, tel que Chromium le rendait sur le
   serveur (fontconfig) — même police à l'écran que dans le PDF, mêmes coupures de ligne */
@font-face { font-family: 'DejaVu Sans'; font-style: normal; font-weight: 100 549; src: url(/assets/fonts/ttf/DejaVuSans.ttf) format('truetype'); }
@font-face { font-family: 'DejaVu Sans'; font-style: normal; font-weight: 550 900; src: url(/assets/fonts/ttf/DejaVuSans-Bold.ttf) format('truetype'); }
/* Base Tailwind (preflight) des pages /print : listes sans puces, marges nulles, images en bloc */
.impression-flux p, .impression-flux ol, .impression-flux ul, .impression-flux figure, .impression-flux blockquote { margin: 0; }
.impression-flux ol, .impression-flux ul { list-style: none; padding: 0; }
.impression-flux img, .impression-flux svg { display: block; vertical-align: middle; }
.impression-flux img { max-width: 100%; height: auto; }
.impression-flux table { text-indent: 0; border-color: inherit; border-collapse: collapse; }

/* Bilans imprimés (règle @page des pages thermique et électrique) */
.impression-rapport h1, .impression-rapport h2 { break-after: avoid; }
.impression-rapport svg { max-width: 100%; }

/* ── Carnet de câbles imprimé (components/cable/CableBookPrint.tsx, CSS d'origine) ───────────── */
@font-face { font-family: 'DejaVu Sans Mono'; font-style: normal; font-weight: 100 549; src: url(/assets/fonts/ttf/DejaVuSansMono.ttf) format('truetype'); }
@font-face { font-family: 'DejaVu Sans Mono'; font-style: normal; font-weight: 550 900; src: url(/assets/fonts/ttf/DejaVuSansMono-Bold.ttf) format('truetype'); }

.cb { color: #15191e; font-size: 10.5px; line-height: 1.35; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cb * { box-sizing: border-box; }
.cb .cb-muted { color: #5b636c; }
.cb .cb-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cb .cb-center { text-align: center; }
.cb .cb-code { font-family: 'DejaVu Sans Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.cb .cb-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #15191e; padding-bottom: 6px; margin-bottom: 12px; }
.cb .cb-title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.cb .cb-meta { font-size: 9.5px; color: #5b636c; text-align: right; line-height: 1.35; }
.cb .cb-meta b { color: #15191e; }
.cb .cb-sig { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--c-text, #15191e); white-space: nowrap; }
.cb .cb-sig-pt { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.cb .cb-conn { display: inline-block; border: 1px solid #e3e6ea; border-radius: 3px; padding: 0 4px; margin-left: 4px; font-size: 8px; color: #5b636c; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
.cb .cb-thumb { flex: none; display: inline-grid; place-items: center; overflow: hidden; background: #fff; border: 1px solid #e3e6ea; border-radius: 4px; }
.cb .cb-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.cb .cb-thumb.cb-none { background: #f5f6f8; color: #5b636c; font-size: 9px; font-weight: 700; }
.cb .cb-thumb.cb-wide { width: 100%; }
.cb .cb-check { display: inline-block; width: 11px; height: 11px; border: 1.3px solid #5b636c; border-radius: 2px; }

.cb .cb-cover { break-after: page; }
.cb .cb-cover-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; }
.cb .cb-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cb .cb-kpi { border: 1px solid #e3e6ea; border-radius: 8px; padding: 11px; }
.cb .cb-kpi-v { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.02em; }
.cb .cb-kpi-l { font-size: 9px; color: #5b636c; text-transform: uppercase; letter-spacing: .07em; margin-top: 4px; }
.cb .cb-sigbars { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.cb .cb-sb { display: grid; grid-template-columns: 120px 1fr 32px 54px; gap: 10px; align-items: center; }
.cb .cb-track { height: 10px; background: #f1f3f5; border-radius: 2px; overflow: hidden; }
.cb .cb-track i { display: block; height: 100%; background: var(--c); }
.cb .cb-howto { margin-top: 18px; font-size: 9.5px; color: #5b636c; line-height: 1.5; border-left: 3px solid #15191e; padding-left: 10px; }
.cb .cb-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-content: start; }
.cb .cb-gallery figure { margin: 0; border: 1px solid #e3e6ea; border-radius: 6px; padding: 6px; display: flex; flex-direction: column; gap: 4px; break-inside: avoid; }
.cb .cb-gallery .cb-thumb { border: none; }
.cb .cb-gallery figcaption { font-size: 8.5px; line-height: 1.2; }
.cb .cb-gallery figcaption b { display: block; font-size: 9px; }

.cb .cb-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; }
.cb .cb-card { border: 1px solid #e3e6ea; border-radius: 8px; padding: 9px 11px; display: grid; grid-template-columns: 54px minmax(0, 1fr) 124px minmax(0, 1fr) 54px; align-items: center; gap: 10px; break-inside: avoid; }
.cb .cb-end { min-width: 0; line-height: 1.25; }
.cb .cb-end.cb-right { text-align: right; }
.cb .cb-name { font-weight: 700; font-size: 11px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cb .cb-port { font-weight: 600; margin: 2px 0; }
.cb .cb-wire { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; text-align: center; }
.cb .cb-wire .cb-code { font-size: 12.5px; }
.cb .cb-bar { width: 100%; height: 5px; border-radius: 3px; background: var(--c); position: relative; }
.cb .cb-bar-g, .cb .cb-bar-d { position: absolute; top: -3px; width: 9px; height: 11px; border-radius: 2px; background: var(--c); }
.cb .cb-bar-g { left: -2px; }
.cb .cb-bar-d { right: -2px; }
.cb .cb-small { font-size: 9.5px; color: #5b636c; font-variant-numeric: tabular-nums; }
.cb .cb-cable { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cb .cb-table { width: 100%; border-collapse: collapse; font-size: 9.5px; }
.cb .cb-table thead { display: table-header-group; }
.cb .cb-table th { text-align: left; font-size: 8px; text-transform: uppercase; letter-spacing: .07em; color: #5b636c; font-weight: 700; padding: 0 6px 5px; border-bottom: 1px solid #15191e; }
.cb .cb-table td { padding: 4px 6px; border-bottom: 1px solid #e3e6ea; vertical-align: middle; }
.cb .cb-table tr { break-inside: avoid; }
.cb .cb-table tr.cb-group { break-after: avoid; }
.cb .cb-table tr.cb-group td { background: #f5f6f8; border-bottom: none; padding: 6px 6px 4px; font-size: 10px; }
.cb .cb-table .cb-stripe { width: 4px; padding: 0; background: var(--c); border-bottom-color: transparent; }
.cb .cb-table th.cb-stripe { background: none; }
.cb .cb-arrow { color: var(--c-text); font-size: 13px; text-align: center; font-weight: 800; width: 18px; }
.cb .cb-eq { display: flex; align-items: center; gap: 7px; min-width: 0; }
.cb .cb-cablecell { max-width: 200px; }

.cb .cb-devices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; column-gap: 22px; }
.cb .cb-device { grid-column: 1 / -1; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; border-top: 1px solid #e3e6ea; padding: 11px 0; break-inside: avoid; }
.cb .cb-device.cb-compact { grid-column: auto; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 8px 0; }
.cb .cb-device.cb-compact .cb-device-id { display: flex; align-items: center; gap: 8px; }
.cb .cb-device.cb-compact .cb-ports { grid-template-columns: minmax(0, 1fr); }
.cb .cb-device.cb-compact h3 { font-size: 11px; margin: 0 0 1px; }
.cb .cb-device.cb-long { break-inside: auto; }
.cb .cb-device-id { line-height: 1.3; }
.cb .cb-device-id .cb-thumb { border-radius: 6px; }
.cb .cb-device-id h3 { margin: 7px 0 2px; font-size: 12.5px; font-weight: 800; line-height: 1.2; }
.cb .cb-ports { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-content: start; }
.cb .cb-prow { display: grid; grid-template-columns: 78px 8px 86px 26px minmax(0, 1fr) 38px; gap: 6px; align-items: center; padding: 4px 0; border-bottom: 1px dashed #e3e6ea; break-inside: avoid; }
.cb .cb-pn { font-weight: 700; font-size: 9.5px; line-height: 1.2; }
.cb .cb-pn .cb-conn { margin-left: 0; display: table; margin-top: 2px; }
.cb .cb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.cb .cb-far { min-width: 0; line-height: 1.2; }
.cb .cb-far div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Repère à la place de la vignette (rendu technique d'un export) */
.bloc-vignette-repere { padding: 0 4px; text-align: center; font-weight: 700; line-height: 1.25; word-break: break-all; }

/* Recherche d'images et de pages sur Internet (onglet Fichiers, FichiersTab) */
.fi-sugg { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; margin-top: -2px; margin-bottom: 8px; }
.fi-sugg-tete, .fi-web-tete { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #f9fafb; border-bottom: 1px solid #f3f4f6; }
.fi-web-tete { padding: 6px 10px; }
.fi-sugg-titre { font-size: 10px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-sugg-x { background: none; border: 0; color: #9ca3af; cursor: pointer; display: flex; padding: 0; }
.fi-sugg-x:hover { color: #4b5563; }
.fi-sugg-attente, .fi-web-attente { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 24px 0; font-size: 12px; color: #4f46e5; }
.fi-web-attente { padding: 16px 0; }
.fi-sugg-vide, .fi-web-vide { text-align: center; font-size: 12px; color: #9ca3af; padding: 24px 0; margin: 0; }
.fi-sugg-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px 0; border-top: 1px solid #e0e7ff; font-size: 12px; }
.fi-sugg-nav-t { color: #6b7280; }
.fi-sugg-nav-lien { color: #4f46e5; font-weight: 500; text-decoration: none; padding: 2px 8px; border: 1px solid #c7d2fe; border-radius: 9999px; background: #fff; }
.fi-sugg-nav-lien:hover { background: #eef2ff; }
.fi-sugg-astuce { font-size: 11px; color: #6b7280; margin: 0; padding: 6px 12px 10px; }
.dark .fi-sugg-nav { border-top-color: #312e81; }
.dark .fi-sugg-nav-lien { background: transparent; border-color: #4338ca; color: #a5b4fc; }
.fi-web-vide { padding: 16px 0; }
.fi-sugg-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; }
.fi-sugg-img { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid #f3f4f6; background: #f9fafb; cursor: pointer; padding: 0; transition: all .15s; }
.fi-sugg-img:hover { border-color: #818cf8; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.fi-sugg-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fi-sugg-voile { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .15s; display: flex; align-items: center; justify-content: center; }
.fi-sugg-img:hover .fi-sugg-voile { opacity: 1; }
.fi-sugg-voile span { font-size: 10px; color: #fff; font-weight: 500; background: #4f46e5; padding: 2px 8px; border-radius: 9999px; }
.fi-web { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; margin: 0 -2px; background: #fff; }
.fi-web-liste { max-height: 208px; overflow-y: auto; }
.fi-web-liste > * + * { border-top: 1px solid #f3f4f6; }
.fi-web-res { width: 100%; text-align: left; padding: 8px 10px; background: none; border: 0; cursor: pointer; font-family: inherit; display: block; }
.fi-web-res:hover { background: #eef2ff; }
.fi-web-res p { margin: 0; }
.fi-web-t { font-size: 12px; font-weight: 500; color: #4338ca; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-web-u { font-size: 10px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px !important; }
.fi-web-d { font-size: 10px; color: #6b7280; margin-top: 2px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Dépôt d'une fiche technique PDF (modale d'ajout, mode « Fiche technique (PDF) ») */
.ia-depot { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px 0; border: 2px dashed #e5e7eb; border-radius: 12px; background: #fff; cursor: pointer; font-family: inherit; color: #6366f1; transition: all .15s; }
.ia-depot:hover { border-color: #a5b4fc; background: rgba(238,242,255,.4); }
.ia-depot:disabled { opacity: .5; cursor: default; }
.ia-depot-l { font-size: 14px; line-height: 20px; font-weight: 500; color: #4b5563; }
.ia-roue.indigo { width: 20px; height: 20px; border-color: #818cf8; border-top-color: transparent; }

/* ── Relevé dans les fiches techniques jointes (DatasheetExtractPanel) ───────────────────────── */
.lia-releve { position: fixed; inset: 0; z-index: 50; display: flex; }
.lia-releve-voile { flex: 1; background: rgba(0,0,0,.3); }
.lia-releve-tiroir { width: 100%; max-width: 48rem; background: #fff; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); display: flex; flex-direction: column; }
.lia-releve-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #e5e7eb; }
.lia-releve-titre { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: #111827; display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: normal; }
.lia-releve-sous { margin: 4px 0 0; font-size: 12px; line-height: 16px; color: #6b7280; max-width: 36rem; }
.lia-releve-x { padding: 4px; color: #9ca3af; background: none; border: 0; cursor: pointer; display: flex; }
.lia-releve-x:hover { color: #374151; }
.lia-releve-corps { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.lia-releve-fiche { border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; }
.lia-releve-l1 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lia-releve-nom { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lia-releve-ref { margin: 0; font-size: 11px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lia-releve-attente { font-size: 11px; color: #9ca3af; flex-shrink: 0; }
.lia-releve-l1 .lia-roue { color: #9ca3af; width: 16px; height: 16px; }
.lia-releve-info { margin: 8px 0 0; font-size: 11px; color: #6b7280; }
.lia-releve-erreur { margin: 8px 0 0; display: flex; align-items: flex-start; gap: 6px; font-size: 11px; color: #b45309; }
.lia-releve-erreur svg { margin-top: 2px; flex-shrink: 0; }
.lia-releve-valeurs { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.lia-releve-val { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.lia-releve-val input { margin-top: 2px; }
.lia-releve-texte { min-width: 0; }
.lia-releve-ligne { font-size: 12px; color: #1f2937; }
.lia-releve-remplace { color: #b45309; }
.lia-releve-cit { display: block; font-size: 10.5px; color: #9ca3af; font-style: italic; }
.lia-releve-rejets { margin-top: 8px; padding-top: 8px; border-top: 1px solid #f3f4f6; }
.lia-releve-rejets p { margin: 0; font-size: 10.5px; color: #9ca3af; }
.lia-releve-rej-t { margin-bottom: 4px !important; }
.lia-releve-pied { padding: 12px 20px; border-top: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lia-releve-n { margin: 0; font-size: 12px; color: #6b7280; }
.lia-releve-actions { display: flex; align-items: center; gap: 8px; }
.lia-releve-err { font-size: 12px; color: #dc2626; }
.lia-releve-ok { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 14px; font-family: inherit; border-radius: 8px; border: 0; background: #0035f5; color: #fff; cursor: pointer; }
.lia-releve-ok:hover { background: #0028c2; }
.lia-releve-ok:disabled { opacity: .4; cursor: default; }

/* Vue des switchs imprimée (printMode : 'p-4 space-y-6', façades sans défilement) */
.br-faces.impression { flex: none; overflow: visible; height: auto; }
.br-faces.impression [class*='br-face-corps'], .br-faces.impression .br-ports { overflow: visible !important; }

/* ── Élévation de baie (RackCanvas, RackFrameNode, RackEquipmentPanel, RackFramePanel) ───────────── */
.baie-editeur .editeur-corps { position: relative; }
.baie-editeur .rb-canvas { position: absolute; top: 0; left: 0; bottom: 0; right: 0; transition: right .3s; background-color: #fafafa; background-image: radial-gradient(#d1d5db 1px, transparent 1px); }
.dark .baie-editeur .rb-canvas { background-color: #0b0f19; background-image: radial-gradient(#1f2937 1px, transparent 1px); }
.baie-editeur.panneau-ouvert .rb-canvas, .baie-editeur .editeur-corps.panneau-ouvert .rb-canvas { right: 380px; }
.rb-canvas.outil-pose { cursor: crosshair; }
.rb-canvas .monde { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.rb-calque-formes, .rb-calque-baies { position: absolute; left: 0; top: 0; }
.rb-noeud { position: absolute; left: 0; top: 0; }
.rb-noeud.forme-noeud.selection { outline: 1px dashed #6366f1; outline-offset: 2px; }
.rb-erreur { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); color: #dc2626; font-size: 14px; }

/* Palette */
.rb-palette-hote { position: absolute; top: 64px; left: 12px; z-index: 10; width: 320px; max-height: calc(100% - 8rem); overflow-y: auto; border-radius: 12px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); border: 1px solid #e5e7eb; background: #fff; padding: 12px; }
.dark .rb-palette-hote { border-color: #1f2937; background: #111827; }
.rb-palette-rattachement { margin: -12px -12px 8px; }
.rb-palette-recherche { position: relative; margin-bottom: 8px; }
.rb-palette-loupe { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #d1d5db; }
.rb-palette-saisie { width: 100%; font-size: 12px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 8px 6px 32px; background: #fff; }
.dark .rb-palette-saisie { border-color: #1f2937; background: #111827; color: #e5e7eb; }
.rb-palette-filtres { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.rb-palette-select { flex: 1; min-width: 0; font-size: 10px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 4px 6px; background: #fff; }
.dark .rb-palette-select { border-color: #1f2937; background: #111827; color: #e5e7eb; }
.rb-palette-titre { font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 6px; }
.rb-palette-titre.serre { margin-bottom: 2px; }
.rb-palette-note { font-size: 10px; color: #9ca3af; line-height: 1.375; margin: 0 0 6px; }
.rb-palette-liste { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.rb-palette-vide { font-size: 12px; color: #9ca3af; font-style: italic; margin: 0; }
.rb-groupe { padding-top: 4px; }
.rb-groupe:first-child { padding-top: 0; }
.rb-groupe-tete { width: 100%; display: flex; align-items: flex-start; gap: 4px; padding: 4px; border-radius: 6px; text-align: left; background: none; border: 0; cursor: pointer; }
.rb-groupe-tete:hover { background: #f9fafb; }
.dark .rb-groupe-tete:hover { background: #1f2937; }
.rb-groupe-chevron { margin-top: 2px; flex-shrink: 0; color: #9ca3af; }
.rb-groupe-textes { flex: 1; min-width: 0; }
.rb-groupe-nom { display: block; font-size: 11px; font-weight: 600; color: #374151; }
.rb-groupe-nom.hors { color: #9ca3af; font-style: italic; }
.dark .rb-groupe-nom { color: #e5e7eb; }
.rb-groupe-contexte { display: block; font-size: 10px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-groupe-n { font-size: 10px; color: #9ca3af; flex-shrink: 0; margin-top: 2px; }
.rb-groupe-corps { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 0 8px; padding-left: 8px; border-left: 1px solid #e5e7eb; }
.rb-carte { display: flex; align-items: stretch; gap: 8px; padding: 8px 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; cursor: grab; transition: border-color .15s; }
.rb-carte:hover { border-color: #a5b4fc; }
.rb-carte:active { cursor: grabbing; }
.dark .rb-carte { background: #111827; border-color: #1f2937; }
.rb-carte-bandeau { width: 20px; flex-shrink: 0; border-radius: 4px; display: flex; align-items: flex-start; justify-content: center; padding-top: 2px; }
.rb-carte-textes { flex: 1; min-width: 0; }
.rb-carte-marque { font-size: 10px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; margin: 0; }
.rb-carte-modele { font-size: 12px; color: #374151; line-height: 1.25; overflow-wrap: break-word; margin: 0; }
.dark .rb-carte-modele, .dark .rb-carte-acc { color: #e5e7eb; }
.rb-carte-ailleurs { font-size: 10px; color: #d97706; line-height: 1.25; margin: 2px 0 0; overflow-wrap: break-word; }
.rb-carte-repere { flex-shrink: 0; font-size: 9px; font-weight: 700; padding: 2px 4px; align-self: flex-start; }
.rb-carte-u { font-size: 9px; color: #9ca3af; flex-shrink: 0; }
.rb-carte-acc { font-size: 11px; color: #374151; flex: 1; min-width: 0; overflow-wrap: break-word; }
.rb-carte-noncable { display: block; font-size: 9px; color: #d97706; }
.rb-accessoires { display: flex; flex-direction: column; gap: 12px; }
.rb-acc-categorie { font-size: 9px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 4px; }
.rb-acc-liste { display: flex; flex-direction: column; gap: 4px; }
.rb-acc-liste .rb-carte { padding: 6px 10px; }

/* Barre haute */
.rb-ajout-baie { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #4f46e5; border-radius: 8px; padding: 6px 8px; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.rb-ajout-baie:hover { background: #eef2ff; color: #4338ca; }
.rb-historique { display: flex; align-items: center; gap: 2px; }
.rb-hist { padding: 6px; border-radius: 8px; color: #9ca3af; background: none; border: 0; cursor: pointer; }
.rb-hist:hover:not(:disabled) { color: #374151; background: #f3f4f6; }
.rb-hist:disabled { opacity: .3; cursor: not-allowed; }
.rb-etat { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #9ca3af; padding-left: 4px; }
.rb-etat-ic { display: flex; align-items: center; gap: 4px; }
.rb-etat-ic.alerte { color: #d97706; font-weight: 500; }
.rb-etat-ic.ok { color: #16a34a; }
.rb-lecture { color: #d97706; font-weight: 500; }

/* Avertissements, consigne et menu de sélection multiple */
.rb-avis { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 80%; pointer-events: none; }
.rb-avertissement { font-size: 12px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.rb-consigne { font-size: 10px; font-weight: 500; color: #4f46e5; background: #fff; padding: 4px 10px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.1); border: 1px solid #e0e7ff; }
.rb-selection-hote { position: absolute; top: 112px; left: 50%; transform: translateX(-50%); z-index: 10; }
.rb-multi { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); padding: 6px 12px; }
.rb-multi-n { font-size: 12px; font-weight: 500; color: #6b7280; }
.rb-multi-sep { width: 1px; height: 20px; background: #e5e7eb; }
.rb-multi-bt { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: #4b5563; background: none; border: 0; cursor: pointer; }
.rb-multi-bt:hover { color: #4f46e5; }
.rb-multi-bt.danger { color: #ef4444; }
.rb-multi-bt.danger:hover { color: #b91c1c; }

/* Cadre d'une baie */
.card.rb-cadre { padding: 16px; background: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); display: inline-block; cursor: default; border-radius: 0; }
.card.rb-cadre:hover { border-color: #e5e7eb; }
.dark .card.rb-cadre { background: #111827; }
.rb-tete { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 4px; }
.rb-nom { text-align: center; font-size: 18px; font-weight: 700; color: #ec4899; border: 0; border-bottom: 1px solid transparent; background: transparent; padding: 2px 0; }
.rb-nom:hover:not(:disabled) { border-bottom-color: #e5e7eb; }
.rb-nom:focus { outline: none; border-bottom-color: #818cf8; }
.rb-hors-lot { text-align: center; font-size: 10px; font-weight: 600; color: #d97706; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 4px; }
.rb-infos { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.rb-info { font-size: 12px; color: #9ca3af; flex-shrink: 0; }
.rb-info-sep { font-size: 12px; color: #d1d5db; }
.rb-ic { padding: 4px; color: #d1d5db; background: none; border: 0; cursor: pointer; flex-shrink: 0; transition: color .15s; }
.rb-ic:hover { color: #4f46e5; }
.rb-ic.danger:hover { color: #ef4444; }
.rb-faces { display: flex; gap: 16px; align-items: flex-start; justify-content: center; }
.rb-face { border: 1px solid #e5e7eb; padding: 10px; background: #f9fafb; }
.dark .rb-face { border-color: #1f2937; background: #111827; }
.rb-face-titre { text-align: center; font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px; }
.rb-face-ligne { display: flex; gap: 6px; }
.rb-regle { flex-shrink: 0; }
.rb-regle-u { display: flex; align-items: center; justify-content: flex-end; padding-right: 4px; font-size: 10px; line-height: 1; color: #d1d5db; }
.rb-regle-u.fort { color: #6b7280; font-weight: 600; }
.rb-corps { position: relative; background-color: #1f2937; transition: box-shadow .15s; flex-shrink: 0; }
.rb-corps.arriere { overflow: hidden; }
.rb-corps.survol { box-shadow: 0 0 0 2px #818cf8; }
.rb-repere { position: absolute; top: 0; bottom: 0; width: 1px; pointer-events: none; background: rgba(255,255,255,.05); }
.rb-repere.quart.g { left: 25%; }
.rb-repere.milieu { left: 50%; background: rgba(255,255,255,.1); }
.rb-repere.quart.d { left: 75%; }
.rb-apercu { position: absolute; border: 2px dashed #34d399; background: rgba(52,211,153,.1); pointer-events: none; z-index: 10; display: flex; align-items: center; padding: 0 6px; }
.rb-apercu-texte { font-size: 9px; color: #6ee7b7; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Emplacements horizontaux (SLOT_INSET : classes de lib/rack-slots) */
.rb-bloc, .rb-apercu { left: 0; right: 0; }
.rb-bloc.left-0, .rb-apercu.left-0 { left: 0; }
.rb-bloc.right-0, .rb-apercu.right-0 { right: 0; }
.rb-bloc.left-1\/2, .rb-apercu.left-1\/2 { left: 50%; }
.rb-bloc.right-1\/2, .rb-apercu.right-1\/2 { right: 50%; }
.rb-bloc.left-1\/4, .rb-apercu.left-1\/4 { left: 25%; }
.rb-bloc.right-1\/4, .rb-apercu.right-1\/4 { right: 25%; }
.rb-bloc.left-2\/4, .rb-apercu.left-2\/4 { left: 50%; }
.rb-bloc.right-2\/4, .rb-apercu.right-2\/4 { right: 50%; }
.rb-bloc.left-3\/4, .rb-apercu.left-3\/4 { left: 75%; }
.rb-bloc.right-3\/4, .rb-apercu.right-3\/4 { right: 75%; }
.rb-notes { position: relative; flex-shrink: 0; }
.rb-note { position: absolute; left: 0; right: 0; display: flex; align-items: center; padding: 0 6px; overflow: hidden; }
.rb-note-texte { font-size: 9px; color: #6b7280; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Bloc d'appareil */
.rb-bloc { position: absolute; }
.rb-bloc.mobile { cursor: grab; }
.rb-bloc.mobile:active { cursor: grabbing; }
.rb-bloc-fond { position: absolute; inset: 0; overflow: hidden; border-bottom: 1px solid rgba(0,0,0,.2); }
.rb-bloc-fond.selection { box-shadow: inset 0 0 0 2px #fff; }
.rb-renommer { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 6px; }
.rb-renommer-saisie { width: 100%; min-width: 0; font-size: 9px; color: #fff; background: rgba(255,255,255,.2); padding: 0 4px; outline: none; border: 0; }
.rb-vide-arriere { position: absolute; inset: 0; background-color: rgba(127,29,29,.35); background-image: repeating-linear-gradient(45deg, rgba(239,68,68,.45) 0, rgba(239,68,68,.45) 1px, transparent 1px, transparent 7px), repeating-linear-gradient(-45deg, rgba(239,68,68,.45) 0, rgba(239,68,68,.45) 1px, transparent 1px, transparent 7px); }
.rb-chassis { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.rb-chassis > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rb-facade-pied { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: 4px; padding: 0 4px 1px; pointer-events: none; }
.rb-facade-texte { min-width: 0; color: #fff; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(0,0,0,.6); padding: 0 4px; line-height: 1.375; }
.rb-facade-repere { flex-shrink: 0; font-size: 8px; font-weight: 700; color: #fff; background: rgba(0,0,0,.6); padding: 0 4px; line-height: 1.375; }
.rb-contenu { position: absolute; inset: 0; display: flex; align-items: center; gap: 4px; padding: 0 6px; }
.rb-contenu.quart { padding: 0 4px; }
.rb-contenu.centre { justify-content: center; }
.rb-contenu-ic { color: rgba(255,255,255,.9); flex-shrink: 0; }
.rb-contenu-texte { min-width: 0; color: #fff; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-contenu-texte.centre { text-align: center; }
.rb-contenu-texte.deux { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; overflow-wrap: break-word; }
.rb-contenu-repere { flex-shrink: 0; font-size: 8px; font-weight: 700; color: rgba(255,255,255,.9); background: rgba(255,255,255,.2); padding: 0 4px; }
.rb-rear { position: absolute; top: 2px; right: 4px; font-size: 6px; font-weight: 700; color: rgba(255,255,255,.8); background: rgba(0,0,0,.3); border-radius: 2px; padding: 2px 4px; letter-spacing: .025em; }
.rb-annotation { position: absolute; top: 2px; left: 2px; width: 6px; height: 6px; border-radius: 9999px; background: #fbbf24; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.rb-redim { position: absolute; bottom: 0; left: 0; right: 0; height: 6px; cursor: ns-resize; opacity: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.2); }
.rb-bloc:hover .rb-redim { opacity: 1; }
.rb-redim-ic { color: rgba(255,255,255,.8); height: 6px; }
.rb-ports { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 2px 6px; overflow: hidden; }
.rb-ports-rangee { display: flex; align-items: flex-end; gap: 6px; flex: 1; min-height: 0; width: 100%; justify-content: center; }
.rb-ports-groupe { display: flex; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.rb-port { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.rb-port-rj45 { width: 10px; height: 12px; color: rgba(255,255,255,.8); flex-shrink: 0; }
.rb-port-fibre { width: 14px; height: 12px; color: rgba(255,255,255,.8); flex-shrink: 0; }
.rb-port-num { font-size: 6px; line-height: 1; color: rgba(255,255,255,.6); margin-top: 2px; }
.rb-brosses { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.rb-brosse { width: 1px; height: 50%; background: rgba(0,0,0,.3); flex-shrink: 0; }
.rb-din { position: absolute; inset: 0; background: rgba(71,85,105,.9); }
.rb-din-rail { position: absolute; background: linear-gradient(to bottom, #e2e8f0 0, #cbd5e1 18%, #94a3b8 18%, #94a3b8 82%, #cbd5e1 82%, #e2e8f0 100%); }
.rb-din-graduation { position: absolute; inset: 0; }
.rb-din-tete { position: absolute; top: 2px; left: 4px; right: 4px; display: flex; align-items: center; justify-content: space-between; gap: 4px; pointer-events: none; }
.rb-din-nom { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 8px; font-weight: 500; color: rgba(255,255,255,.8); }
.rb-din-compte { flex-shrink: 0; font-size: 8px; font-weight: 600; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
.rb-barre { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; background: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); border: 1px solid #e5e7eb; padding: 4px; z-index: 20; }
.dark .rb-barre { background: #111827; border-color: #1f2937; }
.rb-barre.dessus { bottom: 100%; margin-bottom: 4px; }
.rb-barre.dessous { top: 100%; margin-top: 4px; }
.rb-barre-bt { padding: 4px; color: #9ca3af; background: none; border: 0; cursor: pointer; transition: color .15s; }
.rb-barre-bt:hover { color: #4f46e5; background: #f9fafb; }
.rb-barre-bt.danger:hover { color: #ef4444; }

/* Libellés en marge */
.rb-marge { position: relative; flex-shrink: 0; }
.rb-marge-svg { position: absolute; top: 0; pointer-events: none; overflow: visible; }
.rb-marge-ligne { position: absolute; display: flex; align-items: center; gap: 4px; min-width: 0; }
.rb-marge-ligne.gauche { justify-content: flex-end; }
.rb-marge-ligne.cliquable { cursor: pointer; }
.rb-marge-badge { flex-shrink: 0; font-size: 8px; font-weight: 700; color: #fff; padding: 0 4px; line-height: 1.375; }
.rb-marge-badge.neutre { background: #374151; }
.rb-marge-badge.point { width: 8px; height: 8px; padding: 0; }
.rb-marge-texte { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 9px; font-weight: 500; line-height: 1.375; color: #374151; }
.rb-marge-texte.actif { color: #0284c7; }
.dark .rb-marge-texte { color: #e5e7eb; }

/* Panneaux de propriétés (380 px, à droite, sur un voile) */
.rb-voile { position: fixed; inset: 0; background: rgba(0,0,0,.1); z-index: 30; }
.rp-panneau { position: fixed; top: 0; right: 0; height: 100%; z-index: 40; width: 380px; background: #fff; border-left: 1px solid #e5e7eb; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); display: flex; flex-direction: column; }
.dark .rp-panneau { background: #111827; border-color: #1f2937; }
.rp-tete { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f3f4f6; }
.rp-tete-g { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rp-titre { font-size: 14px; font-weight: 600; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dark .rp-titre { color: #f3f4f6; }
.rp-pastille { width: 24px; height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.rp-repere { flex-shrink: 0; font-size: 10px; font-weight: 700; padding: 2px 6px; }
.rp-fermer { padding: 4px; color: #9ca3af; background: none; border: 0; cursor: pointer; flex-shrink: 0; }
.rp-fermer:hover { background: #f3f4f6; color: #4b5563; }
.rp-corps { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.rp-label { display: block; font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.rp-label-clair { display: block; font-size: 12px; font-weight: 500; color: #6b7280; margin-bottom: 4px; }
.rp-saisie { font-size: 14px; }
.rp-saisie.desactive { opacity: .7; cursor: not-allowed; }
.rp-texte { resize: none; width: 100%; font-family: inherit; }
.rp-position { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rp-position-lib { font-size: 12px; font-weight: 500; color: #6b7280; flex-shrink: 0; }
.rp-position-d { display: flex; align-items: center; gap: 8px; }
.rp-position-val { font-size: 14px; font-weight: 600; color: #1f2937; font-variant-numeric: tabular-nums; }
.dark .rp-position-val { color: #f3f4f6; }
.rp-fleche { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e5e7eb; color: #6b7280; cursor: pointer; transition: all .15s; }
.rp-fleche:hover:not(:disabled) { background: #f9fafb; color: #4f46e5; border-color: #c7d2fe; }
.rp-fleche:disabled { opacity: .4; }
.rp-section { border-top: 1px solid #f3f4f6; padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.rp-section.serre { gap: 8px; }
.dark .rp-section { border-color: #1f2937; }
.rp-section-titre { font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.rp-segments { display: flex; align-items: stretch; border: 1px solid #e5e7eb; }
.rp-segment { flex: 1; padding: 6px 8px; font-size: 12px; font-weight: 500; background: #fff; color: #6b7280; border: 0; border-left: 1px solid #e5e7eb; cursor: pointer; transition: background .15s; }
.rp-segment:first-child { border-left: 0; }
.rp-segment:hover { background: #f9fafb; }
.rp-segment.actif { background: #eef2ff; color: #4f46e5; }
.dark .rp-segments, .dark .rp-segment { border-color: #1f2937; }
.dark .rp-segment { background: #111827; color: #9ca3af; }
.dark .rp-segment.actif { background: rgba(79,70,229,.15); color: #a5b4fc; }
.rp-note { font-size: 10px; color: #9ca3af; line-height: 1.375; margin: 4px 0 0; }
.rp-note.ambre { color: #d97706; margin: 0; }
.rp-note.rouge { color: #ef4444; margin: 0; }
.rp-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rp-mdp { position: relative; }
.rp-mdp-saisie { padding-right: 36px; }
.rp-mdp-oeil { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: #9ca3af; background: none; border: 0; cursor: pointer; }
.rp-retirer { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #ef4444; background: none; border: 0; cursor: pointer; padding-top: 8px; align-self: flex-start; }
.rp-retirer:hover { color: #b91c1c; }
.rp-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rp-preset { padding: 4px 10px; font-size: 12px; font-weight: 500; border: 1px solid #e5e7eb; background: #fff; color: #6b7280; cursor: pointer; }
.rp-preset:hover { background: #f9fafb; }
.rp-preset.actif { background: #eef2ff; border-color: #a5b4fc; color: #4f46e5; }
.rp-case { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4b5563; cursor: pointer; }
.rp-case-input { width: 14px; height: 14px; accent-color: #4f46e5; }
.rp-sous-reglages { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.rp-supprimer-baie { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 500; color: #ef4444; border: 1px solid #fecaca; background: none; padding: 8px 0; margin-top: 8px; cursor: pointer; transition: all .15s; }
.rp-supprimer-baie:hover { color: #fff; background: #ef4444; }
.rp-reference { position: relative; }
.rp-reference-saisie { position: relative; }
.rp-reference-loupe { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #d1d5db; }
.rp-saisie.avec-loupe { padding-left: 32px; }
.rp-reference-liste { position: absolute; z-index: 10; margin-top: 4px; width: 100%; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); max-height: 192px; overflow-y: auto; }
.rp-reference-vide { padding: 8px 12px; font-size: 12px; color: #9ca3af; margin: 0; }
.rp-reference-item { width: 100%; text-align: left; padding: 8px 12px; border: 0; border-bottom: 1px solid #f3f4f6; background: none; cursor: pointer; }
.rp-reference-item:hover { background: #f9fafb; }
.rp-reference-nom { font-size: 12px; font-weight: 500; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-reference-sous { font-size: 10px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Bandeau de rattachement (SynoptiqueScopePanel) */
.rs-bandeau { padding: 8px 12px; border-bottom: 1px solid #f3f4f6; }
.dark .rs-bandeau { border-color: #1f2937; }
.rs-bouton { width: 100%; display: flex; align-items: center; gap: 6px; font-size: 11px; color: #6b7280; background: none; border: 0; cursor: pointer; padding: 0; }
.rs-bouton:hover { color: #1f2937; }
.rs-ic { flex-shrink: 0; }
.rs-titre { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.rs-chevron { flex-shrink: 0; transition: transform .15s; }
.rs-chevron.ouvert { transform: rotate(180deg); }
.rs-corps { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.rs-aide { font-size: 11px; color: #6b7280; line-height: 1.375; margin: 0 0 6px; }
.rs-entete { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 4px; }
.rs-compte { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; color: #9ca3af; }
.rs-raz { font-size: 10px; color: #4f46e5; background: none; border: 0; cursor: pointer; flex-shrink: 0; }
.rs-raz:hover { text-decoration: underline; }
.rs-ligne { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; font-size: 11px; cursor: pointer; }
.rs-ligne:hover { background: #f3f4f6; }
.rs-ligne.inactive { opacity: .6; cursor: default; }
.rs-case { accent-color: #4f46e5; }
.rs-nom { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #374151; }

/* Création : synoptiques couverts (SynoptiqueScopeFields) */
.nd-rattachement { display: flex; flex-direction: column; gap: 4px; max-height: 192px; overflow: auto; border-radius: 8px; border: 1px solid #e5e7eb; padding: 8px; }
.nd-rattachement-ligne { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.nd-rattachement-ligne:hover { background: #f9fafb; }
.nd-rattachement-case { accent-color: #4f46e5; }
.nd-rattachement-nom { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #374151; }
.nd-rattachement-aide { margin-top: 6px; font-size: 12px; color: #6b7280; line-height: 1.375; }

/* Impression : pas d'ombres ni de fond pointillé */
.impression .rb-canvas { background: #fff; }
.impression .card.rb-cadre { box-shadow: none; }

/* ── Carnet de câble (CableTableEditor, EditableCell) ──────────────────────────────────────────── */
.ct-ecran { display: flex; flex-direction: column; height: 100%; }
.ct-entete { height: 56px; background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; padding: 0 16px; gap: 16px; flex-shrink: 0; }
.dark .ct-entete { background: #111827; border-color: #1f2937; }
.ct-retour { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #6b7280; text-decoration: none; transition: color .15s; }
.ct-retour:hover { color: #374151; }
.ct-entete-sep { width: 1px; height: 20px; background: #e5e7eb; }
.ct-entete-nom { font-size: 14px; font-weight: 600; color: #111827; margin: 0; }
.dark .ct-entete-nom { color: #f3f4f6; }
.ct-entete-type { font-size: 12px; background: #eef2ff; color: #4f46e5; padding: 2px 8px; border-radius: 9999px; }
.ct-contenu { flex: 1; min-height: 0; overflow: hidden; padding: 24px; }
.ct-page { max-width: 100%; height: 100%; display: flex; flex-direction: column; }
.ct-vide-page { max-width: 42rem; margin: 0 auto; }
.ct-vide { padding: 32px; text-align: center; font-size: 14px; color: #9ca3af; }
.ct-rattachement { flex-shrink: 0; margin-bottom: 12px; padding: 8px 12px; border-radius: 12px; border: 1px solid #e5e7eb; background: #f9fafb; }
.dark .ct-rattachement { border-color: #1f2937; background: rgba(17,24,39,.6); }

/* Barre d'outils */
.ct-barre { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.ct-compte { font-size: 14px; color: #6b7280; white-space: nowrap; margin: 0; }
.ct-compte-total { color: #9ca3af; }
.ct-recherche { position: relative; flex: 1; min-width: 10rem; max-width: 20rem; }
.ct-loupe { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #d1d5db; }
.ct-recherche-saisie { width: 100%; font-size: 12px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 12px 6px 32px; background: #fff; }
.ct-recherche-saisie:focus, .ct-select:focus, .ct-filtre:focus { outline: none; box-shadow: 0 0 0 1px #a5b4fc; }
.ct-aide { padding: 6px; border-radius: 8px; color: #9ca3af; background: none; border: 0; cursor: pointer; }
.ct-aide:hover, .ct-aide.actif { color: #4f46e5; background: #eef2ff; }
.ct-bouton { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 12px; border-radius: 8px; border: 1px solid #e5e7eb; color: #6b7280; background: none; cursor: pointer; white-space: nowrap; }
.ct-bouton:hover { background: #f9fafb; }
.ct-bouton.actif { border-color: #c7d2fe; background: #eef2ff; color: #4338ca; }
.ct-pastille { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9999px; background: #4f46e5; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ct-select, .ct-filtre { font-size: 12px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 8px; background: #fff; color: #4b5563; }
.ct-filtre.large { max-width: 14rem; }
.ct-filtre.moyen { max-width: 12rem; }
.ct-vues { display: flex; align-items: center; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.ct-vue { display: flex; align-items: center; gap: 4px; padding: 6px 10px; font-size: 12px; color: #6b7280; background: none; border: 0; cursor: pointer; }
.ct-vue:hover { background: #f9fafb; }
.ct-vue.actif { background: #eef2ff; color: #4338ca; font-weight: 500; }
.ct-legende-hote { position: relative; }
.ct-legende-bt { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #e5e7eb; color: #6b7280; background: none; cursor: pointer; }
.ct-legende-bt:hover { background: #f9fafb; }
.ct-legende-bt.actif { border-color: #c7d2fe; background: #eef2ff; color: #4338ca; }
.ct-voile { position: fixed; inset: 0; z-index: 20; }
.ct-legende { position: absolute; right: 0; top: 100%; margin-top: 4px; z-index: 30; width: 16rem; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); padding: 12px; }
.ct-legende-titre { font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px; }
.ct-legende-vide { font-size: 12px; color: #9ca3af; margin: 0; }
.ct-legende-liste { display: flex; flex-direction: column; gap: 6px; }
.ct-legende-item { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #4b5563; }
.ct-legende-aide { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #f3f4f6; font-size: 11px; color: #6b7280; }
.ct-trait { display: inline-block; width: 12px; height: 3px; border-radius: 9999px; flex-shrink: 0; background: var(--c); }
.ct-point { display: inline-block; width: 8px; height: 8px; border-radius: 9999px; flex-shrink: 0; background: var(--c); }
.dark .ct-trait, .dark .ct-point { background: var(--c-dark); }
.ct-etats { display: flex; align-items: center; }
.ct-etat { font-size: 12px; color: #9ca3af; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.ct-etat.ok { color: #16a34a; }

/* Filtres et édition groupée */
.ct-filtres { flex-shrink: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; padding: 8px 12px; border-radius: 12px; border: 1px solid #e5e7eb; background: #f9fafb; }
.ct-raz { font-size: 12px; color: #6b7280; text-decoration: underline; background: none; border: 0; cursor: pointer; }
.ct-groupee { flex-shrink: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; padding: 8px 12px; border-radius: 12px; border: 1px solid #c7d2fe; background: #eef2ff; }
.ct-groupee-n { font-size: 12px; font-weight: 500; color: #4338ca; white-space: nowrap; }
.ct-groupee-lib { font-size: 12px; color: #6b7280; white-space: nowrap; }
.ct-bulk { font-size: 12px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 4px 8px; background: #fff; }
.ct-bulk-large { max-width: 16rem; }
.ct-bulk-court { width: 5rem; }
.ct-bulk-moyen { width: 12rem; }
.ct-bulk-notes { width: 8rem; }
.ct-appliquer { font-size: 12px; font-weight: 500; border-radius: 8px; padding: 4px 12px; background: #4f46e5; color: #fff; border: 0; cursor: pointer; }
.ct-appliquer:hover:not(:disabled) { background: #4338ca; }
.ct-appliquer:disabled { opacity: .4; cursor: default; }
.ct-deselect { margin-left: auto; font-size: 12px; color: #6b7280; display: flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; }
.ct-deselect:hover { color: #1f2937; }
.ct-aucun { flex: 1; min-height: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px 12px; text-align: center; color: #9ca3af; font-size: 14px; }

/* Tableau */
.ct-cadre { flex: 1; min-height: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: auto; }
.dark .ct-cadre { background: #111827; border-color: #1f2937; }
.ct-table { width: 100%; min-width: 68rem; font-size: 14px; table-layout: fixed; border-collapse: collapse; }
.ct-thead { position: sticky; top: 0; z-index: 10; }
.ct-thead tr { background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.ct-th-case { padding: 10px 4px 10px 12px; width: 2rem; }
.ct-th { text-align: left; padding: 10px 12px; font-weight: 600; color: #6b7280; font-size: 11px; text-transform: uppercase; letter-spacing: .025em; }
.ct-tri { display: flex; align-items: flex-start; gap: 4px; text-align: left; line-height: 1.25; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; }
.ct-tri:hover { color: #1f2937; }
.ct-tri-ic { color: #d1d5db; flex-shrink: 0; }
.ct-tri-ic.actif { color: #4f46e5; }
.ct-td-groupe { padding: 0; border-top: 2px solid #d1d5db; }
.ct-td-groupe:not(.premier) { padding-top: 20px; }
.ct-groupe { display: flex; align-items: center; gap: 8px; padding-left: 12px; background: #f9fafb; transition: background .15s; }
.ct-groupe:hover { background: #f3f4f6; }
.ct-groupe-bt { flex: 1; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 0; text-align: left; background: none; border: 0; cursor: pointer; }
.ct-groupe-chevron { color: #9ca3af; flex-shrink: 0; }
.ct-groupe-lib { font-size: 12px; font-weight: 600; color: #4b5563; }
.ct-groupe-lib.couleur { color: var(--c); }
.ct-groupe-n { font-size: 12px; color: #9ca3af; }
.ct-ligne { border-top: 1px solid #e5e7eb; transition: background .15s; }
.ct-ligne > td { vertical-align: top; padding-top: 10px; padding-bottom: 10px; }
.ct-ligne:hover { background: #f9fafb; }
.ct-ligne.coche { background: rgba(238,242,255,.7); }
.ct-ligne.ferme { border-bottom: 2px solid #d1d5db; }
.ct-td-case { padding: 8px 4px 8px 12px; }
.ct-td-code { padding: 6px 12px 6px 9px; white-space: nowrap; }
.ct-td-signal { padding: 6px 12px; white-space: nowrap; }
.ct-td { padding: 6px 12px; min-width: 0; }
.ct-td.gris { color: #4b5563; }
.ct-td-doc { padding: 6px 12px; color: #9ca3af; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-pill { display: inline-block; border-radius: 4px; padding: 2px 6px; font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--c); background: var(--c-bg); }
.dark .ct-pill { color: var(--c-dark); background: var(--c-bg-dark); }
.ct-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ct-bout { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ct-bout-nom { color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dark .ct-bout-nom { color: #e5e7eb; }
.ct-lieu { padding-left: 14px; font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-passage { display: block; font-size: 10px; color: #9ca3af; margin-top: 2px; }
.ct-case { width: 14px; height: 14px; flex-shrink: 0; accent-color: #4f46e5; cursor: pointer; }

/* Cellules de câble */
.ct-cellule { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-cellule.ligne { flex-direction: row; align-items: baseline; gap: 6px; }
.ct-lot { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.ct-cordons { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ct-cordons.ligne { flex-direction: row; align-items: baseline; gap: 8px; }
.ct-cordon { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ct-cordon.ligne { flex-direction: row; align-items: baseline; gap: 6px; }
.ct-cordon-tete { display: flex; align-items: flex-start; gap: 4px; min-width: 0; }
.ct-cordon-sel { flex: 1; min-width: 0; }
.ct-cordon-retirer { flex-shrink: 0; margin-top: 6px; color: #d1d5db; background: none; border: 0; cursor: pointer; padding: 0; }
.ct-cordon-retirer:hover { color: #ef4444; }
.ct-cordon-detail { display: flex; align-items: center; column-gap: 8px; row-gap: 4px; flex-wrap: wrap; min-width: 0; font-size: 12px; }
.ct-qte { display: flex; align-items: baseline; gap: 2px; color: #9ca3af; }
.ct-ajout-cordon { align-self: flex-start; display: flex; align-items: center; gap: 4px; font-size: 12px; color: #9ca3af; background: none; border: 0; cursor: pointer; padding: 0; }
.ct-ajout-cordon:hover { color: #4f46e5; }

/* Interrupteur de cellule */
.cs-bouton { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.25; text-align: left; color: #6b7280; background: none; border: 0; cursor: pointer; padding: 0; }
.cs-bouton.on { color: #1f2937; }
.cs-bouton:hover { color: #111827; }
.cs-piste { display: inline-flex; height: 18px; width: 32px; flex-shrink: 0; align-items: center; border-radius: 9999px; background: #e5e7eb; transition: background .15s; }
.cs-bouton.on .cs-piste { background: #6366f1; }
.cs-pastille { display: inline-block; height: 14px; width: 14px; border-radius: 9999px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); transform: translateX(2px); transition: transform .15s; }
.cs-bouton.on .cs-pastille { transform: translateX(16px); }
.cs-lecture { font-size: 11px; line-height: 1.25; color: #4b5563; }

/* Cellules « à la Notion » */
.ec-vide { color: #9ca3af; }
.ec-tronque { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-serre { line-height: 1.25; }
.ec-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.ec-bloc, .ec-inline { text-align: left; border-radius: 4px; padding: 2px 6px; background: none; border: 0; cursor: pointer; color: inherit; font: inherit; transition: background .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-bloc { width: 100%; margin: 0 -6px; display: block; }
.ec-bloc.ec-retour { white-space: normal; line-height: 1.25; }
.ec-inline { display: inline-block; max-width: 11rem; vertical-align: bottom; }
.ec-bloc:hover, .ec-inline:hover { background: #f3f4f6; }
.ec-bloc:focus, .ec-inline:focus { outline: none; box-shadow: 0 0 0 1px #a5b4fc; }
.ec-champ-sel { width: 100%; display: flex; align-items: center; gap: 6px; text-align: left; border-radius: 8px; padding: 6px 8px; line-height: 1.25; border: 1px solid #e5e7eb; background: #fff; cursor: pointer; font: inherit; font-size: 14px; transition: border-color .15s; }
.ec-champ-sel:hover { border-color: #d1d5db; }
.ec-champ-sel-texte { flex: 1; min-width: 0; color: #9ca3af; }
.ec-champ-sel-texte.plein { color: #1f2937; }
.ec-chevron { flex-shrink: 0; color: #d1d5db; }
.ec-champ, .ec-champ-bloc, .ec-champ-inline { border-radius: 4px; padding: 2px 6px; background: #fff; border: 1px solid #a5b4fc; font: inherit; }
.ec-champ:focus, .ec-champ-bloc:focus, .ec-champ-inline:focus { outline: none; }
.ec-champ.ec-plein { width: 100%; }
.ec-champ-bloc { width: 100%; margin: 0 -6px; }
.ec-champ-inline { width: 8rem; }

/* Vue Schéma */
.ct-schema-groupe { margin-top: 20px; border-top: 2px solid #d1d5db; border-bottom: 2px solid #d1d5db; }
.ct-schema-groupe:first-child { margin-top: 0; }
.ct-schema-ligne { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-top: 1px solid #f3f4f6; transition: background .15s; }
.ct-schema-ligne:hover { background: #f9fafb; }
.ct-schema-ligne.coche { background: rgba(238,242,255,.7); }
.ct-schema-case { margin-top: 4px; }
.ct-schema-code { flex-shrink: 0; margin-top: 2px; }
.ct-schema-corps { flex: 1; min-width: 0; }
.ct-schema-haut { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ct-schema-bout { min-width: 0; flex-shrink: 1; }
.ct-schema-trait { flex: 1; min-width: 16px; height: 2px; border-radius: 9999px; }
.ct-schema-signal { flex-shrink: 0; }
.ct-schema-fleche { flex-shrink: 0; margin-left: -4px; font-size: 10px; line-height: 1; }
.ct-schema-bas { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font-size: 12px; color: #6b7280; }
.ct-schema-lieu { flex-shrink: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-schema-lieu.droite { text-align: right; }
.ct-schema-espace { flex: 1; min-width: 16px; }
.ct-schema-champs { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: center; column-gap: 4px; flex-shrink: 0; color: #4b5563; }
.ct-schema-champ { display: flex; align-items: baseline; }
.ct-schema-sep { color: #d1d5db; margin-right: 4px; }
.ct-schema-doc { flex-shrink: 0; margin-top: 2px; font-size: 12px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 8rem; }

/* ── Plan d'implantation (FloorplanEditor) ──────────────────────────────────────────────────────── */
.fp-ecran { position: relative; height: 100%; overflow: hidden; background: #f3f4f6; }
.dark .fp-ecran { background: #030712; }
.fp-ecran.imprime { background: #fff; flex: 1; min-height: 0; width: 100%; }
.fp-svg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.fp-calques { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 14rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.fp-calque { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #374151; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.fp-calque:hover { background: #f9fafb; }
.fp-lecture { font-size: 11px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 9999px; padding: 2px 8px; white-space: nowrap; }
.fp-controles-hote { position: absolute; right: 12px; bottom: 12px; z-index: 10; }
.fp-controles { display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.1); padding: 4px 8px; }
.fp-ctl { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: #4b5563; background: none; border: 0; cursor: pointer; }
.fp-ctl:hover { background: #f3f4f6; }
.fp-echelle { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.fp-echelle-svg { overflow: visible; }
.fp-echelle-texte { font-size: 11px; color: #6b7280; font-variant-numeric: tabular-nums; }
.fp-erreur { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); color: #dc2626; font-size: 14px; }
/* Impression : le plan au-dessus, la bande (câbles à tirer + cartouche) en bas à droite */
.fp-impression { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-end; }
.fp-bande { display: flex; width: 100%; align-items: stretch; justify-content: flex-end; }
.fp-cables { border: 1px solid #111827; border-right: none; background: #fff; font-size: 9px; font-family: system-ui, sans-serif; color: #111827; }
.fp-cables-titre { padding: 1mm 2mm; border-bottom: 1px solid #111827; font-weight: 700; font-size: 8px; text-transform: uppercase; letter-spacing: .04em; }
.fp-cables-table { border-collapse: collapse; }
.fp-cables-nature { padding: .6mm 2mm; border-bottom: 1px solid #e5e7eb; font-weight: 700; white-space: nowrap; }
.fp-cables-egal { padding: .6mm 1mm; border-bottom: 1px solid #e5e7eb; color: #6b7280; }
.fp-cables-cable { padding: .6mm 2mm; border-bottom: 1px solid #e5e7eb; }

/* ── Plan d'implantation : édition (barre d'outils, consignes, fenêtres de calibrage et de recadrage) ── */
.fp-barre { height: 44px; z-index: 20; }
.cb-barre .fp-nom { max-width: 160px; }
.fp-outils { display: flex; align-items: center; gap: 2px; }
.fp-sep { width: 1px; height: 20px; background: #e5e7eb; margin: 0 2px; flex-shrink: 0; }
.dark .fp-sep { background: #374151; }
.cb-barre .fp-outil, .fp-outil { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: #6b7280; cursor: pointer; transition: background .15s, color .15s; }
.cb-barre .fp-outil:hover:not(:disabled), .fp-outil:hover { background: #f3f4f6; }
.cb-barre .fp-outil.actif, .fp-outil.actif { background: #0035f5; color: #fff; }
.cb-barre .fp-outil:disabled { color: #d1d5db; cursor: not-allowed; }
.cb-barre .fp-aimant { height: 36px; padding: 0 6px; border-radius: 8px; display: flex; align-items: center; gap: 2px; color: #9ca3af; }
.cb-barre .fp-aimant:hover { background: #f3f4f6; }
.cb-barre .fp-aimant.actif { background: #fff; color: #0035f5; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.fp-aimant-val { font-size: 10px; font-weight: 500; }
.cb-barre .fp-prerequis { height: 36px; padding: 0 8px; border-radius: 8px; display: flex; align-items: center; gap: 4px; color: #6b7280; }
.cb-barre .fp-prerequis:hover:not(:disabled) { background: #f3f4f6; }
.cb-barre .fp-prerequis.actif { background: #0035f5; color: #fff; }
.cb-barre .fp-prerequis:disabled { color: #d1d5db; cursor: not-allowed; }
.fp-prerequis-lib { font-size: 11px; font-weight: 500; max-width: 70px; overflow: hidden; text-overflow: ellipsis; }
.fp-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: 13rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); padding: 6px; display: flex; flex-direction: column; gap: 2px; white-space: normal; max-height: 60vh; overflow-y: auto; }
.fp-menu.large { width: 16rem; }
.cb-barre .fp-menu-item { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 6px 8px; border-radius: 8px; color: #374151; width: 100%; }
.cb-barre .fp-menu-item.ligne { flex-direction: row; align-items: center; gap: 8px; }
.cb-barre .fp-menu-item:hover { background: #f9fafb; }
.cb-barre .fp-menu-item.actif { background: #eef2ff; color: #0035f5; }
.fp-menu-textes { display: flex; flex-direction: column; min-width: 0; }
.fp-menu-lib { font-size: 12px; font-weight: 600; }
.fp-menu-sous { font-size: 11px; color: #6b7280; }
.fp-menu-aide { font-size: 11px; color: #6b7280; padding: 6px 8px 2px; border-top: 1px solid #f3f4f6; margin: 4px 0 0; }
.fp-pastille { min-width: 28px; height: 22px; padding: 0 4px; border-radius: 6px; border: 1px solid #111827; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #111827; flex-shrink: 0; }
.fp-etats { display: flex; align-items: center; gap: 6px; }
.fp-etat { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #6b7280; }
.fp-etat.ok { color: #16a34a; }
.cb-barre .fp-outil input[type=file] { display: none; }

.fp-controles .fp-info, .fp-planche { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5563; border: 0; background: none; cursor: pointer; padding: 0 4px; white-space: nowrap; }
.fp-controles .fp-info:hover { color: #0035f5; }
.fp-controles { height: 36px; border-radius: 12px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }

.fp-avis-hote { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; pointer-events: none; }
.fp-avis-hote > * { pointer-events: auto; }
.fp-consigne { font-size: 12px; color: #4b5563; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.05); padding: 6px 12px; max-width: 52ch; text-align: center; }
.fp-erreur-bandeau { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 8px 12px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.fp-erreur-x { border: 0; background: none; color: inherit; cursor: pointer; display: flex; padding: 0; }

.fp-fenetres-hote { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.fp-fenetre { width: 22rem; background: #fff; border: 1px solid #d1d5db; border-radius: 12px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); overflow: hidden; }
.fp-fenetre-tete { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid #f3f4f6; }
.fp-fenetre-titre { font-size: 14px; font-weight: 600; color: #111827; }
.fp-fenetre-x { border: 0; background: none; color: #9ca3af; cursor: pointer; display: flex; padding: 0; }
.fp-fenetre-x:hover { color: #4b5563; }
.fp-fenetre-corps { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.fp-fenetre-texte { font-size: 12px; color: #374151; line-height: 1.6; margin: 0; }
.fp-ligne { display: flex; align-items: flex-end; gap: 8px; }
.fp-champ { display: flex; flex-direction: column; gap: 2px; width: 5rem; }
.fp-champ.large { flex: 1; width: auto; }
.fp-label { font-size: 11px; font-weight: 500; color: #6b7280; }
.fp-saisie { font-size: 13px; padding: 4px 8px; height: 32px; }
.fp-appliquer, .fp-recadrer { padding: 6px 12px; font-size: 13px; }
.fp-reprendre, .fp-retablir { font-size: 12px; border: 1px solid #d1d5db; background: #fff; color: #374151; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.fp-retablir { align-self: flex-start; }
.fp-note { font-size: 11px; color: #6b7280; margin: 0; line-height: 1.5; }
.fp-case { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #374151; cursor: pointer; }
.fp-gris { color: #9ca3af; }
.fp-fenetres-hote .fp-calques { position: fixed; top: auto; bottom: 60px; left: auto; right: 12px; width: 16rem; }
.fp-calque-lib { display: block; font-weight: 500; }
.fp-calque-sous { display: block; font-size: 11px; color: #9ca3af; }
.dark .fp-consigne, .dark .fp-fenetre, .dark .fp-menu, .dark .fp-calques { background: #111827; border-color: #374151; color: #e5e7eb; }
.dark .fp-fenetre-titre, .dark .fp-fenetre-texte, .dark .fp-case, .dark .cb-barre .fp-menu-item { color: #e5e7eb; }
.dark .cb-barre .fp-outil:hover:not(:disabled), .dark .cb-barre .fp-aimant:hover, .dark .cb-barre .fp-menu-item:hover { background: #1f2937; }

/* ── Plan d'implantation : panneaux (à implanter, sélection, planche, légende, styles, regroupement) ── */
.fp-panneaux-hote { position: absolute; inset: 0; pointer-events: none; z-index: 25; }
.fp-panneaux-hote > * { pointer-events: auto; }
.flex1 { flex: 1; min-width: 0; }
.fp-hint { font-size: 11px; color: #6b7280; line-height: 1.45; margin: 0; background: #f8fafc; border-left: 2px solid #cbd5e1; padding: 4px 8px; border-radius: 0 6px 6px 0; }
.fp-hint.mb { margin-bottom: 8px; }
.fp-px { margin: 0 4px; }
.fp-pill { display: inline-block; border-radius: 4px; padding: 2px 6px; font-size: 11px; font-weight: 600; line-height: 1.35; color: var(--c); background: var(--c-bg); }
.dark .fp-pill { color: var(--c-dark); background: var(--c-bg-dark); }
.fp-badge { border: 1px solid #000; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; color: #000; flex-shrink: 0; }
.fp-badge.carre { border-radius: 2px; }
.fp-badge-svg { flex-shrink: 0; }
.fp-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.fp-mono.fort { font-weight: 600; color: #4b5563; }
.fp-mono-gris { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; color: #9ca3af; margin-left: 4px; }
.fp-petit-gris { font-size: 10px; color: #9ca3af; margin-left: 4px; }
.fp-ml { margin-left: 6px; } .fp-mr { margin-right: 6px; }
.fp-vert { color: #16a34a; font-size: 11px; } .fp-ambre { color: #d97706; font-size: 11px; line-height: 1.45; margin: 0; }
.fp-bleu { color: #0035f5; }
.fp-tronque { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Barre : bouton « À implanter » */
.cb-barre .fp-todo-btn { position: relative; height: 32px; padding: 0 8px; border-radius: 8px; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #4b5563; }
.cb-barre .fp-todo-btn:hover { background: #f3f4f6; }
.cb-barre .fp-todo-btn.actif { background: #0035f5; color: #fff; }
.fp-todo-btn-lib { display: none; }
@media (min-width: 1280px) { .fp-todo-btn-lib { display: inline; } }
.fp-todo-n { min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9999px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; background: #fef3c7; color: #b45309; }
.fp-todo-btn.actif .fp-todo-n { background: rgb(255 255 255 / .25); color: #fff; }
.fp-controles .fp-info.actif { color: #0035f5; }

/* Panneau « Prérequis à implanter » */
.fp-todo { position: absolute; top: 64px; left: 12px; width: 24rem; max-width: calc(100% - 24px); background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); overflow: hidden; display: flex; flex-direction: column; max-height: calc(100% - 140px); }
.fp-todo-titre { font-size: 12px; font-weight: 600; color: #1f2937; }
.fp-todo-corps { padding: 12px; overflow: auto; }
.fp-todo-vide { font-size: 11px; color: #9ca3af; line-height: 1.4; display: flex; gap: 6px; align-items: center; margin: 0; }
.fp-todo-vide.ok { color: #16a34a; }
.fp-pile-1 { display: flex; flex-direction: column; gap: 4px; }
.fp-pile-2 { display: flex; flex-direction: column; gap: 6px; }
.fp-pile-3 { display: flex; flex-direction: column; gap: 12px; }
.fp-pile { display: flex; flex-direction: column; gap: 8px; }
.fp-todo-ligne, .fp-todo-lien-b { width: 100%; display: flex; align-items: flex-start; gap: 8px; padding: 6px; border-radius: 8px; text-align: left; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.fp-todo-ligne:hover:not(:disabled), .fp-todo-lien:hover { background: #f3f4f6; }
.fp-todo-ligne.arme, .fp-todo-lien.arme { background: #eef2ff; box-shadow: 0 0 0 1px #0035f5; }
.fp-todo-ligne:disabled, .fp-todo-lien-b:disabled { cursor: default; }
.fp-todo-lien { display: flex; align-items: flex-start; gap: 4px; border-radius: 8px; }
.fp-todo-lien-b { padding: 6px 0 6px 6px; flex: 1; min-width: 0; }
.fp-todo-tracer { width: 24px; height: 24px; flex-shrink: 0; border-radius: 6px; border: 0; background: none; color: #d1d5db; cursor: pointer; display: flex; align-items: center; justify-content: center; margin: 6px 4px 0 0; }
.fp-todo-tracer:hover, .fp-todo-tracer.actif { color: #0035f5; }
.fp-todo-ic { margin-top: 2px; display: flex; }
.fp-todo-tx { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.fp-todo-l1 { display: block; line-height: 1.4; }
.fp-todo-l1.bas { margin-top: 2px; }
.fp-todo-l2 { display: block; font-size: 10px; color: #9ca3af; line-height: 1.4; }
.fp-todo-l2.haut { margin-top: 4px; }
.fp-todo-l3 { display: block; font-size: 10px; color: #d97706; line-height: 1.4; }
.fp-fleche { color: #d1d5db; margin-right: 4px; }
.fp-todo-bloc { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f3f4f6; }
.fp-todo-bloc:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.fp-todo-sur { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; margin: 0 0 4px; }
.fp-todo-zone { font-size: 10px; font-weight: 600; color: #4b5563; margin: 0; padding-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-todo-zone.haut { padding-top: 8px; }
.fp-todo-zone.hors { color: #9ca3af; font-style: italic; padding-top: 8px; }

/* Panneau latéral de la sélection */
.fp-docked { position: fixed; top: 0; right: 0; height: 100%; z-index: 40; width: 360px; max-width: 100%; background: #fff; border-left: 1px solid #e5e7eb; display: flex; flex-direction: column; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); overflow: hidden; }
.fp-docked.large { width: 420px; }
.fp-panneau-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #f3f4f6; }
.fp-flottant .fp-panneau-tete { padding: 8px 12px; }
.fp-panneau-titres { display: flex; align-items: stretch; gap: 10px; min-width: 0; }
.fp-accent { width: 4px; border-radius: 9999px; flex-shrink: 0; }
.fp-panneau-tt { min-width: 0; }
.fp-panneau-titre { font-size: 14px; font-weight: 600; color: #111827; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-flottant .fp-panneau-titre { font-size: 12px; color: #1f2937; }
.fp-panneau-sous { font-size: 12px; color: #6b7280; margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-panneau-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.fp-panneau-btn { padding: 6px; border-radius: 8px; border: 0; background: none; color: #9ca3af; cursor: pointer; display: flex; }
.fp-panneau-btn:hover { background: #f3f4f6; }
.fp-panneau-btn.suppr:hover { color: #ef4444; }
.fp-onglets { display: flex; padding: 6px 8px 0; gap: 2px; border-bottom: 1px solid #f3f4f6; }
.fp-onglet { flex: 1; padding: 6px 4px; font-size: 11px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 6px 6px 0 0; background: none; color: #6b7280; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-onglet:hover:not(:disabled) { color: #1f2937; }
.fp-onglet.actif { border-bottom-color: #0035f5; color: #111827; background: #f9fafb; }
.fp-onglet:disabled { color: #d1d5db; cursor: default; }
.fp-onglet-n { margin-left: 4px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.fp-panneau-corps { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.fp-panneau-corps.flush { padding: 12px; gap: 0; }
.fp-flottant { position: absolute; bottom: 64px; right: 12px; z-index: 20; width: 18rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); overflow: hidden; }
.fp-flottant.large { width: 26rem; }
.fp-flottant-corps { padding: 12px; display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow: auto; }

.fp-section { border: 1px solid #f3f4f6; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.fp-section-tete { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgb(249 250 251 / .8); border: 0; cursor: pointer; text-align: left; }
.fp-section-tete:hover { background: rgb(243 244 246 / .8); }
.fp-section-chev, .fp-section-ic { color: #9ca3af; display: flex; flex-shrink: 0; }
.fp-section-titre { font-size: 12px; font-weight: 600; color: #374151; }
.fp-section-corps { padding: 14px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.fp-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fp-field-lib { font-size: 11px; font-weight: 500; color: #6b7280; }
.fp-grille { display: grid; gap: 12px; }
.fp-grille.g2 { grid-template-columns: 1fr 1fr; }
.fp-grille.g3 { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.fp-grille.gpose { grid-template-columns: 1fr 5rem; gap: 8px; }
.fp-grille.ghaut { grid-template-columns: 6rem 1fr; gap: 8px; }
.fp-grille.gnom { grid-template-columns: 1fr 8rem; }
.fp-ctl-in, .fp-unite, .fp-texte { width: 100%; padding: 0 10px; height: 28px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 12px; background: #fff; color: #111827; font-family: inherit; box-sizing: border-box; }
.fp-texte { height: auto; padding: 6px 10px; resize: vertical; min-height: 52px; }
.fp-ctl-in:focus, .fp-unite:focus, .fp-texte:focus { outline: none; box-shadow: 0 0 0 2px #6b8afd; border-color: transparent; }
.fp-ctl-in:disabled, .fp-unite:disabled, .fp-texte:disabled { background: #f9fafb; color: #6b7280; }
.fp-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.fp-check input { margin-top: 3px; }
.fp-check-t { min-width: 0; }
.fp-check-lib { display: block; font-size: 12px; color: #1f2937; }
.fp-check-aide { display: block; font-size: 11px; color: #9ca3af; line-height: 1.4; }
.fp-mini-case { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #374151; cursor: pointer; }
.fp-encart { font-size: 11px; color: #6b7280; background: #f9fafb; border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; line-height: 1.45; }
.fp-encart p, .fp-identite p { margin: 0; }
.fp-encart .fort, .fp-identite .fonce, .fp-encart .fonce { color: #374151; }
.fp-encart .fort { font-weight: 500; }
.fp-encart .ambre { color: #d97706; }
.fp-identite { font-size: 10px; color: #6b7280; line-height: 1.45; display: flex; flex-direction: column; gap: 2px; }
.fp-identite .clair { color: #9ca3af; }
.fp-filet { padding-top: 8px; border-top: 1px solid #f3f4f6; }
.fp-sous-titre { font-size: 11px; font-weight: 500; color: #4b5563; }
.fp-retrait { padding-left: 26px; margin-top: 4px; }
.fp-mesure { font-size: 14px; font-weight: 600; color: #1f2937; }
.fp-alerte { margin: 4px 0 0; font-size: 10px; color: #b45309; background: #fffbeb; border-radius: 8px; padding: 6px 8px; line-height: 1.45; }
.fp-souligne { border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; margin-left: 4px; font-size: inherit; padding: 0; }
.fp-lien-bleu, .fp-lien-gris, .fp-lien-rouge { border: 0; background: none; cursor: pointer; padding: 0; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; align-self: flex-start; }
.fp-lien-bleu { color: #0035f5; } .fp-lien-bleu:hover { text-decoration: underline; }
.fp-lien-gris { color: #6b7280; } .fp-lien-gris:hover { color: #1f2937; }
.fp-lien-rouge { color: #6b7280; font-size: 11px; flex-shrink: 0; } .fp-lien-rouge:hover { color: #dc2626; }
.fp-action-ambre, .fp-action-indigo { width: 100%; text-align: left; font-size: 11px; border: 0; border-radius: 8px; padding: 8px 10px; line-height: 1.4; cursor: pointer; }
.fp-action-ambre { color: #b45309; background: #fffbeb; } .fp-action-indigo { color: #4f46e5; background: #eef2ff; }
.fp-action-ambre:hover, .fp-action-indigo:hover { text-decoration: underline; }
.fp-btn-sec { height: 28px; padding: 0 12px; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; font-size: 12px; color: #374151; cursor: pointer; flex-shrink: 0; }
.fp-btn-sec:disabled { opacity: .4; cursor: default; }
.fp-btn-petit { font-size: 12px; padding: 6px 12px; }
.fp-btn-large { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; font-size: 12px; font-weight: 500; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; color: #4b5563; cursor: pointer; }
.fp-btn-large:disabled { opacity: .4; }
.fp-ligne-c { display: flex; align-items: center; gap: 6px; }
.fp-ligne-entre { display: flex; align-items: center; justify-content: space-between; }
.fp-icone-suppr { padding: 4px; border: 0; background: none; color: #9ca3af; cursor: pointer; display: flex; }
.fp-icone-suppr:hover { color: #dc2626; }
.fp-mini-n { font-size: 10px; color: #9ca3af; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.fp-style { border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.fp-couleur { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.fp-couleur.petit { width: 16px; height: 16px; }
.fp-ajout-pointille { width: 100%; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6px; border-radius: 8px; border: 1px dashed #d1d5db; background: none; font-size: 12px; color: #4b5563; cursor: pointer; }
.fp-menubtn { position: relative; width: 100%; }
.fp-menubtn-b { display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; }
.fp-menubtn-lib { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.fp-menubtn-pop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; min-width: 220px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); padding: 6px; }
.fp-menu-ligne { width: 100%; display: flex; align-items: center; gap: 8px; padding: 0 8px; height: 28px; border-radius: 6px; font-size: 12px; text-align: left; color: #374151; border: 0; background: none; cursor: pointer; }
.fp-menu-ligne:hover { background: #f3f4f6; }
.fp-rond { width: 14px; height: 14px; border-radius: 9999px; border: 1px solid rgb(0 0 0 / .1); flex-shrink: 0; }
.fp-nuancier { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; padding: 8px; }
.fp-nuance { width: 20px; height: 20px; border-radius: 9999px; border: 1px solid rgb(0 0 0 / .1); cursor: pointer; padding: 0; }
.fp-nuance.actif { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #6b8afd; }
.fp-surlignage { margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fp-nuance-note { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #fff; cursor: pointer; padding: 0; position: relative; overflow: hidden; }
.fp-nuance-note.actif { border-color: #1f2937; }
.fp-nuance-note.aucune { background: #fff; border: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: center; }
.fp-nuance-note.aucune.actif { border-color: #1f2937; }
.fp-barre-oblique { display: block; width: 10px; height: 1px; background: #9ca3af; transform: rotate(45deg); }
.fp-nuance-note.arc { background: conic-gradient(#dc2626,#f59e0b,#facc15,#16a34a,#2563eb,#7c3aed,#dc2626); border: 1px solid #e5e7eb; }
.fp-nuance-note.arc input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }

/* Attentes d'un point */
.fp-sep-titre { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #6b7280; }
.fp-sep-trait { flex: 1; height: 1px; background: #e5e7eb; }
.fp-attente { border-radius: 8px; padding: 8px 10px; border: 1px solid #e5e7eb; }
.fp-attente.sur { background: rgb(238 242 255 / .7); border-color: rgb(199 210 254 / .7); }
.fp-attente-l1 { display: flex; align-items: center; gap: 10px; }
.fp-attente-coche { flex-shrink: 0; width: 16px; border: 0; background: none; padding: 0; cursor: pointer; color: #d1d5db; display: flex; }
.fp-attente-coche.on { color: #0035f5; }
.fp-attente-t { min-width: 0; flex: 1; font-size: 12px; line-height: 1.4; color: #1f2937; }
.fp-attente-edit { min-width: 0; flex: 1; display: flex; align-items: center; gap: 6px; font-size: 12px; }
.fp-attente-edit .fp-ctl-in { height: 24px; padding: 0 4px; }
.fp-qte { width: 44px !important; text-align: center; flex-shrink: 0; }
.fp-nature { width: 80px !important; flex-shrink: 0; }
.fp-attente-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; border-radius: 6px; padding: 4px 8px; border: 1px solid #e5e7eb; background: #fff; color: #4b5563; cursor: pointer; }
.fp-attente-btn:hover { border-color: #a5b4fc; color: #3730a3; }
.fp-attente-btn.rouge:hover { border-color: #fca5a5; color: #dc2626; }
.fp-attente-l2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; padding-left: 26px; font-size: 11px; color: #6b7280; }
.fp-attente-l2 .fp-ctl-in { height: 24px; font-size: 11px; padding: 0 4px; }
.fp-pose { width: 7rem !important; flex-shrink: 0; }
.fp-haut { width: 3rem !important; text-align: center; flex-shrink: 0; }
.fp-ref { width: 5rem !important; flex-shrink: 0; }
.fp-sortie { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid #e5e7eb; }
.fp-pastilles { display: flex; flex-wrap: wrap; gap: 6px; }

/* Cheminement : extrémités */
.fp-extremites { border: 1px solid #e5e7eb; border-radius: 8px; }
.fp-extremite { padding: 8px 12px; display: flex; align-items: flex-start; gap: 12px; }
.fp-extremite + .fp-extremite { border-top: 1px solid #f3f4f6; }
.fp-ext-de { font-size: 11px; color: #9ca3af; width: 32px; flex-shrink: 0; }
.fp-ext-tx { min-width: 0; flex: 1; }
.fp-ext-l1 { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #1f2937; }
.fp-ext-l2 { display: block; font-size: 11px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-pt { width: 8px; height: 8px; border-radius: 9999px; flex-shrink: 0; }

/* Légende */
.fp-legende { position: absolute; bottom: 64px; right: 12px; z-index: 20; width: 20rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); overflow: hidden; }
.fp-legende-corps { padding: 12px; max-height: 60vh; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.fp-leg-ligne { display: flex; align-items: flex-start; gap: 8px; }
.fp-leg-ref { font-size: 10px; font-family: ui-monospace, monospace; color: #9ca3af; width: 20px; flex-shrink: 0; padding-top: 4px; }
.fp-leg-badge { margin-top: 2px; display: flex; }
.fp-leg-desc { display: block; font-size: 11px; font-weight: 500; color: #1f2937; }
.fp-leg-desc.n { font-weight: 400; color: #374151; }
.fp-leg-nature { font-size: 10px; font-family: ui-monospace, monospace; font-weight: 600; color: #374151; width: 40px; flex-shrink: 0; }
.fp-leg-qte { font-size: 10px; font-weight: 600; color: #4b5563; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.fp-leg-pts { display: block; font-weight: 400; color: #9ca3af; }
.fp-leg-abbr { display: flex; gap: 8px; font-size: 10px; color: #6b7280; align-items: center; }
.fp-leg-code { font-family: ui-monospace, monospace; font-weight: 600; color: #374151; width: 48px; flex-shrink: 0; }
.fp-mentions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 10px; color: #6b7280; line-height: 1.4; }

/* Barre de regroupement */
.fp-regroupe { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #fff; border: 1px solid #d1d5db; border-radius: 12px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); white-space: nowrap; }
.fp-regroupe-t { font-size: 12px; color: #374151; }

.dark .fp-todo, .dark .fp-docked, .dark .fp-flottant, .dark .fp-legende, .dark .fp-regroupe, .dark .fp-section-corps, .dark .fp-menubtn-pop { background: #111827; border-color: #1f2937; color: #e5e7eb; }
.dark .fp-section { border-color: #1f2937; }
.dark .fp-section-tete { background: rgb(31 41 55 / .7); }
.dark .fp-panneau-titre, .dark .fp-section-titre, .dark .fp-check-lib, .dark .fp-attente-t, .dark .fp-todo-titre, .dark .fp-leg-desc { color: #f3f4f6; }
.dark .fp-ctl-in, .dark .fp-unite, .dark .fp-texte { background: #111827; border-color: #374151; color: #f3f4f6; }
.dark .fp-encart, .dark .fp-hint { background: #1f2937; }
.dark .fp-attente, .dark .fp-sortie, .dark .fp-extremites, .dark .fp-style { border-color: #374151; }
.dark .fp-attente.sur { background: rgb(0 53 245 / .1); border-color: rgb(0 53 245 / .25); }
.fp-panneau-corps > *, .fp-flottant-corps > *, .fp-todo-corps > *, .fp-legende-corps > * { flex-shrink: 0; }
.fp-ext-l1 { white-space: nowrap; overflow: hidden; }
.fp-ext-l1 > .fp-gris { flex-shrink: 0; }

/* Plan imprimé : seconde planche (récapitulatif des attentes en prérequis) */
.fp-recap-page { box-sizing: border-box; padding: 10mm; display: flex; flex-direction: column; gap: 4mm; background: #fff; break-before: page; }
.fp-recap-zone { flex: 1; min-height: 0; overflow: hidden; }
.fp-recap-bas { display: flex; justify-content: flex-end; }
/* Fenêtre de choix de la page d'un PDF importé */
.fp-modal-fond { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgb(0 0 0 / .2); }
.fp-modal { background: #fff; border-radius: 16px; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); width: 100%; max-width: 48rem; margin: 0 16px; overflow: hidden; }
.fp-modal-tete { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f3f4f6; }
.fp-modal-titre { font-size: 14px; font-weight: 600; color: #1f2937; }
.fp-modal-corps { padding: 16px; }
.fp-pdf-entete { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.fp-pdf-compteur { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #9ca3af; flex-shrink: 0; }
.fp-pdf-grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-height: 60vh; overflow: auto; padding-right: 4px; }
@media (min-width: 640px) { .fp-pdf-grille { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .fp-pdf-grille { grid-template-columns: repeat(4, 1fr); } }
.fp-pdf-page { text-align: left; border-radius: 8px; border: 1px solid #e5e7eb; overflow: hidden; background: #fff; cursor: pointer; padding: 0; }
.fp-pdf-page:hover { border-color: #0035f5; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.fp-pdf-vignette { aspect-ratio: 4 / 3; background: #f9fafb; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 4px; }
.fp-pdf-vignette img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fp-pdf-pied { padding: 6px 8px; border-top: 1px solid #f3f4f6; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fp-pdf-num { font-size: 12px; font-weight: 500; color: #374151; }
.fp-pdf-page:hover .fp-pdf-num { color: #0035f5; }
.fp-pdf-format { font-size: 10px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Paramètres (SettingsNav) et administration : Comptes, Rôles & droits ── */
.sn-cadre { display: flex; height: calc(100% + 32px); margin: -16px; }
.sn-aside { width: 13rem; background: #fff; border-right: 1px solid #e5e7eb; display: flex; flex-direction: column; flex-shrink: 0; padding: 24px 0 16px; }
.sn-tete { padding: 0 16px; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: #111827; }
.sn-nav { flex: 1; padding: 0 8px; overflow-y: auto; }
.sn-groupe { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; padding: 16px 8px 4px; margin: 0; }
.sn-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: #4b5563; text-decoration: none; margin-bottom: 2px; transition: background .15s, color .15s; }
.sn-item:hover { background: #f3f4f6; color: #111827; }
.sn-item.actif { background: #eef2ff; color: #0028c2; font-weight: 500; }
.sn-item svg { flex-shrink: 0; }
.sn-contenu { flex: 1; overflow: auto; padding: 32px; min-width: 0; }
.sn-bloque { padding: 48px; text-align: center; color: #6b7280; }
@media (max-width: 767px) { .sn-cadre { flex-direction: column; height: auto; } .sn-aside { width: auto; border-right: 0; border-bottom: 1px solid #e5e7eb; padding: 12px 0; } .sn-contenu { padding: 16px; } }
.dark .sn-aside { background: #111827; border-color: #1f2937; }
.dark .sn-tete { color: #f3f4f6; } .dark .sn-item { color: #d1d5db; } .dark .sn-item:hover { background: #1f2937; color: #f3f4f6; }
.dark .sn-item.actif { background: rgb(0 53 245 / .2); color: #a5b4fc; }

.ad-page { max-width: 56rem; }
.ad-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ad-titre { font-size: 18px; font-weight: 600; color: #111827; margin: 0 0 4px; text-transform: none; letter-spacing: normal; }
.ad-sous { font-size: 14px; color: #6b7280; margin: 0; }
.ad-message { margin-bottom: 16px; padding: 10px 16px; border-radius: 8px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.ad-message.ok { background: #f0fdf4; color: #15803d; } .ad-message.erreur { background: #fef2f2; color: #dc2626; }
.ad-message.attention { background: #fffbeb; color: #b45309; } .ad-message.info { background: #eff6ff; color: #1d4ed8; margin-bottom: 12px; }
.ad-message svg { flex-shrink: 0; }
.ad-carte { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.ad-defile { overflow-x: auto; }
.ad-mb8 { margin-bottom: 32px; } .ad-mb3 { margin-bottom: 12px; } .ad-mb4 { margin-bottom: 16px; }
.ad-carte-tete { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid #f3f4f6; }
.ad-carte-titre { font-size: 14px; font-weight: 600; color: #1f2937; margin: 0; }
.ad-ligne-entre { display: flex; align-items: center; justify-content: space-between; }
.ad-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.ad-table th { text-align: left; font-size: 12px; font-weight: 500; color: #9ca3af; padding: 10px 12px; border-bottom: 1px solid #f3f4f6; }
.ad-table td { padding: 10px 12px; border-bottom: 1px solid #f9fafb; vertical-align: middle; }
.ad-table tr:last-child td { border-bottom: 0; }
.ad-table .g { padding-left: 20px; } .ad-table .d { padding-right: 20px; text-align: right; } .ad-table .c { text-align: center; }
.ad-table tr.survol:hover td { background: rgb(249 250 251 / .6); }
.ad-table.matrice th { padding: 12px; }
.ad-table.matrice tr.module td { background: rgb(249 250 251 / .7); border-bottom: 1px solid #f3f4f6; }
.ad-table.matrice td.fonction { padding-left: 32px; color: #4b5563; padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 639px) { .ad-table .sm { display: none; } }
.ad-module { font-weight: 600; color: #1f2937; margin: 0; } .ad-module-desc { font-size: 11px; color: #9ca3af; margin: 0; }
.ad-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.ad-icone { padding: 6px; border-radius: 8px; border: 0; background: none; color: #9ca3af; cursor: pointer; display: flex; }
.ad-icone.indigo:hover { color: #4f46e5; background: #eef2ff; } .ad-icone.rouge:hover:not(:disabled) { color: #dc2626; background: #fef2f2; }
.ad-icone:disabled { opacity: .3; cursor: default; }
.ad-gris { color: #d1d5db; display: inline-flex; } .ad-gris-fonce { color: #6b7280; } .ad-petit-gris { font-size: 12px; color: #9ca3af; }
.ad-vert { color: #16a34a; } .ad-bleu { color: #0035f5; } .ad-rouge { color: #dc2626; }
.ad-pastille { display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 9999px; font-weight: 500; white-space: nowrap; }
.ad-pastille.petite { padding: 2px 8px; }
.c-gray { background: #f3f4f6; color: #4b5563; } .c-blue { background: #dbeafe; color: #1d4ed8; } .c-purple { background: #f3e8ff; color: #7e22ce; }
.c-emerald { background: #d1fae5; color: #047857; } .c-amber { background: #fef3c7; color: #b45309; } .c-rose { background: #ffe4e6; color: #be123c; }
.c-cyan { background: #cffafe; color: #0e7490; } .c-indigo { background: #e0e7ff; color: #4338ca; }
.ad-lien-petit { font-size: 11px; color: #0035f5; background: none; border: 0; cursor: pointer; padding: 0; }
.ad-lien-petit:hover { text-decoration: underline; color: #0028c2; }
.ad-case { width: 16px; height: 16px; accent-color: #0035f5; cursor: pointer; }
.ad-case:disabled { opacity: .5; cursor: not-allowed; }
.ad-btn-primaire, .ad-btn-danger, .ad-btn-sec { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 14px; font-weight: 500; border-radius: 8px; border: 0; cursor: pointer; flex-shrink: 0; transition: background .15s; }
.ad-btn-primaire { background: #0035f5; color: #fff; } .ad-btn-primaire:hover:not(:disabled) { background: #0028c2; }
.ad-btn-primaire.petit { padding: 6px 12px; font-size: 12px; gap: 6px; }
.ad-btn-danger { background: #dc2626; color: #fff; } .ad-btn-danger:hover:not(:disabled) { background: #b91c1c; }
.ad-btn-sec { background: none; color: #4b5563; } .ad-btn-sec:hover { background: #f3f4f6; }
.ad-btn-primaire:disabled, .ad-btn-danger:disabled { opacity: .5; cursor: default; }
.ad-voile { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgb(0 0 0 / .4); padding: 16px; }
.ad-modale { background: #fff; border-radius: 16px; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); width: 100%; max-width: 28rem; }
.ad-modale-tete { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid #f3f4f6; }
.ad-modale-titre { font-size: 16px; font-weight: 600; color: #111827; margin: 0; display: flex; align-items: center; gap: 8px; }
.ad-modale-x { border: 0; background: none; color: #9ca3af; cursor: pointer; display: flex; padding: 0; }
.ad-modale-x:hover { color: #4b5563; }
.ad-modale-corps { padding: 24px; }
.ad-champ { margin-bottom: 12px; }
.ad-lib { display: block; font-size: 12px; font-weight: 500; color: #4b5563; margin-bottom: 6px; }
.ad-aide { font-size: 11px; color: #9ca3af; margin: 4px 0 0; }
.ad-input { width: 100%; box-sizing: border-box; padding: 8px 12px; font-size: 14px; border: 1px solid #e5e7eb; border-radius: 8px; font-family: inherit; background: #fff; }
.ad-input:focus, .ad-select:focus { outline: none; box-shadow: 0 0 0 2px #6b8afd; border-color: transparent; }
.ad-input:disabled { background: #f9fafb; color: #9ca3af; }
.ad-grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ad-couleurs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.ad-pastille-rond { width: 24px; height: 24px; border-radius: 9999px; border: 0; cursor: pointer; padding: 0; }
.ad-pastille-rond.choisie { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #6b8afd; }
.ad-case-ligne { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 14px; color: #374151; }
.ad-case-ligne.inactive { color: #9ca3af; }
.ad-ambre { font-size: 11px; color: #d97706; margin: 0 0 12px; }
.ad-erreur { font-size: 12px; color: #ef4444; margin: 0 0 12px; }
.ad-erreur:empty { display: none; }
.ad-pied { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.ad-texte { font-size: 14px; color: #4b5563; margin: 0 0 8px; }
.ad-definitif { font-weight: 600; color: #dc2626; } .ad-fort { font-weight: 500; color: #1f2937; }
.ad-filtres { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ad-recherche { position: relative; flex: 1; }
.ad-recherche .ad-input { padding-left: 36px; }
.ad-recherche-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.ad-select { padding: 8px 12px; font-size: 14px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; font-family: inherit; }
.ad-select.petit { font-size: 12px; padding: 4px 8px; }
.ad-utilisateur { display: flex; align-items: center; gap: 12px; }
.ad-initiales { width: 36px; height: 36px; border-radius: 9999px; background: #e0e7ff; color: #0028c2; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; flex-shrink: 0; }
.ad-tronque { min-width: 0; }
.ad-nom { font-weight: 500; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.ad-vous { font-size: 12px; color: #9ca3af; font-weight: 400; }
.ad-suspendu { margin-left: 6px; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 9999px; background: #fef2f2; color: #dc2626; }
.ad-email { font-size: 12px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.ad-vide { padding: 48px 0; text-align: center; color: #9ca3af; font-size: 14px; }
.ad-vide-ic { opacity: .4; margin: 0 auto 8px; display: block; }
.ad-compte { font-size: 12px; color: #9ca3af; margin-top: 12px; }
.dark .ad-carte, .dark .ad-modale, .dark .ad-input, .dark .ad-select { background: #111827; border-color: #1f2937; color: #f3f4f6; }
.dark .ad-titre, .dark .ad-carte-titre, .dark .ad-modale-titre, .dark .ad-nom, .dark .ad-module { color: #f3f4f6; }
.dark .ad-table th, .dark .ad-table td, .dark .ad-carte-tete, .dark .ad-modale-tete { border-color: #1f2937; }
.dark .ad-table.matrice tr.module td { background: rgb(31 41 55 / .6); }

/* ── Section Agents (AgentsNav, AgentsManager, LibraryReportView, SecurityReportView) ── */
.ag-cadre { display: flex; flex-direction: column; height: calc(100% + 32px); margin: -16px; }
.ag-onglets { display: flex; align-items: center; gap: 4px; padding: 12px 24px 0; border-bottom: 1px solid #e5e7eb; background: #fff; flex-shrink: 0; overflow-x: auto; }
.ag-onglet { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; color: #6b7280; text-decoration: none; white-space: nowrap; }
.ag-onglet:hover { color: #1f2937; border-bottom-color: #e5e7eb; }
.ag-onglet.actif { border-bottom-color: #0035f5; color: #0028c2; }
.ag-point { width: 8px; height: 8px; border-radius: 9999px; background: #4f6bff; }
.ag-point.urgent { background: #ef4444; }
.ag-contenu { flex: 1; min-height: 0; overflow-y: auto; padding: 24px; }
.ag-page { display: flex; flex-direction: column; gap: 20px; }
.ag-page.etroite { max-width: 56rem; } .ag-page.moyenne { max-width: 64rem; } .ag-page.large { max-width: 72rem; }
.ag-titre { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; color: #111827; margin: 0; text-transform: none; letter-spacing: normal; }
.ag-sous { font-size: 14px; color: #6b7280; margin: 4px 0 0; }
.ag-bleu { color: #0035f5; } .ag-gris { color: #9ca3af; } .ag-rouge { color: #dc2626; } .ag-vert { color: #047857; } .ag-ambre { color: #b45309; }
.ag-vert.fort { font-weight: 500; } .ag-vert.haut { margin-top: 4px; font-size: 14px; } .ag-ambre.petit { font-size: 12px; }
.ag-ligne { display: flex; align-items: center; gap: 12px; }
.ag-ligne-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ag-ligne-petite { display: flex; align-items: center; gap: 8px; }
.ag-entete { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ag-droite { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ag-message { border-radius: 8px; padding: 8px 12px; font-size: 14px; border: 1px solid; }
.ag-message.ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.ag-message.erreur { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.ag-btn, .ag-btn-primaire, .ag-btn-vert, .ag-btn-sec { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 14px; border-radius: 8px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.ag-btn { border: 1px solid #e5e7eb; background: #fff; color: #374151; } .ag-btn:hover:not(:disabled) { background: #f9fafb; }
.ag-btn-primaire { border: 0; background: #0035f5; color: #fff; font-weight: 500; } .ag-btn-primaire:hover:not(:disabled) { background: #0028c2; }
.ag-btn-vert { border: 0; background: #059669; color: #fff; font-weight: 500; } .ag-btn-vert:hover:not(:disabled) { background: #047857; }
.ag-btn-vert.petit { padding: 4px 8px; font-size: 12px; gap: 4px; border-radius: 6px; }
.ag-btn-primaire.petit { padding: 6px 12px; font-size: 14px; }
.ag-btn-sec { border: 0; background: none; color: #4b5563; } .ag-btn-sec:hover { background: #f3f4f6; }
.ag-btn:disabled, .ag-btn-primaire:disabled, .ag-btn-vert:disabled { opacity: .5; cursor: default; }
.ag-btn-discret { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; font-size: 12px; border-radius: 6px; border: 0; background: none; color: #6b7280; cursor: pointer; }
.ag-btn-discret:hover { background: #f3f4f6; }
.ag-lien { border: 0; background: none; padding: 0; font-size: 12px; color: #0028c2; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.ag-lien:hover { text-decoration: underline; } .ag-lien.droite { margin-left: auto; } .ag-lien.petit { font-size: 12px; }
.ag-lien.tronque { max-width: 28rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-lien-gris { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; font-size: 14px; color: #4b5563; cursor: pointer; }
.ag-lien-gris:hover { color: #111827; }
.ag-notif { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #6b7280; }
.ag-notif.vert { color: #047857; }

/* Cartes d'agents */
.ag-carte { border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; }
.ag-carte.pause { border-style: dashed; border-color: #d1d5db; }
.ag-carte-tete { display: flex; align-items: flex-start; gap: 12px; padding: 16px; }
.ag-icone { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #eef2ff; color: #0035f5; }
.ag-icone.off { background: #f3f4f6; color: #9ca3af; }
.ag-carte-tx { min-width: 0; flex: 1; }
.ag-carte-titre { font-size: 16px; font-weight: 600; color: #111827; margin: 0; text-transform: none; letter-spacing: normal; }
.ag-carte-desc { font-size: 14px; color: #6b7280; margin: 2px 0 0; }
.ag-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px; border-radius: 9999px; }
.ag-badge.vert { background: #ecfdf5; color: #047857; } .ag-badge.gris { background: #f3f4f6; color: #4b5563; } .ag-badge.bleu { background: #eef2ff; color: #0028c2; }
.ag-grille3 { display: grid; gap: 1px; background: #f3f4f6; border-top: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6; }
@media (min-width: 640px) { .ag-grille3 { grid-template-columns: repeat(3, 1fr); } }
.ag-grille3.cases { background: none; border: 0; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.ag-cellule { background: #fff; padding: 10px 16px; }
.ag-cellule-l { font-size: 12px; color: #9ca3af; }
.ag-cellule-v { font-size: 14px; color: #1f2937; margin-top: 2px; }
.ag-carte-bas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; }
.ag-rapport { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #0028c2; text-decoration: none; }
.ag-rapport:hover { text-decoration: underline; }
.ag-compte { font-size: 12px; padding: 2px 6px; border-radius: 9999px; }
.ag-compte.ambre { background: #fef3c7; color: #92400e; } .ag-compte.rouge { background: #fee2e2; color: #b91c1c; }
.ag-carte-msg:not(:empty) { margin: 0 16px 12px; }
.ag-editeur { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; background: rgb(249 250 251 / .6); display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: #374151; }
.ag-input { padding: 4px 8px; font-size: 14px; border-radius: 6px; border: 1px solid #e5e7eb; background: #fff; color: #1f2937; font-family: inherit; }
.ag-input.court { width: 64px; } .ag-input.large { width: 100%; box-sizing: border-box; margin-top: 4px; }
.ag-jours { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-jour { padding: 4px 10px; font-size: 12px; border-radius: 9999px; border: 1px solid #e5e7eb; background: #fff; color: #4b5563; cursor: pointer; text-transform: capitalize; }
.ag-jour.on { background: #0035f5; border-color: #0035f5; color: #fff; }
.ag-desc { font-size: 12px; color: #6b7280; }
.flex1 { flex: 1; min-width: 0; }
.ag-params { padding: 16px; border-top: 1px solid #f3f4f6; display: flex; flex-direction: column; gap: 16px; font-size: 14px; }
.ag-champ { display: block; max-width: 24rem; }
.ag-grille2 .ag-champ { max-width: none; }
.ag-champ-l { font-size: 12px; font-weight: 500; color: #6b7280; display: block; margin-bottom: 6px; }
.ag-aide { font-size: 12px; color: #9ca3af; } .ag-aide.bloc { display: block; }
.ag-grille2 { display: grid; gap: 12px; } @media (min-width: 640px) { .ag-grille2 { grid-template-columns: 1fr 1fr; } }
.ag-cases { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ag-case { display: inline-flex; align-items: flex-start; gap: 6px; font-size: 14px; color: #374151; cursor: pointer; }
.ag-case input { margin-top: 3px; }
.ag-pied { display: flex; justify-content: flex-end; }

/* Rapports */
.ag-encours { display: inline-flex; align-items: center; gap: 6px; color: #0028c2; }
.ag-bloc { border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; padding: 16px; }
.ag-bloc.nu { padding: 0; } .ag-bloc.choisi { border-color: #6b8afd; }
.ag-bloc-sur { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #6b7280; margin-bottom: 8px; }
.ag-bloc-tete { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #f3f4f6; font-size: 14px; font-weight: 500; color: #1f2937; }
.ag-synthese { font-size: 14px; display: flex; flex-direction: column; gap: 6px; color: #374151; }
.ag-synthese p { margin: 0; } .ag-intertitre { font-weight: 600; color: #111827; margin-top: 8px; }
.ag-puces { list-style: disc; padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ag-tuile { border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; padding: 12px; }
.ag-tuile-l { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #4b5563; }
.ag-tuile-n { font-size: 24px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ag-tuile-n.rouge { color: #b91c1c; } .ag-tuile-n.ambre { color: #b45309; } .ag-tuile-n.gris { color: #4b5563; }
.ag-pt { width: 8px; height: 8px; border-radius: 9999px; flex-shrink: 0; display: inline-block; }
.ag-pt.rouge { background: #ef4444; } .ag-pt.ambre { background: #f59e0b; } .ag-pt.gris { background: #9ca3af; }
.ag-pt.haut { margin-top: 6px; }
.ag-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ag-segments { display: flex; border-radius: 8px; border: 1px solid #e5e7eb; overflow: hidden; }
.ag-segment { padding: 6px 12px; font-size: 14px; border: 0; background: #fff; color: #4b5563; cursor: pointer; font-family: inherit; }
.ag-segment:hover { background: #f9fafb; } .ag-segment.actif { background: #111827; color: #fff; }
.ag-puces-filtre { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-puce { padding: 4px 10px; font-size: 12px; border-radius: 9999px; border: 1px solid #e5e7eb; background: #fff; color: #4b5563; cursor: pointer; }
.ag-puce.actif { background: #0035f5; border-color: #0035f5; color: #fff; }
.ag-recherche { position: relative; margin-left: auto; }
.ag-recherche .ag-input { padding: 6px 12px 6px 32px; width: 16rem; border-radius: 8px; }
.ag-recherche-ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.ag-vide { border-radius: 12px; border: 1px dashed #e5e7eb; padding: 40px; text-align: center; font-size: 14px; color: #6b7280; }
.ag-liste { list-style: none; margin: 0; padding: 0; }
.ag-liste > li + li { border-top: 1px solid #f3f4f6; }
.ag-liste.bord { border-top: 1px solid #f3f4f6; }
.ag-constat { display: flex; align-items: flex-start; gap: 12px; padding: 10px 16px; font-size: 14px; }
.ag-constat-tx { min-width: 0; flex: 1; }
.ag-constat-titre { color: #111827; }
.ag-constat-detail { color: #6b7280; margin-top: 2px; overflow-wrap: anywhere; }
.ag-constat-reco { color: #374151; margin-top: 4px; }
.ag-constat-date { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; color: #9ca3af; margin-top: 2px; }
.ag-nouveau { margin-left: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: 2px 6px; border-radius: 4px; background: #eef2ff; color: #0028c2; }
.ag-note { margin-top: 4px; font-size: 12px; color: #6b7280; font-style: italic; }
.ag-barre { text-decoration: line-through; color: #9ca3af; }
.ag-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.ag-historique-b { width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 14px; font-weight: 500; color: #374151; border: 0; background: none; cursor: pointer; text-align: left; }
.ag-passage { padding: 10px 16px; font-size: 14px; }
.ag-fort { color: #111827; font-weight: 500; } .ag-petit { font-size: 12px; color: #6b7280; } .ag-petit.ml { margin-left: 8px; color: #9ca3af; }
.ag-journal { margin: 8px 0 0; max-height: 18rem; overflow: auto; border-radius: 8px; background: #f9fafb; padding: 12px; font-size: 12px; color: #374151; white-space: pre-wrap; }
.ag-cadre-fin { margin-top: 8px; border: 1px solid #f3f4f6; border-radius: 8px; padding: 12px; }
.ag-familles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 1024px) { .ag-familles { grid-template-columns: repeat(4, 1fr); } }
.ag-famille { text-align: left; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; padding: 12px; cursor: pointer; font-family: inherit; }
.ag-famille:hover { border-color: #d1d5db; } .ag-famille.actif { border-color: #4f6bff; background: rgb(238 242 255 / .6); }
.ag-famille-l { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #374151; }
.ag-famille-n { margin-top: 4px; display: flex; align-items: baseline; gap: 8px; }
.ag-gros { font-size: 24px; font-weight: 600; color: #111827; font-variant-numeric: tabular-nums; }
.ag-groupe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; padding: 10px 16px; }
.ag-pile { display: flex; flex-direction: column; gap: 12px; }
.ag-sur-titre { padding: 8px 16px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; border-top: 1px solid #f3f4f6; }
.ag-plus { width: 100%; padding: 8px; font-size: 14px; color: #0028c2; border: 0; background: none; cursor: pointer; }
.ag-plus:hover { text-decoration: underline; }
.dark .ag-onglets, .dark .ag-carte, .dark .ag-cellule, .dark .ag-bloc, .dark .ag-tuile, .dark .ag-famille, .dark .ag-groupe, .dark .ag-btn, .dark .ag-input, .dark .ag-segment { background: #111827; border-color: #1f2937; color: #e5e7eb; }
.dark .ag-titre, .dark .ag-carte-titre, .dark .ag-fort, .dark .ag-constat-titre, .dark .ag-gros { color: #f3f4f6; }
.dark .ag-grille3:not(.cases) { background: #1f2937; border-color: #1f2937; }
.dark .ag-segment.actif { background: #f3f4f6; color: #111827; }
.dark .ag-journal { background: #030712; color: #d1d5db; }

/* ── Agents › Ajouts (AddRequestsView, AiHistory) ── */
.aj-page { max-width: 72rem; display: flex; flex-direction: column; gap: 20px; }
.aj-marque { color: #0035f5; }
.aj-intro { font-size: 14px; color: #6b7280; margin: 4px 0 0; }
.aj-modes { display: flex; gap: 4px; padding: 8px 12px 0; border-bottom: 1px solid #f3f4f6; }
.aj-mode { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 14px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: #6b7280; cursor: pointer; font-family: inherit; }
.aj-mode:hover { color: #1f2937; } .aj-mode.actif { border-bottom-color: #0035f5; color: #0028c2; font-weight: 500; }
.aj-depot { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.aj-texte, .aj-champ { width: 100%; box-sizing: border-box; padding: 8px 12px; font-size: 14px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; color: #1f2937; font-family: inherit; }
.aj-texte { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.aj-fichier { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; border: 1px dashed #d1d5db; cursor: pointer; font-size: 14px; color: #4b5563; }
.aj-fichier:hover { background: #f9fafb; }
.aj-ou { font-size: 12px; color: #9ca3af; text-align: center; }
.aj-select { padding: 6px 8px; font-size: 14px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; color: #374151; max-width: 20rem; font-family: inherit; }
.aj-select.petit { padding: 4px 8px; border-radius: 6px; }
.aj-envoyer { margin-left: auto; padding: 8px 16px; }
.aj-sec-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #f3f4f6; }
.aj-sec-titre { font-size: 14px; font-weight: 500; color: #1f2937; }
.aj-ligne { display: flex; align-items: center; gap: 12px; padding: 8px 16px; font-size: 14px; }
.aj-ligne.haut { align-items: flex-start; padding: 10px 16px; }
.aj-flex { flex: 1; min-width: 0; }
.aj-tronque { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #374151; }
.aj-fort { color: #1f2937; }
.aj-gris { font-size: 12px; color: #9ca3af; flex-shrink: 0; }
.aj-marge { margin-left: 8px; color: #6b7280; }
.aj-sous { font-size: 12px; color: #6b7280; margin: 2px 0 0; }
.aj-avert { font-size: 12px; color: #d97706; max-width: 20rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aj-aucun { padding: 24px 16px; font-size: 14px; color: #6b7280; text-align: center; margin: 0; }
.aj-boutons { display: flex; gap: 4px; flex-shrink: 0; } .aj-boutons.col { flex-direction: column; }
.aj-vert { color: #059669; } .aj-ambre { color: #f59e0b; } .aj-icone-gris { color: #9ca3af; } .aj-rouge { font-size: 12px; font-weight: 500; color: #dc2626; }
.aj-cartes > * + * { border-top: 1px solid #f3f4f6; }
.aj-carte { display: flex; gap: 16px; padding: 12px 16px; }
.aj-carte.choisie { background: rgba(238, 242, 255, .4); }
.aj-coche { margin-top: 4px; flex-shrink: 0; align-self: flex-start; width: 16px; height: 16px; }
.aj-page > div:empty { display: none; }
.aj-photo { width: 80px; height: 80px; object-fit: contain; border-radius: 8px; background: #f9fafb; flex-shrink: 0; }
.aj-photo.vide { display: flex; align-items: center; justify-content: center; font-size: 10px; color: #9ca3af; }
.aj-carte-tx { flex: 1; min-width: 0; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.aj-nom { font-weight: 600; color: #111827; }
.aj-cat { font-size: 12px; padding: 2px 6px; border-radius: 4px; background: #f3f4f6; color: #4b5563; }
.aj-cat.nouvelle { background: #eef2ff; color: #0028c2; }
.aj-desc { color: #4b5563; margin: 0; }
.aj-ports { font-size: 12px; } .aj-ports summary { cursor: pointer; color: #4b5563; }
.aj-ports table { margin-top: 4px; width: 100%; max-width: 36rem; border-collapse: collapse; }
.aj-ports td { padding: 2px 8px 2px 0; color: #6b7280; border-top: 1px solid #f3f4f6; }
.aj-notes { font-size: 12px; color: #b45309; padding-left: 16px; margin: 0; list-style: disc; }
.aj-liens { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; }
.aj-source { display: inline-flex; align-items: center; gap: 4px; color: #6b7280; text-decoration: none; } .aj-source:hover { text-decoration: underline; }
.aj-stats { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f3f4f6; }
.aj-stat { border-radius: 8px; border: 1px solid #f3f4f6; padding: 8px 12px; min-width: 150px; } .aj-stat.echec { border-color: #fee2e2; }
.aj-stat-n { margin-top: 4px; font-size: 14px; color: #1f2937; font-variant-numeric: tabular-nums; }
.aj-ia { font-size: 12px; font-weight: 500; padding: 2px 6px; border-radius: 4px; flex-shrink: 0; }
.aj-ia.claude { background: #fff7ed; color: #c2410c; } .aj-ia.gemini { background: #f0f9ff; color: #0369a1; }
.aj-ia.mistral { background: #fffbeb; color: #b45309; } .aj-ia.groq { background: #f5f3ff; color: #6d28d9; }
.aj-hist { padding: 8px 16px; font-size: 14px; }
.aj-hist-ligne { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.aj-h-date { font-size: 12px; color: #9ca3af; width: 7rem; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.aj-h-qui { font-size: 12px; color: #6b7280; width: 7rem; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aj-h-action { font-size: 12px; font-weight: 500; color: #4b5563; width: 8rem; flex-shrink: 0; }
.aj-h-sujet { flex: 1; min-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #111827; }
.aj-apres { font-size: 11px; color: #d97706; }
.aj-h-duree { font-size: 12px; color: #9ca3af; width: 3.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.aj-h-issue { font-size: 12px; width: 5rem; text-align: right; }
.aj-h-issue.ok { color: #047857; } .aj-h-issue.introuvable { color: #b45309; } .aj-h-issue.echec { color: #dc2626; } .aj-h-issue.info { color: #6b7280; }
.aj-h-detail { margin: 8px 0 0 24px; font-size: 12px; color: #4b5563; display: flex; flex-direction: column; gap: 4px; }
.aj-h-detail p { margin: 0; } .aj-h-detail ol { padding-left: 16px; margin: 0; }
.dark .aj-texte, .dark .aj-champ, .dark .aj-select { background: #030712; border-color: #374151; color: #f3f4f6; }
.dark .aj-modes, .dark .aj-sec-tete, .dark .aj-stats, .dark .aj-cartes > * + *, .dark .aj-ports td { border-color: #1f2937; }
.dark .aj-sec-titre, .dark .aj-fort, .dark .aj-nom, .dark .aj-h-sujet, .dark .aj-stat-n { color: #f3f4f6; }
.dark .aj-tronque, .dark .aj-desc, .dark .aj-h-action, .dark .aj-h-detail { color: #d1d5db; }
.dark .aj-fichier { border-color: #374151; color: #d1d5db; } .dark .aj-fichier:hover { background: #1f2937; }
.dark .aj-photo { background: #030712; } .dark .aj-cat { background: #1f2937; color: #d1d5db; } .dark .aj-stat { border-color: #1f2937; }
.dark .aj-mode.actif { color: #a5b4fc; } .dark .aj-carte.choisie { background: rgba(0, 53, 245, .05); }

/* ── Agents › Prix (PriceListsView) ── */
.px-depot { display: flex; flex-direction: column; gap: 12px; }
.px-depot-grille { display: grid; grid-template-columns: 1fr 10rem 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 767px) { .px-depot-grille { grid-template-columns: 1fr; } }
.px-champ { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #4b5563; min-width: 0; }
.aj-select.large { max-width: none; width: 100%; box-sizing: border-box; }
.px-fichier { display: block; width: 100%; font-size: 14px; }
.px-colonnes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 767px) { .px-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.px-note { font-size: 12px; color: #6b7280; margin: 0; }
.px-depot > .px-note { font-size: 14px; color: #4b5563; }
.px-erreur { font-size: 14px; color: #dc2626; margin: 0; }
.px-fin { display: flex; justify-content: flex-end; }
.px-grilles { display: flex; flex-wrap: wrap; gap: 8px; }
.px-grille { border-radius: 8px; border: 1px solid #e5e7eb; padding: 8px 12px; font-size: 12px; text-decoration: none; transition: border-color .15s; }
.px-grille:hover { border-color: #d1d5db; } .px-grille.actif { border-color: #2f5bff; background: #eef2ff; }
.px-grille-nom { font-weight: 600; color: #1f2937; } .px-grille-etat { color: #6b7280; }
.px-detail { display: flex; flex-direction: column; gap: 24px; }
.px-entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: #4b5563; }
.px-suppr { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; font-size: 12px; color: #9ca3af; cursor: pointer; font-family: inherit; }
.px-suppr:hover { color: #dc2626; } .px-suppr svg { width: 14px; height: 14px; }
.px-section { display: flex; flex-direction: column; gap: 8px; }
.px-section-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.px-h2 { font-size: 14px; font-weight: 600; color: #1f2937; margin: 0; text-transform: none; letter-spacing: normal; }
.px-vide { font-size: 12px; color: #9ca3af; margin: 0; }
.ag-btn.petit, .ag-btn-primaire.petit.px { padding: 4px 10px; font-size: 12px; }
.px-section .ag-btn-primaire.petit, .px-section .ag-btn.petit { padding: 4px 10px; font-size: 12px; }
.px-table-cadre { overflow-x: auto; border-radius: 8px; border: 1px solid #f3f4f6; }
.px-table-cadre.haut { max-height: 32rem; overflow-y: auto; }
.px-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.px-table thead { background: #f9fafb; color: #6b7280; }
.px-table th { text-align: left; padding: 6px 8px; font-weight: 600; }
.px-table td { padding: 4px 8px; color: #374151; border-top: 1px solid #f3f4f6; }
.px-table tbody tr:first-child td { border-top: 0; } .px-table thead + tbody tr:first-child td { border-top: 1px solid #f3f4f6; }
.px-table .droite { text-align: right; } .px-table .nombre { font-variant-numeric: tabular-nums; } .px-table .nowrap { white-space: nowrap; }
.px-table .etroit { width: 0; } .px-table .fort { color: #1f2937; font-weight: 500; } .px-table .gris { color: #4b5563; } .px-table .pale { color: #9ca3af; }
.px-table .rouge { color: #dc2626; } .px-table .vert { color: #059669; } .px-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.px-match { border-radius: 4px; padding: 2px 6px; font-size: 10px; background: #f3f4f6; color: #4b5563; }
.px-match.probable { background: #fef3c7; color: #92400e; }
.px-icone { display: inline-flex; border: 0; background: none; padding: 0; color: #9ca3af; cursor: pointer; }
.px-icone svg { width: 14px; height: 14px; } .px-table .px-icone { color: #9ca3af; } .px-table .px-icone.px-danger:hover { color: #dc2626; } .px-table .px-icone.px-relie:hover { color: #0035f5; }
.px-case { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5563; cursor: pointer; }
.px-recherche { position: relative; }
.px-recherche-ic { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
.px-recherche .px-q { padding-left: 28px; width: 12rem; font-size: 12px; }
.px-relier { width: 14rem; font-size: 12px; }
.px-souligne { color: inherit; text-decoration: underline; }
.px-traitees { font-size: 12px; } .px-traitees summary { cursor: pointer; color: #6b7280; } .px-traitees table { margin-top: 8px; }
.px-lien { border: 0; background: none; padding: 0; color: #0035f5; cursor: pointer; font: inherit; } .px-lien:hover { text-decoration: underline; }
.dark .px-grille { border-color: #1f2937; } .dark .px-grille.actif { background: rgba(0, 53, 245, .1); border-color: #2f5bff; }
.dark .px-grille-nom, .dark .px-h2, .dark .px-table .fort { color: #f3f4f6; }
.dark .px-table-cadre { border-color: #1f2937; } .dark .px-table thead { background: rgba(31, 41, 55, .6); color: #9ca3af; }
.dark .px-table td { color: #e5e7eb; border-color: #1f2937; } .dark .px-table .gris, .dark .px-entete, .dark .px-champ, .dark .px-case { color: #d1d5db; }
.dark .px-match { background: #1f2937; color: #d1d5db; } .dark .px-match.probable { background: rgba(245, 158, 11, .15); color: #fde68a; }

/* ── Avant-vente (AvantVenteBoard, pages avant-vente, new, [id]) ── */
.av-page { max-width: 72rem; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.av-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.av-titre { font-size: 24px; font-weight: 700; color: #111827; margin: 0; text-transform: none; letter-spacing: normal; }
.av-nouveau { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.av-board { display: flex; flex-direction: column; gap: 16px; }
.av-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.av-rech { position: relative; flex: 1; min-width: 220px; max-width: 24rem; }
.av-rech .input { width: 100%; box-sizing: border-box; padding-left: 36px; padding-right: 32px; }
.av-loupe { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
.av-effacer { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 0; color: #9ca3af; cursor: pointer; display: inline-flex; }
.av-effacer:hover { color: #4b5563; }
.av-select { font-size: 12px; font-weight: 500; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; color: #4b5563; padding: 6px 10px; font-family: inherit; }
.av-total { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #6b7280; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 10px; }
.av-pondere { color: #9ca3af; }
.av-bascule { margin-left: auto; display: inline-flex; border-radius: 8px; border: 1px solid #e5e7eb; overflow: hidden; }
.av-vue { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 6px 10px; border: 0; background: #fff; color: #6b7280; cursor: pointer; font-family: inherit; }
.av-vue + .av-vue { border-left: 1px solid #e5e7eb; } .av-vue:hover { background: #f9fafb; } .av-vue.actif { background: #eef2ff; color: #0028c2; }
/* Étapes : point et pastille */
.av-point { width: 6px; height: 6px; border-radius: 9999px; flex-shrink: 0; background: #9ca3af; }
.av-en_cours .av-point, .av-point.av-en_cours { background: #f59e0b; } .av-termine .av-point { background: #10b981; }
.av-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 9999px; background: #f3f4f6; color: #4b5563; border: 0; font-family: inherit; }
.av-badge.av-en_cours { background: #fffbeb; color: #b45309; } .av-badge.av-termine { background: #ecfdf5; color: #047857; }
.av-badge.grand { font-size: 12px; font-weight: 600; padding: 4px 10px; }
.av-picker { cursor: pointer; } .av-picker:disabled { opacity: .6; cursor: wait; }
.av-fleche { opacity: .6; }
.av-menu { position: fixed; z-index: 9999; width: 176px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); overflow: hidden; padding: 4px 0; }
.av-menu-item { width: 100%; display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 6px 12px; text-align: left; border: 0; background: none; color: #4b5563; cursor: pointer; font-family: inherit; }
.av-menu-item:hover { background: #f9fafb; } .av-menu-item.actif { font-weight: 600; color: #111827; background: #f9fafb; }
/* Tableau */
.av-table-carte { overflow: hidden; }
.av-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.av-table th { text-align: left; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; padding: 10px 16px; white-space: nowrap; border-bottom: 1px solid #e5e7eb; }
.av-table td { padding: 10px 16px; border-bottom: 1px solid #f3f4f6; }
.av-table tbody tr:last-child td { border-bottom: 0; } .av-table tbody tr:hover { background: #f9fafb; }
@media (max-width: 639px) { .av-sm { display: none; } }
@media (max-width: 767px) { .av-md { display: none; } }
@media (max-width: 1023px) { .av-lg { display: none; } }
.av-dossier { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.av-carre { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(to bottom right, #6b8afd, #0035f5); flex-shrink: 0; }
.av-min { min-width: 0; }
.av-nom { font-weight: 600; color: #111827; margin: 0; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-dossier:hover .av-nom { color: #0028c2; }
.av-sous { font-size: 11px; color: #9ca3af; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-client { font-size: 12px; color: #4b5563; } .av-tiret { color: #d1d5db; }
.av-montant { font-variant-numeric: tabular-nums; color: #374151; } .av-proba { font-variant-numeric: tabular-nums; color: #6b7280; }
.av-date { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #6b7280; } .av-date.retard { color: #ef4444; }
.av-aucun { padding: 40px 16px !important; text-align: center; font-size: 14px; color: #9ca3af; }
.av-indic { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #9ca3af; }
.av-indic span { display: inline-flex; align-items: center; gap: 2px; } .av-indic .av-ambre { color: #d97706; }
/* Kanban */
.av-kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; transition: opacity .15s; }
@media (max-width: 767px) { .av-kanban { grid-template-columns: 1fr; } }
.av-kanban.attente { opacity: .6; pointer-events: none; }
.av-colonne { border-radius: 12px; border: 1px solid #d1d5db; background: rgba(249,250,251,.6); padding: 10px; min-height: 120px; transition: background .15s, border-color .15s; }
.av-colonne.av-en_cours { border-color: #fcd34d; } .av-colonne.av-termine { border-color: #6ee7b7; }
.av-colonne.survol { border-color: #6b8afd; background: rgba(238,242,255,.5); }
.av-col-tete { display: flex; align-items: center; gap: 8px; padding: 0 4px 10px; }
.av-col-tete .av-point { width: 8px; height: 8px; }
.av-col-titre { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #4b5563; }
.av-col-nb, .av-col-somme { font-size: 11px; color: #9ca3af; font-variant-numeric: tabular-nums; } .av-col-somme { margin-left: auto; }
.av-cartes { display: flex; flex-direction: column; gap: 8px; }
.av-carte { padding: 12px; cursor: grab; transition: box-shadow .15s; } .av-carte:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.av-carte:active { cursor: grabbing; } .av-carte.glisse { opacity: .4; }
.av-carte-lien { display: block; text-decoration: none; }
.av-carte-nom { font-weight: 600; font-size: 14px; color: #111827; margin: 0; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-carte-client { font-size: 11px; color: #6b7280; margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-carte-ligne { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.av-carte-montant { font-size: 12px; font-weight: 500; color: #374151; font-variant-numeric: tabular-nums; }
.av-carte-proba { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.av-carte-date { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; margin: 6px 0 0; color: #9ca3af; } .av-carte-date.retard { color: #ef4444; }
.av-carte-ind { margin-top: 6px; }
.av-deposer { font-size: 11px; color: #9ca3af; text-align: center; padding: 16px 0; margin: 0; }
/* Formulaires */
.av-form-page { max-width: 42rem; margin: 0 auto; }
.av-retour { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #6b7280; text-decoration: none; margin-bottom: 24px; }
.av-retour:hover { color: #374151; }
.av-form-carte { padding: 32px; }
.av-form-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.av-form-picto { width: 40px; height: 40px; border-radius: 12px; background: #eef2ff; color: #0035f5; display: flex; align-items: center; justify-content: center; }
.av-form-titre { font-size: 20px; font-weight: 700; color: #111827; margin: 0; text-transform: none; letter-spacing: normal; }
.av-form { display: flex; flex-direction: column; gap: 20px; }
.av-form .input, .av-c-form .input { width: 100%; box-sizing: border-box; }
.av-label { display: block; font-size: 14px; font-weight: 500; color: #374151; margin-bottom: 6px; } .av-label.sans-marge { margin: 0; }
.av-requis { color: #ef4444; } .av-optionnel { color: #9ca3af; font-weight: 400; margin-left: 4px; }
.av-majuscules { text-transform: uppercase; } .av-majuscules::placeholder { text-transform: none; }
.av-sans-redim { resize: none; }
.av-bloc-client { border-radius: 12px; border: 1px solid #e5e7eb; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.av-ligne-entre { display: flex; align-items: center; justify-content: space-between; }
.av-lien-bleu { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #0035f5; border: 0; background: none; padding: 0; cursor: pointer; font-family: inherit; }
.av-lien-bleu:hover { text-decoration: underline; } .av-lien-bleu:disabled { opacity: .5; }
.av-grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .av-grille2 .av-plein { grid-column: span 2; }
.av-bloc-client .av-grille2 { gap: 12px; }
.av-grille3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.av-grille2.serre, .av-grille3.serre { gap: 8px; }
.av-relatif { position: relative; } .av-pct { padding-right: 28px !important; }
.av-suffixe { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; color: #9ca3af; }
.av-erreur { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 14px; border-radius: 8px; padding: 12px 16px; }
.av-pied { display: flex; gap: 12px; padding-top: 8px; } .av-pied.serre { gap: 8px; padding-top: 4px; }
.av-btn { display: inline-flex; align-items: center; gap: 8px; } .av-btn.petit, .btn-secondary.petit { font-size: 14px; }
/* Dossier */
.av-dossier-page { max-width: 72rem; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.av-dossier-page .av-retour { margin-bottom: -8px; }
.av-c textarea.input, .av-c .input, .av-form textarea.input { font-family: inherit; }
.av-c textarea.input, .av-form textarea.input { padding: 8px 12px; box-sizing: border-box; }
.av-saisie .input.av-flex { flex: 1 1 auto; width: auto; min-width: 0; }
.av-saisie .input.av-echeance { flex: 0 0 9rem; width: 9rem; }
.av-d-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.av-d-ligne { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .av-d-ligne.petit { gap: 8px; flex-wrap: nowrap; }
.av-d-titre { font-size: 24px; font-weight: 700; color: #111827; margin: 0; text-transform: uppercase; letter-spacing: normal; }
.av-d-desc { color: #6b7280; margin: 4px 0 0; }
.av-d-meta { display: flex; align-items: center; gap: 16px; margin-top: 8px; font-size: 14px; color: #9ca3af; flex-wrap: wrap; }
.av-d-meta span { display: inline-flex; align-items: center; gap: 6px; }
.av-d-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.av-suppr { padding: 8px; border-radius: 8px; border: 0; background: none; color: #9ca3af; cursor: pointer; display: inline-flex; }
.av-suppr:hover { color: #dc2626; background: #fef2f2; } .av-suppr:disabled { opacity: .6; }
.av-err-petit { font-size: 12px; color: #ef4444; margin: 0; } .av-err-petit:empty { display: none; } .av-err-petit.marge { margin-bottom: 12px; }
.av-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.av-kpi { padding: 16px; } .av-kpi-l { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6b7280; }
.av-kpi-v { font-size: 20px; font-weight: 700; color: #111827; margin: 6px 0 0; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-d-grille { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .av-d-grille { grid-template-columns: 2fr 1fr; } }
.av-d-principale, .av-d-laterale { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.av-c { padding: 20px; }
.av-c-form { display: flex; flex-direction: column; gap: 12px; }
.av-c-tete { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; } .av-c-form .av-c-tete { margin-bottom: 4px; }
.av-c-picto { color: #9ca3af; flex-shrink: 0; }
.av-c-titre { font-size: 14px; font-weight: 600; color: #111827; margin: 0; text-transform: none; letter-spacing: normal; }
.av-c-nb { font-size: 11px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.av-c-afaire { font-size: 11px; font-weight: 500; color: #d97706; font-variant-numeric: tabular-nums; }
.av-droite { margin-left: auto; }
.av-fermer { margin-left: auto; border: 0; background: none; padding: 0; color: #9ca3af; cursor: pointer; display: inline-flex; } .av-fermer:hover { color: #4b5563; }
.av-vide { font-size: 12px; color: #9ca3af; padding: 8px 0; margin: 0; }
.av-c-client { display: flex; flex-direction: column; gap: 8px; }
.av-c-nom { font-weight: 600; color: #111827; margin: 0; } .av-c-txt { font-size: 14px; color: #4b5563; margin: 0; }
.av-c-lien { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #4b5563; text-decoration: none; margin: 0; }
.av-c-lien.haut { align-items: flex-start; } a.av-c-lien:hover { color: #0035f5; }
.av-c-site { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f3f4f6; }
.av-c-sur { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; margin: 0 0 4px; }
.av-saisie { display: flex; gap: 8px; margin-bottom: 16px; } .av-flex { flex: 1; min-width: 0; } .av-bas { align-self: flex-end; }
.av-btn.carre { padding: 8px 10px; } .input.petit { font-size: 14px; } .av-echeance { width: 9rem; }
.av-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.av-note { display: flex; gap: 12px; }
.av-note-initiale { width: 28px; height: 28px; border-radius: 9999px; background: #e0e7ff; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #0035f5; flex-shrink: 0; }
.av-note-auteur { font-size: 12px; font-weight: 500; color: #374151; } .av-note-date { font-size: 10px; color: #9ca3af; }
.av-note-corps { font-size: 14px; color: #4b5563; white-space: pre-wrap; margin: 2px 0 0; }
.av-survol-suppr { margin-left: auto; opacity: 0; border: 0; background: none; padding: 0; color: #d1d5db; cursor: pointer; display: inline-flex; transition: opacity .15s, color .15s; flex-shrink: 0; }
.av-note:hover .av-survol-suppr, .av-piece:hover .av-survol-suppr, .av-tache:hover .av-survol-suppr { opacity: 1; } .av-survol-suppr:hover { color: #ef4444; }
.av-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 639px) { .av-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.av-photo { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid #f3f4f6; background: #f9fafb; }
.av-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-photo-suppr { position: absolute; top: 4px; right: 4px; padding: 4px; border-radius: 6px; background: rgba(0,0,0,.5); color: #fff; border: 0; cursor: pointer; opacity: 0; transition: opacity .15s; display: inline-flex; }
.av-photo:hover .av-photo-suppr { opacity: 1; } .av-photo-suppr:hover { background: #dc2626; }
.av-pieces, .av-taches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.av-piece { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; } .av-piece:hover { background: #f9fafb; }
.av-piece-lien { font-size: 14px; color: #374151; text-decoration: none; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.av-piece-lien:hover { color: #0035f5; } .av-survol { opacity: 0; } .av-piece:hover .av-survol { opacity: .6; }
.av-tache { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.av-coche { width: 16px; height: 16px; border-radius: 4px; border: 1px solid #d1d5db; background: #fff; display: grid; place-items: center; flex-shrink: 0; padding: 0; cursor: pointer; color: #fff; }
.av-coche:hover:not(:disabled) { border-color: #6b8afd; } .av-coche.fait { background: #0035f5; border-color: #0035f5; } .av-coche:disabled { cursor: default; }
.av-tache-titre { font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #374151; }
.av-tache-titre.fait { text-decoration: line-through; color: #9ca3af; }
.av-tache-date { font-size: 11px; color: #9ca3af; font-variant-numeric: tabular-nums; flex-shrink: 0; } .av-tache-date.retard { color: #ef4444; font-weight: 500; }
/* Sombre */
.dark .av-titre, .dark .av-nom, .dark .av-carte-nom, .dark .av-form-titre, .dark .av-d-titre, .dark .av-kpi-v, .dark .av-c-titre, .dark .av-c-nom { color: #f3f4f6; }
.dark .av-select, .dark .av-vue, .dark .av-menu, .dark .av-coche { background: #111827; border-color: #374151; color: #d1d5db; }
.dark .av-total { background: #1f2937; border-color: #374151; color: #9ca3af; }
.dark .av-table th, .dark .av-table td, .dark .av-c-site, .dark .av-bloc-client, .dark .av-photo { border-color: #1f2937; }
.dark .av-table tbody tr:hover, .dark .av-piece:hover, .dark .av-menu-item:hover { background: rgba(31,41,55,.5); }
.dark .av-colonne { background: rgba(17,24,39,.4); border-color: #374151; } .dark .av-badge { background: #1f2937; color: #d1d5db; }
.dark .av-badge.av-en_cours { background: rgba(245,158,11,.15); color: #fcd34d; } .dark .av-badge.av-termine { background: rgba(16,185,129,.15); color: #6ee7b7; }
.dark .av-label, .dark .av-montant, .dark .av-carte-montant, .dark .av-note-auteur, .dark .av-tache-titre, .dark .av-piece-lien { color: #e5e7eb; }
.dark .av-c-txt, .dark .av-c-lien, .dark .av-note-corps, .dark .av-client { color: #d1d5db; }
.dark .av-form-picto { background: rgba(0,53,245,.2); color: #a5b4fc; } .dark .av-note-initiale { background: rgba(0,53,245,.25); color: #a5b4fc; }

/* ── Module d'étiquetage (modules/etiquettes/src/ui : LabelsApp, PrintView, TemplatesView, LogosView,
   DevicesView, ProjectPicker) — préfixe et- ; fiche mobile (ItemSheet) — préfixe fe- ── */
body.page-etiquettes .as-main { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.et-racine { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.et-app { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.et-onglets { display: flex; align-items: center; gap: 4px; padding: 12px 24px 0; border-bottom: 1px solid #e5e7eb; background: #fff; flex-shrink: 0; }
.et-marque { display: flex; align-items: center; gap: 8px; margin-right: 16px; padding-bottom: 8px; }
.et-marque-picto { width: 28px; height: 28px; border-radius: 6px; background: #111827; color: #fff; display: flex; align-items: center; justify-content: center; }
.et-marque-nom { font-size: 14px; font-weight: 600; color: #111827; }
.et-maquette { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; color: #b45309; background: #fef3c7; border-radius: 4px; padding: 2px 6px; }
.et-onglet { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font: 500 14px var(--police); border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: #6b7280; cursor: pointer; }
.et-onglet:hover { color: #1f2937; }
.et-onglet.actif { border-bottom-color: #111827; color: #111827; }
.et-corps { flex: 1; min-height: 0; overflow: auto; background: #f9fafb; }

.et-carte { border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; }
.et-gris { color: #9ca3af; }
.et-discret { color: #6b7280; font-size: 14px; margin: 0; }
.et-petit { font-size: 12px; line-height: 1.6; color: #6b7280; margin: 0; }
.et-gras { font-weight: 600; color: #111827; }
.et-mono { font-family: var(--mono); }
.et-rouge { color: #dc2626; font-size: 14px; margin: 0; }
.et-ambre { color: #b45309; }
.et-vert { color: #059669; }
.et-num { font-variant-numeric: tabular-nums; }
.et-nowrap { white-space: nowrap; }
.et-flex1 { flex: 1; }
.et-min0 { min-width: 0; }
.et-relatif { position: relative; }
.et-label { display: block; font-size: 12px; font-weight: 500; color: #6b7280; }
.et-texte { font-size: 14px; color: #374151; }
.et-champ { display: block; }
.et-champ > .et-select, .et-champ > .et-input, .et-champ > .et-picker { margin-top: 4px; }
.et-input, .et-select { width: 100%; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; padding: 8px 12px; font: 14px var(--police); color: #111827; }
.et-input-court { width: 96px; }
.et-select-petit { padding: 6px 12px; }
.et-select-schema { width: 176px; padding: 8px; color: #374151; }
.et-avec-loupe { padding-left: 32px; }
.et-loupe { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.et-bouton, .et-bouton-noir { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; padding: 6px 12px; font: 14px var(--police); cursor: pointer; }
.et-bouton { border: 1px solid #d1d5db; background: #fff; color: #374151; }
.et-bouton:hover:not(:disabled) { background: #f9fafb; }
.et-bouton-noir { border: 0; background: #111827; color: #fff; font-weight: 500; }
.et-bouton-noir:hover:not(:disabled) { background: #1f2937; }
.et-bouton:disabled, .et-bouton-noir:disabled { opacity: .4; cursor: default; }
.et-actions { display: flex; gap: 8px; }
.et-apercu { display: inline-block; line-height: 0; }
.et-ombre { border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 0 0 1px #e5e7eb; }
.et-ombre-fine { border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 0 0 1px #e5e7eb; }
.et-ombre-forte { border-radius: 6px; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1), 0 0 0 1px rgba(0,0,0,.05); }
.et-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 8px; border-radius: 8px; background: #111827; color: #fff; font-size: 14px; padding: 12px 16px; box-shadow: 0 20px 25px -5px rgba(0,0,0,.2); }

/* Impression */
.et-impression { padding: 24px; display: grid; gap: 24px; }
@media (min-width: 1024px) { .et-impression { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.et-selection { display: flex; flex-direction: column; min-height: 0; }
.et-selection-haut { padding: 16px; border-bottom: 1px solid #f3f4f6; display: flex; flex-direction: column; gap: 12px; }
.et-types, .et-filtres { display: flex; gap: 8px; }
.et-type { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 8px 12px; font: 500 14px var(--police); border: 1px solid #e5e7eb; background: #fff; color: #4b5563; cursor: pointer; }
.et-type:hover { background: #f9fafb; }
.et-type.actif { background: #111827; color: #fff; border-color: #111827; }
.et-type-n { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
.et-barre { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; font-size: 12px; color: #6b7280; border-bottom: 1px solid #f3f4f6; }
.et-tout { display: flex; align-items: center; gap: 6px; border: 0; background: none; font: 12px var(--police); color: #6b7280; cursor: pointer; padding: 0; }
.et-tout:hover { color: #111827; }
.et-liste { list-style: none; margin: 0; padding: 0; flex: 1; overflow: auto; max-height: calc(100vh - 22rem); }
.et-liste > li + li { border-top: 1px solid #f3f4f6; }
.et-liste-info { padding: 24px; font-size: 14px; color: #6b7280; }
.et-liste-info.et-rouge { color: #dc2626; }
.et-ligne { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; }
.et-ligne:hover { background: #f9fafb; }
.et-ligne input { width: 16px; height: 16px; accent-color: #111827; margin: 0; flex-shrink: 0; }
.et-ligne-couleur { width: 6px; align-self: stretch; border-radius: 999px; flex-shrink: 0; }
.et-ligne-texte { min-width: 0; flex: 1; }
.et-ligne-1 { display: flex; align-items: baseline; gap: 8px; }
.et-ligne-ref { font-family: var(--mono); font-size: 14px; font-weight: 600; color: #111827; white-space: nowrap; }
.et-ligne-sous, .et-ligne-2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #6b7280; }
.et-ligne-2 { display: block; }
.et-ligne-code { font-size: 10px; font-family: var(--mono); color: #9ca3af; }
.et-sortie { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.et-reglages { padding: 16px; display: grid; gap: 12px; }
@media (min-width: 640px) { .et-reglages { grid-template-columns: 1fr 1fr; } .et-reglages > .et-support, .et-reglages > .et-alerte-logo { grid-column: span 2; } }
.et-support { display: flex; flex-direction: column; gap: 2px; border-radius: 8px; background: #f9fafb; border: 1px solid #f3f4f6; padding: 12px; font-size: 12px; line-height: 1.6; color: #4b5563; }
.et-alerte-logo { display: flex; align-items: center; gap: 12px; border-radius: 8px; border: 1px solid #fde68a; background: #fffbeb; padding: 10px 12px; color: #b45309; }
.et-alerte-logo p { flex: 1; margin: 0; font-size: 12px; color: #78350f; }
.et-bouton-ambre { flex-shrink: 0; border: 0; border-radius: 6px; background: #d97706; padding: 4px 10px; font: 500 12px var(--police); color: #fff; cursor: pointer; }
.et-bouton-ambre:hover { background: #b45309; }
.et-lot-tete { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f3f4f6; }
.et-lot-resume { font-size: 14px; }
.et-lot-resume .et-gras { font-variant-numeric: tabular-nums; }
.et-lot-resume .et-discret { font-size: 14px; }
.et-lot-zone { padding: 16px; overflow: auto; }
.et-vide { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 0; font-size: 14px; color: #6b7280; }
.et-planches { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.et-planche { position: relative; background: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 0 0 1px #e5e7eb; }
.et-case { position: absolute; border-radius: 3px; overflow: hidden; border: 1px dashed #e5e7eb; background: #f9fafb; }
.et-case.pleine { border: 0; background: none; box-shadow: 0 0 0 1px #e5e7eb; }
.et-pagination { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #4b5563; }
.et-page { padding: 4px 8px; border-radius: 4px; border: 1px solid #d1d5db; background: #fff; cursor: pointer; font: 14px var(--police); }
.et-rubans { display: flex; flex-wrap: wrap; gap: 12px; }
.et-rubans .et-petit { align-self: center; }
.et-note-qr { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #6b7280; margin: 0; }
.et-note-qr svg { flex-shrink: 0; }

/* Sélecteur de projet */
.et-picker { position: relative; }
.et-bloc .et-picker { margin-top: 4px; }
.et-picker-bouton { width: 100%; display: flex; align-items: center; gap: 12px; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; padding: 8px 12px; text-align: left; cursor: pointer; font: 14px var(--police); }
.et-picker-bouton:hover { border-color: #9ca3af; }
.et-picker-bouton svg { flex-shrink: 0; }
.et-picker-valeur { min-width: 0; flex: 1; display: block; }
.et-picker-nom { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; color: #111827; }
.et-picker-ligne .et-picker-nom { font-weight: 400; }
.et-picker-ligne .et-picker-nom.courant { font-weight: 600; }
.et-picker-meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #6b7280; }
.et-picker-vide { flex: 1; font-size: 14px; color: #6b7280; }
.et-picker-pop { position: absolute; z-index: 30; left: 0; right: 0; margin-top: 4px; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); overflow: hidden; }
.et-picker-recherche { padding: 8px; border-bottom: 1px solid #f3f4f6; display: flex; flex-direction: column; gap: 8px; }
.et-picker-input { width: 100%; border-radius: 8px; background: #f9fafb; border: 1px solid transparent; padding: 8px 32px; font: 14px var(--police); color: #111827; outline: none; }
.et-picker-input:focus { border-color: #d1d5db; }
.et-picker-loupe { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.et-picker-spin { position: absolute; right: 10px; top: 50%; margin-top: -8px; color: #9ca3af; }
.et-puces { display: flex; align-items: center; gap: 4px; }
.et-puce { border-radius: 999px; padding: 2px 10px; font: 12px var(--police); border: 1px solid #e5e7eb; background: none; color: #6b7280; cursor: pointer; }
.et-puce.on { background: #111827; color: #fff; border-color: #111827; }
.et-picker-liste { max-height: 22rem; overflow: auto; padding: 4px 0; }
.et-picker-titre { display: flex; align-items: center; gap: 6px; padding: 8px 12px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; }
.et-picker-ligne { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 12px; text-align: left; border: 0; background: none; cursor: pointer; font: 14px var(--police); }
.et-picker-ligne.actif { background: #f3f4f6; }
.et-picker-aucun { padding: 24px 16px; text-align: center; font-size: 14px; color: #6b7280; margin: 0; }
.et-picker-pied { padding: 8px 12px; border-top: 1px solid #f3f4f6; font-size: 12px; color: #6b7280; }
.et-etat { flex-shrink: 0; border-radius: 4px; padding: 2px 6px; font-size: 10px; font-weight: 500; }
.et-etat-delivered { background: #f0f9ff; color: #0369a1; }
.et-etat-closed { background: #f3f4f6; color: #6b7280; }
.et-mark { background: #fef3c7; color: inherit; border-radius: 2px; }

/* Modèles */
.et-modeles { padding: 24px; display: grid; gap: 24px; }
@media (min-width: 1024px) { .et-modeles { grid-template-columns: 260px minmax(0, 1fr) 300px; } }
.et-modeles-liste { display: flex; flex-direction: column; gap: 16px; }
.et-h3 { display: flex; align-items: center; gap: 8px; padding: 0 4px; margin: 0 0 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
.et-pile { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.et-modele { width: 100%; text-align: left; border-radius: 8px; padding: 8px 12px; font: 14px var(--police); border: 1px solid transparent; background: rgba(255,255,255,.6); cursor: pointer; }
.et-modele:hover { border-color: #e5e7eb; }
.et-modele.actif { background: #fff; border-color: #111827; }
.et-modele-nom { display: flex; align-items: center; gap: 8px; font-weight: 500; color: #111827; }
.et-modele-sous { display: block; font-size: 12px; color: #6b7280; }
.et-defaut { font-size: 10px; font-weight: 600; text-transform: uppercase; color: #047857; background: #d1fae5; border-radius: 4px; padding: 0 4px; }
.et-modele-apercu { display: flex; flex-direction: column; }
.et-modele-tete { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f3f4f6; }
.et-h2 { margin: 0; font-size: 14px; font-weight: 600; color: #111827; text-transform: none; letter-spacing: 0; }
.et-segment { display: flex; border-radius: 8px; border: 1px solid #e5e7eb; overflow: hidden; }
.et-seg { padding: 6px 12px; border: 0; background: none; font: 12px var(--police); color: #4b5563; cursor: pointer; }
.et-seg.actif { background: #111827; color: #fff; }
.et-scene { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; background-image: radial-gradient(circle, #e5e7eb 1px, transparent 1px); background-size: 16px 16px; }
.et-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #f3f4f6; text-align: center; }
.et-stat { padding: 12px; min-width: 0; }
.et-stat + .et-stat { border-left: 1px solid #f3f4f6; }
.et-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; }
.et-stat-valeur { font-size: 14px; font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.et-stat-valeur.mono { font-family: var(--mono); font-size: 12px; }
.et-stat-hint { font-size: 12px; color: #6b7280; }
.et-stat-hint.warn { color: #d97706; }
.et-modele-reglages { padding: 16px; display: flex; flex-direction: column; gap: 20px; height: fit-content; }
.et-fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.et-fieldset legend { margin-bottom: 8px; padding: 0; }
.et-bascule { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: #374151; }
.et-switch { position: relative; width: 36px; height: 20px; border-radius: 999px; border: 0; background: #d1d5db; flex-shrink: 0; cursor: pointer; padding: 0; transition: background .15s; }
.et-switch.on { background: #111827; }
.et-switch-rond { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.et-switch.on .et-switch-rond { left: 18px; }
.et-modele-pied { display: flex; gap: 8px; padding-top: 8px; border-top: 1px solid #f3f4f6; }

/* Logos */
.et-logos { padding: 24px; max-width: 64rem; display: flex; flex-direction: column; gap: 24px; }
.et-logos-projet { max-width: 36rem; }
.et-logos-grille { display: grid; gap: 16px; }
@media (min-width: 768px) { .et-logos-grille { grid-template-columns: 1fr 1fr; } }
.et-logo-carte { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.et-logo-tete { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #111827; }
.et-logo-nom { margin-left: auto; font-size: 12px; font-weight: 400; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.et-logo-boite { height: 112px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; display: flex; align-items: center; justify-content: center; padding: 12px; font-size: 14px; }
.et-logo-boite img { max-height: 100%; max-width: 100%; object-fit: contain; }
.et-logo-sans { border-radius: 8px; background: #f9fafb; border: 1px dashed #e5e7eb; padding: 16px; font-size: 14px; color: #6b7280; }
.et-depot { border-radius: 8px; }
.et-depot.survol { box-shadow: 0 0 0 2px #111827; }
.et-ajout-logo { width: 100%; height: 112px; border-radius: 8px; border: 2px dashed #fcd34d; background: rgba(255,251,235,.6); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: 14px var(--police); color: #92400e; cursor: pointer; }
.et-ajout-sous { font-size: 12px; opacity: .7; }
.et-lien-note { display: flex; align-items: flex-start; gap: 6px; }
.et-lien-note svg { flex-shrink: 0; margin-top: 2px; }
.et-logo-rendu { padding: 16px; }
.et-h3-noir { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: #111827; text-transform: none; letter-spacing: 0; }
.et-logo-rendu .et-lien-note { margin-bottom: 16px; }
.et-logo-scene { display: flex; justify-content: center; padding: 16px 0; background: #f9fafb; border-radius: 8px; }

/* Imprimantes & supports */
.et-materiel { padding: 24px; max-width: 72rem; display: flex; flex-direction: column; gap: 32px; }
.et-mat-tete { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.et-h2-grand { margin: 0; font-size: 16px; font-weight: 600; color: #111827; text-transform: none; letter-spacing: 0; }
.et-marge-bas { margin-bottom: 12px; }
.et-catalogue { margin-bottom: 16px; border-radius: 12px; border: 1px dashed #d1d5db; background: #fff; padding: 12px; display: grid; gap: 8px; }
@media (min-width: 640px) { .et-catalogue { grid-template-columns: repeat(3, 1fr); } }
.et-catalogue-item { text-align: left; border-radius: 8px; padding: 8px 12px; border: 0; background: none; cursor: pointer; font: 14px var(--police); }
.et-catalogue-item:hover { background: #f9fafb; }
.et-imprimantes { display: grid; gap: 16px; }
@media (min-width: 768px) { .et-imprimantes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .et-imprimantes { grid-template-columns: repeat(3, 1fr); } }
.et-imprimante { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.et-imprimante.inactive { opacity: .6; }
.et-imp-tete { display: flex; align-items: flex-start; gap: 12px; }
.et-imp-picto { width: 40px; height: 40px; border-radius: 8px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #374151; }
.et-imp-nom { width: 100%; border: 0; background: transparent; font: 600 14px var(--police); color: #111827; padding: 0; outline: none; }
.et-imp-active { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6b7280; }
.et-imp-active input { accent-color: #111827; margin: 0; }
.et-liaisons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.et-liaison { display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; padding: 4px 8px; font: 12px var(--police); border: 1px solid #e5e7eb; background: none; color: #4b5563; cursor: pointer; }
.et-liaison.actif { background: #111827; color: #fff; border-color: #111827; }
.et-imp-ip { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.et-input-mono { flex: 1; border-radius: 6px; border: 1px solid #d1d5db; background: #fff; padding: 4px 8px; font: 12px var(--mono); color: #111827; }
.et-calage { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4b5563; }
.et-input-mini { width: 64px; border-radius: 4px; border: 1px solid #d1d5db; background: #fff; padding: 2px 6px; font: 12px var(--police); }
.et-imp-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.et-tag { font-size: 11px; border-radius: 4px; background: #f3f4f6; color: #4b5563; padding: 2px 6px; }
.et-retirer { margin-left: auto; border: 0; background: none; color: #9ca3af; cursor: pointer; padding: 0; display: flex; }
.et-retirer:hover { color: #dc2626; }
.et-table-boite { overflow-x: auto; }
.et-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.et-table thead { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; background: #f9fafb; }
.et-table th { padding: 8px 16px; font-weight: 500; }
.et-table td { padding: 12px 16px; vertical-align: top; color: #374151; }
.et-table tbody tr + tr td { border-top: 1px solid #f3f4f6; }
.et-ref-support { display: flex; align-items: center; gap: 6px; font-weight: 600; color: #111827; }
.et-etoile { color: #fbbf24; fill: #fbbf24; }
.et-usage { max-width: 28rem; color: #4b5563; }

/* Fiche mobile */
body.page-fiche-e { background: #f3f4f6; }
.fe-page { min-height: 100vh; background: #f3f4f6; color: #111827; }
.fe-colonne { margin: 0 auto; max-width: 36rem; padding-bottom: 64px; }
.fe-tete { position: relative; overflow: hidden; background: #0f172a; color: #fff; padding: 20px 20px 24px; }
.fe-tete-accent { position: absolute; left: 0; right: 0; top: 0; height: 6px; }
.fe-logo-client { display: block; height: 32px; max-width: 45%; object-fit: contain; border-radius: 6px; background: #fff; padding: 4px 8px; margin-bottom: 16px; }
.fe-tete-sur { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #94a3b8; }
.fe-genre { display: inline-flex; align-items: center; gap: 6px; }
.fe-tete-ligne { margin-top: 12px; display: flex; align-items: flex-end; gap: 16px; }
.fe-ref { margin: 0; font-family: var(--mono); font-size: 36px; font-weight: 700; letter-spacing: -.025em; word-break: break-all; line-height: 1.1; }
.fe-ref-long { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.25; overflow-wrap: break-word; }
.fe-titre { margin: 4px 0 0; font-size: 16px; color: #e2e8f0; }
.fe-photo { width: 96px; height: 96px; border-radius: 12px; background: #fff; object-fit: contain; padding: 6px; flex-shrink: 0; }
.fe-projet { margin: 16px 0 0; font-size: 12px; color: #94a3b8; }
.fe-rapides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px; margin-top: -12px; position: relative; }
.fe-quick { display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 0 0 1px rgba(0,0,0,.05); padding: 12px 0; color: #374151; text-decoration: none; }
.fe-quick-label { font-size: 12px; font-weight: 500; color: #374151; }
.fe-section { margin: 16px 16px 0; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 0 0 1px rgba(0,0,0,.05); padding: 16px; scroll-margin-top: 16px; }
.fe-section-titre { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; font-weight: 600; color: #111827; text-transform: none; letter-spacing: 0; }
.fe-gris { color: #9ca3af; }
.fe-xs { font-size: 12px; }
.fe-petit { font-size: 14px; color: #6b7280; margin: 0; }
.fe-mono { font-family: var(--mono); }
.fe-gras { font-weight: 600; }
.fe-moyen { font-weight: 500; }
.fe-min0 { min-width: 0; }
.fe-flex1 { flex: 1; }
.fe-vert { color: #059669; }
.fe-marge-haut { margin: 12px 0 0; }
.fe-parcours { position: relative; }
.fe-parcours-trait { position: absolute; left: 15px; top: 32px; bottom: 32px; width: 4px; border-radius: 999px; }
.fe-bout { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.fe-bout-lien { display: block; border-radius: 8px; color: inherit; text-decoration: none; }
.fe-bout-lien:active { background: #f9fafb; }
.fe-bout-lettre { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: #0f172a; color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fe-port { font-size: 14px; color: #6b7280; font-weight: 400; }
.fe-bout-nom { font-size: 14px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fe-bout-lieu { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12px; color: #6b7280; }
.fe-chevron { color: #d1d5db; flex-shrink: 0; }
.fe-champs { margin: -4px 0; }
.fe-champ { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.fe-champ + .fe-champ { border-top: 1px solid #f3f4f6; }
.fe-champ-label { width: 128px; flex-shrink: 0; font-size: 14px; color: #6b7280; }
.fe-champ-valeur { flex: 1; min-width: 0; margin: 0; word-break: break-all; font-size: 14px; }
.fe-copier { padding: 8px; margin: -8px; border: 0; background: none; color: #9ca3af; cursor: pointer; display: flex; }
.fe-copier:active { color: #111827; }
.fe-docs { display: flex; flex-direction: column; gap: 16px; }
.fe-docs-titre { margin: 0 0 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; }
.fe-docs-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fe-doc { display: flex; align-items: center; gap: 12px; border-radius: 12px; border: 1px solid #e5e7eb; padding: 12px; color: #111827; text-decoration: none; }
.fe-doc:active { background: #f9fafb; }
.fe-doc-picto { width: 36px; height: 36px; border-radius: 8px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #4b5563; }
.fe-doc-nom { min-width: 0; flex: 1; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fe-cables { list-style: none; margin: -4px 0; padding: 0; }
.fe-cables > li + li { border-top: 1px solid #f3f4f6; }
.fe-cables-suite { margin: 0; border-top: 1px solid #f3f4f6; }
.fe-cable { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: #111827; text-decoration: none; }
.fe-cable:active { background: #f9fafb; }
.fe-cable-couleur { width: 6px; align-self: stretch; border-radius: 999px; }
.fe-cable-1 { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.fe-cable-2 { font-size: 14px; color: #4b5563; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fe-plus-resume { margin-top: 8px; cursor: pointer; list-style: none; text-align: center; font-size: 14px; font-weight: 500; color: #4b5563; padding: 8px 0; border-radius: 8px; background: #f9fafb; }
.fe-plus-resume::-webkit-details-marker { display: none; }
.fe-plus[open] .fe-plus-resume { display: none; }
.fe-interventions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fe-intervention { display: flex; flex-direction: column; align-items: center; gap: 6px; border-radius: 12px; border: 1px solid #e5e7eb; background: none; padding: 12px 0; font: 14px var(--police); color: #6b7280; }
.fe-pied { padding: 24px 20px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fe-pied p { margin: 0; }
.fe-installation { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-bottom: 8px; }
.fe-installation-titre { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; }
.fe-logo-societe { height: 36px; max-width: 60%; object-fit: contain; }
.fe-petit-noir { font-size: 14px; }
.fe-ouvrir { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: #374151; text-decoration: none; }
.fe-inconnue { min-height: 100vh; background: #f9fafb; display: flex; align-items: center; justify-content: center; padding: 24px; }
.fe-inconnue-boite { text-align: center; max-width: 20rem; }
.fe-inconnue-picto { color: #d1d5db; }
.fe-inconnue-titre { margin-top: 12px; font-size: 18px; font-weight: 600; color: #111827; }
.fe-inconnue-boite .fe-petit { margin-top: 4px; }

/* ── Module de patch DMX (modules/dmx/src/ui : DmxApp, PatchView, ConsoleView, MaExportDialog) — préfixe dx- ── */
body.page-dmx .as-main { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.dx-racine { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dx-app { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.dx-tete { display: flex; align-items: center; gap: 16px; padding: 12px 24px; border-bottom: 1px solid #e5e7eb; background: #fff; flex-shrink: 0; }
.dx-marque { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.dx-marque-picto { width: 28px; height: 28px; border-radius: 6px; background: #0d9488; color: #fff; display: flex; align-items: center; justify-content: center; }
.dx-marque-nom { font-size: 14px; font-weight: 600; color: #111827; }
.dx-marque-sous { font-size: 12px; color: #9ca3af; }
.dx-picker { width: 100%; max-width: 28rem; }
.dx-corps { flex: 1; min-height: 0; background: #f9fafb; display: flex; flex-direction: column; }
.dx-charge { display: flex; align-items: center; justify-content: center; gap: 8px; height: 160px; font-size: 14px; color: #6b7280; }
.dx-erreur { border-radius: 8px; border: 1px solid #fecaca; background: #fef2f2; padding: 8px 12px; font-size: 14px; color: #b91c1c; }
.dx-marge { margin: 12px 24px 0; }
.dx-vide { padding: 40px; text-align: center; font-size: 14px; color: #6b7280; margin: 0; }
.dx-vue { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.dx-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 24px; border-bottom: 1px solid #e5e7eb; background: #fff; }
.dx-segment { display: inline-flex; border-radius: 8px; border: 1px solid #e5e7eb; padding: 2px; margin-right: 8px; }
.dx-seg { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; padding: 4px 10px; font: 500 12px var(--police); border: 0; background: none; color: #4b5563; cursor: pointer; }
.dx-seg:hover { background: #f3f4f6; }
.dx-seg.actif { background: #111827; color: #fff; }
.dx-stat { font-size: 14px; color: #6b7280; }
.dx-stat b { color: #111827; font-variant-numeric: tabular-nums; }
.dx-pastille { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font: 500 12px var(--police); border: 0; cursor: pointer; }
.dx-pastille.rouge { background: #fef2f2; color: #b91c1c; }
.dx-pastille.ambre { background: #fffbeb; color: #b45309; }
.dx-pastille.vert { background: #ecfdf5; color: #047857; }
.dx-barre-droite { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dx-pas { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6b7280; }
.dx-select-petit { border-radius: 4px; border: 1px solid #e5e7eb; background: #fff; padding: 4px 6px; font: 12px var(--police); color: #1f2937; }
.dx-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: 6px 12px; font: 500 14px var(--police); border: 0; cursor: pointer; transition: background .15s; }
.dx-btn:disabled { opacity: .4; cursor: not-allowed; }
.dx-teal { background: #f0fdfa; color: #115e59; }
.dx-teal:hover:not(:disabled) { background: #ccfbf1; }
.dx-gris { background: none; color: #4b5563; }
.dx-gris:hover:not(:disabled) { background: #f3f4f6; }
.dx-noir { background: #111827; color: #fff; }
.dx-noir:hover:not(:disabled) { background: #1f2937; }
.dx-export { position: relative; }
.dx-menu { position: absolute; right: 0; z-index: 30; margin-top: 4px; width: 256px; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 20px 25px -5px rgba(0,0,0,.12); padding: 4px 0; }
.dx-menu-note { padding: 6px 12px; font-size: 11px; color: #b45309; margin: 0; }
.dx-menu-item { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 12px; text-align: left; font: 14px var(--police); color: #374151; border: 0; background: none; cursor: pointer; }
.dx-menu-item:hover { background: #f3f4f6; }
.dx-menu-sep { margin: 4px 0; border-top: 1px solid #f3f4f6; }
.dx-gris-ico { color: #9ca3af; }
.dx-rouge-ico { color: #ef4444; }
.dx-ambre-ico { color: #f59e0b; }
.dx-vert-ico { color: #10b981; }
.dx-alertes { list-style: none; margin: 12px 24px 0; padding: 0; max-height: 12rem; overflow: auto; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; font-size: 12px; }
.dx-alertes li { display: flex; align-items: flex-start; gap: 8px; padding: 6px 12px; color: #374151; }
.dx-alertes li + li { border-top: 1px solid #f3f4f6; }
.dx-alertes svg { flex-shrink: 0; margin-top: 2px; }
.dx-alerte-error { color: #dc2626; }
.dx-alerte-warning { color: #d97706; }
.dx-alerte-info { color: #0284c7; }
.dx-lignes { flex: 1; min-height: 0; display: flex; }
.dx-univers { width: 240px; flex-shrink: 0; border-right: 1px solid #e5e7eb; overflow: auto; padding: 12px; background: rgba(255,255,255,.6); display: none; }
@media (min-width: 1024px) { .dx-univers { display: block; } }
.dx-univers-titre { padding: 0 4px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; }
.dx-univers-lien { display: block; border-radius: 8px; padding: 6px 8px; text-decoration: none; margin-bottom: 6px; }
.dx-univers-lien:hover { background: #f3f4f6; }
.dx-univers-ligne { display: flex; align-items: baseline; gap: 8px; font-size: 12px; }
.dx-u { font-weight: 700; color: #111827; }
.dx-u.rouge { color: #dc2626; }
.dx-artnet { color: #9ca3af; font: 10px var(--mono); }
.dx-occ { margin-left: auto; color: #6b7280; font-variant-numeric: tabular-nums; }
.dx-usage { position: relative; height: 6px; margin-top: 4px; border-radius: 2px; background: #e5e7eb; overflow: hidden; }
.dx-usage-b { position: absolute; top: 0; bottom: 0; background: #2dd4bf; }
.dx-usage-b.fonce { background: #0f766e; }
.dx-main { flex: 1; min-width: 0; overflow: auto; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.dx-aucun-node { border-radius: 12px; border: 1px dashed #d1d5db; padding: 32px; text-align: center; font-size: 14px; color: #6b7280; }
.dx-carte { border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; overflow: hidden; }
.dx-node-tete { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #f3f4f6; background: rgba(249,250,251,.6); }
.dx-node-picto { width: 32px; height: 32px; border-radius: 8px; background: #0d9488; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dx-gras { font-size: 14px; font-weight: 600; color: #111827; }
.dx-normal { font-weight: 400; color: #6b7280; }
.dx-petit { font-size: 12px; color: #6b7280; margin: 0; }
.dx-min0 { min-width: 0; }
.dx-flex1 { flex: 1; }
.dx-nowrap { white-space: nowrap; }
.dx-tronque { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-ro { margin-left: auto; font-size: 12px; color: #b45309; }
.dx-ambre { color: #d97706; }
.dx-port + .dx-port { border-top: 1px solid #f3f4f6; }
.dx-port { scroll-margin-top: 16px; }
.dx-port-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px 16px; }
.dx-port-nom { width: 112px; font-size: 12px; font-weight: 600; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-port-u { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #6b7280; }
.dx-port-usage { width: 160px; margin-left: auto; }
.dx-port-occ { font-size: 10px; text-align: right; color: #9ca3af; font-variant-numeric: tabular-nums; }
.dx-input { width: 100%; border-radius: 4px; border: 1px solid #e5e7eb; background: #fff; padding: 2px 6px; font: 12px var(--police); font-variant-numeric: tabular-nums; color: #111827; outline: none; }
.dx-input:focus { border-color: #14b8a6; }
.dx-input:disabled { background: #f9fafb; color: #9ca3af; }
.dx-mono { font-family: var(--mono); }
.dx-w6 { width: 24px; } .dx-w8 { width: 32px; } .dx-w10 { width: 40px; } .dx-w12 { width: 48px; } .dx-w14 { width: 56px; } .dx-w16 { width: 64px; }
.dx-w18 { width: 4.5rem; } .dx-w20 { width: 80px; } .dx-w24 { width: 96px; } .dx-w36 { width: 144px; } .dx-w44 { width: 176px; } .dx-w52 { width: 208px; }
.dx-table-boite { overflow-x: auto; }
.dx-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.dx-table th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; font-weight: 600; padding: 4px 8px 4px 0; }
.dx-table th:first-child, .dx-table td:first-child { padding-left: 16px; }
.dx-table th:last-child, .dx-table td:last-child { padding-right: 16px; }
.dx-table td { padding: 4px 8px 4px 0; border-top: 1px solid #f9fafb; vertical-align: middle; }
.dx-ligne-rouge { background: rgba(254,242,242,.6); }
.dx-rang { color: #9ca3af; font-variant-numeric: tabular-nums; }
.dx-fid { font-family: var(--mono); color: #4b5563; font-variant-numeric: tabular-nums; }
.dx-ref { font-weight: 600; white-space: nowrap; color: #111827; }
.dx-point { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dx-app { color: #374151; }
.dx-app-titre, .dx-app-sous { max-width: 22rem; }
.dx-app-sous { font-size: 10px; color: #9ca3af; }
.dx-app-sous svg { vertical-align: -2px; }
.dx-repartiteur { color: #9ca3af; font-style: italic; }
.dx-fin { font-family: var(--mono); color: #9ca3af; font-variant-numeric: tabular-nums; }
.dx-etat span { display: inline-flex; }
.dx-hors-tete { padding: 10px 16px; border-bottom: 1px solid #f3f4f6; }
.dx-console-zone { flex: 1; min-height: 0; overflow: auto; }
.dx-console { padding: 24px; max-width: 1100px; display: flex; flex-direction: column; gap: 16px; }
.dx-pile1 { display: flex; flex-direction: column; gap: 4px; }
.dx-cmd { display: flex; align-items: center; gap: 8px; }
.dx-invite { font: 14px var(--mono); color: #6b7280; }
.dx-cmd-input { flex: 1; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; padding: 8px 12px; font: 14px var(--mono); color: #111827; outline: none; }
.dx-cmd-input:focus { border-color: #14b8a6; }
.dx-btn-petit { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: 4px 10px; font: 500 12px var(--police); border: 1px solid #e5e7eb; background: #fff; color: #374151; cursor: pointer; }
.dx-btn-petit:hover:not(:disabled) { background: #f3f4f6; }
.dx-btn-petit:disabled { opacity: .4; cursor: default; }
.dx-btn-ambre { border-color: #fcd34d; color: #92400e; }
.dx-msg { font-size: 12px; color: #4b5563; margin: 0; }
.dx-msg.rouge { color: #dc2626; }
.dx-aide { font-size: 11px; color: #9ca3af; margin: 0; }
.dx-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dx-nav-u { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dx-select-u { width: auto; padding: 4px 6px; }
.dx-chev { margin-left: auto; font-size: 12px; }
.dx-rouge-txt { color: #dc2626; display: inline-flex; align-items: center; gap: 4px; }
.dx-vert-txt { color: #059669; display: inline-flex; align-items: center; gap: 4px; }
.dx-gris-txt { color: #6b7280; }
.dx-grille { display: grid; grid-template-columns: 2.25rem repeat(32, minmax(0, 1fr)); grid-auto-rows: 2.75rem; border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb; background: #fff; user-select: none; }
.dx-grille-tete { display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; font: 10px var(--mono); color: #9ca3af; background: #f9fafb; border-right: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.dx-case { cursor: pointer; border-right: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6; font: 9px var(--mono); color: #d1d5db; padding: 2px 0 0 2px; line-height: 1; }
.dx-case:hover { background: #f0fdfa; }
.dx-bloc { position: relative; z-index: 10; margin: 2px; border: 2px solid; cursor: pointer; overflow: hidden; padding: 2px 4px; color: #fff; line-height: 1.25; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.dx-bloc:hover { filter: brightness(1.1); }
.dx-bloc.choisi { z-index: 20; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #111827; }
.dx-bloc-1 { display: flex; align-items: baseline; gap: 4px; min-width: 0; font-size: 11px; }
.dx-bloc-fid { font-family: var(--mono); font-weight: 700; flex-shrink: 0; }
.dx-bloc-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.dx-bloc-2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; opacity: .9; }
.dx-hover { margin-top: 6px; min-height: 18px; font: 11px var(--mono); color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-legende { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-carre { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.dx-carre-petit { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.dx-console-table-tete { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid #f3f4f6; }
.dx-console-table-tete .dx-gris-txt { font-size: 12px; color: #9ca3af; }
.dx-filtre { margin-left: auto; width: auto; padding: 4px 6px; }
.dx-console-ligne { cursor: pointer; }
.dx-console-ligne.choisi { background: #f0fdfa; }
.dx-console-ligne.rouge { color: #b91c1c; }
.dx-loc { max-width: 16rem; }
.dx-modal-fond { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.4); padding: 16px; }
.dx-modal { width: 100%; max-width: 42rem; max-height: 90vh; overflow: auto; border-radius: 12px; background: #fff; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.dx-modal-tete { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #f3f4f6; }
.dx-fermer { margin-left: auto; border: 0; background: none; color: #9ca3af; cursor: pointer; display: flex; }
.dx-fermer:hover { color: #374151; }
.dx-modal-corps { padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; font-size: 14px; color: #374151; }
.dx-avert { display: flex; align-items: flex-start; gap: 8px; border-radius: 8px; background: #fffbeb; padding: 8px 12px; font-size: 12px; color: #92400e; margin: 0; }
.dx-avert svg { flex-shrink: 0; }
.dx-champ { display: block; font-size: 12px; color: #6b7280; }
.dx-input-grand { margin-top: 4px; padding: 4px 8px; font-size: 14px; }
.dx-ma-tete { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 8px; }
.dx-droite { text-align: right; }
.dx-manque { border-color: #fbbf24; }
.dx-etapes { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #4b5563; }
.dx-etapes code { font-size: 11px; }
.dx-modal-pied { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid #f3f4f6; }
.dx-btn-texte { border-radius: 8px; padding: 6px 12px; font: 14px var(--police); color: #4b5563; border: 0; background: none; cursor: pointer; }
.dx-btn-texte:hover { background: #f3f4f6; }

/* ── Module boîtiers ASG (modules/boitiers/src/ui : BoitiersApp, DesignEditor, FaceSvg) — préfixe bt- ── */
body.page-boitiers .as-main { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.bt-racine { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.bt-app { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.bt-tete { display: flex; align-items: center; gap: 16px; padding: 12px 24px; border-bottom: 1px solid #e5e7eb; background: #fff; flex-shrink: 0; }
.bt-marque { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bt-marque-picto { width: 28px; height: 28px; border-radius: 6px; background: #334155; color: #fff; display: flex; align-items: center; justify-content: center; }
.bt-marque-nom { font-size: 14px; font-weight: 600; color: #111827; }
.bt-marque-sous { font-size: 12px; color: #9ca3af; }
.bt-picker { width: 100%; max-width: 28rem; }
.bt-corps { flex: 1; min-height: 0; display: flex; background: #f9fafb; }
.bt-nav { width: 240px; flex-shrink: 0; border-right: 1px solid #e5e7eb; background: #fff; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.bt-main { flex: 1; min-width: 0; overflow-y: auto; }
.bt-nouveau { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 6px; background: #4f46e5; padding: 6px 12px; font: 500 14px var(--police); color: #fff; border: 0; cursor: pointer; margin-bottom: 8px; }
.bt-nouveau:hover:not(:disabled) { background: #4338ca; }
.bt-nouveau:disabled { opacity: .6; }
.bt-nouveau.bt-inline { margin: 0; }
.bt-modele { text-align: left; border-radius: 6px; padding: 8px 10px; border: 1px solid transparent; background: none; cursor: pointer; font: 14px var(--police); }
.bt-modele:hover { background: #f9fafb; }
.bt-modele.actif { border-color: #6366f1; background: #eef2ff; }
.bt-modele-1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bt-modele-nom { font-size: 14px; font-weight: 500; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-pastille-rouge { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; flex-shrink: 0; }
.bt-modele-2 { display: block; font: 11px var(--mono); color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-modele-3 { display: block; font-size: 11px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-charge { display: flex; align-items: center; justify-content: center; gap: 8px; height: 160px; font-size: 14px; color: #6b7280; }
.bt-erreur { margin: 24px; border-radius: 8px; border: 1px solid #fecaca; background: #fef2f2; padding: 8px 12px; font-size: 14px; color: #b91c1c; }
.bt-vide { padding: 40px; text-align: center; font-size: 14px; color: #6b7280; margin: 0; }
.bt-mb1 { margin-bottom: 4px; } .bt-mb2 { margin-bottom: 8px; } .bt-mb3 { margin: 0 0 12px; } .bt-mt1 { margin-top: 4px; } .bt-mt2 { margin-top: 8px; }
.bt-px1 { padding: 0 4px; }
.bt-aide { font-size: 11px; color: #9ca3af; margin: 0; }
.bt-bloc { display: block; }
.bt-flex1 { flex: 1; }
.bt-min0 { min-width: 0; }
.bt-relatif { position: relative; }
.bt-mono { font-family: var(--mono); }
.bt-noir { color: #111827; }
.bt-droite { text-align: right; }
.bt-gris-txt { color: #6b7280; }
.bt-petit { font-size: 12px; }
.bt-vert { color: #047857; }
.bt-ambre { color: #b45309; }
.bt-ml { margin-left: 6px; }
.bt-ml-auto { margin-left: auto; }
.bt-input { width: 100%; border-radius: 6px; border: 1px solid #d1d5db; background: #fff; padding: 4px 8px; font: 12px var(--police); color: #111827; margin-top: 2px; }
.bt-select { border-radius: 6px; border: 1px solid #d1d5db; background: #fff; padding: 4px 8px; font: 14px var(--police); color: #111827; }
.bt-plein { width: 100%; font-size: 12px; }
.bt-editeur { display: flex; flex-direction: column; gap: 16px; padding: 16px; min-width: 0; }
.bt-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.bt-nom { font: 600 18px var(--police); background: transparent; border: 0; border-bottom: 1px solid transparent; color: #111827; min-width: 0; width: 16rem; padding: 0; }
.bt-nom:hover { border-bottom-color: #d1d5db; }
.bt-nom:focus { border-bottom-color: #6366f1; outline: none; }
.bt-lab { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #6b7280; }
.bt-info { font-size: 14px; color: #6b7280; }
.bt-info b { font-weight: 500; color: #111827; }
.bt-barre-droite { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.bt-hist { display: inline-flex; border-radius: 6px; border: 1px solid #d1d5db; overflow: hidden; }
.bt-hist-b { padding: 4px 8px; border: 0; background: none; color: #374151; cursor: pointer; display: flex; }
.bt-hist-b + .bt-hist-b { border-left: 1px solid #d1d5db; }
.bt-hist-b:hover:not(:disabled) { background: #f9fafb; }
.bt-hist-b:disabled { opacity: .35; cursor: default; }
.bt-ok { display: inline-flex; align-items: center; gap: 4px; color: #059669; }
.bt-gris { display: inline-flex; align-items: center; gap: 4px; color: #9ca3af; }
.bt-lien-rouge { border: 0; background: none; color: #dc2626; cursor: pointer; font: 12px var(--police); }
.bt-lien-rouge:hover { text-decoration: underline; }
.bt-btn { display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; border: 1px solid #d1d5db; background: #fff; padding: 4px 8px; font: 12px var(--police); color: #374151; cursor: pointer; }
.bt-btn:hover { background: #f9fafb; }
.bt-btn.sup { color: #6b7280; }
.bt-btn.sup:hover { color: #dc2626; }
.bt-btn.danger { border-color: #ef4444; background: #dc2626; color: #fff; }
.bt-typemsg { font-size: 12px; color: #4338ca; margin-top: -8px; }
.bt-conflit { display: flex; align-items: center; gap: 12px; border-radius: 8px; border: 1px solid #fcd34d; background: #fffbeb; padding: 8px 12px; font-size: 14px; color: #92400e; }
.bt-lien { margin-left: auto; border: 0; background: none; font: 500 14px var(--police); text-decoration: underline; color: inherit; cursor: pointer; }
.bt-exemplaires { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.bt-unite { display: inline-flex; align-items: center; border-radius: 6px; border: 1px solid #d1d5db; background: #fff; }
.bt-unite.actif { border-color: #111827; }
.bt-unite-rep { width: 80px; background: transparent; border: 0; padding: 2px 8px; font: 12px var(--mono); color: #111827; outline: none; }
.bt-point { width: 6px; height: 6px; border-radius: 50%; background: #d1d5db; }
.bt-point.pose { background: #10b981; }
.bt-unite-x { padding: 0 4px; border: 0; background: none; color: #9ca3af; cursor: pointer; display: flex; }
.bt-unite-x:hover { color: #dc2626; }
.bt-ajout-unite { display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; border: 1px dashed #d1d5db; background: none; padding: 2px 8px; font: 12px var(--police); color: #4b5563; cursor: pointer; }
.bt-ajout-unite:hover { border-color: #6b7280; }
.bt-grille { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1280px) { .bt-grille { grid-template-columns: 240px minmax(0, 1fr) 300px; } }
.bt-carte { border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; }
.bt-palette { padding: 12px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bt-titre { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; margin-bottom: 6px; }
.bt-loupe { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.bt-recherche { padding-left: 28px; margin-top: 0; }
.bt-fam { font-size: 11px; color: #9ca3af; margin-bottom: 2px; }
.bt-conn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 6px; padding: 4px 8px; text-align: left; font: 12px var(--police); border: 1px solid transparent; background: none; cursor: pointer; }
.bt-conn:hover { border-color: #e5e7eb; }
.bt-conn.arme { border-color: #10b981; background: #ecfdf5; }
.bt-conn-nom { display: block; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-conn-ref { display: block; font: 10.5px var(--mono); color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-src { flex-shrink: 0; border-radius: 4px; padding: 1px 6px; font: 10px var(--mono); }
.bt-src-bleu { background: #f0f9ff; color: #0369a1; }
.bt-src-gris { background: #f3f4f6; color: #4b5563; }
.bt-src-rouge { background: #fef2f2; color: #b91c1c; }
.bt-face { border-radius: 8px; border: 1px solid #e5e7eb; overflow-x: auto; }
.bt-face-svg { width: 100%; height: auto; min-width: 460px; }
.bt-face-aide { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: #6b7280; }
.bt-notice { margin-top: 8px; border-radius: 6px; background: #fffbeb; padding: 6px 12px; font-size: 12px; color: #92400e; }
.bt-inspecteur { padding: 12px; font-size: 14px; min-width: 0; }
.bt-pile2 { display: flex; flex-direction: column; gap: 8px; }
.bt-rep-grand { font: 600 16px var(--mono); color: #111827; }
.bt-texte { color: #374151; font-size: 14px; }
.bt-sous-mono { display: block; font: 12px var(--mono); color: #6b7280; }
.bt-champ { display: block; font-size: 12px; color: #6b7280; }
.bt-provisoire { border-radius: 6px; background: #fef2f2; padding: 6px 8px; font-size: 12px; color: #b91c1c; margin: 0; }
.bt-confirme { border-radius: 6px; background: #fef2f2; padding: 6px 8px; font-size: 12px; color: #b91c1c; }
.bt-ligne3 { display: flex; gap: 12px; margin-top: 4px; }
.bt-ligne15 { display: flex; gap: 6px; align-items: center; }
.bt-lien-gras { border: 0; background: none; font: 600 12px var(--police); text-decoration: underline; color: inherit; cursor: pointer; padding: 0; }
.bt-confirme .bt-lien { margin: 0; font-size: 12px; font-weight: 400; padding: 0; }
.bt-retirer { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; font: 12px var(--police); color: #dc2626; cursor: pointer; padding: 0; }
.bt-retirer:hover { text-decoration: underline; }
.bt-btn-petit { display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; border: 1px solid #d1d5db; background: #fff; padding: 2px 8px; font: 12px var(--police); cursor: pointer; }
.bt-btn-petit:disabled { opacity: .4; cursor: default; }
.bt-options { display: flex; flex-wrap: wrap; gap: 4px; }
.bt-option { border-radius: 4px; border: 1px solid #d1d5db; background: #fff; padding: 2px 6px; font: 11px var(--mono); cursor: pointer; }
.bt-option:hover:not(:disabled) { border-color: #6366f1; }
.bt-option.actif { border-color: #111827; }
.bt-probleme { display: flex; gap: 6px; text-align: left; font: 12px var(--police); border: 0; background: none; cursor: pointer; padding: 0; }
.bt-probleme svg { flex-shrink: 0; margin-top: 1px; }
.bt-probleme.error { color: #b91c1c; }
.bt-probleme.warning { color: #b45309; }
.bt-erreurs-pied { font-size: 12px; color: #b91c1c; border-top: 1px solid #f3f4f6; padding-top: 8px; margin: 0; }
.bt-sorties { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .bt-sorties { grid-template-columns: 1fr 1fr; } }
.bt-p3 { padding: 12px; min-width: 0; }
.bt-scroll-x { overflow-x: auto; }
.bt-cf { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; margin-top: 4px; }
.bt-pe { font-size: 14px; margin: 8px 0 0; }
.bt-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.bt-table th { color: #6b7280; text-align: left; font-weight: 500; padding: 4px 0; }
.bt-table th.bt-droite { text-align: right; }
.bt-table td { padding: 4px 8px 4px 0; border-top: 1px solid #f3f4f6; vertical-align: top; }
.bt-table td:last-child { padding-right: 0; }
.bt-table tfoot td { border-top: 1px solid #d1d5db; font-weight: 600; color: #111827; }
.bt-modal-fond { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.4); padding: 16px; }
.bt-modal { width: 100%; max-width: 28rem; border-radius: 12px; background: #fff; padding: 20px; box-shadow: 0 20px 25px -5px rgba(0,0,0,.15); display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.bt-modal .bt-champ { font-size: 14px; color: #4b5563; }
.bt-modal .bt-input { font-size: 14px; padding: 6px 8px; margin-top: 4px; }
.bt-modal-titre { margin: 0; font-size: 16px; font-weight: 600; color: #111827; text-transform: none; letter-spacing: 0; }
.bt-err { font-size: 12px; color: #dc2626; margin: 0; min-height: 0; }
.bt-err:empty { display: none; }
.bt-modal-pied { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.bt-modal-pied .bt-nouveau { margin: 0; }
.bt-modal-pied .bt-btn { font-size: 14px; padding: 6px 12px; }

/* ── Retours des utilisateurs (components/feedback) : onglet « Signaler », fenêtre, liste, fiche ───────── */
.rt-b-rose { background: #fff1f2; color: #be123c; } .rt-b-sky { background: #f0f9ff; color: #0369a1; } .rt-b-emerald { background: #ecfdf5; color: #047857; }
.rt-b-gris { background: #f3f4f6; color: #374151; } .rt-b-gris-pale { background: #f3f4f6; color: #6b7280; } .rt-b-amber { background: #fffbeb; color: #b45309; }
.rt-b-rose-fort { background: #ffe4e6; color: #9f1239; } .rt-b-violet { background: #f5f3ff; color: #6d28d9; }
.rt-a-rose { background: #fff1f2; border-color: #fda4af !important; color: #be123c !important; } .rt-a-sky { background: #f0f9ff; border-color: #7dd3fc !important; color: #0369a1 !important; }
.rt-a-emerald { background: #ecfdf5; border-color: #6ee7b7 !important; color: #047857 !important; } .rt-a-gris { background: #f3f4f6; border-color: #d1d5db !important; color: #374151 !important; }
.rt-a-amber { background: #fffbeb; border-color: #fcd34d !important; color: #b45309 !important; } .rt-a-rose-fort { background: #ffe4e6; border-color: #fb7185 !important; color: #9f1239 !important; }
.dark .rt-b-rose, .dark .rt-a-rose { background: rgba(244,63,94,.15); color: #fda4af !important; } .dark .rt-b-sky, .dark .rt-a-sky { background: rgba(14,165,233,.15); color: #7dd3fc !important; }
.dark .rt-b-emerald, .dark .rt-a-emerald { background: rgba(16,185,129,.15); color: #6ee7b7 !important; } .dark .rt-b-gris, .dark .rt-a-gris, .dark .rt-b-gris-pale { background: #1b2333; color: #d1d5db !important; }
.dark .rt-b-amber, .dark .rt-a-amber { background: rgba(245,158,11,.15); color: #fcd34d !important; } .dark .rt-b-rose-fort, .dark .rt-a-rose-fort { background: rgba(244,63,94,.25); color: #fecdd3 !important; }
.dark .rt-b-violet { background: rgba(139,92,246,.15); color: #c4b5fd; }
.rt-tourne { animation: rt-tourne 1s linear infinite; } @keyframes rt-tourne { to { transform: rotate(360deg); } }
.rt-gris { color: #9ca3af; } .rt-petitgris { font-size: 12px; color: #6b7280; } .dark .rt-petitgris { color: #9ca3af; }
.rt-tronque { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rt-casse { overflow-wrap: anywhere; } .rt-casse-tout { word-break: break-all; }
.rt-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; } .rt-xs { font-size: 12px; } .rt-xxs { font-size: 11px; }
.rt-mt { margin-top: 8px; } .rt-mb { margin-bottom: 8px; } .rt-fort { font-weight: 500; margin-bottom: 4px; } .rt-bloc { display: block; }
.rt-flex { flex: 1; min-width: 0; } .rt-droite { margin-left: auto; } .rt-rangee { display: flex; align-items: center; gap: 6px; }
.rt-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rt-erreur { font-size: 14px; color: #e11d48; margin: 0 0 12px; } .dark .rt-erreur { color: #fb7185; }

/* Onglet du bord droit */
.rt-onglet { position: fixed; right: 0; top: 62%; z-index: 45; display: flex; align-items: center; gap: 6px; border: 0; border-radius: 8px 0 0 8px;
  background: rgba(17,24,39,.8); color: #fff; padding: 8px 4px 8px 6px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); cursor: pointer; transition: all .2s; font: 500 12px var(--police); }
.rt-onglet:hover { background: #111827; }
.rt-onglet > span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .2s; }
.rt-onglet:hover > span { max-width: 120px; }
.rt-onglet[hidden] { display: none; }
.dark .rt-onglet { background: rgba(42,52,70,.9); } .dark .rt-onglet:hover { background: #3a4661; }
@media print { .rt-onglet { display: none; } }
.rt-repere { position: fixed; z-index: 140; pointer-events: none; border-radius: 4px; border: 3px solid #7c3aed; animation: rt-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
.rt-repere > span { position: absolute; top: -24px; left: 0; font-size: 12px; background: #7c3aed; color: #fff; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
@keyframes rt-pulse { 50% { opacity: .5; } }

/* Choix d'un élément */
.rt-choix { position: fixed; inset: 0; z-index: 200; pointer-events: none; font-family: var(--police); }
.rt-choix-aide { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); border-radius: 9999px; background: #7c3aed; color: #fff; font-size: 14px; padding: 6px 16px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.2); }
.rt-choix-cadre { position: absolute; border: 2px solid #7c3aed; background: rgba(139,92,246,.1); border-radius: 2px; transition: all 75ms; }
.rt-choix-nom { position: absolute; font-size: 12px; background: #7c3aed; color: #fff; padding: 2px 8px; border-radius: 4px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-choix-cadre[hidden], .rt-choix-nom[hidden] { display: none; }

/* Enregistrement */
.rt-enreg { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; align-items: center; gap: 12px; border-radius: 9999px; background: #111827; color: #fff; padding: 6px 6px 6px 16px; box-shadow: 0 20px 25px -5px rgba(0,0,0,.2); font-family: var(--police); }
.rt-enreg-point { width: 10px; height: 10px; border-radius: 9999px; background: #f43f5e; animation: rt-pulse 2s infinite; }
.rt-enreg-texte { font-size: 14px; font-variant-numeric: tabular-nums; }
.rt-enreg-stop { border: 0; border-radius: 9999px; background: #fff; color: #111827; font: 500 14px var(--police); padding: 4px 12px; cursor: pointer; } .rt-enreg-stop:hover { background: #f3f4f6; }

/* Fenêtre de signalement */
.rt-voile { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 12px; font-family: var(--police); color: #111827; }
@media (min-width: 640px) { .rt-voile { padding: 24px; } }
.rt-voile[hidden] { display: none; }
.rt-boite { width: 100%; max-width: 72rem; max-height: 100%; overflow: auto; border-radius: 16px; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.rt-tete { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #f3f4f6; }
.rt-tete h2 { margin: 0; font-size: 16px; font-weight: 600; color: #111827; }
.rt-fermer { margin-left: auto; padding: 6px; border: 0; border-radius: 8px; background: none; color: #9ca3af; cursor: pointer; display: flex; } .rt-fermer:hover { background: #f3f4f6; }
.rt-grille { display: grid; gap: 20px; padding: 20px; }
@media (min-width: 1024px) { .rt-grille { grid-template-columns: minmax(0,1.6fr) minmax(320px,1fr); } }
.rt-col { min-width: 0; } .rt-form { display: flex; flex-direction: column; gap: 12px; }
.rt-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.rt-outil { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; font: 12px var(--police); border: 1px solid #e5e7eb; background: #fff; color: #4b5563; cursor: pointer; transition: background-color .15s; }
.rt-outil:hover:not(:disabled) { background: #f9fafb; } .rt-outil:disabled { opacity: .4; cursor: default; }
.rt-outil.actif { background: #fff1f2; border-color: #fda4af; color: #be123c; }
.rt-outil-pin { border-color: #ddd6fe; color: #6d28d9; } .rt-outil-pin:hover { background: #f5f3ff !important; }
.rt-annuler { margin-left: auto; padding: 4px; border: 0; border-radius: 8px; background: none; color: #6b7280; cursor: pointer; display: flex; } .rt-annuler:hover:not(:disabled) { background: #f3f4f6; } .rt-annuler:disabled { opacity: .3; cursor: default; }
.rt-annot { position: relative; }
.rt-annot-canvas { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid #e5e7eb; cursor: crosshair; touch-action: none; user-select: none; }
.rt-annot-saisie { position: absolute; z-index: 10; width: 220px; font: 14px var(--police); padding: 4px 8px; border-radius: 4px; border: 1px solid #f43f5e; background: #fff; color: #111827; box-shadow: 0 1px 3px rgba(0,0,0,.1); outline: none; }
.rt-vide { aspect-ratio: 16 / 9; border-radius: 8px; border: 1px dashed #d1d5db; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; font-size: 14px; color: #6b7280; }
.rt-vide p { margin: 0; } .rt-vide-encours { display: flex; align-items: center; gap: 8px; color: #374151; }
.rt-vide-boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; } .rt-vide-note { font-size: 12px; color: #9ca3af; }
.rt-btn-sombre { display: flex; align-items: center; gap: 6px; border: 0; border-radius: 8px; background: #111827; color: #fff; font: 500 14px var(--police); padding: 6px 12px; cursor: pointer; } .rt-btn-sombre:hover { background: #1f2937; }
.rt-btn { display: flex; align-items: center; gap: 6px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #374151; font: 14px var(--police); padding: 6px 12px; cursor: pointer; } .rt-btn:hover { background: #f9fafb; }
.rt-lien { border: 0; background: none; padding: 0; font: 14px var(--police); color: #0028c2; cursor: pointer; } .rt-lien:hover { text-decoration: underline; }
.rt-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; }
.rt-petit { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; border: 0; background: none; color: #6b7280; font: 12px var(--police); cursor: pointer; } .rt-petit:hover { background: #f3f4f6; }
.rt-petit.rt-cadre { border: 1px solid #e5e7eb; color: #4b5563; } .rt-petit.rt-cadre:hover { background: #f9fafb; } .rt-petit:disabled { opacity: .5; cursor: default; }
.rt-joindre { position: relative; }
.rt-pieces { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.rt-piece { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #374151; } .rt-piece-video { align-items: flex-start; }
.rt-piece video { width: 224px; border-radius: 8px; border: 1px solid #e5e7eb; }
.rt-pin-n { width: 20px; height: 20px; border-radius: 9999px; background: #7c3aed; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.rt-retirer { margin-left: auto; border: 0; background: none; padding: 0; color: #9ca3af; cursor: pointer; display: flex; } .rt-retirer:hover { color: #4b5563; }
.rt-etiq { display: block; font-size: 12px; font-weight: 500; color: #6b7280; margin: 0 0 4px; }
.rt-trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rt-choixbtn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 8px; border-radius: 8px; font: 500 12px var(--police); border: 1px solid #e5e7eb; background: #fff; color: #4b5563; cursor: pointer; transition: background-color .15s; }
.rt-choixbtn:hover { background: #f9fafb; }
.rt-champ { display: block; } .rt-champ .rt-etiq { margin: 0; }
.rt-saisie { margin-top: 4px; width: 100%; box-sizing: border-box; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; padding: 8px 12px; font: 14px var(--police); color: #111827; outline: none; resize: vertical; }
.rt-saisie:focus { box-shadow: 0 0 0 2px #1a4eff; border-color: transparent; }
.rt-contexte { border-radius: 8px; background: #f9fafb; padding: 8px 12px; font-size: 12px; }
.rt-contexte-tete { width: 100%; display: flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font: 500 12px var(--police); color: #4b5563; cursor: pointer; }
.rt-chevron { margin-left: auto; transition: transform .15s; } .rt-chevron.ouvert { transform: rotate(180deg); }
.rt-dl { margin: 8px 0 0; display: grid; grid-template-columns: 84px minmax(0,1fr); column-gap: 8px; row-gap: 4px; color: #374151; }
.rt-dl dt { color: #6b7280; } .rt-dl dd { margin: 0; min-width: 0; }
.rt-contexte-detail { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; max-height: 192px; overflow: auto; }
.rt-contexte-detail p { margin: 0; }
.rt-erreurs { margin: 0; padding: 0; list-style: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #be123c; overflow-wrap: anywhere; }
.rt-actions { margin: 0; padding: 0; list-style: none; font-size: 11px; color: #4b5563; }
.rt-note { margin: 0; font-size: 11px; color: #6b7280; }
.rt-envoyer { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 8px; background: #0035f5; color: #fff; font: 500 14px var(--police); padding: 8px; cursor: pointer; }
.rt-envoyer:hover { background: #0028c2; } .rt-envoyer:disabled { opacity: .6; cursor: default; }
.rt-envoye { padding: 40px; text-align: center; }
.rt-envoye-rond { margin: 0 auto 12px; width: 48px; height: 48px; border-radius: 9999px; background: #ecfdf5; color: #059669; display: flex; align-items: center; justify-content: center; }
.rt-envoye-titre { margin: 0; font-size: 18px; font-weight: 600; color: #111827; } .rt-envoye-texte { margin: 4px 0 0; font-size: 14px; color: #6b7280; }
.rt-envoye-actions { margin-top: 20px; display: flex; justify-content: center; gap: 8px; }
.rt-btn-primaire { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 8px; font: 500 14px var(--police); background: #0035f5; color: #fff; text-decoration: none; cursor: pointer; }
.rt-btn-primaire:hover { background: #0028c2; } .rt-btn-primaire:disabled { opacity: .5; cursor: default; }
.dark .rt-voile { color: #f3f4f6; }
.dark .rt-boite { background: #121826; border-color: #2a3446; } .dark .rt-tete { border-color: #1b2333; } .dark .rt-tete h2, .dark .rt-envoye-titre { color: #f3f4f6; }
.dark .rt-fermer:hover, .dark .rt-annuler:hover:not(:disabled), .dark .rt-petit:hover { background: #1b2333; }
.dark .rt-outil, .dark .rt-choixbtn, .dark .rt-petit.rt-cadre, .dark .rt-btn { background: transparent; border-color: #2a3446; color: #d1d5db; }
.dark .rt-outil:hover:not(:disabled), .dark .rt-choixbtn:hover, .dark .rt-petit.rt-cadre:hover, .dark .rt-btn:hover { background: #1b2333; }
.dark .rt-outil.actif { background: rgba(244,63,94,.15); border-color: rgba(244,63,94,.4); color: #fda4af; }
.dark .rt-saisie, .dark .rt-annot-saisie { background: #0a0e17; border-color: #2a3446; color: #f3f4f6; }
.dark .rt-contexte { background: rgba(27,35,51,.6); } .dark .rt-dl { color: #e5e7eb; } .dark .rt-dl dt, .dark .rt-etiq { color: #9ca3af; }
.dark .rt-piece { color: #e5e7eb; } .dark .rt-vide { border-color: #2a3446; color: #9ca3af; } .dark .rt-btn-sombre { background: #2a3446; }

/* Pages Retours */
.rt-page { max-width: 72rem; margin: 0 auto; font-family: var(--police); color: #111827; } .rt-page.large { max-width: 1500px; }
.rt-page-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.rt-h1 { margin: 0; font-size: 20px; font-weight: 600; color: #111827; } .rt-h2 { margin: 0; font-size: 14px; font-weight: 600; color: #111827; }
.rt-h3 { margin: 0 0 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: #6b7280; }
.rt-sous { margin: 2px 0 0; font-size: 14px; color: #6b7280; }
.rt-btn-signaler { margin-left: auto; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; background: #0035f5; color: #fff; font: 500 14px var(--police); padding: 8px 12px; cursor: pointer; } .rt-btn-signaler:hover { background: #0028c2; }
.rt-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.rt-segment { display: flex; border-radius: 8px; border: 1px solid #e5e7eb; overflow: hidden; font-size: 14px; }
.rt-segment button { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; background: none; color: #4b5563; font: 14px var(--police); cursor: pointer; }
.rt-segment button:hover { background: #f9fafb; } .rt-segment button.actif { background: #111827; color: #fff; }
.rt-select { border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; font: 14px var(--police); padding: 6px 8px; color: #374151; }
.rt-recherche-boite { position: relative; margin-left: auto; display: flex; align-items: center; }
.rt-recherche-boite > svg { position: absolute; left: 10px; color: #9ca3af; pointer-events: none; }
.rt-recherche { width: 240px; padding: 6px 12px 6px 32px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; font: 14px var(--police); color: #111827; outline: none; }
.rt-liste { border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; }
.rt-liste > * + * { border-top: 1px solid #f3f4f6; }
.rt-liste-vide { padding: 40px 16px; text-align: center; font-size: 14px; color: #6b7280; }
.rt-ligne-retour { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; } .rt-ligne-retour:hover { background: #f9fafb; }
.rt-vignette { width: 80px; height: 48px; border-radius: 6px; overflow: hidden; background: #f3f4f6; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #d1d5db; }
.rt-vignette img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rt-ligne-milieu { min-width: 0; flex: 1; } .rt-ligne-1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rt-num { font-size: 12px; color: #9ca3af; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.rt-badge-sm { font-size: 11px; padding: 2px 6px; border-radius: 4px; font-weight: 500; flex-shrink: 0; } .rt-badge-xs { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 500; }
.rt-pastille { font-size: 11px; padding: 2px 8px; border-radius: 9999px; font-weight: 500; white-space: nowrap; }
.rt-ligne-titre { font-size: 14px; font-weight: 500; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-ligne-2 { font-size: 12px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.rt-ligne-droite { display: flex; align-items: center; gap: 12px; flex-shrink: 0; font-size: 12px; color: #9ca3af; }
.rt-compte { display: flex; align-items: center; gap: 4px; }
.rt-aide { margin: 12px 0 0; font-size: 12px; color: #9ca3af; }
.rt-tableau-defile { overflow-x: auto; padding-bottom: 4px; }
.rt-tableau { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; min-width: 980px; }
.rt-colonne { border-radius: 12px; background: rgba(243,244,246,.7); padding: 8px; min-height: 200px; transition: background-color .15s; }
.rt-colonne.survol { box-shadow: 0 0 0 2px #1a4eff; background: rgba(240,244,255,.6); }
.rt-colonne-tete { display: flex; align-items: center; gap: 8px; padding: 0 4px 8px; font-size: 12px; } .rt-colonne-tete .rt-pastille { font-size: 12px; font-weight: 600; }
.rt-pile { display: flex; flex-direction: column; gap: 8px; }
.rt-carte { display: block; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; padding: 10px; text-decoration: none; color: inherit; } .rt-carte:hover { border-color: #d1d5db; }
.rt-carte.glissable { cursor: grab; } .rt-carte.glissable:active { cursor: grabbing; } .rt-carte.glisse { opacity: .5; }
.rt-carte-haut { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; } .rt-carte-haut .rt-num { margin-left: auto; font-size: 11px; }
.rt-carte-titre { margin: 0; font-size: 14px; color: #111827; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rt-carte-bas { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; color: #9ca3af; }
.rt-avatars { margin-left: auto; display: flex; align-items: center; } .rt-avatars > * + * { margin-left: -4px; }
.rt-avatar { width: 20px; height: 20px; border-radius: 9999px; color: #fff; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rt-avatar-7 { width: 28px; height: 28px; font-size: 11px; }
.rt-plus { margin: 0; font-size: 11px; color: #9ca3af; padding: 0 4px; }

/* Fiche d'un retour */
.rt-retour { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: #6b7280; text-decoration: none; margin-bottom: 12px; } .rt-retour:hover { color: #1f2937; }
.rt-fiche-tete { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.rt-fiche-titres { min-width: 0; flex: 1; } .rt-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; } .rt-badges .rt-num { font-size: 14px; }
.rt-badges .rt-badge-sm { font-size: 12px; } .rt-badges .rt-pastille { font-size: 12px; }
.rt-supprimer { padding: 8px; border: 0; border-radius: 8px; background: none; color: #9ca3af; cursor: pointer; display: flex; } .rt-supprimer:hover { color: #e11d48; background: #fff1f2; }
.rt-doublon { margin-bottom: 16px; border-radius: 12px; border: 1px solid #e5e7eb; background: #f9fafb; padding: 12px 16px; font-size: 14px; color: #374151; display: flex; align-items: center; gap: 8px; }
.rt-lien-fort { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: #0028c2; text-decoration: none; border: 0; background: none; padding: 0; font-family: var(--police); font-size: inherit; cursor: pointer; } .rt-lien-fort:hover { text-decoration: underline; }
.rt-valider { margin-bottom: 16px; border-radius: 12px; border: 1px solid #fde68a; background: #fffbeb; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rt-valider p { margin: 0; font-size: 14px; color: #78350f; flex: 1; min-width: 240px; }
.rt-btn-vert { display: flex; align-items: center; gap: 6px; border: 0; border-radius: 8px; background: #059669; color: #fff; font: 500 14px var(--police); padding: 6px 12px; cursor: pointer; } .rt-btn-vert:hover { background: #047857; }
.rt-btn-ambre { display: flex; align-items: center; gap: 6px; border: 1px solid #fcd34d; border-radius: 8px; background: none; color: #78350f; font: 500 14px var(--police); padding: 6px 12px; cursor: pointer; } .rt-btn-ambre:hover { background: #fef3c7; }
.rt-fiche-grille { display: grid; gap: 20px; } @media (min-width: 1024px) { .rt-fiche-grille { grid-template-columns: minmax(0,1.7fr) minmax(300px,1fr); } }
.rt-fiche-gauche, .rt-fiche-droite { min-width: 0; display: flex; flex-direction: column; gap: 16px; } .rt-fiche-droite { gap: 12px; }
.rt-corps { border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; padding: 12px 16px; font-size: 14px; color: #1f2937; white-space: pre-wrap; overflow-wrap: anywhere; }
.rt-fiche-gauche figure { margin: 0; } .rt-fiche-gauche figcaption { margin-top: 4px; font-size: 12px; color: #9ca3af; }
.rt-capture { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; } .rt-capture img { width: 100%; border-radius: 12px; border: 1px solid #e5e7eb; display: block; }
.rt-video { width: 100%; border-radius: 12px; border: 1px solid #e5e7eb; background: #000; }
.rt-fichiers { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; } .rt-fichiers a { font-size: 14px; font-weight: 400; }
.rt-fil { display: flex; flex-direction: column; gap: 12px; }
.rt-fil > p.rt-gris { margin: 0; font-size: 14px; color: #6b7280; }
.rt-evenement { margin: 0; font-size: 12px; color: #6b7280; padding-left: 40px; }
.rt-message { display: flex; gap: 10px; } .rt-bulle { min-width: 0; flex: 1; border-radius: 12px; background: #f9fafb; padding: 8px 12px; }
.rt-bulle-tete { display: flex; align-items: baseline; gap: 8px; font-size: 12px; } .rt-auteur { font-weight: 600; color: #111827; }
.rt-bulle-tete .rt-poubelle { margin-left: auto; }
.rt-bulle-texte { margin: 2px 0 0; font-size: 14px; color: #1f2937; white-space: pre-wrap; overflow-wrap: anywhere; }
.rt-poubelle { border: 0; background: none; padding: 0; color: #9ca3af; cursor: pointer; display: flex; } .rt-poubelle:hover { color: #e11d48; }
.rt-repondre { margin-top: 12px; display: flex; gap: 8px; } .rt-repondre .rt-saisie { flex: 1; margin: 0; } .rt-repondre .rt-btn-primaire { align-self: flex-end; padding: 8px 12px; }
.rt-section { border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; }
.rt-section > summary { display: flex; align-items: center; gap: 8px; padding: 10px 16px; cursor: pointer; font-size: 14px; font-weight: 600; color: #111827; list-style: none; }
.rt-section > summary::-webkit-details-marker { display: none; } .rt-section > summary > svg { color: #9ca3af; }
.rt-section-corps { padding: 0 16px 12px; font-size: 14px; color: #374151; }
.rt-section-corps p { margin: 0; }
.rt-majuscule::first-letter { text-transform: uppercase; }
.rt-suivi { display: flex; flex-direction: column; gap: 10px; }
.rt-suivi-rang { display: flex; align-items: center; gap: 8px; } .rt-suivi-etiq { width: 96px; color: #6b7280; flex-shrink: 0; }
.rt-suivi .rt-select { padding: 4px 8px; }
.rt-saisie-petite { flex: 1; min-width: 0; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; font: 14px var(--police); padding: 4px 8px; color: #111827; outline: none; }
.rt-saisie-petite.rt-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.rt-btn-xs { border-radius: 8px; border: 1px solid #e5e7eb; background: none; padding: 4px 8px; font: 12px var(--police); color: #374151; cursor: pointer; } .rt-btn-xs:hover:not(:disabled) { background: #f9fafb; } .rt-btn-xs:disabled { opacity: .4; cursor: default; }
.rt-dl-88 { margin: 0; grid-template-columns: 88px minmax(0,1fr); } .rt-dl-80 { margin: 0; grid-template-columns: 80px minmax(0,1fr); } .rt-dl-110 { margin: 0; grid-template-columns: 110px minmax(0,1fr); }
.rt-correctif { margin-top: 8px; border-radius: 8px; background: #f9fafb; padding: 8px 12px; font-size: 12px; }
.rt-correctif-tete { display: flex; align-items: center; gap: 6px; font-weight: 500; color: #1f2937; } .rt-correctif p + p { margin-top: 2px; color: #4b5563; }
.rt-vert { color: #047857; font-weight: 500; margin-top: 4px !important; } .rt-ambre { color: #b45309; } .rt-rose { color: #be123c; }
.rt-correctif .rt-ambre { font-weight: 500; margin-top: 4px; }
.rt-ouvrir { margin-top: 8px; font-size: 14px; }
.rt-epingles { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; } .rt-epingles li { display: flex; gap: 8px; } .rt-epingles li > span:last-child { min-width: 0; }
.rt-console { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; overflow-wrap: anywhere; }
.rt-journal { margin: 0; padding: 0; list-style: none; font-size: 12px; } .rt-journal li + li { margin-top: 2px; } .rt-journal .rt-gris { font-variant-numeric: tabular-nums; }
.rt-zoom { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.8); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.rt-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }

/* Analyse de Claude */
.rt-analyse { border-radius: 12px; border: 1px solid #ddd6fe; background: rgba(245,243,255,.4); }
.rt-analyse > header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #ede9fe; }
.rt-violet { color: #7c3aed; }
.rt-analyse-contenu { padding: 12px 16px; font-size: 14px; color: #1f2937; display: flex; flex-direction: column; gap: 12px; }
.rt-analyse-contenu p { margin: 0; }
.rt-analyse-form { display: flex; flex-direction: column; gap: 8px; } .rt-analyse-form .rt-saisie { margin: 0; }
.rt-btn-violet { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 8px; background: #7c3aed; color: #fff; font: 500 14px var(--police); padding: 6px 12px; cursor: pointer; } .rt-btn-violet:hover { background: #6d28d9; } .rt-btn-violet:disabled { opacity: .5; }
.rt-lien-violet { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font: 12px var(--police); color: #6d28d9; cursor: pointer; } .rt-lien-violet:hover { text-decoration: underline; }
.rt-lien-gris { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font: 12px var(--police); color: #6b7280; cursor: pointer; } .rt-lien-gris:hover { color: #1f2937; }
.rt-analyse-form .rt-lien-gris { font-size: 14px; }
.rt-attente { display: flex; align-items: flex-start; gap: 8px; color: #374151; } .rt-attente > svg { margin-top: 2px; flex-shrink: 0; }
.rt-chrono { font-variant-numeric: tabular-nums; } .rt-avert { font-size: 12px; color: #b45309; margin-top: 4px !important; }
.rt-echec { display: flex; align-items: flex-start; gap: 8px; color: #be123c; } .rt-echec svg { margin-top: 2px; flex-shrink: 0; }
.rt-analyse-corps { display: flex; flex-direction: column; gap: 12px; }
.rt-prose { white-space: pre-wrap; overflow-wrap: anywhere; } .rt-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; padding: 0 4px; border-radius: 4px; background: #f3f4f6; }
.rt-resume { font-size: 15px; line-height: 1.625; font-weight: 500; }
.rt-lieux { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; } .rt-lieux li { display: flex; gap: 8px; } .rt-lieux li > svg { margin-top: 4px; flex-shrink: 0; }
.rt-fichier { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; color: #5b21b6; } .rt-role { display: block; font-size: 12px; color: #4b5563; }
.rt-entre { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; } .rt-entre .rt-h3 { margin: 0; }
.rt-copier { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font: 12px var(--police); color: #6b7280; cursor: pointer; } .rt-copier:hover { color: #1f2937; }
.rt-patch { margin: 0; max-height: 384px; overflow: auto; border-radius: 8px; background: #111827; color: #f3f4f6; font-size: 11px; line-height: 1.375; padding: 12px; }
.rt-patch span { display: block; } .rt-patch .plus { color: #6ee7b7; } .rt-patch .moins { color: #fda4af; } .rt-patch .bloc { color: #7dd3fc; }
.rt-puces { margin: 0; padding-left: 20px; list-style: disc; } .rt-puces li + li { margin-top: 2px; }
.rt-analyse-pied { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; font-size: 11px; color: #9ca3af; } .rt-analyse-pied .rt-poubelle { margin-left: auto; }
.rt-anciennes { margin-top: 8px; display: flex; flex-direction: column; gap: 16px; border-left: 2px solid #ede9fe; padding-left: 12px; }

.dark .rt-page, .dark .rt-h1, .dark .rt-h2, .dark .rt-ligne-titre, .dark .rt-carte-titre, .dark .rt-auteur, .dark .rt-section > summary { color: #f3f4f6; }
.dark .rt-sous, .dark .rt-ligne-2 { color: #9ca3af; }
.dark .rt-segment, .dark .rt-select, .dark .rt-recherche, .dark .rt-liste, .dark .rt-carte, .dark .rt-section, .dark .rt-corps, .dark .rt-doublon, .dark .rt-saisie-petite, .dark .rt-btn-xs { border-color: #2a3446; }
.dark .rt-select, .dark .rt-recherche, .dark .rt-liste, .dark .rt-carte, .dark .rt-section, .dark .rt-corps { background: #121826; color: #e5e7eb; }
.dark .rt-saisie-petite { background: #0a0e17; color: #f3f4f6; } .dark .rt-btn-xs { color: #e5e7eb; }
.dark .rt-segment button { color: #d1d5db; } .dark .rt-segment button:hover, .dark .rt-ligne-retour:hover { background: rgba(27,35,51,.6); } .dark .rt-segment button.actif { background: #3a4661; color: #fff; }
.dark .rt-liste > * + * { border-color: #1b2333; } .dark .rt-vignette { background: #1b2333; color: #3a4661; }
.dark .rt-colonne { background: rgba(18,24,38,.6); }
.dark .rt-corps, .dark .rt-bulle-texte, .dark .rt-section-corps { color: #e5e7eb; } .dark .rt-bulle, .dark .rt-doublon, .dark .rt-correctif { background: rgba(27,35,51,.6); }
.dark .rt-doublon { color: #e5e7eb; } .dark .rt-lien-fort { color: #85a8ff; }
.dark .rt-valider { border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.1); } .dark .rt-valider p, .dark .rt-btn-ambre { color: #fef3c7; }
.dark .rt-analyse { border-color: rgba(139,92,246,.3); background: rgba(139,92,246,.05); } .dark .rt-analyse > header { border-color: rgba(139,92,246,.2); }
.dark .rt-analyse-contenu { color: #f3f4f6; } .dark .rt-fichier { color: #ddd6fe; } .dark .rt-prose code { background: #1b2333; } .dark .rt-lien-violet, .dark .rt-violet { color: #c4b5fd; }

/* ── Supervision des comptes (components/supervision) ─────────────────────────────────────────── */
.sv-page { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.sv-page.sv-large { max-width: 1400px; }
.sv-titre { font-size: 20px; line-height: 28px; font-weight: 700; color: #111827; margin: 0; }
.sv-titre-compte { font-size: 18px; line-height: 28px; font-weight: 700; color: #111827; margin: 0; }
.sv-sous-titre { font-size: 14px; color: #6b7280; margin: 0; }
.sv-note { font-size: 12px; color: #6b7280; margin: 0; }
.sv-mt { margin-top: 4px; } .sv-mb { margin-bottom: 12px; }
.sv-vide { padding: 40px 0; text-align: center; font-size: 14px; color: #9ca3af; margin: 0; }
td.sv-vide { padding: 32px 0; }
.sv-erreur { padding: 24px; color: #b91c1c; font-size: 14px; }
.sv-gris { color: #9ca3af; } .sv-gris-fonce { color: #4b5563; } .sv-fort { font-weight: 500; color: #111827; } .sv-normal { font-weight: 400; }
.sv-xs { font-size: 12px; } .sv-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.sv-nowrap { white-space: nowrap; } .sv-min0 { min-width: 0; } .sv-flex1 { flex: 1; } .sv-bloc { display: block; }
.sv-tronque { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; display: block; }
.sv-casse { overflow-wrap: anywhere; }
.sv-sous { display: block; font-size: 12px; color: #9ca3af; font-weight: 400; }
.sv-pile { display: flex; flex-direction: column; gap: 20px; }
.sv-pile-serree { display: flex; flex-direction: column; gap: 12px; }
.sv-pile-mini { display: flex; flex-direction: column; gap: 4px; border: 0; padding: 0; margin: 0; }
.sv-carte { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.sv-carte-liste { overflow: hidden; }
.sv-defile { overflow-x: auto; }
.sv-section { padding: 16px; }
.sv-section-titre { font-size: 14px; font-weight: 600; color: #111827; margin: 0 0 8px; }
.sv-section > .sv-section-titre + .sv-note { margin-top: -6px; }

/* Avertissement (migration absente) */
.sv-avertissement { display: flex; gap: 12px; padding: 12px 16px; border-radius: 12px; font-size: 14px; background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.sv-avertissement p { margin: 0; } .sv-avertissement svg { margin-top: 2px; flex-shrink: 0; }

/* Tuiles */
.sv-tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .sv-tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .sv-tuiles-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.sv-tuile { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 16px; }
.sv-tuile-label { font-size: 12px; color: #6b7280; margin: 0; }
.sv-tuile-valeur { font-size: 24px; line-height: 32px; font-weight: 600; font-variant-numeric: tabular-nums; margin: 2px 0 0; color: #111827; }
.sv-tuile-aide { font-size: 11px; color: #9ca3af; margin: 2px 0 0; }
.sv-ton-bad { color: #dc2626; } .sv-ton-good { color: #059669; }

/* Onglets */
.sv-onglets { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid #e5e7eb; overflow-x: auto; }
.sv-onglet { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 14px; font-weight: 500; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; background: none; color: #6b7280; cursor: pointer; transition: color .15s; }
.sv-onglet:hover { color: #1f2937; }
.sv-onglet.actif { border-bottom-color: #4f46e5; color: #4338ca; }
.sv-onglet-compte { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 9999px; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; background: #f3f4f6; color: #4b5563; }
.sv-onglet-compte.urgent { background: #ef4444; color: #fff; }

/* Avatar, rôle, barres */
.sv-avatar { position: relative; flex-shrink: 0; width: 32px; height: 32px; font-size: 12px; border-radius: 9999px; background: #e0e7ff; color: #4338ca; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.sv-avatar-lg { width: 48px; height: 48px; font-size: 16px; }
.sv-en-ligne { position: absolute; bottom: -2px; right: -2px; width: 10px; height: 10px; border-radius: 9999px; background: #10b981; box-shadow: 0 0 0 2px #fff; }
.sv-role { display: inline-flex; padding: 2px 8px; border-radius: 9999px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.sv-role-gray { background: #f3f4f6; color: #4b5563; } .sv-role-blue { background: #dbeafe; color: #1d4ed8; } .sv-role-purple { background: #f3e8ff; color: #7e22ce; }
.sv-role-emerald { background: #d1fae5; color: #047857; } .sv-role-amber { background: #fef3c7; color: #b45309; } .sv-role-rose { background: #ffe4e6; color: #be123c; }
.sv-role-cyan { background: #cffafe; color: #0e7490; } .sv-role-indigo { background: #e0e7ff; color: #4338ca; }
.sv-barres { display: flex; align-items: flex-end; gap: 2px; }
.sv-barre-cible { flex: 1; min-width: 3px; height: 100%; display: flex; align-items: flex-end; }
.sv-barre { width: 100%; border-radius: 2px 2px 0 0; background: #6366f1; }
.sv-barre-cible:hover .sv-barre { background: #4338ca; }
.sv-barre.sv-barre-vide, .sv-barre-cible:hover .sv-barre.sv-barre-vide { background: #f3f4f6; }

/* Tableaux */
.sv-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.sv-table thead tr { text-align: left; font-size: 12px; color: #9ca3af; border-bottom: 1px solid #f3f4f6; }
.sv-table th { font-weight: 500; padding: 10px 12px; white-space: nowrap; }
.sv-table td { padding: 10px 12px; color: #374151; }
.sv-table tbody tr { border-bottom: 1px solid #f9fafb; }
.sv-table tbody tr:last-child { border-bottom: 0; }
.sv-table tr.sv-survol:hover { background: rgba(249, 250, 251, .6); }
.sv-table .sv-th-premier, .sv-table .sv-td-premier { padding-left: 16px; }
.sv-th-barres { width: 160px; } .sv-th-fleche { width: 32px; } .sv-th-action { width: 96px; }
.sv-table .sv-td-fleche { padding: 0 12px 0 0; } .sv-table .sv-td-action { padding-right: 16px; text-align: right; }
.sv-droite, .sv-table .sv-nombre { text-align: right; } .sv-nombre { font-variant-numeric: tabular-nums; }
.sv-td-fleche svg { color: #d1d5db; display: block; }
.sv-page-col { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-compte { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.sv-nom { display: flex; align-items: center; gap: 6px; font-weight: 500; color: #111827; overflow: hidden; white-space: nowrap; }
.sv-vous { font-size: 11px; font-weight: 400; color: #9ca3af; }
.sv-email { display: block; font-size: 12px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-suspendu { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 600; background: #fee2e2; color: #b91c1c; }
.sv-suspendu-rond { padding: 2px 8px; border-radius: 9999px; font-size: 11px; }
.sv-en-ligne-texte { color: #059669; font-weight: 500; }
.sv-avant-vente { margin-left: 8px; font-size: 10px; font-weight: 600; text-transform: uppercase; color: #d97706; }
.sv-proprio { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.sv-proprio:hover, .sv-lien-souligne:hover { text-decoration: underline; }
.sv-lien-souligne { color: inherit; text-decoration: none; }
.sv-bouton-ouvrir { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; font-size: 12px; font-weight: 500; border-radius: 8px; border: 1px solid #e5e7eb; color: #374151; text-decoration: none; }
.sv-bouton-ouvrir:hover { background: #f3f4f6; }

/* Filtres */
.sv-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sv-recherche { position: relative; flex: 1; min-width: 12rem; }
.sv-recherche > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
.sv-recherche > input { width: 100%; padding-left: 36px; }
.sv-select { padding: 8px 12px; font-size: 14px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #111827; font-family: inherit; }
.sv-select:focus { outline: none; box-shadow: 0 0 0 2px #6366f1; }
.sv-plein { width: 100%; margin-top: 4px; }
.sv-bouton-bord { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 14px; border: 1px solid #e5e7eb; border-radius: 8px; color: #374151; text-decoration: none; }
.sv-bouton-bord:hover { background: #f9fafb; }

/* Journal */
.sv-jour { padding: 6px 16px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; background: #f9fafb; border-top: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6; margin: 0; }
.sv-jour:first-child { border-top: 0; }
.sv-lignes { list-style: none; margin: 0; padding: 0; }
.sv-lignes > li + li { border-top: 1px solid #f9fafb; }
.sv-evenement { display: flex; align-items: flex-start; gap: 12px; padding: 10px 16px; font-size: 14px; }
.sv-evt-icone { margin-top: 2px; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sv-ton-fond-neutral { background: #f3f4f6; color: #6b7280; } .sv-ton-fond-good { background: #ecfdf5; color: #059669; }
.sv-ton-fond-info { background: #eff6ff; color: #2563eb; } .sv-ton-fond-warn { background: #fffbeb; color: #d97706; } .sv-ton-fond-bad { background: #fef2f2; color: #dc2626; }
.sv-evt-texte { min-width: 0; flex: 1; }
.sv-evt-phrase { color: #1f2937; margin: 0; }
.sv-verbe { color: #4b5563; }
.sv-lien-projet { color: #4338ca; text-decoration: none; } .sv-lien-projet:hover { text-decoration: underline; }
.sv-evt-detail { font-size: 12px; color: #9ca3af; margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-alerte .sv-evt-detail { white-space: normal; }
.sv-evt-heure { font-size: 12px; color: #9ca3af; font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; text-align: right; }
.sv-plus { width: 100%; padding: 8px 0; font-size: 14px; color: #4f46e5; background: none; border: 0; cursor: pointer; }
.sv-plus:hover { text-decoration: underline; }

/* Alertes */
.sv-alerte { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; font-size: 14px; }
.sv-gravite { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9999px; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.sv-gravite-3 { background: #fef2f2; color: #b91c1c; } .sv-gravite-2 { background: #fffbeb; color: #b45309; } .sv-gravite-1 { background: #eff6ff; color: #1d4ed8; }
.sv-lien-compte { font-size: 12px; color: #4f46e5; text-decoration: none; flex-shrink: 0; } .sv-lien-compte:hover { text-decoration: underline; }

/* Fiche d'un compte */
.sv-retour { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #6b7280; text-decoration: none; align-self: flex-start; }
.sv-retour:hover { color: #1f2937; }
.sv-entete { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; padding: 16px; }
.sv-entete-texte { min-width: 0; flex: 1; }
.sv-entete-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sv-controles { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sv-controles-boutons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.sv-btn-controle { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 14px; font-weight: 500; border-radius: 8px; border: 1px solid; background: #fff; cursor: pointer; transition: background .15s; font-family: inherit; }
.sv-btn-controle:disabled { opacity: .5; cursor: default; }
.sv-btn-rouge { border-color: #fecaca; color: #b91c1c; } .sv-btn-rouge:not(:disabled):hover { background: #fef2f2; }
.sv-btn-vert { border-color: #a7f3d0; color: #047857; } .sv-btn-vert:not(:disabled):hover { background: #ecfdf5; }
.sv-btn-gris { border-color: #e5e7eb; color: #374151; } .sv-btn-gris:not(:disabled):hover { background: #f9fafb; }
.sv-tourne { animation: sv-tourne 1s linear infinite; color: #9ca3af; align-self: center; } @keyframes sv-tourne { to { transform: rotate(360deg); } }
.sv-flash-ok { font-size: 12px; color: #059669; margin: 0; } .sv-flash-erreur { font-size: 12px; color: #dc2626; margin: 0; }
.sv-transfert { width: 100%; max-width: 28rem; margin-top: 4px; padding: 16px; border-radius: 12px; border: 1px solid #e5e7eb; background: #f9fafb; font-size: 14px; display: flex; flex-direction: column; gap: 12px; }
.sv-transfert-tete { display: flex; align-items: center; justify-content: space-between; } .sv-transfert-tete p { margin: 0; font-weight: 600; }
.sv-icone-btn { background: none; border: 0; padding: 0; cursor: pointer; color: #9ca3af; display: flex; }
.sv-transfert-liste-tete { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #6b7280; margin-bottom: -8px; }
.sv-lien-btn { background: none; border: 0; padding: 0; cursor: pointer; font-size: 12px; color: #6b7280; } .sv-lien-btn:hover { text-decoration: underline; }
.sv-transfert-liste { list-style: none; margin: 0; padding: 0; max-height: 12rem; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.sv-case { display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 0; }
.sv-btn-primaire { width: 100%; padding: 8px 0; border-radius: 8px; background: #4f46e5; color: #fff; font-weight: 500; border: 0; cursor: pointer; font-size: 14px; font-family: inherit; }
.sv-btn-primaire:not(:disabled):hover { background: #4338ca; } .sv-btn-primaire:disabled { opacity: .5; cursor: default; }
.sv-deux { display: grid; gap: 20px; } @media (min-width: 768px) { .sv-deux { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sv-liste-simple { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.sv-ligne-flex { display: flex; align-items: center; gap: 8px; } .sv-ligne-flex.sv-haut { align-items: flex-start; }
.sv-ligne-flex.sv-haut > svg { margin-top: 2px; flex-shrink: 0; }
.sv-a-droite { margin-left: auto; }
.sv-creation-tete { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 14px; font-weight: 600; color: #111827; border-bottom: 1px solid #f3f4f6; margin: 0; }
.sv-creation-vide { padding: 12px 16px; font-size: 14px; color: #9ca3af; margin: 0; }
.sv-creation { display: flex; align-items: center; gap: 12px; padding: 8px 16px; font-size: 14px; }
.sv-creation-plus { width: 100%; padding: 8px 0; font-size: 12px; color: #4f46e5; background: none; border: 0; border-top: 1px solid #f3f4f6; cursor: pointer; }
.sv-creation-plus:hover { text-decoration: underline; }

/* Bandeau violet d'un projet ouvert en supervision (ProjectFrame.tsx) */
.sv-bandeau-projet { display: flex; align-items: center; gap: 8px; padding: 6px 16px; font-size: 12px; background: #faf5ff; color: #6b21a8; border-bottom: 1px solid #e9d5ff; margin: -16px -16px 16px; }
.sv-bandeau-projet svg { flex-shrink: 0; }
.sv-bandeau-projet a { margin-left: auto; color: inherit; text-decoration: underline; flex-shrink: 0; }
.sv-bandeau-projet a:hover { text-decoration: none; }

/* Mode nuit */
.dark .sv-titre, .dark .sv-titre-compte, .dark .sv-fort, .dark .sv-nom, .dark .sv-section-titre, .dark .sv-creation-tete, .dark .sv-tuile-valeur { color: #f3f4f6; }
.dark .sv-sous-titre, .dark .sv-note, .dark .sv-tuile-label { color: #9ca3af; }
.dark .sv-carte, .dark .sv-tuile { background: #111827; border-color: #1f2937; }
.dark .sv-ton-bad { color: #fca5a5; } .dark .sv-ton-good, .dark .sv-en-ligne-texte { color: #6ee7b7; }
.dark .sv-onglets { border-bottom-color: #1f2937; } .dark .sv-onglet { color: #9ca3af; } .dark .sv-onglet:hover { color: #f3f4f6; } .dark .sv-onglet.actif { color: #a5b4fc; }
.dark .sv-onglet-compte { background: #1f2937; color: #d1d5db; } .dark .sv-onglet-compte.urgent { background: #ef4444; color: #fff; }
.dark .sv-avatar { background: rgba(79, 70, 229, .25); color: #c7d2fe; } .dark .sv-en-ligne { box-shadow: 0 0 0 2px #111827; }
.dark .sv-barre { background: #818cf8; } .dark .sv-barre-cible:hover .sv-barre { background: #c7d2fe; } .dark .sv-barre.sv-barre-vide { background: #1f2937; }
.dark .sv-table thead tr { color: #6b7280; border-bottom-color: #1f2937; } .dark .sv-table tbody tr { border-bottom-color: #1f2937; }
.dark .sv-table td { color: #e5e7eb; } .dark .sv-table tr.sv-survol:hover { background: rgba(31, 41, 55, .6); } .dark .sv-gris-fonce { color: #d1d5db; }
.dark .sv-select { background: #111827; border-color: #1f2937; color: #f3f4f6; }
.dark .sv-bouton-bord, .dark .sv-bouton-ouvrir { border-color: #374151; color: #e5e7eb; } .dark .sv-bouton-bord:hover, .dark .sv-bouton-ouvrir:hover { background: #1f2937; }
.dark .sv-jour { background: rgba(3, 7, 18, .6); border-color: #1f2937; color: #6b7280; }
.dark .sv-lignes > li + li { border-top-color: #1f2937; }
.dark .sv-evt-phrase { color: #f3f4f6; } .dark .sv-verbe { color: #d1d5db; } .dark .sv-lien-projet { color: #a5b4fc; } .dark .sv-evt-detail, .dark .sv-evt-heure { color: #6b7280; }
.dark .sv-ton-fond-neutral { background: #1f2937; color: #9ca3af; } .dark .sv-ton-fond-good { background: rgba(16, 185, 129, .15); color: #6ee7b7; }
.dark .sv-ton-fond-info { background: rgba(59, 130, 246, .15); color: #93c5fd; } .dark .sv-ton-fond-warn { background: rgba(245, 158, 11, .15); color: #fcd34d; } .dark .sv-ton-fond-bad { background: rgba(239, 68, 68, .15); color: #fca5a5; }
.dark .sv-gravite-3 { background: rgba(239, 68, 68, .15); color: #fca5a5; } .dark .sv-gravite-2 { background: rgba(245, 158, 11, .15); color: #fcd34d; } .dark .sv-gravite-1 { background: rgba(59, 130, 246, .15); color: #93c5fd; }
.dark .sv-suspendu { background: rgba(239, 68, 68, .15); color: #fca5a5; }
.dark .sv-avertissement { background: rgba(245, 158, 11, .1); color: #fde68a; border-color: rgba(245, 158, 11, .3); }
.dark .sv-btn-controle { background: transparent; } .dark .sv-btn-rouge { border-color: rgba(239, 68, 68, .3); color: #fca5a5; } .dark .sv-btn-vert { border-color: rgba(16, 185, 129, .3); color: #6ee7b7; }
.dark .sv-btn-gris { border-color: #374151; color: #e5e7eb; } .dark .sv-btn-controle:not(:disabled):hover { background: #1f2937; }
.dark .sv-transfert { background: #030712; border-color: #374151; }
.dark .sv-bandeau-projet { background: rgba(168, 85, 247, .1); color: #e9d5ff; border-bottom-color: rgba(168, 85, 247, .3); }
.dark .sv-role-gray { background: #1f2937; color: #d1d5db; } .dark .sv-role-blue { background: rgba(59,130,246,.15); color: #93c5fd; } .dark .sv-role-purple { background: rgba(168,85,247,.15); color: #d8b4fe; }
.dark .sv-role-emerald { background: rgba(16,185,129,.15); color: #6ee7b7; } .dark .sv-role-amber { background: rgba(245,158,11,.15); color: #fcd34d; } .dark .sv-role-rose { background: rgba(244,63,94,.15); color: #fda4af; }
.dark .sv-role-cyan { background: rgba(6,182,212,.15); color: #67e8f9; } .dark .sv-role-indigo { background: rgba(99,102,241,.15); color: #a5b4fc; }

/* Lien « choisir mon mot de passe » sur la fiche d'un compte (supervision, 03/12/2026) */
.sv-lien-mdp { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.sv-lien-mdp-champ { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; }
