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

@import '../../modules/shared/mixins';
@import '../../modules/shared/variables';
@import '../../modules/shared/animations';

:host {
  display: block;

  .tabs-container, .auto-refresh-message {
    background-color: @filters-panel-background-color;
  }
  .tabs-container {
    border-bottom: 1px solid @table-border-color;
    .tabs-menu-container {
      .flex-vertical-align;
      height: 62px;
      action-menu {
        margin-left: auto;
      }
      /deep/ tabs ul.nav.nav-tabs {
        margin: 0;
      }
    }
  }

  .events-count {
    margin-top: @block-margin-top;
  }

  /deep/ collapsible-panel.service-logs-histogram {
    .panel-heading {
      header {
        margin-left: auto;
      }
    }
  }

  /deep/ modal-dialog.capture-dialog {
    .modal-dialog {
      max-width: 350px;
    }
    .modal-body {
      display: flex;
      flex-direction: column;
      /deep/ circle-progress-bar {
        display: inline-block;
        align-self: center;
        label {
          font-size: 3rem;
          font-weight: normal;
          .unit {
            color: @fluid-gray-2;
            font-size: 1.2rem;
          }
        }
      }
    }
  }

  .panel-capture-view {
    padding: 1rem;
    i {
      color: @fluid-gray-1;
      &.fa-play {
        padding-right: 1rem;
      }
    }
  }

  /deep/ time-histogram,
  /deep/ time-line-graph,
  /deep/ service-logs-table {
    display: block;
    &.loading {
      opacity: .8;
      position: relative;
      &:before {
        .line-progress(1px);
        content: ' ';
        display: block;
        opacity: .8;
      }
    }
  }
  /deep/ audit-logs-entries.loading > *:not(tabs) {
    opacity: .8;
    position: relative;
    &:before {
      .line-progress(1px);
      content: ' ';
      display: block;
      opacity: .8;
    }
  }

}
