/* Herdina architectural dossier — structurally distinct from Paradise. */
.fsheet.company-herdina.herdina-dossier {
  padding-inline: 11mm;
}

.herdina-dossier .ftitle {
  margin: 7px 0 8px;
}

.herdina-dossier .ftitle h1 {
  width: auto;
  min-width: 112mm;
  color: #052f3b;
  border: 1.5px solid #0b5968;
  border-right: 7px solid #d4ad5d;
  border-left: 7px solid #d4ad5d;
  border-radius: 3px;
  background: #fff;
  padding: 6px 20px 7px;
  box-shadow: 0 4px 13px rgb(5 47 59 / 8%);
}

.herdina-dossier .herdina-deal-overview {
  direction: rtl;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: 8px;
  margin-bottom: 6px;
  padding: 6px;
  border: 1px solid #d6e3e3;
  border-radius: 4px;
  background: linear-gradient(145deg, rgb(247 250 249 / 96%), #fff);
  box-shadow: 0 4px 14px rgb(5 47 59 / 6%);
}

.herdina-dossier .fparties {
  grid-template-columns: 1fr;
  align-content: stretch;
  gap: 6px;
  margin: 0;
}

.herdina-dossier .fparty {
  min-height: 0;
  border-right: 4px solid #d4ad5d;
  box-shadow: inset 0 0 0 1px #dce7e7;
  padding: 6px 10px;
}

.herdina-dossier .fparty:nth-child(2) {
  border-right-color: #0b5968;
}

.herdina-dossier .fparty::after {
  display: none;
}

.herdina-dossier .herdina-asset-registry {
  direction: rtl;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-right: 7px;
  border-right: 1px solid #d4ad5d;
}

.herdina-dossier .herdina-asset-registry::before {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin: 0 auto -2px;
  background: linear-gradient(90deg, #d4ad5d, #0b5968);
}

.herdina-dossier .fprop {
  grid-template-columns: 1fr 1fr;
  flex: 1;
  gap: 1px;
  margin: 0;
  border: 0;
  background: #d9e5e5;
  box-shadow: none;
}

.herdina-dossier .fprop > div {
  border: 0;
  background: linear-gradient(145deg, #052f3b, #0b5968);
  padding: 5px 4px;
}

.herdina-dossier .ffin {
  grid-template-columns: 1fr;
  gap: 3px;
  margin: 0;
}

.herdina-dossier .ffin > div,
.herdina-dossier .ffin > div:first-child {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 39px;
  border: 1px solid #d8e4e4;
  border-right: 3px solid #d4ad5d;
  padding: 3px 7px;
  background: #fff;
  box-shadow: none;
}

.herdina-dossier .ffin > div:first-child {
  border-right-color: #0b5968;
  background: #edf5f4;
}

.herdina-dossier .ffin .fh {
  grid-area: 1 / 1 / 3;
  padding-left: 5px;
  border-left: 1px solid #dbe6e6;
}

.herdina-dossier .ffin .fv {
  grid-area: 1 / 2;
  margin: 0;
  font-size: 14px;
}

.herdina-dossier .ffin .fw {
  grid-area: 2 / 2;
  font-size: 8.5px;
}

.herdina-dossier .herdina-counsel-band {
  margin: 4px 0 5px;
  border-radius: 16px 3px 3px 16px;
  background: linear-gradient(100deg, #052f3b, #0b5968 82%, #d4ad5d 82%);
}

.herdina-dossier .fsecttl {
  justify-content: center;
  gap: 10px;
  margin: 2px auto 5px;
  border: 0;
  color: #052f3b;
  font-size: 13px;
}

.herdina-dossier .fsecttl::before,
.herdina-dossier .fsecttl::after {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, #d4ad5d, #0b5968);
}

.herdina-dossier .herdina-articles-grid {
  direction: rtl;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8mm;
  position: relative;
}

.herdina-dossier .herdina-articles-grid::after {
  content: "";
  width: 1px;
  background: linear-gradient(transparent, #d4ad5d 15%, #0b5968 50%, #d4ad5d 85%, transparent);
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 50%;
}

.herdina-dossier ol.herdina-article-column {
  counter-reset: fa var(--article-counter-start, 0);
  display: flex;
  flex: none;
  justify-content: flex-start;
  gap: 3px;
  margin: 0;
}

.herdina-dossier ol.herdina-article-column li {
  min-height: 0;
  margin: 0;
  border: 0;
  border-right: 3px solid #d4ad5d;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, transparent, #f1f7f6);
  padding: 3px 7px 3px 3px;
  font-size: var(--liFont, 10.7px);
  line-height: var(--liLH, 1.55);
}

.herdina-dossier ol.herdina-article-column-second li {
  border-right-color: #0b5968;
}

.herdina-dossier .fsigns {
  gap: 7px;
  margin-top: 7px;
  padding: 5px;
  border: 1px solid #dbe6e6;
  border-radius: 3px;
  background: linear-gradient(90deg, #f5f9f8, #fff, #f5f9f8);
}

.herdina-dossier .fsig {
  border: 0;
  border-bottom: 3px solid #d4ad5d;
  background: transparent;
  box-shadow: none;
}

.herdina-dossier .herdina-spine-label {
  z-index: 3;
  max-width: 74mm;
  color: rgb(255 255 255 / 78%);
  direction: rtl;
  white-space: nowrap;
  font-family: var(--title-font);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  position: absolute;
  top: 2.2mm;
  left: 18mm;
  overflow: hidden;
}

@media print {
  .herdina-dossier .herdina-deal-overview,
  .herdina-dossier .herdina-articles-grid,
  .herdina-dossier .fsigns {
    break-inside: avoid;
  }
}
