/* PE-Class v1.20.82 — scoped Fold and Student PAPS presentation parity. */

/* Fold7 unfolded: every multi-measurement event uses the full modal row. */
html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  .foldPapsDetailModal .foldPapsMetricCard.papsMultiMeasurement12082 {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  .foldPapsDetailModal .foldPapsMetricCard.papsMultiMeasurement12082 > :is(h4,.foldPapsDerived) {
    text-align: center !important;
}

html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  .foldPapsDetailModal .foldPapsMetricCard.papsMultiMeasurement12082 .foldPapsInputGrid {
    width: 100% !important;
    max-width: none !important;
    justify-items: stretch !important;
}

html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  .foldPapsDetailModal .foldPapsMetricCard[data-paps-measurement-count12082="2"] .foldPapsInputGrid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
}

html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  .foldPapsDetailModal .foldPapsMetricCard.papsMultiMeasurement12082 .foldPapsInputGrid > label {
    width: 100% !important;
    min-width: 0 !important;
    align-items: center !important;
    justify-items: stretch !important;
    text-align: center !important;
}

html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  .foldPapsDetailModal .foldPapsMetricCard.papsMultiMeasurement12082 .foldPapsInputGrid :is(label > span,input) {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

/* Student Management: official labels share one centered two-line header row. */
html[data-pe-tab="students"] #app.studentScreen #studentPapsSummary .papsStudentSummary thead th {
  height: 48px !important;
  padding-block: 6px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  vertical-align: middle !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  word-break: keep-all !important;
}

html[data-pe-tab="students"] #app.studentScreen #studentPapsSummary
  :is(th,.mobilePapsMetricTitle).papsTwoLineLabel12082 {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
  }

html[data-pe-tab="students"] #app.studentScreen #studentPapsSummary
  :is(th,.mobilePapsMetricTitle).papsTwoLineLabel12082 > span {
    display: block !important;
    width: 100% !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

html[data-pe-tab="students"] #app.studentScreen #studentPapsSummary .mobilePapsMetricTitle {
  display: flex !important;
  min-height: 32px !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: normal !important;
  line-height: 1.2 !important;
}

/* Fold7 unfolded uses a common two-line label band for every metric cell. */
html[data-pe-tab="students"].pe87FoldWide[data-pe87-fold-device^="galaxy-fold"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  #app.studentScreen
  #studentPapsSummary .papsStudentSummary td {
    min-height: 98px !important;
    height: 98px !important;
    padding-top: 40px !important;
}

html[data-pe-tab="students"].pe87FoldWide[data-pe87-fold-device^="galaxy-fold"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  #app.studentScreen
  #studentPapsSummary .papsStudentSummary td::before {
    display: flex !important;
    height: 34px !important;
    min-height: 34px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3px 2px !important;
    border-bottom: 1px solid #e3eaf0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    white-space: pre-line !important;
    word-break: keep-all !important;
    line-height: 1.15 !important;
  }

/* Fold7 unfolded: BMI uses the same badge geometry as every other metric. */
html[data-pe-tab="students"].pe87FoldWide[data-pe87-fold-device^="galaxy-fold"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  #app.studentScreen
  #studentPapsSummary .papsGrade.bmi {
    border-radius: 4px !important;
}
