/* 只修复智能体配置里的声纹页和声纹样本菜单。 */
.console-config-page .embedded-voiceprint .main-wrapper,
.console-config-page .embedded-voiceprint .content-panel,
.console-config-page .embedded-voiceprint .content-area {
  height: auto;
  min-height: 0;
  display: block;
  overflow: visible;
  border: 0;
}

.console-config-page .embedded-voiceprint .voice-print-card,
.console-config-page .embedded-voiceprint .voice-print-card .el-card__body {
  display: block;
  overflow: visible;
  background: transparent;
}

.el-dialog:has(> .el-dialog__body > .param-form .custom-select) {
  margin: max(16px, calc((100dvh - 540px) / 2)) auto 16px !important;
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
}

.el-dialog:has(> .el-dialog__body > .param-form .custom-select) .el-dialog__body {
  min-height: 0;
  overflow-y: auto;
}

.el-select-dropdown:has(.audio-icon) {
  width: min(560px, calc(100vw - 72px)) !important;
  max-width: calc(100vw - 24px);
  min-width: 0 !important;
  box-sizing: border-box;
}

.el-select-dropdown:has(.audio-icon) .el-select-dropdown__wrap {
  max-height: min(240px, calc(100dvh - 120px));
}

.el-select-dropdown:has(.audio-icon) .el-select-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 44px;
  padding: 8px 12px;
  line-height: 1.45;
  white-space: normal;
  box-sizing: border-box;
}

.el-select-dropdown:has(.audio-icon) .el-select-dropdown__item > span:first-child {
  float: none !important;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.el-select-dropdown:has(.audio-icon) .el-select-dropdown__item > span:last-child {
  float: none !important;
  flex: none;
}
