@media print {
  /* Hide non-printable elements */
  .no-print {
    display: none !important;
  }
  
  /* Page setup */
  @page {
    margin: 0.5cm;
  }
  
  body {
    background-color: white !important;
    font-size: 11pt;
  }
  
  /* Typography - compact spacing */
  h1 {
    font-size: 16pt !important;
    margin-bottom: 0.5rem !important;
  }
  
  h5 {
    font-size: 12pt !important;
    margin-bottom: 0.3rem !important;
  }
  
  /* Cards - minimal styling for print */
  .card {
    box-shadow: none !important;
    border: 1px solid #dee2e6 !important;
    page-break-inside: avoid;
    margin-bottom: 0.5rem !important;
  }
  
  .card-header {
    padding: 0.3rem 0.5rem !important;
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
  }
  
  .card-body {
    padding: 0.5rem !important;
  }
  
  .card-body p {
    margin-bottom: 0.25rem !important;
    line-height: 1.3;
  }
  
  .card-body hr {
    margin: 0.5rem 0 !important;
  }
  
  /* Layout - compact spacing */
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  
  .row {
    margin-bottom: 0 !important;
  }
  
  .col-md-6 {
    padding: 0 0.5rem !important;
  }
  
  .mt-5 {
    margin-top: 0.5rem !important;
  }
  
  .mb-4 {
    margin-bottom: 0.5rem !important;
  }
  
  /* Tables - compact and readable */
  table {
    page-break-inside: avoid;
    font-size: 10pt;
  }
  
  table th,
  table td {
    padding: 0.3rem !important;
  }
  
  /* Badges - print-friendly with borders */
  .badge {
    border: 1px solid !important;
    padding: 0.2em 0.4em !important;
    font-size: 10pt !important;
  }
  
  .badge.bg-primary {
    color: #0d6efd !important;
    background-color: white !important;
    border-color: #0d6efd !important;
  }
  
  .badge.bg-warning {
    color: #856404 !important;
    background-color: white !important;
    border-color: #ffc107 !important;
  }
  
  .badge.bg-success {
    color: #198754 !important;
    background-color: white !important;
    border-color: #198754 !important;
  }
  
  /* Links - maintain readability */
  .table a {
    color: #0d6efd !important;
    text-decoration: none !important;
  }
  
  /* Bootstrap utility overrides for print */
  .shadow-sm {
    box-shadow: none !important;
  }
  
  .border-0 {
    border: 1px solid #dee2e6 !important;
  }
  
  .fw-semibold,
  strong {
    font-weight: 600 !important;
  }
}
