 
/* print.css - Production-ready print styles for full React site print fidelity */

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html, body {
    width: 210mm;
    min-height: 297mm;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    box-sizing: border-box;
    overflow: visible !important;
  }

  body {
    width: 2140px !important;
    min-width: 2140px !important;
    max-width: 2140px !important;
    box-sizing: border-box;
    margin: 0 auto !important;
    /* Scale 2140px to A4 (794/2140 ≈ 0.37) */
    transform: scale(0.55) !important;
    transform-origin: top left;
    overflow-x: hidden !important;
    page-break-inside: avoid !important;
    break-inside: avoid;
  }
  /* Prevent page breaks inside main layout containers */
  header, nav, main, section, article, aside, footer, .container, .row, .col, .home, .homepage, .App, .app {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Show all main layout components, hide only overlays/widgets */
  header, nav, main, section, article, aside, footer, .container, .row, .col, .home, .homepage, .App, .app {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    color: inherit !important;
    background: inherit !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    z-index: auto !important;
  }
  .uw-widget-custom-trigger,
  .uwaw,
  .btn-reset-all,
  .skip-link,
  .a11y-toolbar,
  .copyrights-accessibility,
  .react-chatbot-kit-chat-container,
  .react-chatbot-kit-chat-inner-container,
  .react-chatbot-kit-chat-bot-avatar,
  .react-chatbot-kit-user-avatar,
  .react-chatbot-kit-chat-header,
  .react-chatbot-kit-chat-input-container,
  .react-chatbot-kit-chat-message-container,
  .react-chatbot-kit-chat-message,
  #uw-main,
  #uw-widget-custom-trigger,
  [aria-label*="accessibility" i] {
    display: none !important;
  }

  /* Always show underline for <u> tags in print */
  u, .underline, .text-underline {
    text-decoration: underline !important;
    text-decoration-skip-ink: auto !important;
    -webkit-text-decoration-skip: auto !important;
  }

  /* Ensure images and videos fit page and break correctly */
  img, video {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid !important;
    break-inside: avoid;
    display: block;
  }

  /* Page break rules for multi-page support */
  .page-break, .break-before {
    break-before: page;
    page-break-before: always;
  }
  .break-after {
    break-after: page;
    page-break-after: always;
  }
  .avoid-break {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Prevent unwanted breaks in headers, nav, footers, cards, etc. */
  header, nav, footer, .card, .section, .container, .row, .col {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Remove link underlines for print, keep color */
  a {
    text-decoration: none !important;
    color: inherit !important;
  }

  /* Remove focus outlines for print */
  *:focus, *:active {
    outline: none !important;
    box-shadow: none !important;
  }

  /* Optional: Remove scrollbars for print */
  ::-webkit-scrollbar {
    display: none !important;
  }

   /* Hide all animations and transitions for print */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    animation-fill-mode: none !important;
    will-change: auto !important;
  }
  [data-aos],
  .aos-animate,
  [class*="aos"],
  .animated,
  [class*="animate__"],
  [class*="fade"],
  [class*="slide"],
  [class*="zoom"],
  [class*="bounce"],
  [class*="spin"],
  [class*="pulse"],
  [class*="flip"],
  [class*="move"],
  [class*="transition"],
  [class*="marquee"],
  [class*="scroll"],
  [class*="ticker"] {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}
