.pages-list {
    list-style: none;
    margin: 0;
    padding: 0;

    border-top: 1px solid darken($content-bg, 5%);

    ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    li {
        margin: 0;
        padding: 0;

    }

    .row {
        @include transition(all 0.2s ease);
        border-bottom: 1px solid darken($content-bg, 5%);
        line-height: 2.5rem;
        padding-right: 3rem;

        &:hover {
            background: lighten($content-bg,2%);
        }

        p.page-route {
            display: block;
            margin: -10px 0 5px 25px;
            line-height: 1;
            font-size: 0.9rem;
            color: darken($content-bg,40%);
            text-shadow: 1px 1px 0 $white;

            .spacer {
                color: darken($content-bg,10%);
                display: inline-block;
                margin: 0 0.3rem;
            }
        }

        // fix for hint alignment
        .hint--bottom:before, .hint--bottom:after {
            left: 4px;
        }
        .hint:after, [data-hint]:after {
            border-radius: 2px;
        }

        .badge.lang {
            background-color: #aaa;
            color: white;
            margin-left: 8px;
        }

        .badge.lang.info {
            background-color: $info-bg;
        }
    }

    .page-tools {
        display: inline-block;
        float: right;
        font-size: 1.4rem;
        i {
            margin-left: 10px;
        }
    }

    .page-home {
        font-size: 1.4rem;
        margin-left: 10px;
        color: darken($content-bg, 20%);
        vertical-align: middle;
    }

    .page-info {
        font-size: 1.1rem;
        margin-left: 10px;
        color: darken($content-bg, 20%);
        vertical-align: middle;
    }

    .page-icon {

        color: #0082BA;
        font-weight: 700;

        &.children-open:before {
            content: '\f056';
        }

        &.children-closed:before{
            content: '\f055';
        }

        &.not-routable {
            color: #CE431D;
        }

        &.not-visible {
            color: #999;
        }

        &.modular {
            color: #9055AF;
        }


    }
}

#page-filtering {
    margin: -2rem $padding-default 1rem;
    @include clearfix;

    .page-filters {
        width: 60%;
        float: left;

        @include breakpoint(mobile-only) {
            width: 100%;
        }

    }

    .page-search {
        position: relative;
        width: 40%;
        float: left;
        padding-left: 2rem;
        text-indent: 2.5rem;
        &:after {
            position: absolute;
            right: 15px;
            top: 10px;
            content: '\f002';
            font-family: 'FontAwesome';
        }

        @include breakpoint(mobile-only) {
            width: 100%;
            padding-top: 1rem;
            padding-left: 0rem;

            &:after {
                top: 1.5rem;
            }
        }
    }

    .page-shortcuts {
        @include clearfix;
        clear: both;
        padding-top:5px;

        .button {
            @include button-color(#aaa);
        }
    }

    .selectize-control.multi .selectize-input {

        padding: ($leading-margin / 4) ($leading-margin / 4);

        &.has-items {
            padding-top: 6px;
            padding-bottom: 4px;
        }

        input {
            font-size: $core-font-size;
            line-height: $core-line-height;
        }


        > div, > div.active {
            color: #777;
            padding: 2px 10px;
            &[data-value='Routable'] {
                background: #CE431D;
                color: $white;
            }
            &[data-value='NonRoutable'] {
                color: #CE431D;
            }
            &[data-value='Visible'] {
                background: #71B15E;
                color: $white;
            }
            &[data-value='NonVisible'] {
                color: #71B15E;
            }
            &[data-value='Modular'] {
                background: #9055AF;
                color: $white;
            }
            &[data-value='NonModular'] {
                color: #9055AF;
            }
            &[data-value='Published'] {
                background: #0093B8;
                color: $white;
            }
            &[data-value='NonPublished'] {
                color: #0093B8;
            }
        }

    }
}

.admin-form-wrapper {
    position: relative;
}

#admin-topbar {
    position: absolute;
    right: 0.5rem;
    height: 3.5rem;

    @include breakpoint(mobile-only){
        width: 100%;
        right: 0;
        top: .25rem;
        padding: 0 .5rem;
    }

    #admin-mode-toggle, #admin-lang-toggle {
        @extend %vertical-align;
        height: 37px;
        display: inline-block;
        vertical-align: inherit;

        @include breakpoint(mobile-only){
            width: 100%;
        }
    }

    #admin-lang-toggle {
        z-index:10;
        button {
            @include button-color(shade($info-bg, 20%));
        }
        .dropdown-menu {
            background: $info-bg;
            button {

                background: transparent;
                color: $white;
                width: 100%;
            }
        }
    }

    .switch-grav {

        border: 0;
        background-color: lighten($accent-bg,10%);
    }

    .switch-toggle {

        @include breakpoint(mobile-only) {
            width: 100%;
        }

        input:checked + label {
            color: $white;
        }

        input + label {
            color: lighten($accent-bg,65%);
        }

        input.highlight:checked {
            ~ a {
                background: lighten($tertiary-accent-bg,10%);
            }
        }
    }


}

body .selectize-dropdown .optgroup-header {
    color: $black;
    border-bottom: 1px solid #eee;
    background-color: #fafafa;
}

@for $i from 0 to 10 {
    .depth-#{$i} .row {
        padding-left: 3rem * ($i + 1);
    }
}

.hidden {
    display: none!important;
}

.switch-toggle input[type="radio"] {
    display: none!important;
}
