/* PE-Class v1.15.95 — iPad metric alignment + compact assessment total */

/* iPad Home: keep the complete label/value/subtitle group vertically centered
 * regardless of the viewport-locked metric-row height. */
html.pe87IpadHomeViewportLock body.homeDashboardApp .homeMetrics {
  height: 100% !important;
  min-height: 0 !important;
  align-items: stretch !important;
}

html.pe87IpadHomeViewportLock body.homeDashboardApp .homeMetrics article {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 10px 20px !important;
  box-sizing: border-box !important;
}

html.pe87IpadHomeViewportLock body.homeDashboardApp .homeMetrics article > * {
  flex: 0 0 auto !important;
}

/* Desktop/iPad assessment: the total needs only the score ring/text width.
 * The recovered space is left to the variable assessment item columns. */
@media (min-width: 769px) {
  html:not(.pe87FoldWide) #assessTableBox .premiumAssessmentTable colgroup col:nth-last-child(2),
  html:not(.pe87FoldWide) #assessTableBox .premiumAssessmentTable thead th:nth-last-child(2),
  html:not(.pe87FoldWide) #assessTableBox .premiumAssessmentTable tbody td:nth-last-child(2) {
    width: 7% !important;
  }

  html:not(.pe87FoldWide) #assessTableBox .premiumAssessmentTable colgroup col:last-child,
  html:not(.pe87FoldWide) #assessTableBox .premiumAssessmentTable thead th:last-child,
  html:not(.pe87FoldWide) #assessTableBox .premiumAssessmentTable tbody td:last-child {
    width: 6% !important;
  }
}
