/* ========================================
   Print Styles
   ======================================== */
@media print {
  body {
    background: white;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .topbar,
  .detail-header,
  .detail-title,
  .back-link,
  .detail-actions,
  .toast-container,
  .modal-overlay {
    display: none !important;
  }

  .app-shell {
    max-width: none;
    padding: 0;
  }

  .gold-invoice {
    border: 0;
    box-shadow: none;
    border-radius: 0;
    min-height: 100vh;
    padding: 20px 30px;
  }

  .gold-invoice::before {
    display: none;
  }

  th {
    background: var(--gold-dark) !important;
  }
}

/* Dark mode → force light invoice on print */
@media print {
  [data-theme="dark"] body { background: white; }
  [data-theme="dark"] .gold-invoice { background: white !important; border-color: #dcc49a !important; }
  [data-theme="dark"] .gold-invoice::before,
  [data-theme="dark"] .gold-invoice::after { display: none !important; }
  [data-theme="dark"] .gold-invoice .invoice-logo strong,
  [data-theme="dark"] .gold-invoice .invoice-meta h2,
  [data-theme="dark"] .gold-invoice .section-label,
  [data-theme="dark"] .gold-invoice .footer-item span:first-child { color: #9a6d15 !important; }
  [data-theme="dark"] .gold-invoice .invoice-logo .logo-sub { color: #8a7e72 !important; }
  [data-theme="dark"] .gold-invoice .invoice-number-box { background: rgba(248, 234, 200, 0.3) !important; border-color: #c28f2b !important; color: #9a6d15 !important; }
  [data-theme="dark"] .gold-invoice .meta-line span,
  [data-theme="dark"] .gold-invoice .info-line span,
  [data-theme="dark"] .gold-invoice .muted,
  [data-theme="dark"] .gold-invoice .summary-note { color: #8a7e72 !important; }
  [data-theme="dark"] .gold-invoice .meta-line strong,
  [data-theme="dark"] .gold-invoice .info-line span:last-child,
  [data-theme="dark"] .gold-invoice .client-name,
  [data-theme="dark"] .gold-invoice .total-line strong,
  [data-theme="dark"] .gold-invoice .gold-table td { color: #1f1a16 !important; }
  [data-theme="dark"] .gold-invoice .client-address,
  [data-theme="dark"] .gold-invoice .guarantee-text,
  [data-theme="dark"] .gold-invoice .thanks-text,
  [data-theme="dark"] .gold-invoice .total-line,
  [data-theme="dark"] .gold-invoice .footer-item { color: #4a3f37 !important; }
  [data-theme="dark"] .gold-invoice .label-icon { background: linear-gradient(135deg, #c28f2b 0%, #a0701a 100%) !important; color: white !important; }
  [data-theme="dark"] .gold-invoice .gold-table { border-color: #e4d6c4 !important; }
  [data-theme="dark"] .gold-invoice .gold-table table { background: white !important; }
  [data-theme="dark"] .gold-invoice .gold-table th { background: #9a6d15 !important; color: white !important; }
  [data-theme="dark"] .gold-invoice .gold-table td { border-bottom-color: #e4d6c4 !important; }
  [data-theme="dark"] .gold-invoice .gold-table tbody tr:nth-child(even) { background: #faf6ef !important; }
  [data-theme="dark"] .gold-invoice .invoice-top,
  [data-theme="dark"] .gold-invoice .footer-line { border-color: #dcc49a !important; }
  [data-theme="dark"] .gold-invoice .summary-lines { background: #f6f1ea !important; }
  [data-theme="dark"] .gold-invoice .summary-lines .total-line { border-bottom-color: #e4d6c4 !important; }
  [data-theme="dark"] .gold-invoice .summary-total { background: linear-gradient(135deg, #c28f2b 0%, #a0701a 50%, #8a5e12 100%) !important; }
  [data-theme="dark"] .gold-invoice .summary-total span,
  [data-theme="dark"] .gold-invoice .summary-total strong { color: white !important; }
  [data-theme="dark"] .gold-invoice .summary-box { background: white !important; box-shadow: 0 0 0 1px #e4d6c4 inset !important; }
  [data-theme="dark"] .gold-invoice .summary-note { border-top-color: #e4d6c4 !important; }
  [data-theme="dark"] .gold-invoice .footer-line { color: #4a3f37 !important; }
  [data-theme="dark"] .gold-invoice .footer-line .fa-brands { color: #8a7e72 !important; }
  [data-theme="dark"] .gold-invoice .section-divider { background: linear-gradient(90deg, #dcc49a, transparent) !important; }
  [data-theme="dark"] .gold-invoice .summary-terbilang { background: rgba(255, 255, 255, 0.85) !important; border-top-color: #e4d6c4 !important; color: #4a3f37 !important; }
  [data-theme="dark"] .gold-invoice .summary-terbilang b { color: #9a6d15 !important; }
  [data-theme="dark"] .gold-invoice .summary-stamp.paid { color: #2a7a35 !important; }
  [data-theme="dark"] .gold-invoice .summary-stamp.unpaid { color: #c93b37 !important; }
}

