/* Print styles for invoices */
@media print {
  /* Hide elements that shouldn't be printed */
  header, 
  footer, 
  .sidebar, 
  .btn-group, 
  .card-header, 
  .card-footer,
  .navbar,
  .breadcrumb,
  .no-print {
    display: none !important;
  }
  
  /* Reset page margins */
  @page {
    margin: 0.5cm;
  }
  
  /* General styling */
  body {
    font-size: 12pt;
    line-height: 1.3;
    background: #fff !important;
    color: #000 !important;
  }
  
  /* Remove card styling */
  .card {
    border: none !important;
    box-shadow: none !important;
  }
  
  .card-body {
    padding: 0 !important;
  }
  
  /* Make sure the invoice preview takes up the full page */
  .invoice-preview {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  
  /* Table styling */
  .table {
    border-collapse: collapse !important;
    width: 100% !important;
  }
  
  .table th, 
  .table td {
    background-color: #fff !important;
    border-bottom: 1px solid #ddd !important;
  }
  
  /* Add page breaks */
  .page-break {
    page-break-before: always;
  }
  
  /* Links */
  a {
    text-decoration: none !important;
    color: #000 !important;
  }
  
  /* Make sure content doesn't get cut off */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  img, table, figure {
    page-break-inside: avoid;
  }
  
  /* Show only the invoice preview section */
  .container > .card:not(:last-child) {
    display: none !important;
  }
  
  .container > .card:last-child {
    display: block !important;
  }
}
