/* assets/export_pdf_print_styles.css */

@media print {body 

  /* =========================
     0) GLOBAL: make print stable
     ========================= */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* IMPORTANT: stop sticky/fixed menus from overlaying content */
  /* We neutralize fixed/sticky positioning broadly, then restore it for normal content blocks */
  body * {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }

  /* Restore positioning for typical content elements so layout doesn't collapse */
  main, article, section, header, footer, aside,
  div, p, h1, h2, h3, h4, h5, h6,
  ul, ol, li,
  table, thead, tbody, tfoot, tr, th, td,
  figure, figcaption,
  img, svg, canvas,
  .fusion-builder-row, .fusion-row, .fusion-fullwidth,
  .fusion-layout-column, .fusion-column-wrapper,
  .post-content, .entry-content, .content-area {
    position: relative !important;
  }

  /* =========================
     1) REMOVE HEADER / MENU (Agripedia/Avada)
     ========================= */

  /* Theme-agnostic header/nav */
  header,
  nav,
  .site-header,
  .site-navigation,
  .main-navigation,
  .navbar,
  .masthead,
  .topbar,
  .top-bar,
  .menu,
  .nav {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  /* Avada / Fusion header wrappers */
  .fusion-header-wrapper,
  .fusion-header,
  .fusion-header-sticky,
  .fusion-sticky-header-wrapper,
  .fusion-secondary-header,
  .fusion-main-menu,
  .fusion-mobile-nav-holder,
  .fusion-flyout-menu,
  .fusion-page-title-bar,
  .fusion-tb-header,
  .fusion-tb-header .fusion-builder-row,
  .fusion-tb-header .fusion-row,
  .fusion-tb-header .fusion-fullwidth {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  /* If anything remains and is still fixed/sticky, force-hide by position */
  [style*="position:fixed"],
  [style*="position: fixed"],
  [style*="position:sticky"],
  [style*="position: sticky"] {
    display: none !important;
  }

  /* Remove any spacing reserved for header */
  body,
  #wrapper, #main, #content,
  .fusion-wrapper, .fusion-body {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* =========================
     2) HIDE YOUR EXPORT BUTTONS
     ========================= */
  .export-buttons,
  .export-pdf-button,
  .export-print-button {
    display: none !important;
  }

  /* =========================
     3) FIX "TOP CUT OFF" / GIVE SAFE TOP SPACE
     ========================= */
  /* Browsers differ: give a small safe padding so content doesn't start under any phantom area */
  body {
    padding-top: 8mm !important;
  }

  /* =========================
     4) MORE CONTENT PER PAGE (smaller typography)
     ========================= */
  @media print {

  {
  .fusion-footer,
  footer,
  .fusion-footer-widget-area,
  .fusion-copyright-notice,
  .fusion-footer-copyright-area {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
	  
	  /* ---- FORCE OPEN common toggle/accordion contents ---- */
  .ub-content-toggle-content,
  .collapseomatic_content,
  .collapseomatic,
  .collapsible,
  .collapse,
  .panel-collapse,
  .accordion-collapse,
  .accordion-content,
  .accordion-panel,
  .toggle-content,
  .fusion-panel,
  .fusion-toggle-body,
  .fusion-toggle-content,
  .fusion-accordian .panel-body,
  [aria-hidden="true"],
  [hidden] {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* If a parent forces hiding by height/overflow */
  .collapse,
  .collapsing,
  .accordion-collapse,
  .panel-collapse {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Hide +/- icons and toggle buttons (optional) */
  .ub-content-toggle-icon,
  .collapseomatic_icon,
  .fusion-toggle-icon-wrapper,
  .awb-icon-minus,
  .awb-icon-plus,
  .accordion-button,
  button[aria-expanded] {
    display: none !important;
  }
}

	
	body {
    font-size: 10.5pt !important;
    line-height: 1.35 !important;
  }

  p, li {
    font-size: 10.5pt !important;
    line-height: 1.4 !important;
  }

  h1 {
    font-size: 18pt !important;
    margin: 0 0 6mm 0 !important;
  }
  h2 {
    font-size: 14pt !important;
    margin: 0 0 4mm 0 !important;
  }
  h3 {
    font-size: 12.5pt !important;
    margin: 0 0 3mm 0 !important;
  }

  /* =========================
     5) PAGE BREAK IMPROVEMENTS
     ========================= */
  h1, h2, h3 {
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  img, table, tr, td, th, figure {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  /* Ensure images/tables fit page */
  img, table {
    max-width: 100% !important;
  }

}
