/*
 * PE-Class v1.16.32
 * Galaxy Z Fold7 unfolded-only calendar registration modal and assessment header-line repair.
 * Presentation only; no lesson, assessment, or save data logic is changed.
 */
@media (min-width: 769px) and (max-width: 1200px) {
  html.pe87FoldWide.calendarModalRootLocked,
  html.pe87FoldWide body.calendarModalPageLocked {
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  html.pe87FoldWide .calendarAddModal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10050 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding: 16px !important;
    overflow: hidden !important;
    background: rgba(18, 38, 56, .52) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    backdrop-filter: blur(3px) !important;
    box-sizing: border-box !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddDialog {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: min(820px, calc(100vw - 32px)) !important;
    max-width: 820px !important;
    max-height: calc(100dvh - 32px) !important;
    margin: auto !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    border: 1px solid #cad8e4 !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 24px 68px rgba(11, 37, 58, .3) !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddDialog::before {
    display: none !important;
    content: none !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddHeader {
    position: sticky !important;
    top: 0 !important;
    z-index: 8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 58px !important;
    padding: 15px 62px 14px 20px !important;
    border-bottom: 1px solid #dce6ee !important;
    background: #fff !important;
    color: #1d3346 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddHeading {
    display: block !important;
    min-width: 0 !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddHeading > div {
    min-width: 0 !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddDefaultTitle,
  html.pe87FoldWide .calendarAddModal .calendarAddHeading small,
  html.pe87FoldWide .calendarAddModal .calendarAddIcon {
    display: none !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddPcTitle.calendarAddPcOnly {
    display: inline !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddHeading h3 {
    margin: 0 !important;
    color: #1d3346 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    letter-spacing: -.3px !important;
    white-space: nowrap !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddClose {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    z-index: 10 !important;
    display: grid !important;
    place-items: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d5e1ea !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #274257 !important;
    box-shadow: 0 2px 8px rgba(24, 55, 79, .08) !important;
    font-size: 19px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddItem {
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 16px 0 !important;
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddStepper.calendarAddPcOnly {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    margin: 0 10px 12px !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddStepper::before {
    content: "" !important;
    position: absolute !important;
    top: 12px !important;
    left: 16.66% !important;
    right: 16.66% !important;
    height: 1px !important;
    background: #ccd8e2 !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddStepper > div {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddStepper b,
  html.pe87FoldWide .calendarAddModal .calendarAddSectionHead b {
    display: grid !important;
    place-items: center !important;
    border-radius: 50% !important;
    color: #fff !important;
    box-sizing: border-box !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddStepper b {
    width: 25px !important;
    height: 25px !important;
    font-size: 11px !important;
    box-shadow: 0 0 0 4px #fff !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddStepper > div:nth-child(1) {
    color: #146fc5 !important;
  }
  html.pe87FoldWide .calendarAddModal .calendarAddStepper > div:nth-child(1) b {
    background: #177bdd !important;
  }
  html.pe87FoldWide .calendarAddModal .calendarAddStepper > div:nth-child(2) {
    color: #16825a !important;
  }
  html.pe87FoldWide .calendarAddModal .calendarAddStepper > div:nth-child(2) b {
    background: #1aa56f !important;
  }
  html.pe87FoldWide .calendarAddModal .calendarAddStepper > div:nth-child(3) {
    color: #9a6615 !important;
  }
  html.pe87FoldWide .calendarAddModal .calendarAddStepper > div:nth-child(3) b {
    background: #efa128 !important;
  }

  html.pe87FoldWide .calendarAddModal .calEditGrid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSection {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 9px 10px 10px !important;
    border: 1px solid #c9ddf4 !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSectionLesson {
    border-color: #c8e5d6 !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSectionDetail {
    border-color: #f1d7b1 !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSectionHead.calendarAddPcOnly {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 0 7px !important;
    color: #1769b1 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSectionHead b {
    width: 19px !important;
    height: 19px !important;
    background: #177bdd !important;
    font-size: 10px !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSectionLesson .calendarAddSectionHead {
    color: #16825a !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSectionLesson .calendarAddSectionHead b {
    background: #1aa56f !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSectionDetail .calendarAddSectionHead {
    color: #9a6615 !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSectionDetail .calendarAddSectionHead b {
    background: #efa128 !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSectionGrid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px 8px !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSectionDetail .calendarAddSectionGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSectionGrid label,
  html.pe87FoldWide body.lessonCalendarApp .calendarAddModal .calendarAddSectionGrid label {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSectionDetail .calendarAddSectionGrid label.wide {
    grid-column: auto !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSectionGrid label > span,
  html.pe87FoldWide body.lessonCalendarApp .calendarAddModal .calendarAddSectionGrid label > span {
    display: block !important;
    color: #506477 !important;
    font-size: 10.5px !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSectionGrid input,
  html.pe87FoldWide .calendarAddModal .calendarAddSectionGrid select,
  html.pe87FoldWide .calendarAddModal .calendarAddSectionGrid textarea {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 7px 8px !important;
    border: 1px solid #d4e0e9 !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #273e51 !important;
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    text-align: center !important;
    text-align-last: center !important;
    box-sizing: border-box !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSectionGrid textarea {
    min-height: 58px !important;
    height: 58px !important;
    text-align: left !important;
    text-align-last: auto !important;
    resize: none !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSectionGrid input:disabled {
    color: #627688 !important;
    background: #f5f8fa !important;
    opacity: 1 !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarActivityLinkState {
    margin-top: 1px !important;
    font-size: 9.5px !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSummary.calendarAddPcOnly {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    margin: 7px 0 0 !important;
    padding: 8px 10px !important;
    border: 1px solid #cce5d8 !important;
    border-radius: 8px !important;
    background: #f2faf6 !important;
    color: #385d4c !important;
    box-sizing: border-box !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSummary strong {
    flex: 0 0 auto !important;
    color: #19885e !important;
    font-size: 10px !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSummary span {
    min-width: 0 !important;
    overflow: hidden !important;
    font-size: 9.5px !important;
    line-height: 1.35 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddActions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 7 !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin: 10px -16px 0 !important;
    padding: 10px 16px 12px !important;
    border-top: 1px solid #e1e8ef !important;
    background: rgba(255, 255, 255, .98) !important;
    box-sizing: border-box !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddActions .btn {
    width: auto !important;
    min-width: 104px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 15px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddCancel {
    border: 1px solid #b8d3ea !important;
    background: #fff !important;
    color: #2377bb !important;
  }

  html.pe87FoldWide .calendarAddModal .calendarAddSave {
    border: 1px solid #13a65d !important;
    background: linear-gradient(180deg, #25bf71, #16a85f) !important;
    color: #fff !important;
    box-shadow: 0 5px 13px rgba(21, 168, 95, .18) !important;
  }

  /* One shared header baseline for number, name, every subject, total, and grade. */
  html.pe87FoldWide #assessTableBox .foldAssessmentPremiumTable tbody > tr > td:nth-child(1),
  html.pe87FoldWide #assessTableBox .foldAssessmentPremiumTable tbody > tr > td:nth-child(2),
  html.pe87FoldWide #assessTableBox .foldAssessmentPremiumTable tbody > tr > td.foldAssessmentTotalCell,
  html.pe87FoldWide #assessTableBox .foldAssessmentPremiumTable tbody > tr > td.foldAssessmentGradeCell {
    padding-top: 28px !important;
  }

  html.pe87FoldWide #assessTableBox .foldAssessmentPremiumTable tbody td.foldAssessmentScoreCell {
    grid-template-rows: 28px minmax(54px, 1fr) 4px 19px !important;
  }

  html.pe87FoldWide #assessTableBox .foldAssessmentPremiumTable tbody > tr > td:nth-child(1)::before,
  html.pe87FoldWide #assessTableBox .foldAssessmentPremiumTable tbody > tr > td:nth-child(2)::before,
  html.pe87FoldWide #assessTableBox .foldAssessmentPremiumTable tbody td.foldAssessmentScoreCell::before,
  html.pe87FoldWide #assessTableBox .foldAssessmentPremiumTable tbody > tr > td.foldAssessmentTotalCell::before,
  html.pe87FoldWide #assessTableBox .foldAssessmentPremiumTable tbody > tr > td.foldAssessmentGradeCell::before {
    height: 28px !important;
    min-height: 28px !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    border-bottom: 1px solid #dce7f0 !important;
    box-sizing: border-box !important;
  }

  html.pe87FoldWide #assessTableBox .foldAssessmentPremiumTable tbody td.foldAssessmentScoreCell::after {
    top: 25px !important;
  }
}
