$buy-color: $color-green;
.buy-color {
  color: $buy-color !important;
}
input.buy-color {
  border-color: $buy-color !important;
  background-color: smart-scale($buy-color, 95%) !important;
}
input.buy-color:hover {
  color: smart-scale($buy-color, -12%) !important;
  border-color: smart-scale($buy-color, -12%) !important;
  background-color: smart-scale($buy-color, 90%) !important;
}

$sell-color: $color-red;
.sell-color {
  color: $sell-color !important;
}
input.sell-color {
  border-color: $sell-color !important;
  background-color: smart-scale($sell-color, 95%) !important;
}
input.sell-color:hover {
  color: smart-scale($sell-color, -12%) !important;
  border-color: smart-scale($sell-color, -12%) !important;
  background-color: smart-scale($sell-color, 90%) !important;
}

.Market__orderbook {
    tbody > tr {
        cursor: pointer;
    }
}


.Market__orderbook, .Market__trade-history {
  thead th {
    line-height: 1.1;
    small {
      color: #666;
      font-weight: normal;
    }
  }

  thead th, tbody td {
    padding: 0.1rem 0.3rem;
    text-align: right;
  }

  tbody > tr > td {
      font-size: 90%;
  }

}


.Market__orderform {
  margin-bottom: 1rem;
  line-height: 1;

  .input-group-label {
    min-width: 6rem;
    font-size: 83%;
  }

  label {
    //display: inline-block; width: 20%;
  }

  input[type='text'] {
    display: inline-block;
    width: auto;
    height: auto;
    padding: 0.1rem 0.5rem 0.1rem 0.25rem;
    text-align: right;
  }

  input.price_warning {
    background: rgba(255, 153, 0, 0.13);
    @include themify($themes) {
      background: themed('inputPriceWarning');
    }
  }
}

.Market__ticker {
  width: 100%;
  overflow: hidden;
  font-size: 90%;
  text-align: center;

  li {
    list-style: none;
    padding: 0;
    display: inline-block;
    border: 1px solid $light-gray;
    border-radius: 3px;
    margin: 0 0.25rem;
    padding-right: 0.5rem;
    b {
      padding: 0 0.5rem;
      margin-right: 0.5rem;
      display: inline-block;
      @include themify($themes) {
        background-color: themed('backgroundColorOpaque');
        border-right: themed('borderDark');
      }
    }
  }

}

.Market__ticker-pct-up {
  color: #080;
}

.Market__ticker-pct-down {
  color: #C00;
}


table.Market__open-orders {
  thead tr, tbody tr {
    :nth-child(3),
    :nth-child(4),
    :nth-child(5),
    :nth-child(6) {
      text-align: right;
    }
  }

  thead th.sortable {
    cursor: pointer;
  }

  th.activesort--asc::after {
    content: ' ';
    float: right;
    margin-top: 10px;
    margin-left: 10px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid black;
  }

  th.activesort--desc::after {
    content: ' ';
    float: right;
    margin-top: 10px;
    margin-left: 10px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid black;
  }
}

table.Market__trade-history {
  thead tr, tbody tr {
    :nth-child(3),
    :nth-child(4),
    :nth-child(5) {
      text-align: right;
    }
  }
}

table.Market__orderbook > tbody > tr.animate, table.Market__trade-history > tbody > tr.animate {
    background-color: #d1d2d2;
}

tr {
    -webkit-transition: background-color 750ms linear;
    -moz-transition: background-color 750ms linear;
    -o-transition: background-color 750ms linear;
    -ms-transition: background-color 750ms linear;
    transition: background-color 750ms linear;
}

ul.pager {
  padding-left: 0;
  margin: 20px 0;
  text-align: center;
  list-style: none;

  > li {
      display: inline;
      cursor: pointer;
      -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none;   /* Chrome/Safari/Opera */
      -khtml-user-select: none;    /* Konqueror */
      -moz-user-select: none;      /* Firefox */
      -ms-user-select: none;       /* Internet Explorer/Edge */
      user-select: none;
  }

  .button.hollow {
    transition: 0.2s all ease-in-out;
    background-color: transparent;
    @include themify($themes) {
      border: themed('borderAccent');
      color: themed('textColorAccent');
    }
    &:hover {
      @include themify($themes) {
        border: themed('borderDark');
        color: themed('textColorPrimary');
      }
    }
  }
}

.DepthChart > div {
  height: 250px;
}



.DepthChart {
  rect.highcharts-background {
    fill-opacity: 0;
  }
  .highcharts-grid path {
    stroke: #999;
  }
}
