/* Reusable module to allow for a standard stylized pulldown */

/**********************************************************************************
* Taken and modified from https://www.w3schools.com/howto/howto_custom_select.asp
**********************************************************************************/

/*the container must be positioned relative:*/
.custom-select {
  position: relative;
  font-family: inherit;
}

.custom-select select {
  display: none; /*hide original SELECT element:*/
}

.select-selected {
  background-color: #DAE8F3;
}

/*style the arrow inside the select element:*/
.select-selected:after {
  position: absolute;
  content: "";
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #005B94 transparent transparent transparent;
}

/*point the arrow upwards when the select box is open (active):*/
.select-selected.select-arrow-active:after {
  border-color: transparent transparent #005B94 transparent;
  top: 7px;
}

/*style the items (options), including the selected item:*/
.select-items div,.select-selected {
  color: black;
  padding: 8px 16px;
  cursor: pointer;
  user-select: none;
}

.select-items div {
  border: 1px solid #005B94;
  border-color: transparent #005B94 #005B94 #005B94;
}

.select-selected {
  border: 2px solid #005B94;
}

.disabledPulldownDiv {
  cursor: not-allowed !important;
}

/*style items (options):*/
.select-items {
  position: absolute;
  background-color: #DAE8F3;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  max-height: 1000%;
  overflow-y: scroll;
}

/*hide the items when the select box is closed:*/
.select-hide {
  display: none;
}

.select-items div:hover, .same-as-selected, .disabledPulldownDiv {
  background-color: rgba(0, 0, 0, 0.1);
}
