/* PALUX Archive 178 — Required Training & Coaching mobile completion */
@media (max-width:780px){
  body.palux-training-modal-open,
  body.palux-coaching-modal-open{
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  body.palux-training-modal-open #associateClockBar,
  body.palux-coaching-modal-open #associateClockBar{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  body.palux-training-modal-open #modal:not(.hidden),
  body.palux-coaching-modal-open #ackModal:not(.hidden){
    box-sizing:border-box!important;
    inset:0!important;
    width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    padding:max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom))!important;
    align-items:center!important;
    justify-items:center!important;
    overflow:hidden!important;
    z-index:10070!important;
  }
  body.palux-training-modal-open #modal:not(.hidden) .modal-card,
  body.palux-coaching-modal-open #ackModal:not(.hidden) .modal-card{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:680px!important;
    max-height:calc(100dvh - max(8px,env(safe-area-inset-top)) - max(8px,env(safe-area-inset-bottom)) - 16px)!important;
    margin:0!important;
    padding:16px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;
    scroll-padding-bottom:96px!important;
  }
  body.palux-training-modal-open #modalForm[data-type="completesafetytraining"]{
    display:block!important;
    padding-bottom:8px!important;
  }
  body.palux-training-modal-open #modalForm[data-type="completesafetytraining"]>.field{
    margin-bottom:14px!important;
  }
  body.palux-training-modal-open .palux-training-submit-row{
    position:sticky!important;
    bottom:-1px!important;
    z-index:5!important;
    padding:12px 0 max(4px,env(safe-area-inset-bottom))!important;
    background:linear-gradient(180deg,rgba(255,255,255,0),var(--panel) 24%)!important;
  }
  body.palux-training-modal-open .palux-training-submit-row .primary-btn{
    width:100%!important;
    min-height:52px!important;
  }
  body.palux-coaching-modal-open #ackModalBody{
    padding-bottom:12px!important;
  }
  body.palux-coaching-modal-open #ackModalBody .primary-btn.full{
    width:100%!important;
    min-height:52px!important;
    margin-bottom:max(4px,env(safe-area-inset-bottom))!important;
  }
}
