body.searchlib-page {
  overflow-x: hidden !important;

  .searchlib-block {
    position: relative;
    background-color: @white;
    color: @deepBlue;

    .back-link {
      display: inline-block;
      margin: 1em 0;
      color: @deepBlue;
      font-weight: 500;
    }

    .ui.dimmer {
      background-color: @dimmedWhite;

      .ui.loader {
        top: 10%;
      }
    }

    .top-filter-layout {
      .results-layout {
        max-width: none !important;
      }
    }

    .ui.secondary.pointing.content-section-tabs.menu {
      padding-top: 0.2rem;
      padding-left: 0.2rem;
      overflow-x: auto;

      &::-webkit-scrollbar {
        height: 0.3rem !important;
      }

      .active.item {
        .tab-icon {
          .count {
            border: 2px solid @primaryColor;
            background-color: @primaryColor;
            color: @white;
          }
        }
      }

      .tab-icon {
        position: relative;
      }

      .tab-icon .count {
        position: absolute;
        z-index: 100;
        top: auto;
        bottom: -0.6em;
        left: 100%;
        width: 26px;
        height: 26px;
        border: 2px solid @blue-grey-5;
        border-radius: 50%;
        margin-left: -1.5em;
        background-color: @white;
        color: @blue-grey-5;
        font-size: 10px;
        font-weight: bold;
        line-height: 23px;
        text-align: center;
      }
    }

    .sorting {
      .ui.dropdown:focus-visible {
        outline: var(--focus-visible, @focusVisibleOutline) !important;
      }
    }

    .search-body-footer {
      .results-selector {
        display: none;
        font-size: 12px;

        .ui.dropdown {
          div.text {
            color: @sf-dark-gray;
            font-weight: 400;
          }

          i.dropdown {
            color: @sf-dark-gray !important;
            font-size: 12px;
          }
        }
      }
    }

    .results-layout {
      &.fixed {
        max-width: @search-result-max-width;
      }
    }

    button.download-btn {
      margin-top: 2em;
      background: #f2f2f2 !important;
      color: @secondaryColor !important;
      // display: none;
      // font-size: 10px !important;
    }

    .above-results {
      margin-top: 1em;

      .above-right {
        display: flex;
        padding: 0.6em 0;
        gap: 1em;
        justify-self: self-end;
      }

      .ui.dropdown {
        .icon.chevron {
          position: relative;
          top: -1px;
          margin-left: 0.3em;
          font-size: 0.6em;
        }
      }

      .view-selector {
        width: auto !important;
        padding-left: 0px !important;
        font-size: 16px;

        .text {
          margin-right: 2px;
        }

        .ui.dropdown {
          .text {
            color: @sf-dark-gray;
            font-weight: 400;
          }

          > i.icon {
            color: @secondaryColor;
          }

          i.icon {
            margin-right: 0px;
          }

          i.dropdown {
            color: @sf-dark-gray !important;
            font-size: 12px;
          }
        }

        .buttons {
          button {
            background: @midGray;
            font-size: 12px;
          }

          button.active {
            background: @s-medium-gray;
          }
        }
      }

      .ui.button i {
        margin: 0px;
      }

      .sorting {
        .inline.dropdown > span {
          color: @secondaryColor;
          font-weight: 600;
        }

        .ui.dropdown {
          div.text {
            color: @sf-dark-gray;
            font-weight: 400;
          }

          i.dropdown {
            font-size: 12px;
          }
        }
      }

      @media only screen and (min-width: @largestTabletScreen) {
        display: grid;
        margin-bottom: 2.5em;
        column-gap: 20px;
        grid-template-columns: auto auto;
      }

      @media only screen and (max-width: @largestTabletScreen) {
        display: flex;
        flex-direction: column-reverse;
      }
    }
  }
}

.sui-app-info {
  margin: 2em 0;
  color: @grey;
  font-size: 85%;
  font-weight: 400;
}

#archived-facet {
  position: relative;
  top: -1px;

  .ui.toggle.checkbox input:focus + label:before {
    outline: 0.2rem solid @blue-3 !important;
  }

  label {
    padding-left: 2.1rem;
    color: @deepBlue;
    font-size: 14px;

    &:before {
      position: absolute;
      top: 8px;
      width: 1.5rem;
      height: 0.6rem !important;
      background: @sf-medium-gray2 !important;
      box-shadow: 0px 0px 0px 2px @sf-medium-gray2 !important;
    }

    &:after {
      position: absolute;
      top: 8px;
      left: 0.08rem !important;
      width: 0.6rem !important;
      height: 0.6rem !important;
      background: @white;
    }
  }

  .checked {
    label {
      color: @secondaryColor !important;
      font-weight: 600;

      &:before {
        background-color: @secondaryColor !important;
        box-shadow: 0px 0px 0px 2px @secondaryColor !important;
      }

      &:after {
        left: 0.8rem !important;
      }
    }
  }
}

@media only screen and (max-width: @largestMobileScreen) {
  .above-results {
    .above-right {
      justify-content: flex-start;
      padding: 0.6em 1em !important;
    }
  }
}
