/*
 * 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.
 */

.preview-container {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.file-preview-input {
  background-color: #fff;
  color: #777;
  resize: none;
  height: 100%;
  white-space: pre;
  overflow-wrap: normal;
  overflow: auto;
  cursor: default;
}

.file-preview-input:hover {
  border-color: #d9d9d9;
}

.file-preview-input:focus {
  box-shadow: 0 0 0 #fff;
  border-color: #d9d9d9;
  outline: #fff;
}

.tabular-file-container {
  overflow: auto;
}

.tabular-file-container .tabular {
  border-collapse: collapse;
  border: 1px solid #ccc;
  width: 100%;
}

.tabular-file-container .tabular th,
.tabular-file-container .tabular td {
  padding: 2px 4px;
  border: 1px solid #ccc;
  min-width: 25px;
}

.tabular-file-container .tabular th {
  background-color: #f0f0f0;
  text-align: center;
  white-space: nowrap;
}

.preview-header-container {
  display: flex;
  flex-direction: column;
}

.preview-header-row {
  padding: 3px;
}

.go-back-header-btn {
  margin-right: 5px;
}

.preview-header-btn {
  border: none;
  transition: all 0.3s ease;
}

.preview-header-btn:hover {
  background: #49a9ee;
  color: white;
}

.download-btn {
  color: #49a9ee;
  cursor: pointer;
  margin-right: 5px;
}

.history-container {
  position: relative;
}

.filter-btn {
  border: none;
  background: transparent;
  transition: all 0.3s ease;
  position: absolute;
  right: 10px;
  height: 20px;
  width: 20px;
  top: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.filter-btn:focus,
.filter-btn:hover {
  background: transparent;
  color: #096dd9;
}
