// Sub menus
// ---------------------------
.dropdown-submenu {
  position: relative;
}
// Default dropdowns
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
}
.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

// Caret to indicate there is a submenu
.dropdown-submenu > a:after {
  display: block;
  content: " ";
  float: right;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-left-color: darken(@dropdown-bg, 20%);
  margin-right: -10px;
  margin-top: 3px;
  color: @dropdown-link-color;
  line-height: @line-height-base;
}
.dropdown-submenu:hover > a:after {
  color: @dropdown-link-active-color !important;
}

// Left aligned submenus
.dropdown-submenu.pull-left {
  // Undo the float
  // Yes, this is awkward since .pull-left adds a float, but it sticks to our conventions elsewhere.
  float: none;

  // Positioning the submenu
  > .dropdown-menu {
    left: -100%;
    margin-left: 10px;
  }
}

.dropdown-submenu:hover > a {
  text-decoration: none;
  color: @dropdown-link-hover-color;
  background-color: @dropdown-link-hover-bg;
}

.dropdown-menu {
  button {
    display: block;
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 3px 20px;
    text-align: left;
    line-height: @line-height-base;
    white-space: nowrap;

    &:hover,
    &:focus {
      color: @dropdown-link-active-color;
      background-color: @dropdown-link-active-bg;
    }

  }
  .active button {
    &,
    &:hover,
    &:focus {
      color: @dropdown-link-active-color;
      text-decoration: none;
      outline: 0;
      background-color: @dropdown-link-active-bg;
    }
  }
}

.dropdown-menu .login-container,
.dropdown-menu .server-location {
  padding: 2px 20px 5px;
}

.dropdown-menu .dropdown-icon {
  margin-right: 4px;
}

.navbar-nav > li > a.dropdown-toggle-with-icon {
  padding-bottom: 19px;
}

.dropdown-menu.right-align,
.dropdown-menu-right {
  left: auto;
  right: 0;
}

.dropdown-menu .dropdown-divider {
  margin-top: 0px;
  margin-bottom: 0px;
}

.checklist {
  i.fa-check {
    display: none;
    width: auto;
  }

  .selected i.fa-check {
    display: inline-block;
    margin-left: -14px;
    margin-right: 2px;
  }
}
