﻿* {
    scrollbar-width: thin;
    scrollbar-color: #aaa transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.page-portlet-fullscreen>.navbar-fixed-top {
    z-index: 0 !important;
}

.splitter {
    width: 100%;
    height: calc(100% - 50px);
    position: fixed;
    display: flex;
    background-color: #d9d9d9;
    z-index: 99;
    padding-top: 4px;
    /* padding-bottom: 7px; */
}

#separator,
#separator2 {
    cursor: col-resize;
    background-color: #fff !important;
    background: url(../../assets/global/img/vsizegrip.png) center center no-repeat #aaa;
    width: 2px;
    height: 100%;
    /* Prevent the browser's built-in drag from interfering */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#first {
    width: 22%;
    height: 100%;
    min-width: 10px;
    margin: 0px;
}

#second {
    width: 59%;
    height: 100%;
    min-width: 10px;
    margin: 0px;
}

#third {
    width: 19%;
    height: 100%;
    min-width: 10px;
    margin: 0px;
}

/* Style the tab */
.tab {
    float: right;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    height: 100%;
}

/* Style the buttons inside the tab */
.tab button {
    display: block;
    background-color: inherit;
    color: black;
    margin: 45px -43px 70px -44px;
    width: 120px;
    border: none;
    outline: none;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 17px;
    transform: rotate(90deg);
    padding: 2px 10px 5px 0px;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: #ddd;
}

/* Create an active/current "tab button" class */
.tab button.active {
    background-color: #CAE0EE;
}

.tab button.active {
    color: #2980B9;
    /* chữ xanh khi active */
}

/* Style the tab content */
.tabcontent,
.tabcontent-left,
.tabcontent-right {
    float: left;
    /*  padding: 5px 5px; */
    width: 100%;
    border-left: none;
    height: 100%;
}

/* Hide tab content by default */
.tabcontent-left,
.tabcontent-right {
    display: none;
}

.portlet.box>.portlet-body {
    height: calc(100% - 35px) !important;
}

.portlet-fullscreen>.portlet-body>.slimScrollDiv {
    height: 100% !important;
}

.portlet-fullscreen>.portlet-body>.slimScrollDiv>.scroller {
    height: 100% !important;
}

.bg-inverse>.portlet-body>.slimScrollDiv {
    height: 200px;
}

.bg-inverse>.portlet-body>.slimScrollDiv>.scroller {
    height: 200px;
}

.modal .modal-dialog {
    z-index: 10071 !important;
}

.portlet.box>.portlet-title>.caption {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: calc(100% - 20px);
}

.index-increase {
    color: #1AA67C;
}

.index-decrease {
    color: #F5222D;
}

.index-sideways {
    color: #E78B03;
}

.highcharts-figure,
.highcharts-data-table table {
    min-width: 320px;
    max-width: 660px;
    margin: 0em auto;
}

.highcharts-data-table table {
    font-family: Verdana, sans-serif;
    border-collapse: collapse;
    border: 1px solid #ebebeb;
    margin: 0px auto;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.highcharts-data-table caption {
    padding: 1em 0;
    font-size: 2.2em;
    color: #555;
}

.highcharts-data-table th {
    font-weight: 600;
    /* padding: 0.5em; */
}

.highcharts-data-table td,
.highcharts-data-table th,
.highcharts-data-table caption {
    /* padding: 0.5em; */
}

.highcharts-data-table thead tr,
.highcharts-data-table tr:nth-child(even) {
    background: #f8f8f8;
}

.highcharts-data-table tr:hover {
    background: #f1f7ff;
}

.highcharts-description {
    /* margin: 0.3rem 10px; */
}

.dropdown>.dropdown-menu.pull-left::before,
.dropdown-toggle>.dropdown-menu.pull-left::before,
.btn-group>.dropdown-menu.pull-left::before {
    left: 9px !important;
    right: unset !important;
}

.dropdown>.dropdown-menu.pull-left::after,
.dropdown-toggle>.dropdown-menu.pull-left::after,
.btn-group>.dropdown-menu.pull-left::after {
    left: 10px !important;
    right: unset !important;
}

.portlet.box.blue>.portlet-title>.actions .btn-default {
    border: 0px solid #95c9ed !important;
}

.portlet.box.blue>.portlet-title>.actions .btn-default:hover {
    border: 0px solid #95c9ed !important;
}

.requiresjcrop>.btn {
    padding: 3px 5px;
}

.btn+.btn {
    margin-left: 2px !important;
}

.ui-slider-horizontal {
    height: 0.3em !important;
}

.ui-widget-header {
    background: no-repeat !important;
}

.ui-slider .ui-slider-handle {
    width: 0.4em;
    height: 0.8em;
}

.ui-slider-horizontal .ui-slider-handle {
    top: -4px !important;
    margin-left: 0em !important;
}

.ui-slider .ui-slider-range {
    background-color: #bbb !important;
}

.bg-purple {
    border-color: #999 !important;
}

.btn.default {
    background-color: transparent !important;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

a.active {
    font-weight: 700;
}

.irs-line,
.irs-diapason {
    height: 6px !important;
}

.irs-slider {
    width: 7px !important;
    height: 20px !important;
    top: 19px !important;
}

.highcharts-point-down {
    fill: #ff4242;
    stroke: #ff4242;
}

.highcharts-candlestick-series .highcharts-point-down {
    fill: #ff4242;
    stroke: #ff4242;
}

.highcharts-candlestick-series .highcharts-point-up {
    fill: #51af7b;
    stroke: #51af7b;
}

.highcharts-point-up {
    fill: #51af7b;
    stroke: #51af7b;
}

.hc-cat-title {
    font-size: 12px;
    font-weight: bold;
}

#PieChart_Stocks .highcharts-label>text {
    font-size: 1.1em !important;
    font-weight: normal !important;
}

#tv_chart_index .highcharts-axis-resizer {
    stroke-width: 1px !important;
}

/* Chart container styling for full height */
#tv_chart_index {
    height: 100% !important;
    min-height: 200px !important;
    width: 100% !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Responsive height for mobile and tablet */
@media (max-width: 996px) {
    #tv_chart_index {
        min-height: 400px !important;
        height: auto !important;
    }

    #tv_chart_index iframe,
    #tv_chart_index>div {
        height: auto !important;
        min-height: 400px !important;
    }
}

/* Ensure chart iframe/content fills the container */
#tv_chart_index iframe,
#tv_chart_index>div {
    height: 100% !important;
    width: 100% !important;
}

/* Hide TradingView legend collapse/expand arrows */
#tv_chart_index .group-wWM3zP_M- .button-merBkM5y- {
    display: none !important;
}

#tv_chart_index [class*="expandBtn"],
#tv_chart_index [class*="collapseBtn"],
#tv_chart_index [class*="arrow-"] {
    display: none !important;
}

/* Chart container parent styling */
.portlet-body {
    display: flex !important;
    flex-direction: column !important;
}

/* Chart wrapper div styling */
.chart-container {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/*-------- start slider ---------*/

.bars-container {
    display: flex;
    gap: 5px;
    width: 100%;
    max-width: 800px;
}

.loading-bar {
    --bar-height: 20px;
    position: relative;
    width: 20%;
    height: 5px;
    border-radius: 0;
    overflow: hidden;
}

.loading-bar::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    --background: red;
}

.multistepSlider>.bars-container>.loading-bar:nth-child(1) {
    background-color: #df1801;
}

.multistepSlider>.bars-container>.loading-bar:nth-child(2) {
    background-color: #d98407;
}

.multistepSlider>.bars-container>.loading-bar:nth-child(3) {
    background-color: #aaa235;
}

.multistepSlider>.bars-container>.loading-bar:nth-child(4) {
    background-color: #1ba802;
}

.multistepSlider>.bars-container>.loading-bar:nth-child(5) {
    background-color: #007e3e;
}

.slidecontainer {
    width: 100%;
    position: relative;
}

.slider-stock {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: transparent;
    outline: none;
    opacity: 1;
    -webkit-transition: 0.2s;
    transition: opacity 0.2s;
    position: absolute;
    margin-top: -5px;
    margin-left: 0px;
}

.slider-stock:hover {
    opacity: 1;
}

.slider-stock::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0px;
    height: 0px;
    background: transparent;
    cursor: pointer;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #555;
    border-bottom: 0px solid transparent;
}

.slider-stock::-moz-range-thumb {
    width: 0px;
    height: 0px;
    background: transparent;
    cursor: pointer;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #555;
    border-bottom: 0px solid transparent;
}

.slider-stock-2 {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: 0.2s;
    transition: opacity 0.2s;
    margin-left: 0px;
}

.slider-stock-2:hover {
    opacity: 1;
}

.slider-stock-2::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0px;
    height: 0px;
    background: #d3d3d3;
    cursor: pointer;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #555;
    border-bottom: 0px solid transparent;
}

.slider-stock-2::-moz-range-thumb {
    width: 0px;
    height: 0px;
    background: #d3d3d3;
    cursor: pointer;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #555;
    border-bottom: 0px solid transparent;
}

/*-------- end slider ---------*/

.table>tbody>tr>td,
.table>tbody>tr>th,
.table>tfoot>tr>td,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>thead>tr>th {
    padding: 4px 8px 4px 8px !important;
}

#second .portlet-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
}

#second-btn-radio .active {
    background: #3598dc;
    color: white;
}

#second-btn-radio .active:hover {
    background: #217ebd;
}

#xh-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* gap: 10px; */
    margin-bottom: -10px;
    padding: 10px 0;
}

#myRange {
    width: 100%;
}

#ticks .active {
    color: #3598dc;
    /* color: white; */
}

.sticky-col {
    position: sticky;
    background-color: white;
    left: 0;
}

.vertical-center {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

#portlet_tab_cophieu table tr td {
    white-space: nowrap;
}

.fixed-header thead tr th {
    position: sticky;
    top: 0;
    z-index: 10 !important;
}

.select2-container {
    width: 100% !important;
    flex: 1;
}

.chosen-choices {
    border-radius: 8px !important;
}

#portlet_tab_cophieu table tr th:first-child {
    left: 0;
    z-index: 20 !important;
}

#portlet_tab_cophieu table tr th:nth-child(2) {
    left: 30px;
    z-index: 20 !important;
}

#portlet_tab_cophieu table tr th:nth-child(3) {
    left: 100px;
    z-index: 20 !important;
}

#portlet_tab_cophieu table tr td:first-child {
    left: 0;
    z-index: 2;
}

#portlet_tab_cophieu table tr td:nth-child(2) {
    left: 30px;
    z-index: 2;
}

#portlet_tab_cophieu table tr td:nth-child(3) {
    left: 100px;
    z-index: 2;
}

.page-header.navbar .search-form .input-group .input-group-btn .btn.search {
    margin-left: -24px;
    padding: 0;
    width: 46px;
    background: none;
    background-image: none;
    margin-top: 4px;
    display: block;
}

.page-header.navbar .search-form .input-group .input-group-btn .btn.search>i {
    color: #959fad;
}

.nav.navbar-nav .classic-menu-dropdown:hover .dropdown-menu {
    display: block;
}

.select2-container--default .select2-selection--multiple {
    border: 0 !important;
    border-bottom: 1px solid #aaa !important;
}

ul.pagination {
    justify-content: flex-end;
}

/* 
.page-header {
  position: static !important;
  top: 0 !important;
} */

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /*grid-template-rows: repeat(3, 1fr);*/
    grid-template-rows: 75% 25%;
    height: calc(100vh - 165px);
    /* width: 100vw; */
    row-gap: 10px;
}

.grid-container2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(2, 1fr);
    height: calc(100vh - 165px);
    /* width: 100vw; */
    row-gap: 10px;
}

.grid-container3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    height: calc(100vh - 165px);
    /* width: 100vw; */
    row-gap: 10px;
}

.grid-container img,
.grid-container2 img,
.grid-container3 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.grid-container div,
.grid-container2 div,
.grid-container3 div {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-container .dropdown-btn {
    padding: 7px 12px;
    /* background-color: #007bff; */
    /* color: white; */
    border: none;
    cursor: pointer;
}

.dropdown-container .dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
    padding: 10px;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-container .dropdown-container:hover .dropdown-content {
    display: block;
}

.dropdown-container .search-input {
    width: 100%;
    padding: 6px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

.dropdown-container .checkbox-item {
    display: block;
    margin-bottom: 5px;
}

.dropdown-container:hover .dropdown-content {
    display: block;
}

#second-btn-radio .btn {
    padding: 0 5px !important;
}

@media (max-width: 996px) {
    .page-sidebar-wrapper {
        position: sticky;
        top: 92px;
        z-index: 99999;
    }

    .page-sidebar-wrapper .page-sidebar {
        width: 100% !important;
        margin: 0 !important;
    }

    .dropdown-container .dropdown-btn {
        padding: 5px 5px !important;
    }

    #ticks {
        display: flex;
        justify-content: space-between;
    }

    #ticks .tick:nth-child(even) {
        display: none;
    }

    .splitter {
        flex-wrap: wrap;
        position: relative;
        overflow-y: scroll;
        height: 100%;
    }

    .grid-container {
        display: block !important;
    }

    .grid-container div {
        height: auto !important;
    }

    .page-header.navbar .top-menu {
        background-color: #364150;
        width: 100%;
        /* position: static;
    top: 50px; */
    }

    .page-header.navbar.navbar-fixed-top {
        position: sticky !important;
        top: 0 !important;
        padding: 0 !important;
    }

    .page-header.navbar.navbar-fixed-top .page-logo {
        padding-left: 10px !important;
    }

    #separator,
    #separator2 {
        display: none;
    }

    #first {
        width: 100%;
    }

    #second {
        width: 100%;
        height: fit-content !important;
    }

    #second .portlet-title {
        display: block;
    }

    ul.pagination {
        justify-content: center;
    }

    #pagination_des {
        width: 100%;
        text-align: center;
    }

    #third {
        width: 100%;
    }

    #header-tabs {
        float: none !important;
        display: flex;
        flex-wrap: wrap;
    }

    #sub-tabs {
        float: none !important;
        display: flex;
        flex-wrap: wrap;
    }

    #third {
        flex: 1;
        height: fit-content;
    }

    #third .portlet.box.blue>.portlet-title>.caption {
        width: calc(100% - 200px) !important;
    }

    #third .portlet.box.blue>.portlet-title>.tools {
        display: flex;
        column-gap: 10px;
    }

    #tabRight {
        width: 100%;
        display: flex;
    }

    .tab button {
        transform: rotate(0);
        margin: 0;
    }
}