.pagination {
  display: flex;
  align-items: center;
  margin: 20px 0;

  &__rows {
    display: flex;
    align-items: center;
    font-size: .9rem;

    .form-field {
      width: auto;
      margin-right: 5px;
    }
  }

  &__list {
    @extend %list;
    display: flex;
    align-items: center;
  }

  &__list-item {
    display: flex;
    margin: 0 3px;
    height: 30px;

    & a {
      color: $grey-dark;
      padding: 5px 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      border: 0;

      &:hover {
        text-decoration: none;
        border: 0;
        color: $black;
        background-color: $grey-light;
        border-radius: 3px;
      }
    }

    &.disabled {
      opacity: 0.4;
      cursor: move;
    }

    &.active {
      & a {
        font-weight: $font-bold;
        color: $white;
        background-color: lighten($secondary-color, 10%);
        border-radius: 3px;
      }
    }

    &.previous {
      & a {
        padding: 0;
        background: none;
      }
    }

    &.next {
      & a {
        padding: 0;
        background: none;
      }
    }

    &.go-to-first {
      & a {
        padding: 0;
        background: none;
      }
    }

    &.go-to-last {
      & a {
        padding: 0;
        background: none;
      }
    }
  }

  &__pages {
    font-size: 0.875rem;
    color: $grey-dark;
    margin-right: 20px;
    white-space: nowrap;

    & .active {
      color: $secondary-color;
    }
  }

  &__show-results {
    display: flex;
    align-items: flex-end;
    margin-left: 20px;
    white-space: nowrap;
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style-type: none;
  margin: 20px 0;


  &__item {
    &:hover {
      background: $grey-light;
    }

    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3px;
    width: 30px;
    height: 30px;
    border-radius: 15px;
    cursor: pointer;

    &--active {
      background: $primary-color;
      color: white;
    }

    &--icon {
      display: flex;
      align-items: center;
      justify-content: center;
      color: $primary-color;
      font-weight: 400;
      font-size: 25px;
      border-radius: 15px;
      padding-bottom: 5px;
    }

    &--disabled {
      color: gray;
      pointer-events: none;
    }
  }

  &__input {
    width: 50px;
    height: 30px;
    margin-left: 10px;
    outline: 0;
    border: 0;
    border-bottom: 1px solid #f8f9fb;
  }
}