.select2-container {
    z-index: 10000; /* Ensure dropdown appears above other elements */
}

.small-text {
    font-size: 10px !important;
}

.row.invoice-header {
    --bs-gutter-x: 0.5rem; /* Adjust this as needed */
}

@media print {
  /* Ensure footer stays at the bottom of the first page */
  .static-header {
    position: relative; /* Keeps footer in document flow */
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    page-break-before: avoid;
    page-break-after: always; /* Moves everything else to the next page */
  }

  /* Ensure the table starts on the next page */
  .dynamic-table {
    page-break-before: always; /* Forces table to start on a new page */
  }

  /* Prevent rows from breaking across pages */
  tbody {
    page-break-inside: auto;
  }

  tr {
    page-break-inside: avoid; /* Moves entire row to the next page if needed */
  }

  /* Ensure total section moves to next page if needed */
  .invoice-total {
    page-break-before: always; /* Moves total to the next page */
  }

  /* Ensure content above footer does not overlap */
  .invoice-content {
    min-height: calc(100vh - 300px); /* Reserves space for footer */
    page-break-inside: avoid; /* Prevents cutting content */
  }
}
