/**
 * Paging
 * --
 * Contains all of the CSS used to format the paging component that usually
 * appears at the bottom of lists.
 */


.mh-paging {
    font-size: 0;
    line-height: 0;

    @include media-tablet-portrait() {
        display: flex;
    }

    &__steps {
        margin: 0 -20px;
        text-align: center;

        @include media-tablet-portrait() {
            margin: 0;
            text-align: left;
            flex: auto;
        }

        &-number {
            display: inline-block;
            margin: 0 20px;
            vertical-align: middle;
            @include type(small);
        }

        &-btn {
            display: inline-block;
            vertical-align: middle;
            @include btn(small, $display: inline-block, $width: 75px);

            &--disabled {
                @include btn-type($type: disabled);
            }
        }
    }

    &__per-page-field {
        @include type(small, $line-height: $field-small-height);
        @include appearance(none);

        background:
            #fff
            url($manhattan-manage-asset-root + '/icon-arrow-down.svg')
            right 10px top 50%
            no-repeat;
        background-size: 9px 4px;
        border: none;
        border-radius: 3px;
        box-shadow: inset 0 0 1px 1px rgba(#000, 0.15);
        font-weight: 400;
        height: 36px;
        line-height: 36px;
        margin-right: 20px;
        padding: 0 24px 0 10px;
        width: 120px;
    }

    &__jump {
        border-top: 1px solid $color-bkg-main;
        margin: 20px -20px 0;
        padding: 20px 20px 0;
        position: relative;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;

        @include media-tablet-portrait() {
            border: none;
            margin: 0;
            padding: 0;
            text-align: right;
            flex: auto;
            justify-content: flex-end;
        }

        &-results {
            @include ellipsis();
            @include type(small, $line-height: $field-small-height);

            flex: 1 0 auto;
            text-align: center;
            width: 100%;

            @include media-tablet-portrait() {
                display: inline-block;
                margin-right: 20px;
                vertical-align: middle;
                flex: auto;
                overflow: hidden;
                text-align: right;
                width: fit-content;
            }
        }

        &-field {
            border-bottom-right-radius: 0;
            border-top-right-radius: 0;
            padding-top: 0;
            text-align: center;
            width: 80px !important;

            -moz-appearance:textfield;
            &::-webkit-outer-spin-button,
            &::-webkit-inner-spin-button {
                -webkit-appearance: none;
            }

            @include media-tablet-portrait() {
                display: inline-block;
                vertical-align: middle;
            }

            @include placeholder {
                line-height: $field-small-height;
            }

            &:focus {
                box-shadow:
                    inset 0 0 0 1px rgba(0, 0, 0, 0.25),
                    inset 0 3px 3px 0 rgba(0, 0, 0, 0.1);
                color: $color-font;
            }
        }

        &-btn {
            margin: 0 0 0 -1px;
            min-width: 50px;
            @include border-left-radius(0px);
            flex: 0;
        }
    }
}
