@page {
  size: A4;
}

@page cover {
  margin: 20mm 18mm 20mm 18mm;
  @top-left { content: ""; }
  @bottom-left { content: ""; }
}

@page report {
  margin: 34mm 18mm 24mm 18mm;
  @top-left { content: element(report-header); }
  @bottom-left { content: element(report-footer); }
}

* {
  box-sizing: border-box;
}

html {
  color: #2E3B40;
  font-family: Inter, Arial, sans-serif;
  font-size: 10.5pt;
  line-height: 1.45;
}

body {
  margin: 0;
}

.report-meta {
  display: none;
  string-set: report-number attr(data-report-number), report-version attr(data-report-version), report-date attr(data-report-date);
}

.report-header {
  align-items: center;
  border-bottom: .25mm solid #DCE3E3;
  display: grid;
  grid-template-columns: 1fr 54mm;
  height: 24mm;
  left: 0;
  padding-bottom: 3mm;
  position: running(report-header);
  top: 0;
  width: 174mm;
}

.report-header-brand {
  align-items: center;
  display: flex;
  gap: 4mm;
  min-width: 0;
}

.report-header-brand img {
  display: block;
  height: 20mm;
  width: auto;
}

.report-header-brand strong {
  color: #2E3B40;
  display: block;
  font-size: 15pt;
  letter-spacing: 0;
  line-height: 1.05;
}

.report-header-brand span {
  color: #6B7C85;
  display: block;
  font-size: 9pt;
  line-height: 1.35;
  margin-top: 1mm;
}

.report-header-meta {
  color: #4F5E63;
  display: grid;
  gap: 1.2mm;
  margin: 0;
  text-align: right;
}

.report-header-meta div,
.report-footer {
  display: grid;
  grid-template-columns: 1fr;
}

.report-header-meta dt {
  display: none;
}

.report-header-meta dd {
  font-size: 9pt;
  margin: 0;
}

.report-header-meta div:first-child dd {
  color: #2E3B40;
  font-size: 10pt;
  font-weight: 700;
}

.report-footer {
  align-items: center;
  border-top: .25mm solid #DCE3E3;
  color: #6B7C85;
  font-size: 8pt;
  grid-template-columns: 1fr 1fr 1fr;
  height: 10mm;
  padding-top: 2.5mm;
  position: running(report-footer);
  width: 174mm;
}

.report-footer span:nth-child(2) {
  text-align: center;
}

.report-footer span:nth-child(3) {
  text-align: right;
}

.page-number::before {
  content: counter(page);
}

.page-count::before {
  content: counter(pages);
}

.cover-page {
  page: cover;
  min-height: 245mm;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  break-after: page;
}

.report-content {
  page: report;
}

.cover-top {
  align-items: flex-start;
  display: grid;
  gap: 18mm;
  grid-template-columns: 1fr 55mm;
  margin-bottom: 32mm;
}

.cover-logo {
  height: 16mm;
  justify-self: end;
  width: auto;
}

.company-address {
  color: #6B7C85;
  font-size: 9pt;
  line-height: 1.5;
  text-align: right;
}

.cover-kicker {
  color: #6C8A96;
  font-size: 11pt;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 14mm;
  text-transform: uppercase;
}

h1 {
  color: #2E3B40;
  font-size: 34pt;
  line-height: 1.05;
  margin: 0 0 8mm 0;
}

.cover-subtitle {
  color: #4F6A74;
  font-size: 16pt;
  margin: 0 0 18mm 0;
}

.signature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16mm;
  margin-top: 18mm;
}

.signature-grid div {
  border-top: 1px solid #6B7C85;
  color: #6B7C85;
  padding-top: 3mm;
}

.chapter {
  break-before: auto;
  margin-top: 9mm;
}

h2 {
  border-bottom: .25mm solid #DCE3E3;
  color: #2E3B40;
  font-size: 22pt;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 7mm 0;
  padding-bottom: 4mm;
  bookmark-level: none;
}

h2[data-bookmark-label] {
  bookmark-label: attr(data-bookmark-label);
  bookmark-level: 1;
}

.chapter + .chapter {
  margin-top: 12mm;
}

.chapter > p:only-child {
  margin-bottom: 0;
}

h3 {
  color: #4F6A74;
  font-size: 12pt;
  margin: 8mm 0 3mm 0;
}

.definition-list {
  display: block;
  margin: 0;
}

.definition-row {
  border-bottom: 1px solid #E6EAEA;
  display: grid;
  grid-template-columns: 42mm 1fr;
  gap: 6mm;
  padding: 2.5mm 0;
}

dt {
  color: #6B7C85;
  font-weight: 700;
}

dd {
  margin: 0;
}

.data-table {
  border-collapse: collapse;
  margin-top: 4mm;
  table-layout: fixed;
  width: 100%;
}

.data-table th {
  background: #F7F8F8;
  color: #4F6A74;
  font-size: 8.5pt;
  font-weight: 700;
  text-align: left;
}

.data-table th,
.data-table td {
  border: 1px solid #E6EAEA;
  padding: 2.4mm;
  vertical-align: top;
  word-wrap: break-word;
}

.data-table.compact {
  font-size: 8.5pt;
}

.toc-list {
  counter-reset: toc;
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li {
  border-bottom: 1px solid #E6EAEA;
  padding: 3mm 0;
}

.toc-list a {
  color: #2E3B40;
  display: grid;
  gap: 4mm;
  grid-template-columns: 1fr 14mm;
  text-decoration: none;
}

.toc-level-2 {
  padding-left: 6mm;
}

.toc-level-3,
.toc-level-4 {
  padding-left: 12mm;
}

.toc-list a::after {
  content: target-counter(attr(href), page);
  text-align: right;
}

.figure-grid {
  display: grid;
  gap: 8mm;
  grid-template-columns: 1fr 1fr;
  margin-top: 8mm;
}

.report-figure {
  break-inside: avoid;
  margin: 0;
}

.report-image {
  border: 1px solid #E6EAEA;
  display: block;
  max-height: 90mm;
  object-fit: contain;
  width: 100%;
}

figcaption {
  color: #6B7C85;
  font-size: 8.5pt;
  margin-top: 2mm;
}

@media screen {
  body {
    background: #F7F8F8;
    padding: 24px;
  }

  .report-document {
    background: #FFFFFF;
    box-shadow: 0 14px 40px rgba(46, 59, 64, 0.08);
    margin: 0 auto;
    max-width: 960px;
    padding: 48px;
  }

  .report-header,
  .report-footer {
    left: auto;
    margin: 0 auto 32px auto;
    position: static;
    width: 100%;
  }

  .cover-page {
    min-height: auto;
  }

  .chapter {
    break-before: auto;
    margin-top: 48px;
  }

  .report-footer {
    margin: 48px auto 0 auto;
  }

  .figure-grid {
    gap: 24px;
  }
}
