.s-single-structure .s-hide-single-structure {
  display: none;
}

#ghx-tab-com-almworks-jira-structure-greenhopper-tab {
  margin-bottom: 0;
  padding-bottom: 32px;
}

.st-pcv-head {
  margin: -5px 0 15px 0;
}

#st-gh-tab-content {
  position: relative;
}

#st-gh-tab-content .s-editor .jira-multi-select .representation .value-item {
  padding: 0 20px 0 5px;
}

#st-gh-tab-content .s-editor textarea#description {
  max-width: 300px;
}

#st-gh-tab-content #structure.ie8 .s-editor textarea#description {
  width: 300px !important;
}

/* BEGIN - UI Settings Dialog v.2 (on issue / project page) */
.s-uiopts {
  padding: 20px 16px 12px;
}

/* overrides large left padding for forms */
.s-uiopts form.aui .group {
  padding: 4px 16px;
}

/* needs highly specific selector to override AUI margin */
.s-uiopts form.aui div.radio.s-indent {
  margin-left: 20px;
}

/* separates options that follow indented sub-options (could be done without additional class, but too much hassle) */
.s-uiopts form.aui div.checkbox.s-m10 {
  margin-top: 10px;
}

.s-uiopts .buttons {
  text-align: right;
  margin: 8px 0 0;
}

#s-uid-working-icon {
  float: left;
  height: 16px;
  width: 16px;
  background: transparent url("/s/-2rizk2/940000/z9u883/8.2.0/_/download/resources/com.almworks.jira.structure:widget-css/img/loading.gif");
  visibility: hidden;
  margin-top: 6px;
}

.s-disabled #s-uid-defaultname {
  color: #999;
}

/* END - UI Settings Dialog v.2 (on issue / project page) */

#s-uid-defaultname {
  font-weight: bolder;
}

#structuremodule #structure {
  /**
   * In Jira >=8.12 header#stalker containing dropdown menus on issue page has z-index: 2
   * and it's located in same stacking contexts with #structure.
   */
  z-index: 1;
}

/* Panel Header modifications on the issue page */
#structuremodule .s-ph-container {
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: -5px;
}

#structuremodule .s-ph-options {
  display: none;
}

#structuremodule { /* off by default */
  display: none !important;
}

#structuremodule.s-show {
  display: block !important;
}

/* Panel Header modifications on Agile page */
#st-gh-tab-content .s-ph-container {
  padding-left: 0;
  padding-right: 0;
}

#st-gh-tab-content .s-ph-view-container, #st-gh-tab-content .s-ph-transforms-container {
  display: none;
}

ul.s-ops {
  background-color: white;
  float: right;
  margin: 3px 0 0 0;
  padding: 0;
  list-style-type: none;
}

ul.s-ops > li {
  display: block;
  float: left;
  white-space: nowrap;
  margin: 0 0 0 4px;
  position: relative;
}

#structuremodule.collapsed .s-hide-if-collapsed {
  display: none;
}

#st-gh-tab-content #structure .s-gh-hide {
  display: none;
}

.ghx-tab-com-almworks-jira-structure-greenhopper-tab > strong > span {
  position: relative;
  top: -1px;
}

body.s-project-page {
  overflow: auto;
}

.s-project-page .s-hide-on-project-page,
.s-project-page #footer {
  display: none;
}

.s-project-page .aui-page-panel {
  border-bottom: none;
}

.s-project-page #structure-board {
  min-width: 944px; /* 1000px - 56px jira sidebar */
}

/*
  issue page -- override structure selector if there's only one structure
  the code will add aria-disabled="true", so we need to override disabled color as well
*/
.s-single-structure .s-ph-options-selector.aui-button.aui-button-link,
.s-single-structure .s-ph-options-selector.aui-button.aui-button-link:hover {
  color: #333333;
}

.s-single-structure #gh .s-ph-options-selector.aui-button[aria-disabled="true"] {
  opacity: 1; /* override GH's opacity: 0.5 for disabled buttons */
}

.s-single-structure .s-ph-options-selector.aui-button.aui-button-link:hover .alm {
  color: #6f6f6f;
}

.s-single-structure .s-ph-options-selector.aui-button.aui-button-link:after {
  display: none; /* hide drop-down arrow */
}

/* Fixes for JIRA 7 - drag-and-drop files to the issue page */
.s-show-on-dnd {
  visibility: hidden;
  transition: visibility 0.1s;
}

body.attachments-drop-zone__window-dragover .s-show-on-dnd {
  visibility: visible;
  transition-duration: 0s;
}

/* End of fixes for JIRA 7 */

/* Time Tracking */

#tt_use_structure label {
  color: #666;
  margin-left: 0.5em;
}

#tt_use_structure {
  margin: -4px 0 8px 0;
}

.tt_no_non_structure {
  color: #666;
}

/* Time Tracking End */

#unstructured-warning {
  display: none;
  color: #888;
  background: #fff;
  cursor: default;
  padding: 0 4px;
  overflow: hidden;
  font-size: 11px;
  position: relative;
  top: 1px;
}

#structure-helper-panel {
  display: none !important;
}

/* no border on issue page and */
#structuremodule .s-forest-panel, #st-gh-tab-content .s-forest-panel {
  border-top: none;
}

/* override GH's overriding AUI */
#st-gh-tab-content .aui-button.aui-button-compact {
  font-size: 14px;
  padding: 0;
  height: 30px;
  line-height: 14px;
}

a.s-newwindow span {
  padding-right: 16px;
  background: url("/s/-2rizk2/940000/z9u883/8.2.0/_/download/resources/com.almworks.jira.structure:widget-css/img/ui-icons_888888_256x240.png") no-repeat -48px -80px;
  visibility: hidden;
}

a.s-newwindow:hover span, a.s-newwindow:active span, a.s-newwindow:focus span {
  visibility: visible;
}

.s-match {
  font-weight: bold;
}
