/*
 * 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 'utils';

.content-wrapper.accent-success{
  overflow: hidden;
}

.window {
  border: 1px solid #346789;
  @include shadow(2px 2px 19px #aaa);

  -moz-border-radius: 0.5em;
  border-radius: 0.5em;
  opacity: 0.8;
  filter: alpha(opacity = 80);
  width: 140px;
  height: 55px;
  line-height: 5em;
  text-align: center;
  z-index: 20;
  position: absolute;
  background-color: #eeeeef;
  color: black;
  font-family: helvetica;
  padding: 0.0em;
  font-size: 0.9em;
  vertical-align: middle;
  cursor: pointer;
}

.active-window {
  @include shadow(2px 2px 8px rgb(0, 166, 90));
}

.inactive-window {
  @include shadow(2px 2px 19px #aaa);
}

.window p {
  margin: 0px !important;
  line-height: 1.5em;
  font-size: 1.5em;
  display: inline-table;
}

.topology_root {
  background-color: rgba(0, 170, 0, 0.4);
}

.topology_cs {
  background-color: rgba(0, 100, 0, 0.1);
}

.topology_conn {
  background-color: rgba(100, 200, 200, 0.08);
}

.topology_conn_errored {
  background-color:rgba(217,83,79,0.56);
}

.topology_res {
  background-color: rgba(250, 230, 0, 0.09);
}

.window:hover {
  @include shadow(2px 2px 19px #444);

  opacity: 0.6;
  filter: alpha(opacity = 60);
}

._jsPlumb_dragging {
  z-index: 4000;
}

#drawing ._jsPlumb_overlay.component.label {
  background-color: white;
  border: 1px solid #346789;
  border-radius: 0.5em 0.5em 0.5em 0.5em;
  color: black;
  font-size: 0.8em;
  opacity: 0.8;
  padding: 0.5em;
}

.aLabel {
  background-color: white;
  padding: 0.4em;
  font: 12px sans-serif;
  color: #444;
  z-index: 21;
  border: 1px dotted gray;
  opacity: 0.8;
  filter: alpha(opacity = 80);
  cursor: pointer;
  &._jsPlumb_hover {
    background-color: #5C96BC;
    color: white;
    border: 1px solid white;
  }
}

.checkbox {
  margin-top: 15px;
  margin-bottom: 15px;
}

#topology {
  position: relative;
  border: 0px;
  height: 780px;
  overflow: hidden;
}

#drawing {
  height: 5000px;
  width: 5000px;
  display: block;
  position: relative;
  top: -2490px;
  left: -2270px;
}

#zoom {
  text-align: right;
  width: 100%;
  border: none;
  background: none;
  padding-top: 5px;
  .btn {
    padding: 0px;
  }
  .fa {
    font-size: 2em;
    padding-right: 5px;
  }
}

.node-action-link {
  clear: both;
  display: block;
  height: 0px;
  padding: 3px 8px 0px 0px;
  position: absolute;
  right: 0;
  top: 0;
  .fa {
    font-size: 14px;
    display: block !important;
  }
  .dropdown-menu {
    border-radius: 12px;
    min-width: 50px;
    width: 50px;
  }
}

.window[data-original-title] {
  &:hover::after {
    border: 1px solid #BBB;
    padding: 5px 10px;
    background: #EEE;
    content: attr(data-original-title);
    position: relative;
    right: -5px;
    top: -70px;
    white-space: nowrap;
    text-align: center;
    height: 20px;
    margin: 0px;
    border-radius: 0.5em;
  }
}

#zoom {
  ul {
    &.menu {
      list-style-type: none;
      margin: 0;
      padding: 0;
      li {
        display: inline-block;
        a {
          display: inline-block;
          margin-left: 5px;
        }
      }
    }
  }
}

div.alert-widget > a > .badge {
  font-size: 9px;
  line-height: 0.9;
  padding: 2px 3px;
  position: absolute;
  text-align: center;
  margin-right:-13px;
  top: 0px;
}

.card.card-outline {
  margin-top: 20px;
  margin-bottom: 0px;
}

.panel-group.box-group {
  margin-bottom: 20px;
}

.scrollable-tab-content{
  padding-top:20px;
}

.conn-check-wrapper {
  position: absolute;
  top: 0;
  right: 25px;
  z-index: 1;
}
