/* Agenda: cadastro rapido no mesmo modal, sem expandir a ficha clinica. */
.appointment-patient-picker { min-width: 0; }
.agenda-cpf-actions { display: flex; gap: 8px; align-items: center; }
.agenda-cpf-actions input { min-width: 0; flex: 1; width: 100%; }
#agenda-cpf-feedback { margin-top: 8px; overflow-wrap: anywhere; }
#quick-patient-panel[hidden], #quick-patient-toggle[hidden] { display: none !important; }
#quick-patient-panel input { min-width: 0; max-width: 100%; }
@media (max-width: 768px) {
  .appointment-patient-picker .toolbar { flex-wrap: wrap; }
  #quick-patient-panel .grid { grid-template-columns: 1fr; }
  .appointment-patient-result { flex-direction: column; gap: 4px; }
}
@media (max-width: 420px) {
  .agenda-cpf-actions { flex-direction: column; align-items: stretch; }
}
/* 07025.1: cadastro e campos sem compressao no modal. */
#appointment-form > .appointment-patient-picker { grid-column: 1 / -1; width: 100%; }
#appointment-form > .field { min-width: 0; }
@media (max-width: 768px) {
  #appointment-form.grid { display: flex; flex-direction: column; }
  #appointment-form > * { width: 100%; flex: none; }
  #appointment-form .field { display: flex; flex-direction: column; gap: 6px; }
  #appointment-form input, #appointment-form select, #appointment-form textarea { width: 100%; min-width: 0; }
}
