// Styling for the superdesk specific elements
// ----------------------------------------------------------------------------------------


// Webkit scroll
// --------------------------------------------------

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    margin: -1px 0;
    position: fixed;
    right: 10px;
}
::-webkit-scrollbar:hover {
    background-color: #e8e8e8;
    cursor: pointer;
}

::-webkit-scrollbar-thumb {
    background: #bbb;
}
::-webkit-scrollbar-thumb:hover {
    background: #777;
    cursor: pointer;
}


/*
    ----------------------------------------------------------------------
    INPUT ELEMENTS
    ----------------------------------------------------------------------
*/



// Multiple select
// ---------------------------------------------

.sdselect {
    width: 210px;
    position: relative;
    &.open {
        @include box-shadow(0px 0px 5px 0px #d0d0d0 !important);
        .sdselect-btn {
            border-bottom: 0 !important;
        }
    }
    &:hover {
        .sdselect-btn {
            cursor: pointer;
        }
    }
    .sdselect-btn {
        display: inline-block;
        @include box-sizing(border-box);
        width: 100%;
        @include border-radius(2px);
        border: 1px solid #d0d0d0 ;
        padding: 6px;
        height: 27px;
        outline:none !important;
        @include box-shadow(inset 0 0 0 #000 !important);
        @include box-shadow(none !important);
        text-decoration: none;
        color: #333;
        line-height: 15px;
        font-size: 12px;
        .caret {
            margin: 5px 3px 0 0;
        }
    }

    .sdselect-menu {
        position: absolute;
        background: #fff;
        z-index: 10;
        top: 26px;
        left: 0;
        right: 0;
        height: auto;
        border: 1px solid #d0d0d0;
        @include border-radius(0 0 2px 2px);

        .sdselect-filter {
            padding: 2px 7px;
            border-bottom: 1px solid #d0d0d0;

            input[type="text"] {
                height: 21px !important;
                padding: 3px !important;
                border: 0 !important;
                min-height: 0;
                @include box-shadow(0 0 0 0 #000);
                &:focus {
                    @include box-shadow(0 0 0 0 #000 !important);
                }
            }
        }
        .sdselect-all {
            padding: 4px 9px;
            border-bottom: 1px solid #d0d0d0;
            a {
                text-decoration: none;
                font-size: 9px;
                text-transform: uppercase;
                color: #989898;
                margin-right: 10px;
                &:hover {
                    cursor: pointer;
                    color: #666;
                }
            }
        }
        .list-holder {
            height: auto;
            max-height: 150px;
            overflow-y: auto;
            overflow-x: hidden;
            margin: 7px 0;
            &::-webkit-scrollbar {
                border-left: 5px solid #fff;
                border-right: 5px solid #fff;
                width: 13px;
                background: #fff;
                &:hover {
                    background: #e8e8e8;
                }
            }
            &::-webkit-scrollbar-thumb {
                border-left: 4px solid #fff;
                border-right: 4px solid #fff;
                background: #bbb;
                &:hover {
                    background: #787878;
                }
            }
        }

        ul {
            li {
                a {
                    display: block;
                    padding: 3px 7px;
                    font-size: 12px;
                    color: #333;
                    text-decoration: none;
                    &:hover {
                        cursor: pointer;
                        color: #fff;
                        background: #0083c4;
                    }
                    i {
                        margin-right: 5px;
                        vertical-align: middle;
                        margin-top: -4px;
                        @include opacity(50);
                    }
                }


            }
        }

    }
}


// Searchbar input
// --------------------------------------------------

.searchbar {
    @include border-radius(2px !important);
    background:url(~images/search-icon.png) no-repeat 9px 4px #ffffff !important;
    padding:0 0 0 35px !important;
    &.searchbar-large {
        background-position: 9px 7px !important;
        height:32px !important;
        font-size: 15px;
        line-height: 26px;
    }
}

.flat-searchbar {
    flex-grow: 0;
    .search-handler {
        min-width: 48px;
        height: $nav-height;
        padding: 10px 10px 10px 14px;
        @include box-sizing(border-box);
        background: none;
        display: flex;
        white-space: nowrap;
        @include transition(all 0.3s ease);
        input {
            height: 28px;
            line-height: 100%;
            font-size: 14px;
            border: 0 !important;
            width: 0;
            padding: 0;
            background-color: rgba(255,255,255,0);
            @include transition(all 0.3s ease);
            &:focus {
                @include box-shadow(none !important);
            }
        }
        .trigger-icon {
            @include user-select(none);
            width: 28px;
            height: 28px;
            display: block;
            @include opacity(50);
            &:hover {
                cursor: pointer;
                @include opacity(80);
            }
            i {
                padding: 7px 3px 4px 6px;
            }
        }
    }
    .separator-handler {
        margin: 9px 0 0 5px;
        border-right: 2px dotted #bcbcbc;
        height: 30px;
        float: left;
    }

    .search-close {
        border: 0;
        background: none;
        display: none;
        height: 1.6rem;
        width: 1.6rem;
        align-self: center;
        flex-grow: 0;
        flex-shrink: 0;
        margin: 0 1rem 0 0;
        padding: 0;
        opacity: 0.35;
        transition: opacity 0.2s ease-out;
        color: currentColor;
        opacity: 0;
        &.visible {
            opacity: 0.35;
            &:hover {
                opacity: 0.7;
            }
            &:active {
                opacity: 1;
            }
        }
        i {
            display: block;
        }
    }

    .search-start {
        height: 2.8rem;
        width: 2.8rem;
        flex-grow: 0;
        flex-shrink: 0;
        align-self: center;
        margin: 0 0.8rem 0 0;
        padding: 0;
        transition: all 0.2s ease-out;
        background-color: rgba(61,143,177,0.25);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        i {
            transition: color 0.2s ease-out;
            color: $sd-blue;
        }
        &.visible {
            opacity: 1;
            &:hover {
                background-color: rgba(61,143,177,0.75);
                i {
                    color: $white;
                }
            }
            &:active {
                background-color: rgba(61,143,177,1);
                i {
                    color: $white;
                }
            }
        }
        &:hover {
            background-color: rgba(61,143,177,0.75);
            i {
                color: $white;
            }
        }
        &:active {
            background-color: rgba(61,143,177,1);
            i {
                color: $white;
            }
        }
    }



    &.extended {
        flex-grow: 1;
        .search-handler {
            input {
                width: auto;
                padding: 0 6px;
            }
        }
        .separator-handler {
            margin-left: 14px;
        }
        .search-close {
            display: inline-block;
        }
    }
}

.monitoring-backlink{
    .separator-handler {
        margin-top: 0;
        margin-right: 10px;
    }
}

.filter-type {
    white-space: nowrap;
    &__item {
        display: inline-block;
        vertical-align: middle;
        margin: 3px 2px;
        cursor: pointer;
        i {
            height: auto;
            color: $grayLight;
            padding: 2px 8px 1px 8px;
            background: rgba(255,255,255,.5);
            border: 1px solid rgba(215,215,215,.7);
            @include border-radius(2px);
            @include box-sizing(border-box);
        }
        a {
            height: 21px;
            font-size: 11px;
            font-family: $baseFontFamily;
            line-height: 21px;
            text-decoration: none;
            padding: 4px 10px;
            border-radius: 2px;
            border: 1px solid $grayLight;
            box-sizing: border-box;
            text-transform: uppercase;
            background: #fff !important;
            color: $grayDark;
            opacity: 0.7;
            &:hover {
                color: $black;
                opacity: 1;
            }
            &.filter-type__link--blue {
                border-color: $sd-blue;
                color: $sd-blue;
            }
            &.filter-type__link--dark-blue {
                border-color: $sd-keyword;
                color: $sd-keyword;
            }
        }
        &:hover {
            i {
                background: rgba(255,255,255,.8);
                border: 1px solid rgba(170,170,170,1);
                color: $gray;
            }
        }

        &--active {
            i {
                opacity: 1;
                color: $grayLighter;
                background: #505050;
                border-color: #505050;
                @include box-shadow(inset 0 1px 0px darken(#505050, 10%) !important);
            }

            a {
                opacity: 1;
                background: #505050 !important;
                border-color: #373737 #505050 #505050 !important;
                color: #fff !important;
                @include box-shadow(inset 0 2px 0px darken(#505050, 10%) !important);
            }

            &:hover {
                i {
                    border-color: rgba(80,80,80,.8);
                    background-color: rgba(80,80,80,.8);
                    color: $grayLighter;
                }
                a {
                    opacity: 0.8;
                }
            }
        }
    }
}
.filter-type--padded {
    padding: 10px 0 10px 20px;
}

.result-type {
    margin-left: 10px
}

.dropdown__menu {
    .filter-type {
        padding: 0 10px;
    }
    // compare-versions dropdown
    // -------------------------------------------------

    &--compare-versions {
        max-height: 400px;
        min-width: 250px;
        overflow-y: auto;
        overflow-x: hidden;
        li {
            margin-bottom: 2px;
            line-height: 14px !important;
            .dropdown.open li .dropdown .dropdown__toggle:hover {
                display: none;
            }
            button {
                width: 300px;
                padding-right: 30px;
                overflow: hidden;
                text-overflow: ellipsis;
                position: relative;
                border-radius: 0;
                line-height: 14px !important;
                box-shadow: 0px 1px 1px 0 rgba(0, 0, 0, 0.15);
                i {
                    position: absolute;
                    right: -5px;
                    top: 9px;
                }
                &.disabled, &.disabled:hover {
                    background: #f0f0f0;
                    i {
                        @include opacity(20);
                    }
                }
                .headline {
                    overflow: hidden;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    font-size: 11px;
                    font-weight: 500;
                    width: 240px;
                    display: inline-block;
                }
                .desk-details {
                    display: flex;
                    font-size: 10px;
                    margin: 4px 0;
                    span:first-of-type {
                        flex-grow: 1;
                    }
                }
                em {
                    font-size: 10px;
                    font-weight: 500;
                    color: #888;
                    float: left;
                    padding-right: 10px;
                }
            }
            .msg {
                padding: 0 20px;
            }
        }
    }
    .fieldset {
        button {
            text-align: center;
            width: auto;
            min-width: 50px;
            clear: none;
            margin-right: 10px;
            float: right;
        }
    }
}

.online-users {
    float: left;
    height: $nav-height;
    padding-left: 15px;
    margin-left: 5px;
    > * {
        display: inline-block;
        vertical-align: middle;
        margin: 0;
        padding: 16px 0;
        line-height: 13px;
    }
}


// Timezone picker
// ---------------------------------------------

[sd-timezone] {
    .timezone-label {
        margin-bottom: 1rem;
    }
    .input-term input {
        height: 3.2rem;
        margin-bottom: 5px;
        width: 100%;
        transition: border linear 0.2s, box-shadow linear 0.2s, background-color linear 0.2s;
        border: none;
        border-radius: 2px;
        background-color: rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid rgba(0, 0, 0, 0.15);
        font-size: 1.3rem;
        color: inherit;
        padding-left: 1rem;
        &:hover {
            border-bottom-color: rgba(0, 0, 0, 0.3);
            background-color: rgba(0, 0, 0, 0.1);
        }
        &:focus {
            box-shadow: 0 1px 0 0 $sd-blue;
            border-color: $sd-blue;
        }
    }

    .item-list {
        width: 100%;
        color: $sd-text;
    }

    .pills-list {
        li {
            padding: 0.7rem 1rem;
            display: flex;
            align-items: center;
            font-size: 1.3rem;

            .icon-remove-sign {
                color: inherit;

            }
            #timezone {
                padding-right: 2.5rem;
                flex-grow: 1;
            }
        }
    }
}

[class^="--dark-ui"],
[class*="--dark-ui"] {
    [sd-timezone] {
        .input-term input {
            background-color: rgba(255, 255, 255, 0.05);
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            &:hover {
                border-bottom-color: rgba(255, 255, 255, 0.4);
                background-color: rgba(255, 255, 255, 0.1);
            }
            &:focus {
                box-shadow: 0 1px 0 0 $sd-blue;
                border-color: $sd-blue;
            }
        }
    }
}


// Datepicker - wrapper for angular ui datepicker
// ---------------------------------------------
.datepicker-input, .timepicker-input {
    position: relative;
    width: auto;
    min-width: 130px;
    input {
        width: 100%;
        transition: border linear 0.2s, box-shadow linear 0.2s, background-color linear 0.2s;
        padding-right: 3.2rem;
        padding-left: 1.2rem;
        min-height: 3.2rem;
        border: none;
        border-radius: 2px;
        background-color: rgba(0, 0, 0, 0.05) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.15);
        font-size: 1.3rem;
        color: inherit;
        &:hover {
            border-bottom-color: rgba(0, 0, 0, 0.3);
            background-color: rgba(0, 0, 0, 0.1)  !important;
        }
        &:focus {
            box-shadow: 0 1px 0 0 $sd-blue;
            border-color: $sd-blue;
        }
        &.ng-invalid {
            color: #d10000;
            border-color: #b61818 !important;
            box-shadow: 0 1px 0 0 #b61818 !important;
        }
    }
    .icn-btn {
        position: absolute;
        right: 2px; top: 2px;
    }
}

.datepicker-input--dark, .timepicker-input--dark {
    input {
        transition: border linear 0.2s, box-shadow linear 0.2s, background-color linear 0.2s;
        background-color: rgba(255, 255, 255, 0.05) !important;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 1.3rem;
        line-height: 1.8rem;
        color: inherit;
        min-height: 32px;
        padding-left: $sd-base-increment * 1.5 !important;
        &:hover {
            border-bottom-color: rgba(255, 255, 255, 0.4);
            background-color: rgba(255, 255, 255, 0.1) !important;
        }
        &:focus {
            box-shadow: 0 1px 0 0 $sd-blue;
            border-color: $sd-blue;
        }
    }
    .icn-btn {
        background: transparent;
        top: 50%;
        margin-top: -14px;
    }
    .name {
        background-color: #4f4f4f;
        height: 24px;
        font-size: 12px;
        color: $white;
    }

    ul > li {
        width: 90%;
    }
}

.datepicker-wrapper {
    position: absolute;
    top: 0; left: 0;
    z-index: 2000;
    background: #fff;
    padding: 10px;
    @include box-shadow(0 0 5px 0 rgba(0,0,0,0.45));
    @include border-radius(3px);
    width: 260px;
    @include border-box();

    .btn {
        &:hover {
            @include box-shadow(none);
        }
        height: 28px;
    }
    .btn--mini {
        padding: 4px 6px;
        font-size: 11px;
        line-height: 11px!important;
        height: auto;
    }
    table {
        width: 100%;
        border-collapse: collapse;
        border: 0;
        td, th {
            padding: 1px;
            border: 0;
        }
    }
    .datepicker-additional {
        margin-bottom: 5px;
        table {
            width: 100%;
        }
        .btn {
            width: 100%;
        }
    }
    .datepicker-core {
        table {
            width: 100%;

            thead {
                tr {
                    th {
                        .btn {
                            background: none;
                            padding: 0;
                        }
                    }
                    &:last-child {
                        th {
                            small {
                                @include text-semibold();
                            }
                        }
                    }
                    &:first-child {
                        th {
                            .btn strong {
                                font-weight: normal;
                                font-size: 14px;
                            }
                            .btn i {
                                display: inline-block;
                                width: 14px;
                                height: 14px;
                                background-repeat: no-repeat;
                            }
                            &:first-child .btn i {
                                margin-left: 3px;
                                background-position: -189px -165px;
                            }
                            &:last-child .btn i {
                                margin-right: 3px;
                                background-position: -213px -165px;
                            }
                        }
                    }
                }

            }
            tbody {
                tr:first-child td {
                    padding-top: 5px;
                }
                td {
                    padding: 0 2px;
                    .btn {
                        width: 100% !important;
                        min-width: 28px !important;
                        padding: 0;
                        background: none;
                        color: #333;
                        @include box-shadow(none);
                        .text-muted {
                            color: #999;
                        }
                        &:hover, &.active {
                            color: #333;
                            @include box-shadow(inset 0 0 1px 0 $sd-blue);
                            background: $sd-hover;
                        }

                        &.btn--primary, &.btn--primary.active {
                            //selected date
                            color: #fff;
                            background: $sd-blue;
                            .text-muted {
                                color: #fff;
                            }
                        }


                    }
                }
            }
        }
    }
}

.timepicker-popup {
    position: absolute;
    top: 0; left: 0;
    z-index: 2000;
    background: #fff;
    padding: 10px;
    @include box-shadow(0 0 5px 0 rgba(0,0,0,0.45));
    @include border-radius(3px);
    width: 200px;
    min-height: 310px;
    @include border-box();
    .timepicker-additional {
        margin-bottom: 5px;
        table {
            width: 100%;
            border-collapse: collapse;
            border: 0;
            td, th {
                padding: 1px;
            }
        }
        .btn {
            width: 100%;
            letter-spacing: 0;
        }
        .btn--mini {
            padding: 4px 6px;
            font-size: 11px;
            line-height: 11px!important;
            height: 20px;
        }
    }
    .timepicker-core {
        .select-area {
            margin-top: 15px;
            border-top: 1px solid #ddd;
            .header {
                margin-top: -10px;
                float: left;
                background: $white;
                text-transform: uppercase;
                color: #adadad;
                font-size: 11px;
                padding-right: 10px;
            }
            ul {
                padding-top: 15px;
                @include clearfix();
                > li {
                    float: left;
                    @include border-box();
                    width: 28px;
                    height: 28px;
                    line-height: 28px;
                    text-align: center;
                    margin: 0 2px 2px 0;
                    @include user-select(none);
                    @include border-radius(2px);
                    &:hover {
                        background: $sd-hover;
                        cursor: pointer;
                    }
                    &.active {
                        background: $sd-blue;
                        color: $white;
                    }
                }
            }
        }
    }
}

// Timezone picker
// ---------------------------------------------
.pills-list.line-input {
    > li {
        width: 100%;
        border-radius: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.15)!important;
        background-color: transparent;
        padding: 0;
        height: 24px;
        @include box-shadow(none);
        .actions {
            top: -9px;
        }
        &:hover {
            border-color: rgba(0,0,0,0.3) !important;
            background-color: transparent !important;
            @include box-shadow(none);
        }
        &:focus {
            box-shadow: 0 1px 0 0 $sd-blue !important;
            border-color: $sd-blue !important;
            background-color: transparent !important;
        }
    }
}

/*
    ----------------------------------------------------------------------
    OTHER CUSTOM ELEMENTS
    ----------------------------------------------------------------------
*/


// Back screen button
// ---------------------------------------------
.backlink, a.backlink {
    text-decoration: none !important;
    color: $sd-text;
    border:0;
    @include transition(all ease 0.2s);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    padding: 0;
    margin: 0;
    cursor: pointer;
    &:before {
        font-family: 'sd_icons';
        font-weight: normal;
        font-style: normal;
        content: "\e677";
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        font-size: 16px;
        flex-grow: 0;
        margin: -1px 8px 0 0;
        text-decoration: none !important;
        @include transition(all ease 0.2s);
        opacity: 0.7;
    }
    &.white {
        color: $white;
    }
    &:hover {
        color: $sd-blue;
        text-decoration: none !important;
        &:before {
            text-decoration: none !important;
            margin: -1px 10px 0 -2px;
            opacity: 1;
        }
    }
}
.stage-header__name {
    a {
        @include transition(all ease 0.2s);
    }
}

.widget-content {
    .stage-header__name {
        a {
            text-decoration: none !important;
        }
    }
}



// Activity log
// ---------------------------------------------

.activity-log {     //activivty log styles
                    margin-top: 10px;
                    ul {
                        margin:0;
                        padding: 0;
                        list-style-type: none;
                        li {
                            &.activity {
                                .activity-content {
                                    margin-top: -3px;
                                    padding-right: 20px;
                                    color: #555;
                                    b {
                                        @include text-semibold();
                                    }
                                }
                                .activity-date {
                                    font-size: 11px;
                                    color: #999;
                                    margin-top: -5px;
                                }

                                &.with-date {
                                    margin-top: 35px;

                                    .date {
                                        border-top:1px solid #ebebeb;
                                        top: -17px;
                                        position:  absolute;
                                        right: 0;
                                        left: 0;
                                        span {
                                            font-size: 12px;
                                            color: #999;
                                            margin-top: -10px;
                                            display: block;
                                            float: left;
                                            background: $background-main;
                                            padding-right: 5px;
                                        }
                                    }
                                }
                                &:hover {
                                    cursor: default;
                                }
                            }
                        }
                    }
}
.activity-load-more {
    width: 100%;
    font-size: 12px;
    margin: 20px 0;
}


// Notificaton list
// ---------------------------------------------

.notification-list {
    margin: 0 1rem;
    margin-bottom: 20px;
    list-style-type: none;

    li {
        background: #393939;
        padding: 10px 5px;
        @include box-sizing(border-box);
        @include border-radius(2px);
        width: 100%;
        min-height: 45px;
        margin:10px 0;
        @include box-shadow(0 1px 3px 0 rgba(0,0,0,0.5));

        .content {
            padding-left: 40px;
            .text {
                margin:0;
                font-size: 12px;
                overflow: hidden;
                color: #d7d7d7;
            }
            .date , .date time, time {
                font-size: 11px;
                color: #848484;
                margin-top: -3px;
                display: block;
            }
            a {
                cursor: pointer;
                color: $sd-blue;
                &:hover {
                    text-decoration: none;
                    color: lighten($sd-blue, 15%);
                }
            }
        }
        &.unread {
            border-color: #545454;
            background: #2c2c2c;
        }
        &.important {
            border: 1px solid #a60101 !important;
            @include box-shadow-both(inset 0px 0px 1px 1px #e4b2b2, 0px 2px 2px 0px #d8d8d8 !important);
        }
        &.personal, &.important {
            border: 1px solid #c8c8c8;
            @include border-radius(3px);
            background: #fff;
            padding: 5px;
            margin-bottom: 7px;
            @include box-shadow(0px 2px 2px 0 #d8d8d8);
            + li {
                border-top-width: 0;
                &.personal, &.important {
                    border-top-width: 1px;
                }
            }
        }
        .info {
            color: #e0e0e0;
        }
    }

    //bright version
    &.white {
        li {
            background: #fff;
            border-color: #dedede;
            @include box-shadow(0 1px 3px 0 rgba(0,0,0,0.12));
            .content {
                .text {
                    color: #333;
                }
            }
            &.active {
                border-color: #999;
                @include box-shadow(0 1px 2px 0 #666);
            }
        }
    }
}

.notification-pane {
    ::-webkit-scrollbar:hover {
        background-color: #4a4a4a;
    }

    ::-webkit-scrollbar-thumb {
        background: #5a5a5a;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #666;
    }
}

// Hard error
// ---------------------------------------------

.hard-error {
    position: fixed;
    top: 0;
    right: 200px;
    z-index: 9999;
    width: auto;
    max-width: 400px;


    .alert {
        @include border-radius(0);
        border: 0;
        @include box-sizing(border-box);
        height: 40px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 40px;
        padding: 0 15px;
    }

    .alert-error {
        background-color: #612525;
        color: #cc7c7b;
        text-shadow: none;
    }

    &:hover {
        .alert {
            height: auto;
            line-height: 20px;
            padding: 10px 15px;
            overflow: visible;
            white-space: pre-wrap;
        }
    }
}


// Pagination
// ---------------------------------------------

.sd-pagination {
    padding: 7px 20px;
    .btn {
        i { margin-right: 0; }
    }
    .page-info {
        // line-height: 34px;
        margin-right: 20px;
        display: inline-block;
        // vertical-align: middle;
        input {
            display: inline-block;
            width: 30px;
            text-align: center;
            margin-top: -1px;
            padding: 6px 3px !important;
            @include border-radius(5px);
            margin: 0 5px;
            @include box-shadow(inset 0 5px 5px -5px #acacac);
        }
    }
    .btn-group, .btn-group > .btn {
        display: inline-block;
        vertical-align: middle;
        float: none;
    }
    .btn-group > .btn + .btn {
        margin-left: 0px;
    }
}


// Assignment menu
// ---------------------------------------------

.assignment-menu {
    .assignment-box {
        width: 270px;
        h5 {
            border:0;
        }
        .assignment-content {
            .assignment-result-list {
                margin-top: 10px;
                height: 140px;
                overflow: auto;
                ul {
                    list-style-type: none;
                    margin: 0; padding: 0;
                    li {
                        height: 32px;
                        margin-bottom: 3px;

                        span {
                            font-size: 13px;
                            color: #4f4f4f;
                            line-height: 24px;
                            margin-left: 10px;
                        }
                    }
                }
            }
        }
    }

}


// Sortbar
// --------------------------------------------------
.sortbar {
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin: 0 5px;
    padding: 0 10px;

    > * + * {
        margin-left: 4px;
    }
    .lab {
        margin-right: 10px;
    }
    .dropdown__toggle {
        color: $sd-gray-text;
        min-width: auto !important;
    }
    .direction {
        background: none;
        @include opacity(80);
    }
}

// Selection list
// ---------------------------------------------

.selectionlist {
    list-style-type: none;
    padding: 2px;
    width: 100%;
    @include box-sizing(border-box);
    margin: 0;
    overflow: auto;
    li {
        line-height: 16px;
        height: 16px;
        padding: 4px;
        margin-bottom: 3px;
        @include border-radius(3px);
        background: #e8e8e8;
    }
    .sf-toggle-custom {
        margin-top: -1px;
        float: right;
    }
}



// Plain list
// ---------------------------------------------

.plain-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
    &.plain-border-top {
        border-top:1px solid #e5e5e5;
    }
    > li {
        border-bottom:1px solid #e5e5e5;
        height: 41px;
        line-height: 40px;
        cursor: pointer;
        position: relative;
        padding: 0 5px;
        @include border-box();

        &:hover {
            background: $sd-hover;
        }
        .btn--mini {
            margin-top: 10px;
        }
    }
}

.plain-small {
    > li {
        height: 31px;
        line-height: 30px;
    }
}

.users-list {
    > li {
        .name {
            font-size: 13px;
            color: $sd-blue-text;
        }
    }
}

.sd-mentions-item {
    > div {
        display: flex;
        align-items: center;
        padding: 4px;
        min-height: 38px;

        * + * {
            margin-left: 6px;
        }
    }

    &.active {
        > div {
            background: lighten($sd-blue, 10%);
            cursor: pointer;
            color: #fff;
        }
    }
}

.users-list-embed {
    position:relative;
    > li {
        padding: 4px 6px;
        clear: both;

        &:hover, &.active {
            cursor: pointer;
            color: #fff;
        }
        &:hover {
            background: lighten($sd-blue, 10%);
        }
        &:active {
            background: lighten($sd-blue, 15%);
        }
        &.active {
            background: $sd-blue;
        }
        &.inactive {
            color: #ccc;
        }
    }
}
// Card list
// ---------------------------------------------
.mentio-menu {
    padding: 5px;
    border: 1px solid #ddd;
    max-height: 126px;
    z-index: 9999 !important;
    overflow: auto;
    background: #fff;
    @include border-radius(3px);
    @include box-shadow(0 0 2px 0 rgba(0,0,0,0.2));
    width: 190px;
    bottom: 5px;
    ul {
        li {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
    }
}

// Card list
// ---------------------------------------------
.card-list > li , .card {
    display: block;
    padding: 10px;
    background: #fff;
    border: none;
    @include box-shadow(0px 1px 2px 0 rgba(0,0,0,0.12));
    @include border-radius(2px);
    margin-bottom: 7px;
    position: relative;
    &:not([disabled]):hover {
        cursor: pointer;
        @include box-shadow(0px 1px 3px 0 rgba(0,0,0,0.35));
        .action {
            display: block !important;
        }
    }
    &.selected {
        background-color: $sd-hover;
        @include box-shadow(0px 1px 3px 0 rgba(0,0,0,0.35));
        &:hover {
            @include box-shadow(0px 1px 3px 0 rgba(0,0,0,0.45));
        }
    }
    &[disabled] {
        cursor: default !important;
        background-color: rgba(255,255,255,0.45);
    }
    .action {
        display: none;
        position: absolute;
        right: 0; top: 0; bottom: 0;
        min-width: 200px;
        ul {
            height: 100%;
            text-align: right;
        }
        .item-field {
            height: 100%;
            span {
                display: none;
            }
            a {
                padding: 0 23px;
                line-height: 62px;
                display: block;
            }
        }

    }
}
.active {
    .card {
        background-color: $sd-hover;
        @include box-shadow(0px 1px 3px 0 rgba(0,0,0,0.35));
        &:hover {
            @include box-shadow(0px 1px 3px 0 rgba(0,0,0,0.45));
        }
    }
}


// Pils list
// ---------------------------------------------
.pills-list {
    max-width: 650px;
    > li {
        @include user-select(none);
        background: #fff;
        margin-bottom: 6px;
        margin-right: 2px;
        @include border-radius(2px);
        padding: 10px 16px;
        min-height: 18px;
        color: inherit;
        position: relative;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.08);
        transition: all ease-in-out 0.2s;
        &:hover {
            box-shadow: 0 0px 3px rgba(0, 0, 0, 0.3), 0 0 1px rgba(0, 0, 0, 0.2);
        }
        &.active {
            background: $sd-blue;
            @include box-shadow(inset 0 2px 0 darken($sd-blue, 10%));
            &:not(.editable) {
                color: $white;
            }

        }
        &.inactive {
            opacity: 0.5;
        }
        &.empty-info {
            background: transparent;
            border: 1px dotted rgba(123, 123, 123, 0.5);
            opacity: 0.75;
            box-shadow: none !important;
        }
        .dropdown {
            margin-top: -3px;
        }
        .actions {
            display: none;
            position: absolute;
            top: 0px;
            right: 4px;
            button {
                transition: opacity ease-in-out 0.2s;
                border: 0;
                height: 30px;
                width: 30px;
                margin: 3px;
                background: none;
                text-align: center;
                display: block;
                float: left;
                line-height: 0;
                opacity: 0.4;
                &:hover {
                    cursor: pointer;
                    opacity: 1;

                }
                i {
                    margin-top: -2px;
                }
            }
        }
        h6 {
            text-transform: none;
            color: inherit;
            font-size: 14px;
            @include text-light();
            float: left;
            max-width: 99%;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
        .label-group {
            display: inline-block;
            &.label-group--right {
                float: right;
            }
        }
        .label {
            font-size: 9px;
            @include text-bold();
            padding: 2px 5px;
            line-height: 12px;
            margin-left: 5px;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            font-weight: 400;
        }
        &:hover {
            .actions {
                display: block !important;
            }
            h6 {
                max-width: 550px;
            }
        }
        h5 {
            display: inline-block;
        }
    }
    &.pills-editable {
        li {
            &.editable {
                padding: 0;
                height: auto;
                background: transparent;
                input {
                    height: 30px;
                    line-height: 30px;
                    @include border-radius(3px);
                }

            }
        }
    }
}

[class^="--dark-ui"],
[class*="--dark-ui"] {
    .pills-list {
        > li {
            background: #4f4f4f;
        }
    }
}


.pill-small {
    width: 200px;
    margin: 4px;
}


// Activiites
// ---------------------------------------------
.item-field {
    border-left: 1px solid #d8d8d8;
    display: inline-block;
    span {
        display: none;
    }
    button {
        border: 0;
        padding: 0;
        background: none;
        vertical-align: text-top;
    }
    &:hover {
        background: rgba(0,0,0,0.10);
        border-color: #e0e0e0;
    }
    &.disabled {
        cursor: default;
        i {
            @include opacity(30);
        }
        &:hover {
            background: #e8e8e8;
        }
    }
}

.dropdown .item-field {
    display: block;
    border-left: 0;
    span {
        display: inline-block;
    }
}

.dropdown .item-field {
    &:hover {
        background: none;
    }
}


// OR label
// ---------------------------------------------

.or-label {
    position: relative;
    text-align: center;
    font-style: italic;
    &:before {
        content: "_________";
        position: absolute;
        top: -6px;
        color: #d0d0d0;
        left: 50%;
        margin-left: -75px;
    }
    &:after {
        content: "_________";
        position: absolute;
        top: -6px;
        color: #d0d0d0;
        left: 50%;
        margin-left: 15px;
    }
}



// List group
// ---------------------------------------------

.list-group {
    @include box-sizing(border-box);
    width: 300px;
    .list-group-item {
        padding: 10px 15px;
        border: 1px solid #ddd;
        border-width: 0 1px 1px 1px;
        background-color: #fff;
        &:first-child {
            border-width: 1px;
            @include border-radius(5px 5px 0 0);
        }
        &:last-child {
            @include border-radius(0 0 5px 5px);
        }
        &:hover {
            background-color: #f4f4f4;
            cursor: pointer;
        }
        a {
            text-decoration: none;
            color:#444;
        }
    }
}

// Scroll shadow
// ---------------------------------------------

.shadow-list-holder {
    overflow-y: auto;
    width: 100%;
    max-height: 100%;
    min-height: 100%;
    box-sizing: border-box;
}
.scroll-shadow {
    height: 0;
    .inner {
        background: -webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.10)),to(transparent));
        height: 4px;
        position: relative;
        z-index: 503;
        @include transition(linear .1s all);
        @include opacity(0);
    }
    &.shadow {
        .inner {
            @include opacity(100);
        }
    }
}


// Toggle box
// ---------------------------------------------

.toggle-box__button {
    transition: color ease-in-out 0.2s;
    color: $grayLight;
    cursor: pointer;
    i {
        color: inherit;
        margin-right: 5px;
        vertical-align: text-bottom;
    }
    &:hover {
        text-decoration: none;
        color: $white;
    }
}


// Animations
// ---------------------------------------------

.fade {
    @include transition(opacity .15s linear);
    opacity: 0;
    &.in {
        opacity: 1;
    }
}


// Close icon
// ---------------------------------------------

.close {
    float: right;
    line-height: $baseLineHeight;
    @include opacity(20);
    &:hover {
        text-decoration: none;
        @include opacity(40);
        cursor: pointer;
    }
    i {
        vertical-align: middle;
    }
}


// DEFAULT TOGGLE BUTTON
// ---------------------------------------------




// DRAG & DROP
// ---------------------------------------------
.draggable-list__item {
    background-color: #fff;
    padding: 18px 14px 19px 25px;
    margin-bottom: 10px;
    cursor: move;
    @include box-shadow (0 1px 4px 0 rgba(0,0,0,0.2));
    position: relative;
    &.placeholder {
        background: none;
        @include box-shadow(none);
        border: 2px dashed #ebebeb;
    }
    &:after {
        content: "";
        width: 10px;
        top: 0;
        bottom: 0;
        left: 2px;
        background: transparent url(~images/draggable-bg.png) repeat-y left 3px top 3px;
        opacity: 0.2;
        position: absolute;
        display: block;
    }
    &:hover {
        @include box-shadow (0 1px 4px 0 rgba(0,0,0,0.4));
        &:after {
            opacity: 0.8;
        }
    }
    &--small {
        padding: 10px 14px 10px 25px;
    }
    &--no-padding {
        padding: 0 0 0 8px;
        &:after {
            width: 6px;
            left: 2px;
            background: transparent url(~images/draggable-bg.png) repeat-y left 0px top 3px;
        }
    }
}
.draggable-list.serial-decimal {
    list-style-type: decimal !important;
    padding-top: 0px;
    margin-left: 5px;
    > li {
        word-spacing: 2px;
        line-height: 0px;
    }
    .sort-item {
        &.active {
            background-color: #eee;
        }
    }
}

// HANDLE FOR SPLITTER
// ----------------------------------------------
.ui-resizable-e {
    cursor: col-resize !important;
}

// SPINNER
// ----------------------------------------------
.spinner-big {
    background-image: url("~images/loading-large.gif");
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    width: 100%;
    height: 40px;
    line-height: 40px;
    vertical-align: middle;
    text-align: center;
}
.spinner-alt {
    background-image: url("~images/loading-small.gif");
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    width: 100%;
    height: 32px;
    line-height: 32px;
    vertical-align: middle;
    text-align: center;
}

// SD-CHECK Override - should be removed once CSS is cleared
// --------------------------------
.sd-check__wrapper .sd-checkbox+label {
    font-size: 13px;
    font-weight: 400;
    color: inherit;
    height: auto;
    text-transform: none;
    &.label--active {
        color: #479dc0;
    }
}

.sd-toggle+label {
    font-size: 13px;
    font-weight: 400;
    color: #333;
    height: auto;
    text-transform: none;
}


// Definition list

.definition-list {
    .definition-list__term {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
        font-weight: 400;
    }
    .definition-list__item {
        padding: 0.3rem 0;
        margin-left: 0;
        font-size: 1.4rem;
        font-weight: 300;
    }
    .definition-list__item + .definition-list__term {
        margin-top: 2rem;
    }
}

.nav-button-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    .btn {
        flex-grow: 0;
        flex-shrink: 0;
    }
}

.sd-line-input__message--with-char-count {
    padding-right: 10rem;
}

.sd-list-item {
    &.inactive {
        background-color: transparent;
        color: rgba(123, 123, 123, 0.75);
    }
}

.sd-toggle + label {
    letter-spacing: 0;
}

.sd-list-item__text-label {
    time {
        padding: 0;
        font-style: normal;
    }
}

[sd-meta-terms] {
    min-height: 2.8rem;
}

.line-input--boxed {
    .input-term {
        input[type="text"] {
            width: 100%;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            border: 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.15);
            font-size: 1.4rem;
            border-radius: 2px;
            background-color: rgba(0, 0, 0, 0.05);
            padding: 0 1rem;
            height: 3.2rem;
            transition: border linear 0.2s, box-shadow linear 0.2s, background-color linear 0.2s;
            &:hover {
                border-color: rgba(0, 0, 0, 0.3) !important;
                background-color: rgba(0, 0, 0, 0.1) !important;
            }
            &:focus {
                background-color: rgba(0, 0, 0, 0.05) !important;
                box-shadow: 0 1px 0 0 #5ea9c8 !important;
                border-color: #5ea9c8 !important;
            }
        }
    }
    .terms-list {
        width: 100%;
        margin-top: 0.8rem;
    }

}

sd-tag-input + .sd-line-input__message {
    margin-top: -2rem;
}

sd-multi-image-edit {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.sd-wrap-helper {
    display: contents !important;

}
.subnav {
    z-index: 5;
}
.subnav + .subnav {
    z-index: 4;
}

.sd-margin-all--0 {
    margin: 0 !important;
}


.locked-info {
    display: flex;
    align-items: center;
    background: #EA484B;
    color: $white;
    padding: 0.4rem;
    padding-right: 0;
    height: 3.2rem;
    border-radius: 1.6rem;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
}
.locked-info__label {
    opacity: 0.8;
    font-weight: 300;
    margin-right: 0.4rem;
}
.locked-info__name {
    font-weight: 400;
    margin-right: 1.2rem;
}
.locked-info__button {
    display: flex;
    align-items: center;
    height: 2.4rem;
    border-radius: 1.2rem;
    padding: 0 1.4rem;
    background-color: transparent;
    transition: background-color 0.2s ease-out, color 0.1s ease-out;
    color: $white;
    font-size: 1.1rem;
    line-height: 100%;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0.4rem 0 0;
    &:hover {
        background-color: rgba(0,0,0,0.16);
    }
}

.locked-info__avatar {
    margin-right: 4px;
    margin-left: -2px;
    transform: scale(0.9);
}

.sd-dropdown-item {
    display: block;
    width: 100%;
    white-space: nowrap;
    color: #333;
    padding: .6rem 1.6rem;
    margin-bottom: .2rem;
    font-size: 1.3rem;
    text-align: left;

    &:hover {
        background: #eff7fa;
    }
}

.sd-alert {
    [class^="icon-"],
    [class*=" icon-"] {
        color: inherit;
    }
}
.sd-content-box {
    border-radius: 4px;
    &--light {
        background-color: $white;
    }
    &--emphasise {
        background-color: $white;
        border: 1px solid rgba(94, 169, 200, 0.6);
    }
}

.sd-position--relative {
    position: relative !important;
}
.sd-position--absolute {
    position: absolute !important;
}
.sd-empty {
    display: contents !important;
}

.a11y-only {
    position: absolute;
    top:0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    height: 1px;
    overflow: hidden;
}

.panel__heading {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
    margin: 0;
    font-size: 1.5rem;
    color: inherit;
    opacity: 0.8;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 48px;
}

.main-section--pinned-tabs {
    .authoring-header,
    .main-article {
        margin-right: 325px;
    }
    .authoring-sticky {
        margin-right: 333px;
    }
    .pinned-tab__wrapper {
        width: 330px;
        box-shadow: -1px 0 0 rgba(0, 0, 0, 0.1);
    }
}
.pinned-tab__wrapper {
    background-color: #fff;
    width: 0;
    overflow: hidden;
    position: absolute;
    right: 48px;
    top:0;
    bottom: 32px;
    z-index: 1;
}

.pinned-tab__wrapper {
    overflow: hidden;
    .tabcontent {
        padding: 0;
        box-sizing: border-box;
        position: absolute;
        bottom: 0;
        top: 0;
        left: 1px;
        right: 1px;
        overflow: hidden;
    }
    .sd-widget {
        width: auto;
        height: 100%;
        position: relative;
        border: 0;
    }
    .sd-widget .widget-content {
        background-color: #f8f8f8;
        margin-top: 0;
        overflow: auto;
        bottom: 0;
        display: grid;
        grid-template-rows: auto 1fr auto;
        grid-template-columns: 1fr;
    }
    .sd-widget .widget-line {
        display: none;
    }
    .sd-widget .widget-content {
        background-color: #f8f8f8;
        margin-top: 0;
        overflow: auto;
        bottom: 0;
        display: grid;
        grid-template-rows: auto 1fr auto;
        grid-template-columns: 1fr;
    }
    .sd-widget .widget-content__main {
        grid-row: 2/3;
        grid-column: 1/2;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .sd-widget .widget-content__footer {
        grid-row: 3/4;
        grid-column: 1/2;
        position: relative;
    }
    .sd-widget .widget-header {
        height: 48px;
        box-sizing: border-box;
        background-color: #f8f8f8;
    }
    .sd-widget .widget-header .widget-title {
        line-height: 100%;
        font-size: 1.4rem;
        padding: 0 1rem;
    }
    .sd-widget.related-item .existing-items {
        top: -35px;
    }
    .sd-widget.ingest .preview, 
    .sd-widget.archive .preview, 
    .sd-widget.related-item .preview,
    .sd-widget.aggregate .preview,
    .sd-widget.package-manager .preview,
    .sd-widget.packages .preview,
    .sd-widget.user-activity .preview {
        top: 0;
    }


}
.workqueue .main-section--pinned-tabs .widget-wrapper.active-right .tabpane.right-tabpane {
    display: none !important;
}

.pinned {
    .sd-sidetab-menu__btn {
        background: rgba(0, 0, 0, 0.12);
        pointer-events: none;
        [class^="big-icon-"],
        [class*=" big-icon-"] {
            color: rgba(255, 255, 255, 0.5) !important;
        } 
    }
}
