/* Student Management PAPS presentation only; values, grades and the editor
   retain their existing behavior. Intrinsic result columns must never overlap. */
/* A phone-built summary can remain mounted when widening the viewport.
   Its real header row is visible again, so suppress only the repeated cell label.
   Fold card layouts keep their cell labels because they do not show a header. */
@media (min-width:769px) {
  html[data-pe-tab="students"]:not(.pe87FoldWide):not([data-pe-fold-wide="true"])
    #app.studentScreen #studentPapsSummary table.papsStudentSummary.mobilePapsVertical
    .mobilePapsMetricRow > .mobilePapsMetricTitle {
      display:none!important;
  }
}
@media (max-width:768px) {
  html[data-pe-tab="students"]:not(.pe87FoldWide):not([data-pe-fold-wide="true"]):not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-device="tablet"]):not([data-pe-ipados="true"])
    #app.studentScreen #studentPapsSummary table.mobilePapsVertical
    .mobilePapsMetricRow:has(> .mobilePapsBadgeSlot > .papsGrade.bmi) {
      grid-template-columns:minmax(0,1fr) max-content max-content!important;
      column-gap:10px!important;
  }
  /* Preserve complete values/grade labels. Only an unusually wide font/value
     may wrap the heading instead of clipping the number or compressing badges. */
  html[data-pe-tab="students"]:not(.pe87FoldWide):not([data-pe-fold-wide="true"]):not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-device="tablet"]):not([data-pe-ipados="true"])
    #app.studentScreen #studentPapsSummary table.mobilePapsVertical
    .mobilePapsMetricRow:has(> .mobilePapsBadgeSlot > .papsGrade.bmi) > .mobilePapsMetricTitle {
      white-space:normal!important;
      word-break:keep-all!important;
      overflow-wrap:anywhere!important;
  }
}
