/* Define a print stylesheet */
@media print {

  /* Hide elements not meant for printing */
  body {
    margin: 0;
    /* Remove default margin */
    padding: 0;
    /* Remove default padding */
  }

  a,
  .results-item--wrapper a,
  .policy-sources-wrapper a {
    color: #000000;
    text-decoration: none;
  }

  .policy-sources-title a,
  .results-item--title a {
    color: #000000;
    font-weight: bold;
  }

  .main {
    padding: 2rem 1rem;
  }

  /* Example: Hide navigation menu */
  .navbar-expand-md .navbar-collapse,
  .tabs,
  .pagination-wrapper,
  .top-controllers--buttons,
  .data-view,
  .identifier-forms-show,
  .responsible-metrics,
  .top-controllers--buttons,
  .filters--buttons,
  .filters--checkboxes,
  .footer-list,
  .results-item--status,
  .results-item--tag span,
  .results-item--tag span.research,
  .results-item .highlight svg,
  .results-item.article .highlight .location,
  .footer-copyright,
  .export .change-segment,
  .results-item--title a svg,
  .filters,
  .results-item--subtitle img,
  .policy-sources-flag img,
  .sources_actionbuttons,
  .policy-sources-search,
  .policy-sources-select,
  .secondary-search,
  .hide-pdf,
  .people-table th input,
  .multi-select-funder {
    display: none !important;
  }

  .main-content .research-outputs,
  .main-content .policy-documents,
  .report-section {
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .form-check {
    padding-left: 0;
  }

  .results-item.article .highlight .text {
    padding: 10px 0 0 0;
  }

  .results-item .highlight {
    padding: 0;
  }

  .generic-page-table th {
    color: #000000;
    border: 1px solid #dee3e6;
  }

  .print-break {
    page-break-after: always;
  }

  .bg {
    background-color: #ffffff;
  }

  .top-content.research-outputs,
  .top-content.policy-documents {
    color: #000000 !important;
    background-color: #ffffff;
    margin-left: 0;
  }

  .results-count {
    margin: 0 0 0 6px;
    display: inline-block;
  }

  .results-count p {
    float: left;
  }

  .policy-sources-item {
    margin: 0;
  }

  .row {
    display: block;
  }

  .dropdown .export {
    border: none;
    background-color: #ffffff;
    color: #333333;
    padding: 0;
    position: relative;
    top: -2px;
    left: 2px;
  }

  .print-break-both {
    page-break-after: always;
    page-break-before: always;
  }

  .results {
    display: block;
  }

  .results-item {
    page-break-before: auto;
    page-break-inside: avoid;
    background-color: #ffffff;
  }

  .results .highlight {
    background-color: #ffffff;
    margin: 0;
  }

  .results-item--wrapper .citations {
    margin: 0;
  }

  .results-item--type {
    border: none;
    padding: 0 0 0 1rem;
    font-weight: bold;
  }

  .results-item--wrapper .citations span {
    border: none;
    margin: 0;
  }

  .results-item--wrapper .citations span a {
    padding: 0.3rem 0 0 0;
  }

  .results-item--wrapper .citations span a svg {
    display: none;
  }

  .policy-sources-wrapper {
    background-color: #ffffff;
  }

  .main-content--inner,
  .policy-sources-info {
    padding: 0;
  }

  .research-outputs .query,
  .policy-documents .query {
    padding: 0 0 0 6px;
  }

  .policy-sources-item {
    page-break-inside: avoid;
  }

  .outlets .journals,
  .outlets .academic {
    margin: 4rem 0 0 0;
    padding: 0;
  }

  .outlets .intro {
    margin: 1rem 0;
  }

  .outlets .col-lg-6 {
    width: 100%;
  }

  .outlets .heading {
    background-color: #ffffff;
    color: #000000;
  }

  .outlets .journals .outlets-row,
  .outlets .academic .outlets-row {
    border: none;
    color: #000000;
  }

  .outlets .journals .outlets-row:nth-child(even),
  .outlets .academic .outlets-row:nth-child(even) {
    background-color: #ffffff;
  }

  .outlets-row em a {
    color: #000000;
  }

  .people-table th,
  .institutions-header,
  .users-table th {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #dee3e6;
  }

  .institutions-header input {
    display: none;
  }

  .institutions-item div,
  .institutions-header {
    display: grid;
    border: none;
  }

  .institutions-item {
    page-break-inside: avoid;
  }

  .institutions-item,
  .institutions-list {
    border: none;
  }

  .institutions-item:nth-child(odd) {
    background-color: #ffffff;
  }

  .institutions-item a {
    color: #000000;
  }

  @page {
    size: A4;
    margin: 20mm;
    width: 21cm;
    min-height: 29.7cm;
  }

  .print-page-footer::after {
    page-break-after: always;
  }

  .print-page-footer {
    display: block;
    position: absolute;
    bottom: 0;
    left: 80%;
  }

  .print-page-footer img {
    content: "";
    position: fixed;
    bottom: 0;
    left: 80%;
    width: 200px;
  }

  @supports (not (-moz-appearance:button)) and (contain:paint) and (-webkit-appearance:none) {
    @page {
      size: A4;
      margin-bottom: 15mm;
    }

    @page {
      @bottom-right {
        content: url("../images/footer-logo.svg");
        display: block;
        position: fixed;
        width: 100%;
        height: auto;
      }
    }

    .print-page-footer {
      display: none;
    }
  }

  .pagebreak {
    page-break-after: always;
    margin-top: 8rem !important;
  }

  .header .logo {
    top: 10px;
  }

  .report .map-chart.global {
    width: 75%;
    float: right;
    margin-top: 0 !important;
  }

  .map-chart .h4 {
    position: absolute;
    left: 3vw;
  }

  .print-first-page {
    margin: 0 !important;
    padding: 0 !important;
  }

  .report-section .h5,
  #showMoreButtonReport {
    display: none !important;
  }

  .report-boxes h3 {
    font-size: 1.6rem;
  }

  .report-boxes .number-count {
    font-size: 1.8rem;
  }

  .report-boxes {
    padding: 1rem;
    border: 1px solid #dee3e6;
    border-radius: .8rem;
    text-decoration: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
    margin-top: 1rem;
    flex-wrap: nowrap;
    width: 20%;
  }

  .report-main .query {
    padding: 0px 0px 0px 15px !important
  }

  .main,
  .report-section {
    padding: 0 !important;
  }

  .top-content {
    padding: .6rem;
  }

  .report .map-chart.global .map-list {
    margin-top: 0px;
  }

  .report .map-chart.global .map-list a {
    font-size: 10px;
  }

  .donought-row-flex-print,
  .row-flex-print {
    display: flex;
    width: 100%;
  }

  .citations-source {
    max-width: 35%;
    margin-right: 20px;
  }

  .citations-table {
    max-width: 55%;
  }

  .scholarly-article {
    width: 50%;
  }

  .donought-chart,
  .donought-row-flex-print .side {
    display: block;
    max-width: 45%;
  }

  .padtop40,
  .topic-citing-guidance {
    padding-top: 40px;
  }

  .main-content .research-outputs {
    padding-top: 20px;
  }

  .row-in-map {
    position: absolute;
    top: 40mm;
    display: flex;
    align-content: center;
    flex-direction: column;
  }

  .sr-only,
  .disruption {
    display: none;
  }

  .report-chart.funded-by {
    padding-top: 8rem !important;
  }
}