/* graph section css */
#block-irfrc-page-title {
    display: none;
}

#block-irfrc-content {
    width: 100%;
}

.graphSection .graphArea {
    /* width: 90% !important; */
    width: 80% !important;
    position: relative;
    min-height: 300px;
    /* adjust as needed */
    text-align: center;
    justify-content: center;
    /* horizontal center */
}

/* 🔥 Fullscreen mode */
.graphSection.fullscreen .filterArea {
    display: none;
}

/* Graph takes full width */
.graphSection.fullscreen .graphArea {
    width: 100%;
    flex: 1;
}

.graphArea .toggle-btn {
    all: unset;
    position: absolute;
    top: 50%;
    left: -14px;
    transform: translateY(-50%);
    font-size: 24px;
    /* ✅ increase arrow size */
    line-height: 1;
    padding: 6px 8px;
    /* ✅ clickable area */
    cursor: pointer;
    border-radius: 4px;
    z-index: 1;
}

.chart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1000;
}

.chart-overlay img {
    width: 50px;
}

#ciChart {
    /* width: 1100px; */
    /*width:calc(100vw - 344px);*/
    width: 100%;
}

.ciChart {
    /* width: 1100px; */
    width: calc(100vw - 620px);
    max-height: 500px;
    overflow: auto !important;
}

span.highcharts-title {
    width: 100%;
    display: inline-block;
    padding-bottom: 6px;
    border-bottom: 1px solid #d1d1d1;
    font-weight: 600;
}

.loader {
    font-size: 14px;
    color: #555;
}

.graphSection {
    display: flex;
}

.filter-options {
    display: inline-grid;
    line-height: 33px;
}

.filter-header {
    font-size: 18px;
}

.line-separator {
    border-top: 1px solid #DDD;
    padding: 10px 0;
}

.search-box {
    padding: 5px 0;
}

/* Start - This map graph top section */
.map-controls-wrapper {
    display: flex;
    justify-content: space-between;
    /* Pushes left and right content apart */
    align-items: center;
    gap: 20px;
    padding-bottom: 15px;
}

/* This targets the three immediate div children */
.map-controls-wrapper>div {
    flex: 1;
    /* Forces all three divs to take up exactly 33.33% width */
}

/* Optional: Align the content inside each equal-sized box */
.map-controls-wrapper>div:nth-child(1) {
    text-align: left;
}

.map-controls-wrapper>div:nth-child(2) {
    text-align: center;
}

.map-controls-wrapper>div:nth-child(3) {
    text-align: right;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.zone-title {
    font-size: 16px;
}

.playback-cluster {
    display: flex;
    gap: 5px;
}

/* Refined Button Styles */
.playbtn {
    padding: 4px 10px !important;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.playbtn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.playbtn-primary {
    background: #0069E1;
    color: white;
    border-color: #007bff;
    font-weight: 600;
    min-width: 80px;
    justify-content: center;
}

.playbtn-primary:hover {
    background: #0069d9;
}

.playbtn-icon {
    padding: 8px 12px;
}

/* Start - This map graph top section */

/* Range Slider Refinement */
#current_index {
    width: 150px;
    cursor: pointer;
    accent-color: #007bff;
    /* Colors the slider handle */
    vertical-align: middle;
}

/* Custom chart scrollbar (local DOM-based) */
.ci-chart-scrollbar {
    padding: 4px 0;
    width: 83%;
    float: right;
}

.ci-chart-scrollbar input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #e6e6e6;
    border-radius: 4px;
    outline: none;
    margin: 0;
}

.ci-chart-scrollbar input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.ci-chart-scrollbar input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

.ci-chart-scrollbar input[type="range"]:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}

.seleted-options {
    font-size: 16px;
    font-weight: bold;
}

.seleted-options span {
    font-weight: normal;
}

.slider-container {
    display: flex;
    align-items: center;
    padding-left: 10px;
    border-left: 1px solid #dee2e6;
}

.zoom-controls {
    text-align: right;
}

.zoom-btn {
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 0px 10px 4px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 5px;
    font-size: 24px;
}

.zoom-btn:hover {
    background: #f0f0f0;
}

@media (max-width:1280px) {
    #ciChart {
        width: calc(100vw - 280px);
    }
}

@media(max-width:576px) {

    #ciChart {
        width: calc(100vw - 24px);
    }
}