/* Primary Colors */
/* Secondary Colors */
/* Derivative Colors */
/*
    ADG styles to be added to select2 items.

    There are 5 main components that select2 uses.
    # select2-container - the top-level container that wraps the original <input> element
    ## select2-choice - the <a> the user clicks on to trigger the dropdown, shows the selected item
    # select2-drop - the top-level container directly in the <body> that displays the dropdown
    ## select2-search - the search box in the dropdown
    ## select2-results - the list of results in the dropdown, including groups

    Overrides in this CSS file should start with:
    # .aui-select2-container - in auiSelect2 JS we add this class to the top container
    # .aui-select2-drop - in auiSelect2 JS we add this class to the dropdown container

    By sticking to these two selector elements we won't accidentally break other code that uses select2. If they want
    sexy ADG styles they can call auiSelect2() instead of select2().
    Please don't add application-specific styles/rules in here, as these styles will eventually be pulled into AUI.
*/
.aui-select2-drop .select2-search input {
  min-height: 0;
  font-family: inherit;
}
.aui-select2-drop .select2-result-selectable .select2-match,
.aui-select2-drop .select2-result-unselectable .select2-match {
  text-decoration: none;
  font-weight: bold;
}
.aui-select2-drop .select2-results ul.select2-result-sub {
  padding: 0;
}
.aui-select2-drop.aui-dropdown2 .select2-search {
  padding: 5px;
}
.aui-select2-drop {
  -moz-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  /* re-instated style from core select2 style */

}
.aui-select2-drop.select2-drop-above.select2-drop-active {
  border: 1px solid #cccccc;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  -moz-box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  margin-top: 0;
}
.aui-select2-drop .select2-result-unselectable > .select2-result-label {
  text-transform: uppercase;
  font-size: 12px;
  color: #707070;
  padding: 5px 10px 0;
}
.aui-select2-drop .select2-results ul.select2-result-sub > li .select2-result-label,
.aui-select2-drop .select2-results .select2-result-label,
.aui-select2-drop .select2-results .select2-searching,
.aui-select2-drop .select2-results .select2-no-results,
.aui-select2-drop .select2-results .select2-more-results {
  padding: 3px 10px;
}
.aui-select2-drop .select2-result-label {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.aui-select2-drop .select2-results {
  margin: 2px 0;
  padding: 0;
}
.aui-select2-drop .select2-more-results,
.aui-select2-drop .select2-searching,
.aui-select2-drop .select2-no-results {
  background-color: transparent;
}
.aui-select2-drop .select2-search input,
.aui-select2-drop {
  border: 1px solid #cccccc;
  /* make border color consistent with AUI button border color */

}
.aui-select2-drop .select2-search input {
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}
.aui-select2-container.select2-container .select2-choice,
.aui-select2-drop {
  color: inherit;
  max-width: none;
}
.aui-select2-drop .select2-results ul.select2-result-sub {
  margin: 2px 0;
}
.aui-select2-drop .select2-result-sub .select2-result-unselectable > .select2-result-label {
  text-transform: none;
  font-size: inherit;
  margin-top: 5px;
}
.aui-select2-drop.aui-dropdown2.aui-style-default {
  margin-left: 0;
}
.aui-select2-drop .select2-results .select2-highlighted {
  background-color: #3b73af;
}
.aui-select2-container.select2-container .select2-choice > span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  -o-text-overflow: ellipsis;
  -ms-text-overflow: ellipsis;
  text-overflow: ellipsis;
}
.aui-select2-container.select2-container .select2-choice .select2-arrow {
  background: none;
  border: none;
  filter: none;
}
.aui-select2-container.select2-container-active .select2-choice,
.aui-select2-container.select2-container-active .select2-choices {
  border: none;
  outline: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}
.aui-select2-container.select2-container .select2-choice .select2-arrow b {
  display: none;
  background: none;
}
.aui-select2-container.select2-container .select2-choice {
  padding-right: 23px;
  /* 8px (arrow width) + 10px (right padding) + 5px (margin between arrow and logo) */

  position: relative;
  width: inherit;
}
.aui-select2-container.select2-container a.select2-choice,
.aui-select2-container.select2-container a.select2-choice:focus,
.aui-select2-container.select2-container a.select2-choice:hover,
.aui-select2-container.select2-container a.select2-choice:active {
  text-decoration: none;
}
.aui-select2-container.select2-container .select2-choice:after {
  border: 4px solid transparent;
  content: "";
  height: 0;
  left: 100%;
  /* "left" + "margin-left" required because of webkit not working properly with "right" */

  margin-left: -18px;
  margin-top: -2px;
  opacity: 0.8;
  position: absolute;
  top: 50%;
  width: 0;
}
.aui-select2-container.select2-container .select2-choice:after {
  border-top-color: #333333;
}
.aui-select2-container.select2-container .select2-choice:hover:after,
.aui-select2-container.select2-container .select2-choice.active:after {
  opacity: 1;
}
.aui-select2-container.select2-container .select2-choice:after {
  margin-top: 0;
  top: 12px;
}
/* Set the default text color to inherit.
   NOTE: this class is only marked as !important because Select2 marks the same
   selector as !important in it's styles. */
.aui-select2-container .select2-input {
  color: inherit !important;
}
/* Since select2 uses the placeholder text as the value of the input,
  the following style is used to override text color to mach ADG placeholder.
  Select2 gives the input a class of select2-default when the value represents the placeholder value.
  NOTE: this class is only marked as !important because Select2 marks the same
  selector as !important in its styles. */
.aui-select2-container .select2-default {
  color: #707070 !important;
}
.aui-select2-container .select2-choices .select2-search-field input {
  font-family: inherit;
  font-size: 14px;
  height: 1.4285714285714em;
  /* 20px - using ems so the fields increase in line with user specified font-sizes */

  line-height: 1.4285714285714;
  margin: 0;
  padding: 0;
}
.aui-select2-container.select2-container-multi .select2-choices {
  min-height: 0;
  background: #ffffff;
}
.aui-select2-container.select2-container-multi.text {
  height: auto;
}
.aui-select2-container .select2-choices .select2-search-choice {
  background: #f5f5f5;
  border: 1px solid #cccccc;
  border-radius: 3.01px;
  /* 3.01 for IE10 */

  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  color: #333333;
  display: inline-block;
  font-size: 14px;
  font-weight: normal;
  line-height: 1;
  padding: 1px 18px 1px 5px;
  position: relative;
  margin: 1px 5px 1px 0;
  text-align: left;
  text-decoration: none;
}
.aui-select2-container .select2-choices .select2-search-choice-focus {
  border-color: #707070;
}
.aui-select2-container .select2-choice abbr {
  padding-top: 10px;
  position: absolute;
  top: 10px;
}
.aui-select2-container.select2-allowclear .select2-choice abbr {
  display: block;
}
.aui-select2-container .select2-search-choice-close {
  cursor: pointer;
  display: block;
  height: 8px;
  left: auto;
  position: absolute;
  right: 5px;
  top: 4px;
  width: 8px;
}
/* Clear select2's overrides for retina displays */
@media all, (-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5) {
  .aui-select2-container.select2-container .select2-search-choice-close,
  .aui-select2-container.select2-container .select2-choice abbr {
    /* !important to ensure that the select2 hover state doesn't modify the background position */
  
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFH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r6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAFZJREFUeNqEj8ENwDAIAy8VY7EKyyWrsJf7KRHpJ0h8zgjbSGLOKUn0LWZrLWUmgCJiAHRmH9wAIDNxdyJiGMDvaIsAD5ex7unulEVlsi7W2yPTreY7APE9YkMbUVxBAAAAAElFTkSuQmCC") 0 0 no-repeat !important;
    background-size: 8px !important;
  }
}
/* In order to beat out select2's overrides, the aui-button style had to be copied in below.
   Unfortunately, any changes to that style will have to be copied here as well to keep the select2
   element consistent.*/
.aui-select2-container.select2-container .select2-choice,
.aui-select2-container.select2-container a.select2-choice,
.aui-select2-container.select2-container .select2-choice:visited {
  background: #f2f2f2;
  background: -webkit-linear-gradient(top, #ffffff 0%, #f2f2f2 100%);
  background: -moz-linear-gradient(top, #ffffff 0%, #f2f2f2 100%);
  background: -ms-linear-gradient(top, #ffffff 0%, #f2f2f2 100%);
  background: -o-linear-gradient(top, #ffffff 0%, #f2f2f2 100%);
  background: linear-gradient(to bottom, #ffffff 0%, #f2f2f2 100%);
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  border: 1px solid #cccccc;
  border-radius: 3.01px;
  color: inherit;
  cursor: pointer;
  display: inline-block;
  filter: none;
  font-family: inherit;
  font-size: inherit;
  font-variant: normal;
  font-weight: normal;
  height: 2.1428571428571em;
  /* 30px - using ems so the fields increase in line with user specified font-sizes */

  line-height: 1.4285714285714;
  margin: 0;
  padding: 4px 10px;
  text-decoration: none;
  text-shadow: 0 1px 0 white;
  vertical-align: top;
  white-space: nowrap;
}
.aui-select2-container.select2-container .select2-choice:focus,
.aui-select2-container.select2-container .select2-choice:hover,
.aui-select2-container.select2-container.select2-container-active .select2-choice {
  background: #f7f7f7;
  background: -webkit-linear-gradient(top, #ffffff 0%, #f7f7f7 100%);
  background: -moz-linear-gradient(top, #ffffff 0%, #f7f7f7 100%);
  background: -ms-linear-gradient(top, #ffffff 0%, #f7f7f7 100%);
  background: -o-linear-gradient(top, #ffffff 0%, #f7f7f7 100%);
  background: linear-gradient(to bottom, #ffffff 0%, #f7f7f7 100%);
  border-color: #999999;
  color: #000000;
  text-decoration: none;
}
.aui-select2-container.select2-container .select2-choice:active,
.aui-select2-container.select2-container.select2-dropdown-open .select2-choice {
  background-image: none;
  background-color: #f5f5f5;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.1);
  filter: none;
  text-shadow: none;
  text-decoration: none;
}
.aui-select2-container.select2-container.select2-dropdown-open .select2-choice,
.aui-select2-container.select2-container.select2-dropdown-open .select2-choices {
  /* square off bottom corners */

  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-width: 0;
  /* avoid double border when the dropdown is active - increase padding to cater for this reduction */

  padding-bottom: 5px;
  /* increase the padding to cater for the lack of border so the button doesn't change size */

}
.aui-select2-container.select2-container.select2-dropdown-open.select2-drop-above .select2-choice,
.aui-select2-container.select2-container.select2-dropdown-open.select2-drop-above .select2-choices {
  border-radius: 3.01px;
  /* restore border-radius */

  border-bottom-width: 1px;
  /* restore bottom border */

  /* square off top corners instead */

  border-top-right-radius: 0;
  border-top-left-radius: 0;
  border-top-width: 0;
  /* avoid double border when the dropdown is active - increase padding to cater for this reduction */

  padding-bottom: 4px;
  /* restore bottom padding */

  padding-top: 5px;
  /* increase the padding to cater for the lack of border so the button doesn't change size */

}
.aui-select2-container.select2-container.select2-drop-above .select2-choice,
.aui-select2-container.select2-dropdown-open.select2-drop-above .select2-choice,
.aui-select2-container.select2-dropdown-open.select2-drop-above .select2-choices,
.aui-select2-container.select2-container-multi .select2-choices .select2-search-choice {
  filter: none;
}
.aui-select2-container.select2-container .select2-choice abbr {
  display: none;
}
.aui-select2-container .aui-avatar {
  margin-right: 5px;
}
.aui-select2-container.aui-has-avatar .select2-search-choice-close {
  top: 5px;
}
.aui-select2-container.aui-has-avatar .select2-choices .select2-search-field input {
  padding: 1px 0;
}
.aui-select2-drop.aui-has-avatar .select2-results .select2-result-label .aui-avatar {
  margin-right: 5px;
  vertical-align: middle;
}
.aui-select2-drop.aui-has-avatar .select2-more-results,
.aui-select2-drop.aui-has-avatar .select2-searching,
.aui-select2-drop.aui-has-avatar .select2-no-results {
  padding-bottom: 5px;
  padding-top: 5px;
}
