@media print {
  /* Hide header, footer, and other non-essential UI by default */
  header,
  footer,
  nav,
  aside,
  form {
    display: none !important;
  }

  /* Hide the action buttons on the chart page specifically */
  .no-print {
    display: none !important;
  }

  body {
    font-size: 12pt;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #000;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  table {
    page-break-inside: auto;
  }
  
  tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  thead {
    display: table-header-group; /* Ensure table headers repeat on each page */
  }

  a {
    text-decoration: none;
    color: #000;
  }

  /* Remove box shadows and other decorative styles */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
} 