/* ===============
Sandra Oveissi
Copyright 2014 Nexus6 Software

swatch colors
========
rgba(32, 44, 46, 0.3) - Dark Gray with Transparency
#333 - Dark Gray
#ccc - Light Gray
#eee - light Gray - White
#4cae4c - Dark Green
rgba(91, 183, 91, 0.8) - Light Green

#fa5a35 - Dark Orange
#fa623f - light Orange
#fc9f8a - lightest Orange

#215a96 - Navy 
#2580df - Dark Blue
#67a7e9 - light blue
================== */

ul.navmenu-nav span[class^="sr-icon-"] {
    color:#444;
    font-size:48px;
}
ul.navmenu-simple span[class^="sr-icon-"] {
    font-size:40px;
}
div.subnav-container span[class^="sr-icon-"] {
    font-size:24px;
}
ul.navmenu-nav span[class$="-active"],
ul.navmenu-nav div[class$="-active"] {
    color:#fff;
}

.navmenu-fixed-right, .navbar-offcanvas {
  right: auto;
  position: relative;
}

.navmenu-default, .navbar-default .navbar-offcanvas {
  background-color: #fff;
  border: none;
}

/*
  a:-webkit-any-link {
    text-decoration: none;
  }*/

.navbar.navbar-default.mainmenu{
  position: fixed;
  right: 0;
  left: 0;
  z-index: 1030;
  margin-bottom: 0;
}

.container{
  padding-top: 50px;
  padding-bottom: 50px;
}

/* Custom CSS */
.navmenu {
  padding-top: 50px;
}

body {
  padding: 0;
}

.navmenu, .navbar-offcanvas {
  width: 100px;
  z-index: 0;
}

.navbar {
  display: block;
}
.navbar-brand {
  display: inline-block;
  float: none;
}

.navbar-toggle {
  float: right;
  margin-left: 15px;
}

@media (min-width: 1px) {
  .navbar-toggle {
    display: block !important;
  }
}

@media (min-width: 992px) {
  .navmenu {
    padding-top: 0;
  }
}

.nav .nav-item{
    width: 75px;
    height: 75px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    margin-top: 10px;
    color: #333;
    background-color: #fff;
    border-color: #ccc;
    line-height: 1.42857143;
    border-radius: 50%;
    text-align: center;
    border: 2.5px solid #333;
}
@media (min-width: 992px) {
    .nav .nav-item {
        line-height: 55px; /* brings to height of rectangle inside circle border*/
    }
}
.navmenu-simple .nav-item {
  width: 62px;
  height: 62px;
  margin-bottom: 8px;
  margin-top: 8px;
}

.nav .nav-item:hover{
  color: #333;
  background-color: #eee;
  border-color: #ccc;
}

.nav .nav-item a, .nav .nav-item a:hover {
    border-bottom: none;
}

.nav .nav-item.item-active{
  background-color: rgba(91, 183, 91, 0.8);
  border-color: #4cae4c;
}

.nav .nav-item.item-active>a>p{
  color: #fff;
}


.nav .nav-item .item-with-sub{
  width: 30px;
  height: 33px; 
  margin-top: 3px;
}

.nav.navmenu-nav>.explodednav-container>li>a{
    position: relative;
    display: block;
}
.nav.navmenu-nav>li>a,
.nav.navmenu-nav>.explodednav-container>li>a{
  padding:10px 0 0;
}
.nav.navmenu-simple>li>a,
.nav.navmenu-simple>.explodednav-container>li>a{
  padding:7px 0 0;
}

.subnav-container li.nav-item>a {
    padding-top:7px;
    display: block;
    position: relative;
}
@media (min-width: 992px) {
    .subnav-container li.nav-item>a {
        line-height: 48px;
        padding-top:0;
    }
}
/*.nav .nav-item>a>img{
    height: 34px;
    margin-top: -3px;
}*/

.nav .nav-item>a>p{
  font-size: 11px;
  margin-top: 2px;
  margin-left: 1px;
  margin-right: 0px;
  color: #333;
  text-align: center;
}

@media (max-width: 991px){
  .nav .nav-item>a>p{
    font-size: 13px;
  }

  li.nav-item.tabletview-iconhide{
    display: none;
  }
}

.flexible-nav-item{
  display: none;
}

/* It looks like these badges had been designed already (.badge) but
   I didn't realise until I'd done all the work. BJ */
.nav-item-badge {
    position: absolute;
    right: -10px;
    top: -8px;
    background-color:#ccc;
    padding: 1px 0;
    z-index: 10;
    width: 25px;
    height: 25px;
    border-radius: 25px;
    text-align:center;
}
.nav-item-badge span {
    font-size:12px;
    font-weight:bold;
    color:#333;
}

.nav .badge{
  display: block;
  position: absolute;
  top: -10px;
  right: 3px;
  line-height: 16px;
  height: 16px;
  padding: 0 5px;
  font-family: Arial, sans-serif;
  color: white;
  text-shadow: 0 1px rgba(0, 0, 0, 0.25);
  border: 1px solid;
  border-radius: 10px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), 0 1px 1px rgba(0, 0, 0, 0.08);
}

.nav .badge.red {
  background: #fa623f;
  border-color: #fa5a35;
  background-image: linear-gradient(to bottom, #fc9f8a, #fa623f);
}

.nav .badge.blue {
  height: 27px;
  font-size: 15px;
  top: -15px;
  padding-top: 4px;
  background: #215a96;
  border-color: #2580df;
  background-image: linear-gradient(to bottom, #67a7e9, #215a96);
}

.nav .badge.blue.text{
  margin-bottom: 1px;
}

@media (max-width: 991px) {
  .navmenu-default .nav .nav-item{
    border: none;
    border-bottom: 1px solid #ccc;
  }

  p.navmenu-help-text, p.navmenu-logout-text{
    padding-top: 16px;
  }

  .nav .nav-item>a>p{
    text-align: left;
  }

  /* Width of the Right Slide Menue */
  .navmenu.navmenu-default.navmenu-fixed-right.offcanvas-sm{
    left: auto !important;
  }

  .navmenu, .navbar-offcanvas {
    width: 250px;
    z-index: 1030;
  }

  .navmenu {
    padding-top: 71px;
  }

  /* To Display the menu under navbar */
  .navmenu-nav {
    margin-top: -51px;
  }

  .navmenu-fixed-right, .navbar-offcanvas {
    right: 0;
    position: fixed;
    margin-top: 51px;
  }

  .navmenu-default, .navbar-default .navbar-offcanvas {
    background-color: #f8f8f8;
    border-color: #e7e7e7;
    border-style: solid;
    border-width: 1px;
  }

  .nav>li>a{
    padding: 10px 15px;
  }

  .nav .nav-item{
    width: 100%;
    margin-top: -20px;
    border-radius: 0px;
    text-align: left;
    min-height: 50px;
    height: auto;
  }
  .navmenu-simple .nav-item {
    margin-bottom: 20px;
  }
  .nav .nav-item>a>span{
    font-size:30px;
    float: left;
    margin-top: 0px;
    margin-left: 10px;
  }
  .nav .explodednav-container .subnav-container .nav-item>a>span {
    font-size: 20px;
  }
  .nav.navmenu-simple>li>a,
  .nav.navmenu-simple>.explodednav-container>li>a{
    padding:10px 0 0;
  }
  .nav-menu-icon-text, .nav .nav-item>a>p {
    margin-top: 6px;
    margin-left: 55px;
    color: #333;
  }

  .flexible-nav-item{
    display: block;
  }
  .nav .flexible-nav-item .nav-item>a>span {
    margin-top: 10px;
    margin-left: 13px;
  }
  .nav .flexible-nav-item .nav-item>a>p{
    margin-top: 17px;
    margin-left: 55px;
    text-decoration: none;
  }

  .navbar-text.navbar-right{
    display: none;
  }

  .nav-item-badge {
    right: 7px;
    top: 12px;
  }
  .nav .badge{
    top: 17px;
    right: 9px;
  }
  .nav .badge.blue {
    top: 10px;
  }
  .nav .nav-item .item-with-sub{
    height: 30px; 
    margin-top: -3px;
  }

  .nav-menu-icon-text-small{
    display: inherit;
  }

  .nav-menu-icon-text{
    display: none;
  }
}

@media (max-width: 780px) {
  .nav-tabs>li>a{
    border: 0px !important;
  }
  .nav>li>a{
    padding: 3px;
    padding-left: 5px;
  }
}

/*********************************************/
/**** Handling sub-nav menu display gap breakpoints *****/
/*********************************************/
@media (min-width: 992px) and (max-width: 1099px) {
  .dash-container.dash-with-subnav, .notdash-container {
    width: 880px;
    margin-left: 5px;
  }
}

@media (min-width: 1100px) and (max-width: 1199px) {
  .dash-container.dash-with-subnav, .notdash-container {
    width: 970px;
    margin-left: 30px;
  }
}

@media (min-width: 1200px) and (max-width: 1320px) {
  .dash-container.dash-with-subnav, .notdash-container {
    width: 1000px;
    margin-left: auto;
  }
}

/*********************************************/
/**** Style for nav text below the icons *****/
/*********************************************/
@media (min-width: 991px) {
  .nav-menu-icon-text-small{
    display: none;
  }

  .nav-menu-icon-text{
    text-align: center;
    margin-bottom: 10px;
    font-size: 11px;
    line-height: 11.5px;
    margin-top: -15px;
  }
  .navmenu-simple .nav-menu-icon-text{
    display:none;
  }
}

/*********************************************/
/**** Style for sub-menu nav items *****/
/*********************************************/
@media (max-width: 991px) {
  .subnav-container li.nav-item{
    background: rgba(91, 183, 91, 0.2);
    border-color: rgba(91, 183, 91, 0.3);
    min-height: 40px;
  }
  
  .subnav-container li.nav-item>a>p {
    margin-top: 3px;
  }

  .navmenu-default .nav .subnav-container .nav-item {
    padding-left: 20px;
  }

  .explodednav-container li.nav-item>a>img{
    margin-top: 9px;
  }

  .subnav-container li.nav-item>a>img{
    width: 25px;
    height: 25px;
    margin-top: 8px;
  }
}

@media (min-width: 991px) {
  .explodednav-container{
    position: relative;
  }

  .subnav-container{
    border-radius: 6px;
    background: rgba(91, 183, 91, 0.2);
    width: 72px;
    margin-left: 85px;
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    margin-top: -8px;
    -ms-transform:translate(-50%,-50%); /* IE */
    -moz-transform:translate(-50%,-50%); /* Firefox */
    -webkit-transform:translate(-50%,-50%); /* Safari and Chrome */
    -o-transform:translate(-50%,-50%); /* Opera */
  }
  .subnav-container.navmenu-simple {
    margin-top:0;
    width: 63px;
    margin-left: 76px;
  }
  .subnav-container:after {
    content: '';
    display: block;  
    position: absolute;
    right: 100%;
    top: 50%;
    margin-top: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-right: 10px solid rgba(91, 183, 91, 0.2);
    border-bottom: 10px solid transparent;
    border-left: 10px solid transparent;
  }

  .subnav-container li.nav-item{
    width: 45px;
    height: 45px;
    /*margin-top: 5px;*/ /* to fix odd escaping circular border issue*/
  }

  .subnav-container li.nav-item a>img.image-size {
    width: 25px;
    height: 25px;
    margin-top: 7px;
  }

  .explodednav-container li.nav-item a>img.image-size {
    margin-top: 8px;
  }
  
  .navmenu.navmenu-default.navmenu-fixed-right.offcanvas-sm{
    overflow-y: inherit;
  }
}
