// .el-table
.el-table {
  & + .el-pagination {
    margin-top: 16px;
  }

  th.el-table__cell {
    background-image: linear-gradient(180deg, #f9f9f9 0%, #f1f1f1 100%);
  }

  &.is-scrolling-none {
    th.el-table-fixed-column--left,
    th.el-table-fixed-column--right {
      background-image: linear-gradient(180deg, #f9f9f9 0%, #f1f1f1 100%);
    }
  }
  .el-table__header-wrapper {
    tr th.el-table-fixed-column--left,
    tr th.el-table-fixed-column--right {
      background-image: linear-gradient(180deg, #f9f9f9 0%, #f1f1f1 100%);
    }
  }
}

// el-table
.action-column {
  .el-btn {
    height: 20px;
    padding: 0;
    border: none !important;
    outline: none !important;
    line-height: 20px;
    margin: 0;

    &:not(:first-child) {
      margin-left: 10px;
    }
    &:not(.el-btn-disabled):hover {
      transform: scale(1.1);
    }
  }
}

// .el-pagination
.el-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;

  .el-pager li {
    border: 1px solid var(--el-border-color-lighter);
    line-height: 30px;
    border-radius: 6px;

    &.is-active {
      color: var(--color-primary);
      background: #e8f7ff;
      border: 1px solid #c3e7fe;
    }
  }
  .el-pagination__jump {
    color: var(--color-text-gray);

    .el-input__wrapper {
      border-radius: 6px;
      padding: 1px 5px;
    }
  }
  .el-pagination__editor.el-input {
    width: 50px;
  }

  .el-select-view-single {
    border-color: var(--color-border);
  }
  .el-pagination-total {
    flex-grow: 2;
  }

  .el-pagination__sizes .el-select {
    width: 100px;
  }
  .el-pagination__sizes .el-select__wrapper {
    border-radius: 6px;
  }
}

// el-input-number
.el-input-number {
  .el-input {
    .el-input__inner {
      text-align: left;
    }
  }
}

// el-modal
.el-modal-wrapper {
  .el-modal {
    border-radius: 8px;

    .el-modal-close-btn {
      font-size: 20px;
    }
    .el-icon-hover::before {
      width: 24px;
      height: 24px;
      border-radius: 4px;
    }
    .el-modal-header {
      padding: 20px;
      border-bottom: 1px solid var(--color-border);
      margin: 0;
      height: auto;
      text-align: left;
    }
    .el-modal-title {
      color: var(--color-text-dark);
    }
    .el-modal-close {
      width: 24px;
      height: 24px;
    }
    .el-modal-body {
      padding: 20px;
    }
    .el-modal-footer {
      padding: 0 20px 20px;
      margin: 0;
      border: none;

      .el-btn:not(:nth-child(1)) {
        margin-left: 8px;
      }
    }

    &.el-modal-simple {
      border-radius: 8px;
      padding: 0;
      .el-modal-header {
        border: none;
        padding-bottom: 8px;
      }
      .el-modal-body {
        padding: 0 20px 20px 48px;
      }
      .el-modal-footer {
        text-align: right;
      }
    }
  }
}

// .el-select
.el-select-dropdown {
  .el-select-option {
    &.el-select-option-selected {
      color: var(--color-primary);

      &.el-select-option-active {
        &:hover {
          color: var(--color-primary);
        }
      }
    }
  }
}

// .el-dialog
.el-dialog {
  padding: 0;
  border-radius: 8px;
  .el-dialog__header {
    height: 46px;
    background: linear-gradient(180deg, #f9f9f9 0%, #f1f1f1 100%);
    border-radius: 8px 8px 0px 0px;
    padding: 11px 20px 10px;
    border-bottom: 1px solid #dce3eb;
    .el-dialog__title {
      font-size: 16px;
      font-weight: 500;
      color: var(--color-text-dark);
    }
  }
  .el-dialog__headerbtn {
    width: 50px;
    height: 46px;
    font-size: 20px;
    line-height: 50px;

    &:hover {
      opacity: 0.7;
    }
    .el-dialog__close {
      color: var(--color-text-dark-1);
    }
  }
  .el-dialog__body {
    padding: 20px;
  }
  .el-dialog__footer {
    padding: 10px 20px 20px;
  }
}

// .el-button
.el-button {
  .el-icon {
    margin-right: 4px;
  }
}

// el-divider
.el-divider {
  &.el-divider--horizontal {
    border-color: var(--color-border-light);
    margin: 16px 0;
  }

  &.form-divider {
    margin: 0 0 16px;
  }
}
