body,html{
    height: 100%;
  }

  nav.sidebar, .main{
    -webkit-transition: margin 200ms ease-out;
      -moz-transition: margin 200ms ease-out;
      -o-transition: margin 200ms ease-out;
      transition: margin 200ms ease-out;
  }

  .main{
    padding: 10px 10px 0 10px;
  }
  .navbar {
    /*position: absolute;*/
    min-height: 50px;
    margin-bottom: 20px;
    border: none;
    /*margin-top: 130px;*/
    height:100%;
	background: #f5f5f6;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
}


.navbar-nav > li > a {
    padding-top: 12px;
    padding-bottom: 12px;
}

.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:focus, .navbar-default .navbar-nav > .active > a:hover {
    color: #03a9f4;
    background-color: #E7E7E7;
}

.navbar-default .navbar-nav > li > a:focus, .navbar-default .navbar-nav > li > a:hover {
    color: #03a9f4;
    background-color: #E7E7E7;
}


.showopacity{font-size:24px !important;width:35px;}
.showopacity i{font-size:24px !important;}



.page-content-wrapper {    
    height: auto;
    /*margin-left: 250px;*/
    /*margin-top: 130px;*/
    /*position: absolute;*/
    width: calc(100% - 250px);
}

.page-content-wrapper-main {
	height: auto;    
    /*margin-top: 130px !important;
    position: absolute;*/
    padding: 4% 4% 0% 4%;
	width:100%;

}

.page-content-wrapper-mainsub {
	height: auto;    
    /*margin-top: 130px !important;
    position: absolute;*/
    padding:2% 10%;
	width:100%;

}

.sidebar-toggled {	
	height: auto;
    margin-left: 260px;
    margin-top: 85px;
    position: absolute;
    width: calc(100% - 270px) !important;
}


.page-title{font-size:20px; color:#000; font-weight:normal;margin-bottom:20px;}


 .username{
	 position:fixed !important;
	 bottom:0;
	 background:#F5F5F6 !important;
	 width:227px !important;
	 z-index:999;
	 color:#000;	 
	 }
	 
	 .username img{
	 display:block;
	 z-index:9999;
	 padding:10px;
	 float:left;
	 }
 
  .username:hover,  .username:focus{
	 position:fixed !important;
	 bottom:0;
	 background:#F5F5F6 !important;
	 width:227px !important;
	 z-index:999;
	 color:#000;	 
	 }



 @media (min-width: 0px) {

    .main{
      position: absolute;
      width: calc(100% - 40px); 
      margin-left: 40px;
      float: right;
    }
	

    nav.sidebar:hover + .main{
      margin-left: 250px;
	  height:100vh;
    }

    nav.sidebar.navbar.sidebar>.container .navbar-brand, .navbar>.container-fluid .navbar-brand {
      margin-left: 0px;
    }

    nav.sidebar .navbar-brand, nav.sidebar .navbar-header{
      text-align: center;
      width: 100%;
      margin-left: 0px;
    }
    
    nav.sidebar a{
      padding-right: 13px;
    }

    nav.sidebar .navbar-nav > li:first-child{
      border-top: 0px #e5e5e5 solid;
    }

    nav.sidebar .navbar-nav > li{
      border-bottom: 0px #e5e5e5 solid;
    }

    nav.sidebar .navbar-nav .open .dropdown-menu {
      position: static;
      float: none;
      width: auto;
      margin-top: 0;
      background-color: transparent;
      border: 0;
      -webkit-box-shadow: none;
      box-shadow: none;
    }

    nav.sidebar .navbar-collapse, nav.sidebar .container-fluid{
      padding: 0px!important;  
    }

    .navbar-inverse .navbar-nav .open .dropdown-menu>li>a {
      color: #777;
    }

    nav.sidebar{
      width: 250px;
      /*height: 100%;*/
      margin-left: 0px;
      float: left;
      margin-bottom: 0px;
    }

    nav.sidebar li {
      width: 100%;
    }

    .forAnimate{
      opacity: 0;
    }
	
	.page-content-wrapper-mainsub {
	height: auto;    
    /*margin-top: 130px !important;
    position: absolute;*/
    padding:2%;
	width:100%;
	}
  }
   
  @media (min-width: 1330px) {

    .main{
      width: calc(100% - 200px);
      margin-left: 200px;
    }

    nav.sidebar{
      margin-left: 0px;
      float: left;
	  /*margin-top: 130px;*/
    }

    nav.sidebar .forAnimate{
      opacity: 1;
    }
	.sidebar-toggled {	
	height: auto;
    margin-left: 260px;
    margin-top: 85px;
    position: absolute;
    width: calc(100% - 270px) !important;
}
.page-content-wrapper-mainsub {
	height: auto;    
    /*margin-top: 130px !important;
    position: absolute;*/
    padding:2% 10% !important;
	width:100%;
	}
	
  }

  nav.sidebar .navbar-nav .open .dropdown-menu>li>a:hover, nav.sidebar .navbar-nav .open .dropdown-menu>li>a:focus {
    color: #CCC;
    background-color: transparent;
  }

  nav:hover .forAnimate{
    opacity: 1;
  }
  
  .navbar-nav {
    float: left;
    margin: 0px;
    min-height: calc(100vh - 198px);
	/*border-right:1px solid rgba(0, 0, 0, 0.1);*/ 	
	padding:20px;
	z-index: 2;
	color:#000;
	border-radius: 0;
}

.navbar-default .navbar-nav > li > a {
    color: #000;	
}



  @media (max-width: 1200px) {
	  
	 /* .right-sidebar{display:none;}*/
	  


.page-content-wrapper {    
    height: auto;
    /*margin-left: 250px;*/
    /*margin-top: 130px;
    position: absolute;*/
    width: calc(100% - 250px);
}
}
  
 @media (max-width: 767px) {
    .navbar-default .navbar-collapse {
   border-color: #e7e7e7; 
   background:#f5f5f6; 
    height: calc(100vh + 415px) !important;
	position:absolute;
    z-index:1;
    }
     
.navbar-nav {
	background:#f5f5f6;    
    margin: 0px;
     height: calc(100vh + 100px) !important; 
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
	padding:10px;
	/*width:100%;
	position:absolute;*/
    margin: 0px 0px 0px 15px;
	width:260px;
    z-index:999;
} 

.navbar-collapse {
    padding-right: 0px;
    padding-left: 0px;
    overflow-x: visible;
    border-top: 1px solid transparent;
    box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.1) inset;
}

 
  .navbar-nav:after {
	content: "";  
	background:none;
    float: left;
    margin: 0px;    
	width:0;
	border-right:0px solid rgba(0, 0, 0, 0.32);  	
	/*-webkit-box-shadow: 2px 0px 2px 0px rgba(0, 0, 0, 0.32);
	-moz-box-shadow:    2px 0px 2px 0px rgba(0, 0, 0, 0.32);
	box-shadow:         2px 0px 2px 0px rgba(0, 0, 0, 0.32);*/
	padding:0px;
	z-index:-1;
	top:0px;
	position:fixed;
	margin-left:-10px;
} 

.navbar-toggle {
    position: relative;
    float: right;
    padding: 9px 10px;
    margin-top: 11px;
    margin-right: 15px;
    margin-bottom: 10px;
    background-color: transparent;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}


.sidebar-toggled {	
	height: auto;
    margin-left: 0px;
    margin-top: 5px;
    position: absolute;
    width: calc(100% - 0px) !important;
}

.page-content-wrapper {    
    height: auto;
    margin-left: 0px;
    /*margin-top: 200px;
    position: absolute;*/
    width: calc(100% - 0px) !important;
}

.nav-tabs.nav-justified li {
    margin-bottom: 0;
    display: table-cell;
    width: 1%;
}

 .username{
	 position:relative !important;
	 bottom:0;
	 background:#F5F5F6 !important;
	 width:227px !important;
	 z-index:999;
	 color:#000;	 
	 }
	 
	 .username img{
	 display:block;
	 z-index:9999;
	 padding:10px;
	 float:left;
	 }
 
  .username:hover,  .username:focus{
	 position:relative !important;
	 bottom:0;
	 background:#F5F5F6 !important;
	 width:227px !important;
	 z-index:999;
	 color:#000;	 
	 }
	 
	 .page-content-wrapper-mainsub {
	height: auto;    
    /*margin-top: 130px !important;
    position: absolute;*/
    padding:2%;
	width:100%;
	}
	
	/*.page-content-wrapper-main {
    height: auto;
    margin-top: 65px !important;
    position: absolute;
    padding: 0%;
    width: 100%;
}*/


 }
 
 
/* .navbar-default {
    background-color: #E7E7E7;
    border-color: #e7e7e7;
	height:calc(100vh - 66px) !important;
}*/


.footer-main {
    text-align:center;
    padding-top:10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.menu-sub {
    display: flex;
}

.footer-main {
    background: #f3f3f3;
}

@media (max-width: 767px) {
.footer-main {
    background: #ecedf0;
}
.menu-sub {
    display: block;
}
}