/* Desktop catalog: reading order and useful rows, not the procurement grid. */
@media (min-width: 851px) {
  #main.catalog-page > .page-heading,
  .catalog-page #purchase-view,
  .catalog-page > footer { max-width: var(--ui-list-width); margin-inline: auto; }
  .catalog-page #purchase-view > .work-surface {
    display: grid;
    grid-template-columns: minmax(180px, 360px) minmax(0, 1fr);
  }
  .catalog-page #purchase-view .table-heading {
    padding: 8px 14px;
    min-height: 56px;
    border-bottom: 0;
    gap: 12px;
  }
  /* The page heading already says 全部商品; retain the scope note and count. */
  .catalog-page #purchase-view .table-heading h2 { display: none; }
  .catalog-page #purchase-view #view-note {
    max-width: 230px; margin: 0; font-size: 12px; line-height: 1.5;
  }
  .catalog-page #purchase-view .toolbar {
    padding: 8px 14px 8px 0;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  .catalog-page #purchase-view .search {
    flex: 1; min-width: 160px; max-width: 340px;
  }
  .catalog-page #purchase-view .select-label { flex: none; }
  .catalog-page #purchase-view .select-label select { max-width: 170px; }
  .catalog-page #purchase-view :is(.table-scroll, .table-footer, .empty) { grid-column: 1 / -1; }
  .catalog-page #purchase-view .table-scroll {
    max-height: max(260px, calc(100vh - 255px));
    min-height: 260px;
  }
  .catalog-page .catalog-table { min-width: 950px; }
  .catalog-page .catalog-table th:nth-child(1) { width: 29%; }
  .catalog-page .catalog-table th:nth-child(2) { width: 17%; }
  .catalog-page .catalog-table th:nth-child(3) { width: 10%; }
  .catalog-page .catalog-table th:nth-child(4) { width: 13%; }
  .catalog-page .catalog-table th:nth-child(5) { width: 12%; }
  .catalog-page .catalog-table th:nth-child(6) { width: 19%; }
  .catalog-page .catalog-table th { padding: 6px 12px; font-size: 13px; line-height: 1.35; }
  .catalog-page .catalog-table th small { line-height: 1.35; }
  .catalog-page .catalog-table td { padding: 7px 12px; height: 64px; }
  .catalog-page .catalog-table td:last-child { padding-left: 12px; }
  .catalog-page .inbound-product { gap: 10px; }
  .catalog-page .product-thumb,
  .catalog-page .inbound-thumb { width: 48px; height: 48px; flex: 0 0 48px; }
  .catalog-page .product-name { font-size: 16px; line-height: 1.4; }
  .catalog-page .sku { font-size: 13px; line-height: 1.4; }
  .catalog-page .stock-cell { color: var(--ui-text); font-size: 18px; font-weight: 600; }
  .catalog-page .catalog-price strong { font-size: 17px; font-weight: 600; }
  /* Two readable lines: manifest + total, then nearest arrival. Full receipts
     remain available in the existing disclosure; do not collapse quantities. */
  .catalog-page .receipt-stack > summary {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 8px; padding: 0; line-height: 1.4;
  }
  .catalog-page .receipt-total,
  .catalog-page .receipt-overview { display: contents; }
  .catalog-page .receipt-total > span { display: none; }
  .catalog-page .receipt-total strong {
    grid-column: 2; grid-row: 1; font-size: 16px; line-height: 1.4;
  }
  .catalog-page .receipt-overview > span:first-child {
    grid-column: 1; grid-row: 1; align-self: center; font-size: 12px;
  }
  .catalog-page .receipt-overview > span:last-child {
    grid-column: 1 / -1; grid-row: 2; font-size: 12px;
  }
}
