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

.luigi-graph-style {
  height: 100%;
  width: 100%;
  position: relative;
  margin: 0;
}

.luigi-graph-style > div,
.luigi-graph-style > div > canvas {
  left: 0;
  width: 100%;
}

.wdl-graph {
  width: 100%;
  height: 100%;
  position: relative;
}

.wdl-graph-container {
  width: 100%;
  height: 100%;
}

.wdl-graph-container svg,
.wdl-graph-container div {
  width: 100%;
  height: 100%;
}

.panel-buttons-row {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 9;
  transform: rotate(-90deg);
  transform-origin: right bottom;
}

.properties-button.selected {
  font-weight: bold;
}

.wdl-graph-side-panel.left {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  z-index: 5;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  -webkit-transition: background-color 250ms, box-shadow 250ms;
  -moz-transition: background-color 250ms, box-shadow 250ms;
  -ms-transition: background-color 250ms, box-shadow 250ms;
  -o-transition: background-color 250ms, box-shadow 250ms;
  transition: background-color 250ms, box-shadow 250ms;
}

.wdl-graph-side-panel.left .separator {
  margin: 10px 0;
}

.wdl-appearance-button {
  margin: 5px;
  line-height: initial;
  opacity: 0.5;
  -webkit-transition: opacity 250ms;
  -moz-transition: opacity 250ms;
  -ms-transition: opacity 250ms;
  -o-transition: opacity 250ms;
  transition: opacity 250ms;
}

.wdl-appearance-button.no-fade {
  opacity: 1;
  -webkit-transition: none;
  -moz-transition: none;
  -ms-transition: none;
  -o-transition: none;
  transition: none;
}

.wdl-graph-side-panel.left:hover .wdl-appearance-button,
.wdl-appearance-button:hover {
  opacity: 1;
}

.wdl-graph-side-panel.right {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 30%;
  min-width: 250px;
  max-width: 75%;
  z-index: 5;
  border-left: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.wdl-graph-side-panel-content-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 5px;
  overflow: auto;
  width: 100%;
}

.wdl-graph-side-panel-content {
  flex-direction: column;
  overflow: auto;
  flex: 1;
  width: 100%;
}

.wdl-graph-side-panel-content button {
  margin: 0 2px;
}

.wdl-graph-side-panel-section {
  flex-direction: column;
  padding-top: 5px;
  margin-top: 5px;
}

.graph-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.graph-container-full-screen {
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: 100;
}

.graph-interface {
  position: relative;
  top: -30px;
  font-size: 20px;
}

.graph-interface-button {
  padding-right: 20px;
}

.graph-interface-button-icon {
  cursor: pointer;
}

.graph-interface-button-icon-disabled {
  cursor: default;
  opacity: 0.5;
}

.graph-interface:hover {
  cursor: pointer;
}

.wdl-task[data-taskstatus=running] rect {
  animation: blink-animation 1s infinite;
  -webkit-animation: blink-animation 1s infinite;
}

.wdl-task[data-taskstatus=running] rect,
.wdl-task[data-taskstatus=success] rect,
.wdl-task[data-taskstatus=stopped] rect,
.wdl-task[data-taskstatus=failure] rect {
  opacity: 1;
}

.wdl-task.wdl-pipeline-task rect {}

@keyframes blink-animation {
  from {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }

  to {
    opacity: 1;
  }
}

@-webkit-keyframes blink-animation {
  from {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }

  to {
    opacity: 1;
  }
}

.search-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: stretch;
}

.search-item-row {
  line-height: 20px;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  width: 100%;
  overflow: hidden;
}

.search-item-description-row {
  line-height: 10px;
  margin: 0;
  width: 100%;
  font-size: smaller;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-item .entity-type {
  font-size: x-small;
  text-transform: uppercase;
  margin-right: 5px;
}

.search-item .entity-name {
  font-weight: bold;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cwl-graph {
  width: 100%;
  height: 100%;
  position: relative;
}

.cwl-graph-container {
  width: 100%;
  height: 100%;
}

.cwl-graph-container svg,
.cwl-graph-container div {
  width: 100%;
  height: 100%;
}

.cwl-controls {
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
