/* =====================================================================
   « Qui est où » — onglet Présents (maquette « Contrôle d'accès — qui est où »).
   Fond nuit, orange EDF ; vert agent du GU, bleu externe, ambre à vérifier, rouge refusé.
   ===================================================================== */
body.nuit { background: #060b1f; color: #eef1f8; }
.wrap.large { max-width: 1440px; }
.qeo { display: flex; flex-direction: column; gap: 16px; color: #eef1f8; }
.qeo-kpis { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.qeo-kpi { min-width: 112px; padding: 10px 14px; border-radius: 14px; background: #0f1a3f; display: flex; flex-direction: column; gap: 4px; }
.qeo-kpi span { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #9aa6cf; }
.qeo-kpi b { font: 700 28px/1 var(--font); }
.qeo-kpi.neg { background: #3a1420; border: 1px solid #7a2a3a; }
.qeo-kpi.neg span { color: #ffb3c0; } .qeo-kpi.neg b { color: #ffd0d8; }
.qeo-direct { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: #0f1a3f; font: 500 12.5px/1 var(--mono); color: #b9c3e6; }
.qeo-pouls { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; animation: qeo-pouls 2s ease-in-out infinite; }
@keyframes qeo-pouls { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.qeo-alerte { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border-radius: 14px; border: 1px solid #7a2a3a;
  background: #3a1420; color: #ffd0d8; text-align: left; cursor: pointer; font: 400 14px/1.35 var(--font); }
.qeo-alerte svg { flex: none; }

.qeo-corps { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.qeo-syn-zone { flex: 999 1 860px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.qeo-panneau-zone { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px;
  border-radius: 22px; background: #0a1230; border: 1px solid #1a2550; scroll-margin-top: 12px; }
.qeo-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: #b9c3e6; }
.qeo-legende span { display: inline-flex; align-items: center; gap: 6px; }
.qeo-legende i { width: 10px; height: 10px; border-radius: 50%; }

.qeo-syn { border-radius: 22px; background: #0a1230; border: 1px solid #1a2550; overflow-x: auto; }
.qeo-syn.petit { overflow: hidden; }
.qeo-plan { position: relative; width: 880px; height: 600px; margin: 0 auto; }
.qeo-plan.m { width: 100%; height: auto; aspect-ratio: 350 / 304; }
.qeo-fil-zone { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.qeo-decor { position: absolute; inset: 0; width: 100%; height: 100%; }
.qeo-cabine { animation: qeo-cabine 12s ease-in-out infinite alternate; }
@keyframes qeo-cabine { 0% { transform: translate(-26px, -70px); } 100% { transform: translate(26px, 70px); } }
.qeo-syn.petit { display: none; }

.qeo-noeud { position: absolute; box-sizing: border-box; padding: 14px 16px; border-radius: 16px; background: rgba(10, 18, 48, .92);
  border: 2px solid #2c3b78; display: flex; flex-direction: column; align-items: stretch; gap: 10px; cursor: pointer;
  color: inherit; text-align: left; font-family: var(--font); }
.qeo-noeud.vide { border-color: #1a2550; }
.qeo-noeud.alerte { border-color: #ffb020; }
.qeo-noeud.refuse { border-color: #ff5a6e; }
.qeo-noeud.choisi { border-color: #ff861d; background: #16245a; box-shadow: 0 0 0 6px rgba(255, 134, 29, .18); }
.qeo-noeud:hover { border-color: rgba(255, 255, 255, .45); }
.qeo-noeud:focus-visible, .qeo-alerte:focus-visible, .qeo-btn:focus-visible, .qeo-sortie:focus-visible, .qeo-tel:focus-visible { outline: 3px solid #ff861d; outline-offset: 2px; }
.qn-haut { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.qn-titre { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qn-type { font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #9aa6cf; }
.qn-nom { font: 600 15px/1.2 var(--font); color: #eef1f8; }
.qn-nb { font: 700 30px/1 var(--font); color: #eef1f8; }
.qeo-noeud.vide .qn-nb { color: #4a5788; }
.qn-avs { display: flex; align-items: center; min-height: 28px; }
.qn-plus { margin-left: 8px; font-size: 12px; color: #9aa6cf; }
.qeo-av { width: 28px; height: 28px; border-radius: 50%; background: #0a1230; border: 2px solid #8a9bd6; color: #eef1f8; display: inline-grid;
  place-items: center; font: 600 10.5px/1 var(--mono); box-sizing: border-box; flex: none; }
.qeo-av.gros { width: 38px; height: 38px; font-size: 13px; }
/* Téléphone : pastilles compactes, nom court + nombre. */
.qeo-noeud.m { min-height: 48px; padding: 6px 8px; border-radius: 12px; flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; }
.qeo-noeud.m .qn-nb { font-size: 22px; }
.qn-court { font: 600 11.5px/1.15 var(--font); color: #c8d0ea; min-width: 0; }

.qeo-h { margin: 6px 2px 0; font: 600 12.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #9aa6cf; }
.qeo-fil { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.qeo-fil-l { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #0a1230; border: 1px solid #1a2550; min-width: 0; }
.qf-h { font: 600 13px/1 var(--mono); color: #9aa6cf; }
.qf-t { display: flex; flex-direction: column; min-width: 0; }
.qf-t b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qf-t span { font-size: 12.5px; color: #9aa6cf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.qeo-recherche { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 13px; background: #0f1a3f; border: 1px solid #22306a; }
.qeo-recherche:focus-within { outline: 3px solid #ff861d; outline-offset: 2px; }
.qeo-recherche input { flex: 1; min-width: 0; border: 0; background: transparent; color: #eef1f8; font: 400 16px/1 var(--font); outline: none; }
.qeo-recherche input::placeholder { color: #7f8bb6; }
.qeo-ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.qeo-ph > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qeo-type { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #9aa6cf; }
.qeo-ph h2 { margin: 0; font: 700 26px/1.1 var(--font); color: #eef1f8; overflow-wrap: anywhere; }
.qeo-compte { font: 600 14px/1 var(--mono); color: #b9c3e6; white-space: nowrap; }
.qeo-vide { margin: 0; padding: 18px; border-radius: 14px; background: #0f1a3f; color: #9aa6cf; font-size: 14px; }
.qeo-note { margin: 0; font-size: 12.5px; color: #9aa6cf; }
.qeo-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.qeo-pers { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #0f1a3f; }
.qp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qp-l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.qp-l1 .qeo-badge { padding: 3px 8px; font-size: 11px; }
.qp-t b { font-size: 15px; font-weight: 600; }
.qp-t span { font-size: 13px; color: #9aa6cf; }
.qp-t .qp-motif { color: #ffd27a; }
.qeo-badge { padding: 5px 10px; border-radius: 999px; font: 600 12px/1 var(--mono); white-space: nowrap; background: #1f2a55; color: #c8d0ea; }
.qeo-badge.gu, .qeo-badge.pos { background: #0e3324; color: #8ff0bd; }
.qeo-badge.ext { background: #0e2847; color: #a9d4ff; }
.qeo-badge.warn { background: #3a2a08; color: #ffd27a; }
.qeo-badge.neg { background: #3a1420; color: #ffb3c0; }
.qeo-badge.tph { background: #1b2b4a; color: #b8cdf0; }
.qeo-tel { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #eef1f8; background: #16245a; }
.qeo-sortie { min-height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid #2c3b78; background: transparent; color: #eef1f8;
  font: 600 13.5px/1 var(--font); cursor: pointer; }
.qeo-sortie:hover { background: #16245a; }
.qeo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qeo-btn { flex: 1 1 150px; min-height: 46px; border-radius: 13px; border: 1px solid #2c3b78; background: transparent; color: #eef1f8;
  font: 600 14.5px/1 var(--font); cursor: pointer; }
.qeo-btn.orange { border: 0; background: #ff861d; color: #001a70; font-weight: 700; }

@media (max-width: 899px) {
  .qeo-syn.grand { display: none; }
  .qeo-syn.petit { display: block; }
  .qeo-legende { font-size: 11.5px; }
  .qeo-kpi { flex: 1 1 calc(33% - 10px); min-width: 0; padding: 10px 12px; }
  .qeo-kpi b { font-size: 24px; }
  .qeo-direct { margin-left: 0; }
  .qeo-panneau-zone { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .qeo-pouls, .qeo-cabine { animation: none; } }
@media print { body.nuit { background: #fff; color: #000; } }
