/* Print-only rules for the invoice workspace at /app/invoice-pdf-creator.
   Everything is inside @media print, so the screen layout is untouched. */

@media print {
  @page { size: A4; margin: 16mm 14mm 18mm; }

  html, body { background: #fff !important; }
  body { font-size: 11pt; }

  .mt-nav,
  .mt-footer,
  .mt-work-head,
  .mt-work-proof,
  .mt-work-actions,
  .mt-context-links,
  .bt-actions,
  .bt-error,
  .bt-note,
  .bt-unit,
  #about,
  .mt-workspace > a,
  .bt-panel { display: none !important; }

  .mt-workspace { max-width: none; margin: 0; padding: 0; }
  .bt-grid { display: block; margin: 0; gap: 0; }

  #invoice-sheet {
    display: block !important;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    background: #fff;
    color: #000;
  }
  #invoice-sheet h2 { display: none; }

  #invoice-sheet .bt-table { font-size: 10pt; margin-top: 10pt; }
  #invoice-sheet .bt-table th,
  #invoice-sheet .bt-table td {
    border-bottom: 1px solid #999;
    padding: 5pt 6pt;
    color: #000;
    font-family: inherit;
  }
  #invoice-sheet .bt-table th { color: #000; }

  #invoice-sheet .bt-out {
    border: 0;
    background: none;
    gap: 0;
    grid-template-columns: 1fr auto;
    max-width: 78mm;
    margin-left: auto;
  }
  #invoice-sheet .bt-out dt,
  #invoice-sheet .bt-out dd {
    background: none;
    padding: 3pt 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 10pt;
    color: #000;
  }
  #invoice-sheet .bt-out dd { justify-content: flex-end; text-align: right; }
  #invoice-sheet .bt-out dd > span { font-family: inherit; word-break: normal; }
  #invoice-sheet .bt-copy { display: none !important; }

  #invoice-sheet tr,
  #invoice-sheet .bt-out { break-inside: avoid; page-break-inside: avoid; }
}
