/* Desktop layout corrections, shared by the existing page components. */
@media (min-width: 1025px) {
  .workspace .inventory-table th[data-column="sales"],
  .workspace .inventory-table th[data-column="more"],
  .workspace .product-info-table th[data-column="more"] {
    text-align: center;
  }
  .workspace .top-sku-table th:nth-child(2) { text-align: left; }

  .workspace .po-table th:nth-child(n+8),
  .workspace .po-table td:nth-child(n+8),
  .workspace .po-item-table th:nth-child(n+3),
  .workspace .po-item-table td:nth-child(n+3) {
    text-align: center;
  }

  .workspace .view .sales-record-filters {
    /* The former fixed grid is important in the base stylesheet. */
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
  }
  .workspace .sales-record-filters > label { min-width: 0; }
  .workspace .sales-record-filters > label:has(input[type="date"]) {
    flex: 0 0 138px;
    width: 138px;
  }
  .workspace .sales-record-filters input[type="date"] {
    width: 100%;
    min-width: 0;
  }
  .workspace .sales-record-filters > label:has(#sales-record-status) { flex: 0 0 118px; }
  .workspace .sales-record-filters > label:has(#sales-record-page-size) { flex: 0 0 105px; }
  .workspace .sales-record-filters > .search-field { flex: 1 1 260px; }
  .workspace.compact :is(.sales-record-filters, .sales-filters) .date-presets {
    flex: 0 0 auto;
    padding: 0;
    min-height: 36px;
    height: 36px;
  }
  .workspace.compact :is(.sales-record-filters, .sales-filters) .date-presets button {
    height: 36px;
    min-height: 36px;
  }

  .workspace.compact #finance-report-view #finance-reset,
  .workspace.compact #returns-view .returns-filter-actions > button {
    height: 36px;
    min-height: 36px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .workspace #customer-accounts-view > .filterbar,
  .workspace #customer-audit-view > .filterbar { margin-bottom: 16px; }
  .workspace #customer-accounts-view .customer-table :is(th, td):last-child { text-align: center; }
  .workspace #customer-audit-view .customer-table :is(th, td):first-child { width: 220px; }
  .workspace #customer-audit-view .customer-table td:first-child { white-space: nowrap; }
  .workspace #po-sync-note { margin: 12px 0; }
  .workspace #cargo-losses-view .loss-filters :is(input, select, button) {
    height: 40px;
    min-height: 40px;
  }
  .workspace #overseas-history-content { padding: 16px 20px 20px; }
  .workspace .po-table td[colspan],
  .workspace .loss-table td[colspan] {
    text-align: center;
    padding-top: 28px;
    padding-bottom: 28px;
    color: var(--muted, #66768f);
  }
}
