@import "../../../Base/Content/sass/bootstrap/variables";
@import "../../../Base/Content/sass/compass";
@import "../../Branding/Content/Partials/Variables";

@media (min-width: 992px) {
    .event-overview {
        &-container {
            display: flex;
            flex-wrap: wrap;
            margin: 0 -15px;
        }

        &-sidebar {
            flex: 1 0 160px;
            background-color: #eaeaea;
            margin-left: 15px;
        }

        &-content {
            flex: 2 0 66.6%;
            margin: 0 15px;
        }

        &-filters {
            .nav {
                margin-bottom: 15px;
            }
        }
    }
}

.w365cm-cards {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -25px;
}

.w365cm-card {
    flex: 1 0 250px;
    max-width: 460px;
    padding: 10px;
}

@supports (display: grid) {
    .w365cm-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.KursusOversigt3 #contentRow {
    background-color: #e4e4e4;

    #wizdomPageLayout {
        margin: 14px;
    }
}

.w365cm {
    .wt-capFirstLetter:first-letter {
        text-transform: uppercase;
    }

    .hover-pointer:hover {
        cursor: pointer;
    }

    .course-info-table {
        TD {
            vertical-align: top;
        }

        .label-col {
            width: 30%;
        }
    }

    .find-colleague-result {
        .w365cm-users {
            padding: 5px;

            .selected {
                background-color: rgba(51, 122, 183, 0.19);
                border: 1px solid rgba(51, 122, 183, 0.50);
            }

            .wizdom-user {
                position: relative;
                padding-top: 5px;
                border: 1px solid rgba(51, 122, 183, 0.50);
                min-height: 150px;

                .actionBtn {
                    position: absolute;
                    top: 10px;
                    right: 10px;
                }

                .glyphicons {
                    font-size: 20px;
                }

                .glyphicons-filter {
                    font-size: 10px;
                    line-height: 18px;
                }
            }
        }
    }
    //show all users
    .w365cm-users {
        min-height: 130px;
        text-align: center;

        .wizdom-user {
            margin: auto;
            margin-top: 30px;

            .imgColumn {
                margin: auto;
                display: block;

                .name a {
                    cursor: pointer;
                }
            }
        }
    }


    .course-content {
        padding-left: 60px;
        padding-right: 60px;
        padding-top: 27px;
        padding-bottom: 27px;
        background-color: #ffffff;
        font-size: 16px;
        min-height: 600px;
        margin-bottom: 9px;
        /*margin-right: 14px;*/
        .siteName {
            font-size: 24px;
            padding-bottom: 20px;
            text-transform: uppercase;
        }
    }

    .admin-btns {
        margin-bottom: 10px;

        > .row {
            margin-left: -30px;
            margin-right: -30px;
        }

        .dropdown-toggle {
            .ms-Icon {
                margin-right: 2px;
            }
        }

        .dropdown-menu {
            left: unset;
            right: 0;
            border-radius: 0;

            li {
                margin: 7px 0;

                .ms-Icon {
                    padding-right: 5px;
                }
            }
        }
    }


    .w365cm-collapse {
        padding-top: 10px;
        padding-right: 0;

        .input-group {
            margin-bottom: 0;
        }

        .leftmenu-header {
            font-size: 24px;
            padding-left: 15px;
        }

        .clear-btn {
            padding-left: 10px;
            padding-right: 10px;
            background-color: #ebebeb;
            color: #070707;
            margin-right: 10px;
            margin-top: 11px;

            .glyphicons {
                vertical-align: bottom;
                padding-bottom: 3px;
                font-size: 16px;
            }
        }

        .filterForm {
            padding-top: 10px;
        }
    }

    .navbar {
        border: 0;
        margin-bottom: 10px;

        .navbar-form {
            margin-top: 0;
        }

        .navbar-collapse {
            padding-left: 0;
        }

        .navbar-header {
            background-color: #e4e4e4;

            .navbar-toggle {
                background-color: #ffffff;
                border-radius: 0;
                margin-left: 0;
                margin-right: 0;
                padding-top: 5px;
                padding-bottom: 5px;
                float: none;
                margin-right: 15px;
                padding-left: 20px;
                padding-right: 20px;
            }
        }
    }

    .navbar-default {
        background-color: transparent;
    }

    .navbar-nav .glyphicons {
        padding-right: 5px;
        vertical-align: bottom;
        padding-bottom: 2px;
    }


    .admin-btns a .glyphicons {
        line-height: 20px;
        float: left;
    }

    .signup-btns a .glyphicons {
        line-height: 20px;
        float: left;
    }

    .navbar-default.topmenu {
        padding-left: 0;
        padding-right: 0;
        border: 0;
        background-color: inherit;
    }

    .navbar-default.topmenu .navbar-nav > li > a {
        color: #666;
        padding-top: 5px;
        padding-bottom: 5px;
        padding-left: 0;
        padding-right: 0;
        cursor: pointer;

        &:hover {
            background-color: transparent;
        }
    }

    .navbar-default.topmenu .navbar-nav > li.disabled > a {
        color: #ccc;
    }

    .topmenu .navbar-collapse {
        overflow: hidden;
    }

    .navbar {
        border-radius: 0px;

        .selectedFilter {
            background-color: #ffffff;
        }

        .selectedFilter a {
            outline: 0;
        }
    }

    .thumbnail {
        min-width: 150px;
        border-radius: 0;
    }

    .canCreateSite {
        margin-right: -8px;
        float: right;

        .btn {
            margin-right: 8px;
        }
    }

    .overview-content {
        min-width: 340px;

        .navbar-default.topmenu {
            min-height: 0;
        }

        .w365cm-collapse {
            .navbar-right {
                margin-right: -15px;
            }
        }

        .w365cm-card {

            .w365cm-card-block {
                border: 1px solid #c8c8c8;
                background-color: #FFF;

                .thumbnail {
                    border: none;
                    border-bottom: 1px solid #c8c8c8;
                    margin-bottom: 10px;
                }

                .caption {
                    padding: 6px 10px 3px;
                    min-height: 240px;

                    .course-type {
                        color: #ffffff;
                        font-size: 12px;
                        /*background-color: #9dd108;*/
                        background-color: #00B5F7;
                        border-radius: 10px;
                        padding-left: 10px;
                        padding-right: 10px;
                        padding-top: 1px;
                        padding-bottom: 3px;
                    }

                    .topRightIcons {
                        margin-left: 2px;
                        font-size: 19px;
                        position: relative;

                        .ms-Icon {
                            margin-left: 2px;

                            &.ms-Icon--FavoriteStar,
                            &.ms-Icon--FavoriteStarFill {
                                top: -3px;
                            }

                            &.ms-Icon--Share {
                                top: -1px;
                            }
                        }
                    }

                    .course-title {
                        padding-top: 10px;
                        height: 60px;
                        overflow: hidden;
                        width: 100%;

                        a, a:visited, a:active, a:focus, a:link {
                            color: #333;
                            font-size: 18px;
                            line-height: 22px;
                            font-weight: 500;
                            text-transform: uppercase;
                        }
                    }

                    .course-level-container {
                        min-height: 18px;

                        .course-level {
                            font-size: 12px;

                            .course-level-text {
                                text-transform: uppercase;
                            }

                            .course-level-value {
                                color: #ffffff;
                                /*background-color: #9dd108;*/
                                background-color: #00B5F7;
                                border-radius: 10px;
                                padding-left: 10px;
                                padding-right: 10px;
                                padding-top: 1px;
                                padding-bottom: 3px;
                                margin-left: 6px;
                            }
                        }
                    }

                    .course-info {
                        font-size: 14px;
                        padding-top: 12px;
                        padding-bottom: 2px;
                        text-align: center;
                        height: 100px;

                        .col-3 {
                            display: inline-block;
                            width: 33%;
                            vertical-align: top;
                            /*&:first-child {
                                text-align: left;
                            }*/
                            &:last-child {
                                text-align: right;
                            }

                            .glyphicons {
                                font-size: 38px;
                                color: #333;
                                padding-top: 19px;
                            }

                            .ms-Icon {
                                font-size: 30px;
                                color: #333;
                                line-height: 1;
                            }

                            .location {
                                /*display: table;*/
                                span {
                                    line-height: 1.2;
                                    max-height: 49px;
                                    display: block;
                                    overflow: hidden;
                                }

                                .table-row {
                                    display: table-row;
                                }

                                .table-cell {
                                    display: table-cell;
                                    text-align: center;
                                }
                            }

                            .ongoing {
                                span {
                                    line-height: 1.2;
                                    display: block;
                                    max-height: 49px;
                                    overflow: hidden;
                                }
                            }

                            div.countdown {
                                margin-top: 17px;

                                .info-lg {
                                    font-size: 24px;
                                    line-height: 25px;
                                    padding: 1px 0 3px 0;
                                }

                                span {
                                    line-height: 1.1;
                                    display: block;
                                }
                            }



                            .info-lg {
                                font-size: 29px;
                                font-weight: 500;
                                color: #333;
                            }

                            .info-md {
                                font-size: 14px;
                                font-weight: 500;
                            }

                            .info-sx {
                                font-size: 10px;
                                text-transform: uppercase;
                            }
                        }
                    }

                    .bottom-align {
                        display: flex;
                        align-items: flex-end;
                    }

                    .search-highlight {
                        color: white;
                        background-color: #0072c6;
                    }
                }
            }
        }

        .selected-filters {
            .ms-Icon--Cancel {
                font-size: 13px;
            }
        }

        .pagination {
            > li > a {
                color: #a6a6a6;
            }

            > li.active > a {
                color: #0078d7;
                border: none;
                background: none;
            }

            > li.disabled > a {
                background: none;
                color: transparent;
            }
        }
    }

    .noCoursesFound {
        background-color: #ffffff;
        padding: 20px;
        text-align: center;
        /*margin-right: 10px;*/
    }

    .overview-header-row {
        margin-left: 0px;
        margin-right: 0px;
    }

    .overview-header {
        font-size: 36px;
        font-weight: 500;
    }


    .caption .bottom {
        width: 100%;
        padding-top: 16px;
        padding-bottom: 0;
        color: #767474;
        font-size: 14px;
    }

    .viewDetails {
        .btn {
            margin: 0;
        }

        .btn-primary {
            min-height: 35px;
            line-height: 35px;
        }

        .view-btn {
            border-radius: 0;
            width: 100%;
            color: #fff;
            text-transform: uppercase;
        }
    }

    .noParticipants {
        background-color: #fff;
        padding: 10px;
    }


    .sidebar-navbar-collapse.collapse.in {
        margin-bottom: 0;
    }
    /* left menu accordion**/
    .panel-title a, .panel-title a:visited, .panel-title a:active, .panel-title a:focus,
    .panel-title a:link,
    .panel-title .glyphicon {
        color: #000;
    }

    .panel-title {
        font-size: 14px;
    }

    h4.panel-title {
        font-size: 16px;

        a, a:link, a:visited, a:hover, a:link:hover, a:visited:hover {
            color: #626161;
        }

        .glyphicon {
            position: relative;
            top: 2px;
            color: #626161;
        }
    }

    .panel-group {
        .panel {
            border-radius: 0;
            border: 0;

            .panel-default {
                border: 0;
            }

            .panel-body {
                padding: 15px;
                background-color: #cecdcd;

                .form-control { /*background-color: #cecdcd; */
                }
            }

            .panel-heading {
                background-color: #eaeaea;
                cursor: pointer;
                border-bottom: 1px solid #e1e1e1;
                border-radius: 0;
            }
        }
    }




    .canvas-holder {
        position: relative;
        top: 8px;
    }

    .canvas-holder p {
        padding: 0;
        margin: 0;
    }

    .chart-title {
        position: absolute;
        right: 0;
        margin: 0 auto;
        /*top: 50%;
        transform: translateY(-50%);*/
        transform: translateY(30%);
        width: 72px;
        text-align: center;
    }

    .col-3 .info-sx {
        font-size: 9px;
        text-transform: uppercase;
        line-height: 9px !important;
    }

    .chart-title .percentage {
        font-size: 19px;
        font-weight: bold;
        line-height: 20px;
        color: #333;
        padding-top: 7px;
    }

    .chart-title .percentageText {
        font-size: 11px;
        padding-top: 3px;
        color: #333;
    }
    /* course details*/
    .course-header {
        height: 315px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 12px;

        .course-header-image {
            height: 100%;
            width: 100%;
            background-size: cover;
            background-position: center;
        }

        .course-header-overlay-background {
            position: absolute;
            width: 100%;
            height: 100%;
            background-color: white;
            opacity: 0.7;
            z-index: 10;
            left: 0px;
            top: 0px;
        }

        .course-header-overlay-text {
            position: absolute;
            z-index: 20;
            font: bolder;
            font-size: 28px;
            font-weight: 400;
            left: 0px;
            right: 0px;
            text-align: center;
        }

        .actions {
            height: 40%;
            width: 100%;
            position: absolute;
            bottom: 0;
            z-index: 30;
            left: 0px;

            .btn-default {
                border-radius: 0;
                min-width: 120px;
                margin-left: 5px;
            }

            .btn-primary {
                border-radius: 0;
                min-width: 120px;
                margin-left: 5px;
            }

            .block {
                text-align: center;
                vertical-align: middle;
            }

            .circle {
                background: rgba(255, 255, 255, 0.8);
                color: #000000;
                height: 104px;
                width: 147px;
                display: table;
                vertical-align: middle;
                display: table-cell;

                p {
                    margin-bottom: 0;
                    font-size: 24px;
                    line-height: 28px;
                }

                .circleDay {
                    font-size: 34px;
                    line-height: 38px;
                }
            }

            .left {
                position: absolute;
                bottom: 0;
                left: 30px;
            }

            .right {
                position: absolute;
                right: 20px;
                bottom: 10px;
                min-width: 300px;
                text-align: right;

                .glyphicons-user-add {
                    padding-right: 10px;
                }
            }
        }
    }
}

    .signup-others-form {
        .w365cm {
            .pagination {
                padding: 0;
            }

            .w365cm-users {
                .wizdom-user {
                    .name a {
                        cursor: pointer;
                    }

                    .imgColumn {
                        margin-top: 30px;
                        cursor: pointer;
                    }
                }
            }
        }
    }

    .w365cm-participantsDialog {
        .w365cm .w365cm-users {
            min-height: 130px;
            text-align: center;
        }

        .w365cm .w365cm-users .wizdom-user {
            margin: auto;
        }

        .w365cm .w365cm-users .wizdom-user .imgColumn {
            margin: auto;
            display: block;
        }

        .glyphicons-user-add {
            padding-right: 5px;
            position: relative;
            top: 4px;
        }

        .participantsDialogHeader {
            font-size: 20px;
            padding-top: 25px;
            padding-bottom: 15px;
        }
    }


    .w365cm.wt-webpart-header {
        min-width: 300px;
    }

    .w365cm.wt-webpart-metadata {
        background-color: #ffffff;
        padding: 20px;

        .metaTableHeading {
            text-transform: uppercase;
            font-size: 18px;
            padding-top: 11px;
            padding-left: 8px;
        }

        .metadata-table {
            margin: 10px;
            font-size: 15px;

            .glyphicons {
                position: relative;
                top: 4px;
            }

            .draftText {
                font-weight: bold;
            }
        }
    }
    /* course participants*/
    .wt-webpart-roles {
        background-color: #ffffff;
        padding-top: 20px;
        padding-left: 20px;
        padding-right: 20px;

        .rolesHeading {
            text-transform: uppercase;
            font-size: 18px;
            padding-top: 5px;
            padding-left: 8px;
            margin-bottom: 10px;
        }

        .wizdom-user {
            padding: 10px 18px;
        }

        .participantPhone {
            font-size: 14px;
        }

        .participantGroupName {
            padding-left: 71px;
            padding-top: 25px;
        }
    }

    .wt-role .bottom {
        margin-left: -20px;
        margin-right: -20px;
        margin-top: 15px;

        .glyphicon-menu-right {
            color: #ffffff;
            position: relative;
            top: 2px;
            font-size: 13px;
            padding-left: 5px;
        }
    }

    .wt-role .bottom .view-btn {
        border-radius: 0;
        width: 100%;
        color: #fff;
        text-transform: uppercase;
    }

    .wt-webpart-metadata td {
        border: 0 !important;
    }

    .info-xxlg {
        font-size: 50px;
        font-weight: 500;
        vertical-align: top;
        line-height: 40px;
    }

    .bootstrap-wrapper .thumbnail > img, .bootstrap-wrapper .thumbnail a > img {
        max-height: 240px;
    }

    .bootstrap-wrapper {
        .thumbnail {
            padding: 0;
            border: solid 1px #c8c8c8;

            .course-card-top {
                height: 157px;
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;

                .course-card-image {
                    height: 100%;
                    width: 100%;
                    background-size: cover;
                    background-position: center;
                }

                .course-card-overlay-background {
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    background-color: white;
                    opacity: 0.7;
                    z-index: 10;
                    left: 0;
                    top: 0;
                }

                .course-card-overlay-text {
                    position: absolute;
                    z-index: 20;
                    font: bolder;
                    font-size: 28px;
                    font-weight: 400;
                    left: 0;
                    top: 55px;
                    width: 100%;

                    > span {
                        text-align: center;
                        display: block;
                    }
                }
            }
        }

        .glyphicons.location:before {
            font-family: 'Glyphicons Regular';
            content: '\e243';
        }

        .glyphicons.started:before {
            font-family: 'Glyphicons Regular';
            content: '\e366';
        }

        .online-course {
            .glyphicons.location:before {
                font-family: 'Glyphicons Regular';
                content: '\e233';
            }

            .ms-Icon--POI:before {
                content: "";
            }
        }

        .sidebar-nav {
            .navbar {
                margin-bottom: 0;
            }

            .filterForm {
                .nav {
                    font-size: 14px;
                    padding-left: 15px;
                    padding-right: 15px;

                    li {
                        padding-top: 20px;

                        &:first-child {
                            padding-top: 0;
                        }

                        label.control-label {
                            margin-bottom: 6px;
                            font-weight: normal;
                        }
                    }
                }

                .form-control {
                    border-radius: 0;
                    font-size: 14px;
                }
            }
        }

        .modal-dialog .modal-content .modal-body {
            .participants-actions-menu {
                float: left;
                width: 100%;

                .nav-tabs {

                    li {
                        border-right: 2px solid $wizdom-button-default-border-color;
                        height: 25px;
                    }

                    &.pull-right {
                        li {
                            border-right: none;
                            border-left: 2px solid $wizdom-button-default-border-color;
                        }
                    }

                    .ms-Icon--GridViewSmall {
                        cursor: pointer;

                        &:hover, &.selected {
                            color: $wizdom-button-default-hover-text-color;
                        }
                    }
                }
            }
        }

        .table {
            input[type="checkbox"] {
                margin-top: -2px;
            }
        }
    }

    /* make sidebar nav vertical */
    @media (min-width: 992px) {
        .bootstrap-wrapper {
            .w365cm {
                .overview-content {
                    #w365cm-navbar-collapse-view {
                        .nav-tabs {
                            margin-bottom: 8px;
                        }
                    }

                    .overview-header {
                        margin-left: -15px;
                    }

                    .pagination {
                        margin-right: -15px;
                        padding: 0;
                    }
                }
            }
        }
    }

    @media (min-width: 768px) {
        .bootstrap-wrapper {
            .w365cm {
                .overview-content {
                    .canCreateSite {
                        float: left;
                        margin-right: 0;
                    }
                }
            }
        }

        .sidebar-nav .navbar li a {
            padding-top: 5px;
            padding-bottom: 5px;
        }
    }

    @media (min-width:768px) and (max-width:991px) {
        .bootstrap-wrapper {
            .w365cm {
                .sidebar-nav .filterForm {
                    .nav {
                        padding: 0;
                        margin: 0 -15px;

                        li {
                            width: 50%;
                            padding: 20px 15px 0;
                            float: left;

                            &:nth-child(1), &:nth-child(2) {
                                padding-top: 0;
                            }

                            &:nth-child(odd) {
                                padding-right: 10px;
                            }

                            &:nth-child(even) {
                                padding-left: 10px;
                            }
                        }
                    }
                }
            }
        }
    }

    @media (max-width: 991px) {
        .bootstrap-wrapper {
            .w365cm {
                & > .row {
                    & > div {
                        padding-left: 0;
                        padding-right: 0;
                    }
                }

                .sidebar-nav {
                    .input-group {
                        .input-group-addon {
                            background-color: #FFF;
                            border-radius: 0;
                            border-color: #666;
                        }

                        input[type="text"], input[type="password"] {
                            border-left: none;
                            border-radius: 0;
                            box-shadow: none;
                            border-color: #666;
                        }
                    }

                    .navbar-default {
                        .navbar-header {
                            background-color: inherit;
                            float: none;

                            .col-xs-6:first-child {
                                padding-right: 10px;
                            }

                            .col-xs-6:last-child {
                                padding-left: 10px;
                            }

                            .navbar-toggle {
                                display: block;
                                width: 100%;
                                border: 1px solid #666;
                            }
                        }

                        .navbar-collapse {
                            border: none;
                        }

                        .clear-btn {
                            margin: 0;
                            padding: 5px 20px;
                        }

                        .filterForm {
                            clear: both;

                            .principal-picker .form-control {
                                line-height: 1.5;
                                height: 30px;
                                padding: 5px 10px;
                            }
                        }

                        .collapse-toggle {
                            border: none;
                            background: none;
                            padding: 0 0 2px;
                            font-size: 20px;
                        }
                    }
                }

                .w365cm-collapse {
                    border: none;

                    &.collapse {
                        display: none !important;

                        &.in {
                            display: block !important;
                        }
                    }
                }

                .noCoursesFound {
                    margin-right: 0;
                }

                .participants-actions-menu {
                    .nav-tabs li a {
                        .ms-Icon {
                            & + span {
                                display: none;
                            }
                        }
                    }
                }

                .participant-search-block {
                    float: left;
                    width: 100%;
                    margin-bottom: 35px;

                    .input-group {
                        width: 100%;
                    }
                }
            }
        }
    }

    @media (max-width: 767px) {
        .bootstrap-wrapper {
            .w365cm {
                .navbar.topmenu-collapse {
                    margin-bottom: 0 !important;
                }

                .sidebar-nav {
                    .sidebar-navbar-collapse.navbar-collapse.collapse,
                    .sidebar-navbar-collapse.navbar-collapse.collapsing {
                        ul.nav {
                            padding: 0 0 15px;
                        }
                    }
                }

                .overview-content {
                    .navbar-nav {
                        margin: 0;

                        li {
                            width: 50%;
                            text-align: center;

                            &:nth-child(odd) {
                                padding-left: 0;
                            }

                            &:nth-child(even) {
                                padding-right: 0;
                            }

                            a {
                                display: inline-block;
                            }
                        }
                    }
                }
            }

            .topmenu {
                border-top: 0 !important;
                min-height: 1px !important;

                &.navbar-default .navbar-nav > li > a {
                    padding-top: 10px;
                    padding-bottom: 10px;
                }
            }
        }
    }

    @media (max-width: 350px) {
        .participants-actions-menu {
            .nav-tabs {
                width: 100%;
                float: none !important;

                &.pull-left, &.pull-right {

                    li {
                        &:last-child {
                            border-right: none !important;
                        }
                    }
                }

                &.pull-right {
                    li {
                        border-left: none !important;
                        border-right: 2px solid $wizdom-button-default-border-color !important;
                    }
                }
            }
        }
    }

    .w365cm {
        & > .row {
            & > div:first-child {
                padding-left: 0;
            }

            & > div:last-child {
                padding-left: 0;
                padding-right: 0;
            }
        }
    }
