/*
 * Copyright 2017-2021 EPAM Systems, Inc. (https://www.epam.com/)
 *
 * 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.
 */

.container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.container .search {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.container .search {
  padding: 5px 6px;
}

.container .content {
  padding: 0 5px;
}

.search-mode-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  line-height: 14px !important;
  padding: 5px !important;
  font-size: small;
  margin-left: 5px;
}

.clear-query {
  cursor: pointer;
  font-size: smaller;
}

.container .content {
  flex: 1;
  display: block;
  overflow: auto;
}

.container .content .panel {
  height: 100%;
  overflow: auto;
}

.container .content .panel.faceted-filters-container {
  display: flex;
  flex-direction: column;
  position: relative;
}

.container .content .panel .faceted-filters {
  position: relative;
  flex: 1;
  overflow: auto;
  padding: 5px 2px 2px;
  display: flex;
  flex-direction: column;
}

.container .content .panel .faceted-filters.single-group {
  padding: 0;
}

.container .content .panel.search-results {
  width: 100%;
  overflow: auto;
}

.faceted-filters .filter {
  width: 100%;
}

.container .search .search-input {
  flex: 1;
  font-size: large;
}

.container .search .search-input input {
  padding-right: 105px;
}

.search-input .suffix-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

.container .search .find {
  margin-left: 5px;
}

.container .actions {
  margin-left: 5px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 3px 0;
}

.container .actions .export-button {
  display: flex;
  align-self: stretch;
  margin-left: auto;
}

.container .actions > * {
  padding-right: 5px;
}

.container .actions .toggle-presentation-mode {
  height: 100%;
}

.container .actions .pagination {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.container .actions > *:last-child {
  border-right: none;
  padding-right: 0;
}

.container .clear-filters-btn {
  position: sticky;
  top: 0;
  left: calc(100% - 74px);
  padding: 0 5px;
  border-radius: 3px;
  height: 20px;
  z-index: 2;
  margin-bottom: -20px;
  width: 74px;
  cursor: pointer;
  transition: transform 0.2s ease;
  line-height: 20px;
}

.container .clear-filters-btn.disabled {
  transform: translateY(-30px);
}

.sorting-controls-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 3px;
}

.sorting-btn {
  padding: 0 5px;
  margin: 1px;
}

.remove-sorting-btn {
  margin-left: 5px;
}
