/**
 * Dropdown menus
 *
 * Toggleable, contextual menu for displaying lists of links. Arrow can be added if needed.
 * You can also customize the position of the arrow.
 *
 * .arrow-top                          - Arrow up.
 * .arrow-right                        - Arrow right.
 * .arrow-bottom                       - Arrow down.
 * .arrow-left                         - Arrow left
 * .arrow-top.arrow-position-left      - Arrow on top, left positioned.
 * .arrow-right.arrow-position-top     - Arrow on the right-hand side, top positioned.
 * .arrow-bottom.arrow-position-right  - Arrow on bottom, right positioned.
 * .arrow-left.arrow-position-bottom   - Arrow on the left-hand side, bottom positioned.
 *
 * Template: dropdowns
 *
 * Styleguide 50.1
 */
/**
 * Dropdown menus with icons
 *
 * Template: dropdowns-with-icons
 *
 * Styleguide 50.1.1
 */
.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  vertical-align: middle;
  border-top: 4px solid currentcolor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  content: "";
}
.dropdown-interior-menu {
  background-color: $secondary-view-bg-color;
  padding: 0;
  margin: 0;
  list-style: none;
}
.dropdown-menu > li > a,
.dropdown-interior-menu > li > a {
  display: block;
  padding: 9px 26px;
  clear: both;
  font-family: $font-replacement;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.015em;
  font-weight: 200;
  text-transform: normal;
  color: $secondary-text-color;
  box-shadow: inset 0 1px 0 $secondary-view-bg-color;
  white-space: nowrap;
  border-bottom: none;
}
.dropdown-menu > li > a:before,
.dropdown-interior-menu > li > a:before {
  margin-right: 3px;
}
.dropdown-menu > li > a.checked,
.dropdown-interior-menu > li > a.checked {
  padding-left: 6px;
}
.dropdown-menu > li > a.checked:before,
.dropdown-interior-menu > li > a.checked:before {
  font-family: "glue1-spoticon";
  font-style: normal;
  font-weight: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
  line-height: inherit;
  vertical-align: bottom;
  content: "\f10a";
  font-size: 16px;
}
.dropdown-menu > li:last-child > a,
.dropdown-interior-menu > li:last-child > a {
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
}
.dropdown-menu > li:first-child > a,
.dropdown-interior-menu > li:first-child > a {
  border-top-right-radius: 3px;
  border-top-left-radius: 3px;
  box-shadow: none;
}
.dropdown-menu.icon-menu > li > a:before,
.dropdown-interior-menu.icon-menu > li > a:before {
  margin-left: -8px;
}
.dropdown-menu .divider,
.dropdown-interior-menu .divider {
  height: 2px;
  margin: 0;
  overflow: hidden;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 160px;
  padding: 0;
  margin: 0;
  list-style: none;
  background-color: $secondary-view-bg-color;
  border: 1px solid $primary-border-color;
  border: 1px solid rgba($primary-text-color, 0.15);
  border-radius: 3px;
  -webkit-box-shadow: 0 6px 12px rgba($primary-text-color, 0.175);
  box-shadow: 0 6px 12px rgba($primary-text-color, 0.175);
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding-box;
  background-clip: padding-box;
}
.dropdown-menu.pull-right {
  right: 0;
  left: auto;
}
.dropdown-menu:not(.no-arrow).arrow-top {
  margin-top: 10px;
}
.dropdown-menu:not(.no-arrow).arrow-top:before {
  position: absolute;
  width: 0;
  height: 0;
  content: "";
  border: 10px solid transparent;
}
.dropdown-menu:not(.no-arrow).arrow-top:before {
  top: -20px;
  left: 50%;
  margin-left: -10px;
  margin-right: -10px;
  border-bottom: 10px solid $primary-border-color;
}
.dropdown-menu:not(.no-arrow).arrow-bottom {
  margin-bottom: 10px;
}
.dropdown-menu:not(.no-arrow).arrow-bottom:before {
  position: absolute;
  width: 0;
  height: 0;
  content: "";
  border: 10px solid transparent;
}
.dropdown-menu:not(.no-arrow).arrow-bottom:before {
  bottom: -20px;
  left: 50%;
  margin-left: -10px;
  margin-right: -10px;
  border-top: 10px solid $primary-border-color;
}
.dropdown-menu:not(.no-arrow).arrow-right {
  margin-right: 10px;
}
.dropdown-menu:not(.no-arrow).arrow-right:before {
  position: absolute;
  width: 0;
  height: 0;
  content: "";
  border: 10px solid transparent;
}
.dropdown-menu:not(.no-arrow).arrow-right:before {
  right: -20px;
  top: 50%;
  margin-top: -10px;
  margin-bottom: -10px;
  border-left: 10px solid $primary-border-color;
}
.dropdown-menu:not(.no-arrow).arrow-left {
  margin-left: 10px;
}
.dropdown-menu:not(.no-arrow).arrow-left:before {
  position: absolute;
  width: 0;
  height: 0;
  content: "";
  border: 10px solid transparent;
}
.dropdown-menu:not(.no-arrow).arrow-left:before {
  left: -20px;
  top: 50%;
  margin-top: -10px;
  margin-bottom: -10px;
  border-right: 10px solid $primary-border-color;
}
.dropdown-menu:not(.no-arrow).arrow-position-left:before {
  left: 20px;
}
.dropdown-menu:not(.no-arrow).arrow-position-right:before {
  left: auto;
  right: 20px;
}
.dropdown-menu:not(.no-arrow).arrow-position-top:before {
  top: 20px;
}
.dropdown-menu:not(.no-arrow).arrow-position-bottom:before {
  top: auto;
  bottom: 20px;
}
.dropdown-interior-menu > li.selected,
.dropdown-interior-menu > li > a:focus,
.dropdown-menu > li.selected,
.dropdown-menu > li > a:focus,
.dropdown-submenu:focus > a {
  color: $secondary-text-color;
  background-color: $main-view-bg-color;
  outline: none;
}
.dropdown-menu > .active > a,
.dropdown-interior-menu > .active > a,
.dropdown-menu > .active.selected,
.dropdown-interior-menu > .active.selected,
.dropdown-menu > .active > a:focus,
.dropdown-interior-menu > .active > a:focus {
  color: $primary-accent-color;
  text-decoration: none;
  outline: 0;
  background-color: $secondary-view-bg-color;
}
.dropdown-menu > .disabled > a,
.dropdown-interior-menu > .disabled > a,
.dropdown-menu > .disabled > a:focus,
.dropdown-interior-menu > .disabled > a:focus {
  color: rgba(160, 160, 160, 0.5);
}
.dropdown-menu > .disabled > a:focus,
.dropdown-interior-menu > .disabled > a:focus {
  text-decoration: none;
  background-color: transparent;
  background-image: none;
  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  cursor: default;
}
.open > .dropdown-menu {
  display: block;
}
.open > a {
  outline: 0;
}
.dropdown-backdrop {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 990;
}
.pull-right > .dropdown-menu {
  right: 0;
  left: auto;
}
.dropup .caret,
.navbar-fixed-bottom .dropdown .caret {
  border-top: 0;
  border-bottom: 4px solid currentcolor;
  content: "";
}
.dropup .dropdown-menu,
.navbar-fixed-bottom .dropdown .dropdown-menu {
  top: auto;
  bottom: 100%;
  margin-bottom: 1px;
}
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu > .dropdown-menu {
  top: 0;
  margin-top: -1px;
  left: calc(100% - 1px);
  display: none;
}
.dropdown-submenu > .dropdown-menu.open {
  display: inline;
}
.dropdown-submenu.left > .dropdown-menu {
  left: auto;
  right: calc(100% - 1px);
}
.dropup .dropdown-submenu > .dropdown-menu {
  top: auto;
  bottom: 0;
  margin-top: 0;
  margin-bottom: -2px;
  border-bottom-left-radius: 0;
}
.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: $primary-border-color;
  margin-top: 4px;
  margin-right: -7px;
}
.dropdown-submenu:hover > a:after {
  border-left-color: $primary-border-color;
}
.dropdown-submenu.pull-left {
  float: none;
}
.dropdown-submenu.pull-left > .dropdown-menu {
  left: -100%;
  margin-left: 10px;
  border-top-right-radius: 0;
}
.dropdown .dropdown-menu .nav-header {
  padding-left: 20px;
  padding-right: 20px;
}
.typeahead {
  z-index: 1051;
}
