/* Customer-only editor; other record dialogs keep their existing layout. */
.customer-record-drawer .el-drawer__header {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--el-border-color-light);
}
.customer-record-drawer .el-drawer__title { font-size: 16px; font-weight: 600; }
.customer-record-drawer .el-drawer__body { padding: 20px; overflow-y: auto; }
.customer-record-drawer .record-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.customer-record-drawer .record-form > * { min-width: 0; grid-column: 1; }
.customer-record-drawer .record-form > .customer-contacts-editor {
  grid-column: 2;
  grid-row: 1 / span 8;
  margin: 0;
}
.customer-record-drawer .form-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
.customer-record-section-title { margin: 0 0 20px; font-size: 14px; }
.customer-record-drawer .el-form-item { margin-bottom: 20px; }
.customer-record-drawer .customer-contacts-editor > .section-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.customer-record-drawer .customer-contacts-editor > .section-title p { margin: 4px 0 0; font-size: 12px; }
.customer-record-drawer .customer-contact-card { padding: 14px; background: var(--el-fill-color-light); }
.customer-record-drawer .customer-contact-card header,
.customer-record-drawer .customer-contact-method-row { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.customer-record-drawer .customer-profile-top,
.customer-record-drawer .customer-profile-row { display: flex; flex-direction: column; align-items: stretch; }
.customer-record-drawer .el-select,
.customer-record-drawer .el-input-number,
.customer-record-drawer .el-date-editor { width: 100%; max-width: 100%; }
.customer-record-drawer .el-drawer__footer {
  padding: 12px 20px;
  border-top: 1px solid var(--el-border-color-light);
  background: var(--el-bg-color);
}
@media (max-width: 600px) {
  .customer-record-drawer .el-drawer__body { padding: 16px; }
  .customer-record-drawer .record-form { display: flex; flex-direction: column; }
  .customer-record-drawer .record-form > * { width: 100%; }
  .customer-record-drawer .el-drawer__footer { padding: 12px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
  .customer-record-drawer .el-drawer__footer .el-button { margin-left: 0; }
}

.customer-contact-profile { margin-top: 16px; }
.customer-contact-profile .el-form-item { margin-bottom: 16px; }
.customer-contact-profile .el-select,
.customer-contact-profile .el-date-editor { width: 100%; max-width: 100%; }

.customer-contact-profile-values { display: grid; grid-template-columns: minmax(70px, auto) minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.customer-contact-profile-values dt { color: var(--el-text-color-secondary); }
.customer-contact-profile-values dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.customer-contact-editor { min-width: 0; margin-top: 16px; }
.customer-contact-editor .customer-contact-profile { margin-top: 0; }
.customer-contact-editor .customer-contact-profile-values { margin-bottom: 16px; }
.customer-contact-editor .customer-method-group { width: 100%; min-width: 0; }
.customer-contact-editor .customer-method-entry { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-width: 0; }
.customer-contact-editor .customer-method-entry .el-input { flex: 1; min-width: 0; }
.customer-contact-editor .customer-method-entry .el-select { width: 130px; flex: 0 1 130px; min-width: 0; }
.customer-contact-editor .customer-method-value { white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-record-drawer .customer-method-entry { flex-wrap: wrap; }
.customer-record-drawer .customer-method-entry .el-select { flex-basis: 100%; }

.customer-contact-long-text { width: 100%; min-width: 0; }

.customer-record-drawer .customer-custom-radio { display:flex; flex-wrap:wrap; gap:8px 16px; max-width:100%; }
.customer-record-drawer .customer-custom-radio .el-radio { margin-right:0; height:auto; min-height:32px; max-width:100%; white-space:normal; }
.customer-record-drawer .customer-custom-radio .el-radio__label, .customer-record-drawer .customer-custom-legacy { overflow-wrap:anywhere; }
.customer-record-drawer .customer-custom-legacy { width:100%; margin:4px 0; color:#606266; font-size:12px; }
