// 复合搜索框
.complex-search {
  border: 1px solid var(--el-border-color);
  border-radius: var(--el-border-radius-base);
  .el-select__wrapper {
    box-shadow: none !important;
    border-radius: var(--el-border-radius-base) 0 0 var(--el-border-radius-base);
  }
  .el-input__wrapper {
    box-shadow: none !important;
    border-radius: 0 var(--el-border-radius-base) var(--el-border-radius-base) 0;
  }
  &__left {
    border-right: 1px solid var(--el-border-color);
  }
}

// 编辑头像
.edit-avatar {
  position: relative;
  line-height: 0;
  .edit-mask {
    position: absolute;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
  }
}

// radio 一行一个样式
.radio-block {
  width: 100%;
  display: inline-flex;
  .el-radio {
    align-items: flex-start;
    height: 100%;
    width: 100%;
    margin-top: 8px;
  }
  .el-radio__label {
    width: 100%;
    margin-top: -8px;
    line-height: 30px;
  }
}
// radio 一行一个样式 有输入框 上传头像的内容
.radio-block-avatar {
  width: 100%;
  display: block;
  .el-radio {
    align-items: flex-start;
    height: 100%;
    width: 100%;
    margin: 0;
  }
  .el-radio__label {
    width: 100%;
    margin-top: -8px;
    line-height: 30px;
  }
}

/*
  表格第一行插入自定义行
*/
.table-quick-append {
  background: #ffffff;
  .el-table__append-wrapper {
    position: absolute;
    top: 0;
    border-bottom: var(--el-table-border);
    width: 100%;
    height: 49px;
    box-sizing: border-box;
    align-items: center;
    display: flex;
    padding: 0 12px;
    background: #ffffff;
    cursor: pointer;
    z-index: 2;
    &:hover {
      background: var(--el-color-primary-light-9);
      z-index: 1;
    }
  }
  .el-table__body {
    margin-top: 49px;
  }
}

.create-dropdown {
  width: 280px;
  .el-dropdown-menu__item {
    padding: 8px 12px;
    &:hover {
      background: var(--app-text-color-light-1);
    }
  }
}

.custom-slider {
  .el-input-number.is-without-controls .el-input__wrapper {
    padding: 0 !important;
  }
}

// 分段 dialog
.paragraph-dialog {
  padding: 0 !important;
  .el-scrollbar {
    height: auto !important;
  }
  .el-dialog__header {
    padding: 16px 24px;
  }
  .el-dialog__body {
    border-top: 1px solid var(--el-border-color);
  }
  .el-dialog__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--el-border-color);
  }

  .title {
    color: var(--app-text-color);
  }
}

.card__radio {
  width: 100%;
  display: block;
  line-height: 22px;
  .el-radio {
    white-space: break-spaces;
    width: 100%;
    height: 100%;
    line-height: 22px;
    color: var(--app-text-color);
  }

  .el-radio__label {
    padding-left: 24px;
    width: 100%;
  }
  .el-radio__input {
    position: absolute;
    top: 5px;
  }
  .active {
    border: 1px solid var(--el-color-primary);
  }
  .el-card__body {
    padding: calc(var(--app-base-px) + 4px) calc(var(--app-base-px) * 2);
  }
}

// radio-button-group
.app-radio-button-group {
  border: 1px solid var(--app-border-color-dark);
  border-radius: var(--el-border-radius-base);
  .el-radio-button {
    padding: 3px;
  }
  .el-radio-button__inner {
    border: none !important;
    border-radius: var(--el-border-radius-base) !important;
    padding: 5px 8px;
    font-weight: 400;
  }
  .el-radio-button__original-radio:checked + .el-radio-button__inner {
    color: var(--el-color-primary) !important;
    background: var(--el-color-primary-light-9) !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 500;
  }
}

.import-button {
  .el-upload {
    display: block !important;
  }
}

// 下载中
.dotting {
  display: inline-block;
  width: 10px;
  min-height: 2px;
  padding-right: 2px;
  margin-left: 2px;
  padding-left: 2px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  background-color: currentColor;
  background-clip: content-box;
  box-sizing: border-box;
  -webkit-animation: dot 0.8s infinite step-start both;
  animation: dot 0.8s infinite step-start both;
  &:before {
    content: '...';
  }
  &::before {
    content: '';
  }
}

@-webkit-keyframes dot {
  25% {
    border-color: transparent;
    background-color: transparent;
  }
  50% {
    border-right-color: transparent;
    background-color: transparent;
  }
  75% {
    border-right-color: transparent;
  }
}
@keyframes dot {
  25% {
    border-color: transparent;
    background-color: transparent;
  }
  50% {
    border-right-color: transparent;
    background-color: transparent;
  }
  75% {
    border-right-color: transparent;
  }
}

// checkbox 一行一个样式
.checkbox-group-block {
  .el-checkbox {
    display: block;
  }
}

// tooltip
.auto-tooltip-popper {
  max-width: 500px;
}

// 带滚动条dialog
.scrollbar-dialog {
  padding: 16px !important;
  .el-dialog__header {
    padding: 4px 16px 12px 12px;
  }
}
