body {
  counter-reset: h1;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11pt;
  line-height: 1.2;
  orphans: 2;
  widows: 2;
}

@page {
  margin: 1.2cm 2cm 1.6cm 3cm ;
  size: A4;
  @bottom-right-corner {
    content: counter(page)"/"counter(pages);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 7pt;
    position: absolute;
    bottom: 16mm;
    left: 197mm;
  }
  @bottom-left {
    content: string(title);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 6pt;
    line-height: 8pt;
  }
}

title {
  string-set: title content();
}

@page:first {
  background-image: url(Logo_sw_pos.png);
  background-size: 55mm;
  background-repeat: no-repeat;
  background-position: 20mm 12mm;
  margin-top: 4.8cm ;

  @bottom-right-corner {
    content: normal;
  }
  @bottom-left {
    content: normal;
  }
}


/* Titles and headings */

.toc-title, h1:first-of-type {
  break-before: page;
}

.title {
  border-top: .3pt solid #000;
  font-size: 21pt;
  font-weight: bold;
  padding: 1em 0 .25em 0;
}

.subtitle {
  border-bottom: .3pt solid #000;
  font-size: 21pt;
  padding-bottom: 1em;
}

h1, .toc-title {
  font-size: 18pt;
  font-weight: bold;
}

h1 {
  margin: 26pt 0 0 0;
}

/* h1::before {
  counter-increment: h1;
  content: counter(h1);
  width: 2.5rem;
  display: inline-flex;
} */

h2 {
  counter-reset: h3;
  font-size: 14pt;
  margin: 26pt 0 0 0;
}

h3 {
  counter-reset: h4;
  font-size: 11pt;
  margin: 26pt 0 0 0;
}

h1 + h2,
h2 + h3 {
  margin-top: 13pt;
}

/* Table of content */

.TOC ul {
  -prince-pdf-tag-type: TOC;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.TOC li {
  -prince-pdf-tag-type: TOCI;
  margin: 0;
  padding: 0;
}

.TOC li ul {
  margin-left: 1em;
}

.TOC a {
  text-decoration: none;
}

.TOC a:after {
  content: leader('.') target-counter(attr(href), page);
}

/* Lists */

ul {
  margin-left: .5rem;
  padding: 0;
}

li {
  margin-left: 2rem;
  padding: 0;
}


/* Footnotes */

.footnotes {
  float: bottom;
  font-size: 9pt;
  margin-top: 39pt;
  position: relative;
  bottom: 0;
}

.footnotes > hr {
  border-top: .3pt solid black;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  margin-left: 0;
  margin-bottom: 1em;
  width: 30mm;
}

.footnotes ol {
  margin: 0;
  padding-left: 1.5em;
}

.footnotes li,
.footnotes p {
  margin: 0;
  padding: 0;
}


/* Tables */

table {
  break-inside: avoid;
  border-collapse: collapse;
  margin-top: 13pt;
}

th,
td {
  border: .3pt solid #000;
  padding: .1em .25em;
}

th {
  background-color: #efefef;
  font-weight: bold;
}

/* Hyperlinks */

a {
  color: #000;
  text-decoration: .3pt solid #000;
}