.wi-bar-chart-container,
.wi-line-chart-container,
#wi-incident-summary,
#wi-doughnut-chart-wrapper {
    max-width: 1280px;
    width: calc(100% - 20px);
    padding: 0;
    margin: 32px auto 40px auto;
}

.wp-block-post-content {
    padding: 0 !important;
    overflow: hidden;
}

.wi-chart-wrapper {
    margin: 40px auto;
    text-align: center;
}
#wiYearSelect {
    padding: 6px;
    font-size: 14px;
    margin-bottom: 10px;
}

textarea.select2-search__field {
    height: 30px !important;
    align-content: center;
}

.wi-bar-chart-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 40px;
    margin-bottom: 40px;
}
.wi-line-chart-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    row-gap: 40px;
    margin-bottom: 40px;
}
.wi-bar-chart-wrapper {
    width: 100%;
}


.wi-dropdown {
    position: relative;
    width: 100%;
    max-width: 216px;
    margin-bottom: 30px;
}
.wi-dropdown-button {
    max-width: 216px;
    padding: 17px 8px;
    background-color: #F6F6F8;
    border: none;
    border-bottom: 2px solid #1D0741;
    color: #1D0741;
    font-family: "FiraGO", Sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    cursor: pointer;
    background-image: url(/wp-content/plugins/wi-charts/assets/icons/arrow.svg);
    background-size: auto;
    background-repeat: no-repeat;
    background-position: calc(100% - 8px) center;    
}
.wi-dropdown-menu {
    display: none;
    position: absolute;
    width: 100%;
    max-width: 198px;
    max-height: 400px;
    padding: 4px 8px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 4px;
    z-index: 10;
}
.wi-dropdown.open .wi-dropdown-menu {
    display: block;
}
.wi-dropdown-menu label {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-family: "FiraGO", Sans-serif;
    font-size: 12px !important;
    font-weight: 400  !important;
    margin: 12px 0;
    cursor: pointer;
}

.wi-dropdown-menu input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
    margin-right: 10px;
    background-color: #0000;
    border-radius: 3px;
    border: 1px solid #2149E8 !important;
    min-height: 12px;
    min-width: 12px !important;
    transition: .2s ease-in-out;
    cursor: pointer;
}

.wi-dropdown-menu input[type="checkbox"]:checked {
    background-color: #2149E8;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='14' height='11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fff' d='M12 1 5 7.5 2 5l-1 .5L5 10l8-8.5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.wi-dropdown-menu input[type="checkbox"]:focus {
    outline: none;
}

/* Type Summary */

#wi-incident-summary {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    column-gap: 20px;
    overflow-x: auto;
}
.wi-parent-column,
.wi-orphan-column {
    border: 1px solid #6F6F6F;
    width: 100%;
}
.wi-parent-group,
.wi-orphan-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
}

.wi-term-parent,
.wi-term-child,
.wi-term-orphan {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    column-gap: 10px;
    font-family: "FiraGO", Sans-serif;
    font-size: 16px;
    line-height: normal;
}
.wi-term-parent,
.wi-term-orphan {
    font-weight: 600;
    color:#FDFDFD;
    background-color: #2149E8;
    padding: 10px 20px;
}
.wi-term-child {
    font-weight: 400;
    color: #1D0741;
    background-color: transparent;
    border-bottom: 1px solid rgb(111, 111, 111, 0.5);    
    padding: 10px;
    margin: 0 20px;
}
.wi-term-orphan {
    border-bottom: 1px solid white;    
}
.wi-parent-group > .wi-term-child:last-child,
.wi-orphan-group > .wi-term-orphan:last-child {
    border-bottom: none;
}

.wi-term-name {
    display: block;
    min-width: 265px;
}
.wi-term-child .wi-term-name {
    min-width: 255px;
    max-width: 255px;
}
.wi-term-count {
    min-width: 30px;
}
.wi-term-percent {
    color: #6F6F6F;
}


.wi-bar-legend {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: start;
  margin-top: 40px;
  margin-left: 320px;
}
.wi-bar-legend.line{
    margin-left: 0;
}
.wi-bar-legend.doughnut {
    margin: 0;
    margin-bottom: 30px;
}
.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}
.wi-legend-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.wi-legend-item :not(.dot){
    font-family: "FiraGO", Sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #1D0741;
    margin-left: 8px;
}
.wi-legend-item code {
    font-weight: 400 !important;
}
.wi-legend-item .percent {
    color: #6F6F6F;
}

.wi-doughnut-chart-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
}
.wi-legend-item.inactive {
  opacity: 0.4;
  text-decoration: line-through;
}

@media only screen and (max-width: 1280px) {

    .wi-bar-chart-wrapper,
    .wi-line-chart-container,
    .wi-doughnut-chart-wrapper {
        overflow-x: auto;
        padding: 20px 0;
    }
}
@media only screen and (max-width: 1025px) {

    #wi-incident-summary {
        display: flex;
        flex-direction: column;
        max-width: 450px;
    }
    .wi-bar-legend {
        margin-left: 0;
        margin-top: 20px;
    }
    .wi-legend-item :not(.dot){
        font-size: 12px;
        margin-left: 4px;
    }
    .wi-term-child {
        margin: 0 4px;
        padding: 10px 4px;
    }
    .wi-term-parent,
    .wi-term-child,
    .wi-term-orphan {
        font-size: 10px;
    }
    .wi-term-parent,
    .wi-term-orphan {
        padding: 10px 8px;
    }
    .wi-term-child .wi-term-name,
    .wi-term-parent .wi-term-name,
    .wi-term-orphan .wi-term-name {
        min-width: 150px;
        max-width: 150px;
    }
}
.wi-summary-item {
    margin-top: 16px;
    display: flex;
    flex-direction: row;
    column-gap: 16px;
    align-items: center;
}
.wi-summary-item .dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}
.wi-summary-item .label , .wi-summary-item .count {
    color: #1D0741;
    font-family: 'FiraGO', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: -0.04em;
}
.wi-summary-item .count span {
    font-weight: 400 !important;
}



@media only screen and (max-width: 767px) {
    #wiDoughnutChart {
        width: 300px !important;
        height: 300px !important;
    }
    .wi-doughnut-chart-wrapper {
        display: flex;
        flex-direction: column-reverse;
        align-items: start;
    }
}
@media only screen and (max-width: 400px) {
    #wiDoughnutChart {
        width: 270px !important;
        height: 270px !important;
    }

}