.sales-business-table > thead .suzhou-stock-control,
.sales-business-table > tbody .suzhou-stock-control {
  padding: 0 4px;
  text-align: center;
}

.sales-business-table[data-kind="sale"].suzhou-stock-table > thead th:nth-child(7) {
  text-align: center;
}

.sales-business-table[data-kind="sale"].suzhou-stock-table > thead th.suzhou-stock-amount {
  text-align: right;
}

.suzhou-stock-control input {
  width: 15px;
  height: 15px;
  accent-color: #315eab;
  cursor: pointer;
  vertical-align: middle;
}

.sales-business-table-wrap:has(> .suzhou-stock-table) { container-type: inline-size; }

.suzhou-stock-detail {
  box-sizing: border-box;
  max-width: calc(100cqi - 30px);
}

.suzhou-stock-message { margin: 0; color: #334e70; font-size: 13px; font-weight: 600; }
.suzhou-stock-message[data-status="qualified"] { color: #216447; }
.suzhou-stock-message[data-status="shortage"] { color: #a12124; }

.suzhou-stock-scroller { margin-top: 8px; }
.suzhou-stock-details { width: 100%; border-collapse: collapse; }
.sales-business-table .suzhou-stock-details :is(th, td) {
  height: auto;
  padding: 7px 9px;
  vertical-align: top;
  white-space: nowrap;
}
.sales-business-table .suzhou-stock-details th { position: static; background: #edf2f8; text-align: left; }
.sales-business-table .suzhou-stock-details :is(th, td):nth-child(n+5):not(.suzhou-stock-remark) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sales-business-table .suzhou-stock-details .suzhou-stock-remark {
  text-align: left;
  min-width: 180px;
  max-width: 280px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sales-business-table .suzhou-stock-details .is-short { color: #a12124; font-weight: 700; }
.suzhou-stock-line-note { display: block; color: #815115; }

@media (max-width: 768px) {
  body table.suzhou-stock-table.mobile-query-records > thead > tr > th.suzhou-stock-control:first-child {
    display: block !important;
    position: relative !important;
    width: auto !important;
    min-height: 32px;
    border: 0;
  }
  body table.suzhou-stock-table.mobile-query-records > tbody > .suzhou-stock-detail-row > td {
    height: auto;
    max-width: 100%;
    padding: 4px !important;
  }
  .suzhou-stock-detail { max-width: 100%; text-align: left; }
}

html body dialog.suzhou-batch-post{width:min(700px,calc(100vw - 32px))}
.suzhou-batch-post table{min-width:440px}
.suzhou-batch-post tbody tr>td:nth-child(2){white-space:nowrap}

:is(.suzhou-stock-table,.suzhou-batch-post) tr.suzhou-sale-summary-pending {
  --business-soft: #fff3cc;
  background-color: var(--business-soft);
}
:is(.suzhou-stock-table,.suzhou-batch-post) tr.suzhou-sale-summary-pending > :is(th,td) {
  background-color: var(--business-soft);
}
.suzhou-sale-summary-preview { white-space: pre-wrap; overflow-wrap: anywhere; }
.suzhou-sale-summary-caption { display: block; color: #704c14; font-size: 12px; }
.suzhou-sale-summary-preview ins { background: #dff3e6; color: #165b36; font-weight: 700; text-decoration: none; }
.suzhou-sale-summary-preview del { background: #fde1e1; color: #8b292b; }
@media (max-width: 768px) {
  body table.suzhou-stock-table.mobile-query-records > tbody > tr.suzhou-sale-summary-pending {
    background-color: var(--business-soft) !important;
  }
}
