@import '../styles/utils/mixins';
@import '../styles/utils/variables';
@import '../styles/base/typography';

.container-fluid {
  position: absolute;
  top: 108px;
  bottom: 40px;
  left: 0;
  right: 0;
  overflow: hidden;
  padding: 0;
  @include screen(lg) {
    padding: 0 4px;
    bottom: 0;
    top: 90px;
  }

  & > .row {
    height: 100%;
  }
}

.sidebar {
  width: 100%;
  height: 100%;
  @include screen(lg) {
    max-width: 300px;
    ::ng-deep {
      //.bn-card {
      //  height: auto;
      //}
      //.bn-card__body {
      //  position: relative;
      //  top: auto;
      //  bottom: auto;
      //}
    }
  }
  @include screen(xl) {
    max-width: 320px;
  }
}

.content, .mobile-content {
  height: 100%;
}

.mobile-content {
  background: linear-gradient(0deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
  & > div {
    height: 100%;
  }
}

.trade_table {
  height: 100%;

  &__cell {
    overflow-x: hidden;
    height: 100%;

    @include screen(lg) {
      margin-bottom: 8px;
      height: 60vh;
    }

    &.orders, &.history {
      @include screen(lg) {
        height: calc(40vh - 106px);
      }
    }

    $orderform-regular-height: 528px;

    &.balances {
      @include screen(lg) {
        min-height: 130px;
        max-height: calc(100vh - #{$orderform-regular-height} - 137px - 106px + 48px + 48px + 40px);
      }
      @media(max-height: 700px) {
        min-height: 130px;
        max-height: 130px;
        height: 130px;
      }
    }
    &.balances.alternate-pricing {
      @include screen(lg) {
        min-height: 130px;
        max-height: calc(100vh - #{$orderform-regular-height} - 137px - 106px + 40px + 48px);
      }
      @media(max-height: 700px) {
        min-height: 130px;
        max-height: 130px;
        height: 130px;
      }
    }
    &.orderform {
      @include screen(lg) {
        min-height: $orderform-regular-height;
        max-height: $orderform-regular-height;
      }
      @media(max-height: 700px) {
        max-height: calc(100vh - 236px);
        min-height: calc(100vh - 236px);
        height: calc(100vh - 236px);
      }
    }
    &.orderform.alternate-pricing {
      @include screen(lg) {
        min-height: $orderform-regular-height + 48px;
        max-height: $orderform-regular-height + 48px;
      }
      @media(max-height: 700px) {
        max-height: calc(100vh - 236px);
        min-height: calc(100vh - 236px);
        height: calc(100vh - 236px);
      }
    }
  }
}

.tooltip-icon {
  color: #fff;
  font-size: 14px;
  opacity: 0.5;
  cursor: help;
}
.clear-inactive-button {
  font-size: 11px;
  font-weight: 700;
  line-height: 15px;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-top: 0;
  margin-bottom: -4px;
  margin-right: -11px;
}

.order-book-view-wrapper {
  height: 22px;
}
.showbuyorsell {
  display: inline-block;
  cursor: pointer;
  padding: 2px 4px;
  height: 22px;
  border: 1px solid rgba(0,0,0,0.1);
}
.showbuyorsell.active {
  background-color: #0f2742;
  border: 1px solid transparent;
}
.showbuyorsell.view-all-orders {
  transform: translateX(5px);
}
.showbuyorsell.view-buy-orders {
  transform: translateX(-5px);
}
.showbuyorsell div {
  width: 14px;
  height: 1px;
  background-color: rgba(255,255,255,0.5);
  margin: 2px auto;
}
.showbuyorsell .sell {
  background-color: $bn-red !important;
}
.showbuyorsell .buy {
  background-color: $bn-green !important;
}

.charts-tab-view {
  padding-top: 6px;
}
