@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700');
@import url('https://fonts.googleapis.com/css?family=Bitter:400,400i,700');

/* Fixes for Conflicts with WordPress Theme */

.optionalpha-backtester *{
	box-sizing:content-box !important;
}
.page-id-19767 li,
.page-id-84446 li,
.page-id-24387 li{
	margin-bottom:0px;
}
.optionalpha-backtester form input{
	width:auto !important;
}
.optionalpha-backtester .checkbox .icon-checked::before, 
.optionalpha-backtester .radio .icon-checked::before, 
.optionalpha-backtester .checkbox .icon-unchecked::before, 
.optionalpha-backtester .radio .icon-unchecked::before{
	font-family:"Flat-UI-Icons" !important;
}
.optionalpha-backtester label,
.optionalpha-backtester .section-container .column .radio span{
	font-size:16px;
	font-weight:normal;
}
.optionalpha-backtester .ui-widget-content {
    border: 0 none;
}
.optionalpha-backtester .ui-slider{
    height:12px;
}
.optionalpha-backtester .ui-slider-horizontal .ui-slider-handle{
	margin-left:-9px;
    top:-3px;
}
.optionalpha-backtester .ui-state-default, 
.optionalpha-backtester .ui-widget-content .ui-state-default, 
.optionalpha-backtester .ui-widget-header .ui-state-default{
	border:0;
}
.optionalpha-backtester .icons span{
	font-size:20px;
	color:#bdc3c7;
}
.optionalpha-backtester canvas{
	margin:0 !important;
}

/* Search Form and Initial Loadout */

.loading{
	text-align:center;
}
.optionalpha-backtester .container{
	overflow:visible;
}
.optionalpha-backtester{
	margin-bottom:50px;
}
.optionalpha-backtester,
.optionalpha-backtester .wrapper .container{
	position:relative;
	width:100%;
	height:auto;
	float:left;
	padding:0;
	overflow:visible;
	background:#F5F8FB;
}
.optionalpha-backtester .wrapper{
	position:relative;
	width:100%;
	height:auto;
	margin:0 auto;
	overflow:visible;
}
.optionalpha-backtester .section-container{
	position:relative;
	width:95%;
	height:auto;
	float:left;
    padding:2.5%;
	background:#FFF;
	border-radius:6px;
	box-sizing:content-box;
	overflow:visible;
}
.optionalpha-backtester .section-container #searchform .select{
	position:relative;
	width:100%;
	min-width:100%;
	float:left;
}
.optionalpha-backtester .section-container #searchform .select .select2-choice{
	width:90%;
	padding:10px 6% 10px 4%;
}
.optionalpha-backtester .section-container .column-container{
	width:100%;
	height:auto;
	float:left;
	margin-bottom:20px;
	overflow:visible;
}
.optionalpha-backtester .section-container .radio-columns .column{
	width:23.5%;
}
.optionalpha-backtester .section-container .column{
	position:relative;
	width:32%;
	height:auto;
	float:left;
	margin:0 1%;
	overflow:visible;
}
.strategy-specific-filters .column:nth-of-type(1){
    margin-left:0 !important;
}
.optionalpha-backtester .help{
	position:relative;
	font-family:'FontAwesome';
	cursor:pointer;
	top:1px;
	margin:2px 0 -2px 5px;
}
.optionalpha-backtester .help:hover .tooltip{
	display:block;
}
.optionalpha-backtester .help .tooltip{
	position:absolute;
	width:304px;
	height:auto;
	padding:12px;
	font-family:'Arial';
	font-size:16px;
	display:none;
	color:#666666;
	left:-161px;
	top:27px;
	border-radius:5px;
	background:#fff;
	-webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
	box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
}
.optionalpha-backtester .help .tooltip:before{
    background:#fff;
    content:"";
    height:10px;
    left:0;
    position:absolute;  
	z-index:9;
    width:100%;
}
.optionalpha-backtester .help .tooltip.popdown:before{
	top:0;
}
.optionalpha-backtester .help .tooltip.popup:before{
	bottom:0;
}
.optionalpha-backtester .help .tooltip:after{
	content:'';
	display:block;
	position:absolute;
	
	right:155px;
	width:10px;
	height:10px; 
    background:#fff;
	-moz-transform:rotate(-135deg);
	-webkit-transform:rotate(-135deg);
	-webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
	box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
}
.optionalpha-backtester .help .tooltip.popdown:after{
	top:-5px;
}
.optionalpha-backtester .help .tooltip.popup:after{
	bottom:-6px;
}
.optionalpha-backtester .help .tooltip.popup{
	
}
.optionalpha-backtester .help .tooltip.popup{
	top:-230px;
}
.optionalpha-backtester .section-container .column.disabled .select2-container{
	cursor:default;
}
.optionalpha-backtester .section-container .column.disabled .select2-container:before{
	position:absolute;
	width:100%;
	content:"";
    height:100%;
    left:0;
    top:0;
    z-index:999;
}
.optionalpha-backtester .section-container .column.disabled a.select2-choice{
	background:#F1F1F1;
	cursor:default;
}
.optionalpha-backtester .section-container .column a.select2-choice{
	background:#34495E;
}
.optionalpha-backtester .section-container .column.selected a.select2-choice,
.select2-drop .select2-highlighted > .select2-result-label{
	background:#2ECC71 !important;
}
.optionalpha-backtester .section-container .column.stoplossexit .column{
	width:100%;
	margin:0;
}
.optionalpha-backtester .section-container .column.full-size-column:first-child{
	margin:0 1%;
}
.optionalpha-backtester .section-container .column:first-child{
	margin-left:0px;
}
.optionalpha-backtester .section-container .column:nth-child(3n+3){
	margin-right:0px;
}
.optionalpha-backtester .section-container .column .select{
	width:100%;
}
.optionalpha-backtester .section-container .column .select .select2-choice{
	width:85%;
	padding:10px 10% 10px 5%;
}
.optionalpha-backtester .section-container .column .radio{
	width:89%;
	float:left;
	padding-left:11%;
	line-height:20px;
}
.optionalpha-backtester .section-container .column.full-size-column{
	width:100%;
	margin:0;
}
.optionalpha-backtester .section-container .column.full-size-column input[type="text"] {
    font-size: 14px;
	margin-bottom: 8px;
	color:#999;
	font-family:'Montserrat';
}
.optionalpha-backtester .section-container h4,
.pdf-loading .inner .text h4{
	float:left;
    color:#999;
    font-family:"Montserrat",sans-serif;
    font-size:15px;
    font-style:normal;
    font-weight:normal;
	margin-top:0px;
	margin-bottom:1px;
}
.optionalpha-backtester .column h4{
	margin-bottom:12px;
}
.optionalpha-backtester .section-container .step-1 .step-button,
.optionalpha-backtester .section-container .reset-button,
.optionalpha-backtester .run-backtest,
.backtest-summary .start-over,
.backtest-summary .edit-test{
	margin:40px 0 0 0;
	float:right;
	background:#dadde0;
	color: #666;
    font-family:"Montserrat",sans-serif;
    font-size: 18px;
    font-weight: bold;
	padding: 11px 25px;
	cursor:pointer;
}
.backtest-summary .save-backtest{
	position:absolute;
	background:none;
	padding:0;
	font-size:15px;
	right:23px;
    top:26px;
	color:#999;
	cursor:pointer;
	font-family:"Montserrat",sans-serif;
}
.backtest-summary .save-backtest i{
    left:-19px;
    margin:-1px 0 0;
    position:absolute;
    top:4px;
}
.optionalpha-backtester .backtest-summary .save-backtest:hover{
	background:none !important;
}
.backtest-summary .start-over{
	margin-right:15%;
}
.backtest-summary .edit-test{
	float:right;
	color: #666;
	font-size:18px;
    font-weight:bold;
	font-family:"Montserrat",sans-serif;
}
.backtest-summary .edit-test:before{
	content:"" !important;
}
.optionalpha-backtester .section-container .reset-button:before,
.backtest-summary .start-over:before,
.backtest-summary .edit-test:before,
.optionalpha-backtester .run-backtest:after{
	font-family:"FontAwesome";
    font-size:17px;  
    position:relative;
	content:"";
	float:left;
	margin:1px 9px 0 0;
}
.optionalpha-backtester .btn:hover{
	color:#666 !important;
	background:#E0E2E5 !important;
}
.optionalpha-backtester .section-container .step-1 .step-button:after{
	font-family:"FontAwesome";
    font-size:17px;  
    position:relative;
	content:"";
    float:right;
	margin:1px 0 0 9px;
}
.optionalpha-backtester .section-container .reset-button,
.backtest-summary .start-over{
	float:left;
}
.optionalpha-backtester .step-2 .ui-slider-range{
	background:#2ecc71;
}
.optionalpha-backtester .step-2 .ui-slider-handle{
	background:#27ae60;
}
.checkbox input.custom-checkbox[type="checkbox"]:checked + .icons .icon-checked, .radio input.custom-checkbox[type="checkbox"]:checked + .icons .icon-checked, .checkbox input.custom-radio[type="radio"]:checked + .icons .icon-checked, .radio input.custom-radio[type="radio"]:checked + .icons .icon-checked{
	color:#2ecc71 !important;
}
.optionalpha-backtester .section-container .step-2{
	display:none;
	overflow:visible !important;
}
.optionalpha-backtester .section-container .step-2 .ivr-labels,
.optionalpha-backtester .section-container .step-2 .dte-labels{
	position:relative;
	width:100%;
	height:50px;
	float:left;
	margin:-21px 0 0 0;
}
.optionalpha-backtester .step-2 .dte-labels span,
.optionalpha-backtester .step-2 .ivr-labels span{
	position:absolute;
	font-size:14px;
}
.optionalpha-backtester .step-2 .dte-labels span{
	margin-left:-4px;
}
.optionalpha-backtester .step-2 .dte-labels span:nth-child(1){
	left:4px;
}
.optionalpha-backtester .step-2 .dte-labels span:nth-child(2){
	left:14.28%;
}
.optionalpha-backtester .step-2 .dte-labels span:nth-child(3){
	left:28.56%;
}
.optionalpha-backtester .step-2 .dte-labels span:nth-child(4){
	left:42.84%;
}
.optionalpha-backtester .step-2 .dte-labels span:nth-child(5){
	left:57.12%;
}
.optionalpha-backtester .step-2 .dte-labels span:nth-child(6){
	left:71.4%;
}
.optionalpha-backtester .step-2 .dte-labels span:nth-child(7){
	left:85.68%;
}
.optionalpha-backtester .step-2 .dte-labels span:nth-child(8){
	left:98.96%;
}
.optionalpha-backtester .step-2 .ivr-labels span:nth-child(1){
	left:0px;
}
.optionalpha-backtester .step-2 .ivr-labels span:nth-child(2){
	left:33.3%;
	margin-left:-8px;
}
.optionalpha-backtester .step-2 .ivr-labels span:nth-child(3){
	left:66.6%;
	margin-left:-8px;
}
.optionalpha-backtester .step-2 .ivr-labels span:nth-child(4){
	left:99.9%;
	margin-left:-23px;
}
.optionalpha-backtester .step-2 .bottom-buttons{
	width:100%;
	float:left;
}
.optionalpha-backtester .step-2 .bottom-buttons .btn{
	margin-top:0px !important;
}
.optionalpha-backtester .step-2 .strategy-specific-filters{
	position:relative;
	width:100%;
	height:auto;
	float:left;
	overflow:visible !important;
	margin-bottom:30px;
}
.optionalpha-backtester .step-2 .strategy-specific-tooltips{
	display:none;
	overflow:visible;
}
.optionalpha-backtester .step-2 #dte-slider,
.optionalpha-backtester .step-2 #ivr-slider{
	width:100%;
	float:left;
	margin-bottom:35px;
}
.optionalpha-backtester .step-2 input#ivr,
.optionalpha-backtester .step-2 input#dte{
	display:none;
}
.optionalpha-backtester .run-backtest{
	float:right;
}
.optionalpha-backtester .run-backtest:after{
	content:"";
	font-size:18px;
	margin:0 9px 0 0;
}

/* Misc */

.step-button{
	position:relative;
	width:auto;
	float:left;
	cursor:pointer;
}
input.btn-primary{
	display:none;
}

/* Results */

.optionalpha-backtester .backtest-results{
	position:relative;
	width:100%;
	height:auto;
	float:left;
	overflow:visible !important;
}
.optionalpha-backtester .backtest-results .legend{
	list-style: none;
	margin: 0;
	padding: 0;
}
.optionalpha-backtester .backtest-results .legend ul{
	list-style:none;
	margin:0;
	padding:0;
	float:right;
}
.optionalpha-backtester .backtest-results .legend span{
	display: inline-block;
	width: 34px;
	height: 14px;
	margin-right: 10px;
	margin-bottom: -2px;
}
.optionalpha-backtester .backtest-results .legend span.strategy{
	width:auto;
}
.optionalpha-backtester .backtest-results .legend li{
	margin-bottom: 10px;
    display: inline-block;
    margin-right: 20px;
	font-size:13px;
}
.optionalpha-backtester .backtest-results .results-box{	
	position:relative;
	width:95%;
	height:auto;
	float:left;
    padding:2.5%;
	margin:0 0 30px 0;
	background:#FFF;
	border-radius:6px;
}
.optionalpha-backtester .backtest-results .profitability-metrics.results-box{
	padding:2.5% 2.5% 4%;
}
.optionalpha-backtester .backtest-results .results-box.half-width{
	width:44%;
}
.optionalpha-backtester .backtest-results .half-width:first-child{
	margin-right:2%;
}
.optionalpha-backtester .step-1 h3,
.optionalpha-backtester .step-2 h3,
.optionalpha-backtester .backtest-results .results-box h3{
	width:100%;
	float:left;
	color:#333;
    font-family:"Bitter",sans-serif;
    font-size:30px;
    font-weight:bold;
	margin:0 0 20px 0;
	padding:0;
}
.optionalpha-backtester p.step-description{
	margin-bottom:20px;
}
.optionalpha-backtester .step-2 p.step-description{
	margin-top:-10px;
}
.optionalpha-backtester p.step-description,
.optionalpha-backtester p.results-description{
	width:100%;
	float:left;
	padding-bottom:15px;
	margin-bottom:40px;
	border-bottom:1px solid #f1f1f1;
}
.optionalpha-backtester p.step-summary,
.optionalpha-backtester p.previously{
	float:left;
    font-family:"Arial";
    font-size:16px;
    font-weight:100;
    margin:0 0 40px;
    width:100%;
}
.optionalpha-backtester p.step-summary span,
.optionalpha-backtester p.previously span.value{
	font-weight:bold;
	text-decoration:none;
}
.optionalpha-backtester p.previously{
    border-bottom:1px solid #f1f1f1;
    margin:-10px 0 50px;
    padding-bottom:30px;
}
.optionalpha-backtester .step-2 p.previously{
	margin:-20px 0 50px;
}
.optionalpha-backtester span.go-back{
	font-weight:bold;
	text-decoration:underline;
	cursor:pointer;
}
.optionalpha-backtester p.results-description{
	margin-bottom:20px;
}
.optionalpha-backtester .backtest-results .results-box h4{
	color:#999;
    font-family:"Montserrat",sans-serif;
    font-size:15px;
    font-style:normal;
    font-weight:normal;
	margin:0;
	padding:0;
}
.optionalpha-backtester .backtest-results .backtest-summary .row{
	width:100%;
	float:left;
	color:#666 !important;
}
.optionalpha-backtester .backtest-results .backtest-summary .summary-item{
	width:25%;
	height:auto;
	float:left;
	font-size:16px;
}
.optionalpha-backtester .backtest-results .backtest-summary .name{
	width:auto;
	float:left;
	font-weight:bold;
	margin-right:10px;
}
.optionalpha-backtester .backtest-results .backtest-summary .value{
	width:auto;
	float:left;
}
.optionalpha-backtester .backtest-results .backtest-summary .portfolio-size .value:before{
	content:"$";
	float:left;
}
.optionalpha-backtester .backtest-results .top-blocks{
	width:100%;
	height:auto;
	float:left;
	margin-bottom:30px;
}
.optionalpha-backtester .backtest-results .top-blocks .block .data:before{
    color:#DADDE0;
    font-family:"FontAwesome";
    font-size:35px;
    left:40px;
    position:absolute;
    top:43px;
}
.optionalpha-backtester .backtest-results .top-blocks .block.total-pl{
	width:14.5%;
	padding:2.5% 1.5% 2.5% 7.5%;
}
.optionalpha-backtester .backtest-results .top-blocks .block.total-pl .data:before{
    content:"";
}
.optionalpha-backtester .backtest-results .top-blocks .block.total-pl-percentage .data:before{
    content:"";
}
.optionalpha-backtester .backtest-results .top-blocks .block.annreturn .data:before{
    content:"";
}
.optionalpha-backtester .backtest-results .top-blocks .block.sharpe .data:before{
    content:"";
}
.optionalpha-backtester .backtest-results .top-blocks .block.avgmonthlyreturn .data:before{
    content:"";
}
.optionalpha-backtester .backtest-results .top-blocks .block.days-trade-avg .data:before{
    content:"";
}
.optionalpha-backtester .backtest-results .top-blocks .block.credit-debit .data:before{
    content:"";
}
.optionalpha-backtester .backtest-results .top-blocks .block.drawdowndays .data:before{
    content:"";
}
.optionalpha-backtester .backtest-results .bottom-blocks .block.pl-day .data:before,
.optionalpha-backtester .backtest-results .bottom-blocks .block.pl-trade .data:before{
	content:"";
}
.optionalpha-backtester .backtest-results .bottom-blocks .block.pl-day-pct .data:before{
	content:"";
}
.optionalpha-backtester .backtest-results .bottom-blocks .block.pl-trade-pct .data:before{
	content:"";
}
.optionalpha-backtester .backtest-results .top-blocks .block{
	position:relative;
	width:12.5%;
	height:auto;
	float:left;
    padding:2.5% 1.5% 2.5% 9.5%;
	background:#FFF;
	border-radius:6px;
	margin-right:2%;
	text-align:left;
}
.optionalpha-backtester .backtest-results .top-blocks .block .label{
	color:#999;
    font-family:"Montserrat",sans-serif;
    font-size:15px;
    font-style:normal;
    font-weight:normal;
	letter-spacing:0px;
	margin-bottom:10px;
}
.optionalpha-backtester .backtest-results .top-blocks .block .data{
	color:#333;
    font-family:"Bitter",sans-serif;
    font-size:22px;
    font-weight:bold;
	margin-bottom:5px;
}
.optionalpha-backtester .backtest-results .top-blocks .block:nth-of-type(4n+4){
	margin-right:0%;
}
.optionalpha-backtester .backtest-results .stats-table,
.optionalpha-backtester .backtest-results .stats-table .stats-header,
.optionalpha-backtester .backtest-results .stats-table .data,
.optionalpha-backtester .backtest-results .stats-table .data .row{
	width:100%;
	height:auto;
	float:left;
}
.optionalpha-backtester .backtest-results .stats-table .stats-header{
	width:100%;
	height:auto;
	float:left;
	font-size:16px;
	padding:0;
	font-weight:bold;
	text-align:center;
}
.optionalpha-backtester .backtest-results .stats-table .data .row{
	width:100%;
	height:auto;
	float:left;
	font-size:16px;
	padding:5px 0 5px 0;
	margin-bottom:10px;
	background:#F5F8FB;
	border-radius:5px;
	text-align:center;
}
.optionalpha-backtester .backtest-results .stats-table .data .row .year{
	font-weight:bold;
}
.optionalpha-backtester .backtest-results .stats-table .stats-header div,
.optionalpha-backtester .backtest-results .stats-table .data div{
	width:6.9%;
	float:left;
	padding:9px 0 7px 0;
}
.avg, .ann-avg{
    width: 8.7% !important;
	text-align: center;
	padding:9px 0.5% 7px !important;
	font-weight:bold;
}
.ann-avg{
	position:relative;
}
.ann-avg span{	
    border-radius:3px;
    color:#fff;
    font-size:14px;
    font-weight:600;
    padding:5px 8px;
	font-family:"Montserrat",sans-serif;
}
.ann-avg .negative{
	background:#e15258;
}
.ann-avg .positive{
	background:#2ECC71;
}
.optionalpha-backtester .backtest-results .raw{
	width:100%;
	float:left;
}
.optionalpha-backtester .backtest-results .profitability-metrics .gauge-container{
	width:33.33%;
	float:left;
}
.optionalpha-backtester .backtest-results .profitability-metrics .gauge-container .label{
	width:100%;
	text-align:center;
	font-family:"Bitter",sans-serif;
}
.optionalpha-backtester .backtest-results .profitability-metrics .gauge-container .label:nth-of-type(1){
	font-size:26px;
	font-weight:bold;
	margin-top:-87px;
	margin-bottom:25px;
}
.optionalpha-backtester .backtest-results .profitability-metrics .gauge-container .label:nth-of-type(2){
	margin-bottom:0px;
	color: #999;
    font-family: "Montserrat",sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: normal;
    padding: 0;
}
.optionalpha-backtester .backtest-results .profitability-metrics canvas{
	width:100%;
	height:auto;
}
.optionalpha-backtester .backtest-results #monthlyReturnsChart {
    margin-bottom:10px;
    margin-top:40px;
}
.optionalpha-backtester .backtest-results .per-var-averages{
	position:relative;
	width:100%;
	height:auto;
	float:left;
	text-align:center;
	margin:20px 0 10px 0;
}
.optionalpha-backtester .backtest-results .per-var-averages .column{
	width:22%;
	margin:0 2%;
}
.optionalpha-backtester .backtest-results .per-var-averages .column:first-child{
	margin-left:0%;
}
.optionalpha-backtester .backtest-results .per-var-averages .column:last-child{
	margin-right:0%;
}
.optionalpha-backtester .backtest-results .per-var-averages .column .label{
	margin-bottom:12px;
	color: #999;
    font-family: "Montserrat",sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: normal;
    padding: 0;
}
.optionalpha-backtester .backtest-results .per-var-averages .column .value{
	width:100%;
	float:left;
	color:#333;
    font-family:"Bitter",sans-serif;
    font-size:22px;
    font-weight:bold;
}
.optionalpha-backtester .backtest-results .per-var-averages .column .line{
	background:#F5F8FB;
    display:block;
    float:left;
    height:7px;
    position:relative;
    width:100%;
	overflow:hidden;
	margin:20px 0 0 0;
}
.optionalpha-backtester .backtest-results .per-var-averages .column .line span{
	position:relative;
	height:7px;
	float:left;
	width:50% !important;
}
.optionalpha-backtester .backtest-results .per-var-averages .column .line.positive span{
	float:left;
	/*background:#2ecc71;*/
}
.optionalpha-backtester .backtest-results .per-var-averages .column .line.negative span{
	float:right;
	/*background:#E15258*/
}
.pl-day .line span, .pl-trade .line span{
	background:#9D8AC7;
}
.pl-day-pct .line span, .pl-trade-pct .line span{
	background:#ec87c0;
}

/* No Results */

.optionalpha-backtester .no-results{
	width:100%;
	height:auto;
	float:left;
	margin:0;
	padding:40px 0 60px;
	border-radius:5px;
	background:#FFF;
	text-align:center;
}
.optionalpha-backtester .no-results .message{
	width:70%;
	margin:0 15%;
	text-align:center;
}
.optionalpha-backtester .no-results .message h1{
	color:#000;
    font-family:"Bitter",sans-serif;
    font-size:44px;
	line-height:60px;
    font-weight:bold;
	padding:0;
	margin:0 0 20px 0;
}
.optionalpha-backtester .no-results .message p{
	font-family:"Montserrat",sans-serif;
	font-size:20px;
	color:#666666;
}
.optionalpha-backtester .no-results .icon{
	text-align:center;
	padding:30px 0 50px;
	margin:0;
	color:#666666;
}
.optionalpha-backtester .no-results .start-over,
.edit-test-no-results{
	width:auto;
	color:#666;
	font-size:18px;
	font-weight:bold;
	border-radius:5px;
	padding:11px 25px;
	display:inline-block;
	text-align:center;
	background:#dadde0;
	cursor:pointer;
	font-family:'Montserrat';
}
.optionalpha-backtester .no-results .start-over:before{
	content:"";
}
.edit-test-no-results:before{
	content:"";
}
.optionalpha-backtester .no-results .start-over:before,
.edit-test-no-results:before{
	font-family:"FontAwesome";
    font-size:17px;  
    position:relative;
	float:left;
	margin:1px 9px 0 0;
}

/* Misc Overrides */

.ui-slider-horizontal .ui-slider-handle[style*="left: 0%"]{
	margin-left:0px !important;
}

/* Chrome */

@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
	
    .optionalpha-backtester .section-container .reset-button:before,
	.backtest-summary .start-over:before,
	.optionalpha-backtester .run-backtest:after{
		font-size:17px;  
		margin:0 9px 0 0;
	}
	.optionalpha-backtester .section-container .step-1 .step-button:after{
		margin:0 0 0 9px;    
	}
	
}

/* Responsive */

@media all and (max-width:1140px) {
	
	.optionalpha-backtester .backtest-results .stats-table .stats-header div, .optionalpha-backtester .backtest-results .stats-table .data div{
		width:6.69%;
	}
	
}

@media all and (max-width:960px) {

	.optionalpha-backtester .backtest-results .backtest-summary .summary-item{
		font-size:14px;
	}
	.optionalpha-backtester .backtest-results .backtest-summary .name{
		margin-right:4px;
	}
	.optionalpha-backtester .backtest-results .top-blocks .block{
		width:48% !important;
		padding:2.5% 0 !important;
		margin-right:4%;
		margin-bottom:30px;
	}
	.optionalpha-backtester .backtest-results .top-blocks .block:nth-of-type(2n+2){
		margin-right:0;
	}
	.optionalpha-backtester .backtest-results .top-blocks .block .label,
	.optionalpha-backtester .backtest-results .top-blocks .block .data{
		text-align:center;
	}
	.optionalpha-backtester .backtest-results .top-blocks .block .data:before{
		left:0px;
		position:relative;
		top:0px;
		width:100%;
		float:left;
		margin:12px 0 24px;
		text-align:center;
	}
	.optionalpha-backtester .backtest-results .profitability-metrics .gauge-container .label:nth-of-type(1){
		font-size:22px;
		margin-top-57px;
	}
	.optionalpha-backtester .backtest-results .profitability-metrics .gauge-container .label:nth-of-type(2){
		font-size:14px;
	}
	.optionalpha-backtester .backtest-results .stats-table .data .row{
		font-size:12px;
	}
	
}

@media all and (max-width:767px) {

	.backtest-summary .save-backtest{
		float:none;
		margin:0px;
		display:inline-block;
		text-align:center;
	}
	.optionalpha-backtester .section-container{
		width:92%;
		padding:30px 4%;
	}
	.optionalpha-backtester .section-container .column{
		width:100%;
		margin-bottom:20px;
	}
	.optionalpha-backtester .section-container .column h4{
		margin-bottom:4px;
	}
	.optionalpha-backtester .section-container .radio-columns .column{
		width:70%;
		margin:0 0 15px 0;
	}
	.optionalpha-backtester .section-container .radio-columns .column h4{
		margin-bottom:14px;
	}
	
	/* Results */
	
	.optionalpha-backtester .backtest-results .results-box{
		width:92%;
		padding:30px 4%;
	}
	.optionalpha-backtester .backtest-results .profitability-metrics.results-box{
		padding:30px 4%;
	}
	.optionalpha-backtester .backtest-results .backtest-summary .summary-item{
		width:100%;
		text-align:center;
		display:inline-block;
	}
	.optionalpha-backtester .backtest-summary{
		display:inline-block;
		text-align:center;
	}
	.optionalpha-backtester .backtest-summary .start-over{
		display:inline-block;
		float:none !important;
		text-align:center;
		margin-right:0 !important;
	}
	.optionalpha-backtester .backtest-results .backtest-summary .name,
	.optionalpha-backtester .backtest-results .backtest-summary .value{
		text-align:center;
		display:inline-block;
		float:none;
	}
	.optionalpha-backtester .backtest-results .top-blocks .block{
		width:100% !important;
		margin-right:0px;
		padding:30px 0 !important;
	}
	.optionalpha-backtester .backtest-results .profitability-metrics .gauge-container{
		width:100%;
		margin-bottom:30px;
	}	
	.optionalpha-backtester .backtest-results .profitability-metrics .gauge-container .label:nth-of-type(1){
		font-size:26px;
		margin-top:-97px;
	}
	.optionalpha-backtester .backtest-results .profitability-metrics .gauge-container .label:nth-of-type(2){
		font-size:15px;
	}
	.optionalpha-backtester .backtest-results .results-box.half-width{
		width:90%;
		margin-right:0px;
	}
	.monthly-returns.table{
		display:none;
	}
	.optionalpha-backtester .backtest-results .results-box h4{
		text-align:center;
	}
	.optionalpha-backtester .backtest-results .results-box h3{
		text-align:center;
	}
	.optionalpha-backtester .backtest-results .legend ul{
		margin-bottom:15px;
		width:100%;
	}
	.optionalpha-backtester .backtest-results .legend li{
		font-size:12px !important;
		margin-right:2px !important;
	}
	.optionalpha-backtester .backtest-results .legend span.strategy{
		width:auto !important;
	}
	.optionalpha-backtester .backtest-results .legend span{
		width:20px !important;
	}
	.optionalpha-backtester .bottom-buttons{
		width:100%;
		text-align:center;
		display:inline-block;
	}
	.optionalpha-backtester .section-container .reset-button,
	.optionalpha-backtester .run-backtest{
		display:inline-block;
		text-align:center;
		float:none;
	}
	.optionalpha-backtester .section-container{
		text-align:center;
	}
	.optionalpha-backtester .section-container .column h4,
	.optionalpha-backtester .section-container h4{
		width:100%;
		text-align:center;
	}
	.bt-buttons{
		width:100%;
		float:left;
		margin:10px 0 0 0;
		text-align:center;
		display:inline-block;
	}
	.backtest-summary .save-backtest,
	.backtest-summary .start-over,
	.backtest-summary .edit-test,
	.optionalpha-backtester .section-container .reset-button,
	.optionalpha-backtester .section-container .step-1 .step-button{
		float:none !important;
		margin:0 0 10px 0 !important;
		display:inline-block;
		text-align:center;
	}	
	.optionalpha-backtester .section-container .step-1 .column-container{
		margin-bottom:0;
	}
	.optionalpha-backtester .section-container .column .radio{
		width:100%;
		padding-left:0;
	}
	.optionalpha-backtester .section-container .radio-columns .column{
		width:100%;
		text-align:center;
	}
	.optionalpha-backtester .section-container .radio-columns .column input,
	.optionalpha-backtester .section-container .radio-columns .column span.icons{
		position:relative;
		display:inline-block;
	}
	.optionalpha-backtester .section-container .radio-columns .column span.icons{
		top:4px;
	}
	.optionalpha-backtester .bottom-buttons .run-backtest{
		margin-top:0px;
	}
	.optionalpha-backtester .step-2 .strategy-specific-filters{
		margin-top:10px;
	}
	.optionalpha-backtester .bottom-buttons{
		margin-bottom:10px;
	}
	
	
}

@media all and (max-width:470px) {
	
	.optionalpha-backtester .section-container,
	.optionalpha-backtester .backtest-results .results-box,
	.optionalpha-backtester .backtest-results .profitability-metrics.results-box{
		padding:15px 5%;
		width:90%;
	}
	.optionalpha-backtester .backtest-results .results-box h3{
		font-size:23px;
	}
	.optionalpha-backtester .backtest-results .results-box h4{
		font-size:15px;
	}
	.optionalpha-backtester .backtest-results .profitability-metrics .gauge-container .label:nth-of-type(1){
		margin-top:-80px;
	}
	.optionalpha-backtester .backtest-results .profitability-metrics .gauge-container .label:nth-of-type(2){
		font-size:13px;
	}
	.optionalpha-backtester .help .tooltip{
		left:10%;
		padding:2.5%;
		position:fixed;
		top:45%;
		width:75%;
		z-index:99999;
	}
	.optionalpha-backtester .help .tooltip:before{
		display:none;
	}
	.optionalpha-backtester .help .tooltip:after{
		display:none;
	}
	
}

/* PDF Loading */

.pdf-loading{
	position:fixed;
	width:30%;
	height:100%;
	padding:0 35%;
	text-align:center;
	top:0%;
	left:0px;
	display:none;
}
.pdf-loading .inner{
	position:relative;
	width:100%;
	height:auto;
	float:left;
	top:20%;
	padding:20px 0;
	background:#FFF;
	border-radius:5px;
	text-align:center;
}
.pdf-loading:before{
	position:absolute;
	width:100%;
	height:100%;
	top:0px;
	left:0px;
	background:#000;
	opacity:0.3;
	content:"";
}
.pdf-loading .inner .icon{
	
}
.pdf-loading .inner .text h3{
	width:100%;
	float:left;
	color:#333;
    font-family:"Bitter",sans-serif;
    font-size:22px;
    font-weight:bold;
}
.pdf-loading .inner .text h4{
	width:100%;
	text-align:center !important;
}

/* Errors */

.optionalpha-backtester .error{
	position:relative;
	width:96%;
	height:auto;
	float:left;
	margin-bottom:30px;
	background:#ed5a5a;
    border-radius:6px;
	padding:20px 2%;
	color:#ffffff;
    font-family:Montserrat,sans-serif;
    font-size:16px;
}

/* Demo */

.demo-backtest .previously{
	display:none !important;
}