/* Loading zones — shown until figures finish rendering */
.cpsp-loading-zone.is-loading .cpsp-loading-content {
    display: none;
}

.cpsp-loading-zone:not(.is-loading) .cpsp-loading-indicator {
    display: none;
}

.cpsp-loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 12rem;
    padding: 2rem;
    color: #333;
    /*font-size: 1.1rem;*/
}

.cpsp-loading-indicator .fa-spinner {
    /*font-size: 1.5rem;*/
    color: #a5113f;
}

#summaries-data-zone .cpsp-loading-indicator,
#yearly-trends-data-zone .cpsp-loading-indicator {
    min-height: 20rem;
}

/*table stuff*/
.table-responsive {
    padding-right: 2px;
}

table.dataTable thead .sorting_asc {
    background-image: url(/src/img/sorting-icons/sort_asc.png)!important;
	padding-right: 15px;
}
table.dataTable thead .sorting_desc {
    background-image: url(/src/img/sorting-icons/sort_desc.png)!important;
	padding-right: 15px;
}
table.dataTable thead .sorting {
    background-image: url(/src/img/sorting-icons/sorting_both.png)!important;
	padding-right: 15px;
}
table.dataTable thead .sorting, table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc, table.dataTable thead .sorting_asc_disabled, table.dataTable thead .sorting_desc_disabled {
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center right;
}
.dataTables_wrapper .dataTables_info:after {
    content: none !important;
}
.bar-chart details {
    margin-top: 2rem;
}

/* From html style tag... */
.boxes {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    padding-left: 3px;
    padding-right: 3px;
    height: 10%;
    /* align-items: center;*/
    justify-content: center;
}

/* a instead of .anchor*/
/*style="vertical-align: top; min-height: 150px; min-width: 300px;"*/
.boxes .anchor,
.boxes .anchor:visited,
.boxes .anchor:focus {
    flex: 1 0 30%;
    display: flex;
    flex-wrap: wrap;
    border: 3px solid #ccc;
    border-radius: 10px;
    margin: 11px;
    text-decoration: none;
    color: black;
    justify-content: center;
}

.customAnchor {
    border: 3px solid #ccc;
    border-radius: 10px;
    margin: 10px;
}

.boxes a:hover {
    border: 3px solid #000;
    border-radius: 10px;
    box-shadow: 2px 2px;
}

.boxes .halfScreen,
.boxes .halfScreen:visited,
.boxes .halfScreen:focus {
    flex: 0 0 24%;
    display: flex;
    flex-wrap: wrap;
    border: 3px solid #ccc;
    border-radius: 10px;
    margin: 10px;
    text-decoration: none;
    color: black;
    justify-content: center;
}

.boxes .halfScreen:hover {
    border: 3px solid #000;
    border-radius: 10px;
    box-shadow: 2px 2px;
}

.innerBox {
    flex: 0 0 24%;
    /*border: 1px solid #ccc;*/
    /*border-radius: 10px;*/
    margin-left: 0px;
    margin-right: 3px;
    text-decoration: none;
    color: black;
    margin-bottom: 5px;
    justify-content: center;
}

.boxHeader {
    flex: 0 0 98%;
    margin: 5px;
    margin-top: 10px;
    color: black;
    text-wrap: balance;
}

.boxHeader-noBold {
    text-decoration: none;
    font-weight: normal;
    color: grey;
}

.boxes p {
    font-size: 18px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.boxes p.h2 {
    font-size: 50px;
    margin-top: 5px;
}
/*boxes end*/

select {
    text-overflow: ellipsis;
}

.bar-chart .c0 .tick text {
    font-size: 13px;
}

.pie-chart .arc-group text, .bar-chart .bar-label, .bar-chart .n-axis-title, .bar-chart .c-axis-title{
    font-size: 15px;
}

.pieHeading:lang(en) {
    min-height: 52.87px;
}
.pieHeading:lang(fr) {
    min-height: 79.17px;
}

#productContainer .c0 text, .vertical .c0 text {
    transform: translate(-5px, 0) rotate(-45deg);
    text-anchor: end;
}

#productContainer .bar-label {
    font-size: 16px;
}

.htmlLegend {
    line-height: 1.2em;
    font-size: smaller;
    --legend-columns: 5;
    --legend-gap: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem var(--legend-gap);
    padding: 0;
}

.htmlLegend li {
    flex: 0 0 calc((100% - (var(--legend-columns) - 1) * var(--legend-gap)) / var(--legend-columns));
    max-width: calc((100% - (var(--legend-columns) - 1) * var(--legend-gap)) / var(--legend-columns));
    margin-top: 5px;
    line-height: 0.9em;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .htmlLegend {
        --legend-columns: 4;
    }
}

@media (max-width: 575px) {
    .htmlLegend {
        --legend-columns: 1;
    }
}

.treeTooltip {
    padding: 3px 10px;
    font-size: .7em;
    border: 1px solid grey;
    border-radius: 6px;
    background-color: white;
    color: black;
    position: fixed;
}
.bold {
    font-weight: bold;
}



/*layout for controls*/
.menu-container {
    border-right: 1px solid #eee;
}
.controlDiv {
    margin-bottom: 10px;
    left: 30px;
    background-color: white;
    z-index: 1000;
    width: auto;
    height: auto;
    font-size: 1em;
} 
.controlDiv input {
    margin: 0;
}
#controlContainer {
    padding: 0 10px 0 0px;
    margin-right: 5px;
    margin-top: 30px;
    position: sticky;
    top: 50px;
    /*border-right: 4px solid #4e79a7;*/
}
#viz-container {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 0;
    padding: 0;
    /*padding-left: 10px;*/
}
.parentCheckbox {
    font-size: 16px;
}
.visualizations-container {
    margin-left: 20px;
}
.controlLabel {
    margin-top: 15px;
    display:inline-block;
    line-height: 1.2em;
}

/*smaller than md*/
@media all and (max-width: 991px) {
    /*#annualTrendContainer .bar-label, #annualTrendContainer .n-axis-title, #annualTrendContainer .c-axis-title {*/
    /*    font-size: 20px;*/
    /*}*/
    
    .pieHeading:lang(fr) {
        min-height: 0;
    }
    
    .pie-chart .arc-group text, .bar-chart .bar-label, .bar-chart .n-axis-title, .bar-chart .c-axis-title{
        font-size: 20px;
    }
    .bar-chart .c0 .tick text {
        font-size: 15px;
    }
}


/*slider stuff*/
#slider {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 25px;
    margin-bottom: 30px;
}

.noUi-connect {
    background: #a5113f;
}

.noUi-touch-area{
    border: 1px solid darkgray;
    border-radius: 2px;
    background: lightgray;
}
.noUi-handle-lower::before, .noUi-handle-lower::after, .noUi-handle-upper::before, .noUi-handle-upper::after{
    background: darkgray;
}

.noUi-pips {
    color: #000;
}

.noUi-marker {
    background: #000;
}

.noUi-value-large {
    font-size: 15px;
    text-align: center;
}

.sliderDiv,
.siteDiv {
    page-break-inside: avoid;
}

.sliderDiv {
    margin: 0px 0px 5px;
    border: 1px solid black;
    padding: 30px 20px 40px 20px;
    border: 3px solid #ccc;
    border-radius: 10px;
}

.bootstrap-select>.dropdown-toggle {
    background: white;
    border: 3px solid black;
}

.bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) {
    width: 395px;
}

.filter-option-inner-inner{
    text-overflow: ellipsis;
}

.mobileHide{
    display: none;
}

.downloadData {
    cursor: pointer;
}

#dateSelection{
    max-width: 300px;
    text-overflow:ellipsis;
}

@media all and (min-width: 550px){
    #dateSelection{
        max-width: none;
    }
}

@media all and (min-width: 768px) {
    .mobileHide{
        display: inline;
    }
}

/*tiles*/
#tiles .wb-eqht div {
	display: inline-block;
	margin-bottom: 15px;
	padding: 20px 15px 10px 15px;
    width: 100%;
    background-color:#e1e4e7;
}
#tiles .wb-eqht a.no-deco {
	text-decoration: none;
	color: black;
}
@media (min-width: 768px) {
	#tiles .wb-eqht div {
		width: 32%;
	}
}
@media (min-width: 1200px) {
	#tiles .wb-eqht div {
		width: 24%;
	}
}