/* public/css/s1-poste.css — la carte SentinelOne de la fiche d'un poste (lot s1poste, 03/11/2026 ; public/js/s1-poste.js).
   Préfixe s1p-. Jetons du socle seulement (aucune couleur ni valeur d'espacement en dur), deux thèmes, 360 px. Le reste
   vient du socle : .hx-carte, .hx-bandeau, .hx-badge, .hx-bouton, .hx-grappe, .hx-pile, .kv. */

.s1p-carte { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.s1p-carte > * { margin-top: 0; margin-bottom: 0; }
.s1p-entete-droite { display: inline-flex; align-items: center; gap: var(--space-1); flex-wrap: wrap; justify-content: flex-end; }

/* Les faits : libellé court, valeur qui passe à la ligne sans pousser la page. */
.s1p-faits { min-width: 0; }
.s1p-faits dd { min-width: 0; overflow-wrap: anywhere; }
/* Dernier état connu (console injoignable) : lisible, mais dit comme périmé. */
.s1p-perime { font-style: italic; }

/* Les menaces ouvertes : une ligne par menace, le chemin COMPLET à la ligne, jamais en largeur de page. */
.s1p-menaces { min-width: 0; }
.s1p-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.s1p-menace { border: 1px solid var(--border); border-left: 3px solid var(--hx-ton, var(--border-strong)); border-radius: var(--radius-sm, 6px);
  padding: var(--space-2) var(--space-3); display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; background: var(--bg-1); }
.s1p-menace--crit { --hx-ton: var(--color-crit); }
.s1p-menace--warn { --hx-ton: var(--color-warn); }
.s1p-menace-tete { display: flex; flex-wrap: wrap; gap: var(--space-1); min-width: 0; }
.s1p-menace-nom { overflow-wrap: anywhere; min-width: 0; }
.s1p-chemin { display: block; max-width: 100%; overflow-wrap: anywhere; white-space: normal; word-break: break-all; }

/* Les gestes : une grappe qui passe à la ligne ; les libellés restent sur une ligne chacun. */
.s1p-actions .hx-bouton, .s1p-admin .hx-bouton { white-space: nowrap; }
.s1p-admin { padding-top: var(--space-2); border-top: 1px solid var(--border); }

/* L'historique : menaces résolues, bloc replié comme l'activité ; une ligne par menace, le bouton ne pousse pas le texte. */
.s1p-historique > summary { cursor: pointer; color: var(--dim); font-size: var(--fs-sm); }
.s1p-historique > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.s1p-historique-corps { padding-top: var(--space-2); display: flex; flex-direction: column; gap: var(--space-2); }
.s1p-resolue { border: 1px solid var(--border); border-radius: var(--radius-sm, 6px); padding: var(--space-2) var(--space-3); background: var(--bg-1);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-width: 0; }
.s1p-resolue-texte { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; overflow-wrap: anywhere; }
.s1p-resolue-nom { overflow-wrap: anywhere; min-width: 0; }
.s1p-voir { flex: none; white-space: nowrap; }

/* L'activité : bloc replié, chargé à l'ouverture. */
.s1p-activite > summary { cursor: pointer; color: var(--dim); font-size: var(--fs-sm); }
.s1p-activite > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.s1p-activite-corps { padding-top: var(--space-2); }
.s1p-activites { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--fs-sm); }
.s1p-activites li { overflow-wrap: anywhere; min-width: 0; }
.s1p-act-date { white-space: nowrap; }

@media (max-width: 480px) {
  .s1p-actions .hx-bouton, .s1p-admin .hx-bouton { white-space: normal; text-align: left; }
}
