div#ifla-map,
div#ifla-country-map {
    background-color: #FFF;
    border-radius: 16px;
    aspect-ratio: 1 / 0.53;
    border: 1px solid #E1EBE7;
}

.leaflet-control-container>div .leaflet-control-zoom {
    margin: 0;
    border: none;
    display: flex;
    gap: 8px;
}

.filter-badges-box .metric-icon {
    width: 50px;
    height: 50px;
}

.library-chart-wrapper .library-chart-filter-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    text-align: left;
    justify-content: space-between;
}

.country-info-badge-box .custom-tooltip-box p {
    font-size: 10px;
    line-height: normal;
    color: #fff;
    word-wrap: break-word;
}

.country-info-badge-box .metric-icon svg {
    width: 40px;
    height: 40px;
}

.country-info-badge-box .custom-tooltip-box {
    min-width: 300px;
    z-index: 1;
}

.library-chart-wrapper .library-chart-filter-wrapper>label {
    margin: 0;
}

.country-info-badge-row .text-has-tooltip .data-with-tooltip {
    top: 0;
}

.country-info-badge-row .text-has-tooltip {
    align-items: center;
    gap: 4px;
}

.chart-wrapper {
    /* background: #EBFAF3; */
    padding: 20px;
    border-radius: 16px;
    margin: 0 auto;
    text-align: center;
}

.chart-wrapper.donut-chart-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
}

.filter-badges-box.filter-badges-box-active {
    color: #FFF;
}

.chart-wrapper.library-chart-wrapper {
    background-color: transparent;
    padding: 0;
}

#libraryDonutChart {
    margin: 0 auto;
}

span.assumption-text {
    margin-top: 20px !important;
}

.chart-assumption-legend {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
}

.filter-badges-box:hover svg,
.filter-badges-box.filter-badges-box-active svg {
    fill: #FFF;
}

.library-type-table-note {
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 0;
    margin-left: 15px;
}

.leaflet-control-container>div {
    top: 10px;
    right: 10px;
    left: auto;
    bottom: auto;
}

.leaflet-control-container>div .leaflet-control-zoom a {
    border: 1px solid #E1EBE7;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    color: #005836;
    line-height: 35px;
    background: #fff;
}

.ifla-map-list-detail {
    margin-top: 15px;
    background: #EBFAF3;
    border-radius: 8px;
    padding: 10px 12px;
}

.ifla-map-list-detail .country-library-type {
    font-size: 12px;
    line-height: 17px;
    font-weight: 400;
}

.ifla-map-list-detail ul {
    display: flex;
    justify-content: space-between;
}

.reset-map,
.download-chart-btn {
    border: 1px solid #E1EBE7 !important;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    color: #005836;
    line-height: 35px;
    background: #fff;
    padding: 0;
    min-width: 40px;
}

.ifla-map-indicators {
    display: flex;
    gap: 10px;
}

.download-chart-btn {
    width: initial;
    padding-left: 20px;
    padding-right: 20px;
}

.reset-map:hover,
.download-chart-btn:hover {
    background: #005836;
    border-color: #005836;
    color: #fff;
}

.ifla-country-label.leaflet-tooltip-top:before,
.ifla-country-label.leaflet-tooltip-bottom:before,
.ifla-country-label.leaflet-tooltip-left:before,
.ifla-country-label.leaflet-tooltip-right:before {
    border: none;
}

.country-info-badge-box {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.country-info-badge-box .cib-icon.metric-cib-icon {
    background-color: transparent;
}

.country-info-badge-box .cib-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4BAF84;
    min-width: 40px;
    border-radius: 4px;
    font-size: 26px;
    color: #fff;
    border: 1px solid #4BAF84;
}

.country-info-badge-box .metric-icon svg {
    fill: var(--metric-color);
}

.checkbox-label.text-has-tooltip {
    gap: 4px;
    align-items: center;
}

.checkbox-label.text-has-tooltip .data-with-tooltip .custom-tooltip-box {
    z-index: 3;
}

.country-info-badge-box .cib-text span {
    font-size: 12px;
    line-height: 17px;
    font-weight: 400;
}

.country-info-badge-box .cib-text .country-title i.ph {
    display: none;
}

.country-info-badge-box .cib-text .country-title.published-page i.ph {
    display: block;
}

.country-info-badge-box .cib-text .country-title.published-page {
    display: flex;
    align-items: center;
    gap: 4px;
}

.country-info-badge-box .cib-text .country-title.published-page span {
    font-weight: 700;
}

.country-info-badge-box .cib-text .country-title span {
    font-size: 14px;
    color: #000;
}

.country-info-badge-box .cib-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-wrap: wrap;
}

.country-info-badge-box .cib-text .data-with-tooltip {
    position: relative;
    top: 4px;
}

.country-info-badge-box .cib-text>span {
    width: 100%;
}

.country-info-badge-box .cib-text.text-has-tooltip p {
    max-width: calc(100% - 16px);
}

.country-info-badge-box .cib-text a {
    display: block;
}

.performance-metrics-badges .country-info-badge-box+.country-info-badge-box {
    border-top: 1px solid #E1EBE7;
    padding-top: 13px;
    margin-top: 13px;
}

.country-info-badge-box .cib-text .country-title.published-page {
    font-weight: 700;
}

.country-info-badge-box .cib-text .country-title:hover {
    color: #000;
}

/* METRIC COLORS */
.filter-badges-box.number-of-libraries.filter-badges-box-active,
.filter-badges-box.libraries-administrative-units.filter-badges-box-active,
.filter-badges-box.main-libraries.filter-badges-box-active,
.filter-badges-box.branch-libraries.filter-badges-box-active,
.filter-badges-box.external-service-points.filter-badges-box-active,
.filter-badges-box.mobile-libraries.filter-badges-box-active {
    color: #fff;
    background: #00ADD8;
}

.filter-badges-box.libraries-with-internet-access.filter-badges-box-active {
    color: #fff;
    background: #2D9A47;
}

.country-info-wrap .country-info-table th:first-child {
    width: 30%;
}

.country-info-wrap .country-info-table th:nth-child(2) {
    width: 15%;
}

.country-info-wrap .country-info-table th:nth-child(3) {
    width: 15%;
}

.country-info-wrap .country-info-table th:nth-child(4) {
    width: 30%;
}

.custom-tooltip.active {
    display: block;
}

.filter-badges-box.full-time-staff.filter-badges-box-active {
    color: #fff;
    background: #FDB714;
}

.filter-badges-box.volunteers.filter-badges-box-active {
    color: #fff;
    background: #F36E24;
}

.filter-badges-box.registered-users.filter-badges-box-active {
    color: #fff;
    background: #C22033;
}

.filter-badges-box.physical-visits.filter-badges-box-active {
    color: #fff;
    background: #E01A83;
}

.filter-badges-box.physical-loans.filter-badges-box-active {
    color: #fff;
    background: #1A3668;
}

.filter-badges-box.electronic-loans.filter-badges-box-active {
    color: #fff;
    background: #007DBB;
}


/* MAP Color css */
.filter-badges-box.libraries-administrative-units:hover {
    background: #007a94;
}

.filter-badges-box.libraries-service-points:hover {
    background: #007a94;
}

.filter-badges-box.main-libraries:hover {
    background: #1e682f;
}

.filter-badges-box.branch-libraries:hover {
    background: #1e682f;
}

.filter-badges-box.external-service-points:hover {
    background: #1e682f;
}

.filter-badges-box.mobile-libraries:hover {
    background: #1e682f;
}

.filter-badges-box.libraries-with-internet-access:hover {
    background: #1e682f;
}

.filter-badges-box.full-time-staff:hover {
    background: #b8850e;
}

.filter-badges-box.volunteers:hover {
    background: #a94b19;
}

.filter-badges-box.main-libraries:hover {
    background: #006a81;
}

.filter-badges-box.branch-libraries:hover {
    background: #005a6d;
}

.filter-badges-box.external-service-points:hover {
    background: #005a6d;
}

.filter-badges-box:hover {
    background-color: var(--hover-color) !important;
}

.filter-badges-box.registered-users:hover {
    background: #851522;
}

.filter-badges-box.physical-visits:hover {
    background: #9b115c;
}

.filter-badges-box.physical-loans:hover {
    background: #112344;
}

.filter-badges-box.electronic-loans:hover {
    background: #00567f;
}

.ajax-loader {
    display: none;
}

.loading .ajax-loader {
    display: inline-block;
    pointer-events: none;
}

.reset-map.loading i {
    display: none;
}

/***************/

@media only screen and (max-width: 767px) {
    div#ifla-map {
        aspect-ratio: 1 / 1;
    }

    .chart-wrapper {
        padding: 20px 0px;
    }

    .country-info-badge-box {
        gap: 10px;
    }

    .country-info-badge-box .cib-icon {
        width: 30px;
        min-width: 30px;
        height: 30px;
        font-size: 18px;
    }

    div#ifla-map,
    div#ifla-country-map {
        aspect-ratio: 1 / 0.80;
    }
}


/*************************** PRINT CSS ***********************/
@media print {
    .country-info-badge-box .cib-icon {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    .filter-badges-box {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    .library-thumb,
    .country-info-table th,
    .metric-color-thumb,
    .country-library-type span,
    .ifla-map-list-detail,
    .custom-map-list-filters {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    .list-type-radio .radio-checkmark {
        border: 2px solid #000 !important;
        background: none !important;
        box-sizing: border-box;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Checked state */
    .list-type-radio input[type="radio"]:checked+.radio-checkmark::after {
        content: '';
        display: block;
        width: 7px;
        height: 7px;
        margin: 3px auto;
        border-radius: 50%;
        background: #000 !important;
    }

    .selected-color-thumb {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    .page-template-template-datalab footer#colophon {
        display: none !important;
    }

    .page-template-template-datalab .page-banner-section {
        padding: 40px 0 110px !important;
    }

    .print-break {
        display: block !important;
        height: 0;
        break-before: page;
        page-break-before: always;
    }

    .page-template-template-datalab .flex-wrap {
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    .page-template-template-datalab .flex-wrap>div {
        width: 100% !important;
        margin: 0 !important;
    }
}