/* Monik : compléments de l'application à la feuille de la maquette v2
   (monik.css, reprise telle quelle). Aucun style inline n'est utilisé :
   ces classes remplacent les style="" de la maquette. */

/* Accessibilité */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.f-row summary:focus-visible,.bt:focus-visible,.aform input:focus-visible,.aform select:focus-visible{outline:2px solid var(--mint);outline-offset:4px}

/* Domaines longs : jamais de débordement horizontal */
.h1-domain{overflow-wrap:anywhere;word-break:break-word}
.td-domain{overflow-wrap:anywhere}
.f-title{min-width:0;overflow-wrap:anywhere}
.f-det{overflow-wrap:anywhere}
.tbl{table-layout:auto}
.td-key{display:block}

/* Histogramme détections / corrections : hauteurs en classes (pas de style inline) */
.hist{grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
.hcol .hup,.hcol .hdn{height:0}
.hcol .h1{height:10%}.hcol .h2{height:20%}.hcol .h3{height:30%}.hcol .h4{height:40%}.hcol .h5{height:50%}
.hcol .h6{height:60%}.hcol .h7{height:70%}.hcol .h8{height:80%}.hcol .h9{height:90%}.hcol .h10{height:100%}

/* Événements serveur : interruptions de mesure en gris (outil de surveillance) */
.ev-title{flex:1 1 auto;min-width:0}
.ev-surveillance .ev-title,.ev-surveillance .d{color:var(--tx3)}

/* Tuiles : valeur textuelle (sauvegarde, date) */
.tile .num-m{overflow-wrap:anywhere}
.f-empty{padding:16px 0}

/* Admin : formulaires */
.aform{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.aform label{display:flex;flex-direction:column;gap:8px;font-size:14px;color:var(--tx2);flex:1 1 220px;min-width:0}
.aform input,.aform select{height:48px;padding:0 16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.3);border-radius:var(--r-m);color:#fff;font:400 16px var(--fb);min-width:0;width:100%}
.aform select option{color:var(--nuit)}
.aform.inline{flex-wrap:nowrap}
.bt{height:48px;padding:0 20px;background:transparent;color:var(--tx);border:1px solid var(--line-hi);border-radius:var(--r-m);font:500 14px/20px var(--fb);text-transform:uppercase;letter-spacing:1px;cursor:pointer}
.bt:hover{background:rgba(32,231,183,.12)}
.bt:disabled{opacity:.5;cursor:default}
.aform.inline .bt{height:40px;padding:0 12px;font-size:13px}
.msg{font-size:14px;color:var(--tx2)}
.msg.is-ok{color:var(--ok)}.msg.is-bad{color:var(--bad)}
.alist li{grid-template-columns:minmax(0,1fr) auto}
.a-val{overflow-wrap:anywhere}
.olist{margin:0;padding-left:20px;color:var(--tx2);columns:2;column-gap:32px}
.j-what{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}

@media (max-width:767px){
  .olist{columns:1}
  .log .out .badge{white-space:normal}
  .aform.inline{flex-wrap:wrap}
  .log .d{min-width:0}
  .tbl th,.tbl td{padding:12px 8px}
  .tbl .c .badge{min-width:0}
  .f-row summary .badge{min-width:0}
  .who-name{max-width:40vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
