/* Global print styles for Actualization AI website */

@media print {
  /* Basic page setup */
  @page {
    size: A4;
    margin: 15mm;
  }
  
  /* Force light mode when printing */
  :root {
    color-scheme: light !important;
  }
  
  html, body {
    background-color: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.4;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  
  /* Hide navigation, controls, and UI elements not needed for printing */
  nav, header, footer, button, .button,
  .print-hidden, .sidebar, .GetInTouchButton,
  [role="navigation"], [role="toolbar"] {
    display: none !important;
  }
  
  /* Ensure text is black on white for readability */
  * {
    color: black !important;
    text-shadow: none !important;
    filter: none !important;
    -ms-filter: none !important;
  }
  
  /* Improve layout for printing */
  .print-title {
    display: block !important;
    text-align: center;
    margin-bottom: 20mm;
  }
  
  /* Ensure charts and graphics print clearly */
  .recharts-wrapper, svg, canvas, img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Avoid cutting content across page breaks */
  h1, h2, h3, h4, h5, h6, img {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  table, figure, .card {
    page-break-inside: avoid;
  }
  
  ul, ol, dl {
    page-break-before: avoid;
  }
  
  /* Expand all sections and make content visible */
  .accordion-item, .collapsible, details {
    display: block !important;
  }
  
  details > summary {
    display: none !important;
  }
  
  details > div, 
  details > section {
    display: block !important;
  }
  
  /* Handle links in print properly */
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }
  
  /* Remove box shadows, transitions and animations */
  * {
    box-shadow: none !important;
    transition: none !important;
    animation: none !important;
  }
  
  /* Clean borders for cards and containers */
  .card, .container, .box, section, article {
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  
  /* Fix for fonts rendering too thin */
  body, p, li, td, th {
    font-weight: 400 !important;
  }
  
  strong, b, h1, h2, h3, h4, h5, h6 {
    font-weight: 700 !important;
  }

  /* Ensure pre/code blocks don't overflow */
  pre, code {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    font-size: 9pt !important;
  }
  
  /* Actualization AI specific styles */
  .print-page-break {
    page-break-before: always;
  }
  
  table {
    width: 100% !important;
    border-collapse: collapse !important;
  }
  
  th, td {
    padding: 8pt !important;
    border: 1px solid #ddd !important;
  }

  /* Set max height to none for expandable content */
  .max-h-48, .max-h-\[48\], .max-h-\[70vh\] {
    max-height: none !important;
  }
} 