/* ============================================================
   SOFTWARE360 — PRINT INVOICE STYLES
   Applied via media="print" — hides all chrome, shows invoice only
   ============================================================ */

@media print {
  /* Hide everything */
  body * {
    visibility: hidden;
  }

  /* Show only the print area */
  #invoice-print-area,
  #invoice-print-area * {
    visibility: visible;
  }

  #invoice-print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    background: #fff;
    color: #1a1a1a;
    font-size: 12px;
    line-height: 1.5;
  }

  /* Hide UI elements */
  .s360-nav,
  .s360-footer,
  .s360-invoice-form,
  .s360-invoice-header,
  .s360-invoice-actions,
  .s360-shortcuts-hint,
  .s360-mobile-preview-btn,
  .s360-mobile-preview-overlay,
  .s360-invoice-preview-wrap {
    display: none !important;
  }

  /* Watermark in print */
  .inv-watermark {
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.06) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Ensure table header colors print */
  .inv-table thead th {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Status badge colors */
  .inv-status {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Divider */
  .inv-divider {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Page breaks */
  .inv-table { page-break-inside: auto; }
  .inv-table tr { page-break-inside: avoid; }
  .inv-totals { page-break-inside: avoid; }
  .inv-signature { page-break-inside: avoid; }

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