/*
 * Copyright 2017-2020 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 {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.header {
  font-size: x-large;
  padding: 20px 10px;
}

.header.shrinked-header {
  padding: 5px;
  font-size: medium;
}

.header .title {
  white-space: nowrap;
  overflow-x: hidden;
  text-overflow: ellipsis;
}

.header .sub-title {
  white-space: nowrap;
  overflow-x: hidden;
  text-overflow: ellipsis;
}

.header .sub-title span,
.header .sub-title span > i {
  font-size: medium;
}

.header span,
.header i {
  margin-right: 7px;
}

.header .description {
  font-size: large;
}

.header .tool-description {
  font-size: medium;
}

.header-image {
  width: 80px;
  border-radius: 5px;
}

.description.tags > span {
  font-size: small;
  padding: 2px 5px;
  border-radius: 2px;
}

.highlights,
.info,
.attributes,
.content-preview {
  padding: 10px;
}

.attributes {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.attributes.column {
  flex-direction: column;
  padding: 5px;
}

.attribute {
  display: flex;
  flex-direction: column;
  margin-right: 5px;
  margin-bottom: 5px;
  max-width: 33%;
}

.attributes.column .attribute {
  width: 100%;
  max-width: 100%;
}

.attribute-name,
.attribute-value {
  padding: 1px 5px;
  font-family: Consolas, Menlo, Courier, monospace;
}

.attribute-value {
  overflow-x: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: default;
}

.attributes.column .attribute-value,
.attribute-value:hover {
  overflow-x: visible;
  white-space: normal;
  word-break: break-all;
}

.highlights > table,
.info > table,
.attributes > table,
.content-preview > table {
  border-collapse: collapse;
}

.content {
  flex: 1;
  overflow: auto;
  padding: 0;
}

.highlight {
  padding: 2px;
}

.highlight-text {
  padding: 0 2px;
}

.csv-table {
  min-width: 100%;
}

.run-table {
  min-width: 100%;
}

.run-table .run {
  padding: 1px 10px 1px 0;
}

.first-cell {
  padding-right: 20px;
}

.first-cell.bold {
  font-weight: bold;
}

.intermedia-cell {
  padding-right: 20px;
  padding-left: 20px;
}

.last-cell {
  padding-left: 20px;
}

.csv-cell {
  white-space: nowrap;
  padding: 5px;
}

.content-preview .task span,
.content-preview .task i,
.content-preview .task code {
  margin-right: 5px;
}

.tool-version-scan-results {
  width: 100px;
}

.vsi-content-preview {
  max-width: 100%;
  width: 50vw;
  height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  overflow: hidden;
}

.ome-tiff-content-preview {
  max-width: 100%;
  height: calc(100vh - 150px);
  overflow: hidden;
}

.vsi-sa-view.read-only img[class~="saEditToggle"] {
  display: none !important;
}

.wsi-page .vsi-content-preview,
.wsi-page .ome-tiff-content-preview {
  width: 100vw;
}

.vsi-content-preview.tiles {
  width: auto;
  min-width: 50vw;
  position: relative;
}

.wsi-page .vsi-content-preview.tiles {
  height: 100vh;
}

.vsi-label-preview-container {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 301;
}

.vsi-label-preview {
  width: 160px;
}

.vsi-content-preview.fullscreen,
.ome-tiff-content-preview.fullscreen {
  width: 100vw;
  height: 100vh;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 1001;
}

.vsi-content-preview.fullscreen {
  padding: 20px;
}

.ome-tiff-content-preview.fullscreen {
  padding: 0;
}

.vsi-content-preview.fullscreen .vsi-preview-fullscreen-button,
.ome-tiff-content-preview.fullscreen .ome-tiff-preview-fullscreen-button {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: large;
  color: #666;
  cursor: pointer;
}

.vsi-content-preview.fullscreen .vsi-preview-fullscreen-button:hover,
.ome-tiff-content-preview.fullscreen .ome-tiff-preview-fullscreen-button:hover {
  color: #333;
}

.vsi-content-preview img {
  max-width: 100%;
  max-height: 100%;
}

.container:not(.light) .tabs {
  color: #aaa;
  font-weight: normal;
}

.vsi-preview-button-container {
  position: absolute;
  left: 3px;
  top: 2px;
  z-index: 301;
}

.vsi-preview-attributes-panel {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 302;
  width: 250px;
  max-height: calc(100% - 5px);
}

.vsi-preview-button {
  z-index: 1002;
  padding: 0 5px;
  transition: none;
  height: 24px;
  border-width: 1px;
  border-style: solid;
  border-radius: 5px;
  border-color: rgba(187, 187, 187, 0.6);
}

.vsi-preview-button:not(:first-child) {
  margin-left: 5px;
}

.vsi-preview-button,
.vsi-preview-button:hover,
.vsi-preview-button:focus {
  outline: none;
  border-color: rgba(187, 187, 187, 0.8);
  color: #777;
}

.vsi-preview-button:hover {
  background-color: #f4f4f4;
}

.vsi-sa-view-hidden {
  display: none;
}

.share-url-popover {
  min-width: 25vw;
  max-width: 400px;
}

.share-url-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.share-url-action {
  cursor: pointer;
  width: 20px;
}

.share-url-action:hover {
  color: #0e77ca;
}
