@page {
  size:A4;
  margin:16mm;
}

@media print {
  :root,[data-theme=dark] {
    color-scheme:light;
    --background:#fff;
    --surface:#fff;
    --text:#111827;
    --muted:#596172;
    --accent:#554abb;
    --border:#dde0e7;
  }
  body {
    background:white!important;
    color:#111827!important;
    font-size:11pt;
  }
  body>* {
    display:none!important;
  }
  body.printing-invoice>#print-root {
    display:block!important;
  }
  .invoice-document {
    padding:0!important;
    color:#111827;
  }
  .invoice-document-head {
    padding-bottom:20px;
  }
  .invoice-document h2 {
    font-size:24pt;
  }
  .invoice-parties {
    display:grid!important;
    grid-template-columns:1fr 1fr 1fr!important;
  }
  .invoice-parties>section:last-child {
    grid-column:auto!important;
  }
  .invoice-parties p {
    font-size:9pt;
  }
  .invoice-parties .eyebrow {
    font-size:8pt;
  }
  .table-wrap {
    overflow:visible!important;
    width:100%!important;
    margin:0!important;
  }
  table {
    font-size:10pt!important;
    table-layout:fixed;
    white-space:normal!important;
  }
  th,td {
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere;
    padding:12px 8px!important;
  }
  th:first-child {
    width:52%;
  }
  thead {
    display:table-header-group;
  }
  tr,.invoice-totals,.invoice-notes {
    break-inside:avoid;
  }
  .invoice-brand span {
    display:inline!important;
    margin-left:10px!important;
  }
  .invoice-totals {
    margin-left:auto;
    max-width:280px;
  }
  .grand-total strong {
    color:#111827;
  }
  a {
    color:inherit;
    text-decoration:none;
  }
  .badge {
    background:#eee!important;
    color:#333!important;
  }
}

