/* v335 - urgent fertilizer report pagination/Word and field assessment print fixes */
:root { --amspec-red:#8A2A2B; }
body.endpoint-main-job_fertilizer_report .fert-report-output { gap: 16px; }
body.endpoint-main-job_fertilizer_report .fert-report-page {
  width: 210mm !important;
  height: 297mm !important;
  min-height: 297mm !important;
  max-height: 297mm !important;
  box-sizing: border-box !important;
  padding: 10mm 12mm 12mm !important;
  background: #fff !important;
  color: #0b1728 !important;
  font-family: Calibri, Arial, sans-serif !important;
  overflow: hidden !important;
}
body.endpoint-main-job_fertilizer_report .fert-report-packed-page .fert-page-body,
body.endpoint-main-job_fertilizer_report .fert-page-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: grid !important;
  align-content: start !important;
  gap: 2.15mm !important;
}
body.endpoint-main-job_fertilizer_report .fert-sheet-header { margin-bottom: 2mm !important; }
body.endpoint-main-job_fertilizer_report .fert-sheet-footer { margin-top: auto !important; }
body.endpoint-main-job_fertilizer_report .fert-block,
body.endpoint-main-job_fertilizer_report .fert-hold-block,
body.endpoint-main-job_fertilizer_report .fert-summary-block,
body.endpoint-main-job_fertilizer_report .fert-quantity-block,
body.endpoint-main-job_fertilizer_report .fert-draft-block {
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}
body.endpoint-main-job_fertilizer_report .fert-section-title,
body.endpoint-main-job_fertilizer_report .fert-sheet-band,
body.endpoint-main-job_fertilizer_report .fert-report-page th,
body.endpoint-main-job_fertilizer_report .fert-sheet-update-switch span.is-active {
  background: var(--amspec-red) !important;
  background-color: var(--amspec-red) !important;
  background-image: none !important;
}
body.endpoint-main-job_fertilizer_report .fert-report-page table { table-layout: fixed; border-collapse: collapse !important; }
body.endpoint-main-job_fertilizer_report .fert-report-page th,
body.endpoint-main-job_fertilizer_report .fert-report-page td { line-height: 1.13 !important; padding: 2.1px 4px !important; }
body.endpoint-main-job_fertilizer_report .fert-detail-paragraph { margin: 0 0 1.6mm !important; }
body.endpoint-main-job_fertilizer_report .fert-detail-paragraph strong { display:block; font-size: 7.1pt !important; line-height: 1.08 !important; margin-bottom: .5mm !important; }
body.endpoint-main-job_fertilizer_report .fert-detail-paragraph p { margin:0 !important; font-size: 8.2pt !important; line-height: 1.18 !important; }
body.endpoint-main-job_fertilizer_report .fert-visual-cell { text-align:left !important; line-height:1.16 !important; }
body.endpoint-main-job_fertilizer_report .fert-summary-sheet { table-layout: fixed !important; }
body.endpoint-main-job_fertilizer_report .fert-summary-sheet th:nth-child(1),
body.endpoint-main-job_fertilizer_report .fert-summary-sheet td:nth-child(1) { width: 24mm !important; }
body.endpoint-main-job_fertilizer_report .fert-summary-sheet th:nth-child(2),
body.endpoint-main-job_fertilizer_report .fert-summary-sheet td:nth-child(2) { width: 36mm !important; }
body.endpoint-main-job_fertilizer_report .fert-summary-comment-cell { text-align:left !important; white-space:normal !important; }
body.endpoint-main-job_fertilizer_report .fert-report-measure {
  position: absolute !important;
  left: -20000px !important;
  top: 0 !important;
  width: 210mm !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -999 !important;
  transform: none !important;
}
body.endpoint-main-job_fertilizer_report .fert-report-measure .fert-report-page { margin:0 !important; transform:none !important; box-shadow:none !important; }
@media print {
  body.endpoint-main-job_fertilizer_report .module-header,
  body.endpoint-main-job_fertilizer_report .fert-builder-controls,
  body.endpoint-main-job_fertilizer_report .fert-preview-panel > .card-head,
  body.endpoint-main-job_fertilizer_report .sidebar,
  body.endpoint-main-job_fertilizer_report .topbar { display:none !important; }
  body.endpoint-main-job_fertilizer_report,
  body.endpoint-main-job_fertilizer_report html { background:#fff !important; width:210mm !important; }
  body.endpoint-main-job_fertilizer_report .content,
  body.endpoint-main-job_fertilizer_report .app-shell,
  body.endpoint-main-job_fertilizer_report .fert-report-builder,
  body.endpoint-main-job_fertilizer_report .fert-preview-panel { display:block !important; padding:0 !important; margin:0 !important; width:210mm !important; max-width:none !important; box-shadow:none !important; border:0 !important; overflow:visible !important; background:#fff !important; }
  body.endpoint-main-job_fertilizer_report .fert-report-output { position:absolute !important; left:0 !important; top:0 !important; width:210mm !important; display:block !important; gap:0 !important; padding:0 !important; margin:0 !important; background:#fff !important; }
  body.endpoint-main-job_fertilizer_report .fert-report-page { margin:0 !important; box-shadow:none !important; border:0 !important; page-break-after:always !important; break-after:page !important; print-color-adjust:exact !important; -webkit-print-color-adjust:exact !important; }
  body.endpoint-main-job_fertilizer_report .fert-report-page:last-child { page-break-after:auto !important; break-after:auto !important; }
}
