.card-header {
  z-index: 990;
}

.wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  background: white;
  &.initializing {
    height: auto;
  }
  &.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1015;
  }
}

.graph {
  position: relative;
  width: 100%;
  height: 100%;
	background: white;
	&.dark {
    color: #d6d6d6;
    background-color: #434e57;
    border: 1px solid #434e57;
  }
  &.loading {
    filter: blur(5px);
  }
}

.choice-view {
  display: inline-block;
  margin-right: 15px;
  &__radio {
  }
  &__label {
    margin: 0;
  }
}

.request-loader {
  background: rgba(255, 255, 255, 0.3);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1005;
  &::after {
    content: '';
    border-radius: 50%;
    width: 75px;
    height: 75px;
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 10px;
    text-indent: -9999em;
    border-top: 4px solid #17a2b8;
    border-right: 4px solid #17a2b8;
    border-bottom: 4px solid #17a2b8;
    border-left: 4px solid rgba(255, 255, 255, 0);
    transform: translate(-50%, -50%);
    animation: load8 1.1s infinite linear;
    z-index: 1010;
  }
}

.line-loader {
  margin: 10px;
  &__wrapper {
    background-color: #eeeeee;
  }
  &__line {
    width: 0%;
    height: 4px;
    background-color: #007bff;
  }
  &__start {
    font-size: 12px;
    float: left;
  }
  &__end {
    font-size: 12px;
    float: right;
  }
}

@keyframes load8 {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.detail-level {
  position: absolute;
  top: 20px;
  right: 20px;
  max-width: 60%;
  &__input {
    cursor: pointer;
  }
  &__popup {
    position: absolute;
    width: 40px;
    height: 25px;
    border: 1px solid black;
    background-color: white;
    color: black;
    text-align: center;
    z-index: 1025;
    &--dark {
      background-color: #434e57;
      color: #d6d6d6;
    }
  }
}

.currency-filter {
  position: absolute;
  top: 20px;
  left: 20px;
  max-width: 30%;
  &__select {
    width: 100%;
    cursor: pointer;
  }
}

.depth-level {
  position: absolute;
  top: 20px;
  left: 50%;
  padding: 3px;
  transform: translate(-50%);
  max-width: 30%;
  &__header {
    font-size: inherit;
    font-weight: 400;
    text-align: center;
    padding-right: 16px;
  }
  &__body {
    display: flex;
    align-items: center;
  }
  &__button-block {
    display: flex;
    flex-flow: column;
  }
  &__button {
    border: 1px solid rgb(118, 118, 118);
    width: 16px;
    height: 16px;
    // border-radius: 2px;
    position: relative;
    margin: 0;
    background: white;
    display: inline-block;
    vertical-align: middle;
    outline: none;
    &--increment {
      // margin-bottom: 4px
      border-radius: 2px 2px 0 0;
    }
    &--decrement {
      border-radius: 0 0 2px 2px;
    }
    &--increment:before,
    &--increment:after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: black;
    }
    &--increment:before {
      width: 2px;
      border-radius: 1px;
      margin: 3px auto;
    }
    &--increment:after {
      margin: auto 3px;
      height: 2px;
      border-radius: 1px;
    }
    &--decrement:before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: black;
      margin: auto 3px;
      height: 2px;
      border-radius: 1px;
    }
    &:hover {
      background: rgba(0, 0, 0, 0.15);
    }
    &:focus {
      box-shadow: none;
      outline: none;
    }
  }
  &__label {
    margin: 0;
    &--inbound {
      margin-right: 5px;
    }

    &--outbound {
      margin-left: 5px;
    }
  }
  &__input {
    text-align: center;
    height: 32px;
    margin: 0 5px;
  }
  /* Chrome, Safari, Edge, Opera */
  input::-webkit-outer-spin-button,
  input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  /* Firefox */
  input[type='number'] {
    -moz-appearance: textfield;
  }
}

.fullscreen-button {
  // position: absolute;
  // right: 20px;
  // bottom: 20px;
  color: grey;
  &__icon {
    font-size: 25px;
    cursor: pointer;
  }
}

.tooltip {
  position: absolute;
  opacity: 1;
  visibility: hidden;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 5px;
  padding: 10px;
  background: white;
  pointer-events: none;
  ul {
    font-size: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: black;
  }
  &--dark {
    border-color: #343d46;
    background: #343d46;
    ul {
      color: white;
    }
  }
}

.g-arrow {
  pointer-events: none;
}

////////////////////////////////////////////////////////////////////////////////////////////////////

.card.dark {
  color: #d6d6d6;
  background-color: #434e57;
  border: 1px solid #434e57;
  .card-header {
    background-color: #343d46;
    border-bottom-color: #343d46;
  }
  .wrapper {
    background: #434e57;
  }
  .graph {
    background: #434e57;
  }
  .request-loader {
    background: rgba(0, 0, 0, 0.3);
  }
  .detail-level {
    &__input,
    &__input:focus {
      background-color: #434e57;
      border-color: #758591;
      color: #d6d6d6;
    }
  }
  .currency-filter {
    &__select,
    &__select:focus {
      background-color: #434e57;
      border-color: #758591;
      color: #d6d6d6;
    }
  }
  .depth-level {
    &__button {
      background: #434e57;
      border-color: #758591;
      &::before,
      &::after {
        background: #d6d6d6;
      }
      &:hover {
        background: rgba(255, 255, 255, 0.1);
      }
    }
  }
  .fullscreen-button {
    color: silver;
  }
}

*:focus {
  outline: none;
}

////////////////

.graph-modal-open {
  overflow: hidden;
}
.graph-bottom-menu {
  display: flex;
  flex-flow: column;
  align-items: flex-end;
  position: absolute;
  right: 20px;
  bottom: 20px;
  &__buttons {
    display: flex;
    margin-top: 5px;
    margin-right: -5px;
    a.badge {
      color: #fff;
      font-size: 60%;
      cursor: pointer;

      display: inline-block;
      padding: 0.25em 0.4em;
      margin-right: 5px;
      line-height: 1;
      text-align: center;
      white-space: nowrap;
      vertical-align: baseline;

      &.badge-secondary {
        background-color: #6c757d;
      }

      &:hover {
        color: #fff;
      }
    }
  }
}
.graph-modal {
  display: none;
  overflow: hidden;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 1050;
  background-color: rgba(0, 0, 0, 0.2);
  .graph-modal-dialog {
    position: relative;
    margin: 30px auto;

    @media screen and (min-width: 992px) {
      width: 80%;
    }

    @media screen and (min-width: 768px) and (max-width: 991px) {
      width: 90%;
    }

    .graph-modal-content {
      background-color: #fff;
      box-shadow: 0 27px 24px 0 rgba(0, 0, 0, 0.2),
        0 40px 77px 0 rgba(0, 0, 0, 0.22);
      border-radius: 2px;
      border: none;

      .graph-modal-header {
        border-bottom: none;
        padding-top: 24px;
        padding-right: 24px;
        padding-bottom: 10px;
        padding-left: 24px;

        .graph-modal-title {
          margin: 0;
          line-height: 1.4;
        }

        button.graph-modal-close {
          padding: 0;
          cursor: pointer;
          background: transparent;
          border: 0;
          margin-top: -2px;
          -webkit-appearance: none;
          float: right;
          font-size: 21px;
          font-weight: bold;
          line-height: 1;
          color: #000;
          text-shadow: 0 1px 0 #fff;
          opacity: 0.2;
        }
      }

      .graph-modal-body {
        padding-top: 0px;
        padding-right: 24px;
        padding-bottom: 16px;
        padding-left: 24px;
        height: 600px;
        textarea {
          width: 100%;
          height: 100%;
          resize: none;
          border-color: #6c757d;
        }
      }

      .graph-modal-url {
        padding-top: 0px;
        padding-right: 24px;
        padding-bottom: 16px;
        padding-left: 24px;

        input {
          width: 100%;
        }
      }

      .graph-modal-footer {
        padding-top: 0px;
        padding-right: 24px;
        padding-bottom: 16px;
        padding-left: 24px;
        .btn.btn-default {
          border: 1px solid #6c757d;
        }
      }
    }
  }
  .query-url:disabled {
    background-color: white;
  }
  &.dark {
    .graph-modal-dialog {
      .graph-modal-content {
        background-color: #343a40;
        .graph-modal-header {
          button.graph-modal-close {
            color: #fff;
            text-shadow: 0 1px 0 #000;
          }
        }
        .graph-modal-body {
          color: #fff;
          textarea {
            background-color: #627079;
            color: #fff;
            border-color: #6c757d;
          }
        }
        .graph-modal-footer {
          .btn.btn-default {
            background-color: #212529;
            color: #fff;
            border: none;
          }
        }
      }
    }
    .query-url:disabled {
      background-color: #434e57;
    }
  }
  &.graph-modal-shown {
    display: block;
  }
}
