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

// global - outside wizdom-bootstrap-wrapper

@media (max-width:$screen-md) {
    #suiteBar {
        display: block;

        #suiteBarLeft, #suiteBarRight {
            display: block;
            line-height: 30px;
        }

        #suiteBarLeft {
            width: 100%;
        }
    }

    #DeltaSuiteLinks {
        display: none;
    }

	#O365_MainLink_Me {
		display: none;
	}
}



@media (max-width: 1023px) {

	.o365cs-nav-navMenu {
		position: fixed !important;
	}

	.o365cs-base.o365cs-newALV2-on.o365cs-nav-navMenu,
	.o365cs-base.o365cs-newALV3-on.o365cs-nav-navMenu {
		left: 0 !important;
		width: 100% !important;
	}
}

#suiteBarTop {

	.o365cs-nav-o365Branding {
		@media (max-width:$screen-desktop) {
			display: none;
		}
	}



	.o365cs-nav-rightAlign {
		/*& > div:first-child {
			@media (max-width:$screen-desktop) {
				display: none;
			}
		}*/
		.goMobileNow & {
			padding-right: 100px;

			.o365cs-mfp-headerbutton {
				border-right: 1px solid rgba(255,255,255,.3) !important;
			}
		}

		.goMobileNow.servicemenuEnabled & {
			padding-right: 138px;
		}

		@media (min-width:639px) {
			#O365_MainLink_Settings, #O365_MainLink_Help {
				display: inline-block;
			}
		}

		@media (max-width:640px) {
			#O365_MainLink_Settings, #O365_MainLink_Help {
				display: none;
			}
		}


		@media (max-width:$screen-md) {
			padding-right: 100px;

			.o365cs-mfp-headerbutton {
				border-right: 1px solid rgba(255,255,255,.3) !important;
			}

			.servicemenuEnabled & {
				padding-right: 138px;
			}

			.o365cs-nav-topItem {
				display: inline-block;
			}

			.o365cs-nav-topItem:last-child {
				display: inline-block !important;
			}

			#O365_MainLink_Affordance {
				.ms-Icon {
					position: relative;
					top: 1px;
					display: inline-block;
					font-family: 'Glyphicons Halflings';
					font-style: normal;
					font-weight: normal;
					line-height: 1;
					-webkit-font-smoothing: antialiased;

					&:before {
						font-family: 'Glyphicons Halflings';
					}
				}

				.ms-Icon--More {
					&:before {
						content: "\e079";
					}
				}
			}
		}
	}
}
/*, #s4-ribbonrow*/
#contentRow, #suiteBarTop {
    @include single-transition(right, 0.25s, ease-out);
    right: 0;

    .active_mobile_menu & {
        @include single-transition(right, 0.25s, ease-out);
        right: 300px;
    }
}

#mobile-navigation {

    @media (max-width:$screen-md) {
        display: block;
    }

    .goMobileNow & {
        display: block;
    }

    @include reset-box-model();
    position: fixed;
    right: -300px;
    top: 0;
    bottom: 0;
    width: 300px;
    padding-top: 75px;
    background-color: #0c0c0c;
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;

    @include single-transition(right, 0.25s, ease-out);

    .active_mobile_menu & {
        @include single-transition(right, 0.25s, ease-out);
        right: 0;
    }

    .list-group {
        /*border-top:1px solid #666;*/
    }

    #searchInputBox {
        position: absolute;
        top: 20px;
        left: 40px;
    }

    .ms-srch-sb > input {
        width: 150px;
    }

    .ms-webpart-chrome > div {
        padding: 0 !important;
    }

    .ms-webpart-chrome {
        box-shadow: none;
        background: none;
    }


    hr {
        margin-left: 40px;
        margin-right: 25px;
        margin-top: 10px;
        margin-bottom: 10px;
        border-color: #2d3036;
    }

    .mobile-toggle {
        position: absolute;
        top: 13px;
        right: 10px;

        img {
            margin: 15px;
        }
    }

    .m-column {
        padding-left: 40px;
        /*height:30px;
		overflow:hidden;*/
        .Html {
            display: none;
        }
        // oly: 25-05-2016 :: changed .Heading from display:none to block
        // because heading is needed in mobile menu. adding font-weight:bold to
        // differentiate between link and heading
        .Heading {
            font-weight: bold;
        }

        h3 {
            cursor: pointer;
            font-size: 13px;
            font-weight: bold;
            color: #6d6d6d;
            text-decoration: none;
            text-transform: uppercase;
            margin: 0;
            padding: 10px 0;

            & + ul {
                display: none;
            }

            a {
                background-color: transparent;
            }
        }

        .sub-h3 {
            padding: 2px 0 0 0;
        }

        & > ul {
            padding: 15px;
        }

        ul {

            a {
                display: block;
            }

            .Item, .TopItem, .Link {
                font-size: 13px;
                color: #6d6d6d;
                padding-left: 15px;
                padding-top: 2px;
                padding-bottom: 2px;
            }

            .ms-hidden {
                display: none;
            }

            .topLink {

                a {
                    color: #6d6d6d;
                }

                padding-left: 15px;
                /*padding-top:10px;*/
                color: #6d6d6d;

                .Item, .TopItem, .Link {
                    padding-left: 0;
                    padding-top: 2px;
                    padding-bottom: 2px;
                }
            }

            .column {
                h3 {
                    padding-left: 15px;
                }
            }

            .sectionLink {
                & > a {
                    color: #6d6d6d;
                }
                /*padding-top:10px;*/
                padding-left: 15px;
                color: #6d6d6d;
            }

            & > li ul li a {
                /*padding-top:15px;*/
                /*padding-left:15px;*/
            }

            list-style: none;
            margin: 0;
            padding: 0;

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

        .submenu {
            display: none;
            padding-left: 15px;

            &.active {
                display: block;

                a {
                    //margin-left:15px;
                }
            }

            > li {
                padding-top: 2px;
                padding-bottom: 2px;
            }
        }
        /*@include single-transition(min-height, 1s);*/
        &.expanded {

            & > .submenu {
                padding: 0;
            }
            /*@include single-transition(min-height, 1s);*/
            & > ul {
                display: block;
                overflow: visible;
            }
        }
    }
}
