/**/
@media print {
  /*body{min-width:10cm !important;}*/
  html {
    font-family: Helvetica, Arial, sans-serif !important;
  }
  body {
    font-size: 11pt;
    /* Slightly reduced font size for better page utilization */
    line-height: 1.4;
    /* Adjusted line height for more compact text */
    color: #000 !important;
  }
  h1,
  .h1,
  h2,
  .h2,
  h3,
  .h3,
  h4,
  .h4,
  h5,
  .h5 {
    word-wrap: break-word;
    margin: 0 0 10px;
    /* Reduced margins */
  }
  /* Adding margin above h2 and h3 to ensure there's space between them and the text above */
  h2,
  .h2 {
    margin-top: 15px !important;
    /* Add a margin above the h2 element */
    margin-bottom: 10px !important;
    /* Ensure there's also space below h2 */
    font-size: 14pt;
    /* Reduced font size */
    padding-bottom: 4px;
    /* Reduced padding */
  }
  h3,
  .h3 {
    margin-top: 12px !important;
    /* Add a margin above the h3 element */
    margin-bottom: 8px !important;
    /* Ensure there's also space below h3 */
    font-size: 12pt;
    /* Reduced font size */
    padding-bottom: 2px;
    /* Reduced padding */
  }
  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 15px 0 !important;
    /* Reduced margin */
  }
  div#print-header.row .col-xs-9 {
    float: none;
    display: table-cell;
    vertical-align: bottom;
    padding-left: 15px;
    /* Reduced padding */
    height: 100px;
    /* Adjusted height */
  }
  div#print-header.row .col-xs-9 h1 {
    padding-bottom: 5px;
    /* Reduced padding */
    font-size: 24pt;
    /* Slightly reduced font size */
  }
  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: 14pt;
    /* Reduced font size */
    padding-bottom: 4px;
    /* Reduced padding */
  }
  #rch-primary h3,
  #rch-primary .h3 {
    font-size: 12pt;
    /* Reduced font size */
    padding-bottom: 2px;
    /* Reduced padding */
  }
  #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: 5px;
    /* Reduced padding */
    text-align: left;
  }
  /* Improve readability for lists */
  ul,
  ol {
    margin: 0;
    padding: 0 0 0 15px;
    /* Reduced padding */
  }
  /* 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;
  }
  p {
    padding: 3px 0;
    /* Reduced padding */
  }
  /* Optimize for page breaks */
  @page {
    size: A4;
    margin-top: 1cm;
    margin-right: 1cm;
    margin-bottom: 1cm;
    /* Reduced bottom margin */
    margin-left: 1cm;
  }
}
