.s-ph-options-selector {
  align-self: flex-start;

  /* Makes the selector stop when it hits float:right panel */
  max-width: 100%;

  /* Makes structure name end with ellipsis if it doesn't fit. */
  text-overflow: ellipsis;
  word-wrap: normal;
  overflow: hidden;

  /* In case when for some reason the width is larger than needed */
  text-align: left;
}

#structure .s-ph-options-selector-shadow {
  position: absolute;
  float: none;
  left: -99999px;
  visibility: hidden;
  text-overflow: clip; /* override .s-ph-options-selector to measure full width */
}

.s-ph-options-selector.aui-button.aui-button-link {
  font-size: 18px;
  line-height: 1;
  padding: 6px 0;
  border: none;
  height: auto;
  color: #172B4D;
  outline: none;
  margin-right: 2px;
  -webkit-filter: none;
  filter: none;
}

/* for Jira >= 8.12 */
.s-ph-options-selector.aui-button.aui-button-link[aria-disabled="true"]:before {
  display: none;
}

.s-ph-options-selector .alm {
  color: #344563;
}

.s-ph-options-selector .active .alm,
.s-ph-options-selector:hover .alm {
  color: #0049B0;
}

.s-ph-options-selector.aui-button.aui-button-link:hover {
  color: #0049B0;
}

.s-ph-options-selector i {
  padding: 0 4px 0 0;
}

.s-ph-options-container {
  overflow: auto;
}

.s-ph-options-container .structure-list i {
  color: transparent;
}

.s-ph-options-container .s-ph-search-container.aui-dropdown2-section + .aui-dropdown2-section {
  border-top: none;
}

.s-ph-options-container i {
  padding-right: 6px;
  vertical-align: bottom;
}

.s-ph-options-container .aui-dropdown2-heading {
  padding: 10px 10px 5px 10px;
}

.s-ph-options-container {
  z-index: 20;
  width: 250px;
  min-width: 250px !important; /* JIRA code sets min-width to be the same as the button width -- which can be really large */
}

.s-ph-options-container.aui-dropdown2:hover li a:hover:not(.active) {
  background-color: #fff;
  color: #333;
}

.s-ph-options-container.aui-dropdown2.aui-style-default [aria-disabled="true"] {
  color: #999;
}

.s-ph-search-container {
  margin: 0;
  padding: 10px 10px 0 10px;
}

.s-ph-search-container input[type="text"] {
  max-width: none;
}

.s-ph-search-container input[type="text"]:focus {
  outline: none;
  border-color: #98d9ff;
  box-shadow: 0 0 3px #98d9ff;
}

.s-ph-cb-size {
  vertical-align: text-bottom;
}
