/* Modal "Mensagem via DudiConecta" (montado por
   public/js/paciente/dudiconecta-aviso-modal.js, abrirEnviarDudiConecta),
   compartilhado pela lista de pacientes e pela home. F2b da caixa de entrada: "Enviar para" com
   todos os contatos (padrao) ou contatos escolhidos - so nome e
   parentesco, sem telefone e sem indicar quem tem o app. */
.dc-compose-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 0 1rem;
  overflow-y: auto;
  background: rgba(0, 0, 0, .5);
}
.dc-compose-dialog {
  background: #fff;
  border-radius: 12px;
  max-width: 480px;
  width: 92%;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  font-family: inherit;
}
.dc-compose-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}
.dc-compose-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  min-width: 38px;
  min-height: 38px;
}
.dc-compose-fieldset {
  border: 0;
  margin: .75rem 0 0;
  padding: 0;
}
.dc-compose-fieldset legend {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .25rem;
  width: auto;
  /* Bootstrap 5 (home) usa float/font-size grandes no legend */
  float: none;
  padding: 0;
}
/* Neutraliza as regras globais de public/css/css.css (radio com
   scale(1.5) e label 1.2rem): radio e checkbox do mesmo tamanho,
   alinhados a borda e a primeira linha do texto. */
.dc-compose-option {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  min-height: 38px;
  padding: .45rem 0;
  line-height: 1.45;
  margin: 0;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 500;
}
.dc-compose-option input[type="radio"],
.dc-compose-option input[type="checkbox"] {
  transform: none;
  margin: 0;
  margin-top: .2em;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.dc-compose-option > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.dc-compose-contatos {
  margin: .25rem 0 0 1.6rem;
  min-height: 76px;
  max-height: 200px;
  overflow-y: auto;
}
.dc-compose-contatos[hidden] {
  display: none;
}
.dc-compose-contatos-msg {
  font-size: .85rem;
  color: #6b7280;
  line-height: 1.45;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .4rem;
}
.dc-compose-contatos-msg.is-erro {
  color: #b91c1c;
}
.dc-compose-retry {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 38px;
  padding: .375rem .9rem;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 999px;
}
.dc-compose-retry img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.dc-compose-parentesco {
  color: #6b7280;
}
.dc-compose-feedback {
  min-height: 1.2em;
  font-size: .9em;
  margin-top: .5rem;
}
.dc-compose-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.dc-compose-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 38px;
  padding: .375rem .9rem;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 999px;
}
.dc-compose-actions .btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
