/* 货款记录页面样式 */

/* ===== 概览看板 ===== */
.stats-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #3b82f6;
  position: relative;
  overflow: hidden;
}
.stat-card.pending { border-left-color: #f59e0b; }
.stat-card.pending .stat-icon { background: #fef3c7; color: #d97706; }
.stat-card.paid { border-left-color: #10b981; }
.stat-card.paid .stat-icon { background: #d1fae5; color: #059669; }
.stat-card .stat-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.stat-card .stat-label {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 6px;
}
.stat-card .stat-value {
  font-size: 26px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}
.stat-card .stat-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* ===== 数据区域工具栏 ===== */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.toolbar-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}
.add-order-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  transition: all 0.2s;
}
.add-order-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }

/* ===== 已登记货款记录表格 ===== */
.payment-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.payment-table th, .payment-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.payment-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}
.payment-table tbody tr:hover { background: #f8fafc; }
.payment-table .amount { font-weight: 600; color: #0f172a; }
.pay-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.pay-badge.pending { background: #fef3c7; color: #d97706; }
.pay-badge.paid { background: #d1fae5; color: #059669; }

/* ===== 新增记录弹窗 ===== */
.pick-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
}
.pick-modal.show { display: flex; }
.pick-modal .modal-box {
  background: #fff;
  border-radius: 12px;
  width: 92%;
  max-width: 1100px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.pick-modal .modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid #e2e8f0;
}
.pick-modal .modal-head h3 { margin: 0; font-size: 16px; color: #1e293b; }
.pick-modal .modal-head .close-x {
  background: none;
  border: none;
  font-size: 22px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}
.pick-modal .modal-head .close-x:hover { color: #ef4444; }
.pick-modal .modal-body { padding: 18px 22px; overflow-y: auto; flex: 1; }

/* 弹窗筛选区 */
.pick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.pick-filters .filter-item { display: flex; flex-direction: column; gap: 4px; }
.pick-filters label { font-size: 12px; color: #64748b; font-weight: 500; }
.pick-filters input[type="text"],
.pick-filters input[type="date"],
.pick-filters select {
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  min-width: 130px;
}
.pick-filters input:focus, .pick-filters select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.pick-filters .query-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  cursor: pointer;
}
.pick-filters .reset-btn {
  background: #fff;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  cursor: pointer;
}

/* 订单卡片表格（复用 dingdanzonglan 样式 + 选择列） */
.pick-orders { min-height: 200px; }
.pick-orders .order-card { margin-bottom: 12px; }
.select-col-check {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
  cursor: pointer;
}

/* 弹窗底部汇总 */
.pick-modal .modal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0 0 12px 12px;
}
.pick-summary { font-size: 13px; color: #334155; }
.pick-summary strong { color: #2563eb; font-size: 15px; }
.confirm-add-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.confirm-add-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 弹窗内分页 */
.pick-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: #64748b;
}
.pick-pagination button {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
}
.pick-pagination button:hover { border-color: #3b82f6; color: #3b82f6; }
.pick-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* 空态 */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
}
.empty-state i { font-size: 40px; margin-bottom: 10px; opacity: 0.4; }

/* 加载遮罩 */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(255, 255, 255, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
}
.page-loader.show { display: flex; }
.page-loader .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 消息提示 */
.msg-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: none;
}
.msg-toast.success { background: #10b981; }
.msg-toast.error { background: #ef4444; }
.msg-toast.warning { background: #f59e0b; }

@media (max-width: 768px) {
  .stats-board { grid-template-columns: repeat(2, 1fr); }
  .pick-filters .filter-item { flex: 1; min-width: 45%; }
}

/* ===== 详情录入滑块面板 ===== */
.detail-panel {
  position: fixed;
  top: 0; right: 0;
  width: 78%;
  max-width: 1000px;
  height: 100vh;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10001;
  display: flex;
  flex-direction: column;
}
.detail-panel.show { transform: translateX(0); }
.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
}
.detail-head h3 { margin: 0; font-size: 16px; color: #1e293b; }
.detail-head .close-x {
  background: none; border: none; font-size: 22px; color: #94a3b8;
  cursor: pointer; line-height: 1;
}
.detail-head .close-x:hover { color: #ef4444; }
.detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
  background: #f8fafc;
}
.detail-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.detail-foot .detail-summary { font-size: 14px; color: #334155; }
.detail-foot .detail-summary strong { color: #2563eb; font-size: 16px; margin-left: 4px; }
.cancel-btn {
  background: #fff; color: #64748b;
  border: 1px solid #cbd5e1; border-radius: 8px;
  padding: 10px 22px; font-size: 14px; cursor: pointer;
}
.submit-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; border: none; border-radius: 8px;
  padding: 10px 26px; font-size: 14px; font-weight: 500;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 详情面板背景遮罩 */
.detail-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(15, 23, 42, 0.4);
  display: none;
}
.detail-overlay.show { display: block; }

/* ===== 录入卡（每个订单一张） ===== */
.entry-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #3b82f6;
}
.entry-card .entry-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e2e8f0;
}
.entry-card .entry-head h4 {
  margin: 0;
  font-size: 14px;
  color: #1e293b;
  font-weight: 600;
}
.entry-card .entry-head .order-no { color: #3b82f6; font-family: monospace; }
.entry-card .entry-head .order-meta { font-size: 12px; color: #94a3b8; }

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
  margin-bottom: 14px;
}
.entry-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.entry-field.full { grid-column: 1 / -1; }
.entry-field label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.entry-field label .req { color: #ef4444; margin-left: 2px; }
.entry-field input[type="text"],
.entry-field input[type="number"] {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  transition: border-color 0.15s;
}
.entry-field input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.entry-field .auto-input {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  cursor: not-allowed;
}

/* 供货图片上传（正方形小区域） */
.pay-img-upload {
  width: 84px;
  height: 84px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.pay-img-upload:hover, .pay-img-upload.drag-over {
  border-color: #3b82f6;
  background: #eff6ff;
}
.pay-img-upload .upload-hint {
  color: #94a3b8;
  font-size: 10px;
  text-align: center;
  line-height: 1.3;
}
.pay-img-upload .upload-hint i { display: block; font-size: 18px; margin-bottom: 3px; }
.pay-img-upload img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.pay-img-upload .img-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 4px;
}
.pay-img-upload .img-actions button {
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 10px;
  cursor: pointer;
}
.pay-img-upload .img-actions button:hover { background: #ef4444; }
.pay-img-file { display: none; }

/* 订单供货图片 + 运费/应付 行 */
.order-pay-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #eef2f7;
}
.order-pay-row .op-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  margin-right: 2px;
}
.order-pay-row .op-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.order-pay-row .op-field input[type="number"] {
  width: 120px;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
}
.order-pay-row .op-field input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* 产品预览表格 */
.product-preview {
  margin-top: 8px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}
.product-preview .ph-title {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 8px;
}
.product-preview table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.product-preview th, .product-preview td {
  padding: 7px 8px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}
.product-preview th { background: #f8fafc; color: #64748b; font-weight: 500; }
.product-preview .pp-img {
  width: 32px; height: 32px; border-radius: 3px; border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .entry-grid { grid-template-columns: 1fr; }
  .detail-panel { width: 100%; }
}

/* ===== 单组件布局：公共录入 + 多订单分组 ===== */
.common-section {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #6366f1;
}
.common-section .sec-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e2e8f0;
}
.common-section .sec-title i { color: #6366f1; margin-right: 6px; }

/* 开户名称自动补全容器 */
.bank-suggest-wrap { position: relative; }
.bank-suggest-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.bank-suggest-list.show { display: block; }
.bank-suggest-item {
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}
.bank-suggest-item:hover { background: #eff6ff; }
.bank-suggest-item:last-child { border-bottom: none; }
.bank-suggest-item .b-name { font-weight: 600; color: #1e293b; }
.bank-suggest-item .b-meta { font-size: 11px; color: #94a3b8; margin-top: 2px; }

/* 订单分组（每个订单一组） */
.order-section {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

/* ===== 操作列按钮（上下排列） ===== */
.action-btn-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: fit-content;
}
.action-btn-group button {
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s;
  width: 100%;
  min-width: 72px;
}
.btn-detail {
  background: #eff6ff;
  color: #3b82f6;
}
.btn-detail:hover { background: #dbeafe; }
.btn-pay {
  background: #ecfdf5;
  color: #059669;
}
.btn-pay:hover { background: #d1fae5; }
.btn-paid {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

/* ===== 详情/支付弹窗（从右滑入） ===== */
.batch-panel {
  position: fixed;
  top: 0; right: 0;
  width: 78%;
  max-width: 1000px;
  height: 100vh;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10001;
  display: none;             /* 默认完全不渲染，避免标题泄露 */
  flex-direction: column;
}
.batch-panel.show {
  display: flex;             /* 显示时启用 flex 布局 */
  transform: translateX(0);
}
.batch-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
}
.batch-head h3 { margin: 0; font-size: 16px; color: #1e293b; }
.batch-head .close-x {
  background: none; border: none; font-size: 22px; color: #94a3b8;
  cursor: pointer; line-height: 1;
}
.batch-head .close-x:hover { color: #ef4444; }
.batch-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
  background: #f8fafc;
}
.batch-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.batch-foot .cancel-btn {
  background: #fff; color: #64748b;
  border: 1px solid #cbd5e1; border-radius: 8px;
  padding: 10px 22px; font-size: 14px; cursor: pointer;
}
.batch-foot .submit-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; border: none; border-radius: 8px;
  padding: 10px 26px; font-size: 14px; font-weight: 500;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.batch-foot .submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 详情/支付弹窗内订单组 */
.batch-order {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
}
.batch-order-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 13px;
  color: #475569;
}
.batch-order-head strong { color: #1e293b; }

/* 支付凭证多图预览 */
.pay-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.pay-proof-item {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.pay-proof-item img {
  width: 100%; height: 100%; object-fit: cover;
}
.pay-proof-item .remove-btn {
  position: absolute;
  top: 2px; right: 2px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  cursor: pointer;
}
/* 支付凭证小方块上传区（90×90） */
.pay-add-btn {
  width: 90px;
  height: 90px;
  border: 2px dashed #cbd5e1;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  cursor: pointer;
  color: #94a3b8;
  font-size: 12px;
  gap: 4px;
}
.pay-add-btn:hover,
.pay-add-btn.drag-over { border-color: #3b82f6; color: #3b82f6; background: #eff6ff; }
.pay-add-btn i { font-size: 20px; }

/* ===== 每产品录入组件 ===== */
.product-entry {
  margin-top: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.product-entry-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.product-entry-head .pe-img {
  width: 36px; height: 36px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
}
.product-entry-head .pe-name {
  flex: 1;
  min-width: 200px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  line-height: 1.4;
}
/* 横向铺开的产品基础数据（每项 label 上 + value 下） */
.product-entry-head .pe-head-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
.product-entry-head .pe-head-info span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 8px;
  background: #fff;
  border-radius: 4px;
  min-width: 70px;
}
.product-entry-head .pe-head-info span .pi-label {
  font-size: 11px;
  color: #94a3b8;
}
.product-entry-head .pe-head-info span strong {
  color: #1e293b;
  font-weight: 600;
}
.product-entry-head .pe-head-info span .pe-mode {
  display: inline-block;
  padding: 2px 10px;
  background: #e0e7ff;
  color: #4338ca;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  width: fit-content;
}
/* 订单级信息行样式（沿用 dingdanzonglan.css 的 .order-header 紧凑化，避免换行） */
.order-section .order-header {
  font-size: 13px;
  gap: 0 18px !important;
  padding: 12px 16px !important;
}
.order-section .order-header strong {
  color: #1e293b;
  font-weight: 600;
  margin-left: 4px;
}
.products-list { padding: 12px; }

.product-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 14px;
  margin-bottom: 10px;
}
.product-entry-grid .pe-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-entry-grid .pe-field label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.product-entry-grid .pe-field input,
.product-entry-grid .pe-field select {
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  transition: border-color 0.15s;
}
.product-entry-grid .pe-field input:focus,
.product-entry-grid .pe-field select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.product-entry-grid .pe-field .pe-auto {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  cursor: not-allowed;
}

/* 否 → 运费二维码上传区域 */
.freight-qr-block {
  margin-top: 12px;
  padding: 12px;
  background: #fff7ed;
  border: 1px dashed #fdba74;
  border-radius: 8px;
  display: none;
}
.freight-qr-block.show { display: block; }
.freight-qr-block .qr-label {
  font-size: 12px;
  color: #9a3412;
  font-weight: 600;
  margin-bottom: 8px;
}
.freight-qr-block .qr-label i { margin-right: 4px; }

/* ===== 运费二维码悬停眼睛预览 ===== */
.qr-preview-wrap {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.qr-preview-wrap img {
  display: block;
}
.qr-preview-mask {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.qr-preview-wrap:hover .qr-preview-mask { opacity: 1; }
.qr-preview-mask i {
  font-size: 26px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .product-entry-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 移除数字输入框的上下调整器（spinner） */
.product-entry-grid input[type="number"]::-webkit-inner-spin-button,
.product-entry-grid input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
  display: none !important;
}
input[type="number"], .product-entry-grid input[type="number"] {
  -moz-appearance: textfield !important;
}

/* 每产品供货图片行 */
.pe-payimg-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}
.pe-payimg-row .pay-img-upload { width: 100px; height: 100px; }

/* 订单基础数据已合并到产品头部信息行（pe-head-info），此块不再使用 */

/* ===== 统计卡 flex 布局（v1.1.6）：label 一行、value+icon 并排、sub 一行，杜绝图标与金额重叠（桌面+移动通用） ===== */
.stats-board .stat-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
}
.stats-board .stat-card .stat-label { width: 100%; margin-bottom: 4px; }
.stats-board .stat-card .stat-value {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stats-board .stat-card .stat-icon {
  position: static;
  transform: none;
  margin-left: 8px;
  flex-shrink: 0;
}
.stats-board .stat-card .stat-sub { width: 100%; }
