/* 
 * Copyright 2011-2025, The Trustees of Indiana University and Northwestern
 *   University.  Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed
 *   under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 *   CONDITIONS OF ANY KIND, either express or implied. See the License for the
 *   specific language governing permissions and limitations under the License.
 * ---  END LICENSE_HEADER BLOCK  ---
*/

.sidenav {
  /* Browse By Header */
  h2 {
    margin: 0px;
    @include border-top-radius(6px);
    padding: 10px 0 10px 10px;
    font-weight: bold;
    font-size: 18px;
  }

  /* Facet Group Header */
  h3 {
    font-weight: bold;
    font-size: 1em;
  }
}

.sidenav .facets-header {
  background-color: #cfd8d3;
  padding: 0;
  margin-bottom: 0;
}

#sidebar,
#facets {
  padding-bottom: 10px;

  .card {
    border-radius: 0px;
  }

  .facets-collapse {
    margin-bottom: 0px;
    padding-right: 0px;
    padding-left: 0px;
  }

  ul {
    margin-bottom: 0px;
    padding-left: 0px;
    list-style: none;
  }

  .facets-header {
    margin-bottom: 0em;
  }
}

#content {
  .btn-outline-secondary {
    color: $primary;
    border: 1px solid $gray;
    background-color: $white;

    &:hover {
      background-color: $lightgray;
    }
  }
}

div[id*='facet-panel-'] {
  @extend .navbar-expand-md;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-top: none;
  box-shadow: none;
  max-height: none;
}

.facets-toggle {
  margin: 3px;
}

.facet-values {
  display: table;
  table-layout: fixed;
  //set hyphen definitions at this (display:block) level
  -ms-word-break: keep-all;
  word-break: keep-all;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -o-hyphens: auto;
  hyphens: auto;
  word-wrap: break-word;
  width: 100%;
}

.facet-values li .facet-label .selected,
.facet-values li .facet-count.selected {
  color: #333333 !important;
}

.facet-values .facet-label {
  display: table-cell;
  position: relative;
  //override any blacklight hyphen definitions made at this (display:inline) level
  word-break: inherit;
  -webkit-hyphens: inherit;
  -moz-hyphens: inherit;
  -ms-hyphens: inherit;
  -o-hyphens: inherit;
  hyphens: inherit;
  padding-right: 20px;

  .remove {
    text-indent: 0;

    svg {
      scale: 1.5;
    }
  }
}

.facet-count {
  text-align: right;
  width: 5em;
}

.facets .facets-collapse {
  @include media-breakpoint-up(sm) {
    display: block;
  }

  .card {
    margin-bottom: 0px;
  }
}

:not(.facet_limit-active).facet_limit>.facets-header {
  background-color: $white;
}
