#ec-comparison,
#ec-compare-result {
  scroll-margin-top: 2rem;
}

.ec-profit-fields {
  margin-top: 0.8rem;
}

.ec-result-table {
  min-width: 720px;
}

.ec-result-table th:first-child,
.ec-result-table td:first-child {
  min-width: 180px;
}

.ec-mobile-plan-grid {
  display: none;
}

@media (max-width: 640px) {
  #ec-compare-result .table-scroll {
    display: none;
  }

  .ec-mobile-plan-grid {
    display: grid;
    gap: 0.75rem;
  }
}

@media print {
  body.ec-compare-print #header,
  body.ec-compare-print #tabline,
  body.ec-compare-print #left,
  body.ec-compare-print #footer,
  body.ec-compare-print .breadcrumb,
  body.ec-compare-print #content > :not(#ec-compare-result),
  body.ec-compare-print .candidate-actions,
  body.ec-compare-print .comparison-memo {
    display: none !important;
  }

  body.ec-compare-print #unit,
  body.ec-compare-print #content,
  body.ec-compare-print #ec-compare-result {
    display: block;
    width: 100%;
    max-width: none;
    border: 0;
    box-shadow: none;
  }

  body.ec-compare-print .comparison-memo-print {
    display: block;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: inherit;
  }
}
