@page {
  size: A4 landscape;
  margin: 8mm;
}

.print-report-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: rgba(12, 25, 42, 0.82);
  backdrop-filter: blur(5px);
}

.print-report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  color: #fff;
  background: #102f52;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
}

.print-report-toolbar__status {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.print-report-toolbar__status.is-error {
  color: #ffd0cc;
}

.print-report-toolbar__actions {
  display: flex;
  gap: 8px;
}

.print-report-toolbar button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 5px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.print-report-toolbar button[data-action="print"] {
  color: #103b62;
  background: #fff;
}

.print-report-toolbar button[data-action="close"] {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: #8d2f35;
}

.print-report-toolbar button[data-action="close"] span {
  margin-right: 3px;
  font-size: 18px;
  font-weight: 400;
  line-height: 0;
  vertical-align: -1px;
}

.print-report-toolbar button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.print-report-stage {
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.print-report-sheet {
  box-sizing: border-box;
  width: 281mm;
  min-width: 281mm;
  height: 194mm;
  margin: 0 auto;
  padding: 4mm;
  overflow: hidden;
  color: #17283a;
  background: #fff;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.35);
  font-family: Arial, Helvetica, sans-serif;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.print-report-document {
  height: 100%;
  display: grid;
  grid-template-rows: 25mm minmax(0, 1fr) 21mm;
  border: 0.35mm solid #183c61;
}

.print-report-header {
  display: grid;
  grid-template-columns: 29mm minmax(0, 1fr) 25mm;
  align-items: center;
  border-bottom: 0.35mm solid #183c61;
  background: #fff;
}

.print-report-header__logo {
  height: 100%;
  display: grid;
  place-items: center;
  border-right: 0.25mm solid #afbdca;
}

.print-report-header__logo img {
  width: 19mm;
  height: 19mm;
  object-fit: contain;
}

.print-report-header__copy {
  min-width: 0;
  padding: 2mm 5mm;
  text-align: center;
}

.print-report-header__institution {
  margin: 0;
  color: #14395f;
  font-size: 9pt;
  font-weight: 800;
  letter-spacing: 0.35pt;
}

.print-report-header__department {
  margin: 0.7mm 0 0;
  color: #405a73;
  font-size: 7pt;
  font-weight: 600;
}

.print-report-header__title {
  margin: 1.2mm 0 0;
  color: #0a2e52;
  font-size: 14pt;
  font-weight: 800;
}

.print-report-header__subtitle {
  margin: 0.7mm 0 0;
  color: #637589;
  font-size: 6.7pt;
}

.print-report-north {
  height: 100%;
  display: grid;
  place-items: center;
  border-left: 0.25mm solid #afbdca;
}

.print-report-north svg {
  width: 13mm;
  height: 18mm;
}

.print-report-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 62fr 38fr;
}

.print-report-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 8mm minmax(0, 1fr);
  border-right: 0.35mm solid #183c61;
}

.print-report-side {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 43% 57%;
}

.print-report-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3mm;
  padding: 0 3mm;
  color: #fff;
  background: #173f67;
  font-size: 7pt;
  font-weight: 800;
  letter-spacing: 0.25pt;
  text-transform: uppercase;
}

.print-report-scale {
  font-size: 6.5pt;
  white-space: nowrap;
}

.print-report-map-wrap {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #f2f4ef;
}

.print-report-map {
  width: 100%;
  height: 100%;
  background: #eef1ed;
}

.print-report-location {
  min-height: 0;
  display: grid;
  grid-template-rows: 7mm minmax(0, 1fr);
  border-bottom: 0.35mm solid #183c61;
}

.print-report-location .print-report-panel-title {
  background: #315b7e;
}

.print-report-map-note,
.print-report-map-attribution {
  position: absolute;
  z-index: 600;
  padding: 1mm 1.5mm;
  border: 0.2mm solid rgba(28, 57, 84, 0.25);
  color: #31465a;
  background: rgba(255, 255, 255, 0.9);
  font-size: 5.3pt;
  line-height: 1.25;
}

.print-report-map-note {
  top: 2mm;
  left: 2mm;
  max-width: 54mm;
}

.print-report-map-attribution {
  right: 2mm;
  bottom: 2mm;
}

.print-map-north {
  position: absolute;
  z-index: 600;
  top: 2mm;
  right: 2mm;
  width: 10mm;
  padding: 1mm;
  color: #102f52;
  background: rgba(255, 255, 255, 0.88);
  border: 0.2mm solid #8194a7;
  text-align: center;
  font-size: 5pt;
  font-weight: 800;
  line-height: 1;
}

.print-map-north::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 0.7mm auto 0;
  border-right: 3.2mm solid transparent;
  border-bottom: 7mm solid #173f67;
  border-left: 3.2mm solid transparent;
}

.print-report-info {
  min-height: 0;
  display: grid;
  grid-template-rows: 7mm auto minmax(0, 1fr);
  overflow: hidden;
}

.print-report-info .print-report-panel-title {
  background: #315b7e;
}

.print-report-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 0.25mm solid #b8c4cf;
}

.print-report-field {
  min-width: 0;
  display: grid;
  grid-template-columns: 40% 60%;
  border-right: 0.2mm solid #d0d8e0;
  border-bottom: 0.2mm solid #d0d8e0;
  font-size: 5.6pt;
  line-height: 1.2;
}

.print-report-field dt,
.print-report-field dd {
  min-width: 0;
  margin: 0;
  padding: 1.15mm 1.3mm;
  overflow-wrap: anywhere;
}

.print-report-field dt {
  color: #294a68;
  background: #edf3f8;
  font-weight: 700;
}

.print-report-field dd {
  color: #17283a;
}

.print-report-coordinates {
  min-height: 0;
  padding: 1.5mm 2mm;
  overflow: hidden;
}

.print-report-coordinates__title {
  margin: 0 0 1mm;
  color: #1a4266;
  font-size: 6pt;
  font-weight: 800;
  text-transform: uppercase;
}

.print-report-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 5.2pt;
}

.print-report-table th,
.print-report-table td {
  padding: 0.7mm 1mm;
  border: 0.2mm solid #bdc8d2;
  text-align: right;
}

.print-report-table th {
  color: #244765;
  background: #e8f0f6;
  font-weight: 800;
}

.print-report-table th:first-child,
.print-report-table td:first-child {
  width: 12%;
  text-align: center;
}

.print-report-overlay.has-dense-coordinates .print-report-field dt,
.print-report-overlay.has-dense-coordinates .print-report-field dd {
  padding-top: 0.75mm;
  padding-bottom: 0.75mm;
  font-size: 5.1pt;
}

.print-report-overlay.has-dense-coordinates .print-report-table {
  font-size: 4.7pt;
}

.print-report-overlay.has-dense-coordinates .print-report-table th,
.print-report-overlay.has-dense-coordinates .print-report-table td {
  padding-top: 0.42mm;
  padding-bottom: 0.42mm;
}

.print-report-empty {
  margin: 1mm 0;
  color: #6b7887;
  font-size: 5.5pt;
}

.print-report-footer {
  display: grid;
  grid-template-columns: 39% 41% 20%;
  border-top: 0.35mm solid #183c61;
  font-size: 5.5pt;
}

.print-report-footer__block {
  min-width: 0;
  padding: 2mm 2.5mm;
  border-right: 0.2mm solid #afbdca;
  line-height: 1.45;
}

.print-report-footer__block:last-child {
  border-right: 0;
  text-align: right;
}

.print-report-footer strong {
  color: #183f64;
}

.print-report-legal {
  color: #92352f;
  font-weight: 600;
}

.print-parcel-label,
.print-vertex-label,
.print-side-label {
  background: transparent;
  border: 0;
}

.print-parcel-label span {
  display: block;
  padding: 1mm 1.5mm;
  border: 0.2mm solid #263542;
  color: #1c2730;
  background: rgba(255, 244, 139, 0.92);
  font-size: 7pt;
  font-weight: 800;
  white-space: nowrap;
}

.print-parcel-label strong,
.print-parcel-label small {
  display: block;
}

.print-parcel-label small {
  margin-top: 0.5mm;
  font-size: 5pt;
  font-weight: 600;
}

.print-vertex-label span {
  display: grid;
  place-items: center;
  width: 5mm;
  height: 5mm;
  border: 0.25mm solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #173f67;
  box-shadow: 0 0 0 0.2mm #173f67;
  font-size: 5.2pt;
  font-weight: 800;
}

.print-side-label span {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #000;
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-shadow:
    -0.5px -0.5px 0 #fff,
    0.5px -0.5px 0 #fff,
    -0.5px 0.5px 0 #fff,
    0.5px 0.5px 0 #fff;
  white-space: nowrap;
}

.print-location-marker {
  border: 0.7mm solid #b4202a;
  border-radius: 50%;
  background: rgba(255, 224, 61, 0.75);
  box-shadow: 0 0 0 0.8mm rgba(180, 32, 42, 0.25);
}

.print-report-loading {
  position: absolute;
  inset: 0;
  z-index: 800;
  display: grid;
  place-items: center;
  color: #173f67;
  background: rgba(255, 255, 255, 0.86);
  font-size: 7pt;
  font-weight: 700;
}

.print-report-overlay.is-ready .print-report-loading {
  display: none;
}

.print-report-sheet .leaflet-control-scale {
  margin: 0 0 2mm 2mm;
}

.print-report-sheet .leaflet-control-scale-line {
  border-color: #21384c;
  color: #17283a;
  background: rgba(255, 255, 255, 0.85);
  font-size: 5pt;
}

@media (max-width: 1100px) {
  .print-report-stage {
    padding: 10px;
  }

  .print-report-sheet {
    transform-origin: top left;
  }
}

@media print {
  html,
  body {
    width: 281mm !important;
    height: 194mm !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  body.print-report-active > *:not(.print-report-overlay) {
    display: none !important;
  }

  .print-report-overlay {
    position: static !important;
    display: block !important;
    background: #fff !important;
    backdrop-filter: none !important;
  }

  .print-report-toolbar {
    display: none !important;
  }

  .print-report-stage {
    overflow: visible !important;
    padding: 0 !important;
  }

  .print-report-sheet {
    width: 281mm !important;
    min-width: 281mm !important;
    height: 194mm !important;
    margin: 0 !important;
    box-shadow: none !important;
  }

  .print-report-sheet .leaflet-control-container .leaflet-top,
  .print-report-sheet .leaflet-control-container .leaflet-right {
    display: none !important;
  }
}
