/* Vue détaillée du moteur v2 (onglet Développeur de la plateforme, 19/11 ; prototype texte du 12/11) : réglages à
   gauche, conversation au centre, dossier et décision à droite. Thème OUDS : variables --ouds-* seulement. */
/* attribut hidden respecté partout (revue du 16/11) : une règle display (.t-barre-voix flex, bouton inline-flex)
   l'emportait, la barre et « Pause » restaient visibles en mode texte */
[hidden] { display: none !important; }
.texte-grille { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(360px, 2fr) minmax(300px, 1.4fr);
  gap: var(--ouds-space-m); align-items: start; padding: var(--ouds-space-m) var(--ouds-grid-margin) 0; }
.texte-grille > * { min-width: 0; }
.texte-grille label { display: block; margin: var(--ouds-space-xs) 0 var(--ouds-space-3xs); font-weight: var(--ouds-font-weight-bold);
  font-size: var(--ouds-type-label-s); line-height: var(--ouds-lh-label-s); }
.t-actions { margin-top: var(--ouds-space-s); }
.t-actions .o-btn { width: 100%; }
.petit-texte { font-size: var(--ouds-type-body-s); line-height: var(--ouds-lh-body-s); }

.t-chat { display: flex; flex-direction: column; height: calc(100vh - 140px); min-height: 420px; }
.t-fil { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: var(--ouds-space-s);
  padding: var(--ouds-space-2xs) var(--ouds-space-3xs) var(--ouds-space-s); }
.t-bulle { max-width: 85%; padding: var(--ouds-space-xs) var(--ouds-space-s); border-radius: var(--ouds-border-radius-default);
  white-space: pre-wrap; overflow-wrap: anywhere; border: var(--ouds-border-width-default) solid transparent; }
.t-bulle.agent { align-self: flex-start; background: var(--ouds-color-bg-secondary); border-color: var(--ouds-color-border-muted); }
.t-bulle.client { align-self: flex-end; background: var(--ouds-orange-500); color: var(--ouds-color-always-black); }
.t-bulle .t-meta { display: block; margin-top: var(--ouds-space-2xs); font-size: var(--ouds-type-label-s);
  line-height: var(--ouds-lh-label-s); color: var(--ouds-color-content-muted); }
.t-bulle.client .t-meta { color: var(--ouds-color-always-black); }
.t-bulle.attente { opacity: .6; font-style: italic; }
.t-saisie { display: flex; gap: var(--ouds-space-xs); border-top: var(--ouds-border-width-default) solid var(--ouds-color-border-muted);
  padding-top: var(--ouds-space-s); }
.t-saisie input { flex: 1; min-width: 0; }

.t-dossier { max-height: calc(100vh - 140px); overflow-y: auto; font-size: var(--ouds-type-body-s); line-height: var(--ouds-lh-body-s); }
.t-dossier h3 { margin: var(--ouds-space-s) 0 var(--ouds-space-2xs); font-size: var(--ouds-type-label-m); line-height: var(--ouds-lh-label-m);
  letter-spacing: 0; }
.t-dossier table { width: 100%; border-collapse: collapse; }
.t-dossier td { border-bottom: var(--ouds-border-width-default) solid var(--ouds-color-border-muted);
  padding: var(--ouds-space-3xs) var(--ouds-space-2xs); vertical-align: top; overflow-wrap: anywhere; }
.t-dossier td:first-child { color: var(--ouds-color-content-muted); white-space: nowrap; }
.discret { color: var(--ouds-color-content-muted); }
.t-acte { border-left: var(--ouds-border-width-thick) solid var(--ouds-orange-500); padding: var(--ouds-space-3xs) var(--ouds-space-xs);
  margin: var(--ouds-space-2xs) 0; }
.t-acte b { text-transform: uppercase; font-size: var(--ouds-type-label-s); }
.t-eng { border-left-color: var(--ouds-color-border-negative); }
.t-cmd, .t-marques { font-family: var(--ouds-font-family-code); font-size: var(--ouds-type-label-s); line-height: var(--ouds-lh-label-s);
  background: var(--ouds-color-surface-secondary); padding: var(--ouds-space-2xs) var(--ouds-space-xs); margin: var(--ouds-space-3xs) 0;
  overflow-wrap: anywhere; }
.t-alerte { color: var(--ouds-color-content-negative); font-size: var(--ouds-type-body-s); line-height: var(--ouds-lh-body-s); }
.t-fin { background: var(--ouds-color-surface-positive-muted); border-left: var(--ouds-border-width-thicker) solid var(--ouds-color-border-positive);
  padding: var(--ouds-space-xs); }

@media (max-width: 1023px) {
  .texte-grille { grid-template-columns: 1fr; }
  .t-chat, .t-dossier { height: auto; max-height: none; }
  .t-fil { max-height: 60vh; }
}

/* mode voix (12/11) : état du micro, niveau, pause */
.t-case { display: flex !important; align-items: center; gap: var(--ouds-space-xs); font-weight: var(--ouds-font-weight-regular) !important;
  margin-top: var(--ouds-space-s) !important; }
.t-case input { accent-color: var(--ouds-orange-500); flex: none; }
.t-barre-voix { display: flex; align-items: center; flex-wrap: wrap; gap: var(--ouds-space-s); padding: var(--ouds-space-xs) 0;
  border-top: var(--ouds-border-width-default) solid var(--ouds-color-border-muted); }
.t-voyant { width: 12px; height: 12px; border-radius: var(--ouds-border-radius-pill); background: var(--ouds-color-border-default); flex: none; }
.t-voyant.ecoute { background: var(--ouds-color-surface-positive-emphasized); }
.t-voyant.parle { background: var(--ouds-orange-500); }
.t-voyant.attente { background: var(--ouds-color-surface-info-emphasized); }
.t-niveau { flex: 1; min-width: 60px; height: 8px; background: var(--ouds-color-surface-secondary); overflow: hidden; }
.t-niveau div { height: 100%; width: 0; background: var(--ouds-color-surface-positive-emphasized); transition: width 60ms linear; }

/* réglages d'essai (vue développeur, 13/11) */
.t-reglages { border: var(--ouds-border-width-default) solid var(--ouds-color-border-muted);
  padding: var(--ouds-space-xs) var(--ouds-space-s) var(--ouds-space-s); margin: var(--ouds-space-s) 0; }
.t-reglages summary { cursor: pointer; font-weight: var(--ouds-font-weight-bold); }
.t-reglages input[type=range] { width: 100%; accent-color: var(--ouds-orange-500); }
.t-reglages textarea { resize: vertical; }
/* raccroché et interruption (16/11) : bouton en couleur d'alerte, réplique coupée par le client */
button.raccrocher:not(:disabled) { background: var(--ouds-color-action-negative-enabled); border-color: var(--ouds-color-action-negative-enabled);
  color: var(--ouds-color-content-on-status-emphasized); }
button.raccrocher:hover:not(:disabled) { background: var(--ouds-color-action-negative-hover); border-color: var(--ouds-color-action-negative-hover); }
.t-bulle.interrompue { border-style: dashed; border-color: var(--ouds-color-border-default); }
.t-bulle.interrompue::after { content: "coupé par le client"; display: block; margin-top: var(--ouds-space-2xs);
  font-size: var(--ouds-type-label-s); color: var(--ouds-color-content-negative); }
.t-defauts { margin-top: var(--ouds-space-s); }
/* épellation des codes (17/11) : état de l'appel en lecture seule (plus de réglage) ; texte dit à la voix en infobulle */
.t-epellation { margin: var(--ouds-space-s) 0 0; }
.t-bulle.agent[title] { cursor: help; }
