/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */

/**
 * @file
 * Table select styles for default_admin.
 *
 * @see tableselect.js
 */

td.checkbox,
th.checkbox {
  text-align: center;
}

tr.selected td {
  background-color: var(--admin-color-bg-item-hover);
}

.views-bulk-actions {
  position: relative;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  padding: var(--admin-space-m);
  /* Fixed white: text on the always-dark inverse toolbar below. */
  color: var(--admin-color-white);
  border: var(--details-border-size) solid var(--details-border-color);
  border-radius: 0.25rem;
  /* Inverse bar. Was --admin-color-text, which inverts to light in dark mode and
     made the white text vanish; bg-inverse stays dark in both modes. */
  background-color: var(--admin-color-bg-inverse);

  &[data-drupal-sticky-vbo="true"] {
    position: sticky;
    z-index: calc(var(--dropbutton-widget-z-index) + 1);
    bottom: var(--drupal-displace-offset-bottom, 0);
    animation: fade-in-bottom 320ms 1 forwards;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  &.views-form__header--bypass-animation {
    animation: none;
  }
}

@supports (position: sticky) {
  .views-bulk-actions[data-drupal-sticky-vbo="true"] {
    position: sticky;
  }
}

@keyframes fade-in-bottom {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0);
  }
}

.views-bulk-actions__item {
  align-self: center;
  margin-block: 0 var(--admin-space-s);
  margin-inline: 0 var(--admin-space-l);
  margin-inline-end: var(--admin-space-xs);
  color: var(--admin-color-text);
  font-weight: var(--admin-font-weight-semibold);

  &:has(+ .views-bulk-actions__item.form-actions) {
    margin-inline-end: var(--admin-space-xs);
  }

  &:last-of-type {
    margin-inline-end: 0;
  }
  & .form-element {
    &:hover {
      border: var(--input-border-size) solid var(--input-border-color);
      box-shadow: none;
    }
  }
  & .button--primary:not(:disabled, .is-disabled) {
    background-color: var(--admin-color-primary);
    &:hover {
      background-color: var(--admin-color-primary-hover);
    }
    &:focus {
      background: var(--button--focus-bg-color--primary);
    }
    &:active {
      background-color: var(--admin-color-primary-active);
    }
  }
  & .form-item__label {
    display: inline;
    padding-inline-end: var(--admin-space-xs);
    &::after {
      content: ":";
    }
  }
  & .form-element--type-select {
    min-height: 2rem;
    padding-block: calc(0.5rem - 1px);
    padding-inline: calc(1rem - 1px) calc(2.25rem - 1px);
    font-size: var(--admin-font-size-xs);
    line-height: 1rem;
  }
  & input,
  & .button {
    margin-block: 0;
  }

  &.form-actions {
    margin-block-end: 0;
  }
}

.views-bulk-actions__item--status {
  width: 100%;
  margin-inline-end: var(--admin-space-l);
  white-space: nowrap;
  color: var(--admin-color-text-soft);
  font-size: var(--admin-font-size-xs);
  font-weight: bold;
}

.views-field__skip-to-bulk-actions {
  display: block;
  white-space: nowrap;
  font-size: var(--admin-font-size-xs);
}

@media screen and (min-width: 61rem) {
  .views-bulk-actions {
    flex-wrap: nowrap;
  }
  .views-bulk-actions__item {
    margin-bottom: 0;
  }
  .views-bulk-actions__item--status {
    width: auto;
  }
}

.ui-autocomplete {
  z-index: 2000;
}

.block-system > .views-form .gin-details,
.view-content .views-form .gin-details {
  box-shadow: none;
}

.block-system > .views-form form,
.view-content .views-form form {
  display: flex;
  flex-direction: column;
}

.block-system > .views-form .views-table,
.view-content .views-form .views-table {
  order: -1;
  margin-block-start: 0;
}

.block-system > .views-form [data-drupal-selector*="edit-header"],
.view-content .views-form [data-drupal-selector*="edit-header"] {
  position: relative;
  order: 99;
  inset-inline-start: 0;
}

.block-system > .views-form [data-drupal-selector*="edit-header"] > .form-wrapper,
.view-content .views-form [data-drupal-selector*="edit-header"] > .form-wrapper {
  padding: var(--admin-space-m);
}

.block-system > .views-form [data-drupal-selector*="edit-header"] [data-drupal-selector*="edit-views-bulk-operations-bulk-form"] > *,
.view-content .views-form [data-drupal-selector*="edit-header"] [data-drupal-selector*="edit-views-bulk-operations-bulk-form"] > * {
  margin-inline-end: var(--admin-space-xs);
}

.block-system > .views-form [data-drupal-selector*="edit-header"] [data-drupal-selector*="edit-views-bulk-operations-bulk-form"] .form-type--select,
.block-system > .views-form [data-drupal-selector*="edit-header"] [data-drupal-selector*="edit-views-bulk-operations-bulk-form"] .form-actions,
.view-content .views-form [data-drupal-selector*="edit-header"] [data-drupal-selector*="edit-views-bulk-operations-bulk-form"] .form-type--select,
.view-content .views-form [data-drupal-selector*="edit-header"] [data-drupal-selector*="edit-views-bulk-operations-bulk-form"] .form-actions {
  flex: 0 0 100%;
  max-width: 100%;
}

.block-system > .views-form [data-drupal-selector*="edit-header"] [data-drupal-selector*="edit-views-bulk-operations-bulk-form"] .form-actions,
.view-content .views-form [data-drupal-selector*="edit-header"] [data-drupal-selector*="edit-views-bulk-operations-bulk-form"] .form-actions {
  justify-content: flex-end;
}

.block-system > .views-form [data-drupal-selector*="edit-header"] [data-drupal-selector*="edit-views-bulk-operations-bulk-form"] .form-type--checkbox,
.view-content .views-form [data-drupal-selector*="edit-header"] [data-drupal-selector*="edit-views-bulk-operations-bulk-form"] .form-type--checkbox {
  align-self: center;
}

.block-system > .views-form [data-drupal-selector*="edit-header"] .form-item__label:not([for="edit-select-all"]),
.view-content .views-form [data-drupal-selector*="edit-header"] .form-item__label:not([for="edit-select-all"]) {
  display: block;
  float: inline-start;
  inset-block-start: 2px;
  margin-block-start: var(--admin-space-2xs);
  margin-inline-end: var(--admin-space-m);
  line-height: 1.75;
}

@keyframes fade-in-bottom {
  0% {
    transform: translateY(100%);
  }

  100% {
    transform: translateY(0);
  }
}

.block-system > .views-form [data-drupal-selector*="edit-header"].is-sticky,
.view-content .views-form [data-drupal-selector*="edit-header"].is-sticky {
  z-index: 4;
  animation: fade-in-bottom 320ms 1 forwards;
}

.block-system > .views-form [data-drupal-selector*="edit-header"],
.block-system > .views-form .views-bulk-actions,
.view-content .views-form [data-drupal-selector*="edit-header"],
.view-content .views-form .views-bulk-actions {
  border: 0 none;
  border-radius: var(--admin-radius-m);
  /* stylelint-disable-next-line color-function-notation */
  background: rgb(from var(--admin-color-bg-sticky) r g b / 0.95);

  @supports (backdrop-filter: blur()) {
    opacity: 0.999;
    /* Fix Chrome issue with mask */
    /* stylelint-disable-next-line color-function-notation */
    background: rgb(from var(--admin-color-bg-sticky) r g b / 0.9);
    backdrop-filter: blur(0.75rem);

    .gin--dark-mode & {
      background: rgb(27, 27, 29, 0.8);
    }
  }
}

.block-system > .views-form [data-drupal-selector*="edit-header"].is-sticky,
.block-system > .views-form .views-bulk-actions[data-drupal-sticky-vbo="true"],
.view-content .views-form [data-drupal-selector*="edit-header"].is-sticky,
.view-content .views-form .views-bulk-actions[data-drupal-sticky-vbo="true"] {
  position: sticky;
  opacity: 1;
  box-shadow: 0 2px 6px 2px rgb(0, 0, 0, 0.03);
  inset-inline-start: 0;
  inset-block-end: var(--admin-space-xs);
}
