/*Facetterat sök */
.greppa-search-facets-wrapper .close {
   display: none;
}

.greppa-search-facets-wrapper ul li.sv-search-facet-item a {
   position: relative;
   padding-left: 24px;
   font-size: 16px;
   cursor: pointer;
   text-decoration: none;
   color: #4a4a4a;
}

.greppa-search-facets-wrapper ul li.sv-search-facet-item a::before,
.greppa-search-facets-wrapper ul li.sv-search-facet-item a::after {
   content: "\f096";
   font-family: FontAwesome;
   font-size: 21px;
   position: absolute;
   left: 0;
   top: -10px;
   box-sizing: border-box;
}

.greppa-search-facets-wrapper ul li.sv-search-facet-item a::after {
   content: "\f14a";
   max-width: 0;
   overflow: hidden;
   opacity: 0.5;
}

.greppa-search-facets-wrapper ul li.sv-search-facet-item .greppa-search-count {
   font-size: 16px;
   color: #4a4a4a;
}

.greppa-search-facets-wrapper ul li.sv-search-facet-item-selected a::after {
   max-width: 25px;
   opacity: 1;
}

.greppa-search-facets-filter-button {
   margin-bottom: 1.4em;
   display: none;
}


@media (max-width: 992px) {
   .greppa-search-facets-filter-button {
      margin-bottom: 0;
      border-bottom: solid 1px #4a4a4a;
      padding: 0 0.1em 0.3em;
      position: relative;
      cursor: pointer;
      width: 100%;
      justify-content: flex-start !important;
      font-weight: 600;
      padding: 0.6rem !important;
   }
   .greppa-search-facets-filter-button::before {
      font-family: "FontAwesome";
      content: "\f067";
      font-size: 1em;
      position: absolute;
      right: 10px;
      font-weight: 500;
   }
   .greppa-search-facets-filter-button.active::before {
      content: "\f068";
   }
   .greppa-search-facets-wrapper {
      -webkit-box-shadow: 0 10px 10px 5px rgba(0, 0, 0, 0.08);
      box-shadow: 0 10px 10px 5px rgba(0, 0, 0, 0.08);
      padding: 0.6em 1em 0.1em;
      background-color: #fff;
      border-radius: 0 0 4px 4px;
      position: relative;
   }
   .greppa-search-facets-wrapper .close {
      position: absolute;
      right: -0.5em;
      bottom: -0.5em;
      padding: 1em;
      display: unset;
      color: #888;
   }
   .greppa-search-facets-wrapper .close:hover {
      color: #000;
      cursor: pointer;
   }
}

.greppa-search-box-on-page {
   position: relative;
   border-radius: 4px;
   background-color: #fff;
   max-width: 500px;
   /* Medium devices (desktops, 992px and down) */
}

.greppa-search-box-on-page .greppa-search-field {
   display: inline-block;
   width: 80%;
   padding: 6px 12px 6px 12px;
   font-size: 1em;
   line-height: 1.375;
   background-color: transparent;
   background-image: none;
   border: 1px solid transparent;
   box-sizing: border-box;
   outline: 0;
}

.greppa-search-box-on-page .greppa-btn-search {
   position: absolute;
   right: 5px;
   background-color: transparent;
   color: #005c84;
}

input:placeholder-shown + .gre-search-reset-button {
   display: none;
}

.greppa-search-box-on-page
input:not(:placeholder-shown)
+ .gre-search-reset-button {
   position: absolute;
   top: 6px;
   right: 50px;
   border: none;
   background-color: transparent;
   color: #aaa;
}

.greppa-search-box-on-page .gre-search-reset-button:hover {
   color: #4d4d4d !important;
}

.greppa-col-md-8 li {
   margin-bottom: 1rem;
   border-bottom: 2px solid #aaa;
}

.greppa-col-md-8 li img[alt="Fil/dokument"] {
   display: none !important;
}

.gre-filter-header > .tableheading {
   margin-bottom: 1rem;
}
/* Pagination */
ul.pagination {
   display: block;
}

/* Search result */
ul.gre-search-result {
   padding: 0;
   margin: 0;
   list-style: none;
}

ul.gre-search-result li {
   border-radius: 0;
   margin-bottom: 1rem;
}
.gre-search-result .gre-search-result__path-text {
   margin-top: 1em;
   border-top: 1px solid #cbcbcb;
   padding-top: 0.7em;
   display: block;
}


@media (max-width: 992px) {
   .greppa-search-box-on-page .greppa-search-field {
      width: 78%;
   }

   .gre-filter-container-hide {
      display: none;
   }

   .gre-filter-container .greppa-search-facets-wrapper {
      display: none;
   }

   .gre-filter-header > .tableheading {
      display: none;
   }

   .greppa-search-facets-filter-button {
      display: block;
      text-align: left;
   }
   .sv-facetedsearch-portlet .greppa-panel-white-with-padding {
      padding: 1.5rem 0.5rem;
   }
}

@media (min-width: 993px) {
   .gre-filter-container .greppa-search-facets-wrapper {
      display: block !important;
   }
   .greppa-search-facets-filter-button {
      display: none !important;
   }
}
