.header-exchange{
  min-width: 40%;
  white-space: nowrap;
  margin-left: auto;
}
.header-exchange > div{
  display: inline-block;
  padding-right: 10%;
}
.menu.pairs{
  height: 100%;
  padding: 0 1.6% 0 0.8%;
  line-height: 50px;
  cursor: pointer;
}
.menu.pairs:hover{
  background: #03131c;
}
.menu.pairs:after{
  content: '';
  position: absolute;
  top: 50%;
  right: 6%;
  margin-top: -2px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 4px 0 4px;
  border-color: #fff transparent transparent transparent;
}
.pairs-dropdown{
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1;
  display: none;
  min-width: 100%;
  background: #051e2a;
}
.pairs-dropdown a{
  display: block;
  padding: 10px;
  line-height: 18px;
}
.pairs-dropdown.active{
  display: block;
  z-index:999
}

.page-exchange{
  display: flex;
  height: 100%;
  padding: 53px 0 0;
  font-size: 12px;
}
.main-area{
  display: flex;
  flex-direction: column;
  width: 70%;
}
.side-area{
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-left: 3px;
}
.chart-area,
.orders-area,
.offers,
.history,
.form-area{
  background: #0A3040;
}
.chart-area{
  position: relative;
  height: 70%;
}
.chart-area.fullscreen{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 500;
    height: 100%;
}
.chart-area.fullscreen .highcharts-container, .chart-area.fullscreen .highcharts-container svg{
    width: 100%!important;
    height: 100%!important;
}
.orders-area{
  flex: 1;
  max-height: 30%;
  margin-top: 3px;
  overflow: hidden auto;
}
.offers-area{
  display: flex;
  height: 60%;
}
.form-area{
  flex: 1;
  max-height: 40%;
  margin-top: 3px;
  overflow: auto;
}
.offers{
  display: flex;
  flex-direction: column;
  width: 50%;
}
.custom .offers{
  width: 100%;
}
.history{
  flex: 1;
  margin-left: 2px;
  padding: 5px;
  overflow: auto;
}

.orders-area .hide-other{
  float: right;
  margin: 8px 6px;
}
.hide-other input{
  vertical-align: middle;
  cursor: pointer;
}
.hide-other label{
  cursor: pointer;
}
.orders-area .tabs > *{
  width: auto;
  height: 22px;
  margin: 4px 3px;
  padding: 0 10px;
  border: 1px solid #03131c;
  line-height: 20px;
}
.orders-area .tabs .active{
  border-color: #ffd180;
  color: #ffd180;
}
.orders-area .data-tbl th{
  height: 30px;
  border-color: #03131c;
  box-shadow: inset 0 -1px 0 0 #03131c;
  color: #fff;
}
.orders-area tr.loading td{
  background-color: #092227;
}
.orders-area tr.cancelled td{
  background-color: #757575;
}
.orders-area tr.error td{
  background-color: #500a0a;
}
.cancel-btn{
  padding: 5px;
  border: 1px solid #03131c;
  background: #0A3040;
  white-space: nowrap;
  cursor: pointer;
}
.cancel-types{
  position: relative;
  display: inline-block;
  width: 20px;
}
.cancel-types:after{
  content: '';
  position: absolute;
  top: 50%;
  right: 50%;
  margin-top: -2px;
  margin-right: -4px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 4px 0 4px;
  border-color: #fff transparent transparent transparent;
}
.cancel-selection{
  position: absolute;
  right: -1px;
  top: 100%;
  display: none;
}
.cancel-types:hover .cancel-selection{
  display: block;
}
.filter{
  margin-bottom: 3px;
}
.filter > *{
  margin: 0 5px;
}
.filter .period{
  display: inline-flex;
  justify-content: space-between;
  width: 20%;
}
.filter .period label{
  display: inline-block;
  width: 23%;
  height: 24px;
  line-height: 22px;
  border: 1px solid #03131c;
  text-align: center;
  cursor: pointer;
}
.filter input{
  width: 120px;
  height: 24px;
  padding: 0 5px;
}
.filter button{
  height: 24px;
  padding: 0 7px;
  border: 1px solid #03131c;
  background: #0a3040;
  line-height: 22px;
  cursor: pointer;
}
.filter .period input{
  display: none;
}
.filter .period input:checked + label{
  border-color: #ffd180;
  color: #ffd180;
}

.offers .controls{
  display: flex;
  background: #07232f;
}
.offers .cntrl{
  margin: 3px;
  padding: 1px 3px;
  border: 1px solid #000;
  cursor: pointer;
}
.offers .cntrl.active{
  border-color: #ffd180;
}
.offers .cntrl img{
  display: block;
}
.offers .controls .groups{
  margin: 3px 3px 3px auto;
}
.offers > .positive,
.offers > .negative{
  flex: 1;
  overflow: hidden;
}
.offers > .negative{
	display: flex;
	flex-direction: column-reverse;
}
.offers > .positive .price{
  color: #00ecc0;
}
.offers > .negative .price{
  color: #ff6b6b;
}
.offers .latest{
  position: relative;
  padding: 5px;
  background: #07232f;
  text-align: left;
}
.offers .latest div{
  display: inline-block;
}
.offers .latest .price{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 5px;
  font-size: 1.2em;
  font-weight: 600;
  text-align: center;
}
.offers .latest .pos:after,
.offers .latest .neg:after{
  font-size: 22px;
}
.offers .latest .pos:after{
  content: '\2191';
}
.offers .latest .neg:after{
  content: '\2193';
}
.offers .latest .bid{
  color: #00ecc0;
}
.offers .latest .ask{
  color: #ff6b6b;
}
.offers .latest .price_usd{
  color: #ffd180;
  font-size: 14px;
}
.offers .offer,
.history .offer{
	position: relative;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  line-height: 16px;
}
.offers .offer > div{
	width: 33%;
	overflow: hidden;
}
.offers .offer .price{
	padding-left: 5px;
}
.offers .offer .total{
	padding-right: 5px;
}
.offers .offer .amount,
.offers .offer .total{
	text-align: right;
}
.offers .offer .diagram{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: auto;
	opacity: 0.2;
}
.negative .diagram{
	background: #ff6b6b;
}
.positive .diagram{
	background: #00ecc0;
}
.history .offer .price{
  width: 40%;
}
.history .offer .amount{
  width: 20%;
}
.history .offer .date {
  width: 25%;
  text-align: right;
}

.form-area{
  background: #07232f;
}
.form-area .tabs{
  font-size: 14px;
}
.form-area .tabs > *{
  width: auto;
  height: 30px;
  padding: 0 15px;
  line-height: 30px;
}
.form-area .tabs .active{
  border-color: #07232f;
  background: #07232f;
  color: #ffd180;
}
.form-area .tab.active{
  display: flex;
}
.form-area form{
  width: 50%;
  padding: 15px 4%;
  transition: background 0.5s;
}
.form-area form.error{
  background: #700;
  transition: none;
}
.form-area form.success{
  background: #040;
  transition: none;
}
.form-area form:first-child{
  border-right: 1px solid #fff;
}
.form-area .currency{
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: bold;
}
.form-area .wallet{
  float: right
}
.form-area .form-group{
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.form-area .field-order-percent{
  justify-content: flex-end;
}
.form-area .form-group label{
	width: auto;
	text-align: left;
}
.form-area .form-group input{
  width: 70%;
  height: 28px;
  padding: 3px 10px;
  line-height: 20px;
}
.form-area .help-block{
  position: absolute;
  top: 100%;
  right: 0;
  margin: 0;
  white-space: nowrap;
}
.form-error{
  margin-bottom: 5px;
  color: #ff0000;
}
.percents{
  display: flex;
  justify-content: space-between;
  width: 70%;
}
.form-area .percents label{
  display: inline-block;
  width: 23%;
  height: 24px;
  line-height: 22px;
  border: 1px solid #fff;
  text-align: center;
  cursor: pointer;
}
.percents input{
  display: none;
}
.percents input:checked + label{
  border-color: #ffd180;
  color: #ffd180;
}
.login-to-trade{
  padding: 10px;
  border: 1px solid #fff;
  background: #03131c;
  text-align: center;
}
.login-to-trade a{
  color: #ffd180;
  text-decoration: none;
  font-weight: bold;
}
.add-order{
  display: block;
  width: 100%;
  padding: 7px;
}
.add-order.buy{
  background: #00ECC0;
}
.add-order.sell{
  background: #FF6B6B;
}

.chart{
	display: none;
	height: 100%;
	width: 100%;
}
.chart.active{
	display: block;
}
.chart-switcher{
	position: absolute;
	top: 0;
	right: 50px;
	z-index: 100;
}
.chart-btn{
	display: inline-block;
	padding: 5px;
	background: #0a3040;
	cursor: pointer;
}

/*temporary styles for trading view widget demo*/
.tradingview-widget-container,
.tradingview-widget-container > div,
.tradingview-widget-container > div > div,
.tradingview-widget-container > div > div > div
{
  position: relative;
  width: 100%!important;
  height: 100%!important;
}
.tradingview-widget-container .tradingview-widget-copyright{
  position: absolute;
  top: 100%;
  height: auto!important;
  pointer-events: none;
}

/*custom styles for highcharts in styled mode https://www.highcharts.com/docs/chart-design-and-style/style-by-css, overrides highcharts.css*/
.highcharts-background{
  fill: #0a3040;
}
.highcharts-root text{
  fill: #fff;
}
.highcharts-root .highcharts-title{
    fill: #fff!important;
}
.highcharts-label text tspan{
    fill: #fff;
}
.highcharts-button{
  fill: #07232f;
  cursor: pointer;
}
.highcharts-button-symbol{
  stroke: #fff;
}
.highcharts-contextbutton:hover{
  fill: #03131c;
  stroke: #03131c;
}
.highcharts-tooltip-box .highcharts-label-box {
    fill: #666;
}
.highcharts-tooltip-box{
    fill: #666;
}
.highcharts-axis-labels text{
    fill: #fff!important;
}
.highcharts-reset-zoom text{
    fill: #fff!important;
}
.highcharts-button-normal text{
    fill: #fff!important;
}
.highcharts-button-disabled text {
    fill: #444!important;
}
.highcharts-button-pressed{
    fill: #00ECC0;
}
#last-price{
    color: #ffd180;
    position:relative;
    top:5px;
}

