/* 🧱 14-10 soir (TX13, Florian : « à corriger » — la règle de COM : aucun style écrit dans la page, `style-src 'self'`) : les styles
   FIXES qu'écrivaient les gabarits, devenus des classes — le même rendu. `!important` : un style écrit dans la balise passait avant
   toute règle d'une feuille ; ces classes le remplacent, elles gardent sa priorité. Feuille chargée en dernier (base.html). Les
   valeurs CALCULÉES (largeurs, positions, couleurs) passent par data-st (static/js/estilos.js). */

/* les marges et les hauteurs d'une zone */
.u-mt12 { margin-top: 12px !important; }                                   /* Calidad › Calibradora : les boutons d'un formulaire */
.u-mt16 { margin-top: 16px !important; }                                   /* Calidad › RC : les boutons de la fiche */
.u-mh240 { max-height: 240px !important; }                                 /* Costes › Coste Real : les tableaux qui défilent */
.u-mh320 { max-height: 320px !important; }
.u-mh420 { max-height: 420px !important; }

/* Calidad › Calibradora : le texte lu du ticket */
.clb-texto { white-space: pre-wrap !important; overflow-x: auto !important; font-size: .78rem !important; }
/* Calidad › RC : le ✖ qui ferme la fiche */
.rc-anular { display: inline-grid !important; place-items: center !important; text-decoration: none !important; }

/* Ferti/Fito › Stock : les photos du bon de livraison */
.fs-fotos { display: flex !important; flex-wrap: wrap !important; gap: 10px !important; margin: 6px 0 10px !important; }
.fs-fotos.fs-fotos-edit { margin: 6px 0 !important; }
.fs-foto { width: 200px !important; max-width: 100% !important; border-radius: 8px !important; display: block !important; }

/* Config temporada › Parcelas : « reprendre les affectations d'espèce de la temporada précédente ? » */
.esp-heredar { border-left: 4px solid #E53935 !important; margin-bottom: 12px !important; }
.esp-heredar-f { display: flex !important; gap: 8px !important; flex-wrap: wrap !important; }
.esp-heredar-b { width: auto !important; }

/* Plantaciones › Planning N+1 : les étapes (couleurs de l'ancienne app), les variétés à reconduire, les cartes, les actions */
.pp-pasos { display: flex !important; gap: 10px !important; margin: 8px 0 14px 0 !important; flex-wrap: wrap !important; }
.pp-paso { color: white !important; padding: 6px 12px !important; border-radius: 16px !important; font-size: 12px !important;
  font-weight: 600 !important; }
.pp-paso-actual { background: #1B5E20 !important; }
.pp-paso-hecho { background: #4CAF50 !important; }
.pp-paso-futuro { background: #9E9E9E !important; }
.pp-checks { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important; gap: 6px !important;
  margin: 8px 0 14px 0 !important; }
.pp-check { display: flex !important; align-items: center !important; gap: 8px !important; }
.pp-card { margin-bottom: 12px !important; }
.pp-acciones { align-items: center !important; }

/* Config temporada : le nuage de points de la régression (le SVG fabriqué par parametraje.py) */
.reg-svg { max-width: 520px !important; width: 100% !important; height: auto !important; }
