/* ===========================================================================
   ÉCRAN — CONSTANTES D'EXPORT  (/app/constantes-export)
   Reprise du 2026-10-02 (docs/modeles/design_handoff_constantes_export).

   Les tuiles (.mx-tuiles), le bandeau (.mx-signal), les onglets à chiffre
   (.mx-vues), les cartes sous 1024 px (.mx-liste-cartes) et les pastilles
   viennent du gabarit. Ne restent ici que la ligne du bandeau, la fiche à
   libellés au-dessus et son sélecteur d'unité. AUCUNE COULEUR EN DUR.
   =========================================================================== */
.cex-mono { font-family: var(--et-font-mono); }
.cex-code { font-weight: 600; color: var(--et-ink); }

.cex-vues { margin-bottom: 12px; }

/* L'unité en pastille : encre pleine sur le filet de rangée, lisible aussi sur une ligne
   teintée ambre et en sombre — la pastille neutre du gabarit y tombait sous 4,5:1. */
.cex-unite {
    display: inline-block; padding: 1px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; background: var(--et-rang); color: var(--et-ink);
}

/* Le bandeau : un titre, puis une ligne par constante ; le geste à droite, sous
   640 px il passe sous le texte, pleine largeur. */
.cex-signal-titre { color: var(--et-avertissement-ink); }
.cex-signal-ligne { align-items: center; flex-wrap: wrap; }
.cex-signal-txt { flex: 1 1 260px; min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cex-signal-unite { font-size: 12px; font-weight: 600; color: var(--et-ink); }
.cex-signal-acte { flex: none; }
@media (max-width: 1024px) { .cex-signal-acte { min-height: 44px; } }
@media (max-width: 640px)  { .cex-signal-acte { flex: 1 1 100%; justify-content: center; margin-left: 18px; } }

/* --- La fiche : libellés au-dessus, un seul groupe ------------------------ */
.cex-modale .mx-modale-sous { white-space: normal; }
.cex-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin-bottom: 16px; }
.cex-champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0 0 16px; }
.cex-champs .cex-champ { margin: 0; }
.cex-champ.est-plein { grid-column: 1 / -1; }
.cex-champ-lbl { font-size: 13px; font-weight: 600; color: var(--et-ink); }
.cex-requis { color: var(--et-danger-ink); }
.cex-champ .mx-input { height: 40px; }
.cex-champ .mx-input.est-manque { border-color: var(--et-avertissement-mark); }
.cex-alerte { font-size: 12px; line-height: 1.5; color: var(--et-avertissement-ink); }
.cex-erreur { font-size: 12px; line-height: 1.5; color: var(--et-danger-ink); }

.cex-seg { display: inline-flex; flex-wrap: wrap; align-self: flex-start; border: 1px solid var(--et-bord-champ); }
.cex-seg > button {
    min-height: 44px; min-width: 84px; padding: 0 14px;
    background: var(--et-surface); border: 0; border-right: 1px solid var(--et-filet-fort);
    font-family: inherit; font-size: 14px; color: var(--et-ink); cursor: pointer;
}
.cex-seg > button:last-child { border-right: 0; }
.cex-seg > button:hover { background: var(--et-surface-2); }
.cex-seg > button.est-actif { background: var(--et-form-blue); color: var(--et-sur-aplat); font-weight: 600; }

.cex-case {
    display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0;
    padding: 0 12px; background: var(--et-surface-2); border: 1px solid var(--et-hairline);
    font-size: 14px; color: var(--et-ink); cursor: pointer;
}
.cex-case input { width: 18px; height: 18px; flex: none; accent-color: var(--et-form-blue); }
.cex-case strong { font-weight: 600; }

@media (max-width: 720px) {
    .cex-champs { grid-template-columns: minmax(0, 1fr); }
    .cex-seg { align-self: stretch; }
    .cex-seg > button { flex: 1 1 0; min-width: 0; }
}
