/* Liste Interventions — maquette validée par Omar (T1 + T1b, 24/09/2026). Zone de filtres : 3 rangées, 118 px max. */

/* la page ne défile plus : seule la zone de données défile (règle 2) */
.page-content.gp-plein{ overflow:hidden !important; padding:10px 16px 0 !important; }
.page-content.gp-plein > #view-interventions.active{ display:flex; flex-direction:column; height:100%; min-height:0; }
#view-interventions .gp-page{ flex:1 1 auto; height:auto; background:transparent; }
#inter-catalogue-page{ flex:1 1 auto; overflow:auto; }

/* un seul champ de recherche sur cet écran (Omar, 24/09) : celui de la barre du haut est masqué ici */
body.gpi-ecran #global-search{ display:none !important; }

.gpi-bar{ flex:0 0 auto; display:flex; flex-direction:column; gap:6px; padding:0 0 8px; }
.gpi-r{ display:flex; align-items:center; gap:8px; min-width:0; }
.gpi-r1{ height:34px; }
.gpi-r2, .gpi-r3{ height:30px; }
.gpi-r3{ overflow-x:auto; scrollbar-width:none; }
.gpi-r3::-webkit-scrollbar{ display:none; }
.gpi-grow{ flex:1 1 auto; }

.gpi-seg{ display:inline-flex; background:#e9e9ee; border-radius:9px; padding:2px; flex:0 0 auto; }
.gpi-seg button{ height:28px; padding:0 12px; border:0; border-radius:7px; background:transparent; font-weight:600; font-size:13px; line-height:1;
  font-family:inherit; color:#1c1c1e; cursor:pointer; white-space:nowrap; }
.gpi-seg button.on{ background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.12); }

.gpi-search{ flex:1 1 200px; min-width:140px; position:relative; }
.gpi-search input{ width:100%; height:32px; border:0; border-radius:9px; background:#ececf0; padding:0 10px 0 30px;
  font-size:13px; color:#1c1c1e; outline:none; box-sizing:border-box; }
.gpi-search input:focus{ box-shadow:0 0 0 2px #0a66d6; background:#fff; }
.gpi-search::before{ content:''; position:absolute; left:10px; top:50%; width:12px; height:12px; margin-top:-7px;
  border:2px solid #8e8e93; border-radius:50%; box-sizing:border-box; }
.gpi-search::after{ content:''; position:absolute; left:20px; top:50%; width:6px; height:2px; margin-top:3px;
  background:#8e8e93; transform:rotate(45deg); }

.gpi-btn{ height:30px; padding:0 11px; border:1px solid #dcdce1; border-radius:8px; background:#fff; color:#1c1c1e;
  font-size:13px; font-family:inherit; cursor:pointer; white-space:nowrap; display:inline-flex; align-items:center; gap:6px; flex:0 0 auto; }
.gpi-btn:hover{ background:#f5f5f7; }
.gpi-check input{ margin:0; width:15px; height:15px; }
.gpi-primary{ height:30px; padding:0 14px; border:0; border-radius:8px; background:#0a66d6; color:#fff; font-weight:600; font-size:13px; line-height:1;
  font-family:inherit; cursor:pointer; white-space:nowrap; flex:0 0 auto; }
.gpi-primary:hover{ background:#0857b8; }
.gpi-lien{ border:0; background:none; color:#0a66d6; font-size:13px; font-family:inherit; cursor:pointer; white-space:nowrap; padding:0 4px; }
.gpi-count{ font-size:13px; color:#6e6e73; white-space:nowrap; font-variant-numeric:tabular-nums; }
.gpi-plafond{ font-size:12px; color:#a35200; white-space:nowrap; }

/* pastilles de statut compactes (gardent .filter-chip pour gpOpenAAffecter) */
#gpi-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; }
#gpi-pills .gpi-pill.filter-chip b{ font-weight:600; color:#6e6e73; font-variant-numeric:tabular-nums; }
#gpi-pills .gpi-pill.filter-chip.active{ background:#0a66d6; border-color:#0a66d6; color:#fff; }
#gpi-pills .gpi-pill.filter-chip.active b{ color:#fff; }

/* menu de période */
.gpi-menu{ position:fixed; z-index:9000; background:#fff; border:1px solid #dcdce1; border-radius:10px; padding:4px;
  box-shadow:0 10px 30px rgba(0,0,0,.18); min-width:210px; display:flex; flex-direction:column; }
.gpi-menu-item{ text-align:left; height:32px; padding:0 10px; border:0; border-radius:7px; background:none; font-size:13px;
  font-family:inherit; color:#1c1c1e; cursor:pointer; }
.gpi-menu-item:hover{ background:#f2f2f7; }
.gpi-menu-item.on{ color:#0a66d6; font-weight:600; }
.gpi-menu-mois{ display:flex; align-items:center; gap:6px; padding:6px 10px; border-top:1px solid #e3e3e8; margin-top:4px;
  font-size:12px; color:#6e6e73; }

/* écran étroit (tablette paysage, fenêtre réduite) : les rangées passent à la ligne au lieu de déborder (S7) */
@media (max-width: 1180px){
  .gpi-r1, .gpi-r2{ height:auto; flex-wrap:wrap; row-gap:6px; }
}

/* T1-r1 (revue n°41) : largeurs de colonnes respectées (sinon la mise en page automatique élargit Type et Client au
   texte et pousse Statut hors de l'écran en 1366) ; texte trop long = « … » + info-bulle ; le tableau défile en largeur
   dans sa zone pour Synchro / Fiche / Prix. */
#inter-list-container table.gt{ table-layout:fixed; }

/* T1-r2 (revue n°41) : résultat de l'archivage en bas de l'écran, 6 s, avec « Annuler » (ne recouvre pas la liste) */
.gpi-snack{ position:fixed; left:50%; bottom:28px; transform:translateX(-50%); z-index:1300; display:flex; align-items:center; gap:14px;
  max-width:calc(100vw - 48px); padding:8px 8px 8px 16px; border-radius:12px; background:#1c1c1e; color:#fff; font-size:13px;
  box-shadow:0 8px 28px rgba(0,0,0,.28); }
.gpi-snack-t{ overflow:hidden; text-overflow:ellipsis; }
.gpi-snack-a{ flex:0 0 auto; height:32px; padding:0 14px; border:0; border-radius:8px; background:rgba(255,255,255,.14); color:#8ec5ff;
  font-family:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.gpi-snack-a:hover{ background:rgba(255,255,255,.24); }

/* cellules du tableau */
.gpi-st{ display:inline-block; padding:2px 8px; border-radius:10px; font-size:12px; font-weight:600; white-space:nowrap; }
.gpi-doublon{ font-size:11px; font-weight:700; color:#6b4fdb; }
.gpi-conflit{ color:#c2410c; font-weight:700; cursor:help; }
.gpi-inverse{ color:#c62828; font-weight:700; cursor:help; }   /* B21 : fin avant début */
.gpi-tag{ display:inline-block; margin-left:5px; padding:1px 6px; border:1px solid #d1d1d6; border-radius:6px; font-size:11px; color:#48484a; white-space:nowrap; }
.gpi-btn:disabled{ opacity:.6; cursor:default; }
.gpi-btn:disabled:hover{ background:#fff; }
.gpi-fusion{ display:inline-flex; align-items:center; font-size:12px; font-weight:700; color:#fff; background:#6b4fdb;
  padding:3px 9px; border-radius:7px; cursor:pointer; }


/* ── 27/09 (audit, étape 4 — thème sombre) ──────────────────────────────────────────────────────────────────────────
   Le modèle (onglets segmentés, recherche, boutons, pastilles) avait des couleurs fixes claires et aucune règle sombre : taches claires
   sur Interventions, Relances, Cartes & badges, Matériel, Donneurs d'ordre, Grille, Opérations, Exploitation, Pilotage, Synchro, Mon espace.
   --surface-2 n'était défini que dans l'habillage iOS du téléphone : Finance, Statistiques par DO et Bilan retombaient sur la couleur claire. */
body.dark-mode{ --surface-2:#2c2c2e; }
body.dark-mode .gpi-seg{ background:#2c2c2e; }
body.dark-mode .gpi-seg button{ color:#f2f2f7; }
body.dark-mode .gpi-seg button.on{ background:#48484a; box-shadow:none; }
body.dark-mode .gpi-search input{ background:#2c2c2e; color:#f2f2f7; }
body.dark-mode .gpi-search input:focus{ background:#1c1c1e; }
body.dark-mode .gpi-btn{ background:#1c1c1e; border-color:#3a3a3c; color:#f2f2f7; }
body.dark-mode .gpi-btn:hover{ background:#2c2c2e; }
body.dark-mode .gpi-count{ color:#98989f; }
body.dark-mode :is(#gpi-pills, .gpl-pills) .gpi-pill.filter-chip{ background:#1c1c1e; border-color:#3a3a3c; color:#f2f2f7; }
body.dark-mode :is(#gpi-pills, .gpl-pills) .gpi-pill.filter-chip b{ color:#98989f; }
body.dark-mode :is(#gpi-pills, .gpl-pills) .gpi-pill.filter-chip.active{ background:#0a84ff; border-color:#0a84ff; color:#fff; }
body.dark-mode :is(#gpi-pills, .gpl-pills) .gpi-pill.filter-chip.active b{ color:#fff; }

/* 27/09 (audit, étape 5) : Interventions — badge de priorité sous le statut, en petit */
#inter-list-container .gpi-prio .badge{ font-size:10.5px; line-height:15px; padding:0 6px; border-radius:8px; }