/* Print Styles - Clean and Professional */
@media print {
  /* Hide navigation and UI elements */
  aside,
  nav,
  header[role="banner"],
  .sidebar,
  [class*="sidebar"],
  [class*="Sidebar"],
  button,
  input[type="search"],
  .no-print,
  [aria-label*="menu"],
  [aria-label*="navigation"] {
    display: none !important;
  }

  /* Hide action buttons */
  button,
  [role="button"],
  a[class*="button"],
  .btn,
  [class*="btn-"] {
    display: none !important;
  }

  /* Reset page layout */
  body {
    background: white !important;
    color: black !important;
    margin: 0 !important;
    padding: 20px !important;
  }

  /* Main content full width */
  main,
  #root,
  [role="main"],
  .main-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  /* Remove backgrounds and shadows */
  * {
    background: white !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Keep only essential borders */
  table,
  th,
  td {
    border: 1px solid #ddd !important;
  }

  /* Optimize tables for print */
  table {
    width: 100% !important;
    page-break-inside: avoid;
  }

  /* Prevent page breaks inside important elements */
  tr,
  img,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-inside: avoid;
  }

  /* Better spacing for headings */
  h1,
  h2,
  h3 {
    page-break-after: avoid;
    margin-top: 1em;
  }

  /* Links - show URL after text */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  /* Hide decorative images and icons */
  .material-symbols-outlined,
  [class*="icon"],
  svg {
    display: none !important;
  }

  /* Page margins for comfortable reading */
  @page {
    margin: 2cm;
    size: A4;
  }

  /* Ensure good contrast */
  body,
  p,
  li,
  td,
  th {
    color: black !important;
  }

  /* Keep important text styles */
  strong,
  b {
    font-weight: 700 !important;
  }

  /* Optimize font sizes */
  body {
    font-size: 12pt !important;
    line-height: 1.5 !important;
  }

  h1 {
    font-size: 18pt !important;
  }

  h2 {
    font-size: 16pt !important;
  }

  h3 {
    font-size: 14pt !important;
  }
}
