/*
 * PE-Class assessment total-column width v11652
 *
 * Extracted from a mixed Home/assessment patch so the Home screen no longer
 * shares ownership with the assessment table.
 */
@media (min-width: 769px) {
  html:not([data-pe-fold-wide="true"]) #assessTableBox .premiumAssessmentTable colgroup col:nth-last-child(2),
  html:not([data-pe-fold-wide="true"]) #assessTableBox .premiumAssessmentTable thead th:nth-last-child(2),
  html:not([data-pe-fold-wide="true"]) #assessTableBox .premiumAssessmentTable tbody td:nth-last-child(2) {
    width: 7% !important;
  }

  html:not([data-pe-fold-wide="true"]) #assessTableBox .premiumAssessmentTable colgroup col:last-child,
  html:not([data-pe-fold-wide="true"]) #assessTableBox .premiumAssessmentTable thead th:last-child,
  html:not([data-pe-fold-wide="true"]) #assessTableBox .premiumAssessmentTable tbody td:last-child {
    width: 6% !important;
  }
}

/* Fold-wide assessment row-header alignment retained from the former
   mixed calendar/assessment patch. */
@media (min-width: 769px) and (max-width: 1200px) {
  html[data-pe-fold-wide="true"] #assessTableBox .foldAssessmentPremiumTable tbody > tr > td:nth-child(1),
  html[data-pe-fold-wide="true"] #assessTableBox .foldAssessmentPremiumTable tbody > tr > td:nth-child(2),
  html[data-pe-fold-wide="true"] #assessTableBox .foldAssessmentPremiumTable tbody > tr > td.foldAssessmentTotalCell,
  html[data-pe-fold-wide="true"] #assessTableBox .foldAssessmentPremiumTable tbody > tr > td.foldAssessmentGradeCell {
    padding-top: 28px !important;
  }

  html[data-pe-fold-wide="true"] #assessTableBox .foldAssessmentPremiumTable tbody td.foldAssessmentScoreCell {
    grid-template-rows: 28px minmax(54px, 1fr) 4px 19px !important;
  }

  html[data-pe-fold-wide="true"] #assessTableBox .foldAssessmentPremiumTable tbody > tr > td:nth-child(1)::before,
  html[data-pe-fold-wide="true"] #assessTableBox .foldAssessmentPremiumTable tbody > tr > td:nth-child(2)::before,
  html[data-pe-fold-wide="true"] #assessTableBox .foldAssessmentPremiumTable tbody td.foldAssessmentScoreCell::before,
  html[data-pe-fold-wide="true"] #assessTableBox .foldAssessmentPremiumTable tbody > tr > td.foldAssessmentTotalCell::before,
  html[data-pe-fold-wide="true"] #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[data-pe-fold-wide="true"] #assessTableBox .foldAssessmentPremiumTable tbody td.foldAssessmentScoreCell::after {
    top: 25px !important;
  }
}
