/* Console Huntress : disposition et couleurs relevées sur la console réelle (barre #384152 de 56 px, fond #F1F5F6,
   orange « High » #F59405). Le logo est recadré de la capture de l'organisation de démo (img/logo-huntress.png). */

.hu {
  --hu-barre: #384152;
  --hu-fond: #f1f5f6;
  --hu-texte: #1f2933;
  --hu-doux: #6b7785;
  --hu-lien: #2b6cb0;
  --hu-rouge: #e74c3c;
  --hu-orange: #f59405;
  --hu-violet: #7b3fc9;
  --hu-sarcelle: #1fb59f;
  font-family: "Open Sans", "Segoe UI", system-ui, Arial, sans-serif;
  font-size: 14px;
  color: var(--hu-texte);
  background: var(--hu-fond);
  min-height: calc(100vh - 32px);
}
.hu a { color: var(--hu-lien); text-decoration: none; }
.hu button { font-family: inherit; font-size: inherit; }
.hu .ico { width: 18px; height: 18px; }
.hu-gris { color: var(--hu-doux); font-weight: 400; }

/* --- La barre du haut --- */
.hu-top { display: flex; align-items: center; height: 56px; padding: 0 12px 0 6px; background: var(--hu-barre); color: #fff; }
.hu-logo { display: flex; margin-right: 16px; }
.hu-logo img { display: block; }
.hu-org { display: flex; flex-direction: column; align-items: flex-start; background: none; border: 0; border-right: 1px solid #5a6475; color: #fff; padding: 0 16px 0 0; cursor: pointer; }
.hu-org span { font-size: 13px; color: #d5dae1; }
.hu-org strong { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.hu-org .ico { width: 16px; height: 16px; }
.hu-menus { display: flex; gap: 2px; margin-left: 18px; }
.hu-menus a { color: #fff !important; padding: 8px 10px; border-radius: 3px; font-size: 14px; }
.hu-menus a:hover, .hu-menus a.actif { background: #4a5468; }
.hu-droite { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hu-aide { background: #e53935; color: #fff; border: 0; border-radius: 3px; padding: 6px 10px; cursor: pointer; }
.hu-icone { position: relative; background: none; border: 0; color: #fff; padding: 4px; cursor: pointer; display: flex; }
.hu-icone.avec-point::after { content: ""; position: absolute; top: 1px; right: 1px; width: 7px; height: 7px; border-radius: 50%; background: #e53935; }

/* --- Le rail de gauche --- */
.hu-corps { display: flex; align-items: flex-start; }
.hu-rail { width: 52px; flex: none; min-height: calc(100vh - 88px); background: #e9edf0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 10px; }
.hu-rail-item { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 42px; padding: 4px 0; background: none; border: 0; color: #4b5563; cursor: pointer; border-radius: 6px; }
.hu-rail-item span { font-size: 8px; letter-spacing: .04em; color: #6b7785; }
.hu-rail-item .ico { width: 22px; height: 22px; }
.hu-rail-item.actif { background: #d4f0ec; color: #1f8f80; }

/* --- Le contenu --- */
.hu-principal { flex: 1; min-width: 0; padding: 16px 20px 30px; }
.hu-titre { margin: 4px 0 22px 12px; font-size: 28px; font-weight: 700; }
.hu-fil { font-size: 19px; color: #3c4652; margin: 4px 0 18px; }
.hu-grille { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 12px; }
.hu-colonne-principale { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hu-rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hu-rangee.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hu-carte { background: #fff; border: 1px solid #e3e8ec; border-radius: 3px; padding: 12px 14px; min-width: 0; }
.hu-carte h2 { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid #edf0f2; font-size: 14px; font-weight: 400; color: #3c4652; }
.hu-info .ico { width: 15px; height: 15px; }
.hu-droite-texte { margin-left: auto; }
.hu-aucun { text-align: center; color: var(--hu-doux); margin: 14px 0; }

.hu-boites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hu-boite { display: flex; align-items: center; height: 42px; border: 1px solid; border-radius: 3px; overflow: hidden; }
.hu-boite-icone { width: 56px; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; }
.hu-boite-icone .ico { width: 22px; height: 22px; }
.hu-boite-texte { flex: 1; padding-left: 10px; }
.hu-boite-compteurs { display: flex; align-items: center; gap: 4px; padding-right: 10px; }
.hu-boite-compteurs .ico { width: 16px; height: 16px; color: #3c4652; }
.hu-sep { width: 1px; height: 16px; background: #c9ced5; margin: 0 4px; }
.hu-boite.critique { border-color: var(--hu-rouge); }
.hu-boite.critique .hu-boite-icone { background: var(--hu-rouge); }
.hu-boite.haute { border-color: var(--hu-orange); }
.hu-boite.haute .hu-boite-icone { background: var(--hu-orange); }
.hu-boite.basse { border-color: var(--hu-violet); }
.hu-boite.basse .hu-boite-icone { background: var(--hu-violet); }

.hu-soc { display: flex; align-items: flex-start; justify-content: space-around; text-align: center; }
.hu-soc > div { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #3c4652; }
.hu-soc strong { font-size: 24px; color: var(--hu-texte); }
.hu-rond { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.hu-rond .ico { width: 24px; height: 24px; }
.hu-rond.bleu { background: #1aa3e8; }
.hu-rond.orange { background: var(--hu-orange); }
.hu-rond.rouge { background: var(--hu-rouge); }
.hu-fleche { flex: 0 0 60px; height: 1px; background: #c9ced5; margin-top: 23px; }
.hu-escalades { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hu-exclamation { color: var(--hu-sarcelle); font-size: 26px; font-weight: 700; }
.hu-escalades > a { font-size: 19px; color: #3c4652 !important; }
.hu-escalades-chiffres { display: flex; gap: 24px; text-align: center; }
.hu-escalades-chiffres div { display: flex; flex-direction: column; font-size: 13px; color: var(--hu-doux); }
.hu-escalades-chiffres strong { font-size: 20px; color: #3c4652; }

.hu-donut { display: flex; align-items: center; gap: 14px; }
.hu-anneau { position: relative; flex: none; width: 128px; height: 128px; border-radius: 50%; }
.hu-anneau span { position: absolute; inset: 26px; border-radius: 50%; background: #fff; }
.hu-legende { flex: 1; font-size: 13px; }
.hu-legende strong { display: block; margin-bottom: 6px; }
.hu-legende-ligne { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.hu-legende-ligne .ico { width: 14px; height: 14px; }
.hu-legende-ligne .hu-nombre { margin-left: auto; }

.hu-triage { display: flex; flex-direction: column; }
.hu-filtre { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; background: #1aa3e8; color: #fff; border: 0; border-radius: 3px; padding: 4px 8px; cursor: pointer; font-size: 13px; }
.hu-filtre .ico { width: 14px; height: 14px; }
.hu-onglets { display: flex; gap: 4px; border-bottom: 1px solid #e3e8ec; margin-bottom: 8px; }
.hu-onglets > span { padding: 8px 20px; color: #3c4652; }
.hu-onglets > span.actif { border: 1px solid #e3e8ec; border-bottom-color: #fff; margin-bottom: -1px; background: #fff; border-radius: 3px 3px 0 0; }
.hu-badge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--hu-rouge); color: #fff; font-size: 12px; }
.hu-triage-carte { border: 1px solid #e3e8ec; border-radius: 3px; padding: 10px 12px; }
.hu-triage-carte a { text-decoration: underline; color: #3c4652 !important; }
.hu-triage-details { margin: 8px 0; color: #3c4652; font-size: 13px; line-height: 1.5; }
.hu-triage-details a { text-decoration: none; color: var(--hu-lien) !important; }
.hu-triage-bas { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.hu-puce { display: inline-flex; align-items: center; gap: 4px; background: #eef1f3; border-radius: 3px; padding: 3px 8px; font-size: 12px; }
.hu-puce .ico { width: 14px; height: 14px; }

.hu-pill { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 3px; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.hu-pill .ico { width: 12px; height: 12px; }
.hu-pill.actif { background: #e53935; }
.hu-pill.resolu { background: var(--hu-sarcelle); }
.hu-pill.encours { background: #1aa3e8; }
.hu-pill.attente { background: var(--hu-orange); }
.hu-pill.isole { background: var(--hu-violet); }
.hu-pill.sev-critical { background: #e53935; }
.hu-pill.sev-high { background: var(--hu-orange); }
.hu-pill.sev-low { background: var(--hu-violet); }

/* --- La liste des incidents --- */
.hu-liste { padding: 0; }
.hu-liste-entete { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #f5f7f8; border-bottom: 1px solid #e3e8ec; }
.hu-liste-entete h2 { margin: 0; padding: 0; border: 0; font-size: 15px; color: var(--hu-texte); }
.hu-liste-entete > div { display: flex; align-items: center; gap: 14px; }
.hu-liste-outils { padding: 10px 14px; display: flex; align-items: center; gap: 8px; }
.hu-select { display: inline-flex; align-items: center; gap: 18px; border: 1px solid #c9ced5; border-radius: 3px; padding: 6px 10px; }
.hu-bouton { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 3px; border: 1px solid; cursor: pointer; font-size: 14px; }
.hu-bouton:disabled { cursor: default; }
.hu-bouton.vert { background: var(--hu-sarcelle); border-color: var(--hu-sarcelle); color: #fff; }
.hu-bouton.vert.pale { opacity: .55; }
.hu-bouton.bleu { background: #1a8fd0; border-color: #1a8fd0; color: #fff; }
.hu-bouton.contour { background: #fff; border-color: #8fd6cb; color: var(--hu-doux); }
.hu-bouton.contour .ico { color: var(--hu-sarcelle); width: 14px; height: 14px; }
.hu-bouton.bleu-texte { border-color: #1a8fd0; color: #1d2733; }
.hu-tableau { width: 100%; border-collapse: collapse; }
.hu-tableau th { text-align: left; font-weight: 700; padding: 8px 10px; border-bottom: 1px solid #e3e8ec; white-space: nowrap; }
.hu-tableau td { padding: 7px 10px; border-bottom: 1px solid #edf0f2; }
.hu-tableau tbody tr:nth-child(odd) td { background: #f5f7f8; }
.hu-tableau td a { text-decoration: underline; color: #3c4652 !important; }
.hu-centre { text-align: center; }
.hu-centre .ico { width: 18px; height: 18px; color: #3c4652; }
.hu-ok { color: var(--hu-sarcelle); font-weight: 700; }
.hu-cercle { display: inline-block; width: 12px; height: 12px; border: 2px solid #3c4652; border-radius: 50%; vertical-align: -2px; }
.hu-tri { color: #b5bcc4; font-size: 11px; }
.hu-mono { font-family: Consolas, "Courier New", monospace; font-size: 13px; }

/* --- Le rapport d'incident --- */
.hu-incident { max-width: 1160px; margin: 0 auto; }
.hu-incident .hu-bouton, .hu-onglets-rapport a { white-space: nowrap; }
.hu-incident-entete > div:first-child { min-width: 0; }
.hu-incident-entete { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 14px; line-height: 1.55; }
.hu-incident-entete h1 { margin: 0 0 6px; font-size: 18px; font-weight: 400; display: flex; align-items: center; gap: 6px; }
.hu-incident-entete h1 .ico { width: 18px; height: 18px; }
.hu-incident-boutons { display: flex; align-items: flex-start; gap: 4px; padding-top: 22px; }
.hu-onglets-rapport { display: flex; justify-content: space-between; border-bottom: 1px solid #e3e8ec; }
.hu-onglets-rapport a { padding: 10px 22px; color: #3c4652 !important; font-size: 15px; border: 1px solid transparent; border-bottom: 0; border-radius: 4px 4px 0 0; }
.hu-onglets-rapport a.actif { background: #fff; border-color: #e3e8ec; margin-bottom: -1px; }
.hu-compte { display: inline-block; min-width: 16px; padding: 0 4px; border-radius: 2px; font-size: 11px; color: #fff; text-align: center; vertical-align: 1px; }
.hu-compte.vert { background: var(--hu-sarcelle); }
.hu-compte.gris { background: #9aa3ad; }
.hu-incident-contenu { background: #fff; border: 1px solid #e3e8ec; border-top: 0; padding: 14px; }
.hu-rapport { margin: 0; padding: 14px; background: #eef0f2; border: 1px solid #d9dee3; border-radius: 3px; font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.5; white-space: pre-wrap; color: #1f2933; }
.hu-remediations p { margin: 0 0 12px; }
.hu-remediations-bas { display: flex; gap: 8px; margin-top: 14px; }
.hu-reco { margin: 0; padding-left: 20px; line-height: 1.8; }
