/*
 * EARONTECH — REPÈRES DE MAINTENANCE
 * Écrans : Commentaires attachés aux versions de synthèse, lorsque cette fonction est appelée.
 * Chargement : private/view.php.
 * Interactions : public/synthesis-comments.js.
 * Les couleurs et tailles paramétrables utilisent les variables --app-* / --product-*.
 * Les blocs @media adaptent la même interface à la largeur de l’écran.
 * Conserver l’ordre des règles : les ajustements spécialisés suivent le socle commun.
 */

/* Fil partagé, indépendant des champs de travail de la phase. */
.synthesis-comments-dialog {
  width:min(780px,85vw);
  max-width:95vw;
  max-height:85vh;
  border:0;
  border-radius:10px;
  padding:18px;
  box-sizing:border-box
}

.synthesis-comments-dialog::backdrop {
  background:#0007
}

.synthesis-comments-dialog>header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  position:sticky;
  top:-18px;
  background:white;
  padding:8px 0;
  z-index:1
}

.synthesis-comments-content {
  font-size:calc(12px * var(--app-font-scale, 1))
}

.synthesis-comments-content h2 {
  font-size:calc(16px * var(--app-font-scale, 1));
  color:var(--app-primary-color, #1c75bc)
}

.synthesis-comments-content label {
  display:flex;
  flex-direction:column;
  gap:5px;
  color:var(--app-primary-color, #1c75bc)
}

.synthesis-comments-content select,.synthesis-comments-content textarea {
  font-size:calc(12px * var(--app-font-scale, 1));
  color:#222;
  width:100%;
  box-sizing:border-box
}

.synthesis-comments-content textarea {
  resize:vertical
}

.synthesis-comment-list {
  max-height:38vh;
  overflow:auto;
  margin:12px 0
}

.synthesis-comment-list article {
  border:1px solid #dce6ef;
  border-radius:8px;
  padding:10px;
  margin-bottom:8px
}

.synthesis-comment-list header {
  display:flex;
  flex-wrap:wrap;
  gap:8px
}

.synthesis-comment-list time {
  color:#666
}

.synthesis-comment-list p {
  overflow-wrap:anywhere;
  margin:8px 0 0
}

.synthesis-comments-content button,.synthesis-comments-dialog>header button,[data-synthesis-comments] {
  font-size:calc(12px * var(--app-font-scale, 1));
  padding:5px 9px;
  min-height:0
}

.synthesis-comments-content [role=status] {
  color:#a12c38
}
