/*!
 * Start Bootstrap - Simple Sidebar HTML Template (http://startbootstrap.com)
 * Code licensed under the Apache License v2.0.
 * For details, see http://www.apache.org/licenses/LICENSE-2.0.
 */

/* Toggle Styles */

#browse-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;    
}

#browse-content {    
    width: 100%;
    position: absolute;
    padding: 0;
    margin-top: 20px;
}

#wrapper {
    background-color: transparent;
    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;
}

#wrapper.toggled {
    padding-left: 25%; 
}

#sidebar-wrapper {
    z-index: 10;
    position: fixed;
    left: 20%;
    width: 0;
    height: 100%;
    margin-left: -20%;
    overflow-y: auto;    
    background: #ffffff;    
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#wrapper.toggled #sidebar-wrapper {
    width: 20%;
}

/*sidebar visible, small screen*/
#page-content-wrapper {
    width: 100%;
    position: absolute;
    padding: 0 0 40px 0;
    margin-top: 22px;
    }

#wrapper.toggled #page-content-wrapper {
    position: absolute;
    margin-right: -20%;
    margin-top: 30px;        
}

#wrapper.toggled .action-bar-treeview {   
    margin-left: 0;       
    width: 100%; /*VJ-01/24/16 added to make the treeview action-bar fill the entire width when treeview is toggled*/
}

#wrapper.toggled .action-bar-window {   
    margin-left: 0;       
    width: 100%; /*VJ-01/26/16 added to make the treeview action-bar fill the entire width when treeview is toggled*/
}

/*sidebar visible, small screen*/
#footer-section {
    z-index: 11;
    text-align: left;    
    background-color: #bc001d;
    border-color: #080808;
    color: #999999;
    font-size: 1em;
    height: 30px;
    width: 100%;
    position: fixed;
    bottom: 0;    
    right: 0;
    padding-top: 4px;
    padding-bottom: 6px;   
    clear: both;    
}

#sidebar {
    margin-top: 10px;    
}

.tvtoggle {
    z-index: 12;
    position: absolute;
    /*top: 50%;*/
    /* SJ : vh unit keeps toggle button vertically centered as viewport height changes */
    /* ( 50% of viewPort height - navBar height(50px) - actionBar height(44px) )       */
    top: calc(50vh - 94px);
    left: -10px;
    margin: 0;
    padding:  0;
    margin-left: 0;    
}

/* Sidebar Styles */

.sidebar-nav {
    position: absolute;
    top: 0;
    width: 20%;
    margin: 0;
    padding:  0;
    list-style: none;    
    min-width: 300px;
}

.sidebar-nav li {
    text-indent: 20px;
    line-height: 40px;
}

.sidebar-nav li a {
    display: block;
    text-decoration: none;
    color: #000000;
}

.sidebar-nav li a:hover {
    text-decoration: none;
    color: #bc001d;
    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: #bc001d;
}

.sidebar-nav > .sidebar-brand a:hover {
    color: #bc001d;
    background: none;
}

@media(min-width:768px) {
    #wrapper {
        padding-left: 20%;  
        padding-right: 16px;     
        background-color: transparent; 
    }

    #wrapper.toggled {
        padding-left: 0;        
    }

    /*sidebar width */
    #sidebar-wrapper {
        /*min-width: 300px !important;*/
        width: 20%;        
    }

    #wrapper.toggled #sidebar-wrapper {
        width: 0;
    }

    /*sidebar visible, large screen*/
    #page-content-wrapper {
        padding: 10px 10px 10px 10px;
        margin-top: 22px;
        margin-right: 20px;
        position: relative;   
        min-width: 300px !important;     
    }    

    /*sidebar hidden, large screen*/
    #wrapper.toggled #page-content-wrapper {
        position: relative;
        margin-right: 0;
        margin-top: 40px;               
    } 
}