/* Écran « Formules » (GMO 2.35.0, lot 6) : feuille de public/formules.js. Jetons de thème seulement (aucune couleur
   écrite en dur), aucun style en ligne dans l'écran (CSP). La page ne défile jamais : l'écran occupe la zone de travail,
   la liste et la fiche défilent chacune dans leur zone. */
.fo-ecran { display: flex; flex-direction: column; gap: var(--e3); height: 100%; min-height: 0; padding: var(--e2); box-sizing: border-box; }
.fo-tete { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--e3) var(--e4); }
.fo-titre { margin: 0; font-size: var(--fs-l); font-weight: 600; }
.fo-champ { display: inline-flex; align-items: center; gap: var(--e2); color: var(--ink-2); font-size: var(--fs-s); }
.fo-champ input[type="search"] { width: 16rem; }
.fo-compte { color: var(--ink-2); font-size: var(--fs-s); }
.fo-m:empty { display: none; }
.fo-corps { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr); gap: var(--e4); }
.fo-liste, .fo-fiche { min-height: 0; overflow: auto; border: 1px solid var(--line); border-radius: var(--r2); background: var(--bg-1); }
.fo-items { list-style: none; margin: 0; padding: 0; }
.fo-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--e3); width: 100%; padding: var(--e2) var(--e3); border: 0; border-bottom: 1px solid var(--grid-line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.fo-item:hover { background: var(--survol); }
.fo-item.actif { background: var(--choisi-panneau); box-shadow: inset 3px 0 0 var(--accent); }
.fo-item-lib { grid-column: 1 / -1; font-size: var(--fs-m); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-item-id { color: var(--ink-2); font-family: var(--mono); font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-item-v { color: var(--ink-2); font-size: var(--fs-xs); }
.fo-vide { padding: var(--e4); color: var(--ink-2); }
.fo-carte { padding: var(--e3) var(--e4) var(--e5); font-size: var(--fs-m); line-height: 1.45; }
.fo-carte h4 { margin: var(--e4) 0 var(--e2); font-size: var(--fs-s); font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .02em; }
.fo-carte p { margin: 0; }
.fo-fiche-tete { display: flex; align-items: center; gap: var(--e3); }
.fo-fiche-tete h3 { margin: 0; font-size: var(--fs-l); font-weight: 600; }
.fo-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--e1) var(--e4); margin: var(--e3) 0 0; }
.fo-ligne { display: flex; gap: var(--e3); min-width: 0; }
.fo-ligne dt { color: var(--ink-2); white-space: nowrap; }
.fo-ligne dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.fo-expr { padding: var(--e2) var(--e3); border-left: 3px solid var(--accent); background: var(--bg-2); font-family: var(--mono); font-size: var(--fs-s); overflow-wrap: anywhere; }
.fo-ref { overflow-wrap: anywhere; }
.fo-puces { margin: 0; padding-left: var(--e5); }
.fo-tab { table-layout: auto; margin-bottom: var(--e2); }
.fo-tab td, .fo-tab th { white-space: normal; height: auto; padding-top: var(--e1); padding-bottom: var(--e1); }
.fo-tab .n { text-align: right; white-space: nowrap; }
.fo-cas .fo-entrees { font-family: var(--mono); font-size: var(--fs-xs); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .fo-corps { grid-template-columns: 1fr; grid-template-rows: minmax(8rem, 35%) minmax(0, 1fr); }
  .fo-champ input[type="search"] { width: 10rem; }
}
