html,
body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

body {
    color: #555555;
    font-family: Arial, Helvetica, sans-serif;
}

body.skin-dark {
    background-color: #292929;
    color: #d0cccb;
}

* {
    box-sizing: border-box;
}

body>img {
    border: 0;
}

.tabs {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 5px;
}

.tabs .tabs-header {
    font-size: 0;
    margin-bottom: -1px;
    position: relative;
    z-index: 10;
    text-align: right;
    margin-left: 11px;
    margin-right: 11px;
}

.tabs .tabs-header>div {
    display: inline-block;
    font-size: 12px;
    padding: 0 20px;
    height: 30px;
    line-height: 30px;
    border: 1px solid #bddefb;
    border-bottom: 1px solid #bddefb;
    margin-right: -1px;
    cursor: pointer;
    background: #ffffff;
    vertical-align: bottom;
}

.skin-dark .tabs .tabs-header>div {
    border: 1px solid #787878;
    border-bottom: 1px solid transparent;
    background-color: transparent;
}

.tabs .tabs-header>div.active {
    background: #ffffff;
    filter: none;
    font-weight: 700;
    border-color: #bddefb;
    border-top: 3px solid #5897d4;
    border-bottom: 1px solid #ffffff;
    color: #333333;
    line-height: 27px;
}

.skin-dark .tabs .tabs-header>div.active {
    border: 1px solid #787878;
    color: inherit;
    background-color: #3b3b3b;
    line-height: 30px;
    border-bottom: 1px solid #3b3b3b;
}

#strategy-name {
    font-size: 13px;
    float: left;
    font-weight: 700;
    line-height: 26px;
}

.tabs .tabs-header>div:first-child {
    border-top-left-radius: 3px;
}

.tabs .tabs-header>div:last-child {
    border-top-right-radius: 3px;
    margin-right: 3px;
}

.tabs .tabs-header button {
    vertical-align: 12px;
    margin-left: 18px;
}

.tabs .tabs-body {
    flex: 1 1 auto;
    background-color: #ffffff;
    border-radius: 3px;
    border: 1px solid #bddefb;
    overflow: auto;
    position: relative;
}

.skin-dark .tabs .tabs-body {
    background-color: #3b3b3b;
    border: 1px solid #787878;
}

.tabs .tabs-body>div {
    display: none;
    padding: 10px;
}

.tabs .tabs-body>div.active {
    display: block;
}

.tabs .tabs-body>div.active#tab-1-body {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 2px;
}

.buttons {
    text-align: right;
    margin: 5px;
    position: relative;
    z-index: 11;
    float: right;
}

.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    line-height: 25px;
    height: 27px;
    padding: 0 10px;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
}

.btn:hover {
    color: #212529;
    text-decoration: none;
}

.btn.btn-success {
    border: 0;
    color: #ffffff;
    background: #26cf46;
    background: -moz-linear-gradient(top, #26cf46 0%, #00b421 100%);
    background: -webkit-linear-gradient(top, #26cf46 0%, #00b421 100%);
    background: linear-gradient(to bottom, #26cf46 0%, #00b421 100%);
    filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#26cf46', endColorstr='#00b421', GradientType=0);
    text-shadow: none;
    width: auto;
    text-align: left;
}

.skin-dark .btn.btn-success {
    border: 0;
    color: #ffffff;
    background: #26cf46;
    background: -moz-linear-gradient(top, #26cf46 0%, #00b421 100%);
    background: -webkit-linear-gradient(top, #26cf46 0%, #00b421 100%);
    background: linear-gradient(to bottom, #26cf46 0%, #00b421 100%);
    filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#26cf46', endColorstr='#00b421', GradientType=0);
    text-shadow: none;
    width: auto;
    text-align: left;
    background: #218621;
    border-color: #28a745;
}

.btn-success {
    color: #fff;
    background: #218621;
    border-color: #28a745;
    border: 1px solid transparent;
}

.btn-success:hover {
    color: #fff;
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-default {
    background: rgb(102, 102, 102);
    background: -moz-linear-gradient(top, rgba(102, 102, 102, 1) 0%, rgba(41, 41, 41, 1) 100%);
    background: -webkit-linear-gradient(top, rgba(102, 102, 102, 1) 0%, rgba(41, 41, 41, 1) 100%);
    background: linear-gradient(to bottom, rgba(102, 102, 102, 1) 0%, rgba(41, 41, 41, 1) 100%);
    filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#666666', endColorstr='#292929', GradientType=0);
    border-color: #777777;
    color: #cccccc;
    text-shadow: none;
    box-shadow: none;
}

.btn-default:hover {
    background: #292929;
    color: #cccccc;
}

#tab-3-body {
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
}


/***** styles for trade analysis and overview *****/

a {
    display: block;
    margin: 10px 0 10px 0;
    color: #4B78AF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#summaryBox {
    margin: 0;
    padding: 7px 0px;
    height: auto;
    margin-bottom: 10px;
    flex: 0 0 auto;
}

#summaryBox:after {
    content: '';
    display: block;
    clear: both;
}

div.plPart {
    float: left;
    width: 175px;
}

div.summaryPart {
    float: right;
    width: 740px;
}

div.plPart .plH1 {
    font-size: 30px;
    font-weight: bold;
    text-align: right;
    font-family: Arial, Helvetica, sans-serif;
    border-bottom: 1px solid #D0D3D4;
}

div.plPart .plH2 {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    padding: 6px 0 0;
    text-transform: uppercase;
    clear: both;
}

.skin-dark div.plPart .plH2 {
    color: #898989;
}

div.plPart .plH1 .small {
    font-size: 26px;
}

.plPart .name {
    display: block;
    font-size: 11px;
    text-align: left;
    text-transform: uppercase;
}

.skin-dark .plPart .name {
    color: #d0cccb;
}

.plPart .name2 {
    font-size: 11px;
    text-align: left;
    text-transform: uppercase;
    float: left;
}

.skin-dark .plPart .name2 {
    color: #d0cccb;
}

.plPart .value {
    text-align: right;
    display: block;
    float: right;
}

.plPart .value2 {
    text-align: right;
    display: block;
    float: right;
    font-size: 11px;
}

.positiveNum {
    color: #119911 !important;
}

.negativeNum {
    color: #FF4040 !important;
}

div.sumH2 {
    display: block;
    width: 117px;
    float: left;
    margin: 0 5px 5px 0;
}

div.sumH2 .name {
    font-size: 9px;
    text-align: left;
    text-transform: uppercase;
    display: block;
}

.skin-dark div.sumH2 .name {
    color: #d0cccb;
}

div.sumH2 .value {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    display: block;
    padding: 4px 0 4px 0;
    border: 1px solid #D0D3D4;
    margin-bottom: 5px;
}

.skin-dark div.sumH2 .value {
    color: #d0cccb;
}

div.title {
    text-align: center;
    color: #333333;
    font-family: Tahoma, Arial, sans-serif;
    padding-bottom: 10px;
}

.title h1 {
    color: #222222;
    font-size: 24px;
    font-weight: bold;
    line-height: 115%;
    margin: 5px 0;
    padding: 0;
    border-bottom: 0px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

.title h3 {
    margin: 5px 0;
    padding: 0;
    color: #333333;
}

div.params {
    text-align: center;
    color: #333333;
    font-family: Tahoma, Arial, sans-serif;
    border-bottom: 1px solid #E0E3E4;
    padding-bottom: 10px;
    margin-top: 10px;
}

.params th {
    white-space: nowrap;
    width: 150px;
    vertical-align: top;
    text-align: left;
    padding-left: 10px;
    font-weight: normal;
}

.skin-dark .params th {
    color: #d0cccb;
}

.params td {
    font-weight: bold;
}

.skin-dark .params td {
    color: #d0cccb;
}

div.params {
    padding-right: 5px;
}

.params td th {
    padding: 3px;
}

div.chart {
    margin: 0px;
    text-align: center;
}

div.performance {
    margin-top: 20px;
}

.months td {
    color: #4B78AF;
    font-weight: bold;
    padding-right: 10px !important;
}

.bold {
    font-weight: bold;
}

.oddrow td {
    background-color: #F5F5F5;
    border-bottom: 1px solid #EEEEEE;
    border-top: 1px solid #EEEEEE;
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
}

.skin-dark .oddrow td {
    color: #d0cccb;
}

.evenrow td {
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
}

.skin-dark .evenrow td {
    color: #d0cccb;
}

.tbg {
    background-color: #F0F0F0;
}

table.calendar {
    width: 100%;
}

table.calendar td {
    padding: 5px 3px 5px 0;
    text-align: right;
    width: 6%;
}

td.red {
    color: #FF4040;
}

.performance h1 {
    margin: 0 0 2px;
}

div.charts {
    position: relative;
}

div.charts td {
    text-align: center;
}

h1 {
    border-bottom: 1px solid #DCDCDC;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    line-height: 18px;
    margin: 20px 0 2px;
    padding: 0 0 5px;
    text-transform: uppercase;
    text-align: left;
}

.skin-dark h1 {
    color: #d0cccb;
}

#helptext {
    top: 7px;
    position: absolute;
    right: 0;
    color: #4B78AF;
}

td {
    font-size: 11px;
    padding: 3px 5px 3px 5px;
    text-align: left;
}

h4 {
    font-size: 11px;
    font-weight: bold;
    margin: 0;
    margin-bottom: 5px;
    text-align: center;
}

.skin-dark h4 {
    color: #d0cccb;
}

.orders {
    width: 820px;
}

.orders td {
    text-align: right;
}

.skin-dark .orders td {
    color: #d0cccb;
}

.stats td {
    width: 135px;
    text-align: right;
    padding: 3px 10px 3px 5px;
    white-space: nowrap;
    color: #333333;
}

.stats table {
    width: 820px;
}

.vital td {
    font: 12px Tahoma, Arial;
    text-align: right;
    padding: 3px 10px 3px 5px;
    white-space: nowrap;
}

td.keyB {
    width: 125px;
    background-color: #e4e4e4;
    font-weight: bold;
}

td.valB {
    width: 145px;
    background-color: #F3F3F3;
    font-weight: bold;
}

td.key {
    width: 125px;
    background-color: #FFFFFF;
}

td.val {
    width: 145px;
    background-color: #F8F8F8;
    border: 1px solid #e0e2e3;
}

td.keyT {
    background-color: #FFFFFF;
}

td.valT {
    background-color: #F8F8F8;
    border: 1px solid #e0e2e3;
}

.statsBox {
    width: 820px;
    padding: 5px 0 2px 0;
}

.trTrades {
    background-color: #E0E0E0;
    text-align: right;
}

.trTrades td {
    color: #4B78AF !important;
    font-weight: bold;
}

div.cPart {
    display: block;
    clear: both;
    text-align: right;
    position: relative;
    top: -7px;
    margin-right: 7px;
    font-size: 10px;
    font-family: Tahoma, Arial;
}

.skin-dark div.cPart {
    color: #d0cccb;
}

div.cPart a {
    margin: 0 !important;
    color: #d0cccb !important;
}

img {
    border: 1px solid #CCCCCC;
}

table.strategies {
    width: 100%;
}

table.strategies td {
    padding: 5px 3px 5px 0;
    text-align: right;
    white-space: nowrap;
}

.equity-chart-wrapper {
    flex: 1 1 auto;
    overflow: hidden;
}

.backtest-info-line {
    display: block;
    font-size: 13px;
    text-align: left;
    border-bottom: 1px solid #D0D3D4;
    padding-bottom: 10px;
    margin-bottom: 8px;
    font-style: italic;
}

.skin-dark .backtest-info-line {
    color: #d0cccb;
}


/*
        Results Overview layout
*/

.skin-dark td.val,
.skin-dark td.key,
.skin-dark td.valT,
.skin-dark td.keyT {
    background-color: #808080;
}

.skin-dark .plPart .name,
.skin-dark div.sumH2 .name {
    color: #e0e0e0;
}

.skin-dark div.sumH2 .value {
    color: #bdbdbd;
}

.skin-dark h1,
.skin-dark h4 {
    color: #bdbdbd;
    border-color: #696969;
}

.skin-dark div.plPart .plH1,
.skin-dark div.sumH2 .value {
    border-color: #696969;
}

.skin-dark .stats td {
    color: #bdbdbd;
}

.skin-dark td.val,
.skin-dark td.key,
.skin-dark td.valT,
.skin-dark td.keyT {
    background-color: transparent;
    border: 1px solid #696969;
}

.skin-dark .plPart .name,
.skin-dark div.sumH2 .name,
.skin-dark .plPart .name2 {
    color: #bdbdbd;
}

.skin-dark div.plPart .plH1,
.skin-dark .plPart .value2 {
    color: #bdbdbd;
}

.skin-dark .oddrow td {
    background-color: transparent;
    border-color: #696969;
    color: #bdbdbd;
}

.skin-dark .evenrow td {
    background-color: transparent;
    border-color: #696969;
    color: #868686;
}

.hljs {
    background: #ffffff;
}

.aw-link {
    margin: 0;
    font-size: 11px;
    display: inline-block;
    text-decoration: underline;
    color: #3385d2;
}

.skin-dark .aw-link {
    color: #3394df;
}

.aw-link:hover {
    text-decoration: none;
}

.aw-link-wrapper {
    text-align: center;
    font-size: 11px;
    padding-top: 5px;
}

.shared-link-body #btn-clone {
    margin-left: 10px;
    margin-right: 0;
    margin-top: 6px;
    margin-bottom: 6px;
}

.shared-link-body #strategy-name {
    float: none;
    margin-left: 10px;
    margin-top: 6px;
    display: inline-block;
}

.shared-link-body .tabs {
    top: 35px;
    height: auto;
    bottom: 0;
}

.shared-link-body .tabs .tabs-header {
    text-align: left;
    margin-left: 5px;
}

.shared-link-body .aw-link-wrapper {
    display: none;
}

table.problems {
    width: 100%;
}

table.problems th {
    font-size: 13px;
    padding-bottom: 10px;
}

table.problems td {
    font-size: 13px;
    text-align: center;
}