/* ═══════════════════════════════════════════════════════════════════════════════════════════════════
   FACTURES ÉLECTRONIQUES (2026-09-17) — écran `FacturesElectroniques` (préfixe fe-) et sa modale d'accueil (préfixe fem-).
   Jetons partagés (tokens.css) : clair et sombre suivent sans règle dédiée, sauf le fond du voile.
   ⚠️ Le z-index de la modale se règle AUSSI dans entry.css (`.fec-loader:has(.fem-back)`), comme pour l'anonymiseur.
   ═══════════════════════════════════════════════════════════════════════════════════════════════════ */

/* ── Modale ── */
.fem-back {
    position: fixed; inset: 0; z-index: 5200; display: flex; align-items: center; justify-content: center;
    padding: 24px 16px; background: rgba(4, 12, 18, .62); animation: fem-in .16s ease-out;
}
html[data-theme="light"] .fem-back { background: rgba(28, 42, 52, .42); }
@keyframes fem-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fem-back { animation: none; } }
.fem-box {
    display: flex; flex-direction: column; width: min(1180px, 100%); max-height: 100%; min-height: 0;
    border-radius: 16px; border: 1px solid var(--o12); background: var(--color-bg-surface, var(--bg1, #0d1b24));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .46); overflow: hidden;
}
.fem-hd { flex: 0 0 auto; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--o12); }
.fem-hd-x { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fem-hd-x b { font-size: 15px; font-weight: 700; color: var(--tx1); }
.fem-hd-x small { font-size: 11.5px; line-height: 1.5; color: var(--color-text-muted); }
.fem-x {
    flex: 0 0 auto; width: 28px; height: 28px; margin-left: auto; display: grid; place-items: center;
    border: 1px solid var(--o12); border-radius: 8px; background: var(--o4); color: var(--color-text-secondary); cursor: pointer;
}
.fem-x:hover { color: var(--tx1); border-color: var(--brand-strong); }
.fem-bd { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 16px; }
@media (max-width: 760px) {
    .fem-back { padding: 0; }
    .fem-box { width: 100%; height: 100%; max-height: 100%; border-radius: 0; border: 0; }
    .fem-bd { padding: 12px; }
}

/* ── Écran ── */
.fe-root { display: flex; flex-direction: column; gap: 14px; min-width: 0; font-variant-numeric: tabular-nums; }

.fe-drop {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; padding: 40px 18px; border-radius: 14px; text-align: center; cursor: pointer;
    border: 1.5px dashed color-mix(in srgb, var(--brand-strong) 45%, transparent); background: var(--o4);
    transition: border-color .15s ease, background .15s ease;
}
.fe-drop:hover { border-color: var(--brand-strong); background: color-mix(in srgb, var(--brand) 7%, transparent); }
/* L'input natif couvre toute la zone (opacité nulle) : il reçoit le clic ET le glisser-déposer. */
.fe-drop input[type=file], .fe-btn input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fe-drop.is-busy, .fe-btn.is-busy { cursor: default; }
.fe-drop.is-busy input[type=file], .fe-btn.is-busy input[type=file] { pointer-events: none; }
.fe-drop.is-busy { border-style: solid; border-color: color-mix(in srgb, var(--brand-strong) 30%, transparent); }
.fe-drop-ic { color: var(--brand-strong); line-height: 0; margin-bottom: 4px; }
.fe-drop-t { font-size: 15px; font-weight: 700; color: var(--tx1); }
.fe-drop-s { font-size: 11.5px; color: var(--color-text-muted); }
.fe-drop-loc { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; }
.fe-drop-run { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--tx1); }

.fe-quoi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fe-quoi-c { padding: 12px 14px; border-radius: 11px; border: 1px solid var(--o12); background: var(--o4); }
.fe-quoi-t { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--tx1); margin-bottom: 6px; }
.fe-quoi-t .iku-ico { color: var(--brand-strong); flex: 0 0 auto; }
.fe-quoi-c p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--color-text-muted); }
.fe-essai { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--color-text-muted); }
.fe-lien { font: inherit; font-weight: 700; color: var(--brand-strong); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fe-lien:hover { color: var(--tx1); }

/* ── Récupérer depuis une plateforme (étape 2) : Pennylane ou API AFNOR, accès en mémoire seulement ── */
.fe-pf { display: flex; flex-direction: column; gap: 10px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--o12); background: var(--o4); }
.fe-pf-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fe-pf-t { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--tx1); }
.fe-pf-t .iku-ico { flex: 0 0 auto; color: var(--brand-strong); }
.fe-pf-choix { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--o6); }
.fe-pf-choix button { border: 0; background: transparent; color: var(--color-text-secondary); font: inherit; font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 7px; cursor: pointer; }
.fe-pf-choix button:hover:not(:disabled) { color: var(--tx1); }
.fe-pf-choix button.on { background: var(--color-bg-surface, var(--bg1, #0d1b24)); color: var(--tx1); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.fe-pf-choix button:disabled { opacity: .55; cursor: default; }
.fe-pf-choix .fe-l-court { display: none; }
.fe-pf-f { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; align-items: end; }
.fe-champ { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 11.5px; }
.fe-champ.is-large, .fe-pf-aide { grid-column: 1 / -1; }
.fe-champ > span { font-weight: 700; color: var(--color-text-secondary); }
.fe-champ em { font-style: normal; font-weight: 500; color: var(--color-text-muted); margin-left: 4px; }
.fe-champ input {
    width: 100%; min-width: 0; font: inherit; font-size: 13px; color: var(--tx1); color-scheme: inherit;
    background: var(--color-bg-surface, var(--bg1, #0d1b24)); border: 1px solid var(--o12); border-radius: 8px; padding: 8px 10px;
}
.fe-champ input:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand-strong) 55%, transparent); outline-offset: 1px; border-color: var(--brand-strong); }
.fe-champ input:disabled { opacity: .6; }
.fe-champ input[type=date] { max-width: 240px; }
.fe-champ small, .fe-pf-aide { font-size: 11px; line-height: 1.45; color: var(--color-text-muted); }
.fe-pf-a { grid-column: -2 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.fe-pf-sec { margin: 0; display: flex; align-items: flex-start; gap: 6px; font-size: 11px; line-height: 1.45; color: var(--color-text-muted); }
.fe-pf-sec .iku-ico { flex: 0 0 auto; margin-top: 2px; color: var(--brand-strong); }

.fe-errs { font-size: 12px; color: var(--color-text-secondary); border: 1px solid color-mix(in srgb, var(--st-amber) 35%, transparent); background: color-mix(in srgb, var(--st-amber) 7%, transparent); border-radius: 10px; padding: 9px 12px; }
.fe-errs.is-err { border-color: color-mix(in srgb, var(--st-red) 40%, transparent); background: color-mix(in srgb, var(--st-red) 8%, transparent); }
.fe-errs summary { cursor: pointer; font-weight: 700; color: var(--tx1); }
.fe-errs ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.fe-errs li span { font-weight: 700; color: var(--tx1); margin-right: 4px; word-break: break-all; }

/* ── Barre du lot ── */
.fe-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fe-bar-t { font-size: 13px; color: var(--color-text-secondary); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fe-bar-t b { color: var(--tx1); }
.fe-tag { font-size: 10.5px; font-weight: 700; color: var(--txt-teal); border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); background: color-mix(in srgb, var(--brand) 10%, transparent); border-radius: 999px; padding: 2px 8px; }
.fe-bar-acts { display: flex; align-items: center; gap: 8px; }
.fe-btn {
    position: relative; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; font-weight: 700;
    color: var(--brand-contrast, #06141a); background: var(--brand); border: 1px solid var(--brand); border-radius: 9px; padding: 7px 12px; cursor: pointer;
}
.fe-btn:hover { filter: brightness(1.06); }
.fe-btn.is-ghost { color: var(--tx1); background: var(--o4); border-color: var(--o12); }
.fe-btn.is-ghost:hover { border-color: var(--brand-strong); filter: none; }
.fe-btn:disabled { opacity: .55; cursor: default; }

/* ── Entreprise analysée ── */
.fe-ent { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: var(--o4); border: 1px solid var(--o8); }
.fe-ent-l { color: var(--color-text-muted); }
.fe-ent-sel .custom-dropdown-trigger { min-width: 220px; font-weight: 700; }
.fe-ent-n { color: var(--color-text-muted); font-size: 11.5px; }

/* ── Indicateurs ── */
.fe-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.fe-kpi { display: flex; flex-direction: column; gap: 3px; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--o12); background: var(--o4); min-width: 0; }
.fe-kpi-l { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); }
.fe-kpi-v { font-size: 20px; font-weight: 750; color: var(--tx1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fe-kpi-s { font-size: 11px; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Cartes ── */
.fe-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fe-card { border: 1px solid var(--o12); border-radius: 12px; background: color-mix(in srgb, var(--o4) 60%, transparent); padding: 12px 14px; min-width: 0; }
.fe-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.fe-card-h b { font-size: 13px; color: var(--tx1); }
.fe-card-s { font-size: 11.5px; color: var(--color-text-muted); }
.fe-vide { margin: 0; font-size: 12px; color: var(--color-text-muted); }
.fe-note { margin: -4px 0 0; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--color-text-muted); }
.fe-note .iku-ico { flex: 0 0 auto; color: var(--st-amber); }
.fe-note.is-ok .iku-ico { color: var(--brand-strong); }

/* Échéancier : une ligne par tranche, barre proportionnelle, échues en ambre. */
.fe-ech { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fe-ech li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(40px, 1fr) auto 26px; align-items: center; gap: 8px; font-size: 12px; }
.fe-ech-l { color: var(--color-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fe-ech-b { height: 8px; border-radius: 4px; background: var(--o8); overflow: hidden; }
.fe-ech-b i { display: block; height: 100%; border-radius: 4px; background: var(--brand); }
.fe-ech li.is-echue .fe-ech-b i { background: var(--st-amber); }
.fe-ech li.is-echue .fe-ech-l { color: var(--tx1); }
.fe-ech-v { font-weight: 700; color: var(--tx1); text-align: right; white-space: nowrap; }
.fe-ech-n { font-size: 10.5px; color: var(--color-text-muted); text-align: right; }

/* Par mois : colonnes jumelles ventes / achats. */
.fe-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--color-text-muted); }
.fe-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.fe-leg i.is-v, .fe-mois-b .is-v { background: var(--brand); }
.fe-leg i.is-a, .fe-mois-b .is-a { background: color-mix(in srgb, var(--st-amber) 80%, transparent); }
.fe-mois { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(34px, 1fr); gap: 8px; align-items: end; height: 150px; overflow-x: auto; }
.fe-mois-c { display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; min-width: 0; }
.fe-mois-b { flex: 1 1 auto; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.fe-mois-b span { width: 38%; max-width: 18px; min-height: 2px; border-radius: 3px 3px 0 0; }
.fe-mois-l { font-size: 10.5px; color: var(--color-text-muted); white-space: nowrap; }

/* Tiers. */
.fe-tiers-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.fe-tiers-l li { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(30px, 1fr) 38px auto 38px; align-items: center; gap: 8px; font-size: 12px; }
.fe-tiers-n { color: var(--tx1); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fe-tiers-b { height: 6px; border-radius: 3px; background: var(--o8); overflow: hidden; }
.fe-tiers-b i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.fe-tiers-p, .fe-tiers-d { font-size: 11px; color: var(--color-text-muted); text-align: right; white-space: nowrap; }
.fe-tiers-v { font-weight: 700; color: var(--tx1); text-align: right; white-space: nowrap; }

/* Contrôles. */
.fe-pill { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; border: 1px solid; }
.fe-pill.is-warn { color: var(--st-amber); border-color: color-mix(in srgb, var(--st-amber) 40%, transparent); background: color-mix(in srgb, var(--st-amber) 10%, transparent); }
.fe-pill.is-ok { color: var(--txt-teal); border-color: color-mix(in srgb, var(--brand) 40%, transparent); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.fe-ctrl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fe-ctrl li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 10px; border-radius: 9px; background: var(--o4); }
.fe-ctrl li .iku-ico { margin-top: 1px; }
.fe-ctrl li.is-warn .iku-ico { color: var(--st-amber); }
.fe-ctrl li.is-info .iku-ico { color: var(--color-text-muted); }
.fe-ctrl-m { display: block; font-size: 12px; line-height: 1.45; color: var(--tx1); }
.fe-ctrl-f { display: block; margin-top: 2px; font-size: 11px; color: var(--color-text-muted); word-break: break-word; }

/* Factures. */
.fe-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--o6); }
.fe-tabs button { border: 0; background: transparent; color: var(--color-text-muted); font: inherit; font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 7px; cursor: pointer; }
.fe-tabs button.on { background: var(--color-bg-surface, var(--bg1, #0d1b24)); color: var(--tx1); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.fe-tabs small { font-weight: 600; margin-left: 3px; color: var(--color-text-muted); }
.fe-table-w { overflow-x: auto; border-radius: 8px; }
.fe-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 640px; }
.fe-table th { text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); padding: 6px 8px; border-bottom: 1px solid var(--o12); white-space: nowrap; }
.fe-table td { padding: 6px 8px; border-bottom: 1px solid var(--o8); color: var(--color-text-secondary); white-space: nowrap; }
.fe-table .r { text-align: right; }
.fe-table td.r { color: var(--tx1); font-weight: 600; }
.fe-table tr.is-avoir td.r { color: var(--st-amber); }
.fe-num { color: var(--tx1); font-weight: 600; }
.fe-tiers { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.fe-table td.is-echue { color: var(--st-amber); font-weight: 600; }
.fe-sens { font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 7px; background: var(--o6); color: var(--color-text-secondary); }
.fe-sens.is-emise { color: var(--txt-teal); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.fe-sens.is-recue { color: var(--st-amber); background: color-mix(in srgb, var(--st-amber) 12%, transparent); }
.fe-plus { margin-top: 8px; font-size: 12px; }
/* À surveiller : alertes tirées de l'analyse, liseré de gravité. */
.fe-al-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fe-al-l li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 8px 10px; border-radius: 9px; background: var(--o4); border-left: 3px solid var(--o12); }
.fe-al-l li .iku-ico { margin-top: 1px; color: var(--color-text-muted); }
.fe-al-l li.is-critique { border-left-color: var(--st-red); }
.fe-al-l li.is-critique .iku-ico { color: var(--st-red); }
.fe-al-l li.is-attention { border-left-color: var(--st-amber); }
.fe-al-l li.is-attention .iku-ico { color: var(--st-amber); }
.fe-al-x { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fe-al-t { font-size: 12.5px; font-weight: 700; color: var(--tx1); }
.fe-al-d { font-size: 11.5px; line-height: 1.45; color: var(--color-text-muted); }
.fe-al-m { font-size: 12.5px; font-weight: 700; color: var(--tx1); white-space: nowrap; }

/* Trésorerie à 13 semaines : barres au-dessus et en dessous de zéro, ligne du cumul. */
.fe-leg i.is-c { width: 12px; height: 2px; border-radius: 1px; background: var(--tx1); vertical-align: middle; }
.fe-tr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.fe-tr-kpis div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 9px; background: var(--o4); min-width: 0; }
.fe-tr-kpis span { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); }
.fe-tr-kpis b { font-size: 14px; color: var(--tx1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fe-tr-kpis b.is-neg { color: var(--st-amber); }
/* Graphique en HTML : axe à gauche, 13 colonnes, étiquettes de semaines dessous ; positions en % du tracé. */
.fe-tr-graph { display: grid; grid-template-columns: 50px minmax(0, 1fr); grid-template-rows: 200px auto; column-gap: 8px; row-gap: 6px; padding-top: 10px; }
.fe-tr-axe { position: relative; }
.fe-tr-axe span { position: absolute; right: 0; transform: translateY(-50%); font-size: 11px; color: var(--color-text-muted); white-space: nowrap; }
.fe-tr-plot { position: relative; display: grid; grid-template-columns: repeat(var(--nb), minmax(0, 1fr)); }
.fe-tr-zero { position: absolute; left: 0; right: 0; height: 1px; background: var(--o12); }
.fe-tr-col { position: relative; border-radius: 4px; }
.fe-tr-col:hover { background: var(--o4); }
.fe-tr-enc, .fe-tr-dec { position: absolute; width: 32%; min-height: 1px; border-radius: 2px; }
.fe-tr-enc { left: 16%; background: var(--brand); }
.fe-tr-dec { left: 52%; background: color-mix(in srgb, var(--st-amber) 80%, transparent); }
.fe-tr-ligne { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fe-tr-ligne polyline { fill: none; stroke: var(--tx1); stroke-width: 1.6; stroke-linejoin: round; }
.fe-tr-pt { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--tx1); transform: translate(-50%, -50%); pointer-events: none; }
.fe-tr-pt.is-min { width: 9px; height: 9px; background: var(--st-amber); }
.fe-tr-x { grid-column: 2; display: grid; grid-template-columns: repeat(var(--nb), minmax(0, 1fr)); }
.fe-tr-x span { font-size: 11px; color: var(--color-text-muted); text-align: center; white-space: nowrap; }
.fe-tr-notes { margin: 8px 0 0; padding-left: 16px; display: flex; flex-direction: column; gap: 3px; font-size: 11px; line-height: 1.45; color: var(--color-text-muted); }

/* Statut d'une facture : paiement connu ou dernier statut de cycle de vie. */
.fe-st { font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 7px; background: var(--o6); color: var(--color-text-secondary); }
.fe-st.is-ok { color: var(--txt-teal); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.fe-st.is-warn { color: var(--st-amber); background: color-mix(in srgb, var(--st-amber) 12%, transparent); }
.fe-st-reste { margin-left: 6px; font-size: 10.5px; color: var(--color-text-muted); }

/* ── Responsive ── */
@media (max-width: 1080px) {
    .fe-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .fe-quoi, .fe-grid2 { grid-template-columns: minmax(0, 1fr); }
    .fe-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fe-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* 5 tuiles sur 2 colonnes : la dernière prend la ligne, pas de tuile orpheline */
    .fe-drop { padding: 30px 14px; }
    .fe-pf { padding: 11px 12px; }
    .fe-tr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fe-tr-graph { grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: 170px auto; column-gap: 6px; }
    .fe-tr-axe span, .fe-tr-x span { font-size: 10px; }
    .fe-ech li { grid-template-columns: minmax(0, 2.2fr) minmax(24px, .7fr) auto 20px; gap: 6px; }
    .fe-al-l li { grid-template-columns: 16px minmax(0, 1fr); }
    .fe-al-m { grid-column: 2; }
    .fe-pf-choix { display: flex; width: 100%; }
    .fe-pf-choix button { flex: 1 1 0; white-space: nowrap; }
    .fe-pf-choix .fe-l-long { display: none; }
    .fe-pf-choix .fe-l-court { display: inline; }
    .fe-pf-f { grid-template-columns: minmax(0, 1fr); }
    .fe-pf-a { grid-column: 1 / -1; }
    .fe-pf-a .fe-btn { flex: 1 1 auto; justify-content: center; }
    .fe-bar-acts { width: 100%; }
    .fe-bar-acts .fe-btn { flex: 1 1 auto; justify-content: center; }
    .fe-ent-sel, .fe-ent-sel .custom-dropdown, .fe-ent-sel .custom-dropdown-trigger { width: 100%; min-width: 0; }
    .fe-ent-sel { flex: 1 1 100%; }
    .fe-tiers-l li { grid-template-columns: minmax(0, 1.6fr) 38px auto 38px; }
    .fe-tiers-b { display: none; }
    .fe-card-h { align-items: center; }
}
