/*
 * The MIT License
 *
 * Copyright (c) 2010-2011, Manufacture Française des Pneumatiques Michelin,
 * Thomas Maurel, Romain Seguy
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

.role-strategy-table {
  border-spacing: 2px;
}

.role-strategy-table tbody>tr>td {
  height: 30px;
}

.role-strategy-table .rsp-table--header-th {
  text-align: center!important;
}

.role-strategy-table thead .rsp-table--header-th.first {
  border-top-left-radius: var(--table-border-radius);
}

.role-strategy-table thead .rsp-table--header-th.last {
  border-top-right-radius: var(--table-border-radius);
}

.role-strategy-table tfoot .rsp-table--header-th.first {
  border-bottom-left-radius: var(--table-border-radius);
}

.role-strategy-table tfoot .rsp-table--header-th.last {
  border-bottom-right-radius: var(--table-border-radius);
}

.rsp-table__header-column {
  vertical-align: bottom!important;
  text-align: left!important;
}

.rsp-table__footer-column {
  vertical-align: top!important;
  text-align: left!important;
}

.role-strategy-table th, .role-strategy-table td
{
  padding: 0 0.25rem!important;
  vertical-align: middle;
  text-align: center;
}

.role-strategy-table .caption-row TH {
  padding: 0.25rem!important;
  width: 1rem;
  text-align: center;
}

.role-strategy-table tfoot th {
  font-size: .875rem;
  font-weight: 500;
}

.role-strategy-table .rsp-table__permission,
.role-strategy-table .rsp-table--header-th
{
  background: var(--table-body-background);
}

.role-strategy-table .caption-row TH span,
.role-strategy-table .rsp-table--vertical span,
.role-strategy-table .group-row TD span
{
  writing-mode: vertical-rl;
  padding: 5px 0;
}

.role-strategy-table TD.stop,
.role-strategy-table TD.start {
  white-space: nowrap;
  text-align: left;
  width: 16px;
}

.role-strategy-table TD.left-most {
  text-align: left;
  white-space: nowrap;
}

.role-strategy-table div.pattern-cell {
  display: flex;
  justify-content: left;
  align-items: center;
}

.role-strategy-table div.pattern-cell svg {
  margin-right: 3px;
  cursor: pointer;
}

.role-strategy-table div.pattern-cell span {
  white-space: nowrap;
}

label.attach-previous {
  margin-left: 0;
}

.highlighted,
.highlighted td {
  background-color: #FFF9C9!important;
  color: var(--black)!important;
}

.jenkins-checkbox {
	vertical-align: middle;
	margin: 3px 0px;
}

@keyframes highlightentry {
  from { background: #C4C080; }
  to { background: transparent; }
}

.highlight-entry {
  -webkit-animation: highlightentry 5s;
  -moz-animation: highlightentry 5s;
  animation: highlightentry 5s;
}

.jenkins-alert {
	margin-top: 10px;
}

.rsp-entry-not-found {
    text-decoration: line-through;
    color: grey;
}

.rsp-table__icon-alert {
  color: orange;
}

.rsp-table__cell {
  display: flex;
  align-items: center;
  gap: 3px;
}

.rsp-remove, .migrate {
  cursor: pointer;
  height: 16px;
  display: flex;
}

button.migrate {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

.patternAnchor {
  cursor: pointer;
  color: var(--link-color);
  font-weight: var(--link-font-weight);
}

.patternAnchor:hover {
    text-decoration: var(--link-text-decoration--hover);
}

.row-filter, .user-filter, .role-filter {
  display: none;
  max-width: 500px;
}


.rsp-navigation__entries {
  display: flex;
  gap: 1rem;
  margin-top: -15px;
}

.rsp-navigation__entries .jenkins-select {
  max-width: 5rem;
}