/* R116B — Registration identity grid rebalance (TEST)
   Corrects the actual visual issue: patient-type track was too wide relative to ID-reader track. */

@media (min-width:981px){
  #register-section.is-thai-patient .registration-identity-top{
    grid-template-columns:
      minmax(180px,.78fr)
      minmax(170px,.72fr)
      minmax(200px,.75fr)
      300px!important;
    gap:14px!important;
    align-items:end;
  }

  #register-section.is-thai-patient .registration-patient-type-field{
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }

  #register-section.is-thai-patient .registration-patient-type-field #patientType{
    display:block;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }

  #register-section.is-thai-patient .soah-id-reader-v2{
    min-width:300px!important;
    max-width:300px!important;
  }
}

/* Keep the existing tablet/mobile behavior from Device Bridge untouched. */
@media (max-width:980px){
  #register-section.is-thai-patient .soah-id-reader-v2{
    min-width:0!important;
    max-width:none!important;
  }
}
