.quant-tabs .tabs-header {
    text-align: left;
    display: flex;
    flex-wrap: wrap-reverse;
    padding-left: 3px;
}

.quant-tabs .tabs-header>div {
    display: inline-block;
    cursor: pointer;
    padding: 0 11px;
    height: 27px;
    line-height: 27px;
    text-align: center;
    border: 1px solid #bddefb;
    background: #ffffff;
    margin-right: -1px;
    color: #555555;
    border-bottom: 0;
    vertical-align: bottom;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-size: 12px;
    font-weight: 500;
}

.quant-tabs .tabs-header>div:hover {
    border-color: #76ace0;
    color: #555555;
    z-index: 10;
}

.quant-tabs .tabs-header>div:first-child {
    /* margin-left: 3px; */
    border-top-left-radius: 3px;
}

.quant-tabs .tabs-header>div:last-child {
    border-top-right-radius: 3px;
    border-right-width: 1px;
}

.quant-tabs .tabs-header>div.active {
    background: #ffffff;
    filter: none;
    border-color: #bddefb;
    border-top: 3px solid #5897d4;
    color: #333333;
    font-weight: 700;
    line-height: 22px;
}

.quant-tabs .tabs-header>div.tabs-btn-add {
    color: #3d7ebb;
    border: 0;
    background-color: transparent;
    margin-left: 0;
    box-shadow: none;
}

.quant-tabs .tabs-header .tabs-btn-add {
    color: #3d7ebb;
}

.quant-tabs .tabs-header>div.tabs-btn-add:before {
    display: none;
}

.quant-tabs .tabs-header .tabs-btn-add i {
    margin-right: 7px;
    vertical-align: -3px;
    font-size: 15px;
}

.quant-tabs .tabs-header .ico-tab-delete {
    position: relative;
    margin-left: 5px;
    margin-right: 0;
    left: 6px;
    vertical-align: -2px;
    background: url(../../../img/tab-ico-delete.png);
    width: 12px;
    height: 12px;
    cursor: pointer;
    display: inline-block;
}

.quant-tabs .tabs-header .ico-tab-delete:hover {
    background: url(../../../img/tab-ico-delete-h.png);
}

.quant-tabs .tabs-header>div.tabs-menu {
    position: absolute;
    right: 0;
    top: 0;
    right: 5px;
    top: 2px;
    padding: 0;
    width: 32px;
    text-align: center;
    z-index: 10;
}

.quant-tabs .tabs-header>div.tabs-menu:hover {
    background-color: #ffffff;
}

.quant-tabs .tabs-header>div.tabs-menu .tabs-submenu {
    position: absolute;
    right: -1px;
    left: auto;
    display: none;
    height: auto;
    background-color: silver;
    padding: 10px;
    top: 22px;
    z-index: 10;
    text-align: left;
    background-color: #ffffff;
    border: 1px solid #d2d2d2;
}

.quant-tabs .tabs-header>div.tabs-menu:hover .tabs-submenu {
    display: block;
}

.quant-tabs .tabs-header>div.tabs-menu .tabs-submenu:before {
    content: '';
    display: block;
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: 0;
    border: 2px solid rgba(0, 0, 0, 0.02);
    border-radius: 2px;
}

.quant-tabs .tabs-header>div.tabs-menu .tabs-submenu:after {
    content: '';
    display: block;
    position: absolute;
    top: -3px;
    width: 30px;
    right: 0px;
    height: 5px;
    background-color: #ffffff;
}

.quant-tabs .tabs-header>div.tabs-menu .tabs-submenu>div {
    white-space: nowrap;
    position: relative;
}

.quant-tabs .tabs-header>div.tabs-menu .tabs-submenu>div.active {
    text-decoration: underline;
}

.quant-tabs .tabs-header>div.active:after, .quant-tabs .tabs-header>div.pseudo-active:after {
    content: '';
    display: block;
    position: absolute;
    bottom: -1px;
    left: 0px;
    right: 0px;
    height: 1px;
    background-color: #ffffff;
    z-index: 10;
}

.quant-tabs .tabs-body {
    background-color: #ffffff;
    border: 1px solid #bddefb !important;
    border-radius: 3px;
}

.quant-tabs .tabs-body>div {
    width: 100%;
    display: none;
}

.quant-tabs .tabs-body>div.active {
    display: block;
    position: static;
}

.quant-tabs .tabs-body>div .col-sm-12 {
    position: relative;
    height: 100%;
}

.quant-tabs div.tab-menu.dropdown-toggle {
    width: 10px;
    height: 10px;
    margin-left: 2px;
    cursor: pointer;
    display: inline-block;
    background-image: url(../../img/tabs-tab-menu.png);
}

/*
.quant-tabs .tabs-body > div .gridbox {
	position: absolute;
	top: 34px;
	bottom: 5px;
	left: 7px;
	right: 7px;
	height: auto!important;
	width: auto!important;
}
*/

.page-results #top-component .quant-tabs {
    position: absolute;
    top: 30px;
    bottom: 0;
    left: 0;
    right: 0;
}

.page-results #top-component .quant-tabs>.tabs-body {
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.page-results #bottom-component .quant-tabs {
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    bottom: 0;
}

.page-results #bottom-component .quant-tabs>.tabs-body {
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    bottom: 0;
    border-bottom: 0;
}

.quant-tabs .tabs-body>div .gridbox table {
    margin-right: auto !important;
}

#bottom-component .quant-tabs .tabs-body>div.active {
    position: relative;
    height: 100%;
}

#bottom-component .quant-tabs .tabs-body>div .col-sm-12 {
    position: absolute;
    top: 39px;
    left: 7px;
    right: 7px;
    bottom: 7px;
    height: auto;
    width: auto;
}

#top-component .quant-tabs .tabs-body>div .col-sm-12 {
    position: absolute;
    top: 39px;
    left: 7px;
    right: 7px;
    bottom: 7px;
    height: auto;
    width: auto;
}

#top-component .quant-tabs .tabs-body>div .col-sm-12 #tradesGrid {
    position: absolute !important;
    height: auto !important;
    width: auto !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.sq-flex>div>.quant-tabs {
    height: 100%;
    width: 100%;
    position: absolute;
}

.sq-flex>div>.quant-tabs>.tabs-header {
    height: 25px;
    top: 0;
    right: 0;
    left: 0;
    position: absolute;
}

.sq-flex>div>.quant-tabs>.tabs-body {
    top: 25px;
    right: 0;
    left: 0;
    bottom: 0;
    height: auto !important;
    position: absolute;
}

.sq-flex>div>.quant-tabs .tabs-body>div.active {
    position: absolute;
    height: 100%;
    width: 100%;
}

.tabs-notes.quant-tabs .tabs-header>div, .tabs-notes.quant-tabs .tabs-body, .tabs-notes.quant-tabs .tabs-header>div.active:after {
    background-color: #f4fcff;
}