/* Fix100: coach scrollers and roster/Excel controls, scoped exclusively to coach.
   One vertical scroll owner on the trainer page; table horizontal scroll remains independent. */
@media(max-width:900px){
 body[data-safe-r10-role="trainer"] #trainer,body[data-safe-r10-role="coach"] #trainer,
 body.sa97CoachSection #trainer, body.sa99CoachSection #trainer{
  overflow-y:auto!important;overflow-x:hidden!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;
  -webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;overscroll-behavior-y:contain!important;scroll-padding-bottom:95px!important;
  padding-bottom:calc(110px + env(safe-area-inset-bottom))!important;box-sizing:border-box!important;
 }
 body.sa97CoachSection #trainer .trSection:not(.hidden),body.sa99CoachSection #trainer .trSection:not(.hidden){
   overflow:visible!important;height:auto!important;max-height:none!important;min-height:0!important;touch-action:pan-y!important;
 }
 body.sa97CoachSection #trainer #trSession,body.sa97CoachSection #trainer #trAssignments,body.sa97CoachSection #trainer #trReports,
 body.sa99CoachSection #trainer #trSession,body.sa99CoachSection #trainer #trAssignments,body.sa99CoachSection #trainer #trReports{padding-bottom:85px!important;}
 #trainer .r59RosterActions{position:relative;flex-wrap:wrap;gap:7px!important;}
 #trainer .r59RosterActions button{min-height:42px;white-space:normal;}
 #trainer .r59ImportBox input[type=file]{display:block!important;visibility:visible!important;opacity:1!important;min-height:45px;max-width:100%!important;}
 #trainer .tablewrap,#trainer .r59PreviewTable{overflow-x:auto!important;touch-action:pan-x pan-y!important;}
}

/* Selection controls stay available when the student roster extends below the fold. */
@media(max-width:900px){
 body.sa97CoachSection #trainer #trStudents .r59RosterActions,body.sa99CoachSection #trainer #trStudents .r59RosterActions{position:sticky!important;top:0;z-index:8;background:#eef5ef;box-shadow:0 2px 9px #193f3430;}
 #r59MoveModal:not(.hidden) .r59MoveCard{max-height:calc(100dvh - 38px);overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:24px;}
}
