/* Herdina full-page identity watermark. This supersedes the compact v6 badge:
   the mark is intentionally large, centered slightly low and softly transparent. */
.herdina-dossier .herdina-articles-grid {
  gap: 8mm;
}

.sheet.company-herdina .watermark .watermark-inner {
  box-sizing: border-box;
  width: 132mm;
  max-height: none;
  gap: 5mm;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(24mm);
}

.sheet.company-herdina .watermark img {
  width: 100mm;
  height: 76mm;
  object-fit: contain;
  opacity: .075;
  filter: none;
}

.sheet.company-herdina .watermark span {
  width: 124mm;
  max-width: 124mm;
  color: #052f3b;
  opacity: .095;
  white-space: nowrap;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .8px;
  text-align: center;
}

.fsheet.company-herdina > .watermark-under-financial {
  z-index: 0;
  display: flex;
  height: auto;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.fsheet.company-herdina > .watermark-under-financial .watermark-inner {
  position: relative;
  top: auto;
  left: auto;
}

.sheet.company-herdina:not(.fsheet) > .watermark {
  transform: none;
}

/* Notes remain unmistakable above the watermark and inside the printable page. */
.herdina-dossier .fnote,
.herdina-classic-edition .prn-note {
  z-index: 2;
  display: block !important;
  flex: 0 0 auto;
  min-height: 24px;
  margin: 5px 0 3px;
  padding: 5px 10px;
  color: #052f3b;
  border: 1px solid #d7e3e3;
  border-right: 4px solid #d4ad5d;
  border-radius: 3px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 2px 7px rgb(5 47 59 / 6%);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.55;
  text-align: right;
}

.herdina-dossier .fnote b,
.herdina-classic-edition .prn-note b {
  color: #0b5968;
  font-weight: 900;
}

@media print {
  .sheet.company-herdina .watermark img,
  .sheet.company-herdina .watermark span {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .herdina-dossier .fnote,
  .herdina-classic-edition .prn-note {
    break-inside: avoid;
  }
}
