.mobile-purchase-tools, .mobile-purchase-items { display: none; }
@media (max-width: 700px) {
  .mobile-sales-overview { background: linear-gradient(135deg, #12314d, #155953); color: #fff; }
  .mobile-sales-overview .mobile-card-title span { color: #d2e8e5; }
  .mobile-period-controls { display: grid; gap: 12px; }
  .mobile-period-controls label { display: flex; gap: 12px; align-items: center; font-size: 13px; color: #d2e8e5; }
  .mobile-period-controls input { flex: 1; min-width: 0; width: auto; background: #fff; color: #12314d; }
  .mobile-period-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: rgba(0,0,0,.18); border-radius: 12px; }
  .mobile-period-tabs button { color: #e4f2ef; background: transparent; border: 0; border-radius: 8px; }
  .mobile-period-tabs button[aria-pressed="true"] { color: #12314d; background: #fff; font-weight: 800; }
  #mobileSalesOverview { display: grid; gap: 6px; margin-top: 18px; font-size: 13px; }
  .mobile-sales-range { color: #d2e8e5; }
  .mobile-sales-amount { font-size: clamp(24px, 8vw, 36px); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
  .mobile-stat-note { margin: 15px 0 0; font-size: 11px; line-height: 1.6; color: #d2e8e5; }
  .mobile-kpi-grid { grid-template-columns: 1fr; gap: 0; }
  .mobile-kpi-grid article { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 12px 0; border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid #edf1f4; }
  .mobile-kpi-grid article:last-child { border-bottom: 0; }
  .mobile-kpi-grid strong { margin: 0; overflow: visible; overflow-wrap: anywhere; font-size: 21px; text-align: right; }
  .mobile-kpi-grid span { flex-shrink: 0; font-size: 13px; }
  #mobileDebtAlert[hidden] { display: none; }
  #orders .order-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #orders .order-create-panel, #orders .order-list-panel { min-width: 0; padding: 14px; border-radius: 14px; }
  #orders .order-fields, #orders .order-edit-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #orders .panel-title { flex-wrap: wrap; gap: 4px; }
  #orders .panel-title span { font-size: 12px; }
  #orders .order-product-picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  #orderProductSearch { grid-column: 1 / -1; }
  #orders .draft-order-table { display: none; }
  .mobile-purchase-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
  .mobile-purchase-tools p { grid-column: 1 / -1; margin: 0; color: #526979; font-size: 12px; line-height: 1.6; }
  .mobile-purchase-items { display: grid; gap: 10px; }
  .mobile-purchase-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid #dce6e9; border-radius: 12px; background: #f8fbfc; }
  .mobile-purchase-image img { width: 64px; height: 64px; object-fit: contain; }
  .mobile-purchase-description { min-width: 0; overflow-wrap: anywhere; }
  .mobile-purchase-description p { margin: 4px 0; font-size: 14px; }
  .mobile-purchase-description small, .mobile-purchase-subtotal small { color: #627583; font-size: 11px; }
  .mobile-purchase-item > label { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px; }
  .mobile-purchase-subtotal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; }
  .mobile-purchase-item > button { grid-column: 2; justify-self: end; }
  .mobile-purchase-empty { padding: 24px 12px; text-align: center; color: #627583; background: #f4f8fa; border-radius: 12px; font-size: 14px; }
  #orderForm > .actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  #orderForm > .actions button { width: 100%; min-height: 48px; }
  #orders .order-list-table { overflow: visible; }
  #orders .order-list-table table, #orders .order-list-table tbody { display: block; min-width: 0; width: 100%; }
  #orders .order-list-table thead { display: none; }
  #orderRows tr { display: grid; grid-template-columns: 1fr 1fr; margin: 10px 0; border: 1px solid #e2e8ee; border-radius: 10px; padding: 8px; }
  #orderRows td { min-width: 0; padding: 6px; border: 0; white-space: normal; overflow-wrap: anywhere; }
  #orderRows td:first-child, #orderRows td:last-child, #orderRows .order-supplier-group td { grid-column: 1 / -1; }
  #orderRows tr:not(.order-supplier-group) td:nth-child(6)::before { content: "金额 RMB "; color: #627583; font-size: 11px; }
  #orderRows .row-actions { flex-wrap: wrap; gap: 6px; }
  #orders .order-detail-picker { display: grid; grid-template-columns: 1fr 1fr; }
  #orderDetailProductSearch { grid-column: 1 / -1; }
}
