
/* V41 responsive modal sizing fix */
#modalRoot .modalbg{padding:16px!important;box-sizing:border-box}
#modalRoot .modal{
  width:min(1120px,calc(100vw - 32px))!important;
  max-width:1120px!important;
  max-height:calc(100vh - 32px)!important;
  padding:22px 24px!important;
  margin:auto!important;
  box-sizing:border-box!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
#modalRoot .v40-intake{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
#modalRoot .v40-intake-grid,
#modalRoot .v40-note-grid,
#modalRoot .v40-bottom-grid{min-width:0}
#modalRoot .v40-intake-grid>*,
#modalRoot .v40-note-grid>*,
#modalRoot .v40-bottom-grid>*{min-width:0}
#modalRoot .v40-customer-line{grid-template-columns:minmax(0,1fr) 150px!important}
#modalRoot .v40-intake input,
#modalRoot .v40-intake select,
#modalRoot .v40-intake textarea{width:100%;max-width:100%;box-sizing:border-box}
#modalRoot .v40-upload{min-width:0;overflow:hidden}
#modalRoot .v40-upload input[type=file]{min-width:0;width:min(100%,330px)}
@media(max-width:900px){
 #modalRoot .modalbg{padding:10px!important}
 #modalRoot .modal{width:calc(100vw - 20px)!important;max-height:calc(100vh - 20px)!important;padding:18px!important}
 #modalRoot .v40-customer-line{grid-template-columns:1fr!important}
}
@media(max-width:620px){
 #modalRoot .modal{padding:14px!important}
}
