/* L'onglet Logique du concepteur (logique-concepteur.js, SPEC_LOGIC.md §10 à §14). */
.ma .lg { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ma .lg-barre { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ma .lg-filtre { display: flex; align-items: center; gap: 6px; color: var(--dad-muted); flex: 1 1 220px; max-width: 420px; }
.ma .lg-barre .btn { display: inline-flex; align-items: center; gap: 6px; }
.ma .lg-ajout { border: 1px dashed var(--dad-primary); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: color-mix(in srgb, var(--dad-primary) 5%, transparent); }
.ma .lg-ajout p { margin: 0; font-weight: 600; }
.ma .lg-ajout > .btn { align-self: flex-start; }
.ma .lg-ajout-choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ma .lg-choix { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; border: 1px solid var(--dad-border); border-radius: 12px; background: var(--dad-panel); padding: 14px; cursor: pointer; font: inherit; color: inherit; }
.ma .lg-choix:hover { border-color: var(--dad-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dad-primary) 14%, transparent); }
.ma .lg-choix .ms { color: var(--dad-primary); }
.ma .lg-choix small { color: var(--dad-muted); }

.ma .lg-liste { display: flex; flex-direction: column; gap: 6px; }
/* La liste des gestionnaires défile seule : le panneau du noeud prend la hauteur libre (au moins 360 px,
   au-delà de quoi la zone principale reprend la main, par exemple quand des erreurs s'affichent dessous). */
.ma .dad-panel:has(> .dad-form-grid > .lg--liste) { flex: 1 1 auto; min-height: 360px; display: flex; flex-direction: column; }
.ma .dad-panel:has(> .dad-form-grid > .lg--liste) > * { flex: none; }
.ma .dad-panel:has(> .dad-form-grid > .lg--liste) > .dad-form-grid { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ma .lg--liste { flex: 1 1 auto; min-height: 0; }
.ma .lg--liste > .lg-liste { flex: 1 1 auto; min-height: 120px; overflow: auto; padding: 2px 4px 2px 2px; }
.ma .lg--liste > :not(.lg-liste) { flex: none; }
.ma .lg--liste > .dad-note { margin: 0; }
.ma .lg-ligne { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--dad-border); border-radius: 10px; background: var(--dad-panel); min-width: 0; transition: box-shadow .12s, opacity .12s; }
.ma .lg-ligne.is-coupe { opacity: .55; }
.ma .lg-ligne.is-tire { opacity: .45; box-shadow: 0 8px 24px rgba(15, 23, 42, .18); }
.ma .lg-ligne.lg-cible-avant { box-shadow: 0 -3px 0 var(--dad-primary); }
.ma .lg-ligne.lg-cible-apres { box-shadow: 0 3px 0 var(--dad-primary); }
.ma .lg-poignee { border: 0; background: transparent; color: var(--dad-muted); cursor: grab; padding: 4px; border-radius: 6px; display: inline-flex; touch-action: none; }
.ma .lg-poignee:focus-visible { outline: 2px solid var(--dad-primary); }
.ma .lg-pastille { flex: none; width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--dad-bg); color: var(--dad-muted); }
.ma .lg-pastille--evenement { background: #fff7ed; color: #ea580c; }
.ma .lg-pastille--source { background: #eff6ff; color: #2563eb; }
.ma .lg-sources { display: flex; flex-direction: column; gap: 10px; }
.ma .lg-sources .lg-barre .dad-note { margin: 0; flex: 1 1 260px; }
.ma .lg-cases { display: flex; flex-wrap: wrap; gap: 8px; }
.ma .lg-cases .dad-check-row { flex: 0 1 auto; }
.ma .lg-ed-tete code { color: var(--dad-muted); font-size: .8rem; }
.ma .lg-pastille--bouton { --lg-c: #4f46e5; background: color-mix(in srgb, var(--lg-c) 14%, transparent); color: var(--lg-c); }
.ma .lg-nom { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ma .lg-nom b { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma .lg-nom b code { font-weight: 500; color: var(--dad-muted); font-size: .78rem; margin-left: 4px; }
.ma .lg-nom small { color: var(--dad-muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma .lg-vue { flex: none; font-size: .74rem; color: var(--dad-muted); background: var(--dad-bg); border-radius: 999px; padding: 3px 9px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma .lg-interrupteur { flex: none; position: relative; width: 36px; height: 20px; cursor: pointer; margin: 0; }
.ma .lg-interrupteur input { opacity: 0; width: 0; height: 0; position: absolute; }
.ma .lg-interrupteur span { position: absolute; inset: 0; border-radius: 999px; background: #cbd5e1; transition: background .15s; }
.ma .lg-interrupteur span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.ma .lg-interrupteur input:checked + span { background: #16a34a; }
.ma .lg-interrupteur input:checked + span::after { transform: translateX(16px); }
.ma .lg-interrupteur input:focus-visible + span { outline: 2px solid var(--dad-primary); outline-offset: 2px; }
.ma .lg-suppr-ok { min-height: 32px; padding: 4px 10px; font-size: .8rem; animation: lg-pulse 1s ease-in-out infinite alternate; }
@keyframes lg-pulse { from { box-shadow: 0 0 0 0 rgba(220, 38, 38, .25); } to { box-shadow: 0 0 0 4px rgba(220, 38, 38, .15); } }
.ma .lg-requis { color: #dc2626; }

.ma .lg-edition { display: flex; flex-direction: column; gap: 14px; }
.ma .lg-ed-tete { display: flex; align-items: center; gap: 10px; }
.ma .lg-ed-tete b { font-size: 1rem; }
.ma .lg-esp { flex: 1 1 auto; }
.ma .lg-ed-tete .btn, .ma .lg-outils .btn, .ma .lg-bloc-tete .btn { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 4px 10px; font-size: .84rem; }
.ma .lg-dispo { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ma .lg-dispo small { color: var(--dad-muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; margin-right: 4px; }
.ma .lg-dispo code { background: var(--dad-bg); border: 1px solid var(--dad-border); border-radius: 6px; padding: 1px 6px; font-size: .78rem; }
.ma .lg-bloc { display: flex; flex-direction: column; gap: 6px; }
.ma .lg-bloc-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ma .lg-bloc-tete small { color: var(--dad-muted); font-size: .78rem; }
.ma .lg-bloc-tete select.dad-input { width: auto; min-width: 160px; }
.ma .lg-outils { margin-left: auto; display: flex; gap: 6px; }
.ma .lg-cote { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ma .lg-cote.avec-aide { grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); }
@media (max-width: 900px) { .ma .lg-cote.avec-aide { grid-template-columns: minmax(0, 1fr); } }

/* L'éditeur de code (CodeMirror 6) */
.ma .lg-editeur { border: 1px solid var(--dad-border); border-radius: 10px; overflow: hidden; background: var(--dad-panel); min-width: 0; }
.ma .lg-editeur:focus-within { border-color: var(--dad-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dad-primary) 14%, transparent); }
.ma .lg-editeur > .dad-note { padding: 10px 12px; margin: 0; }
.ma .lg-editeur .cm-editor { font-size: 13.5px; max-height: 60vh; }
.ma .lg-editeur--court .cm-editor { max-height: 30vh; }
.ma .lg-editeur .cm-editor.cm-focused { outline: none; }
.ma .lg-editeur .cm-scroller { font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace; line-height: 1.5; }
.ma .lg-editeur .cm-gutters { background: var(--dad-bg); border-right: 1px solid var(--dad-border); color: #94a3b8; }
.ma .lg-editeur .cm-activeLine { background: color-mix(in srgb, var(--dad-primary) 5%, transparent); }
.ma .lg-editeur .cm-activeLineGutter { background: color-mix(in srgb, var(--dad-primary) 10%, transparent); }
.ma .lg-editeur .cm-tooltip-autocomplete { border-radius: 8px; overflow: hidden; }
.ma .lg-editeur .cm-tooltip-autocomplete ul li[aria-selected] { background: var(--dad-primary); }
.lg-c-commentaire { color: #64748b; font-style: italic; }
.lg-c-texte { color: #0f766e; }
.lg-c-nombre { color: #b45309; }
.lg-c-atome { color: #7c3aed; font-weight: 600; }
.lg-c-mot { color: #7c3aed; font-weight: 600; }
.lg-c-op { color: #475569; }
.lg-c-var { color: #1e293b; }
.lg-c-champ { color: #0369a1; font-weight: 600; }
.lg-c-avar { color: #a21caf; font-weight: 600; }
.lg-c-repere { color: #a21caf; background: color-mix(in srgb, #a21caf 8%, transparent); border-radius: 3px; }
.lg-c-inconnue { color: #dc2626; text-decoration: underline wavy #dc2626; }
.lg-c-cmd { font-weight: 600; }
.lg-c-controle { color: #7c3aed; }
.lg-c-variable, .lg-c-valeur { color: #2563eb; }
.lg-c-lecture { color: #0891b2; }
.lg-c-ecriture { color: #c2410c; text-decoration: underline dotted color-mix(in srgb, #c2410c 50%, transparent); }
.lg-c-personne { color: #059669; }
.lg-c-ecran { color: #db2777; }
.lg-c-fichier { color: #4d7c0f; }
.lg-survol { padding: 8px 10px; max-width: 420px; white-space: pre-wrap; font-size: 12.5px; line-height: 1.45; }
.lg-f-controle { color: #7c3aed; } .lg-f-variable, .lg-f-valeur { color: #2563eb; } .lg-f-lecture { color: #0891b2; } .lg-f-ecriture { color: #c2410c; }
.lg-f-personne { color: #059669; } .lg-f-ecran { color: #db2777; } .lg-f-fichier { color: #4d7c0f; }

/* L'aide des commandes */
.ma .lg-aide { border: 1px solid var(--dad-border); border-radius: 10px; background: var(--dad-panel); display: flex; flex-direction: column; min-height: 0; max-height: 60vh; overflow: hidden; }
.ma .lg-aide > .dad-input { border: 0; border-bottom: 1px solid var(--dad-border); border-radius: 0; }
.ma .lg-aide-corps { overflow: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 10px; }
.ma .lg-aide-fam { display: flex; flex-direction: column; gap: 6px; }
.ma .lg-aide-fam > b { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
.ma .lg-aide-cmd { border-top: 1px solid var(--dad-border); padding-top: 6px; }
.ma .lg-aide-cmd > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ma .lg-aide-cmd code { font-size: .78rem; word-break: break-word; }
.ma .lg-aide-cmd p { margin: 3px 0; font-size: .8rem; }
.ma .lg-aide-cmd small { color: var(--dad-muted); font-size: .74rem; }
.ma .lg-aide .dad-btn-icon { width: 26px; height: 26px; }

/* Formulaires et variables (fenêtre Application) */
.ma .lg-f { display: grid; grid-template-columns: minmax(180px, 230px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 760px) { .ma .lg-f { grid-template-columns: minmax(0, 1fr); } }
.ma .lg-f-liste { display: flex; flex-direction: column; gap: 6px; }
.ma .lg-f-item { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid var(--dad-border); border-radius: 10px; background: var(--dad-panel); padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; }
.ma .lg-f-item span { display: flex; flex-direction: column; min-width: 0; }
.ma .lg-f-item small { color: var(--dad-muted); font-size: .75rem; }
.ma .lg-f-item.is-actif { border-color: var(--dad-primary); background: color-mix(in srgb, var(--dad-primary) 8%, transparent); }
.ma .lg-f-edition { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ma .lg-el-edition { margin: -2px 0 6px 34px; padding: 12px; border: 1px solid var(--dad-border); border-top: 0; border-radius: 0 0 10px 10px; background: var(--dad-bg); }
.ma .lg-vars { display: flex; flex-direction: column; gap: 8px; }
.ma .lg-var { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(120px, .8fr) minmax(160px, 2fr) auto; gap: 10px; align-items: end; padding: 10px; border: 1px solid var(--dad-border); border-radius: 10px; background: var(--dad-panel); }
.ma .lg-var.is-large { grid-template-columns: minmax(120px, 1fr) minmax(120px, .8fr) auto; }
.ma .lg-var.is-large .lg-var-val { grid-column: 1 / -1; order: 5; }
@media (max-width: 760px) { .ma .lg-var, .ma .lg-var.is-large { grid-template-columns: minmax(0, 1fr); } }
.ma .lg-app { gap: 10px; }

/* Essayer */
.lg-essai-fond { position: fixed; inset: 0; z-index: 1900; background: rgba(15, 23, 42, .42); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lg-essai { --dad-primary: #4f46e5; --dad-bg: #f5f7fa; --dad-panel: #fff; --dad-border: #e3e8ef; --dad-muted: #64748b;
  width: min(980px, 100%); max-height: calc(100vh - 32px); background: #fff; color: #1e293b; border-radius: 16px; box-shadow: 0 24px 70px rgba(15, 23, 42, .32); display: flex; flex-direction: column; overflow: hidden; }
.lg-essai-tete { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--dad-border); }
.lg-essai-tete b { display: flex; align-items: center; gap: 8px; }
.lg-essai-corps { padding: 14px 18px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.lg-essai-sel { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; max-height: 180px; overflow: auto; }
.lg-essai-actions { display: flex; justify-content: flex-end; }
.lg-essai-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.lg-essai-res { display: flex; flex-direction: column; gap: 8px; }
.lg-essai-res ul { margin: 0; padding-left: 20px; }
.lg-statut { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; flex-wrap: wrap; }
.lg-statut.is-ok { background: #f0fdf4; color: #166534; }
.lg-statut.is-ko { background: #fef2f2; color: #991b1b; }
.lg-statut.is-neutre { background: #f1f5f9; color: #334155; }
.lg-statut span { flex-basis: 100%; font-size: .88rem; }
.lg-journal td, .lg-journal th { vertical-align: top; font-size: .8rem; }
.lg-journal tr.is-ko td { background: #fef2f2; }
.lg-journal code { word-break: break-all; }
.lg-mono { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; padding: 8px 10px; min-height: 80px; }
.lg-essai .dad-mini-table { width: 100%; border-collapse: collapse; }
.lg-essai .dad-mini-table td, .lg-essai .dad-mini-table th { border-bottom: 1px solid var(--dad-border); padding: 5px 8px; text-align: left; }

/* Téléphone : la ligne passe sur deux rangées, le nom d'abord. */
@media (max-width: 560px) {
  .ma .lg-ligne { flex-wrap: wrap; row-gap: 4px; }
  .ma .lg-nom { flex: 1 1 calc(100% - 90px); order: 0; }
  .ma .lg-vue { order: 2; margin-left: 42px; max-width: 38%; }
  .ma .lg-interrupteur, .ma .lg-ligne > .dad-btn-icon, .ma .lg-ligne > .btn { order: 3; }
  .ma .lg-interrupteur { margin-left: auto; }
  .ma .lg-nom b, .ma .lg-nom small { white-space: normal; }
  .ma .lg-filtre { max-width: none; }
}

/* Le journal d'exécution (lu dans ODESA) */
.lg-journal tr.lgj-ligne { cursor: pointer; }
.lg-journal tr.lgj-ligne:hover td { background: #f8fafc; }
.lg-journal tr.lgj-ligne.is-sel td { background: #eef2ff; }

/* Les onglets Configuration / Code d'un gestionnaire */
.ma .lg-ed-onglets { margin: 0; }
.ma .lg-nerr { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #dc2626; color: #fff; font-size: .72rem; display: inline-flex; align-items: center; justify-content: center; }

/* Choisir le dossier d'une source du poste (racine d'échange) */
.ma .lg-chemin { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ma .lg-chemin .dad-input { flex: 1 1 auto; min-width: 0; }
.ma .lg-pick { flex: none; width: 38px; height: 38px; border: 1px solid var(--dad-border); border-radius: 8px; color: var(--dad-primary); background: var(--dad-panel); }
.lg-ch-fond { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 42, .35); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lg-ch { width: min(560px, 100%); max-height: min(600px, calc(100vh - 32px)); display: flex; flex-direction: column; background: #fff; color: #1e293b; border-radius: 14px; box-shadow: 0 20px 60px rgba(15, 23, 42, .25); overflow: hidden; }
.lg-ch-tete { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #e3e8ef; }
.lg-ch-tete b { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; }
.lg-ch-corps { flex: 1 1 auto; min-height: 160px; overflow: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.lg-ch-ici { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: #f5f7fa; min-width: 0; }
.lg-ch-ici code { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.lg-ch-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lg-ch-liste button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: .88rem; text-align: left; cursor: pointer; }
.lg-ch-liste button:hover, .lg-ch-liste button:focus-visible { background: #eef2ff; color: #4338ca; outline: none; }
.lg-ch-liste button span:not(.ms) { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-ch-liste .ms:first-child { color: #d4a017; }
.lg-ch-pied { flex: none; display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid #e3e8ef; }
.lg-ch-pied .btn { display: inline-flex; align-items: center; gap: 6px; }

/* L'onglet Fonctions (PLAN_LOGIQUE_APPS_ODESA.md) : les fonctions publiées par le serveur, à cocher. */
.lg-fo-cherche { display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; }
.lg-fo-cherche input { flex: 1 1 auto; }
.lg-fo-groupe { border: 1px solid #e3e8f0; border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; background: #fff; }
.lg-fo-groupe h4 { margin: 2px 0 6px; display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.lg-fo-compte { margin-left: auto; display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: #eef2ff; color: #3b4cc0; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.lg-fo-groupe--ko { border-color: #f3c2c2; background: #fff7f7; }
.lg-fo-groupe--ko h4 { color: #b42318; font-weight: 600; }
.lg-fo-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto 170px; gap: 10px; align-items: center; padding: 6px 4px; border-top: 1px solid #f0f2f6; }
.lg-fo-ligne:first-of-type { border-top: 0; }
.lg-fo-ligne.is-cochee { background: #f6f8ff; border-radius: 8px; }
.lg-fo-nom { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; min-width: 0; }
.lg-fo-nom span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lg-fo-nom code { font-size: .82rem; overflow-wrap: anywhere; }
.lg-fo-nom small { color: #5b6b85; }
.lg-fo-nature { font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.lg-fo-nature--lecture { background: #e7f6ec; color: #1b7a3a; }
.lg-fo-nature--action { background: #fff1e0; color: #a5560c; }
.lg-fo-sans { display: flex; gap: 6px; align-items: center; font-size: .82rem; color: #3d4a63; }
@media (max-width: 640px) { .lg-fo-ligne { grid-template-columns: minmax(0, 1fr) auto; } .lg-fo-sans { grid-column: 1 / -1; } }


/* Les événements du poste : tableau pleine hauteur (en-tête fixe, défilement interne), filtres d'en-tête, pages. */
.lg-essai--poste { width: min(1280px, 100%); height: calc(100vh - 32px); }
.lg-essai--poste .lg-essai-corps { flex: 1; min-height: 0; overflow: hidden; }
.lg-essai--poste .dad-builder-tabs { flex: none; margin: 0; }
.lgp-note { flex: none; margin: 0; display: flex; gap: 14px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lgp-courriels { display: inline-flex; align-items: center; gap: 4px; flex: none; color: #334155; }
.lgp-cadre { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--dad-border); border-radius: 10px; }
.lgp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .8rem; table-layout: fixed; }
.lgp-table th { position: sticky; top: 0; z-index: 2; background: var(--dad-bg); text-align: left; padding: 0 8px; height: 38px; border-bottom: 1px solid var(--dad-border); color: var(--dad-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.lgp-table th:nth-child(1) { width: 160px; } .lgp-table th:nth-child(2) { width: 130px; } .lgp-table th:nth-child(3) { width: 24%; } .lgp-table th:nth-child(5) { width: 118px; }
.lgp-table td { padding: 7px 8px; border-bottom: 1px solid #eef2f6; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lgp-table tbody tr:hover td { background: #f8fafc; }
.lgp-table tr.is-ko td { background: #fffafa; }
.lgp-th { position: relative; }
.lgp-th-btn { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; padding: 4px 2px; margin: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; border-radius: 6px; }
.lgp-th-btn:hover { color: #1e293b; }
.lgp-th-btn.is-filtre { color: var(--dad-primary); }
.lgp-menu { position: absolute; top: 100%; left: 4px; z-index: 5; min-width: 200px; max-width: 360px; max-height: 300px; overflow: auto; background: #fff; border: 1px solid var(--dad-border); border-radius: 10px; box-shadow: 0 12px 30px rgba(15, 23, 42, .16); padding: 4px; display: flex; flex-direction: column; text-transform: none; letter-spacing: 0; font-weight: 500; }
.lgp-menu button { display: flex; align-items: center; gap: 6px; border: 0; background: none; text-align: left; padding: 7px 10px; margin: 0; border-radius: 7px; font: inherit; font-size: .82rem; color: #1e293b; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lgp-menu button:hover { background: #f1f5f9; }
.lgp-menu button.is-sel { background: #eef2ff; color: var(--dad-primary); font-weight: 700; }
.lgp-date { font-variant-numeric: tabular-nums; color: #334155; }
.lgp-pastille { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 6px; border-radius: 999px; font-size: .74rem; font-weight: 700; border: 1px solid transparent; }
.lgp-pastille.is-ok { background: #ecfdf3; color: #15803d; border-color: #bbf7d0; }
.lgp-pastille.is-ko { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.lgp-pastille.is-attente { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.lgp-evt-l { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.lgp-evt code, .lgp-erreur { font-family: ui-monospace, Consolas, monospace; font-size: .76rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgp-evt-l code { flex: 1; }
.lgp-evt small { flex: none; margin-left: auto; color: var(--dad-muted); font-variant-numeric: tabular-nums; }
.lgp-erreur { display: block; color: #b91c1c; margin-top: 2px; }
.lgp-act { text-align: right; }
.lgp-act .btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; min-height: 0; font-size: .78rem; }
.lgp-vide { text-align: center; color: var(--dad-muted); padding: 30px 8px !important; }
.lgp-pied { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--dad-muted); }
.lgp-pied-d { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lgp-pied select { margin-left: 6px; padding: 3px 6px; border: 1px solid var(--dad-border); border-radius: 6px; font: inherit; background: #fff; }
.lgp-pages { display: inline-flex; align-items: center; gap: 2px; }
.lgp-page { min-width: 30px; height: 30px; border: 1px solid transparent; background: none; border-radius: 7px; margin: 0; padding: 0 6px; font: inherit; color: #334155; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lgp-page:hover:not(:disabled) { background: #f1f5f9; }
.lgp-page.is-sel { border-color: var(--dad-primary); color: var(--dad-primary); font-weight: 700; }
.lgp-page:disabled { opacity: .35; cursor: default; }
.lgp-trou { padding: 0 4px; }
@media (max-width: 760px) {
  .lgp-note { white-space: normal; flex-wrap: wrap; }
  .lgp-table { table-layout: auto; }
  .lgp-table td { max-width: 260px; }
}

/* Le journal des exécutions : tableau à gauche, détail de l'exécution choisie à droite (hauteur fixe). */
.lgp-pastille.is-neutre { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.lgx-coupe { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: .84rem; }
.lgx-coupe span:not(.ms) { flex: 1; min-width: 0; }
.lgx-coupe .btn { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; min-height: 0; font-size: .8rem; }
.lgx-split { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 12px; }
.lgx-gauche { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.lgx-gauche .lgp-pied .btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; min-height: 0; font-size: .8rem; }
.lgx-table th:nth-child(1) { width: 172px; } .lgx-table th:nth-child(2) { width: 120px; } .lgx-table th:nth-child(3) { width: 22%; } .lgx-table th:nth-child(4) { width: auto; } .lgx-table th:nth-child(5) { width: 15%; } .lgx-table th:nth-child(6) { width: 76px; }
.lgx-table tr.lgj-ligne { cursor: pointer; }
.lgx-table tr.lgj-ligne:focus-visible td { outline: none; background: #eef2ff; }
.lgx-table tr.lgj-ligne.is-sel td { background: #eef2ff; box-shadow: inset 0 -1px 0 #c7d2fe; }
.lgx-table tr.lgj-ligne.is-sel td:first-child { box-shadow: inset 3px 0 0 var(--dad-primary), inset 0 -1px 0 #c7d2fe; }
.lgx-detail { min-width: 0; min-height: 0; overflow-y: auto; border: 1px solid var(--dad-border); border-radius: 10px; background: #fbfcfe; padding: 12px; display: flex; flex-direction: column; gap: 10px; font-size: .82rem; }
.lgx-vide { margin: auto; text-align: center; color: var(--dad-muted); max-width: 260px; }
.lgx-vide .ms { color: #c7d2fe; }
.lgx-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.lgx-tete > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.lgx-tete b { font-size: .92rem; overflow-wrap: anywhere; }
.lgx-erreur { display: flex; gap: 8px; padding: 9px 10px; border-radius: 9px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.lgx-erreur > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.lgx-erreur small { color: #b91c1c; }
.lgx-info { padding: 8px 10px; border-radius: 9px; background: #f1f5f9; color: #334155; overflow-wrap: anywhere; }
.lgx-dl { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 10px; margin: 0; }
.lgx-dl dt { color: var(--dad-muted); font-weight: 600; }
.lgx-dl dd { margin: 0; overflow-wrap: anywhere; color: #1e293b; }
.lgx-dl--ev dd { font-family: ui-monospace, Consolas, monospace; font-size: .76rem; white-space: pre-wrap; }
.lgx-dl--ev dd.is-long { grid-column: 1 / -1; max-height: 160px; overflow-y: auto; background: #fff; border: 1px solid var(--dad-border); border-radius: 7px; padding: 6px 8px; }
.lgx-bloc { border-top: 1px solid var(--dad-border); padding-top: 8px; }
.lgx-bloc > summary { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; color: #334155; list-style: none; margin-bottom: 8px; }
.lgx-bloc > summary::-webkit-details-marker { display: none; }
.lgx-bloc > summary::after { content: "expand_more"; font-family: "Material Symbols Outlined"; font-size: 20px; line-height: 1; font-weight: normal; margin-left: auto; color: var(--dad-muted); transition: transform .15s; }
.lgx-bloc[open] > summary::after { transform: rotate(180deg); }
.lgx-filtre { margin: 0 0 6px; color: var(--dad-muted); }
.lgx-etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lgx-etapes li { margin-left: calc(var(--p, 0) * 14px); padding: 6px 8px; border-radius: 8px; background: #fff; border: 1px solid #eef2f6; display: flex; flex-direction: column; gap: 3px; }
.lgx-etapes li.is-ko { background: #fef2f2; border-color: #fecaca; }
.lgx-e-l { display: flex; align-items: baseline; gap: 8px; }
.lgx-e-n { flex: none; font-size: .7rem; font-weight: 700; color: #6366f1; background: #eef2ff; border-radius: 5px; padding: 0 5px; }
.lgx-e-cmd { font-weight: 700; color: #1e293b; }
.lgx-e-ms { margin-left: auto; color: var(--dad-muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.lgx-e-v { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.lgx-e-v > span { flex: none; width: 66px; color: var(--dad-muted); font-size: .7rem; display: inline-flex; align-items: center; }
.lgx-e-v code { min-width: 0; font-size: .74rem; overflow-wrap: anywhere; white-space: pre-wrap; max-height: 96px; overflow-y: auto; }
.lgx-e-ko code { color: #b91c1c; font-weight: 600; }
.lgx-effets { margin: 0; padding-left: 18px; }
@media (max-width: 900px) {
  .lgx-split { grid-template-columns: minmax(0, 1fr); }
  .lgx-split.is-detail .lgx-gauche { display: none; }
  .lgx-split:not(.is-detail) .lgx-detail { display: none; }
  .lgx-table th:nth-child(5), .lgx-table td:nth-child(5), .lgx-table th:nth-child(3), .lgx-table td:nth-child(3) { display: none; }
}
.lg-essai--poste .lg-essai-corps { min-width: 0; }
.lg-essai--poste .lg-essai-corps > * { min-width: 0; }
@media (max-width: 900px) {
  .lg-essai-fond { padding: 8px; }
  .lg-essai--poste { height: calc(100vh - 16px); }
  .lg-essai--poste .lg-essai-corps { padding: 10px 12px; }
  .lg-essai--poste .dad-builder-tabs { overflow-x: auto; }
  .lg-essai--poste .dad-tab { white-space: nowrap; }
  .lgx-coupe { flex-wrap: wrap; }
  .lgp-note { white-space: normal; }
}
