.header.cube {
  border-top: 3px solid #2DCBE9;
  position: relative;
  .brand {
    float: left;
    padding: 2px 0;
    margin: 0 0 0 20px;
    text-shadow: none;
    img {
      display: block;
      font-size: 11px;
    }
  }
  .caret {
    border: 0;
    font-family: $icon-font-name-fa;
    font-weight: normal;
    height: $font-size-base - 3;
    margin-top: 0;
    opacity: 1;
    position: relative;
    vertical-align: baseline;
    text-indent: 0;
    width: $font-size-base;
    filter: none;
    &:before {
      bottom: 0;
      content: "\f107";
      left: 0;
      line-height: $font-size-base;
      position: absolute;
      text-align: center;
      top: -1px;
      right: 0;
    }
  }
  .navbar {
    border: 0;
    border-radius: 0;
    margin-bottom: 0;
    min-height: 0;
    &.primary {
      font-size: 13px;
      &.persistent-secondary {
        .nav {
          position: static;
          .dropup .dropdown-menu {
            bottom: 0;
            top: auto;
          }
          > li {
            float: left;
             &.active {
              margin-bottom: 32px;
              position: static;
              .caret {
                display: none;
              }
              > .persistent {
                display: block;
              }
            }
            > a {
              position: static;
            }
            > .persistent {
              background: #f6f6f6;
              border-bottom: 1px solid #cecdcd;
              display: none;
              float: left;
              left: 0;
              margin: 0;
              padding: 0;
              position: absolute;
              width: 100%;
              a {
                text-decoration: none !important;
              }
              > .dropdown-submenu {
                &.active > a:after {
                  border-top-color: #0080AF !important;
                }
                &:hover > .dropdown-menu {
                  display: none;
                }
                &.open:before {
                  background: #aaa;
                  bottom: -1px;
                  content: '';
                  display: block;
                  height: 2px;
                  left: 20px;
                  position: absolute;
                  right: 20px;
                  z-index: 1;
                }
                &.open:hover > .dropdown-menu {
                  display: block;
                }
                &.open > a {
                  color: #222;
                  &:after {
                    border-top-color: #222;
                  }
                }
                > a {
                  padding-right: 37px;
                  &:after {
                    border-left-color: transparent;
                    border-top-color: #4d5258;
                    border-width: 5px 5px 0 5px;
                    margin-right: -17px;
                    margin-top: 4px;
                    opacity: .8;
                  }
                  &:before {
                    background: transparent !important;
                    border-color: #f6f6f6 transparent transparent transparent;
                    border-style: solid;
                    border-width: 5px 5px 0 5px;
                    content: '';
                    display: block;
                    float: right;
                    height: 0;
                    margin-right: -17px;
                    margin-top: 2px;
                    position: relative;
                    right: 0;
                    width: 0;
                    z-index: 2;
                  }
                }
                > .dropdown-menu {
                  border-top-color: transparent;
                  left: 21px;
                  top: 100%;
                }
              }
              > li {
                float: left;
                list-style: none;
                position: relative;
                white-space: nowrap;
                &.active {
                  &:before, &:hover:before {
                    background: #409cd3 !important;
                    bottom: -1px;
                    content: '';
                    display: block;
                    height: 2px;
                    left: 20px;
                    position: absolute;
                    right: 20px;
                    z-index: 1;
                  }
                  > a, > a:hover, &:hover > a {
                    color: #0092c7 !important;
                  }
                  .active > a { 
                    color: #fff;
                  }
                }
                &:hover {
                  &:before {
                    background: #aaa;
                    bottom: -1px;
                    content: '';
                    display: block;
                    height: 2px;
                    left: 20px;
                    position: absolute;
                    right: 20px;
                    z-index: 1;
                  }
                  > a {
                    color: #222;
                    &:after {
                      border-top-color: #222;
                    }
                  }
                }
                a {
                  color: #4d5258;
                  &:hover {
                    color: #fff;
                  }
                }
                > a {
                  background-color: transparent !important;
                  background-image: none !important;
                  display: block;
                  font-size: 13px;
                  line-height: 1;
                  padding: 9px 20px;
                  filter: none !important;
                  &:hover {
                    color: #222;
                  }
                }
                li:hover > a {
                  color: #fff;
                }
              }
            }
          }
        }
      }
      .nav { 
        > li > a {
          border-bottom: 1px solid transparent;
          border-top: 1px solid transparent;
          position: relative;
          margin: -1px 0 0;
          z-index: 1;
          &:hover {
            background-color: #316396;
            background-image: -moz-linear-gradient(top, #3A6B9E, #295A8C);
            background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#3A6B9E), to(#295A8C));
            background-image: -webkit-linear-gradient(top, #3A6B9E, #295A8C);
            background-image: -o-linear-gradient(top, #3A6B9E, #295A8C);
            background-image: linear-gradient(to bottom, #3A6B9E, #295A8C);
            background-repeat: repeat-x;
            border-top-color: #72A0D2;
          }
        }
        > .active > a, > .active > a:hover, > .active > a:focus, > .open > a, > .open > a:hover, > .open > a:focus {
          background-color: #4979AD;
          background-image: -moz-linear-gradient(top, #507FB3, #4272A5);
          background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#507FB3), to(#4272A5));
          background-image: -webkit-linear-gradient(top, #507FB3, #4272A5);
          background-image: -o-linear-gradient(top, #507FB3, #4272A5);
          background-image: linear-gradient(to bottom, #507FB3, #4272A5);
          border-top-color: #72A0D2;
          -webkit-box-shadow: none;
          -moz-box-shadow: none;
          box-shadow: none;
          color: #fff;
        }
        li.dropdown.context {
          > a {
            background-color: #326396;
            background-image: -moz-linear-gradient(top, #36679A, #2E5E91);
            background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#36679A), to(#2E5E91));
            background-image: -webkit-linear-gradient(top, #36679A, #2E5E91);
            background-image: -o-linear-gradient(top, #36679A, #2E5E91);
            background-image: linear-gradient(to bottom, #36679A, #2E5E91);
            border-bottom-color: #4373A6;
            border-right: 1px solid #4373A6;
            border-top-color: #4373A6;
            font-family: OpenSansSemiBold, Arial, Helvetica, sans-serif;
            z-index: 0;
            &:hover {
              background-color: #3C6DA0;
              background-image: -moz-linear-gradient(top, #4071A4, #38689B);
              background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4071A4), to(#38689B));
              background-image: -webkit-linear-gradient(top, #4071A4, #38689B);
              background-image: -o-linear-gradient(top, #4071A4, #38689B);
              background-image: linear-gradient(to bottom, #4071A4, #38689B);
              border-bottom-color: #4C7CAF;
              border-right-color: #4C7CAF;
              border-top-color: #4C7CAF;
            }
          }
          &.open > a {
            background-color: #4678AB;
            background-image: -moz-linear-gradient(top, #497BAE, #4373A6);
            background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#497BAE), to(#4373A6));
            background-image: -webkit-linear-gradient(top, #497BAE, #4373A6);
            background-image: -o-linear-gradient(top, #497BAE, #4373A6);
            background-image: linear-gradient(to bottom, #497BAE, #4373A6);
            border-bottom-color: #4C7CAF;
            border-right-color: #4C7CAF;
            border-top-color: #4C7CAF;
          }
        }
      }
    }
    &.utility {
      font-size: 11px;
      line-height: 1;
      .nav {
        &.nav-tabs {
          border-bottom: 0;
          border-left: 1px solid #316698;
          border-right: 1px solid #316698;
          float: left;
          margin: 0 10px;
          > li {
            //display: none;
            margin-bottom: 0;
            &.active {
              background-color: transparent;
              //display: block;
            }
            > a {
              border: 0;
              -moz-border-radius: 0;
              -webkit-border-radius: 0;
              border-radius: 0;
              margin-right: 0;
              padding: 7px 10px;
            }
          }
        }
        > .active > a, > .active > a:hover, > .active > a:focus, > .open > a, > .open > a:hover, > .open > a:focus {
          background: #3971A2;
          color: #fff;
        }
        > li > a {
          border-left: 1px solid #316698;
          color: #fff;
          padding: 7px 10px;
          &:hover {
            background: #286090;
            border-left-color: #4174A3;
          }
        }
        > li.open > a {
          border-left-color: #4A7EAD;
        }
        #tenant_switcher {
          .label {
            background-color: transparent;
            -moz-border-radius: 0;
            -webkit-border-radius: 0;
            border-radius: 0;
            font-weight: 600;
            padding: 0 4px 0 0;
          }
          > .label, > .name {
            float: left;
            line-height: 1;
            padding-bottom: 7px;
            padding-top: 7px;
          }
          > .label {
            border-left: 1px solid #316698;
            font-size: 100%;
            padding-left: 10px;
          }
          > .name {
            color: #fff;
            padding-right: 10px;
          }
        }
        &#user_info {
          margin: 0;
          padding: 0;
          > li {
            float: left;
            &.dropdown {
              > .dropdown-toggle {
                padding-left: 26px;
                .cubeicon-user {
                  left: 10px;
                  position: absolute;
                  top: 7px;
                }
              }
            }
          }
        }
      }
    }
    .dropdown .dropdown-menu .nav-header {
      padding-left: 10px;
      padding-right: 10px;
    }
    .dropdown-menu {
      border-color: #b6b6b6;
      -webkit-border-radius: 0 !important;
      -moz-border-radius: 0 !important;
      border-radius: 0 !important;
      border-top-width: 0;
      -webkit-box-shadow: 0 3px 7px rgba(0,0,0,.15);
      -moz-box-shadow: 0 3px 7px rgba(0,0,0,.15);
      box-shadow: 0 3px 7px rgba(0,0,0,.15);
      font-size: 11px;
      left: -1px;
      margin-top: 0;
      .divider {
        margin: 4px 1px;
      }
      li > a {
        border-bottom: 1px solid transparent;
        border-top: 1px solid transparent;
        color: #333;
        line-height: 22px;
        padding: 0 10px;
      }
    }
    .dropdown-menu > .active > a:hover,
    .dropdown-menu > li > a:hover,
    .dropdown-submenu:hover > a {
      background-color: #D4EDFA;
      border-color: #B3D3E7;
    }
    .dropdown-menu > .active > a,
    .dropdown-menu > .active > a:active,
    .dropdown-menu > li > a:active,
    .dropdown-menu > .active > a:focus,
    .dropdown-menu > li > a:focus,
    .dropdown-menu > .active > a:hover,
    .dropdown-submenu:focus > a {
      background-color: #0099D3;
      background-image: none;
      border-color: #0076B7;
      color: #fff;
      filter: none;
    }
    .dropdown-submenu {
      &.pull-left > .dropdown-menu {
        left: auto;
        right: 100%;
      }
      &.active > a:after {
        border-left-color: #fff;
      }
      > a:after {
        margin-right: -5px;
      }
      > .dropdown-menu {
        border-top-width: 1px;
        left: 100%;
      }
    }
    .nav { 
      > li  {
        > a {
          color: #dbdada;
          line-height: 1;
          padding: 14px 20px;
          text-shadow: none;
        }
        .dropdown-menu {
          &:after, &:before {
            display: none;
          }
        }
      }
      li.dropdown {
        li + .nav-header {
          margin-top: 4px;
        }
      }
    }
    .pull-right > li > .dropdown-menu, .nav > li >.dropdown-menu.pull-right {
      left: auto;
      right: 0;
    }
  }
  .navbar-inner {
    background: #1d4568;
    float: left;
    width: 100%;
  }
  .primary .navbar-inner {
    background-image: -moz-linear-gradient(top, #2B5273, #1C4566);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#2B5273), to(#1C4566));
    background-image: -webkit-linear-gradient(top, #2B5273, #1C4566);
    background-image: -o-linear-gradient(top, #2B5273, #1C4566);
    background-image: linear-gradient(to bottom, #2B5273, #1C4566);
    background-repeat: repeat-x;
  }
  .utility .navbar-inner {
    border-bottom: 1px solid #316698; 
  }
}
