@import "../../../../Base/Content/sass/compass";
@import "../../../../Base/Content/sass/bootstrap/variables";
@import "_Variables";



body {

    @media (max-width:$screen-desktop) {
        overflow: auto;
    }

    &.wizdom-bootstrap-wrapper,
    &.wizdom-bootstrap-wrapper-system {

        #s4-workspace {
            /*.wt-editmode & {
				overflow-x:hidden;
			}*/
            /*@media (max-width:$screen-desktop) {
				height:inherit !important;
				width:100% !important;
				overflow:hidden;
			}*/
            #contentBox {
                min-width: 0;
                margin-top: 30px;
                margin-right: 10px;

                .webpartPage & {
                    margin-top: 40px;

                    @media (max-width:$screen-tablet) {
                        margin-top: 0;
                    }
                }

                .contentPage & {
                    margin-right: 0;
                }

                @media (max-width:$screen-tablet) {
                    margin-right: 0;
                    margin-left: 0 !important;
                    margin-top: 0;
                }

                #DeltaPageStatusBar {
                    margin: 0 10px 0 10px;

					@media (max-width:$screen-tablet) {
						display:none;
					}

                }
            }

            #contentBox + #sideNavBox {
            }
            /*#sideNavBox + #contentBox {
				@media (min-width:$screen-md-min) {
					html.webpartPage:not(.hideLeftNavigation):not(.wt-editmode) & {
						width:calc(100% - 220px);
						float:left;
						margin-right:0;
						margin-left:0;
					}
				}
			}*/
            /* fix for bootstrap ruins GANTT diagrams
                This is applied with: $(".jsgrid-widget-dock").parent().addClass('bootstrapGanttFix')
            */
            .bootstrapGanttFix {
                * {
                    box-sizing: content-box !important;
                }
            }
        }
    }
}


/* -------- FULLSCREEN -------- */
.ms-fullscreenmode {

    #contentBox {
        margin-left: 20px;
    }

    #DeltaTopNavigation {
        display: none;
    }

    #breadcrumbBox {
        display: none;
    }

    #s4-titlerow {
        display: none !important;
    }
}
/* -------- FULLSCREEN -------- */

.modal-dialog {
    .mce-content-body {
        img {
            max-width: 100% !important;
        }
    }
}

.wizdom-bootstrap-wrapper,
.wizdom-bootstrap-wrapper-system {
    /* Default font-size and line-height set for webparts + controls + inline text*/
    .wt-webpartzone,
    .wt-page-content {
        color: $wizdom-default-text-color;
        font-size: $wizdom-default-text;
        line-height: $wizdom-default-line-height;

        p,
        div,
        .ms-formfieldlabel {
            /*font-size: $wizdom-default-text;*/
            line-height: $wizdom-default-line-height;
        }
    }

    .ul-reset {
        list-style: none;
        padding: 0;
    }

    a:hover, a:active, a:focus {
        text-decoration: none;
    }

    #contentRow {
        position: relative;
        min-width: 0;
        min-height: 500px;
        padding-top: 10px;

        @media (max-width:$screen-tablet) {
            padding-top: 0;
        }

        @media (max-width:992px) {
        }

        .ms-dialog & {
            min-height: 0;
            padding-top: 0;
        }

        #wizdomPageLayout {
            min-height: 500px;

            @media (max-width:$screen-tablet) {
                margin-bottom: 0 !important;
            }
        }

        .wt-right-column {
            // ensure there is some padding to breadcrumb - if on contantPage
            padding-top: 20px;

            @media (max-width:$screen-desktop) {
                padding-top: 10px;
            }
        }

        .ms-webpart-titleText,
        h2.ms-webpart-titletext {
            font-weight: bold;
            font-family: inherit;
            font-size: 14px;
            margin-top: 20px;
            margin-bottom: 10px;
            text-align: left !important;
        }
        // from _page.scss
        @media screen and (-webkit-min-device-pixel-ratio:0) {
            .ms-webpart-chrome {
                border: 0 !important;
            }
        }

        .ms-WPBody,
        .ms-WPBorder {
            border: 0 !important;
        }

        .ms-webpart-titleText,
        .ms-webpart-titleText > a {
            white-space: normal;
        }
        // webparts
        .ms-webpart-chrome {
            display: block;
            @include box-shadow(rgba(0,0,0,0.4) 0.5px 0.5px 5px);
            // default webpart background-color - will be overriden by titleonly and chromenone
            background-color: $wizdom-webparts-background-color;
            @include border-radius(5px);
            /*& > div {
				padding:20px;
			}*/
            & .ms-webpart-chrome-title {
                @include border-top-radius(5px);
                background: $wizdom-webparts-title-background-color;
                text-align: center;
                padding: 4px 0 10px 10px;
                margin-bottom: 0;
                border-bottom: 1px solid #e4e4e4;

                h2 {
                    /*margin-top:0;*/
                    color: $wizdom-webparts-title-color;
                    text-transform: uppercase;
                    @include inline-block();
                    padding-right: 15px;
                }
            }

            & > div {
                padding: 15px;
            }

            .ms-webpart-titleText,
            .ms-webpart-chrome-title {
                /*margin-top:0;*/
                nobr,
                nobr span {
                    white-space: normal !important;
                    text-align: left;
                    /*word-break: break-all !important;
                    -ms-word-break: break-all !important;*/
                    display: inline-block;
                }
            }
        }
        /* Webparts with no chrome/decoration */
        .wt-chromeNone {
            border: 0 !important;
            -webkit-box-shadow: none !important;
            -moz-box-shadow: none !important;
            -ms-box-shadow: none !important;
            -o-box-shadow: none !important;
            box-shadow: none !important;
            /*background-color: none !important;*/
            // Webpart background colors are set to avoid "see through" when expanding overflow webparts
            background-color: $wizdom-backgound-color;
        }
        /* Webparts with only title as decoration */
        .wt-chromeTitleOnly {
            border: 0 !important;
            -webkit-box-shadow: none !important;
            -moz-box-shadow: none !important;
            -ms-box-shadow: none !important;
            -o-box-shadow: none !important;
            box-shadow: none !important;
            // Webpart background colors are set to avoid "see through" when expanding overflow webparts
            background-color: $wizdom-backgound-color;
        }

        .wt-chromeNone > div {
            padding: 0;

            .wt-right-column & {
                padding-left: 15px;
                padding-right: 15px;
            }
        }
    }
    /*.wt-shadow {
		@media (min-width:$screen-tablet) {
			min-height:500px !important;
		}
	}*/
    .wizdom-fullview {
        margin: $wizdom-webpart-fullWidth;
        @include border-radius($wizdom-border-radius);
    }

    .wizdom-fullview-left {
        margin: $wizdom-webpart-fullWidth;
        @include border-left-radius($wizdom-border-radius);
    }

    .wizdom-fullview-right {
        margin: $wizdom-webpart-fullWidth;
        @include border-right-radius($wizdom-border-radius);
    }

    .wt-chromeTitleAndBorder {
        .wizdom-fullview {
            @include border-top-radius(0);
        }

        .wizdom-fullview-left {
            @include border-top-left-radius(0);
        }

        .wizdom-fullview-right {
            @include border-top-right-radius(0);
        }
    }

    .wizdom-fullwidth {
        margin-right: $wizdom-webpart-fullWidth;
        margin-left: $wizdom-webpart-fullWidth;

        &.container-fluid,
        .container-fluid {
            padding-left: $wizdom-webpart-padding;
            padding-right: $wizdom-webpart-padding;
        }

        .row {
            margin-left: $wizdom-webpart-fullWidth;
            margin-right: $wizdom-webpart-fullWidth;

            .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
                padding-left: $wizdom-webpart-padding;
                padding-right: $wizdom-webpart-padding;
            }
        }
    }



    .wt-chromeNone {
        .wizdom-fullwidth {
            margin-right: 0;
            margin-left: 0;
        }

        .wizdom-fullview {
            margin: 0;
        }

        .wizdom-fullview-left {
            margin: 0;
        }

        .wizdom-fullview-right {
            margin: 0;
        }
    }
    // anchor link
    .wd-link {
        &:hover,
        &:focus {
            text-decoration: none;
            cursor: pointer;
        }
    }
    // round button
    .wd-button {
        @include border-radius(50%);
        padding: 0 4px;
        line-height: 18px;
        border: 2px solid #1775bc;

        &.add:before {
            content: '\271A';
            color: #1775bc;
        }

        &:focus {
            outline: none;
        }
    }

    .ms-core-overlay {
        background: $wizdom-backgound-color;
    }

    #s4-bodyContainer {
        /*background:$wizdom-backgound-color;*/
        padding: 0;
        margin: 0;
        /*.ms-dialog & {
			background-color:transparent;
		}*/
    }
}

.wizdom-bootstrap-wrapper-system {

    #contentBox {

        @include single-transition(none);
        /*@media (min-width:$screen-desktop) {
			margin-left:245px;
		}*/
        #DeltaPlaceHolderMain {
            margin-top: 40px;
        }
    }

    .wt-breadcrumb-system {

        ul, li {
            margin: 0;
            padding: 0;
            list-style: none;
            float: left;
        }

        span.s4-breadcrumb-arrowcont {
            display: none;
        }

        li span {
            margin: 0 5px;
        }

        li a:link,
        li a:visited,
        li a:hover {
            margin: 0 5px;
        }

        li a.s4-breadcrumbRootNode:link,
        li a.s4-breadcrumbRootNode:visited,
        li a.s4-breadcrumbRootNode:active,
        li a.s4-breadcrumbRootNode:hover {
            margin-left: 0;
        }
    }
}


// globals

/* --------Spinner styles--------*/
.wizdom365Loading {
    position: absolute;
    top: 50%;
    left: 50%;
}

.wizdom365Loading .bullet {
    position: absolute;
    padding: 5px;
    border-radius: 50%;
    background: #65a3ff;
    -webkit-animation: animIn 1s ease-in-out 0s infinite;
    animation: animIn 1s ease-in-out 0s infinite;
}

.wizdom365Loading .bullet:nth-child(1) {
    -webkit-animation-delay: 0s;
    animation-delay: 0s;
}

.wizdom365Loading .bullet:nth-child(2) {
    -webkit-animation-delay: 0.15s;
    animation-delay: 0.15s;
}

.wizdom365Loading .bullet:nth-child(3) {
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

.wizdom365Loading .bullet:nth-child(4) {
    -webkit-animation-delay: 0.45s;
    animation-delay: 0.45s;
}

@-webkit-keyframes animIn {
    0% {
        -webkit-transform: translateX(-100px);
        transform: translateX(-100px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        -webkit-transform: translateX(100px);
        transform: translateX(100px);
        opacity: 0;
    }
}

@keyframes animIn {
    0% {
        -webkit-transform: translateX(-100px);
        transform: translateX(-100px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        -webkit-transform: translateX(100px);
        transform: translateX(100px);
        opacity: 0;
    }
}

.notification-scroller {
    /*white-space: pre-line;*/
    max-height: 350px;
    overflow-y: hidden;
    overflow-x: hidden;
    position: relative;
}

/* end Spinner styles*/
