/* Audit batch 2: scoped screen presentation, no report calculations. */
@media screen {
  html body #accountingPage #paymentAccountsTableHead {
    display: none !important;
  }
  html body .commissions-page .commission-table-wrap input[type=checkbox] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    padding: 0 !important;
    margin: 0 !important;
    vertical-align: middle !important;
  }
  html body .commissions-page .commission-filters {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
    gap: 12px !important;
    align-items: end !important;
  }
  html body .commissions-page .commission-filters label {
    min-width: 0 !important;
  }
  html body .commissions-page .commission-filters :is(input, select) {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  html body .ac-report-dialog:has(select[name=kind] option[value$="-aging"]:checked) .ac-report-summary {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  html body .ac-report-dialog:has(select[name=kind] option[value$="-aging"]:checked) .ac-report-summary article {
    min-width: 0 !important;
  }
  html body .ac-report-dialog:has(select[name=kind] option[value$="-aging"]:checked) .ac-report-status {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.7 !important;
  }
  html body .ac-report-dialog:has(select[name=kind] option[value$="-aging"]:checked) .ac-report-table {
    overflow: auto !important;
    max-width: 100% !important;
  }
  html body .ac-report-dialog:has(select[name=kind] option[value$="-aging"]:checked) .ac-report-table table {
    table-layout: auto !important;
    min-width: 1600px !important;
    width: 100% !important;
  }
  html body .ac-report-dialog:has(select[name=kind] option[value$="-aging"]:checked) .ac-report-table :is(th,td) {
    min-width: 105px !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    padding: 10px 12px !important;
  }
  html body .ac-report-dialog:has(select[name=kind] option[value$="-aging"]:checked) .ac-report-table :is(th,td):first-child {
    min-width: 230px !important;
    max-width: 360px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}
@media screen and (max-width: 1000px) {
  html body .ac-report-dialog:has(select[name=kind] option[value$="-aging"]:checked) .ac-report-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media screen and (max-width: 600px) {
  html body .ac-report-dialog:has(select[name=kind] option[value$="-aging"]:checked) .ac-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  html body .commissions-page .commission-filters {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
