/* --------- DROPDOWN SECTION ---------- */

.dropdown-menu {
  background-color: $dusky-blue;
  width: max-content;
  min-width: 9em;
}

.dropdown-menu.submenu {
  -webkit-border-radius: 0 0 0.25em 0.25em;
  -moz-border-radius: 0 0 0.25em 0.25em;
  border-radius: 0 0 0.25em 0.25em;
}

ngb-datepicker.dropdown-menu {
  padding: 0;
  background-color: $white;
}

ngb-datepicker-navigation {
  background-color: $nepal-grey;
  padding: 0.1em;
}

.ngb-dp-weekdays {
  background-color: $nepal-grey;
}

.ngb-dp-weekday {
  color: $white;
}

.btn-light {
  color: $coral-pink
}

.action-group .dropdown-menu {
  background-color: $white;
  margin-top: 0;
  font-size: 0.8em;
}

.action-group h4 {
  font-size: 0.8em;
  color: $midnight-grey;
}

.action-group .dropdown-menu li {
  padding: 0.5em;
}

.action-group .dropdown-menu li a {
  color: $median-grey;
}

.action-group .dropdown-menu li a:hover {
  text-decoration: none;
}

.action-alert .dropdown-menu li:not(:last-of-type),
.action-favourite .dropdown-menu li:not(:last-of-type),
.action-new .dropdown-menu li:not(:last-of-type) {
  border-bottom: 0.05em dotted $midnight-grey;
}

.action-alert .dropdown-menu svg,
.action-favourite .dropdown-menu svg,
.action-new .dropdown-menu svg {
  margin: 0 0.3em 0 0;
}

.action-alert .dropdown-menu svg path {
  fill: $burnt-orange;
}

.action-favourite .dropdown-menu svg path {
  fill: $sandy-yellow;
}

.action-new .dropdown-menu svg polygon {
  fill: $light-purple;
}

.alert-list-item:hover {
  background-color: $bright-grey;
  cursor: pointer;
}

.favourite-list-item:hover {
  background-color: $sky-grey;
  cursor: pointer;
}

.new-list-item:hover {
  background-color: $bright-blue;
  cursor: pointer;
}

.action-alert .dropdown-menu {
  border: 0.35em solid $burnt-orange;
}

.action-favourite .dropdown-menu {
  border: 0.35em solid $sandy-yellow;
}

.action-new .dropdown-menu {
  border: 0.35em solid $light-purple;
}

.alerts-button.dropdown-toggle[_ngcontent-c1]::after,
.quickcreate-button.dropdown-toggle[_ngcontent-c1]::after,
.favourites-button.dropdown-toggle[_ngcontent-c1]::after {
  vertical-align: 0.05em;
}

a.close-navmenu {
  color: $light-grey;
  font-size: 0.8em;
  font-weight: bold;
  cursor: pointer;
}

a.close-navmenu:hover {
  color: $salmon-pink;
}

.close-navmenu svg polygon {
  fill: $light-grey;
}

.close-navmenu svg {
  margin: 0 0.3em 0 0;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu a::after {
  transform: rotate(-90deg);
  position: absolute;
  right: 1.5em;
  top: 40%;
}

.dropdown-submenu:hover .dropdown-menu,
.dropdown-submenu:focus .dropdown-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  margin-top: -2.2em;
  left: 100%;
}

.nav-link-grouped:hover, .nav-link-nongrouped:hover {
  color: $light-grey;
  text-decoration: none;
  background-color: $dusky-blue;
  margin-top: 1em;
  -webkit-border-top-left-radius: 0.285em;
  -webkit-border-top-right-radius: 0.285em;
  -moz-border-radius-topleft: 0.285em;
  -moz-border-radius-topright: 0.285em;
  border-top-left-radius: 0.285em;
  border-top-right-radius: 0.285em;
}

ul.main li.nav-item,
.main ul li {
  padding: 0 1em;
}

.nav-item .dropdown-menu {
  border: 0;
}

.dropdown-menu .nav-item:hover, .dropdown-menu .nav-item .action-link:hover  {
  background-color: $dull-orange;
}

ul.main li a,
.main ul li a,
.non-grouped .action-link {
  font-size: 0.8em;
}

.top-nav .dropdown-menu,
.top-nav .submenu {
  margin: 0;
  padding: 0;
}

.global-links-dropdown {
  margin: 0;
  right: 0;
  position: absolute;
  -webkit-border-radius: 0.25em;
  -webkit-border-top-left-radius: 0;
  -webkit-border-top-right-radius: 0;
  -moz-border-radius: 0.25em;
  -moz-border-radius-topleft: 0;
  -moz-border-radius-topright: 0;
  border-radius: 0.25em;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top-width: 0;
}

.primary-global-link {
  height: 3.1em;
  line-height: 3.1em;
}

.global-link-item .nav-link {
  height: 3.1em;
  line-height: 3.1em;
  margin: 0;
  padding: 0;
}

.select-action-group {
  .bulk-action-button {
    min-width: auto;
  }
}

@media only screen and (min-width: $breakpoint-large) {
  .global-links-sublink {
    background-color: $dusky-blue;
    padding: 0.4em 0.8em 0.4em 1.8em;
    font-size: 0.8em;
    border-bottom: none;
    color: $light-grey;
  }

  .global-links-sublink:not(:last-of-type) {
    border-bottom: 0.05em solid $midnight-grey;
  }

  .global-links-dropdown a:hover {
    color: $salmon-pink;
    -webkit-transition: color 0.5s ease-out;
    -moz-transition: color 0.5s ease-out;
    -o-transition: color 0.5s ease-out;
    transition: color 0.5s ease-out;
  }
}

@media only screen and (max-width: $breakpoint-large) {
  .global-links .dropdown-menu {
    border: none;
    background-color: $dusky-blue;
  }

  .global-links a {
    border: none;
    padding: 0.4em 0.8em 0.4em 1.8em;
    font-size: 0.9em;
    color: $light-grey;
  }
}


@media (max-width: $breakpoint-xlarge) {
  .dropdown-menu .dropdown-submenu {
    width: auto;
  }
}

@media all and (max-height: $breakpoint-xxxlarge) {
  .more-menu {
    height: max-content;
    max-height: $breakpoint-xxlarge;
    overflow-y: scroll;
  }
}

@media all and (max-height: $breakpoint-xxlarge) {
  .more-menu {
    height: max-content;
    max-height: $breakpoint-large;
    overflow-y: scroll;
  }
}

@media all and (max-height: $breakpoint-xlarge) {
  .more-menu {
    height: max-content;
    max-height: $breakpoint-medium;
    overflow-y: scroll;
  }
}

@media all and (max-height: $breakpoint-large) {
  .more-menu {
    height: max-content;
    max-height: $breakpoint-small;
    overflow-y: scroll;
  }
}

@media all and (max-height: $breakpoint-small) {
  .more-menu {
    height: max-content;
    max-height: 15em;
    overflow-y: scroll;
  }
}

.chart-item, .dropdown-item.active, .dropdown-item:active {
  background-color: transparent;
}

.dropdown-button .dropdown-menu,
.button-group-dropdown .dropdown-menu,
.bulk-action-group .dropdown-menu,
.select-action-group .dropdown-menu {
  font-size: 1em;
  -webkit-border-radius: 0.25em;
  -webkit-border-top-left-radius: 0;
  -webkit-border-top-right-radius: 0;
  -moz-border-radius: 0.25em;
  -moz-border-radius-topleft: 0;
  -moz-border-radius-topright: 0;
  border-radius: 0.25em;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background-color: $cool-blue;
  width: max-content;
  min-width: 10em;
  border: 0;
  margin: 0;

  .dropdown-item {
    padding: .25em .8em;
  }
}

.dropdown-button-secondary .dropdown-menu {
  background-color: $nepal-grey;
}


.filter-action-group .dropdown-menu,
.select-action-group .dropdown-menu {
  font-size: 1em;
  -webkit-border-radius: 0.25em;
  -webkit-border-top-left-radius: 0;
  -webkit-border-top-right-radius: 0;
  -moz-border-radius: 0.25em;
  -moz-border-radius-topleft: 0;
  -moz-border-radius-topright: 0;
  border-radius: 0.25em;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background-color: $nepal-grey;
  width: max-content;
  min-width: 10em;
  border: 0;
  margin: 0;
  .dropdown-item {
    padding: .25em .8em;
  }
}

.dropdown-button-secondary .dropdown-menu a,
.filter-action-group .dropdown-menu a,
.select-action-group .dropdown-menu a {
  color: $white;
}

.dropdown-button-secondary .dropdown-menu a:hover,
.filter-action-group .dropdown-menu a:hover,
.select-action-group .dropdown-menu a:hover {
  background-color: $astral-blue;
  color: $white;
  cursor: pointer;
}

.dropdown-button .dropdown-menu a,
.button-group-dropdown .dropdown-menu a,
.bulk-action-group .dropdown-menu a,
.select-action-group .dropdown-menu a {
  color: $white;
}

.dropdown-button .dropdown-menu a:hover,
.button-group-dropdown .dropdown-menu a:hover,
.bulk-action-group .dropdown-menu a:hover,
.select-action-group .dropdown-menu a:hover {
  background-color: $astral-blue;
  color: $white;
  cursor: pointer;
}

.mobile-nav-dropdown.dropdown-menu {
  padding: 0;
  margin: 0;
}

.mobile-nav-dropdown li, .mobile-nav-dropdown li:hover {
  color: $off-white;
  padding: 0.5em 1.5em;
  margin: 0;
  border-top: 0.05em solid $off-white;
}

.mobile-nav-dropdown li a {
  display: inline-block;
}

.mobile-nav-dropdown .mobile-nav-arrow {
  float: right;
}

.mobile-nav-dropdown .dropdown-item:hover {
  background-color: $vacant-orange;
  cursor: pointer;
}
