/* module-key = 'com.almworks.jira.structure:manageSpa', location = 'css/structure/input/pagination.css' */
.s-pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  color: var(--st-text-subtle);
  font-size: 14px;
  line-height: 24px;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.s-pagination-button {
  box-sizing: content-box;
  appearance: none;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: center;
  min-width: 20px;
  height: 24px;
  border: transparent solid 1px;
  border-radius: 3px;
  padding: 2px;
  margin: 0 3px;
}

.s-pagination.disabled .s-pagination-button,
.s-pagination-button.disabled,
.s-pagination-button:disabled {
  pointer-events: none;
  cursor: default;
  color: var(--st-text-disabled);
}

.s-pagination-button:not(.disabled):not(:disabled) {
  cursor: pointer;
}

.s-pagination-button:not(.disabled):not(:disabled):hover {
  border-color: var(--st-background-accent-gray-bolder);
}

.s-pagination-button.s-pagination-current {
  background: var(--st-background-accent-gray-bolder);
  color: var(--st-text-inverse);
}

.s-pagination-gap {
  padding: 0 8px;
}

/* module-key = 'com.almworks.jira.structure:manageSpa', location = 'css/structure/ManageSpa.css' */
.s-man-invisible-header {
  font-size: 0;
  line-height: 0;
  margin: 0;
}

#s-man-search {
  position: initial;
  margin: 0;
}
#s-man-search > * {
  margin-block-end: 5px;
  margin-inline-end: 5px;
  /* UIKit aligns at "baseline", and it looks off.*/
  align-items: center;
}
button.s-man-filter-width {
  max-width: 160px;
}
.s-man-name-regexp {
  /* Avoid it taking more space (and shifting the layout) when switched to bold. */
  min-width: 22px;
  /* AUI doesn't define this. */
  padding-inline: 4px;
  /* In case of too-wide font, it might take more - at least stop it from wrapping.*/
  white-space: nowrap;
  background: none;
  border: 0;
  margin-inline-end: 2px;
}
.s-man-name-regexp:hover {
  background-color: var(--st-background-inverse-subtle-hovered);
}
.s-man-name-regexp > span {
  color: var(--st-text-subtlest);
}
.s-man-name-regexp[aria-pressed=true] > span {
  color: var(--st-text-accent-blue);
  font-weight: bold;
}

.s-man-status-reload {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.s-man-loading {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.aui-page-panel:has(> .s-man-loading) > .content-container {
  opacity: 0.5;
}
.aui-page-panel > .aui-blanket {
  /* We don't have leaking z-index:100500, we can rely on tree ordering.*/
  z-index: auto;
}

#s-man-data {
  table-layout: fixed;
}
#s-man-data th:first-child,
#s-man-data td:first-child {
  padding-inline-start: 0;
}

#s-man-data th:last-child,
#s-man-data td:last-child {
  padding-inline-end: 0;
}

.s-man-cut {
  text-wrap: nowrap;
}
.s-man-cut * {
  text-overflow: ellipsis;
  overflow: hidden;
}
.s-man-cut:hover > * {
  position: relative;
  /* Above buttons in the next cell. */
  z-index: 1;
  background: var(--aui-page-background);
  overflow: visible;
  min-width: fit-content;
  /* Avoid ending text right on the edge. */
  padding-inline-end: 3px;
}

.s-man-fav {
  background: none;
  border: none;
  cursor: pointer;
  margin-inline-end: 5px;
  padding: 0;
}

#s-man-data .aui-lozenge {
  margin-inline-start: 10px;
}

.s-man-description {
  max-height: 125px;
  overflow-y: auto;
  padding-inline-end: 18px;
}

/*.aui is just to give it higher specificity*/
.aui .s-man-adjusted {
  background: url("/s/jjya5u/10030007/1yd8w6w/9.13.1/_/download/resources/com.almworks.jira.structure:manageSpa/img/manual.svg") no-repeat content-box;
}

.s-man-application-logo {
  width: 16px;
  height: 16px;
  margin-inline-end: 5px;
}

.s-man-action-col {
  width: 76px;
}
.s-man-actions-cell {
  position: relative;
}
.s-man-actions-cell .aui-button + .aui-button {
  margin-left: 2px;
  padding-inline: 4px;
}

/*Need higher specificity than .aui-layer:not([open])*/
ul.s-man-extra-actions.aui-dropdown2 {
  position: absolute;
  /* above s-man-actions-cells below. */
  z-index: 1;
  list-style: none;
  right: 0;
  display: block;
}

.s-man-create {
  margin-inline-start: 2em;
}

#s-man-data + .s-pagination {
  margin-block-start: 15px;
}

.aui-dropdown2 button {
  /* AUI stopped doing this at some point, they have just "fill-available".
   "stretch", however, is not universally available yet.*/
  width: -webkit-fill-available;
  width: stretch;
}
