@media print {
    /* Make container full width */
    .container {
      width: 100% !important;
      max-width: 100% !important;
      padding: 0 !important;
      margin: 0 !important;
    }
    
    /* Hide elements not needed for printing */
    header, 
    footer, 
    nav, 
    .sidebar, 
    .no-print, 
    button:not(.print-only),
    .btn:not(.print-only) {
      display: none !important;
    }
    
    /* Remove shadows and unnecessary styling */
    .card {
      border: none !important;
      box-shadow: none !important;
    }
    
    /* Ensure content is visible and properly formatted */
    body {
      font-size: 12pt;
      background: #fff !important;
      color: #000 !important;
    }
    
    /* Force background colors to print */
    .table-dark th {
      background-color: #212529 !important;
      color: #fff !important;
      -webkit-print-color-adjust: exact !important;
      print-color-adjust: exact !important;
    }
    
    /* Ensure table striping prints */
    .table-striped tbody tr:nth-of-type(odd) {
      background-color: rgba(0, 0, 0, 0.05) !important;
      -webkit-print-color-adjust: exact !important;
      print-color-adjust: exact !important;
    }
    
    /* Improve table printing */
    table {
      page-break-inside: auto;
    }
    
    tr {
      page-break-inside: avoid;
      page-break-after: auto;
    }
    
    /* Avoid page breaks inside important elements */
    h1, h2, h3, h4, h5, h6 {
      page-break-after: avoid;
    }
  }