@page {
  margin: 0;
}

body:has(.solar-savings [data-solar="stepResults"]:not(.section-hidden)) {
  margin: 0;
  background: white;
  color: black;

  & > :not(.page-wrapper),
  & .page-wrapper > :not(#MainContent),
  & #MainContent > :not(:has(.solar-savings [data-solar="stepResults"]:not(.section-hidden))) {
    display: none !important;
  }

  & .page-wrapper,
  & #MainContent,
  & .shopify-section:has(.solar-savings),
  & .section:has(> .solar-savings),
  & .solar-savings__layout {
    display: block;
    position: static;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  & .solar-savings > header,
  & .solar-savings > noscript,
  & .solar-savings [data-solar="stepInput"],
  & .solar-savings__proposal,
  & .solar-savings__methodology,
  & .solar-savings [data-solar="resultActions"],
  & .solar-savings [hidden] {
    display: none !important;
  }

  & .page-wrapper {
    box-sizing: border-box;
    padding: 0.75in;
  }

  & .solar-savings {
    color: black;
    font-size: 10pt;
  }

  & .solar-savings__print-logo {
    display: block;
    text-align: center;
    margin-block-end: 12pt;
    break-after: avoid;
  }

  & .solar-savings__print-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 135pt;
    max-height: 36pt;
    margin-inline: auto;
  }

  & .solar-savings [data-solar="resultsHeading"] {
    color: black;
    font-size: 18pt;
  }

  & .solar-savings .widget-title {
    font-size: 12pt;
  }

  & .solar-savings .card,
  & .solar-savings .kpi-card {
    background: white !important;
    color: black !important;
    border: 1px solid #999;
    border-radius: 0;
    box-shadow: none;
    break-inside: avoid;
  }

  & .solar-savings .mb-4 {
    margin-bottom: 10pt !important;
  }

  & .solar-savings .card-body {
    padding: 10pt !important;
  }

  & .solar-savings__kpis {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 8pt;
    break-inside: avoid;
  }

  & .solar-savings__kpi {
    min-width: 0;
    container-type: inline-size;
  }

  & .solar-savings .kpi-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8pt;
    overflow-wrap: anywhere;
  }

  & .solar-savings .kpi-head {
    flex: 1;
    font-size: 9pt;
    line-height: 1.3;
  }

  & .solar-savings .solar-savings__kpi .kpi-value {
    font-size: clamp(12pt, 13cqi, 22pt);
    margin-bottom: 0;
  }

  & .solar-savings .small-note,
  & .solar-savings .solar-savings__table small {
    color: black;
    font-size: 8pt;
  }

  & .solar-savings__chart {
    position: relative;
    block-size: 128pt;
  }

  & .solar-savings__chart canvas {
    width: 100% !important;
    height: 100% !important;
  }

  & .solar-savings__scroll {
    overflow: visible;
  }

  & .solar-savings .solar-savings__table {
    table-layout: fixed;
    width: 100%;
    min-inline-size: 0;
    font-size: 9pt;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0;
  }

  & .solar-savings .solar-savings__table :is(th, td) {
    padding: 6pt;
    color: black;
  }

  & .solar-savings__table tr {
    break-inside: avoid;
  }

  & .solar-savings__table tr > :first-child {
    width: 45pt;
    white-space: nowrap;
  }

  & .solar-savings__table thead th {
    vertical-align: top;
  }

  & .solar-savings__table thead span {
    text-transform: uppercase;
  }

  & .solar-savings__table small {
    display: block;
    font-weight: 400;
  }

  & .solar-savings__table tfoot {
    display: table-row-group;
  }

  & .solar-savings__table tfoot tr > * {
    border-block-start: 2px solid black;
    font-weight: 700;
  }
}
