/*
 * Copyright (C) 2017-2019 Dremio Corporation
 *
 * 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.
 */
:global {
  .datasetGraph {
    flex-grow: 1;
    position: absolute;
    height: 100%;
    width: 100%;
    overflow-x: scroll !important;
    &__errorDisplay {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 48px;
      position: relative;
      top: 24%;
      font-size: 20px;
      font-weight: 600;
      font-family: var(--dremio--font-family);
    }
    &__gnarlyIcon {
      height: 160px;
      width: 161px;
    }
  }
  .react-flow__handle {
    height: 0px !important;
    border-radius: 0px;
  }
  .react-flow__node-default,
  .react-flow__node-input,
  .react-flow__node-output {
    border-radius: 5px !important;
  }
  .react-flow__renderer {
    top: 20px !important;
    left: 30px !important;
  }
  .react-flow__edge.animated path {
    animation: none !important;
    -webkit-animation: none !important;
  }
  .reflectionData {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    gap: 4px;
    &__contentRaw {
      width: 125px;
      min-height: 36px;
      height: auto;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      border: 1px solid var(--border--neutral--solid);
      border-radius: 4px;
      background-color: var(--fill--quaternary);
      font-size: 10px;
      color: var(--text--primary);
      line-height: 16px;
      gap: 12px;
      font-weight: 600;
      font-family: var(--dremio--font-family);
    }
    &__contentAgg {
      width: 125px;
      min-height: 36px;
      height: auto;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      border: 0.25px solid var(--border--neutral--solid);
      border-radius: 4px;
      background-color: var(--fill--tertiary);
      font-size: 10px;
      color: var(--text--primary);
      line-height: 14px;
      gap: 12px;
      font-family: var(--dremio--font-family);
    }
    &__reflectionIcon {
      height: 20px;
    }
    &__reflectionAggFilled {
      height: 22px;
    }
    &__reflectionAgg,
    &__reflectionRaw {
      height: 22px;
    }
  }
  .algMatch {
    display: flex;
    flex-direction: column;
    border: 0.5px solid var(--text--primary);
    gap: 4px;
    height: auto;
    min-height: 40px;
    width: 120px;
    line-height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    overflow-wrap: anywhere;
    color: var(--text--primary);
    margin-bottom: 2px 0px;
    margin-top: 2px;
    padding: 4px;
  }
  .algMatchReflection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    &__contentRaw {
      width: 115px;
      min-height: 36px;
      height: auto;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      border: 1px solid var(--border--neutral--solid);
      border-radius: 4px;
      background-color: var(--fill--quaternary);
      font-size: 10px;
      color: var(--text--primary);
      line-height: 16px;
      gap: 12px;
      font-weight: 600;
      font-family: var(--dremio--font-family);
    }
    &__contentAgg {
      width: 115px;
      min-height: 36px;
      height: auto;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      border: 0.25px solid var(--border--neutral--solid);
      border-radius: 4px;
      background-color: var(--fill--tertiary);
      font-size: 10px;
      color: var(--text--primary);
      line-height: 14px;
      gap: 12px;
      font-family: var(--dremio--font-family);
    }
    .dataSetGraphToolTip {
      height: 20px;
      width: 50px;
    }
  }
}
