#publication-text h1,
#publication-text h2,
#publication-text h3,
#publication-text h4,
#publication-text h5,
#publication-text h6 {
  font-size: var(--bs-body-font-size);
  font-weight: bold;
}

#publication-text table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

#publication-text table>thead>tr>th,
#publication-text table>tbody>tr>th,
#publication-text table>tfoot>tr>th,
#publication-text table>thead>tr>td,
#publication-text table>tbody>tr>td,
#publication-text table>tfoot>tr>td {
  padding: 8px;
  line-height: 1.42857143;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

#publication-text table>thead>tr>th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
}

#publication-text table>caption+thead>tr:first-child>th,
#publication-text table>colgroup+thead>tr:first-child>th,
#publication-text table>thead:first-child>tr:first-child>th,
#publication-text table>caption+thead>tr:first-child>td,
#publication-text table>colgroup+thead>tr:first-child>td,
#publication-text table>thead:first-child>tr:first-child>td {
  border-top: 0;
}

#publication-text table>tbody+tbody {
  border-top: 2px solid #dee2e6;
}

#publication-text table table {
  background-color: #fff;
}

#publication-text table {
  border: 1px solid #dee2e6;
}

#publication-text table>thead>tr>th,
#publication-text table>tbody>tr>th,
#publication-text table>tfoot>tr>th,
#publication-text table>thead>tr>td,
#publication-text table>tbody>tr>td,
#publication-text table>tfoot>tr>td {
  border: 1px solid #dee2e6;
}

#publication-text table>thead>tr>th,
#publication-text table>thead>tr>td {
  border-bottom-width: 2px;
}

@media print {
  @page printing {
    size: A4;
    margin: 2cm 1.5cm;
    font-family: "Roboto", sans-serif;
    text-align: center;
    font-size: 12pt;
    padding: 5px;
    margin-bottom: 15px;
    font-weight: bold;

    @top-left {
      content: "";
      color: var(--primary);
      border-bottom: 2px solid var(--primary);
    }

    @top-right {
      content: "";
      color: var(--primary);
      border-bottom: 2px solid var(--primary);
    }

    @top-center {
      content: "";
      border-bottom: 2px solid var(--primary);
    }

    @bottom-center {
      content: counter(page);
      margin-bottom: 20pt;
    }

    @bottom-right {
      content: "";
      margin-bottom: 20pt;
    }
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  header,
  footer,
  aside,
  .useful-links,
  #featured {
    display: none !important;
  }

  #publication-info {
    page: printing;
  }

  #publication-text img {
    page-break-after: always !important;
    display: block;
  }


  /* Style for printing URLs and titles */
  a[href] {
    color: #000;
    text-decoration: none;
  }

  /* Improve table printing */
  table {
    width: 100% !important;
    border-collapse: collapse;
  }

  th,
  td {
    border: 1px solid #000;
    padding: 8px;
  }

  th {
    background-color: #eee;
  }

  /* Page breaks */
  .page-break {
    page-break-before: always;
  }
}