/* ch.635 — module Coûts & Stock : grilles par CLASSE (R120 : une grille en ligne dans un modal monté sur body est écrasée par responsive.css),
   adaptations d'écran. ⛔ Aucune variable CSS (charte du projet). Actif #34D399 / texte #0F172A (R119). */
.cs-entete { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }   /* par CLASSE : responsive.css passe en colonne un flex « gap » déclaré en ligne */
.cs-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .75); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; }   /* ch.635 compléments ① — patron du projet */
.cs-cadre.cs-cadre-blanc { background: #fff; }   /* carte BLANCHE (patron) — sélecteur composé : `.cs-cadre`, déclarée après, gagnait (mesuré : #F1F5F9) */
/* ch.635 compléments ② — pied de fiche : Annuler / Enregistrer (⊕ Supprimer) EN BAS À DROITE, toujours visible ; la croix reste en haut à droite */
.cs-pied { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; background: #fff; border-top: 1px solid #E2E8F0; }
.cs-pied .cs-pied-gauche { margin-right: auto; }
.cs-cadre { background: #F1F5F9; border-radius: 16px; width: min(1180px, 96vw); max-height: 94vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 50px rgba(15, 23, 42, .25); }
.cs-corps { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 14px; }
.cs-grille-fiche { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cs-grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cs-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cs-tuile { border: 1px solid #E2E8F0; border-radius: 12px; padding: 12px; background: linear-gradient(180deg, #F8FAFC, #F1F5F9); min-width: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), inset 0 1px 0 #fff; }
.cs-carte { border: 1px solid #E2E8F0; border-radius: 12px; padding: 12px; background: #fff; min-width: 0; cursor: pointer; transition: transform .12s, box-shadow .12s;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 6px 16px rgba(15, 23, 42, .05); }
.cs-carte:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15, 23, 42, .08), 0 10px 22px rgba(15, 23, 42, .08); }
/* ch.635 compléments ③ — listes Consommables, Matériel, Véhicules : UNE tuile FINE par ligne, toute la largeur — composant des tuiles des Dépenses et des Factures
   (`.fc588-liste` / `.fc588-carte`, R60) ⊕ variante du module (colonnes) ; ⛔ aucune grille en ligne (R120). */
.fc588-carte.cs636-carte { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; min-height: 56px; max-height: none; cursor: pointer; }
.cs636-entetes { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) 140px; column-gap: 14px; padding: 4px 14px 0 16px;
  font-size: 10px; font-weight: 700; color: #94A3B8; text-transform: uppercase; letter-spacing: .03em; }
.cs636-c { min-width: 0; font-size: 12px; color: #334155; overflow-wrap: anywhere; line-height: 1.35; }
.cs636-c b { color: #0F172A; }
.cs636-petit { font-size: 11px; color: #64748B; }
.cs636-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; flex-wrap: nowrap; }
.cs636-actions button { min-height: 44px; min-width: 44px; }
@media (max-width: 1100px) {
  .cs636-entetes { display: none; }
  .fc588-carte.cs636-carte { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "c1 c3 c5 act" "c2 c4 c4 act"; row-gap: 4px; }
  .cs636-carte > .cs636-c:nth-child(1) { grid-area: c1; } .cs636-carte > .cs636-c:nth-child(2) { grid-area: c2; } .cs636-carte > .cs636-c:nth-child(3) { grid-area: c3; }
  .cs636-carte > .cs636-c:nth-child(4) { grid-area: c4; } .cs636-carte > .cs636-c:nth-child(5) { grid-area: c5; } .cs636-carte > .cs636-actions { grid-area: act; }
}
@media (max-width: 600px) {
  .fc588-carte.cs636-carte { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "c1 c1" "c2 c2" "c3 c5" "c4 c4" "act act"; column-gap: 8px; }
  .cs636-actions { justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 1024px) {
  .cs-grille-fiche, .cs-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-cadre { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
}
@media (max-width: 640px) {
  .cs-grille-fiche, .cs-liste, .cs-grille-2 { grid-template-columns: minmax(0, 1fr); }
  .cs-corps { padding: 10px; }
}
/* ch.626 — « Coût de l'intervention » : 6 tuiles, grille par CLASSE (R120), cibles ≥ 44 px ; ⛔ aucune variable CSS */
.ci-cadre { width: min(1180px, 96vw); }
.ci-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ci-h { margin: 0 0 6px; font-size: 13px; color: #0F172A; }
.ci-p { font-size: 12px; color: #475569; overflow-wrap: anywhere; }
.ci-src { font-size: 10px; font-weight: 600; color: #64748B; }
.ci-liste { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow-y: auto; }
.ci-ligne { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; padding: 4px 0; border-top: 1px solid #F1F5F9; min-width: 0; overflow-wrap: anywhere; }
.ci-ligne > span { min-width: 0; }
.ci-ligne > b { text-align: right; flex-shrink: 0; max-width: 55%; }
.ci-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #FEF3C7; color: #92400E; text-align: right; }
@media (max-width: 1024px) { .ci-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ci-cadre { width: 100vw; } }
@media (max-width: 640px) { .ci-grille { grid-template-columns: minmax(0, 1fr); } }
/* ch.635 (③) — Paramètres en FEUILLES : onglets (≥ 44 px, actif #34D399 / #0F172A — R119), une ligne par catégorie sur toute la largeur, grilles par CLASSE (R120) */
.cp-cadre { width: min(980px, 96vw); }
.cp-onglets { display: flex; gap: 6px; padding: 8px 14px 0; background: #fff; border-bottom: 1px solid #E2E8F0; overflow-x: auto; }
.cp-onglet { min-height: 44px; padding: 0 14px; border: 1px solid #E2E8F0; border-bottom: none; border-radius: 10px 10px 0 0; background: #F8FAFC; color: #475569; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cp-onglet[aria-selected="true"] { background: #34D399; border-color: #34D399; color: #0F172A; font-weight: 800; }
.cp-feuille[hidden] { display: none; }
.cp-liste { display: flex; flex-direction: column; gap: 8px; }
.cp-ligne { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.cp-ligne[data-cs-cat="consommable"] { grid-template-columns: minmax(0, 2fr) auto auto; }
.cp-ligne-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-case { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; color: #0F172A; white-space: nowrap; }
.cp-ajout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 8px; margin-top: 12px; align-items: center; border-style: dashed; }
.cp-ajout-2 { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 640px) {
  .cp-ligne, .cp-ligne[data-cs-cat="consommable"], .cp-ligne-2, .cp-ajout, .cp-ajout-2 { grid-template-columns: minmax(0, 1fr); }
  .cp-onglet { padding: 0 10px; font-size: 12px; }
}
/* ch.668 lot A — « Coût de l'intervention » V2 : presque plein écran, 4 onglets, Synthèse FIGÉE à droite au bureau (≥ 1025 px) et 4ᵉ onglet en dessous ;
   grilles par CLASSE (R120) ; cibles ≥ 44 px ; ⛔ aucune variable CSS. Seul `.ci-cadre` est élargi (⛔ jamais `.cs-cadre`, partagé par 7 écrans). */
.ci-cadre.ci-v2 { width: min(1500px, 98vw); height: min(94vh, 1100px); max-height: 94vh; }
.ci-onglets { display: flex; gap: 6px; padding: 8px 14px 0; background: #fff; border-bottom: 1px solid #E2E8F0; overflow-x: auto; flex-shrink: 0; }
.ci-onglets > button { min-height: 44px; padding: 0 14px; border: 1px solid #E2E8F0; border-bottom: none; border-radius: 10px 10px 0 0; background: #F8FAFC; color: #334155; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ci-onglets > button[aria-selected="true"] { background: #34D399; color: #0F172A; border-color: #34D399; }
.ci-corps2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; align-items: start; }
.ci-panneaux > [data-ci-panneau] { display: none; }
.ci-panneau-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ci-panneau-1 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ci-cadre[data-onglet="trajet"] [data-ci-panneau="trajet"], .ci-cadre[data-onglet="temps"] [data-ci-panneau="temps"],
.ci-cadre[data-onglet="materiel"] [data-ci-panneau="materiel"], .ci-cadre[data-onglet="synthese"] [data-ci-panneau="synthese"] { display: grid; }
.ci-aside { position: sticky; top: 0; }
.ci-lg { border: 1px solid #E2E8F0; border-radius: 10px; padding: 8px; margin-top: 8px; background: #fff; }
.ci-lg-grille { display: grid; grid-template-columns: minmax(0, 2fr) 80px minmax(90px, 1fr) 84px 96px minmax(0, 1.4fr) 44px; gap: 6px; align-items: end; }
.ci-lg-grille.ci-lg-frais { grid-template-columns: minmax(0, 2fr) minmax(90px, 1fr) 84px 96px minmax(0, 1.4fr) 44px; }
.ci-lg-source { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; margin-top: 6px; }
.ci-lg-cout { font-size: 11px; color: #475569; margin-top: 4px; overflow-wrap: anywhere; }
.ci-mode { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.ci-mode > button { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid #CBD5E1; background: #fff; color: #0F172A; font-size: 12px; font-weight: 700; cursor: pointer; }
.ci-mode > button[aria-pressed="true"] { background: #34D399; border-color: #34D399; }
.ik665-arret[data-sans-km] { grid-template-columns: 34px 130px minmax(0, 1.2fr) minmax(0, 1.4fr) 44px; }
@media (max-width: 1280px) { .ci-panneau-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1024px) {
  .ci-cadre.ci-v2 { width: 100vw; height: 100vh; max-height: 100vh; }
  .ci-corps2 { grid-template-columns: minmax(0, 1fr); }
  .ci-aside { display: none; position: static; }
  .ci-cadre[data-onglet="synthese"] .ci-aside { display: block; }
  .ik665-arret[data-sans-km] { grid-template-columns: 34px minmax(0, 1fr) 44px; grid-template-areas: "rang type suppr" "lien lien lien" "adr adr adr"; }
  .ik665-arret[data-sans-km] > .ik665-rang { grid-area: rang; } .ik665-arret[data-sans-km] > [data-zone="type"] { grid-area: type; } .ik665-arret[data-sans-km] > [data-zone="lien"] { grid-area: lien; }
  .ik665-arret[data-sans-km] > [data-zone="adresse"] { grid-area: adr; } .ik665-arret[data-sans-km] > [data-zone="suppr"] { grid-area: suppr; }
}
@media (max-width: 760px) {
  .ci-lg-grille, .ci-lg-grille.ci-lg-frais { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ci-lg-grille > [data-zone="libelle"] { grid-column: 1 / -1; } .ci-lg-grille > [data-zone="suppr"] { grid-column: 2; justify-self: end; }
  .ci-lg-source { grid-template-columns: minmax(0, 1fr); }
}
