.js-plotly-plot .plotly .modebar.vertical {
    top: 60px;
}

/*Data explorer*/
.de_lastnobs input {
    margin-bottom: 0;
}

.div_de_filter {
    max-height: 250px;
    overflow-y: auto;
}

.div_de_filter ul {
    margin: 0;
}

.div_de_filter li {
    margin-bottom: 1px;
    margin-top: 1px;
    padding-top: 1px;
    padding-bottom: 1px;
}

/* Base style for inline controls */
.force-inline-control {
    display: flex;
    /* Use flex instead of inline-flex for wrapping */
    flex-wrap: wrap;
    /* Allow items to wrap to the next line */
    align-items: center;
    /* Keep items aligned */
}

.force-inline-control .form-check {
    margin-right: 10px;
    /* Adjust spacing between radio items */
    margin-bottom: 5px;
    /* Space between rows when wrapped */
}

.no-inline-control .form-check {
    margin-right: 10px;
    /* Adjust spacing between radio items */
    margin-bottom: 5px;
    /* Space between rows when wrapped */
}

/* Smaller screens */
@media screen and (max-width: 768px) {
    .force-inline-control {
        flex-direction: row;
        /* Keep items in a row but allow wrapping */
    }
}

/* Adjust label alignment if necessary */
.force-inline-control label {
    align-items: center;
    /* Adjust if you want to change the alignment */
    margin-bottom: 0;
    /* Keep labels close to their inputs */
}

/*To force inline controls END*/

/*Fix switches*/
.form-switch .form-check-input {
    /*background-color: #fff;*/
    background-repeat: no-repeat;
}

.has-bootstrap [type=checkbox]:checked:after {
    background-color: unset;
}

/*Fix switches END*/

.indic_prof_link:hover {
    color: #007bff !important;
}

.accordion-no-padding .accordion-body {
    padding: 0;
}

/*Data explorer Data table*/

/*makes the height of the DashTable 225 pix less then the 100% screen */
.dash-spreadsheet.dash-freeze-top,
.dash-spreadsheet.dash-virtualized {
    max-height: inherit !important;
}

.dash-table-container {
    height: calc(100vh - 450px)
}

div.dt-table-container__row.dt-table-container__row-1 {
    height: calc(100vh - 450px)
}

/*Allows the pivot table to span the whole column size*/
.dash-spreadsheet.dash-freeze-left {
    max-width: none !important;
}

/*The filters tree (dash-treeview-antd)*/
.ant-tree li {
    padding: 0;
    margin-bottom: 0;

}

.has-bootstrap ul li {
    padding: 0;
    margin-bottom: 0;
}

/*Start drupal fixes*/
.has-bootstrap .dropdown {
    max-width: 300px;
}

.has-bootstrap .card {
    max-width: unset;
    min-height: unset;
}

.has-bootstrap .crc_card.card {
    min-height: 400px;
}

.has-bootstrap .col-3 {
    max-width: unset;
    grid-template-columns: unset;
    grid-gap: unset;
}

.fade {
    transition: opacity .15s linear
}

@media (prefers-reduced-motion:reduce) {
    .fade {
        transition: none
    }
}

.fade:not(.show) {
    opacity: 0
}

.country-data-btn {
    border: none;
    background-color: white;
    padding-right: 15px !important;
    margin-top: 15px !important;
    width: 100%;
    border-radius: 5px !important;
}

.download_btn {
    padding: 15px;
    border: none;
    background-color: white;
    border-radius: 5px !important;
    width: 100%;
    margin-top: 15px !important;
}

.dropdown-subtitle {
    font-family: sans-serif;
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.2;
}

.m-2.dropdown {
    margin: 0 !important;
}

.tab-content {
    padding: 20px 50px 50px 50px !important;
}

/* Define a new CSS class for the flexbox container */
.flex-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.crm_dropdown .Select-control {
    background-color: white;
    color: black;
}

.crm_dropdown .Select-value-label {
    color: black !important;
}

.crm_dropdown.domain_dropdown {
    width: 500px;
}

.crm_dropdown.domain_dropdown .Select-control,
.crm_dropdown.domain_dropdown .Select-control {
    font-size: 18px;
}

.def-btn {
    color: grey !important;
    background-color: white !important;
    border-color: white !important;
    width: 95%
}

.sdg-toggle {
    margin-top: 3em;
}

.sdg-toggle [type=checkbox] {
    margin-right: 10px;
}

.sdg-toggle label {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
}


.boolean-switch button {
    border-radius: 50%;
}

.boolean-switch div.daq-booleanswitch--light__background {
    width: 50px !important;
}

.boolean-switch .gJuplL {
    background-color: #00acef;
}

.boolean-switch .chqyiX {
    display: flex;
    justify-content: flex-end;
}

.boolean-switch .igrnnx {
    min-width: 0px;
}

.boolean-switch .dlqMgb {
    min-width: 0px;
}


/* Flex container style */
.responsive-container {
    display: flex;
    flex-wrap: wrap;
    /* Allows items to wrap to the next line on smaller screens */
    align-items: center;
    justify-content: flex-start;
    /* Align items to the left */
}

/* Style for each child inside the flex container */
.responsive-container>* {
    margin: 5px;
    /* Adjust margins as needed */
    flex: 0 1 auto;
    /* Adjust this to prevent growing and only allow shrinking */
}

.area-types {
    display: inline-flex;
}

.area-types .form-check {
    display: block
}

.area-types .form-check label {
    margin-top: 2px;
}

.area-types .form-check .form-check-input {
    margin-left: 0px;
}

.field.paragraph.field_component_text_content.odd-t.text_long p {
    font-size: 18px;
    font-family: "Roboto", sans-serif;
}

@media screen and (min-width: 992px) {
    .field.paragraph.field_component_text_content.odd-t.text_long p {
        font-size: 19px;
    }
}

/* Media query for smaller screens (e.g., mobile devices) */
@media screen and (max-width: 768px) {
    .responsive-container {
        flex-direction: column;
        /* Stack elements vertically on small screens */
    }

    .responsive-container>* {
        width: 100%;
        /* Full width for children on small screens */
        margin: 5px 0;
        /* Adjust margins for vertical layout */
    }
}

.xaxis-option {
    display: inline-flex;
    align-items: center;
}

.xaxis-dropdown {
    min-width: 700px;
}


/* Custom style for Popover Header */
.custom-popover-header {
    background-color: transparent !important;
    /* Remove grey background */
    color: #00acef;
    /* UNICEF blue */
    font-size: 16px;
    /* Adjust font size */
    font-weight: bold;
    /* Optional: Make text bold */
    padding: 10px;
    /* Adjust padding for better alignment */
    border-bottom: none !important;
    /* Remove the separator line */
}

/* Optional: Adjust the body padding to align nicely */
.custom-popover-body {
    padding-top: 0px;
    /* Reduce padding at the top if needed */
    height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.custom-popover {
    background-color: white !important;
    color: black !important;
    border: 1px solid #ddd;
    /* Optional: Add a border */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    /* Optional: Add a shadow */
    padding: 5%px;
}


/* Responsive styles for smaller screens */
@media screen and (max-width: 768px) {
    .crm_dropdown.domain_dropdown {
        width: 350px;
        /* Reduced width on small screens */
    }

    .crm_dropdown.domain_dropdown .Select-control,
    .crm_dropdown.domain_dropdown .Select-control {
        font-size: 14px;
        /* Reduced font size on small screens */
    }

    .domain-dropdown-container {
        flex-direction: column;
        /* Stack elements vertically */
        margin-bottom: 10px;
        /* Add space between the dropdown and the link */
    }

    .learn-more-container {
        justify-content: center;
        /* Center the link */
    }

    .responsive-row .col {
        width: 100%;
        /* Full width columns */
    }

    .indic_btn_col {
        /* Adjust the styling for the first column on smaller screens */
        margin-bottom: 20px;
        /* Add some space before the next column */
    }

    .theme_buttons button {
        /* Optionally, adjust button styles for smaller screens */
        font-size: 14px;
        /* Smaller font size */
        padding: 10px;
        /* Adjust padding */
    }

    .graph-scroll {
        overflow-x: scroll;
        /* Ensures horizontal scrolling */
    }

    .xaxis-dropdown {
        min-width: auto;
        margin-bottom: 10px;
    }

    .xaxis-option {
        display: block;
    }
}

.has-bootstrap .tm-link {
    font-size: 14px;
    font-weight: bold;
}

.has-bootstrap .crc-link {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.has-bootstrap .indicator-link {
    font-size: 14px;
    font-weight: bold;
}

.has-bootstrap .indic_btn_col {
    display: block;
}