/* These spans already mark amounts in the bank list and detail dialog. */
:is(.professional-reconciler, [data-recon-bank-detail]) [data-recon-wide-amount="true"],
.app-print-sheet [data-print-scope="recon-bank-lines"] [data-recon-amount] {
  max-inline-size: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

@media print {
  .app-print-sheet:has([data-print-scope="recon-bank-lines"]) {
    width: 210mm;
    min-height: 0;
    padding: 14mm;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  .app-print-sheet [data-print-scope="recon-bank-lines"] .tbl {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    font-size: 11px;
  }

  .app-print-sheet [data-print-scope="recon-bank-lines"] .tbl :is(th,td) {
    padding: 4px !important;
    height: auto !important;
    line-height: 1.5;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .app-print-sheet [data-print-scope="recon-bank-lines"] .tbl thead {
    display: table-header-group !important;
  }

  .app-print-sheet [data-print-scope="recon-bank-lines"] .tbl tr {
    break-inside: avoid !important;
  }

  .app-print-sheet [data-print-scope="recon-bank-lines"] .tbl__mobile-label,
  .app-print-sheet [data-print-scope="recon-bank-lines"] :is(th,td)[data-column="details"] {
    display: none !important;
  }

  .app-print-sheet [data-print-scope="recon-bank-lines"] td[data-column="amount"] {
    white-space: normal !important;
    font-variant-numeric: tabular-nums;
  }

  .app-print-sheet [data-print-scope="recon-bank-lines"] td[data-column="matchStatus"] > :not(.tbl__mobile-label) {
    padding-inline: 4px !important;
    white-space: nowrap !important;
  }

  .app-print-sheet [data-print-scope="recon-bank-lines"] th[data-column="valueDate"] { width: 14% !important; }
  .app-print-sheet [data-print-scope="recon-bank-lines"] th[data-column="amount"] { width: 23% !important; }
  .app-print-sheet [data-print-scope="recon-bank-lines"] th[data-column="ref"] { width: 15% !important; }
  .app-print-sheet [data-print-scope="recon-bank-lines"] th[data-column="description"] { width: 24% !important; }
  .app-print-sheet [data-print-scope="recon-bank-lines"] th[data-column="matchStatus"] { width: 10% !important; }
  .app-print-sheet [data-print-scope="recon-bank-lines"] th[data-column="matchedTreasuryRef"] { width: 14% !important; }
}
