/* 患者様の入力欄「当院の受診歴」（診察券番号を入力しない場合だけ必須） */
.visit-history-choice { min-width: 0; margin: 0; padding: 0; border: 0; text-align: left; }
.visit-history-choice[hidden] { display: none; }
.visit-history-choice legend { padding: 0; font-size: 15px; font-weight: 700; line-height: 1.5; }
/* 段組みのフォームでは番号欄の下の行に置く（アカウント情報は保存ボタンの左、家族の追加は全幅） */
.account-primary-form > .visit-history-choice { grid-column: 1 / -2; }
.family-add__form > .visit-history-choice { grid-column: 1 / -1; }
@media (max-width: 620px) {
  .account-primary-form > .visit-history-choice { grid-column: 1 / -1; }
}
.visit-history-choice__help { margin: 4px 0 0; color: var(--muted, #5f6b66); font-size: 13px; line-height: 1.5; }
.visit-history-choice__option { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 16px; line-height: 1.5; }
.visit-history-choice__option input[type="radio"] { flex: 0 0 20px; width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: #0068c8; }
.visit-history-choice__option span { min-width: 0; overflow-wrap: anywhere; }
.visit-history-choice__option input:focus-visible { outline: 2px solid #0068c8; outline-offset: 3px; }

/* 管理画面の患者詳細: 番号が空欄の患者様の回答とレセコン候補 */
.admin-number-hint { display: grid; gap: 8px; margin: 10px 0 0; padding: 10px 12px; border: 1px solid #d8dfdb; border-radius: 8px; background: #f7f9f8; font-size: 13px; line-height: 1.6; }
.admin-number-hint p { margin: 0; overflow-wrap: anywhere; }
.admin-number-hint__answer { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.admin-number-hint__answer span { color: var(--muted, #5f6b66); }
.admin-number-hint__candidate { display: grid; gap: 6px; justify-items: start; padding: 8px 10px; border-left: 4px solid #d08a00; border-radius: 4px; background: #fff8e8; }
.admin-number-hint__candidate strong { color: #8a5200; }
