@media print {
  .st-printable-form .st-print-source-textarea {
    display: none !important;
  }

  .st-printable-form .st-print-text-value {
    display: block !important;
    box-sizing: border-box;
    width: 100%;
    height: auto !important;
    overflow: visible !important;
    padding: 4px 5px;
    border: 1px solid #8a8a8a;
    border-radius: 0;
    background: #ffffff;
    color: #000000;
    font-family: Poppins, Arial, sans-serif;
    font-size: 10pt;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
  }

  /* Long table responses must be allowed to continue on the next page. */
  .st-printable-form tbody tr:has(.st-print-text-value) {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  /* Do not trap long assessment evidence inside an unbreakable section. */
  .st-printable-form .scp-section:has(.st-print-text-value),
  .st-printable-form .scp-task-frame:has(.st-print-text-value) {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }
}
