/* gp-listes.css — écrans « liste » au MODÈLE de la liste Interventions en production (PASSE_TABLEAUX, 25/09).
   Réutilise telles quelles les classes .gpi-* de gp-interventions.css (barre, recherche, boutons, compteur) et gp-table.
   Ici seulement ce que gp-interventions.css limite à #view-interventions / #gpi-pills. */
.page-content.gp-plein > .view.active.gpl-ecran{ display:flex; flex-direction:column; height:100%; min-height:0; }
.gpl-ecran .gp-page{ flex:1 1 auto; height:auto; background:transparent; }
.gpl-ecran table.gt{ table-layout:fixed; }

/* pastilles-compteurs cliquables : exactement celles d'Interventions (#gpi-pills) */
.gpl-pills{ display:inline-flex; align-items:center; gap:6px; min-width:0; overflow-x:auto; scrollbar-width:none; }
.gpl-pills::-webkit-scrollbar{ display:none; }
.gpl-pills .gpi-pill.filter-chip{ height:26px; margin:0; padding:0 10px; border:1px solid #dcdce1; border-radius:13px;
  background:#fff; color:#1c1c1e; font-size:12px; font-weight:500; display:inline-flex; align-items:center; gap:6px;
  white-space:nowrap; cursor:pointer; flex:0 0 auto; box-shadow:none; }
.gpl-pills .gpi-pill.filter-chip b{ font-weight:600; color:#6e6e73; font-variant-numeric:tabular-nums; }
.gpl-pills .gpi-pill.filter-chip.active{ background:#0a66d6; border-color:#0a66d6; color:#fff; }
.gpl-pills .gpi-pill.filter-chip.active b{ color:#fff; }

/* actions de ligne : icônes 28 px avec info-bulle, sur une ligne */
.gpl-act{ display:inline-flex; gap:4px; align-items:center; }
.gpl-ico{ width:28px; height:28px; padding:0; border:1px solid #dcdce1; border-radius:7px; background:#fff; color:#1c1c1e;
  display:inline-flex; align-items:center; justify-content:center; font-size:13px; line-height:1; cursor:pointer; flex:0 0 auto; }
.gpl-ico:hover{ background:#f5f5f7; }
.gpl-ico.gpl-rouge{ color:#c62828; border-color:#f1c4c4; }
.gpl-mono{ font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:12px; }
.gpl-warn{ color:#a35200; font-weight:600; }
.gpl-ko{ color:#c62828; font-weight:600; }

/* cellules riches sur une ligne (Demandes RDV, 25/09) : pastille + badges + texte coupé « … », complet au survol */
.gpl-cell{ display:inline-flex; align-items:center; gap:6px; min-width:0; max-width:100%; overflow:hidden; vertical-align:middle; }
.gpl-coupe{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.gpl-badge{ display:inline-block; padding:0 6px; border-radius:10px; font-size:11px; font-weight:700; line-height:18px; white-space:nowrap; flex:0 0 auto; }
.gpl-note{ color:#6e6e73; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.gpl-muted{ color:#8e8e93; white-space:nowrap; }
/* boutons d'action de ligne (26 px, contour coloré, comme « Valider » de Prix à valider) */
.gpl-btn, .gpl-btn-ok, .gpl-btn-ko{ height:26px; margin:0; padding:0 10px; border-radius:7px; font:inherit; font-size:12.5px; font-weight:600;
  cursor:pointer; white-space:nowrap; display:inline-flex; align-items:center; }
.gpl-btn{ border:1px solid #b9d0f2; background:#e5effd; color:#0a58c2; }
.gpl-btn-ok{ border:1px solid #b7dfc2; background:#e3f4e8; color:#1a7f37; }
.gpl-btn-ko{ border:1px solid #f1c4c4; background:#fdecec; color:#991b1b; }
.gpl-btn:hover{ background:#d8e7fb; } .gpl-btn-ok:hover{ background:#d2eddb; } .gpl-btn-ko:hover{ background:#fadcdc; }
@media (pointer:coarse){ .gpl-btn, .gpl-btn-ok, .gpl-btn-ko{ height:36px; padding:0 12px; } }

/* Interventions › Catalogue types au modèle (25/09) : la page occupe la hauteur, seule la zone du tableau défile */
#inter-catalogue-page.gpl-cat{ display:flex; flex-direction:column; flex:1 1 auto; min-height:0; overflow:hidden; }
#inter-catalogue-page.gpl-cat .gp-page{ flex:1 1 auto; height:auto; min-height:0; background:transparent; }
#inter-catalogue-page.gpl-cat table.gt{ table-layout:fixed; }

/* avatar à initiales dans une cellule (Donneurs d'ordre, 25/09) : 24 px pour tenir dans une ligne de 34 px */
.gpl-avatar{ width:24px; height:24px; border-radius:50%; background:#0a58c2; color:#fff; display:inline-flex; align-items:center; justify-content:center;
  font-size:10px; font-weight:700; flex:0 0 auto; }

/* anciens blocs remplacés par un écran au modèle mais gardés dans la page (identifiants lus ailleurs) : Matériel, 25/09 */
.gpl-cache{ display:none !important; }

/* texte d'aide d'un écran, replié derrière le bouton ⓘ de la rangée (Documents requis, 25/09) */
.gpl-aide{ margin:0 0 8px; padding:8px 12px; background:#eff6ff; border:1px solid #bfdbfe; border-radius:8px; font-size:12.5px; line-height:1.45; color:#1e40af; max-width:980px; }
.gpl-aide[hidden]{ display:none; }

/* champs d'un formulaire placés dans la rangée 1, à la hauteur de la recherche du modèle (Bons à facturer DO, 25/09) */
.gpi-r .gpl-champ{ height:32px; min-width:0; margin:0; padding:0 8px; border:1px solid #dcdce1; border-radius:8px; background:#fff; color:#1c1c1e;
  font:inherit; font-size:13px; box-sizing:border-box; width:auto; flex:0 0 auto; }
.gpi-r select.gpl-champ{ max-width:240px; }
.gpi-r input[type="month"].gpl-champ{ width:150px; }
.gpi-r .gpl-fichier{ flex:0 1 300px; width:300px; min-width:0; font-size:12.5px; }
/* liste habillée par le widget maison « custom-select » (div.cs-wrap), déplacée entière dans la rangée */
.gpi-r .cs-wrap.gpl-cs{ flex:0 1 240px; width:240px; min-width:170px; margin:0; }
.gpi-r .cs-wrap.gpl-cs .cs-trigger{ height:32px; min-height:0; padding:0 10px; font-size:13px; border-radius:8px; }
.gpi-r[hidden]{ display:none !important; }
.gpl-vide{ padding:28px 12px; text-align:center; color:#6e6e73; font-size:13px; }

/* ── Fenêtres à liste au modèle « Prix à valider » (maquette validée par Omar) : gpm-* (Articles à valider, 25/09) ──
   Même gabarit : fond voilé, boîte 14 px d'arrondi, en-tête 56 px (titre 17 px + aide + ✕ 32 px), rangées 34 / 30 px, zone du tableau
   encadrée qui seule défile. Clair par défaut ; sombre avec le mode sombre de GestPlan (body.dark-mode). */
.gpm-modal{ --gm-bg:#fff; --gm-text:#1c1c1e; --gm-muted:#6e6e73; --gm-line:#e3e3e8; --gm-field:#ececf0; --gm-btn:#fff; --gm-btn-line:#dcdce1;
  --gm-hover:#f5f5f7; --gm-accent:#0a66d6;
  position:fixed; inset:0; z-index:2000; background:rgba(28,28,30,.42); display:flex; align-items:center; justify-content:center;
  font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif; color:var(--gm-text); }
body.dark-mode .gpm-modal{ --gm-bg:#1c1c1e; --gm-text:#f2f2f7; --gm-muted:#98989f; --gm-line:#38383a; --gm-field:#2c2c2e; --gm-btn:#2c2c2e;
  --gm-btn-line:#48484a; --gm-hover:#3a3a3c; --gm-accent:#0a84ff; }
.gpm-modal *{ box-sizing:border-box; }
.gpm-box{ background:var(--gm-bg); border-radius:14px; box-shadow:0 24px 60px rgba(0,0,0,.28); display:flex; flex-direction:column; overflow:hidden;
  width:min(1180px,96vw); height:min(680px,92vh); }
.gpm-head{ flex:0 0 auto; height:56px; display:flex; align-items:center; gap:12px; padding:0 12px 0 20px; border-bottom:1px solid var(--gm-line); }
.gpm-titre{ margin:0; font-size:17px; font-weight:600; white-space:nowrap; line-height:1.2; }
.gpm-aide{ margin:0; flex:1 1 auto; min-width:0; color:var(--gm-muted); font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gpm-x{ width:32px; height:32px; border:0; border-radius:8px; background:var(--gm-field); color:var(--gm-muted); display:inline-flex; align-items:center;
  justify-content:center; cursor:pointer; flex:0 0 auto; padding:0; margin:0 0 0 auto; font-size:15px; }
@media (pointer:coarse){ .gpm-x{ width:44px; height:44px; } }
.gpm-body{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
.gpm-bar{ flex:0 0 auto; display:flex; flex-direction:column; gap:6px; padding:10px 16px 8px; }
.gpm-r{ display:flex; align-items:center; gap:8px; min-width:0; }
.gpm-r1{ height:34px; } .gpm-r2{ height:30px; }
.gpm-search{ flex:1 1 auto; min-width:0; height:32px; display:flex; align-items:center; gap:8px; padding:0 10px; border-radius:9px; background:var(--gm-field);
  color:#8e8e93; margin:0; cursor:text; }
.gpm-search:focus-within{ box-shadow:0 0 0 2px var(--gm-accent); background:var(--gm-bg); }
.gpm-search input{ flex:1 1 auto; min-width:0; width:100%; height:100%; border:0; background:transparent; font:inherit; font-size:13px; color:var(--gm-text);
  outline:none; padding:0; margin:0; box-shadow:none; }
.gpm-count{ color:var(--gm-muted); font-size:13px; white-space:nowrap; font-variant-numeric:tabular-nums; flex:0 0 auto; }
.gpm-zone{ flex:1 1 auto; min-height:0; margin:0 16px 16px; border:1px solid var(--gm-line); border-radius:10px; overflow:auto; position:relative; }
.gpm-zone table.gt{ table-layout:fixed; }
.gpm-zone .gt td, .gpm-zone .gt th{ color:var(--gm-text); }
.gpm-zone .gt th .gt-sort:empty{ display:none; }
.gpm-zone .gt td:has(> .gpl-act){ overflow:visible; text-overflow:clip; }
.gpm-cache{ display:none !important; }
.gpm-modal [hidden]{ display:none !important; }
.gpm-r .gpl-fichier{ flex:0 1 320px; width:320px; min-width:0; font-size:12.5px; }
/* champs, libellés et boutons d'une rangée de fenêtre (Rapprochement Verisure, 25/09) */
.gpm-r .gpl-champ{ height:32px; min-width:0; margin:0; padding:0 8px; border:1px solid var(--gm-btn-line); border-radius:8px; background:var(--gm-btn);
  color:var(--gm-text); font:inherit; font-size:13px; box-sizing:border-box; width:auto; flex:0 0 auto; }
.gpm-r .gpm-lib{ font-size:12.5px; color:var(--gm-muted); flex:0 0 auto; }
.gpm-r select.gpl-champ{ max-width:240px; }
.gpm-r .gpl-btn, .gpm-r .gpl-btn-ok, .gpm-r .gpl-btn-ko{ height:30px; }
.gpm-r button:disabled{ opacity:.45; cursor:default; }
.gpm-reglage{ margin:0 16px 8px; padding:10px 12px; border:1px solid var(--gm-line); border-radius:10px; background:var(--gm-field);
  display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; flex:0 0 auto; }

/* Finance : onglets Synthèse, Grille et Écarts au modèle de l'onglet « Carburant & péages » (PASSE_TABLEAUX n° 21, 25/09) */
#view-finance .fin-table-zone table.gt{ table-layout:fixed; }
#view-finance select.fin-btn{ padding:0 8px; max-width:220px; }
#view-finance .fin-r2{ flex:0 0 auto; display:flex; align-items:center; gap:8px; height:30px; margin:0 0 8px; min-width:0; }
#view-finance .fin-r2-droite{ margin-left:auto; white-space:nowrap; }
#view-finance #finance-content > .gpl-aide{ flex:0 0 auto; }
#view-finance .fin-detail{ flex:0 0 auto; max-height:38%; display:flex; flex-direction:column; margin-top:8px; background:var(--surface, #fff);
  border-radius:10px; box-shadow:0 0 0 1px var(--border, #e3e3e8); overflow:hidden; }
#view-finance .fin-detail[hidden]{ display:none; }
#view-finance .fin-detail-tete{ flex:0 0 auto; display:flex; align-items:center; gap:10px; padding:6px 10px; border-bottom:1px solid var(--border, #e3e3e8); font-size:13px; }
#view-finance .fin-detail-tete .fin-btn{ margin-left:auto; }
#view-finance .fin-detail-zone{ flex:1 1 auto; min-height:0; overflow:auto; }
#view-finance .fin-detail-zone table.gt{ table-layout:fixed; }

/* Factures & devis (FactuV3) : tableaux ALIGNÉS sur le modèle gp-table par le style seulement — logique, fenêtres et appels inchangés
   (PASSE_TABLEAUX n° 22, 25/09 : « autre identité visuelle : aligner le tableau »). Limité aux tableaux de LISTE (carte > table) de #factu-v3-main : Factures, Devis, Paiements, Clients, Articles.
   La fiche facture (tableau des lignes, descriptions longues), l'encadré « en retard » du tableau de bord et les fenêtres d'édition ne changent pas. */
#view-facturation #factu-v3-main .card > table.table{ border-collapse:separate; border-spacing:0; font-size:13px; background:var(--gt-surface, #fff);
  box-shadow:0 0 0 1px var(--gt-grid, #d9d9de); border-radius:8px; overflow:hidden; }
#view-facturation #factu-v3-main .card > table.table th, #view-facturation #factu-v3-main .card > table.table td{ height:var(--gt-row-h, 34px); padding:0 8px !important; line-height:1.2;
  border-right:1px solid var(--gt-grid, #e3e3e8); border-bottom:1px solid var(--gt-grid, #e3e3e8); vertical-align:middle !important; white-space:nowrap;
  font-size:var(--gt-font, 13px); }
#view-facturation #factu-v3-main .card > table.table thead th{ height:34px; background:var(--gt-head-bg, #e8f0fc) !important; color:var(--gt-text, #1c1c1e) !important; font-size:12px !important;
  font-weight:600 !important; text-transform:none !important; letter-spacing:0 !important; }
#view-facturation #factu-v3-main .card > table.table tr > :last-child{ border-right:0; }
#view-facturation #factu-v3-main .card > table.table tbody tr:last-child td{ border-bottom:0; }
/* un tableau plus large que la zone défile dans sa carte au lieu d'être coupé */
#view-facturation #factu-v3-main .card:has(> table.table){ overflow-x:auto !important; }
#view-facturation #factu-v3-main .card > table.table tbody tr:nth-child(even) td{ background:var(--gt-band, #f7f7f9); }
#view-facturation #factu-v3-main .card > table.table tbody tr:hover td{ background:var(--gt-hover, rgba(0, 122, 255, .07)) !important; }
#view-facturation #factu-v3-main .card > table.table .btn-sm{ height:26px; min-height:0; padding:0 8px; font-size:12px; line-height:24px; }
/* barre d'outils de la liste (recherche, statut, bouton) : une seule rangée à la hauteur du modèle */
#view-facturation #factu-v3-main > div:first-child > input.form-input{ height:32px; min-height:0; padding:0 10px; font-size:13px; line-height:32px; flex:0 1 320px !important; max-width:320px; }
#view-facturation #factu-v3-main > div:first-child > select.form-select{ height:32px; font-size:13px; width:auto !important; max-width:220px !important; flex:0 0 auto !important; }
#view-facturation #factu-v3-main > div:first-child > .cs-wrap{ flex:0 0 200px !important; width:200px !important; min-width:170px; margin:0; }
#view-facturation #factu-v3-main > div:first-child > .cs-wrap .cs-trigger{ height:32px; min-height:0; padding:0 10px; font-size:13px; border-radius:8px; }
#view-facturation #factu-v3-main > div:first-child > .btn{ height:32px; min-height:0; padding:0 14px; font-size:13px; }

/* Relances › Multi-interventions (n° 24) : « Préparer les relances » grisé tant que rien n'est coché */
#rlm-preparer:disabled{ opacity:.45; cursor:default; }

/* Doublons (n° 25 = T4) : outil « par période » repliable (mêmes champs qu'avant) + fenêtre de comparaison au gabarit gpm-* */
.dup-periode{ flex:0 0 auto; margin:0 0 8px; padding:10px 12px; border:1px solid var(--gt-grid, #e3e3e8); border-left:4px solid #0a66d6; border-radius:10px;
  background:var(--gt-surface, #fff); color:var(--gt-text, #1c1c1e); max-height:45vh; overflow:auto; }
.dup-periode[hidden]{ display:none !important; }
.dup-periode-titre{ font-weight:600; font-size:14px; margin-bottom:4px; }
.dup-periode-aide{ margin:0 0 8px; font-size:12px; color:var(--gt-muted, #6e6e73); }
.dup-periode-champs{ display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; margin-bottom:8px; }
.dup-periode-champs label{ display:flex; flex-direction:column; gap:2px; font-size:11px; color:var(--gt-muted, #6e6e73); margin:0; }
.dup-periode .gpl-champ{ height:32px; min-height:0; padding:0 8px; border:1px solid var(--gt-grid, #dcdce1); border-radius:8px; font-size:13px;
  background:var(--gt-surface, #fff); color:var(--gt-text, #1c1c1e); }
#dup-periode-btn.on{ background:#e5effd; border-color:#0a66d6; color:#0a58c2; }
.gpm-box.dup-box{ width:min(1040px, 96vw); height:auto; max-height:92vh; }
.dup-box .gpm-r1{ height:auto; min-height:34px; flex-wrap:wrap; }
.dup-box .dup-sep{ width:1px; height:22px; background:var(--gm-line); margin:0 2px; flex:0 0 auto; }
.dup-box .dup-voir{ margin-left:auto; display:inline-flex; gap:6px; }
.dup-box .gpm-zone{ flex:0 1 auto; }
.dup-box button:disabled{ opacity:.45; cursor:default; }
table.dup-cmp-table{ table-layout:fixed; width:100%; }
table.dup-cmp-table th:first-child{ width:150px; }
table.dup-cmp-table thead th{ height:46px; vertical-align:middle; }
table.dup-cmp-table td.dup-champ{ font-weight:600; color:var(--gm-muted); }
table.dup-cmp-table th .dup-sugg{ color:#1a7f37; font-size:11px; margin-left:6px; }
body.dark-mode table.dup-cmp-table th .dup-sugg{ color:#5dd37d; }
table.dup-cmp-table th .dup-cree{ display:block; font-weight:400; font-size:11px; color:var(--gm-muted); line-height:1.3; }
table.dup-cmp-table tr.dup-diff td{ background:#fff8e1 !important; }
body.dark-mode table.dup-cmp-table tr.dup-diff td{ background:#3a3220 !important; }
.dup-vide{ color:var(--gm-muted); }
.dup-fait{ padding:8px 12px; color:#1a7f37; font-weight:600; border-bottom:1px solid var(--gm-line); }

/* Bilan technicien (n° 30) : même schéma que la Finance (gp-finance.css, maquette validée) — règles recopiées pour #view-bilan-tech */
#view-bilan-tech .fin-bar{ flex:0 0 auto; display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:0 0 8px; }
#view-bilan-tech .fin-seg{ display:flex; gap:2px; padding:2px; border-radius:9px; background:var(--surface-2, #ececf0); }
#view-bilan-tech .fin-seg button{ height:28px; padding:0 11px; border:0; border-radius:7px; background:transparent; color:var(--text, #1c1c1e);
  font:inherit; font-size:12.5px; cursor:pointer; white-space:nowrap; }
#view-bilan-tech .fin-seg button.on{ background:var(--surface, #fff); font-weight:600; box-shadow:0 1px 2px rgba(0,0,0,.14); }
#view-bilan-tech .fin-btn, #view-bilan-tech .fin-primary{ height:30px; padding:0 11px; border-radius:8px; font:inherit; font-size:12.5px; font-weight:500;
  cursor:pointer; display:inline-flex; align-items:center; gap:5px; white-space:nowrap; box-sizing:border-box; }
#view-bilan-tech .fin-btn{ border:1px solid var(--border-md, #d1d1d6); background:var(--surface, #fff); color:var(--text, #1c1c1e); }
#view-bilan-tech .fin-btn:disabled{ opacity:.45; cursor:default; }
#view-bilan-tech .fin-primary{ border:0; background:var(--blue, #0a66d6); color:#fff; font-weight:600; }
#view-bilan-tech .fin-actions{ display:flex; align-items:center; gap:8px; margin-left:auto; flex-wrap:wrap; }
#view-bilan-tech .fin-count{ color:var(--text-muted, #6e6e73); font-size:12px; font-variant-numeric:tabular-nums; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#view-bilan-tech .fin-kpis{ flex:0 0 auto; display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:8px; padding:0 0 8px; }
#view-bilan-tech .fin-kpis[hidden], #view-bilan-tech .bt-alerte[hidden]{ display:none; }
#view-bilan-tech .fin-kpi{ background:var(--surface, #fff); border-radius:10px; padding:6px 12px; box-shadow:0 0 0 1px var(--border, #e3e3e8);
  display:flex; flex-direction:column; justify-content:center; gap:1px; min-width:0; }
#view-bilan-tech .fin-kpi span{ font-size:11px; color:var(--text-muted, #6e6e73); font-weight:500; }
#view-bilan-tech .fin-kpi b{ font-size:17px; font-weight:600; font-variant-numeric:tabular-nums; color:var(--text, #1c1c1e); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#view-bilan-tech .fin-kpi small{ font-size:10.5px; color:var(--text-muted, #6e6e73); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#view-bilan-tech .fin-table-zone{ flex:1 1 auto; min-height:0; overflow:auto; background:var(--surface, #fff); border-radius:10px 10px 0 0; box-shadow:0 0 0 1px var(--border, #e3e3e8); }
#view-bilan-tech .fin-totaux{ flex:0 0 44px; display:flex; align-items:center; gap:18px; padding:0 16px; background:var(--surface-2, #f7f7f9);
  border-top:2px solid var(--border-md, #c7c7cc); border-radius:0 0 10px 10px; box-shadow:0 0 0 1px var(--border, #e3e3e8);
  font-variant-numeric:tabular-nums; color:var(--text-muted, #6e6e73); font-size:12.5px; white-space:nowrap; overflow-x:auto; }
#view-bilan-tech .fin-totaux b{ color:var(--text, #1c1c1e); font-weight:600; }
#view-bilan-tech .fin-totaux .fin-tot-titre{ color:var(--text, #1c1c1e); font-weight:600; }
#view-bilan-tech .fin-totaux .fin-ttc{ font-size:15px; font-weight:700; }
#view-bilan-tech .fin-grow{ flex:1 1 auto; }
html:has(#preprod-mark) #view-bilan-tech .fin-totaux{ padding-right:220px; }
#view-bilan-tech select.gpl-champ{ height:30px; min-height:0; padding:0 8px; border:1px solid var(--border-md, #d1d1d6); border-radius:8px; font-size:13px;
  background:var(--surface, #fff); color:var(--text, #1c1c1e); max-width:260px; }
#view-bilan-tech .bt-date{ display:inline-flex; align-items:center; gap:4px; font-size:12.5px; color:var(--text-muted, #6e6e73); margin:0; }
#view-bilan-tech .bt-date input{ height:30px; padding:0 6px; border:1px solid var(--border-md, #d1d1d6); border-radius:8px; font:inherit; font-size:12.5px;
  background:var(--surface, #fff); color:var(--text, #1c1c1e); }
#view-bilan-tech .bt-rappel{ flex:1 1 0; min-width:0; }   /* base 0 : le rappel se raccourcit (…) au lieu de faire passer les dates à la ligne */
#view-bilan-tech .bt-alerte{ flex:0 0 auto; margin:0 0 8px; padding:6px 10px; border-radius:8px; background:#fffbeb; border:1px solid #fcd34d; color:#78350f;
  font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#view-bilan-tech .bt-fort{ font-weight:600; }
/* couleurs des montants (celles de l'ancien écran) : « b.… » pour passer devant « .fin-kpi b » et « .fin-totaux b », à spécificité égale */
#view-bilan-tech .bt-pos, #view-bilan-tech b.bt-pos{ color:#15803d; } #view-bilan-tech .bt-neg, #view-bilan-tech b.bt-neg{ color:#b91c1c; }
#view-bilan-tech b.bt-c-tech{ color:#0f766e; } #view-bilan-tech b.bt-c-do{ color:#1d4ed8; }
#view-bilan-tech .bt-alerte-txt{ color:#b45309; }
.gpl-gris{ color:var(--gt-muted, #6e6e73); }
body.dark-mode #view-bilan-tech .bt-pos, body.dark-mode #view-bilan-tech b.bt-pos{ color:#4ade80; }
body.dark-mode #view-bilan-tech .bt-neg, body.dark-mode #view-bilan-tech b.bt-neg{ color:#f87171; }
body.dark-mode #view-bilan-tech b.bt-c-tech{ color:#2dd4bf; } body.dark-mode #view-bilan-tech b.bt-c-do{ color:#60a5fa; }
body.dark-mode #view-bilan-tech .bt-alerte-txt{ color:#fbbf24; }
body.dark-mode #view-bilan-tech .bt-alerte{ background:#3a3220; border-color:#7c5e10; color:#fde68a; }
@media (max-width: 1200px){ #view-bilan-tech .fin-kpis{ grid-template-columns:repeat(3, minmax(0, 1fr)); } }

/* Sync c-it.fr › Journal de synchronisation (n° 33) : rangée pastilles + recherche, tableau dans une zone qui défile seule */
#cit-sync-log-container .csl-bar{ display:flex; align-items:center; gap:8px; height:34px; margin:0 0 6px; min-width:0; }
#cit-sync-log-container .csl-search{ flex:0 1 320px; min-width:0; }
#cit-sync-log-container .csl-zone{ max-height:52vh; overflow:auto; border-radius:10px; box-shadow:0 0 0 1px var(--gt-grid, #e3e3e8); background:var(--gt-surface, #fff); }
#cit-sync-log-container .csl-zone table.gt{ table-layout:fixed; }
#cit-sync-log-container .csl-err{ color:#b91c1c; }
body.dark-mode #cit-sync-log-container .csl-err{ color:#f87171; }

/* Mes BAF & factures (n° 35) : schéma Finance (barre, 3 tuiles, tableau) dans la vue « Mes bons à facturer » ou dans « Mon espace sous-traitant »,
   et fenêtre « détail du mois » au gabarit gpm-* */
.mb-page .fin-bar{ flex:0 0 auto; display:flex; align-items:center; gap:8px; padding:0 0 8px; min-width:0; }
.mb-page .fin-count{ color:var(--text-muted, #6e6e73); font-size:12px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1 1 0; }
.mb-page .fin-actions{ display:flex; gap:8px; margin-left:auto; flex:0 0 auto; }
.mb-page .fin-btn{ height:30px; padding:0 11px; border-radius:8px; border:1px solid var(--border-md, #d1d1d6); background:var(--surface, #fff); color:var(--text, #1c1c1e);
  font:inherit; font-size:12.5px; cursor:pointer; white-space:nowrap; }
.mb-page .fin-kpis{ flex:0 0 auto; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; padding:0 0 8px; }
.mb-page .fin-kpi{ background:var(--surface, #fff); border-radius:10px; padding:6px 12px; box-shadow:0 0 0 1px var(--border, #e3e3e8); display:flex; flex-direction:column; gap:1px; min-width:0; }
.mb-page .fin-kpi span{ font-size:11px; color:var(--text-muted, #6e6e73); font-weight:500; }
.mb-page .fin-kpi b{ font-size:17px; font-weight:600; font-variant-numeric:tabular-nums; color:var(--text, #1c1c1e); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mb-page .fin-table-zone{ flex:1 1 auto; min-height:0; overflow:auto; background:var(--surface, #fff); border-radius:10px; box-shadow:0 0 0 1px var(--border, #e3e3e8); }
.mb-page.mb-integre{ height:auto; background:transparent; }
.mb-page.mb-integre .fin-table-zone{ flex:0 0 auto; }
.mb-page .mb-mois{ font-weight:600; }
.mb-page .mb-net, .mb-page b.mb-net, .mb-montants b.mb-net{ color:#15803d; font-weight:700; }
.mb-page b.mb-bleu{ color:#1d4ed8; } .mb-page b.mb-err{ color:#b91c1c; font-size:13px; }
.mb-page .mb-frais, .mb-montants b.mb-frais{ color:#6d28d9; } .mb-page .mb-ess, .mb-montants b.mb-ess{ color:#b45309; } .mb-page .mb-peage, .mb-montants b.mb-peage{ color:#0369a1; }
body.dark-mode .mb-page .mb-net, body.dark-mode .mb-page b.mb-net, body.dark-mode .mb-montants b.mb-net{ color:#4ade80; }
body.dark-mode .mb-page b.mb-bleu{ color:#60a5fa; }
body.dark-mode .mb-page .mb-frais, body.dark-mode .mb-montants b.mb-frais{ color:#c4b5fd; }
body.dark-mode .mb-page .mb-ess, body.dark-mode .mb-montants b.mb-ess{ color:#fbbf24; }
body.dark-mode .mb-page .mb-peage, body.dark-mode .mb-montants b.mb-peage{ color:#7dd3fc; }
.gpm-box.mb-box{ width:min(900px, 96vw); height:auto; max-height:92vh; }
.mb-box .gpm-r1{ height:auto; min-height:34px; flex-wrap:wrap; }
.mb-box label.gpl-btn-ok, .mb-box label.gpl-btn-ko{ cursor:pointer; display:inline-flex; align-items:center; margin:0; height:30px; }
.mb-montants{ display:flex; flex-wrap:wrap; gap:6px 18px; padding:0 16px 8px; font-size:12.5px; color:var(--gm-muted); font-variant-numeric:tabular-nums; }
.mb-montants b{ color:var(--gm-text); font-weight:600; }
.mb-montants .mb-gros{ font-size:15px; }
.mb-etats{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:0 16px 10px; font-size:12.5px; color:var(--gm-muted); }
.mb-etat-ok{ color:#1a7f37; font-weight:600; } .mb-etat-ko{ color:#9a3412; font-weight:600; }
body.dark-mode .mb-etat-ok{ color:#4ade80; } body.dark-mode .mb-etat-ko{ color:#fdba74; }
.mb-box .mb-presta{ flex:0 1 auto; min-height:60px; max-height:50vh; }

/* Mon espace sous-traitant (n° 34) : pleine largeur, onglets segmentés (identifiants d'origine), « Mes documents » en gp-table */
#view-mon-espace-st.st-espace .gpi-seg button{ border-bottom:0; margin:0; }
#view-mon-espace-st.st-espace .gpi-seg button.st-esp-tab-active{ background:var(--surface, #fff); box-shadow:0 1px 3px rgba(0,0,0,.12); color:inherit; }
#view-mon-espace-st .st-sec{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
#view-mon-espace-st .st-sec > div{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
#view-mon-espace-st .std-bar{ flex:0 0 auto; display:flex; align-items:center; gap:8px; height:30px; margin:0 0 8px; min-width:0; }
#view-mon-espace-st .std-zone{ flex:1 1 auto; min-height:0; overflow:auto; border-radius:10px; box-shadow:0 0 0 1px var(--gt-grid, #e3e3e8); background:var(--gt-surface, #fff); }
#view-mon-espace-st .std-zone table.gt{ table-layout:fixed; }
.st-oblig{ color:#dc2626; font-size:11.5px; font-weight:600; }
body.dark-mode .st-oblig{ color:#f87171; }
.gpl-pills .gpi-pill.filter-chip.st-pill-alerte:not(.active){ border-color:#fca5a5; color:#991b1b; }
body.dark-mode .gpl-pills .gpi-pill.filter-chip.st-pill-alerte:not(.active){ border-color:#7f1d1d; color:#fca5a5; }

/* Tâches (n° 37) : rond à cocher, titre barré si terminée, échéance en retard en rouge */
#view-tasks .tl-check{ width:20px; height:20px; min-width:20px; border-radius:50%; border:2px solid var(--gt-muted, #8e8e93); background:transparent; padding:0;
  font-size:12px; line-height:1; color:#fff; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
#view-tasks .tl-check.tl-fait{ background:#1a7f37; border-color:#1a7f37; }
#view-tasks .tl-titre{ font-weight:600; }
#view-tasks .tl-barre{ text-decoration:line-through; opacity:.6; }
#view-tasks .tl-retard{ color:#b91c1c; font-weight:600; }
body.dark-mode #view-tasks .tl-retard{ color:#f87171; }

/* Configuration (n° 38) : tableaux des onglets Majorations, Crons OVH, Partenaires, WhatsApp alignés sur le modèle PAR LE STYLE SEULEMENT
   (config.js inchangé : mêmes boutons Valider / Refuser, Activer / Désactiver, jeton…). Les autres onglets à liste affichent les écrans déjà
   passés au modèle (Donneurs, Grille, Relances, Matériel, Équipe, Relances multi, Sync c-it). */
#cfg-majorations-body table.table, #cfg-crons-body table.table, #cfg-partenaires-body table.table, #cfg-whatsapp-body table.table{
  border-collapse:separate; border-spacing:0; width:100%; font-size:13px; background:var(--gt-surface, #fff); box-shadow:0 0 0 1px var(--gt-grid, #d9d9de); border-radius:8px; overflow:hidden; }
#cfg-majorations-body table.table th, #cfg-majorations-body table.table td, #cfg-crons-body table.table th, #cfg-crons-body table.table td,
#cfg-partenaires-body table.table th, #cfg-partenaires-body table.table td, #cfg-whatsapp-body table.table th, #cfg-whatsapp-body table.table td{
  height:var(--gt-row-h, 34px); padding:0 8px !important; line-height:1.2; border-right:1px solid var(--gt-grid, #e3e3e8); border-bottom:1px solid var(--gt-grid, #e3e3e8);
  vertical-align:middle !important; white-space:nowrap; font-size:var(--gt-font, 13px); }
#cfg-majorations-body table.table thead th, #cfg-crons-body table.table thead th, #cfg-partenaires-body table.table thead th, #cfg-whatsapp-body table.table thead th{
  height:34px; background:var(--gt-head-bg, #e8f0fc) !important; color:var(--gt-text, #1c1c1e) !important; font-size:12px !important; font-weight:600 !important;
  text-transform:none !important; letter-spacing:0 !important; text-align:left; }
#cfg-majorations-body table.table tr > :last-child, #cfg-crons-body table.table tr > :last-child, #cfg-partenaires-body table.table tr > :last-child, #cfg-whatsapp-body table.table tr > :last-child{ border-right:0; }
#cfg-majorations-body table.table tbody tr:nth-child(even) td, #cfg-crons-body table.table tbody tr:nth-child(even) td,
#cfg-partenaires-body table.table tbody tr:nth-child(even) td, #cfg-whatsapp-body table.table tbody tr:nth-child(even) td{ background:var(--gt-band, #f7f7f9); }
#cfg-majorations-body table.table tbody tr:hover td, #cfg-crons-body table.table tbody tr:hover td, #cfg-partenaires-body table.table tbody tr:hover td,
#cfg-whatsapp-body table.table tbody tr:hover td{ background:var(--gt-hover, rgba(0, 122, 255, .07)) !important; }
#cfg-majorations-body table.table .btn-sm, #cfg-crons-body table.table .btn-sm, #cfg-partenaires-body table.table .btn-sm, #cfg-whatsapp-body table.table .btn-sm{
  height:26px; min-height:0; padding:0 8px; font-size:12px; line-height:24px; }
/* Majorations : le motif revient à la ligne s'il est long (il faut le lire en entier avant de valider ou refuser) ; les autres cellules restent sur une ligne */
#cfg-majorations-body table.table td:nth-child(4){ white-space:normal; line-height:1.3; padding-top:6px !important; padding-bottom:6px !important; }
/* Majorations : les deux vignettes « En attente » / « Total demandé » affichaient chiffre et libellé collés (« 3En attente ») */
#cfg-majorations-body .stat-card{ display:inline-flex; flex-direction:column; gap:2px; padding:8px 14px; }
#cfg-majorations-body .stat-card .stat-val{ display:block; font-size:18px; font-weight:700; font-variant-numeric:tabular-nums; }
#cfg-majorations-body .stat-card .stat-lbl{ display:block; font-size:11px; color:var(--text-muted, #6e6e73); }
/* Crons : le code technique de la tâche passe à côté du libellé (une ligne au lieu de deux) */
#cfg-crons-body table.table td br{ display:none; }
#cfg-crons-body table.table td br + span{ margin-left:8px; }

/* Schéma Finance COMMUN (classe .gpf posée sur la vue) pour les écrans de chiffres : barre, tuiles compactes, tableau qui défile seul,
   bande de totaux en dessous (Stats par DO n° 29, Tableau de bord KPI n° 31…). Mêmes valeurs que gp-finance.css / #view-bilan-tech. */
.gpf .fin-bar{ flex:0 0 auto; display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:0 0 8px; min-width:0; }
.gpf .fin-actions{ display:flex; align-items:center; gap:8px; margin-left:auto; flex-wrap:wrap; }
.gpf .fin-count{ color:var(--text-muted, #6e6e73); font-size:12px; font-variant-numeric:tabular-nums; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gpf .fin-btn, .gpf .fin-primary{ height:30px; padding:0 11px; border-radius:8px; font:inherit; font-size:12.5px; font-weight:500; cursor:pointer;
  display:inline-flex; align-items:center; gap:5px; white-space:nowrap; box-sizing:border-box; }
.gpf .fin-btn{ border:1px solid var(--border-md, #d1d1d6); background:var(--surface, #fff); color:var(--text, #1c1c1e); }
.gpf .fin-primary{ border:0; background:var(--blue, #0a66d6); color:#fff; font-weight:600; }
.gpf .fin-date{ display:inline-flex; align-items:center; gap:4px; font-size:12.5px; color:var(--text-muted, #6e6e73); margin:0; }
.gpf .fin-date input{ height:30px; padding:0 6px; border:1px solid var(--border-md, #d1d1d6); border-radius:8px; font:inherit; font-size:12.5px;
  background:var(--surface, #fff); color:var(--text, #1c1c1e); }
.gpf .fin-kpis{ flex:0 0 auto; display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:8px; padding:0 0 8px; }
.gpf .fin-kpi{ background:var(--surface, #fff); border-radius:10px; padding:6px 12px; box-shadow:0 0 0 1px var(--border, #e3e3e8); display:flex; flex-direction:column;
  justify-content:center; gap:1px; min-width:0; }
.gpf .fin-kpi span{ font-size:11px; color:var(--text-muted, #6e6e73); font-weight:500; }
.gpf .fin-kpi b{ font-size:17px; font-weight:600; font-variant-numeric:tabular-nums; color:var(--text, #1c1c1e); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gpf .fin-kpi small{ font-size:10.5px; color:var(--text-muted, #6e6e73); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gpf .fin-kpi.gpf-clic{ cursor:pointer; } .gpf .fin-kpi.gpf-clic:hover{ box-shadow:0 0 0 1px var(--blue, #0a66d6), 0 4px 12px rgba(0,0,0,.08); }
.gpf .fin-table-zone{ flex:1 1 auto; min-height:0; overflow:auto; background:var(--surface, #fff); border-radius:10px 10px 0 0; box-shadow:0 0 0 1px var(--border, #e3e3e8); }
.gpf .fin-table-zone.gpf-seule{ border-radius:10px; }
.gpf .fin-totaux{ flex:0 0 44px; display:flex; align-items:center; gap:18px; padding:0 16px; background:var(--surface-2, #f7f7f9); border-top:2px solid var(--border-md, #c7c7cc);
  border-radius:0 0 10px 10px; box-shadow:0 0 0 1px var(--border, #e3e3e8); font-variant-numeric:tabular-nums; color:var(--text-muted, #6e6e73); font-size:12.5px;
  white-space:nowrap; overflow-x:auto; }
.gpf .fin-totaux b{ color:var(--text, #1c1c1e); font-weight:600; }
.gpf .fin-totaux .fin-tot-titre{ color:var(--text, #1c1c1e); font-weight:600; }
.gpf .fin-grow{ flex:1 1 auto; }
html:has(#preprod-mark) .gpf .fin-totaux{ padding-right:220px; }
.gpf .gpf-barre{ display:block; height:8px; border-radius:5px; background:var(--gt-grid, #e3e3e8); overflow:hidden; min-width:40px; }
.gpf .gpf-barre > i{ display:block; height:100%; background:#1976d2; border-radius:5px; }
/* couleurs de chiffres (classes, lisibles en thème sombre) */
.gpf .gpf-bleu, .gpf b.gpf-bleu{ color:#1d4ed8; } .gpf .gpf-vert, .gpf b.gpf-vert{ color:#15803d; } .gpf .gpf-orange, .gpf b.gpf-orange{ color:#b45309; }
.gpf .gpf-rouge, .gpf b.gpf-rouge{ color:#b91c1c; } .gpf .gpf-violet, .gpf b.gpf-violet{ color:#6d28d9; } .gpf .gpf-ciel, .gpf b.gpf-ciel{ color:#0369a1; }
body.dark-mode .gpf .gpf-bleu, body.dark-mode .gpf b.gpf-bleu{ color:#60a5fa; } body.dark-mode .gpf .gpf-vert, body.dark-mode .gpf b.gpf-vert{ color:#4ade80; }
body.dark-mode .gpf .gpf-orange, body.dark-mode .gpf b.gpf-orange{ color:#fbbf24; } body.dark-mode .gpf .gpf-rouge, body.dark-mode .gpf b.gpf-rouge{ color:#f87171; }
body.dark-mode .gpf .gpf-violet, body.dark-mode .gpf b.gpf-violet{ color:#c4b5fd; } body.dark-mode .gpf .gpf-ciel, body.dark-mode .gpf b.gpf-ciel{ color:#7dd3fc; }
body.dark-mode .gpf .gpf-barre > i{ background:#60a5fa; }

/* Tableau de bord KPI (n° 31) : 8 tuiles sur 2 rangées de 4 (1 rangée sur grand écran), deux Top 5 côte à côte */
#view-admin-kpi .fin-kpis{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
@media (min-width: 1700px){ #view-admin-kpi .fin-kpis{ grid-template-columns:repeat(8, minmax(0, 1fr)); } }
#view-admin-kpi .kp-tops{ flex:0 0 auto; display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:12px; }
#view-admin-kpi .kp-titre{ font-size:13px; font-weight:600; margin:0 0 6px; color:var(--text, #1c1c1e); }
#view-admin-kpi .kp-top .fin-table-zone{ flex:none; }

/* Synchro & demandes (n° 32) : un panneau à la fois sous les onglets ; petits tableaux des panneaux au style du modèle */
#view-synchro .sd-zone[hidden], #view-synchro .sd-panneau[hidden]{ display:none !important; }
#view-synchro .sd-panneau{ flex:1 1 auto; min-height:0; overflow:auto; background:var(--surface, #fff); border-radius:10px; box-shadow:0 0 0 1px var(--border, #e3e3e8); padding:12px 16px; }
#view-synchro .sd-texte{ font-size:12.5px; line-height:1.7; }
#view-synchro .sd-sous{ font-weight:600; font-size:12.5px; margin:12px 0 6px; }
#view-synchro .sd-note{ font-size:11.5px; color:var(--text-muted, #6e6e73); margin-top:10px; }
#view-synchro .sd-vide{ font-size:12px; color:var(--text-muted, #6e6e73); }
#view-synchro .sd-form{ display:flex; gap:8px; align-items:center; margin-top:10px; flex-wrap:wrap; }
#view-synchro .sd-form input, #view-synchro .sd-form select{ height:32px; min-height:0; padding:0 8px; border:1px solid var(--border-md, #d1d1d6); border-radius:8px;
  font:inherit; font-size:13px; background:var(--surface, #fff); color:var(--text, #1c1c1e); }
#view-synchro .sd-form input{ width:260px; max-width:100%; } #view-synchro .sd-form select{ width:220px; max-width:100%; }
@media (min-width: 1200px){ #view-synchro .fin-kpis{ grid-template-columns:repeat(7, minmax(0, 1fr)); } }   /* 7 tuiles sur une rangée (pas une tuile seule dessous) */
#view-synchro .sd-tab{ overflow-x:auto; }
#view-synchro .sd-tab table.data-table{ border-collapse:separate; border-spacing:0; width:100%; font-size:13px; background:var(--gt-surface, #fff);
  box-shadow:0 0 0 1px var(--gt-grid, #d9d9de); border-radius:8px; overflow:hidden; }
#view-synchro .sd-tab table.data-table th, #view-synchro .sd-tab table.data-table td{ height:34px; padding:0 8px; line-height:1.2; border-right:1px solid var(--gt-grid, #e3e3e8);
  border-bottom:1px solid var(--gt-grid, #e3e3e8); vertical-align:middle; white-space:nowrap; text-align:left; font-size:13px; }
#view-synchro .sd-tab table.data-table thead th{ background:var(--gt-head-bg, #e8f0fc); color:var(--gt-text, #1c1c1e); font-size:12px; font-weight:600; text-transform:none; letter-spacing:0; }
#view-synchro .sd-tab table.data-table tr > :last-child{ border-right:0; }
#view-synchro .sd-tab table.data-table tbody tr:nth-child(even) td{ background:var(--gt-band, #f7f7f9); }

/* Opérations / Exploitation / Pilotage (n° 26 à 28, consigne T3) : tuiles, onglets (un par tableau), un tableau à la fois */
.xlg-root{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
.xlg-page{ flex:1 1 auto; min-height:0; }
.xlg-page .xlg-dates{ font-size:12.5px; }
.xlg-page .xlg-dates .form-input{ height:30px; min-height:0; }
.xlg-page .xlg-seg{ flex-wrap:wrap; }
.xlg-page .xlg-aide{ flex:1 1 0; min-width:0; }
.xlg-page .xlg-corps{ flex:1 1 auto; min-height:0; display:flex; gap:12px; }
.xlg-page .xlg-zone{ flex:1 1 auto; min-width:0; }
.xlg-page .xlg-cote{ flex:0 0 380px; min-height:0; overflow:auto; }
.xlg-page .xlg-cote[hidden], .xlg-page .xlg-cote:empty{ display:none; }
.xlg-page .xlg-html{ display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }

/* Thème sombre de l'APPLICATION (bouton de GestPlan → body.dark-mode) : les teintes dérivées des tableaux (titres, bandes, quadrillage) sont
   calculées dans gp-table.css au niveau :root, donc sur le fond CLAIR → une ligne sur deux blanche avec texte blanc et titres illisibles
   (défaut constaté aussi en PROD sur la liste Interventions le 25/09). Recalculées ici sur les couleurs sombres que body.dark-mode définit.
   Place définitive proposée : gp-table.css, juste après la ligne body.dark-mode. */
body.dark-mode{ --gt-head-bg: color-mix(in srgb, var(--gt-accent) 24%, var(--gt-surface)); --gt-grid: color-mix(in srgb, var(--gt-muted) 30%, transparent);
  --gt-band: color-mix(in srgb, var(--gt-muted) 9%, var(--gt-surface)); }

/* 27/09 (audit de régression, REVUE_AUDIT_TABLEAUX) : une information qui sert à décider se lit SANS survol ; une 2e ligne est permise pour
   elle → ligne de 48 px dans une zone .gpl-2lignes ; le survol ne sert qu'au complément. */
.gpl-2lignes .gt td{ height:48px; }
.gpl-2l{ display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:2px; min-width:0; max-width:100%; line-height:1.25; }
.gpl-2l > *{ max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gpl-2l small{ font-size:11.5px; color:var(--gt-muted, #6e6e73); }
/* 27/09 (audit, étape 2) : un texte qui sert à décider (note d'un frais, adresse, motif) peut tenir sur 2 lignes (ligne de 48 px) */
.gpl-deux{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; white-space:normal; overflow:hidden; line-height:1.25; word-break:break-word; }

/* ── 27/09 (audit, étape 3) ───────────────────────────────────────────────────────────────────────────── */
/* Opérations / Exploitation / Pilotage : recherche dans le tableau (n°, nom, montant…) et compteur « N / M lignes » dans la barre des onglets */
.xlg-page .xlg-q{ flex:0 1 240px; min-width:150px; }
/* Bilan : l'alerte « sans prix DO » se lit en entier ; le rappel (technicien · période · annulées facturées) sur 2 lignes au besoin ;
   barre « part du facturé DO » sous chaque donneur / type, comme l'ancien bilan */
#view-bilan-tech .bt-alerte{ white-space:normal; overflow:visible; }
#view-bilan-tech .bt-rappel{ white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; line-height:1.25; }
#view-bilan-tech .bt-barre{ display:block; width:100%; height:5px; margin-top:4px; max-width:260px; border-radius:4px; background:var(--border, #e5e7eb); overflow:hidden; }
#view-bilan-tech .bt-barre > span{ display:block; height:100%; background:#1976d2; }
body.dark-mode #view-bilan-tech .bt-barre > span{ background:#60a5fa; }

/* 27/09 (audit, étape 4) : l'aide sous le titre des fenêtres se lit sur 2 lignes (avant : coupée « … » sur une ligne, ex. l'avertissement VERISURE) */
.gpm-aide{ white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; line-height:1.3; }
/* Bons à facturer DO : libellés des champs visibles, explication des catégories « absent » sous les pastilles */
#bf-page .bf-lib{ font-size:12px; color:#8e8e93; white-space:nowrap; margin-right:-4px; }
#bf-page .bf-expl{ padding:2px 16px 8px; font-size:12px; line-height:1.4; }
#bf-page .bf-x-absent_base{ color:#9a3412; } #bf-page .bf-x-absent_baf{ color:#5b21b6; }
body.dark-mode #bf-page .bf-x-absent_base{ color:#fdba74; } body.dark-mode #bf-page .bf-x-absent_baf{ color:#c4b5fd; }
/* Équipe : compte inactif grisé (comme l'ancien écran) */
#view-equipe .eq-off{ opacity:.55; }