/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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.
 */
.dashboard-component-chart-holder {
  width: 100%;
  height: 100%;
  color: @gray-dark;
  background-color: @lightest;
  position: relative;
  padding: 16px;

  .missing-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    justify-content: center;

    .missing-chart-body {
      font-size: @font-size-s;
      position: relative;
      display: flex;
    }
  }

  &.fade-in {
    border-radius: @border-radius-large;
    box-shadow: inset 0 0 0 2px @shadow-highlight,
      0 0 0 3px fade(@shadow-highlight, @opacity-light);
    transition: box-shadow 1s ease-in-out;
  }

  &.fade-out {
    border-radius: @border-radius-large;
    box-shadow: none;
    transition: box-shadow 1s ease-in-out;
  }
}

.dashboard-chart {
  overflow: hidden;
}

.dashboard-chart.dashboard-chart--overflowable {
  overflow: visible;
}

.dashboard--editing {
  .dashboard-component-chart-holder {
    &:after {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0px;
      left: 0px;
      z-index: @z-index-chart;
      pointer-events: none;
      border: 1px solid transparent;
    }

    &:hover:after {
      border: 1px dashed @indicator-color;
      z-index: @z-index-chart--dragging;
    }
  }

  .resizable-container {
    &:hover,
    &.resizable-container--resizing:hover {
      & > .dashboard-component-chart-holder:after {
        border: 1px dashed @indicator-color;
      }
    }
  }

  .resizable-container .dashboard-component-chart-holder {
    .dashboard-chart {
      .chart-container {
        cursor: move;
        opacity: 0.2;
      }

      .slice_container {
        /* disable chart interactions in edit mode */
        pointer-events: none;
      }
    }

    &:hover .dashboard-chart .chart-container {
      opacity: 0.7;
    }
  }
}

.slice-header-controls-trigger {
  padding: 0 16px;
  position: absolute;
  top: 0;
  right: -16px; //increase the click-able area for the button

  &:hover {
    cursor: pointer;
  }
}

.dot {
  @dot-diameter: 4px;

  height: @dot-diameter;
  width: @dot-diameter;
  border-radius: @dot-diameter / 2;
  margin: @dot-diameter / 2 0;

  background-color: @gray;
  display: inline-block;

  .vertical-dots-container & {
    display: block;
  }

  a[role='menuitem'] & {
    width: 8px;
    height: 8px;
    margin-right: 8px;
  }
}

.time-filter-tabs > .nav-tabs {
  margin-bottom: 8px;
}

.time-filter-tabs > .nav-tabs > li > a {
  padding: 4px;
}

.full-size {
  position: fixed;
  z-index: @z-index-max;
  left: 0;
  top: 0;
}
