/*!
 * Start Bootstrap - Simple Sidebar (http://startbootstrap.com/)
 * Copyright 2013-2016 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
 */

body {
   overflow-x: hidden;
}


/* Toggle Styles */

#wrapper {
    padding-left: 0;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}


@media(min-width:1400px) {

    #wrapper.toggled {
        padding-left: 25%;
    }

    #sidebar-wrapper {
        width: 0;
        left: 25%;
        margin-left: -25%;
    }

    #wrapper.toggled #sidebar-wrapper {
        width: 25%;
    }

    #wrapper.toggled #page-content-wrapper {
        margin-right: -25%;
    }

    #wrapper {
        padding-left: 25%;
    }

    #sidebar-wrapper {
        width: 25%;
    }

}

@media(min-width:1024px) and (max-width: 1399px) {

    #wrapper.toggled {
        padding-left: 30%;
    }

    #sidebar-wrapper {
        width: 0;
        left: 30%;
        margin-left: -30%;
    }

    #wrapper.toggled #sidebar-wrapper {
        width: 30%;
    }

    #wrapper.toggled #page-content-wrapper {
        margin-right: -30%;
    }

    #wrapper {
        padding-left: 30%;
    }

    #sidebar-wrapper {
        width: 30%;
    }

}

@media(min-width:768px) and (max-width: 1023px) {

    #wrapper.toggled {
        padding-left: 50%;
    }

    #sidebar-wrapper {
        width: 0;
        left: 50%;
        margin-left: -50%;
    }

    #wrapper.toggled #sidebar-wrapper {
        width: 50%;
    }

    #wrapper.toggled #page-content-wrapper {
        margin-right: -50%;
    }

    #wrapper {
        padding-left: 50%;
    }

    #sidebar-wrapper {
        width: 50%;
    }
}

@media(max-width:767px) {

    #wrapper:not(.toggled) #page-content-wrapper {
        visibility: hidden;
        opacity: 0;
        -webkit-transition: visibility 0s 0.5s, opacity 0.5s linear;
        -moz-transition: visibility 0s 0.5s, opacity 0.5s linear;
        -o-transition: visibility 0s 0.5s, opacity 0.5s linear;
        transition: visibility 0s 0.5s, opacity 0.5s linear;
    }

    #wrapper.toggled #page-content-wrapper {
        visibility: visible;
        opacity: 1;
        -webkit-transition: opacity 0.5s linear;
        -moz-transition: opacity 0.5s linear;
        -o-transition: opacity 0.5s linear;
        transition: opacity 0.5s linear;
    }

    #wrapper.toggled {
        padding-left: 100%;
    }

    #sidebar-wrapper {
        width: 0;
        left: 100%;
        margin-left: -100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        width: 100%;
    }

    #wrapper.toggled #page-content-wrapper {
        margin-right: -100%;
    }

    #wrapper {
        padding-left: 100%;
    }

    #sidebar-wrapper {
        width: 100%;
    }
}

#sidebar-wrapper {
    z-index: 990;
    position: fixed;
    height: 100%;
    overflow-y: auto;
    border: 1px dotted;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#sidebar-wrapper:not(.toggled) {
	display: table; /* [CAUSEWAY-3166] allows child components to escape right boundary */
}

#page-content-wrapper {
    width: 100%;
    position: absolute;
    padding: 15px;
}

#wrapper.toggled #page-content-wrapper {
    position: absolute;
}

/* Sidebar Styles */

.sidebar-nav {
    position: absolute;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}


.sidebar-nav li a {
    display: block;
    text-decoration: none;
    color: #999999;
}

.sidebar-nav li a:hover {
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,0.2);
}

.sidebar-nav li a:active,
.sidebar-nav li a:focus {
    text-decoration: none;
}

.sidebar-nav > .sidebar-brand {
    height: 65px;
    font-size: 18px;
    line-height: 60px;
}

.sidebar-nav > .sidebar-brand a {
    color: #999999;
}

.sidebar-nav > .sidebar-brand a:hover {
    color: #fff;
    background: none;
}

.sidebar-panel {
    padding: 20px;
}
.sidebar-content {
    padding-top: 20px;
    padding-bottom: 20px;
}

#wrapper.toggled {
    padding-left: 0;
}

#wrapper.toggled #sidebar-wrapper {
    width: 0;
    border: 0;
    display: none;
}

#page-content-wrapper {
    padding: 20px;
    position: relative;
}

#wrapper.toggled #page-content-wrapper {
    position: relative;
    margin-right: 0;
}
