/* Chart Bando Dropdown Buttons */
.chart-bando-dropdown-btn {
    width: 100%;
    height: 100%;
    padding: 6px 8px;
    border-radius: 4px;
    outline: 1px solid #D9D9D9;
    outline-offset: -1px;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    display: inline-flex;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-bando-dropdown-btn:hover {
    outline-color: #B3B3B3;
}

.chart-bando-dropdown-btn:active {
    outline-color: #999999;
}

.chart-bando-dropdown-btn:focus {
    outline: 2px solid #1890FF;
    outline-offset: -2px;
}

.chart-bando-dropdown-btn .dropdown-content-wrapper {
    flex: 1 1 0;
    width: 200px;
    justify-content: flex-start;
    align-items: end;
    gap: 4px;
    display: flex;
}

.chart-bando-dropdown-btn .dropdown-text {
    flex: 1 1 0;
    color: rgba(0, 0, 0, 0.88);
    font-size: 14px;
    font-weight: 400;
    word-wrap: break-word;
}

.chart-bando-dropdown-btn .dropdown-icon {
    width: 20px;
    height: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-bando-dropdown-btn .dropdown-icon img {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.chart-bando-dropdown-btn:hover .dropdown-icon img {
    transform: rotate(180deg);
}

/* Dropdown content styles */
.dropdown .dropdown-content {
    display: none !important;
    position: fixed !important;
    background-color: #f9f9f9;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 99999 !important;
    top: auto !important;
    left: auto !important;
    border-radius: 4px;
    border: 1px solid #D9D9D9;
}

.dropdown .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
}

.dropdown .dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Show dropdown when active */
.dropdown.active .dropdown-content {
    display: block !important;
}

/* Ensure dropdown container has high z-index */
.dropdown {
    position: relative;
    z-index: 10000 !important;
}

/* External dropdown styles */
.external-dropdown a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
}

.external-dropdown a:hover {
    background-color: #f1f1f1;
}

/* Smaller dropdown button variant */
.chart-bando-dropdown-btn.chart-bando-dropdown-btn-sm {
    padding: 6px 8px;
}

.chart-bando-dropdown-btn.chart-bando-dropdown-btn-sm .dropdown-content-wrapper {
    width: auto;
    min-width: 60px;
    gap: 4px;
}

.chart-bando-dropdown-btn.chart-bando-dropdown-btn-sm .dropdown-text {
    font-size: 12px;
    flex: 0 0 auto;
}

.chart-bando-dropdown-btn.chart-bando-dropdown-btn-sm .dropdown-icon {
    width: 14px;
    height: 14px;
}

/* Breadcrumbs styling for chart_BanDo */
#chart_BanDo .highcharts-breadcrumbs-group text {
    font-size: 13px !important;
    font-weight: 500 !important;
    fill: #333 !important;
}

/* Treemap industry header row: mặc định đen, hover xanh.
   Highcharts đặt thẳng className do user cung cấp (không prefix), nên dùng `.bando-treemap-header`. */
#chart_BanDo .bando-treemap-header {
    pointer-events: all;
    cursor: pointer;
}
#chart_BanDo .bando-treemap-header text,
#chart_BanDo .bando-treemap-header tspan {
    transition: fill 0.15s ease;
}
#chart_BanDo .bando-treemap-header:hover text,
#chart_BanDo .bando-treemap-header:hover tspan {
    fill: #2980b9 !important;
}

/* 
#chart_BanDo {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

#chart_BanDo_CoPhieuAnhHuong {
    width: 100%;
}

#tab_bando {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
}

#tab_bando.tab-pane {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
} */