// .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__cell {
    .el-button + .el-button {
      margin-left: 8px;
    }
  }
}

// .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;
    margin: 0 4px;
    min-width: 32px;

    &.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-input {
  .el-input__wrapper:not(.is-focus) {
    // box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.15) inset;
    background: #f8f8f8;
  }
}

// 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 {
  .el-select__wrapper:not(.is-focused) {
    background: #f8f8f8;
  }
  .el-select__suffix {
    margin: -4px -11px -4px 0;
    width: 31px;
    height: 30px;
    text-align: center;
    border-left: 1px solid var(--color-border);
    background: linear-gradient(180deg, #ffffff 0%, #e5e5e5 100%);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    justify-content: center;

    .el-select__caret:not(.el-select__clear) {
      background-image: url(../images/icon-arrow.png);
      background-size: 100% 100%;
      font-size: 12px;

      svg {
        display: none;
      }
    }
  }
}
.el-select--large {
  .el-select__wrapper {
    padding-top: 0;
    padding-bottom: 0;
  }
  .el-select__suffix {
    height: 38px;
    width: 39px;
    margin-right: -15px;
  }
}
.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-divider
.el-divider {
  &.el-divider--horizontal {
    border-color: var(--color-border-light);
    margin: 16px 0;
  }

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

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

  &[class='el-button'],
  &.is-shade {
    background: linear-gradient(180deg, #ffffff 0%, #e5e5e5 100%);
    color: var(--color-text-dark);
    font-weight: 400;
  }
}
.el-button--large {
  padding: 5px 19px;
  font-size: 16px;
}
.el-button--primary {
  background: linear-gradient(180deg, #00a6fc 0%, #0072ff 100%);
}
.el-button--success {
  background: linear-gradient(180deg, #00ca53 0%, #009a29 100%);
}

.el-form {
  .el-form-item__label {
    color: var(--color-text-dark);
  }
}

.el-message-box {
  padding: 16px;
  .el-message-box__status.el-message-box-icon--warning {
    color: var(--color-danger);
  }
  .el-message-box__content {
    min-height: 40px;
  }
}
