/*
 Theme Name:   newsup Child
 Theme URI:    http://emn.osrex.theinfotrust.com/newsup-child/
 Description:  Twenty Fifteen Child Theme
 Author:       John Doe
 Author URI:   http://example.com
 Template:     newsup
 Version:      1.0.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  newsup-child
*/

/* @import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap"); */
/*@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css");*/

:root {
    --main-color: rgb(0, 0, 93);
    --main-color-light2: rgb(34, 34, 168);
    --main-color-light: rgba(0, 0, 93, 0.29);
    --line-color: rgb(222, 222, 222);
}



.mg-head-detail,
.mg-breadcrumb-title,
.mg-posts-sec-inner,
.mg-breadcrumb-section,
.clearfix {
    display: none;
}

body {
    font-family: "Inter-Regular" !important;
}

main {
    background-color: white;
}

button {
    font-family: "Inter-Regular";
}

#custom-background-css {
    background-color: white;
}

.div-rounded,
#btn-filter-data,
#btn-clear-filters {
    border-radius: 5px;
}

/* headers */
#sec-data-headers {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 4rem 0;
    padding: 0rem 2rem;
}

.data-header {
    background-color: white;
    border: none !important;
    box-shadow: none !important;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0.5;
    letter-spacing: 0.05rem;
    color: var(--main-color);
    transition: all 0.8s ease;
    margin: 0;
    padding: 0 !important;
}

.data-header:hover,
.data-header:focus {
    background-color: white !important;
    color: var(--main-color) !important;
    outline: none !important;
    opacity: 1;
    text-shadow: 0.05px 0 0 var(--main-color);
}

.active-data-header {
    opacity: 1;
    text-shadow: 0.05px 0 0 var(--main-color);
}

.invis {
    display: none !important;
}
/* headers */

/* --- */

/* filters */
#sec-filters {
    /* display: grid;
    grid-template-areas:
        "filters map-chart"
        "btn-filter map-chart"
        "gender-chart map-chart";
    margin-bottom: 2rem;
    grid-template-columns: 49% 49%;
    column-gap: 2%; */
    /* display: flex; */
    /* flex-direction: row; */
    /* justify-content: space-between; */
    /* margin-bottom: 2rem; */
    /* justify-content: space-evenly; */
    /* align-items: flex-start; */
    /* margin-bottom: 2rem; */
    /* padding: 1rem; */
    /* margin: 0rem 2rem; */
}

.mrg-left {
    margin-left: 15px;
}

.filter:nth-of-type(1) {
    margin-bottom: 0.75rem;
}

.filter {
    margin-top: 12px;
}

#sec-filters > div {
    /* margin-left: 0.75rem; */
    /* display: flex; */
    /* align-items: center; */
}

.filter-sub-wrapper {
    display: flex;
    flex-direction: row;
    margin-right: 1rem !important;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.filter-sub-wrapper {
    margin: 0.5rem 0rem;
}

.fa-file-invoice:nth-child(1) {
    margin-right: 4px;
}

.filter-sub-wrapper > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 1.2rem;
    width: 22%;
    margin-right: 0.5rem;
}

#div-filter-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 0.7rem;
    grid-area: filters;
}

#sec-filters .wrapper-main-data {
    width: 53%;
}

.filter-subtext {
    width: 79%;
    margin: 0;
    /* margin-left: 2.2rem; */
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.7;
    word-spacing: 0.4rem;
    text-align: left;
    padding: 0rem 3rem;
}

#p-country-select {
    word-spacing: 0rem;
}

#div-btn-filter-data {
    width: 100%;
    margin-bottom: 2rem;
    grid-area: btn-filter;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#btn-filter-data,
#btn-clear-filters {
    text-transform: uppercase;
    background-color: white;
    color: var(--main-color);
    font-size: 0.9rem;
    font-weight: 500;
    width: 40%;
    /* opacity: 0.6; */
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    font-family: "Inter-Regular";
    padding: 0.3rem;
}

#btn-filter-data:hover,
#btn-clear-filters:hover {
    background-color: var(--main-color);
    color: white;
}

#btn-filter-data:focus,
#btn-clear-filters:focus {
    border: none;
    border-color: white;
}

#btn-clear-filters {
    /* width: 40%; */
    margin-bottom: 0.7rem;
    font-size: 0.7rem;
}

.fa-trash {
    margin-right: 0.3rem;
}

#select-gender + .nice-select {
    margin-left: 13px;
}

#p-select-gender {
    padding-left: 3.3rem !important;
}

.filter-elem {
    width: 100%;
    display: flex;
    align-items: center;
}

.nice-select {
    width: 100% !important;
}

#select-industry + .nice-select .nice-select-dropdown {
    width: 100%;
}

#select-industry + .nice-select .nice-select-dropdown ul li {
    overflow-x: auto;
    white-space: nowrap !important;
}

#select-industry + .nice-select .nice-select-dropdown ul li::-webkit-scrollbar {
    width: 5px !important;
    height: 5px;
}

/* Track */
#select-industry + .nice-select .nice-select-dropdown ul li::-webkit-scrollbar-track {
    background: white;
}

/* Handle */
#select-industry + .nice-select .nice-select-dropdown ul li::-webkit-scrollbar-thumb {
    background: var(--main-color-light);
    border-radius: 5px;
}

/* Handle on hover */
#select-industry + .nice-select .nice-select-dropdown ul li::-webkit-scrollbar-thumb:hover {
    background: var(--main-color);
}

.nice-select {
    /* overflow: hidden; */
    white-space: normal !important;
}

.current {
    display: inline-block;
    height: inherit;
    overflow: hidden;
}

/* filters */

/* --- */

/* charts */
#sec-main-data {
    padding: 2rem;
    padding-top: 0rem;
}

.wrapper-main-data {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    /* border-top: 1px solid var(--main-color-light); */
}

#chart-gender {
    width: 100%;
    height: 500px;
    margin-bottom: 2rem;
}

#chart-horizontal {
    width: 100%;
    height: 500px;
}

#chart-map {
    width: 100%;
    /* height: fit-content; */
    height: 510px;
}

#chart-sorted {
    width: 100%;
    /*height: 700px;*/
    height: 100%;
}

#div-chart-map-wrapper {
    grid-area: map-chart;
    max-height: fit-content;
    margin-bottom: 2rem;
    width: 58%;
    /* max-height: 853px; */
}

#div-chart-gender-wrapper {
    grid-area: gender-chart;
    margin-bottom: 2rem;
}

#div-chart-horizontal-wrapper {
    width: 40%;
    height: 540px;
}

#chart-line {
    width: 100%;
    height: 500px;
}

#chart-line-reason {
    width: 100%;
    height: 1300px;
}

#chart-pie {
    width: 100%;
    height: 510px;
}

#div-chart-line-wrapper {
    height: 540px;
}

#div-chart-pie-wrapper {
    width: 40%;
    margin-bottom: 2rem;
}

#div-chart-line-wrapper {
    width: 58%;
}

.div-chart-wrapper,
#div-filter-wrapper,
#div-btn-filter-data button {
    box-shadow: 14px 12px 16px 0px rgb(0 0 0 / 13%), 0 1px 3px rgb(0 0 0 / 20%);
}

.div-chart-wrapper {
    overflow: hidden;
}

#div-chart-filter-wrapper {
    display: flex;
    flex-direction: column;
    width: 45%;
}

.p-chart-title {
    opacity: 0.95;
    background-color: var(--main-color);
    margin: 0;
    color: white;
    font-size: 0.75rem;
    padding-top: 0.3rem;
    padding-bottom: 0.2rem;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
    position: relative;
}

.div-chart-info-wrapper {
    display: none;
    max-height: 0px;
    transition: max-height 0.8s ease-out;
}

.info-active {
    display: block;
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

.div-chart-info-line {
    width: 30%;
    height: 1px;
    background-color: var(--line-color);
    margin: 0 auto;
    margin-top: 1rem;
}

.p-chart-info {
    width: 80%;
    padding: 0.6rem;
    margin: 0 auto;
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02rem;
}

.fa-info {
    position: absolute;
    left: 0;
    margin-left: 0.8rem;
    padding: 0.8rem;
    padding-left: 0rem;
    padding-top: 0.083rem;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.btn-info-active {
    opacity: 1;
}

.tooltip-chart {
    /* visibility: hidden; */
    /* max-height: 0px; */
    transform-origin: 0 100%;
    position: absolute;
    width: 40%;
    top: 15%;
    left: 50%;
    border-radius: 6px;
    background-color: var(--main-color);
    color: white;
    padding: 0.6rem 0.8rem;
    z-index: 1000;
    font-size: 0.7rem;
    letter-spacing: 0.02rem;
    word-break: break-word;
    transition: transform 0.4s;
    transform: scaleY(0);
}

.tooltip-chart:after {
    content: "";
    position: absolute;
    left: 50%;
    margin-left: -5px;
    top: 100%;
    transform: translateX(-160%) rotate(270deg);
    border: 10px solid var(--main-color);
    border-color: transparent var(--main-color) transparent transparent;
}

.tooltip-active {
    /* visibility: visible; */
    transform: scaleY(1);
}

/* .tooltip-active:after {
    max-height: 1000px;
    transition: max-height 0.3s ease-in;
} */

.chart {
    position: relative;
}

#sec-map-pie-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* charts */

#chart-line-reason-options {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 10px;
}

#chart-line-reason-options-extra {
    display: flex;
    flex-wrap: wrap;
    text-align: left;
    list-style: none;
    gap: 10px;
}

#chart-line-reason-options-extra li {
    width: calc(50% - 10px);
}

/* --- */

/* responsive */

@media (max-width: 1440px) {
    .filter-sub-wrapper {
        justify-content: space-around;
    }

    .filter-sub-wrapper > div {
        width: 45%;
    }

    .filter-sub-wrapper {
        margin: 0rem;
    }
}

@media (max-width: 1200px) {
    #chart-sorted {
        height: 1600px;
    }
}

@media (max-width: 1048px) {
    #sec-filters {
        /* grid-template-areas:
            "filters"
            "btn-filter"
            "map-chart"
            "gender-chart";
        grid-template-columns: 100%; */
        /* grid-template-columns: 44% 52%; */
        /* column-gap: 2%; */
    }

    #chart-line {
        margin-bottom: 2rem;
    }

    #chart-map {
        height: 600px;
    }

    .wrapper-main-data {
        flex-direction: column;
    }

    #chart-line,
    #chart-pie,
    #div-chart-line-wrapper,
    #div-chart-pie-wrapper,
    #div-chart-piebackup-wrapper,
    #chart-piebackup,
    #div-chart-map-wrapper {
        width: 100%;
    }

    #div-chart-horizontal-wrapper {
        width: 100% !important;
    }

    #div-chart-map-wrapper,
    #div-chart-line-wrapper {
        margin-bottom: 2rem;
    }

    #sec-map-pie-wrapper {
        flex-direction: column-reverse;
    }

    .data-header:nth-of-type(2) {
        margin: 0.4rem 0rem;
    }

    #sec-data-headers {
        margin: 3rem 0rem;
    }
}

@media (max-width: 850px) {
    #sec-data-headers {
        flex-direction: column;
    }

    /* .data-header:nth-child(2) {
        padding: 0.8rem 0rem;
    } */
}

@media (max-width: 800px) {
    .filter-sub-wrapper > div {
        width: 90%;
    }

    #sec-main-data {
        padding: 0;
    }
}

/* responsive */
