/* p0: 选课弹层完整展示课表，去掉课表内部滚动 */
/* 根因：.modal-lesson-picker 固定 height + #modalLessonTimetable overflow-y:auto */

#teacher-app #modalLesson.modal-panel,
#teacher-app #modalLesson {
  height: auto !important;
  max-height: calc(100dvh - 8px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

#teacher-app #modalLesson .modal-lesson-picker {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 16px !important;
}

#teacher-app #modalLesson .modal-body,
#teacher-app #modalLesson .modal-content,
#teacher-app #modalLesson .modal-inner {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
  flex: 0 1 auto !important;
  min-height: 0 !important;
}

#teacher-app #modalLesson #modalLessonTimetable,
#teacher-app #modalLesson .lesson-picker-table,
#teacher-app #modalLesson .lesson-picker-table.timetable-wrap {
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  min-height: auto !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  overscroll-behavior: auto !important;
  -webkit-overflow-scrolling: auto !important;
  touch-action: manipulation !important;
}

#teacher-app #modalLesson .lesson-picker-table table.timetable,
#teacher-app #modalLesson #modalLessonTimetable table.timetable {
  width: 100%;
}

/* 略压行高，完整课表更容易一屏放下 */
#teacher-app #modalLesson .lesson-picker-table table.timetable th,
#teacher-app #modalLesson .lesson-picker-table table.timetable td,
#teacher-app #modalLesson #modalLessonTimetable table.timetable th,
#teacher-app #modalLesson #modalLessonTimetable table.timetable td {
  padding-top: 3px !important;
  padding-bottom: 3px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}
