/**/
@media print {
  /*body{min-width:10cm !important;}*/
  html {
    font-family: Helvetica, Arial, sans-serif !important;
  }
  body {
    font-size: 12pt;
    /* Increase font size for better readability */
    line-height: 1.5;
    color: #000 !important;
  }
  h1,
  .h1,
  h2,
  .h2,
  h3,
  .h3,
  h4,
  .h4,
  h5,
  .h5 {
    word-wrap: break-word;
  }
  div.container,
  #content-row {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
  }
  div#print-header.row {
    background-color: #d7e9c1 !important;
    display: table;
    border: 2px solid #d7e9c1;
    margin: 0 0 25px 0 !important;
  }
  div#print-header.row .col-xs-9 {
    float: none;
    display: table-cell;
    vertical-align: bottom;
    padding-left: 25px;
    height: 150px;
  }
  div#print-header.row .col-xs-9 h1 {
    padding-bottom: 10px;
    font-size: 26pt;
  }
  div#print-header.row .col-xs-3 {
    float: none;
    display: table-cell;
  }
  #rch-primary {
    background: none;
    padding: 0 !important;
    width: 100% !important;
    border-left: none !important;
  }
  #rch-primary h2,
  #rch-primary .h2 {
    font-size: 16pt;
  }
  #rch-primary h3,
  #rch-primary .h3 {
    font-size: 14pt;
  }
  #rch-primary div.well,
  #rch-primary div.well.well-sm {
    background-color: #d1d3d4 !important;
    border: 2px solid #d1d3d4 !important;
  }
  .ui-accordion .ui-accordion-content {
    display: block !important;
  }
  footer,
  #footer-row1,
  #footer-row2,
  .footer-bs-info {
    display: none;
  }
  #container,
  .rch-section-health-info,
  .rch-section-patients,
  .rch-section-health-info,
  .rch-section-departments,
  .rch-section-health-pro,
  .rch-section-research,
  .rch-section-about,
  .rch-section-contact,
  .rch-section-news-room,
  .rch-section-careers,
  .rch-section-support-us,
  .rch-section-staff-portal {
    background: none;
  }
  #rch-menu,
  #rch-hero,
  #rch-title-block .rch-usability-controls,
  #rch-breadcrumbs,
  #rch-secondary,
  .rch-bottom-promo,
  #rch-qlp,
  .rch-ui-accordion-header,
  .rch-ui-accordion-header .rch-ui-icon,
  #rch-document-list .rch-download-link,
  #rch-mini-nav,
  #rch-search,
  .rch-noprint,
  .rch-content-social-media,
  div#zenbox_tab,
  div#zenbox_overlay,
  div#PageBuilderAddPageModal,
  div#rch-hero,
  div#rch-banner-slider,
  .rch-wai,
  .rch-logo,
  #rch-mini-nav,
  #rch-mini-nav,
  #brand-tagline,
  #primary-nav,
  #title-row,
  #rch-header,
  aside,
  div.rch-post-nav {
    display: none !important;
  }
  a[href^="/"]:after {
    content: " (www.rch.org.au" attr(href) ") ";
  }
  .noprinturl a[href]:after {
    content: none;
  }
  .table-responsive {
    overflow-y: visible;
    overflow-x: visible;
    border: 0 solid #ddd;
  }
  .table-responsive > .table {
    margin-bottom: 0;
  }
  .table-responsive > .table > thead > tr > th,
  .table-responsive > .table > tbody > tr > th,
  .table-responsive > .table > tfoot > tr > th,
  .table-responsive > .table > thead > tr > td,
  .table-responsive > .table > tbody > tr > td,
  .table-responsive > .table > tfoot > tr > td {
    white-space: normal;
  }
  /* Hide elements that are not necessary for print */
  .rch-no-print {
    display: none !important;
  }
  /* Ensure tables are formatted correctly */
  table {
    width: 100%;
    border-collapse: collapse;
  }
  th,
  td {
    border: 1px solid #000;
    padding: 8px;
    text-align: left;
  }
  /* Improve readability for lists */
  ul,
  ol {
    margin: 0;
    padding: 0 0 0 20px;
  }
  /* Remove unnecessary background colors and images */
  * {
    background: none !important;
    color: #000 !important;
  }
  /* Ensure images are displayed correctly */
  img {
    max-width: 100%;
    height: auto;
  }
  /* Adjust margins and padding */
  body,
  p,
  div {
    margin: 0;
    padding: 0;
  }
  /* Optimize for page breaks */
  @page {
    size: A4;
    margin-top: 1cm;
    margin-right: 1cm;
    margin-bottom: 2cm;
    margin-left: 1cm;
  }
}
