@media print {
  @page paya-phase3-orders {
    size: A4 landscape;
    margin: 0;
  }

  html:has(body > .app-print-portal [data-print-scope="phase3-report-orders"]) {
    page: paya-phase3-orders;
  }

  .app-print-portal:has([data-print-scope="phase3-report-orders"]),
  .app-print-sheet:has([data-print-scope="phase3-report-orders"]) {
    width: 297mm !important;
  }

  .app-print-sheet:has([data-print-scope^="phase3-report-"]) {
    width: 210mm;
    min-height: 0;
    padding: 14mm;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  .app-print-sheet [data-print-scope^="phase3-report-"] .management-report-stats {
    display: none !important;
  }

  .app-print-sheet [data-print-scope^="phase3-report-"] .tbl {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .app-print-sheet [data-print-scope^="phase3-report-"] :is(th, td) {
    padding: 4px 5px !important;
    height: auto !important;
    line-height: 1.5;
    font-size: 9pt !important;
    white-space: normal;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .app-print-sheet [data-print-scope^="phase3-report-"] thead {
    display: table-header-group !important;
  }

  .app-print-sheet [data-print-scope^="phase3-report-"] tfoot {
    display: table-row-group !important;
  }

  .app-print-sheet [data-print-scope^="phase3-report-"] tr {
    break-inside: avoid;
  }

  .app-print-sheet [data-print-scope^="phase3-report-"] :is(tbody, tfoot) td:is(.num, [data-column="orderNumber"], [data-column="partyCode"]) {
    font-size: 8pt !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
  }

  .app-print-sheet [data-print-scope="phase3-report-orders"] th[data-column="orderNumber"] { width: 11% !important; }
  .app-print-sheet [data-print-scope="phase3-report-orders"] th[data-column="partyCode"] { width: 7% !important; }
  .app-print-sheet [data-print-scope="phase3-report-orders"] th[data-column="partyName"] { width: 14% !important; }
  .app-print-sheet [data-print-scope="phase3-report-orders"] th[data-column="state"] { width: 9% !important; }
  .app-print-sheet [data-print-scope="phase3-report-orders"] th[data-column="totalValue"] { width: 17% !important; }
  .app-print-sheet [data-print-scope="phase3-report-orders"] th[data-column="committedKg"] { width: 14% !important; }
  .app-print-sheet [data-print-scope="phase3-report-orders"] th[data-column="producedKg"] { width: 14% !important; }
  .app-print-sheet [data-print-scope="phase3-report-orders"] th[data-column="deliveredKg"] { width: 14% !important; }

  .app-print-sheet [data-print-scope="phase3-report-a4"] th[data-column="orderNumber"] { width: 14% !important; }
  .app-print-sheet [data-print-scope="phase3-report-a4"] th[data-column="partyName"] { width: 28% !important; }
  .app-print-sheet [data-print-scope="phase3-report-a4"] th[data-column="state"] { width: 16% !important; }
  .app-print-sheet [data-print-scope="phase3-report-a4"] th[data-column="latestPreInvoiceVersion"] { width: 17% !important; }
  .app-print-sheet [data-print-scope="phase3-report-a4"] th[data-column="totalValue"] { width: 25% !important; }
}
