.o-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 60px;
  height: 40px;
  padding: 0 18px;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  border: none;
  border-radius: $radius--mini;
  background-color: $blue;
  transition: background-color .4s;
  user-select: none;
  cursor: pointer;

  &.mini {
    height: 32px;
    padding: 0 12px;
  }

  &:hover {
    background-color: rgba($blue, .8);
  }

  &:active {
    background-color: darken($blue, 5%);
  }

  &__icon {
    font-size: 18px;
    margin-right: 10px;
  }

  &.cancel {
    color: $gray--dark;
    background-color: $gray--light;

    &:hover,
    &:active {
      color: #409eff;
      background-color: $blue--light;
    }

    &:active {
      outline: 1px solid #3a8ee6;
    }
  }

  &.success {
    background-color: $success--dark;

    &:hover {
      background-color: rgba($success--dark, .8);
    }

    &:active {
      background-color: darken($success--dark, 5%);
    }
  }

  &.error {
    background-color: $error;

    &:hover {
      background-color: rgba($error, .8);
    }

    &:active {
      background-color: darken($error, 5%);
    }
  }
}

.o-pagination-button {
  border-color: $blue;
  background-color: $blue;

  &:hover {
    border-color: rgba($blue, .8);
    background-color: rgba($blue, .8);
  }
}

.o-tag {
  min-width: 80px;
  text-align: center;
}

.o-next {
  display: inline-block;
  width: 1em;
  height: 1em;
  text-align: center;

  &::before {
    content: '';
    display: inline-block;
    border-top: .5em solid transparent;
    border-bottom: .5em solid transparent;
    border-left: .68em solid currentcolor;
  }

  &::after {
    content: '';
    display: inline-block;
    height: 1em;
    border-left: .1em solid currentcolor;
  }
}

.o-thumbnail {
  display: inline-flex;
  width: 64px !important;
  height: 40px !important;
  color: $blue;
  font-size: 20px;
}

.o-select {
  width: 140px;
}

.o-select-option {
  max-width: 400px;
}

.o-date-picker {
  &.hide-footer {
    .el-picker-panel__footer .el-button--text {
      display: none;
    }
  }
}

.o-upload {
  display: flex;

  .el-upload {
    display: flex;
    flex: 1 1 auto;
  }

  .el-upload-dragger {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    width: auto;
    height: auto;
    padding: $spacing;
    color: $gray;
    font-size: 14px;
    font-weight: bold;

    &.is-dragover {
      border-width: 1px;
    }
  }

  .o-upload__icon {
    margin: 0 10px;
    color: $blue;
    font-size: 24px;
    line-height: 1;
  }

  &__tip {
    padding-left: 10px;
    color: $blue;
  }

  &__file {
    padding-right: 10px;
    color: $blue;
  }

  &__accept {
    padding-top: 6px;
    font-size: 12px;
    font-weight: normal;
  }
}

.o-refresh-header.cell {
  display: inline-flex !important;
}

.o-refresh {
  color: $gray;
  font-size: 24px;
  @extend .u-pointer;

  &:hover {
    color: $blue;
  }
}

.o-info {
  padding: 0 20px;
  color: $gray;
  line-height: normal;
}

.o-expand-icon {
  transition: transform 0.2s;

  &.expand {
    transform: rotate(90deg);
  }
}

.o-tab {
  display: inline-flex;
  align-items: center;
  vertical-align: bottom;

  &__icon {
    padding: 0 10px;
    margin-left: -10px;
    color: $blue;
    font-size: 1.4em;
    font-weight: bold;
    line-height: 1;
  }
}

.o-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;

  &.medium {
    width: 32px;
    height: 32px;
  }

  &.mini {
    width: 24px;
    height: 24px;
  }
}

.o-icon--active {
  &:hover {
    color: $primary  !important;
  }

  &:active {
    color: $blue  !important;
  }
}

.o-link {
  color: $gray;
  font-size: 12px;

  &.grid {
    margin-top: -4px;
  }

  &::after {
    content: attr(href);
  }

  &:hover {
    color: $blue;
    text-decoration: underline;
  }
}

.o-simple-video {
  object-fit: contain;

  &::-webkit-media-controls-enclosure {
    display: none;
  }
}
