// button
.el-button.el-button--noborder {
  border: none;
  background-color: var(--color-white);
  span {
    color: var(--color-theme);
  }
  &:hover {
    border-color: var(--color-btn-default-bg-hover);
    background-color: var(--color-btn-default-bg-hover);
    fill: var(--color-theme);
    span {
      color: var(--color-theme);
    }
  }
}

button.el-button.el-button--text {
  height: 24px;
  padding: 4px 8px;
  border: none;
  background-color: transparent;
  span {
    color: var(--color-theme);
  }
  &:hover {
    background-color: var(--color-btn-default-bg-hover);
    color: var(--color-theme);
  }
}

.el-button.el-button--default {
  background-color: var(--color-white);
  color: var(--color-neutral-1);
  border: 1px solid var(--color-border);
  margin-left: 8px !important;
  &:hover {
    border: 1px solid var(--color-btn-default-bg-hover);
    background-color: var(--color-btn-default-bg-hover);
    fill: var(--color-theme);
    span {
      color: var(--color-theme);
    }
  }
}

.el-button.el-button--main.is-plain {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  span {
    color: var(--color-theme);
  }
  &:hover {
    border: 1px solid var(--color-btn-main-plain-bg-hover);
    background-color: var(--color-btn-main-plain-bg-hover);
    color: var(--color-theme);
    fill: var(--color-theme);
  }
}

.el-button.el-button--main {
  border: none;
  background-color: var(--color-theme);
  span {
    color: var(--color-white);
  }
  &:hover {
    background-color: var(--color-btn-main-bg-hover);
    color: var(--color-white);
    fill: var(--color-white);
  }
}

.el-button.el-button--success {
  border: none;
  background-color: var(--color-success);
  span {
    color: var(--color-white);
  }
  &:hover {
    background-color: var(--color-btn-success-bg-hover);
    color: var(--color-white);
    fill: var(--color-white);
  }
}

.el-button.el-button--warning {
  border: none;
  background-color: var(--color-btn-warning-bg);
  span {
    color: var(--color-white);
  }
  &:hover {
    background-color: var(--color-btn-warning-bg-hover);
    color: var(--color-white);
    fill: var(--color-white);
  }
}

.el-button.el-button--danger {
  border: none;
  background-color: var(--color-danger);
  span {
    color: var(--color-white);
  }
  &:hover {
    background-color: var(--color-btn-danger-bg-hover);
    color: var(--color-white);
    fill: var(--color-white);
  }
}

.el-button.el-button--grey {
  border: none;
  background-color: var(--color-grey);
  color: var(--color-accent-1);
  &:hover {
    background-color: var(--color-btn-default-bg-hover);
    fill: var(--color-theme);
    span {
      color: var(--color-theme);
    }
  }
}

.el-button.el-button--blue {
  border: none;
  padding: 0 4px;
  background-color: #f6f6fe;
  color: var(--color-accent-1);
  &:hover {
    background-color: var(--color-btn-default-bg-hover);
    fill: var(--color-theme);
    span {
      color: var(--color-theme);
    }
  }
}

// 纯图标
button.el-button.el-button--icon {
  height: auto;
  padding: 4px;
  border: none;
  background-color: #f6f6fe;
  &:hover {
    background-color: #f6f6fe;
  }
}
// 初始为黑色
.el-button.el-button--dark {
  background-color: var(--color-btn-default-dark-bg);
  fill: var(--color-white);
  border: none;
  span {
    color: var(--color-white);
  }
  &:hover {
    background-color: var(--color-btn-default-dark-bg);
    fill: var(--color-btn-default-dark-hover);
    span {
      color: var(--color-btn-default-dark-hover) !important;
    }
  }
}

button.el-button {
  border-radius: 6px;
  & + .el-button {
    margin-left: 8px;
  }
}

// pagination
ul.el-pager li.is-active {
  font-weight: 400;
}
div.el-pagination.is-background .el-pager li.is-active {
  border: none;
  background-color: var(--color-theme);
  color: var(--color-white);
}
.el-pagination.is-background .el-pager li.number,
.el-pagination.is-background .el-pager li.more,
.el-pagination.is-background button.btn-next,
.el-pagination.is-background button.btn-prev {
  border-radius: 3px;
  background-color: transparent;
  border: 1px solid var(--color-border);
}
.el-pagination.is-background button.btn-next:disabled,
.el-pagination.is-background button.btn-prev:disabled {
  color: var(--color-neutral-1);
  background-color: transparent;
}

ul.el-pager li:hover {
  color: var(--color-theme);
}

// dialog
div.el-dialog {
  padding: 0 0 8px;
  border-radius: 12px;
  overflow: hidden;
}
header.el-dialog__header {
  padding: 12px 16px;
  height: 48px;
  font-weight: 700;
  background-color: var(--color-dialog-header-bg);
}
footer.el-dialog__footer {
  padding-right: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}
div.el-dialog__body {
  padding: 16px;
}
button.el-dialog__headerbtn:focus .el-dialog__close,
button.el-dialog__headerbtn:hover .el-dialog__close {
  color: var(--color-theme);
}
div.el-overlay {
  background-color: rgba(43, 47, 54, 0.7);
}

// radio
label.el-radio {
  &.is-checked .el-radio__inner {
    background-color: var(--color-theme);
    border-color: var(--color-theme);
  }
  .el-radio__inner {
    height: 16px;
    width: 16px;
    &::after {
      height: 8px;
      width: 8px;
    }
  }
}

// message
div.el-message {
  display: flex;
  justify-content: center;
  width: 800px;
  .el-badge.el-message__badge {
    display: none;
  }
}
div.el-message--error {
  --el-message-bg-color: #faebec;
  --el-message-border-color: #faebec;
  --el-message-text-color: var(--color-danger);
}
div.el-message--success {
  --el-message-bg-color: #e5f6f1;
  --el-message-border-color: #e5f6f1;
  --el-message-text-color: var(--color-success);
}

div.el-message--warning {
  --el-message-bg-color: #fef5eb;
  --el-message-border-color: #fef5eb;
  --el-message-text-color: #f19d38;
}

// message box
div.el-message-box {
  --el-messagebox-width: 640px;
  --el-messagebox-border-radius: 12px;
  padding: 0;
  .el-message-box__header {
    height: 56px;
    padding: 16px;
    background-color: var(--color-table-header-bg);
    & > span {
      font-weight: 700;
      font-size: var(--font-size-4);
    }
  }
  .el-message-box__container {
    padding: 24px 16px;
    gap: 6px;
  }
  .el-message-box__headerbtn {
    height: 56px;
  }
  .el-message-box__status {
    font-size: 16px;
  }
  .el-message-box__title {
    font-weight: 700;
    font-size: var(--font-size-4);
  }
  .el-message-box__message {
    font-size: var(--font-size-3);
  }
  .el-message-box__btns {
    padding: 8px;
    padding-right: 16px;
    border-top: 1px solid var(--color-border);
  }
}

// drawer抽屉
div.el-drawer {
  .el-drawer__header {
    height: 64px;
    padding: 16px;
    margin-bottom: 0;
    background-color: var(--color-table-header-bg);
    & > span {
      font-weight: 700;
      font-size: 24px;
    }
  }
  .el-drawer__body {
    padding: 16px;
  }
  .el-drawer__close-btn:focus i,
  .el-drawer__close-btn:hover i {
    color: var(--color-theme);
  }
}

div .el-input__inner {
  color: var(--color-neutral-1);
  font-size: var(--font-size-3);
}
input.el-input__inner::placeholder {
  color: var(--color-neutral-3);
  font-size: var(--font-size-3);
}
div .el-select__placeholder.is-transparent {
  span {
    color: var(--color-neutral-3) !important;
    font-size: var(--font-size-3);
  }
}
div.el-input__wrapper {
  box-shadow: 0 0 0 1px var(--color-border) inset;
  padding-left: 8px;
}
div.el-input div.el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px var(--color-theme) inset;
  background-color: #ffffff !important;
}
div.el-input__wrapper:hover {
  box-shadow: 0 0 0 1px var(--color-theme) inset;
}
// div .el-button {
//   background-color: var(--color-btn-default-dark-bg);
//   font-weight: 400;
//   border-radius: var(--border-radius-6);
//   border: none;
//   span {
//     color: white;
//   }
// }
// div .el-button:hover {
//   background-color: var(--color-btn-default-dark-bg);
//   color: var(--color-btn-default-dark-hover);
//   border-radius: var(--border-radius-6);
// }
div.el-dropdown-link:focus-visible {
  outline: unset;
}
div .el-dropdown__popper .el-dropdown__list {
  user-select: none;
}
div .el-checkbox__inner:hover {
  border-color: var(--color-border);
}
div .el-checkbox__input.is-checked .el-checkbox__inner {
  background-color: var(--color-theme);
  border-color: var(--color-theme);
}
div .el-checkbox.el-checkbox--large .el-checkbox__inner {
  height: 16px;
  width: 16px;
  font-size: 16px;
  border-radius: 3px;
}
div .el-checkbox--large .el-checkbox__label {
  margin-top: 1px;
  padding-left: 4px;
}
span.el-checkbox__input.is-checked + .el-checkbox__label {
  color: var(--color-neutral-2);
}
/* 修改选中时打勾图标的大小 */
div .el-checkbox.el-checkbox--large span.el-checkbox__inner::after {
  left: 4px; /* 调整左边距 */
  top: 0px; /* 调整上边距 */
  width: 5px; /* 打勾图标宽度 */
  height: 10px; /* 打勾图标高度 */
}
div .el-popper__arrow,
div .el-popper__arrow:before {
  height: 0;
  width: 0;
}
div .el-popper[data-popper-placement^='bottom'] > .el-popper__arrow {
  top: 0;
}
div .el-dropdown-menu__item {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-6);
}
div .el-dropdown__popper.el-popper,
.el-dropdown__popper.el-popper .el-popper__arrow:before {
  border-radius: var(--border-radius-12);
}
div .el-scrollbar__wrap--hidden-default {
  border-radius: var(--border-radius-12);
}
div .el-popper[data-popper-placement^='top'] .el-popper__arrow:before {
  border: 0;
  background: transparent;
}
div .el-popper[data-popper-placement^='bottom'] .el-popper__arrow:before {
  border: 0;
  background: transparent;
}
div .el-popover.el-popper {
  padding: 0;
}
.el-popper.is-dark {
  span {
    color: #fff;
  }
}
div .el-collapse-item__arrow,
.el-tabs__nav {
  transform: rotate(90deg);
}
div .el-collapse-item__arrow.is-active {
  transform: rotate(-90deg);
}
div .el-collapse-item__content {
  padding-bottom: 0;
}
.el-select__placeholder.is-transparent {
  span {
    color: var(--color-neutral-3);
  }
}
div .el-select__wrapper {
  box-shadow: 0 0 0 1px var(--color-border);
}
div .el-select__wrapper.is-focused {
  box-shadow: 0 0 0 1px var(--color-theme);
}
div .el-select-dropdown__item.is-selected {
  background-color: var(--border-hover-color);
  span {
    color: var(--color-theme);
  }
}
div .el-select-dropdown__item.is-hovering {
  background-color: var(--border-hover-color);
}
.el-select-dropdown__item {
  border-radius: var(--border-radius-6);
  margin: 0 8px;
}

div .el-badge__content--warning {
  background-color: var(--badge__content--warning);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  color: #ffffff;
}
div .el-badge {
  margin: 8px 0 0 8px;
}

.el-date-table td.current:not(.disabled) span.el-date-table-cell__text {
  background-color: var(--color-theme);
}
.el-month-table td.current:not(.disabled) span.el-date-table-cell__text {
  background-color: var(--color-theme);
}
.el-month-table td span.el-date-table-cell__text:hover {
  color: var(--color-theme);
}
.el-year-table td.current:not(.disabled) span.el-date-table-cell__text {
  background-color: var(--color-theme);
}
.el-year-table td.today span.el-date-table-cell__text {
  color: var(--color-theme);
}
.el-year-table td span.el-date-table-cell__text:hover {
  color: var(--color-theme);
}
div.el-date-picker {
  --el-datepicker-header-text-color: #b5b9bf;
}
div.el-date-picker__header {
  padding-top: 4px;
}
span.el-date-picker__header-label {
  display: inline-block;
  margin-top: 11px;
}
div.el-picker-panel__content {
  margin-top: 6px;
}
button.el-picker-panel__icon-btn:hover {
  color: var(--color-theme);
}
span.el-date-picker__header-label:hover {
  color: var(--color-theme);
}
button.el-time-panel__btn.confirm {
  color: var(--color-theme);
}
.el-picker-panel__footer {
  .el-button.is-plain {
    --el-button-hover-text-color: var(--color-theme);
    --el-button-hover-border-color: var(--color-theme);
  }
}

div .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
  background-color: var(--color-table-header-bg);
}
div .el-range-editor.is-active,
.el-range-editor.is-active:hover,
.el-date-editor.el-input__wrapper:hover,
.el-date-editor.el-input__wrapper:hover {
  box-shadow: 0 0 0 1px var(--color-theme) !important;
  border-color: var(--color-theme);
}

table.el-date-table td.available:hover {
  span {
    color: var(--color-theme);
  }
}
div .el-date-table td.today .el-date-table-cell__text {
  color: var(--color-neutral-1);
  font-weight: 400;
}
.el-date-table td .el-date-table-cell span.el-date-table-cell__text {
  border-radius: 6px;
}
div .el-date-table td.in-range .el-date-table-cell {
  background-color: var(--color-orange-6) !important;
  color: var(--color-theme);
}
div .el-date-table td.end-date .el-date-table-cell__text,
.el-date-table td.start-date .el-date-table-cell__text {
  background-color: var(--color-theme) !important;
  color: #ffffff;
}
div .el-date-table td.available:hover {
  color: var(--color-theme);
}
div .el-date-editor .el-range-input,
div .el-date-editor .el-range-separator {
  color: var(--color-btn-default-dark-bg);
  font-size: var(--font-size-3);
}
div .el-range-editor.el-input__wrapper {
  height: 40px;
}
div .el-select__wrapper.is-hovering:not(.is-focused) {
  box-shadow: 0 0 0 1px var(--color-theme);
}
div .el-tag .el-tag__close:hover {
  background-color: transparent;
}
div .el-tag.el-tag--info {
  background-color: var(--tag-info-bg-color);
  span {
    color: var(--tag-info-text-color);
  }
}
div .el-tag .el-tag__close {
  svg {
    color: var(--tag-info-text-color);
  }
}
div .el-select-dropdown.is-multiple .el-select-dropdown__item.is-selected:after {
  width: 0;
  height: 0;
}
div .el-select__wrapper.is-disabled,
.el-select__wrapper.is-disabled:hover {
  box-shadow: none !important;
}
div .scoreDialog header.el-dialog__header {
  background: linear-gradient(
    251deg,
    rgba(255, 255, 255),
    rgba(255, 244, 235) 22.66%,
    rgba(240, 243, 255) 44.57%,
    rgba(224, 247, 249) 80.46%,
    rgba(255, 255, 255)
  );
  position: fixed;
  width: 640px;
  height: 48px;
  border-radius: 6px 6px 0 0;
}
div .scoreDialog .el-dialog__body {
  margin-top: 40px;
}
div .scoreDialog2 header.el-dialog__header {
  background: linear-gradient(
    251deg,
    rgba(255, 255, 255),
    rgba(255, 244, 235) 22.66%,
    rgba(240, 243, 255) 44.57%,
    rgba(224, 247, 249) 80.46%,
    rgba(255, 255, 255)
  );
  position: fixed;
  width: 640px;
  border-radius: 6px 6px 0 0;
  height: 48px;
}
div .scoreDialog2 .el-dialog__body {
  margin-top: 40px;
}

div .el-textarea__inner:hover {
  box-shadow: 0 0 0 1px var(--color-theme);
}
div .el-textarea__inner:focus {
  box-shadow: 0 0 0 1px var(--color-theme);
}
div .el-result__title {
  margin-top: 16px;
  font-weight: 700;
  color: var(--tag-info-text-color);
  font-size: var(--font-size-3);
}
div .el-result__subtitle {
  margin-top: 8.28px;
  font-weight: 400;
  font-size: var(--font-size-2);
  line-height: 16px;
}
div .el-switch.is-checked .el-switch__core {
  background-color: var(--color-theme);
  border-color: var(--color-theme);
}
div .el-switch__core {
  background-color: #87909e;
  border-color: #87909e;
}
div .el-pager li.is-active,
.el-pager li:hover {
  color: var(--badge__content--warning);
}

div .el-tabs__item:hover {
  color: var(--color-theme);
}
div .el-tabs__item.is-active,
.el-tabs__item:hover {
  color: var(--color-neutral-1);
  font-weight: 700;
  font-size: var(--font-size-5);
}
div .el-tabs__item {
  color: var(--color-neutral-3);
  font-weight: 700;
  font-size: var(--font-size-5);
}
div .el-tabs__nav-wrap:after {
  height: 0;
}

div .el-tabs__active-bar {
  background-color: var(--color-accent-2);
}

div
  .el-radio-button.is-active
  .el-radio-button__original-radio:not(:disabled)
  + .el-radio-button__inner {
  background-color: var(--color-theme);
  border-color: var(--color-theme);
  box-shadow: none;
  font-weight: 700;
}
div .el-radio-button__inner:hover {
  color: var(--color-theme);
}
div .el-space {
  flex-wrap: wrap;
  margin: 3px 0 0 0;
}
div .el-loading-spinner .path {
  stroke: var(--color-theme);
}
div .ShowAlerIcon {
  width: 342px;
}
div .dash_popver {
  border-radius: 12px !important;
}
div .el-month-table td .el-date-table-cell__text {
  color: var(--color-neutral-1);
}
div .el-month-table td.today .el-date-table-cell__text {
  color: var(--color-neutral-1) ; 
  font-weight: 400 ;
}