.dp-v3-sales-drawer .el-drawer__header {
  margin: 0;
  padding: 18px 22px;
  border-bottom: 1px solid var(--dp-border, #e5e7eb);
}

.dp-v3-sales-drawer .el-drawer__body { padding: 0; }
.dp-v3-drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.dp-v3-drawer-title { display: flex; flex-direction: column; gap: 4px; color: #1f2329; }
.dp-v3-drawer-title > span { color: #646a73; font-size: 12px; }
.dp-v3-drawer-title > strong { font-size: 18px; letter-spacing: .01em; }
.dp-v3-drawer-body { min-height: 240px; padding: 18px 22px 24px; }

.dp-v3-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #e5e7eb;
  overflow: hidden;
}

.dp-v3-summary-strip > div { padding: 12px 14px; background: #fff; }
.dp-v3-summary-strip span,
.dp-v3-detail-grid span,
.dp-v3-customer-summary > div:not(:first-child) span { display: block; color: #8f959e; font-size: 12px; }
.dp-v3-summary-strip strong { display: block; margin-top: 5px; color: #1f2329; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.dp-v3-detail-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e5e7eb; }
.dp-v3-detail-section > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dp-v3-detail-section > header > div { display: flex; align-items: baseline; gap: 8px; }
.dp-v3-detail-section > header span { color: #8f959e; font-size: 12px; }
.dp-v3-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 16px 24px; }
.dp-v3-detail-grid > div { display: flex; min-width: 0; min-height: 42px; flex-direction: column; justify-content: center; }
.dp-v3-detail-grid strong { display: block; margin-top: 5px; overflow: hidden; color: #1f2329; font-size: 14px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.dp-v3-detail-grid .dp-v3-location-code { display: block; margin-top: 2px; overflow: hidden; color: #8f959e; font-family: var(--dp-font-data); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.dp-v3-detail-grid .dp-v2-status { align-self: flex-start; margin-top: 5px; }
.dp-v3-file-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: #646a73; font-size: 13px; }

.dp-v3-product-table .el-table__cell,
.dp-v3-customer-sales-table .el-table__cell { vertical-align: middle; }
.dp-v3-product-table .cell,
.dp-v3-customer-sales-table .cell { line-height: 1.45; }
.dp-v3-money-column .cell,
.dp-v3-money-value {
  overflow: visible;
  font-variant-numeric: tabular-nums;
  text-overflow: clip;
  white-space: nowrap;
}

.dp-v3-payment-list { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.dp-v3-payment-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 14px; background: #fff; }
.dp-v3-payment-row + .dp-v3-payment-row { border-top: 1px solid #edf0f3; }
.dp-v3-payment-row__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dp-v3-payment-row__main > strong { color: #1f2329; font-size: 15px; }
.dp-v3-payment-row__main > span,
.dp-v3-payment-row__main > small,
.dp-v3-payment-row__evidence > span { color: #8f959e; font-size: 12px; }
.dp-v3-payment-row__evidence { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; max-width: 45%; }

.dp-v3-customer-sales .el-collapse-item__header { align-items: center; min-height: 68px; height: auto; line-height: 1.4; }
.dp-v3-customer-sales .el-collapse-item__arrow { flex: 0 0 auto; margin: 0 14px 0 8px; }
.dp-v3-customer-sales .el-collapse-item__wrap { border-bottom-color: #e5e7eb; }
.dp-v3-customer-sales .el-collapse-item__content { padding: 0 0 12px; }
.dp-v3-customer-summary { display: grid; grid-template-columns: minmax(210px, 1fr) repeat(3, minmax(122px, 142px)) minmax(112px, 130px); align-items: center; width: 100%; gap: 16px; padding: 12px 4px 12px 0; }
.dp-v3-customer-summary__identity { display: flex; min-width: 0; flex-direction: column; justify-content: center; line-height: 1.45; }
.dp-v3-customer-summary__identity > span { color: #646a73; font-size: 12px; }
.dp-v3-customer-summary > div:not(:first-child) { min-width: 0; text-align: right; }
.dp-v3-customer-summary > div:not(:first-child) strong { display: block; margin-top: 3px; overflow: visible; color: #1f2329; font-size: 13px; font-variant-numeric: tabular-nums; text-overflow: clip; white-space: nowrap; }
.dp-v3-customer-sales-table-shell { margin: 0; border-top: 1px solid #edf0f3; }
.dp-v3-customer-sales-table .dp-v2-status { vertical-align: middle; }

.dp-v3-evidence-input { display: block; width: 100%; }
.dp-v3-evidence-input input { width: 100%; color: #646a73; font-size: 13px; }
.dp-v3-payment-help { margin-top: 6px; color: #8f959e; font-size: 12px; line-height: 1.5; }

@media (max-width: 1100px) {
  .dp-v3-customer-summary { grid-template-columns: minmax(190px, 1fr) repeat(3, minmax(112px, 132px)) minmax(104px, 120px); gap: 10px; }
}

@media (max-width: 640px) {
  .dp-v3-summary-strip,
  .dp-v3-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-v3-drawer-body { padding-inline: 16px; }
  .dp-v3-payment-row { flex-direction: column; }
  .dp-v3-payment-row__evidence { justify-content: flex-start; max-width: none; }
}
