/* V4.3 - Mejor jerarquía visual de nombres en escritorio y móviles.
   No contiene datos personales; los nombres se generan desde MySQL y son escapados en JS. */
.people-group { margin: 12px 0 0; min-width: 0; }
.people-group__heading {
  font-size: 13px; font-weight: 850; letter-spacing: .035em;
  color: #514550; margin: 0 0 7px; line-height: 1.4;
}
.people-group__items { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.person-mark {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0;
  padding: 7px 11px 7px 7px; border-radius: 13px;
  border: 1px solid transparent;
  font-size: 16px; font-weight: 800; line-height: 1.35;
  white-space: normal; overflow-wrap: anywhere;
  box-shadow: 0 2px 6px rgb(69 36 48 / 5%);
}
.person-mark__text { min-width: 0; overflow-wrap: anywhere; }
.person-mark__symbol {
  flex: 0 0 27px; width: 27px; height: 27px; display: grid;
  place-items: center; border-radius: 9px; font-size: 16px; font-weight: 800;
  line-height: 1; align-self: center;
}
/* Responsable = acento rosado con texto burdeos. */
.person-mark--lead { background: #fff0f4; border-color: #deb1c3; color: #702849; }
.person-mark--lead .person-mark__symbol { background: #f1d5e0; color: #702849; }
/* Apoyo = lila claro, visualmente distinto del responsable. */
.person-mark--support { background: #f5f1fc; border-color: #d6c9e9; color: #493a69; }
.person-mark--support .person-mark__symbol { background: #e8ddf6; color: #493a69; }
/* Participante = azul muy suave para distinguirlo de los responsables. */
.person-mark--participant { background: #eef5ff; border-color: #c6d6ee; color: #284c78; }
.person-mark--participant .person-mark__symbol { background: #dbe9fa; color: #284c78; }
/* No presentar personas no definidas con la misma jerarquía que una confirmada. */
.person-mark--missing { background: #f9f7f8; border: 1px dashed #bdb3ba; color: #675c64; font-weight: 700; }
.person-mark--missing .person-mark__symbol { background: #ede7eb; color: #675c64; }
/* Tarjetas de comisión: nombres visibles antes de la barra de avance. */
.committee-people { margin: 9px 0 20px; }
.committee-people .people-group { margin: 11px 0 0; }
.committee-people .person-mark { font-size: 15.5px; }
.committee-people .person-mark__symbol { flex-basis: 25px; width: 25px; height: 25px; }
/* Vista detallada: agrupación clara entre responsable(s) y equipo de apoyo. */
.detail-top > div:first-child { min-width: 0; }
.detail-people { margin-top: 13px; }
.detail-people .people-group { margin-top: 13px; }
.detail-people .people-group__heading { font-size: 14px; }
.detail-people .person-mark { font-size: 17px; }
/* Participantes: filas visibles, pero conservando su etiqueta de confirmación. */
.detail-columns .confirmitem {
  padding: 13px 12px; margin: 6px 0;
  background: #fcfdff; border: 1px solid #e6e5ed; border-radius: 12px;
  flex-wrap: wrap; align-items: center; justify-content: flex-start;
}
.detail-columns .confirmitem__person { display: flex; flex: 1 1 175px; min-width: 0; flex-direction: column; gap: 4px; align-items: flex-start; }
.detail-columns .confirmitem__group { font-size: 14px; line-height: 1.4; color: #585768; margin-left: 6px; }
.detail-columns .confirmitem .chip { margin-left: auto; }
.detail-columns .confirmitem .person-mark { font-size: 16px; }
.detail-columns .confirmitem [data-action="editPerson"] { flex: 0 0 auto; }
@media (max-width: 720px) {
  .people-group__heading { font-size: 14px; }
  .committee-people .person-mark, .detail-people .person-mark, .detail-columns .confirmitem .person-mark { font-size: 17px; }
  .person-mark { border-radius: 12px; padding: 9px 12px 9px 8px; }
  .person-mark__symbol, .committee-people .person-mark__symbol { flex-basis: 29px; width: 29px; height: 29px; }
  .committee-people { margin-bottom: 21px; }
  .detail-columns .confirmitem { padding: 13px 10px; gap: 10px; }
  .detail-columns .confirmitem__person { flex-basis: 170px; }
}
@media (prefers-reduced-motion: reduce) { .person-mark { transition: none; } }
@media print { .person-mark { box-shadow: none; border: 1px solid #999; color: #222; background: #fff; } }
/* Ajuste de ancho del detalle para pantallas estrechas. */
.detail-columns > div { min-width: 0; }
@media (max-width: 720px) {
  .detail-columns { grid-template-columns: minmax(0, 1fr); }
  .detail-columns .sectionhead { flex-wrap: wrap; }
  .detail-columns .taskitem { min-width: 0; }
  .detail-columns .taskitem .text { min-width: 0; }
  .detail-columns .taskitem .controls { min-width: 0; max-width: 100%; flex-wrap: wrap; }
  .detail-columns .taskitem .controls .selectrow { flex: 1 1 190px; min-width: 0; }
  .detail-columns .taskitem .controls select { min-width: 110px; }
}
