/* PC 管理后台统一 Typography / Table Density。仅覆盖桌面管理模块。 */
@media (min-width: 761px) {
  body:is(.product-model-page-active,.supplier-reconciliation-page-active,.driver-reconciliation-page-active,.logistics-reconciliation-page-active,.designer-reconciliation-page-active,.processor-reconciliation-page-active,.order-fulfillment-page-active,.customer-supplier-page-active,.user-management-active,.expense-page-active,.business-report-active,.sale-approval-active) #title,
  body:has(#view.sales-management-page) #title {
    font-size: var(--pc-font-page-title) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
  }

  body:is(.sales-management-page-active,.product-model-page-active,.supplier-reconciliation-page-active,.driver-reconciliation-page-active,.logistics-reconciliation-page-active,.designer-reconciliation-page-active,.processor-reconciliation-page-active,.order-fulfillment-page-active) #title::after {
    font-size: var(--pc-font-page-description) !important;
    font-weight: 400 !important;
  }

  :is(.sales-management-v2,.product-model-management,.supplier-reconciliation-management,.order-fulfillment-management,.customer-supplier-management,.user-management,.expense-management,.business-report,.sale-approval-management) :is(input,select,textarea) {
    font-size: var(--pc-font-control) !important;
  }
  :is(.sales-management-v2,.product-model-management,.supplier-reconciliation-management,.order-fulfillment-management,.customer-supplier-management,.user-management,.expense-management,.business-report,.sale-approval-management) :is(input,textarea)::placeholder {
    font-size: var(--pc-font-page-description);
  }
  :is(.sales-management-v2,.product-model-management,.supplier-reconciliation-management,.order-fulfillment-management,.customer-supplier-management,.user-management,.expense-management,.business-report,.sale-approval-management) :is(input,select):not([type="checkbox"]):not([type="radio"]) {
    min-height: 36px;
  }
  :is(.sales-management-v2,.product-model-management,.supplier-reconciliation-management,.order-fulfillment-management,.customer-supplier-management,.user-management,.expense-management,.business-report,.sale-approval-management) button {
    font-size: var(--pc-font-button);
    font-weight: 600;
  }

  :is(.sales-list-head,.pmm-table-card,.srm-table-card,.ofm-table-card,.csm-table-card,.um-table-panel,.expense-detail-card,.br-panel,.sam-list-panel) h3 {
    font-size: var(--pc-font-section-title) !important;
    font-weight: 700 !important;
    line-height: 1.35;
  }

  :is(.sales-management-table,.pmm-table-scroll table,.srm-table-scroll table,.arm-table,.ofm-table-wrap table,.csm-table-wrap table,.um-table-wrap table,.expense-table-wrap table,.br-table-wrap table,.sam-table-wrap table) th {
    height: var(--pc-table-head-height) !important;
    font-size: var(--pc-font-table-head) !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
  }
  :is(.sales-management-table,.pmm-table-scroll table,.srm-table-scroll table,.arm-table,.ofm-table-wrap table,.csm-table-wrap table,.um-table-wrap table,.expense-table-wrap table,.br-table-wrap table,.sam-table-wrap table) td {
    min-height: var(--pc-table-row-height);
    font-size: var(--pc-font-table) !important;
    line-height: 1.45 !important;
  }
  :is(.sales-management-table,.pmm-table-scroll table,.srm-table-scroll table,.arm-table,.ofm-table-wrap table) td {
    height: var(--pc-table-multiline-row-height) !important;
  }

  :is(.sales-management-table,.pmm-table-scroll,.srm-table-scroll,.arm-table,.ofm-table-wrap,.csm-table-wrap,.um-table-wrap,.expense-table-wrap,.br-table-wrap,.sam-table-wrap) :is(small,.secondary,.helper,.muted) {
    font-size: var(--pc-font-secondary) !important;
    line-height: 1.4 !important;
  }
  :is(.sales-kind-badge,.sales-status-badge,.pmm-badge,.srm-badge,.ofm-badge,.csm-badge,.um-badge,.em-badge,.sam-type,.sam-status,.badge) {
    min-height: var(--pc-badge-height) !important;
    align-items: center;
    font-size: var(--pc-font-badge) !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
  }
  :is(.sales-row-actions,.pmm-actions,.arm-table-actions,.ofm-actions,.csm-actions,.um-actions,.em-actions,.sam-table-wrap) button,
  :is(.sales-row-actions,.pmm-actions,.arm-table-actions,.ofm-actions,.csm-actions,.um-actions,.em-actions,.sam-table-wrap) a {
    min-height: 32px;
    font-size: 13px !important;
    font-weight: 600 !important;
  }

  :is(.sales-stat-copy,.pmm-stat,.srm-stat,.ofm-stat,.expense-metric,.br-stat,.sam-stat,.um-stat) small {
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4;
  }
  :is(.sales-stat-copy,.pmm-stat,.srm-stat,.ofm-stat,.expense-metric,.br-stat,.sam-stat,.um-stat) strong {
    font-size: clamp(20px, 1.25vw, 22px) !important;
    font-weight: 700 !important;
  }
  :is(.sales-stat-copy,.pmm-stat,.srm-stat,.ofm-stat,.expense-metric,.br-stat,.sam-stat,.um-stat) em {
    font-size: var(--pc-font-secondary) !important;
    line-height: 1.4;
  }

  :is(.sales-summary-drawer,.ofm-drawer,.srm-overview,.pmm-editor,.csm-drawer,.expense-drawer) h2,
  :is(.sales-summary-drawer,.ofm-drawer,.srm-overview,.pmm-editor,.csm-drawer,.expense-drawer) h3:first-child {
    font-size: var(--pc-font-drawer-title) !important;
    font-weight: 700 !important;
  }
  :is(.sales-summary-drawer,.ofm-drawer,.srm-overview,.pmm-editor,.csm-drawer,.expense-drawer) h4,
  :is(.sales-summary-drawer,.ofm-drawer,.srm-overview,.pmm-editor,.csm-drawer,.expense-drawer) section > h3 {
    font-size: var(--pc-font-body) !important;
    font-weight: 600 !important;
  }
  :is(.sales-drawer-field,.ofm-drawer-field,.srm-overview dl) :is(span,dt) {
    font-size: 13px !important;
    line-height: 1.4;
  }
  :is(.sales-drawer-field,.ofm-drawer-field,.srm-overview dl) :is(b,dd) {
    font-size: var(--pc-font-body) !important;
    line-height: 1.45;
  }
  .sales-drawer-money-grid .sales-drawer-field b,
  .ofm-drawer-qty b,
  .srm-overview dd:is(.balance,.paid) {
    font-size: var(--pc-font-important-amount) !important;
    font-weight: 700 !important;
  }

  .sales-management-table :is(.sales-money,.sales-payment,.sales-profit),
  .pmm-table-scroll :is(.pmm-price,.pmm-cost),
  .srm-table-scroll :is(.srm-sales,.srm-paid),
  .ofm-table-wrap :is(.ofm-qty b,.ofm-pending-qty),
  .br-table-wrap .amount {
    font-size: var(--pc-font-table) !important;
    font-weight: 600 !important;
  }
  .srm-table-scroll .srm-balance {
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  @media (max-width: 1400px) {
    .sales-management-table { min-width: 1240px; }
    .pmm-table-scroll table { min-width: 1380px; }
    .srm-table-scroll table,.arm-table { min-width: 980px !important; }
    .ofm-table-wrap table { min-width: 1420px; }
  }
}
