/* 1.3.246-r262: автономное формирование PDF и утверждённое оформление карточек замечаний. */
.pdf-export-button-r261 {
  margin-left: 8px;
}

.pdf-export-hint-r261 {
  display: block;
  flex-basis: 100%;
  margin-top: 8px;
  color: #536b60;
  font-size: 12px;
  line-height: 1.35;
}

@media print {
  .pdf-export-hint-r261,
  .pdf-native-print-r261 {
    display: none !important;
  }
}

.pdf-export-overlay-r261 {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 31, 45, .72);
}

.pdf-export-overlay-r261 > div {
  width: min(460px, 92vw);
  padding: 22px;
  border-radius: 14px;
  background: #fff;
  color: #173b2a;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .3);
  font: 600 16px/1.45 system-ui, sans-serif;
  text-align: center;
}

.pdf-export-overlay-r261 progress {
  display: block;
  width: 100%;
  margin-top: 14px;
}

.pdf-export-host-r261 {
  position: fixed;
  left: -20000px;
  top: 0;
  z-index: -1;
  display: block;
  overflow: visible;
  background: #fff;
  color: #17232a;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

.pdf-export-host-r261,
.pdf-export-host-r261 * {
  box-sizing: border-box !important;
  animation: none !important;
  transition: none !important;
  caret-color: transparent !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.pdf-export-host-r261 .pdf-export-page-r261 {
  display: block !important;
  position: static !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  transform: none !important;
}

.pdf-export-host-r261 .pdf-export-page-r261[data-format="a4p"] {
  width: 182mm !important;
}

.pdf-export-host-r261 .pdf-export-page-r261[data-format="a3l"] {
  width: 392mm !important;
}

.pdf-export-host-r261 .pdf-export-page-r261[data-format="a4l"] {
  width: 281mm !important;
}

.pdf-export-host-r261 button,
.pdf-export-host-r261 .report-actions,
.pdf-export-host-r261 .report-stage-actions,
.pdf-export-host-r261 .report-print-header,
.pdf-export-host-r261 .report-print-footer,
.pdf-export-host-r261 .print-report-button,
.pdf-export-host-r261 .route-add-day,
.pdf-export-host-r261 .route-nav-button,
.pdf-export-host-r261 .route-object-order,
.pdf-export-host-r261 .route-move-object,
.pdf-export-host-r261 .route-day-confirm,
.pdf-export-host-r261 .route-unassigned {
  display: none !important;
}

.pdf-export-host-r261 .report-sheet,
.pdf-export-host-r261 .bulk-report-sheet,
.pdf-export-host-r261 .bulk-report-cover,
.pdf-export-host-r261 .bulk-report-object-section,
.pdf-export-host-r261 .clarification-report,
.pdf-export-host-r261 .report-layout,
.pdf-export-host-r261 .report-root,
.pdf-export-host-r261 .report-section,
.pdf-export-host-r261 .route-plan-result,
.pdf-export-host-r261 .route-print-summary,
.pdf-export-host-r261 .route-print-map-page,
.pdf-export-host-r261 .route-day {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.pdf-export-host-r261 .report-inspection-brand {
  display: grid !important;
  grid-template-columns: 25mm minmax(0, 1fr) 82mm !important;
  align-items: start !important;
  gap: 4mm !important;
  padding: 0 0 3mm !important;
}

.pdf-export-host-r261 .report-inspection-brand .brand-logo {
  width: 25mm !important;
  height: auto !important;
}

.pdf-export-host-r261 .report-inspection-brand .report-stages {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 82mm !important;
  gap: .6mm !important;
  margin: 0 0 0 auto !important;
  padding: 0 0 0 3mm !important;
  border-top: 0 !important;
  border-left: .7mm solid #dc661e !important;
}

.pdf-export-host-r261 .report-inspection-brand .report-stage-line {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 6.5pt !important;
  line-height: 1.2 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.pdf-export-host-r261 .report-object-card,
.pdf-export-host-r261 .bulk-report-requisites {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 14px !important;
}

.pdf-export-host-r261 .report-object-card > div {
  min-height: 10mm !important;
  padding: 1.5mm 0 !important;
}

.pdf-export-host-r261 .report-object-card dt {
  font-size: 8.5pt !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.pdf-export-host-r261 .report-object-card dd {
  margin-top: .5mm !important;
  font-size: 9pt !important;
  line-height: 1.22 !important;
}

.pdf-export-host-r261 .report-metrics {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 2mm !important;
}

.pdf-export-host-r261 .bulk-report-summary {
  margin-top: 7mm !important;
}

.pdf-export-host-r261 .bulk-report-summary table {
  width: 100% !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
}

.pdf-export-host-r261 .bulk-report-summary th {
  background: #dce9e2 !important;
  text-align: center !important;
  vertical-align: middle !important;
}

.pdf-export-host-r261 .bulk-report-object-header,
.pdf-export-host-r261 .bulk-report-requisites,
.pdf-export-host-r261 .bulk-report-row,
.pdf-export-host-r261 .report-compliant-list > section,
.pdf-export-host-r261 .report-violation-list > section,
.pdf-export-host-r261 .report-row-core,
.pdf-export-host-r261 .report-corrective-details {
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}

.pdf-export-host-r261 .report-corrective-details,
.pdf-export-host-r261 .report-violation-list .report-row-core > small {
  display: block !important;
  line-height: 1.45 !important;
}

.pdf-export-host-r261 .report-photo-grid {
  display: flex !important;
  flex-flow: row wrap !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  column-gap: 7mm !important;
  row-gap: 5mm !important;
  width: 100% !important;
  margin-top: 4mm !important;
}

.pdf-export-host-r261 .report-photo-grid figure {
  flex: 0 0 auto !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: 118mm !important;
  margin: 0 !important;
}

.pdf-export-host-r261 .report-photo-grid img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 118mm !important;
  max-height: 59mm !important;
  object-fit: contain !important;
  object-position: left top !important;
  background: #fff !important;
}

.pdf-export-host-r261 .report-photo-grid figcaption {
  margin-top: 1.5mm !important;
  font-size: 8.5pt !important;
  line-height: 1.2 !important;
}

.pdf-export-host-r261 .violations-inline-title {
  display: none !important;
}

/* Служебное указание формата не является частью отчёта. */
.pdf-export-host-r261 .report-a3-header > span {
  display: none !important;
}

/* Каждое замечание — самостоятельная карточка с левой окантовкой и интервалом. */
.pdf-export-host-r261 .pdf-inspection-violations-r262 > section,
.pdf-export-host-r261 .bulk-report-row.violation {
  width: 100% !important;
  margin: 0 0 7mm !important;
  padding: 3mm 3mm 3mm 4mm !important;
  border-left: 1mm solid #b3261e !important;
  border-radius: 0 2mm 2mm 0 !important;
  background: #fff !important;
}

.pdf-export-host-r261 .pdf-inspection-violations-r262 > section:last-child,
.pdf-export-host-r261 .bulk-report-row.violation:last-child {
  margin-bottom: 0 !important;
}

@media print {
  body .report-a3-header > span {
    display: none !important;
  }

  body.print-fixed-layout .report-violation-list > section,
  body.print-fixed-layout .bulk-report-row.violation {
    width: 100% !important;
    margin: 0 0 7mm !important;
    padding: 3mm 3mm 3mm 4mm !important;
    border-left: 1mm solid #b3261e !important;
    border-radius: 0 2mm 2mm 0 !important;
    background: #fff !important;
  }
}

.pdf-export-host-r261 .route-print-summary table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.pdf-export-host-r261 .route-print-map-image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 155mm !important;
  object-fit: contain !important;
  object-position: left top !important;
}

.pdf-export-host-r261 #rp-map,
.pdf-export-host-r261 .leaflet-container {
  display: none !important;
}

.pdf-export-host-r261 .route-day-head,
.pdf-export-host-r261 .route-plan-row,
.pdf-export-host-r261 .route-day-totals,
.pdf-export-host-r261 .route-plan-totals {
  position: static !important;
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}
