/* 第1段：收货单客户区 */
.customer-search-wrap {
  position: relative;
}
.customer-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 4px 0 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: #fff;
}
.customer-search-box:focus-within {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.1);
}
.customer-search-icon {
  font-size: 16px;
  color: var(--gray-500);
  flex-shrink: 0;
}
.customer-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--gray-900);
}
.customer-search-input::placeholder {
  color: var(--gray-400);
}
.customer-create-btn {
  height: 32px;
  padding: 0 12px;
  border: none;
  border-radius: 6px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}
.customer-create-btn:hover {
  background: var(--gray-200);
}
.customer-results-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 100;
  display: none;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 12px 16px -4px rgba(16,24,40,0.08);
  max-height: 360px;
  overflow: auto;
  padding: 6px;
}
.customer-results-panel.show {
  display: block;
}
.customer-result {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  min-height: 60px;
  border-radius: 8px;
  cursor: pointer;
}
.customer-result:hover,
.customer-result.active {
  background: #FFF7ED;
}
.customer-result-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.customer-result-avatar.vip {
  background: linear-gradient(135deg, #F97316, #C2410C);
  color: #fff;
}
.customer-result-main {
  min-width: 0;
  flex: 1;
}
.customer-result-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.customer-result-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}
.customer-result-phone {
  font-size: 12.5px;
  color: var(--gray-500);
}
.customer-result-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--gray-600);
}
.customer-result-remark {
  color: var(--gray-700);
}
.customer-result-stats {
  color: var(--gray-500);
  flex-shrink: 0;
}
.customer-no-result {
  padding: 16px 14px;
  font-size: 13px;
  color: var(--gray-500);
}
.customer-selected-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #FFF7ED, #FFFFFF);
  border: 1px solid #FED7AA;
  border-radius: 8px;
}
.customer-selected-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #F97316, #C2410C);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.customer-selected-main {
  flex: 1;
  min-width: 0;
}
.customer-selected-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}
.customer-selected-meta {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--gray-600);
}
.customer-selected-history {
  margin-top: 4px;
  font-size: 12px;
  color: var(--gray-500);
}
.customer-change-btn {
  border: none;
  background: transparent;
  color: #C2410C;
  font-size: 12.5px;
  cursor: pointer;
  padding: 2px 4px;
}
.customer-change-btn:hover {
  text-decoration: underline;
}
