﻿.state-button {
    color: #177dc0;
    border-color: #177dc0;
}
.selected-state {
    background-color: red !important;
    color: white !important;
}

.default-state {
    background-color: #d4edda; /* Bootstrap bg-success-subtle */
    color: black;
}
#map, #mapprod, #mappfi, #mapfund {
    height: 530px;
    width: 50%;
}
#msmap, #prmap, #pfmap, #fumap {
    height: 530px;
    width: 50%;
}

.btn-outline-success {
    margin: 2px;
}
.btn-group .btn {
    flex: 1; /* Make each button take up equal space */
    text-align: center; /* Center text within each button */
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide any overflow text */
    text-overflow: ellipsis; /* Add ellipsis if text overflows */
    font-size:x-small;
    padding:6.8px;
}
.chart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
.chart-container {
    height: 100% !important; /* Adjust this value as needed */
    width: 100%;
    margin: 0 auto;
}
.apexcharts-canvas {
    height: 400px !important; /* Increase the height to 500px */
}

.btn.btn-dbn {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff; /* Assuming you want white text on the buttons */
}

    .btn.btn-dbn:hover,
    .btn.btn-dbn:focus {
        color: var(--contrast-color);
        background: color-mix(in srgb, var(--accent-color), transparent 15%);
    }
.controls {
    text-align: center;
    margin-bottom: 20px;
}
.chart-card{
    min-height: 480px;
}
.sector-list {
    max-height:480px; /* Adjust the height as needed */
    white-space:nowrap;
    overflow-y:auto;
}
.flex-button {
    max-height: 120px; /* Adjust the height as needed */
    overflow-y: auto;
}
.group-button {
    max-height: 530px; /* Adjust the height as needed */
    min-width:  auto;
    overflow-y: auto;
    overflow-x: auto;
}
.nav-pills .nav-link {
    color: var(--accent-color);
    background-color: transparent;
    border: 1px solid var(--accent-color);
}

.nav-pills .nav-link.active {
    color: #fff;
    background-color: var(--accent-color);
}

/* Style for radio buttons */
.form-check-input[type="radio"]:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

    .form-check-input[type="radio"]:checked::before {
        background-color: var(--accent-color);
    }

/* Style for checkboxes */
.form-check-input[type="checkbox"]:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

    .form-check-input[type="checkbox"]:checked::before {
        color: #fff; /* Optional: change check mark color */
    }
body {
    zoom: 67% !important;
}


/* Optional: additional styling */
.form-check-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 1.0em;
    height: 1.0em;
    border: 1px solid #adb5bd;
    border-radius: 0.25em;
    display: inline-block;
    position: relative;
}

    .form-check-input[type="radio"] {
        border-radius: 50%;
    }

    .form-check-input[type="checkbox"]:checked::before {
        content: none; /* Check mark */
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1em;
        color: #fff;
    }

/* Only apply scroll for small screens (less than 768px) */
@media (max-width: 767.98px) {
    .chart-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    }

    .chart-container {
        max-width: 600px; /* Force chart width to allow horizontal scroll *
    }
}

/* From medium screens upward (≥768px), let the chart fit normally */
@media (min-width: 768px) {
    .chart-scroll-wrapper {
        overflow-x: visible;
    }

    .chart-container {
        min-width: auto;
    }
}
@media (max-width: 767.98px) {
    .chart-scroll-wrapper::after {
        content: "← Scroll →";
        display: block;
        text-align: center;
        font-size: 0.8rem;
        color: #888;
        margin-top: 5px;
    }
}
