.analytics-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1em;
    flex: 1;
    overflow: auto;
    /* height: 100%; */
}

.analytics-container.digital-analytics {
    flex: 1;
    height: auto;
    overflow: auto;
    gap: 0;
}

.analytics-data {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    flex: 1;
    /* min-height: fit-content; */
}

@media (max-width: 992px) {
    .analytics-data {
        flex-direction: column-reverse;
        margin-bottom: 1em;
    }
}

.analytics-counters {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.analytics-counters > div {
    flex-grow: 1;
    border: thin solid var(--gray);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: white;
    background-clip: border-box;
    overflow: hidden;
    margin: 0.7em;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 12px 0 rgba(0, 0, 0, 0.14);
    min-width: 12em;
    /* min-height: 9em; */
}
@media (max-width: 992px) {
    .analytics-counters {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5em;
        margin-left: 0.7em;
        margin-right: 0.7em;
    }
    .analytics-counters > div {
        margin: 0;
        width: calc( (100% - 0.5em - 1.4em) / 2 )
    }
}

.analytics-counters div .counter-title {
    display: flex;
    justify-content: center;
    padding: 0.5em 0.6em;
    color: var(--gray-dark);
    background-color: #f4f4f4;
    background-clip: border-box;
    border-bottom: thin solid var(--gray);
    white-space: nowrap;
    border-top: 0;
}
.analytics-counters div .counter-number {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
}

.analytics-chart-container {
    flex: 1;
    height: 100%;
    overflow: hidden;
    padding: 0.7em;
    min-height: 150px;
}

.analytics-chart-container div {
    border: thin solid var(--gray);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 12px 0 rgba(0, 0, 0, 0.14);
    height: 100%;
    padding: 15px;
}

.analytics-filters {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-items: stretch;
    align-content: stretch;
    gap: 0.5em;
    padding-left: 0.7em;
    padding-right: 0.7em;
    flex-shrink: 1;
}

.analytics-filters .filter-container {
    height: 45px;
    max-height: 45px;
    overflow: visible;
    flex-basis: 25%;
    min-width: 24%;
    max-width: 25%;
    flex: 1;
}

@media (max-width: 992px) {
    .analytics-filters .filter-container {
        flex-basis: 49%;
        min-width: 49%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .analytics-filters .filter-container {
        flex-basis: 100%;
        min-width: 100;
        max-width: 100%;
    }
}

.analytics-filters.store-analytics .filter-container {
    height: 45px;
    max-height: 45px;
    overflow: visible;
    flex-basis: 20%;
    min-width: 19%;
    max-width: 20%;
    flex: 1;
}

@media (max-width: 992px) {
    .analytics-filters.store-analytics .filter-container {
        flex-basis: 30%;
        min-width: 30%;
        max-width: calc(100% / 3);
    }
}

@media (max-width: 768px) {
    .analytics-filters.store-analytics .filter-container {
        flex-basis: 100%;
        min-width: 100;
        max-width: 100%;
    }
}

.analytics-filters .filter-container > div {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 12px 0 rgba(0, 0, 0, 0.14);
}


.filter-head {
    display: flex;
    height: 45px;
    max-height: 45px;
    flex-direction: row;
    gap: 0.5em;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em;
    background-color: #f4f4f4;
    border: thin solid var(--gray);
}

.filter-head .filter-title {
    flex-grow: 1;
}

.filter-body {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.7em;
    padding: 0.7em;
    overflow: hidden;
    background-color: white;
    border: thin solid var(--gray);
    border-top: none;
    max-height: 211px;
    transition: 0.3s ease;
    z-index: 100;
    overflow-y: auto;
}

.filter-body.collapsed {
    max-height: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    border-bottom: none;
}

.filter-body.graph-type {
    display:flex;
    flex-direction: column;
    justify-content: space-around;
    align-content: space-around;
}
.filter-body.graph-type > .graph-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    overflow: hidden;
    justify-content: space-around;
    align-items: center;
    gap: 0.3em;
}

.chart-loading {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #00000032;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.chart-loading .spinner-border {
    width: min(20vh, 20vw);
    height: min(20vh, 20vw);
}

.registry-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: thin solid var(--gray);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 12px 0 rgba(0, 0, 0, 0.14);
    margin-left: 0.7em;
    margin-right: 0.7em;
    padding: 15px;
    flex: 2.3;
    overflow: auto;
}

@media (max-width: 992px) {
    .registry-container {
        min-height: 400px;
    }
}

.registry-container .table-controls {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1em;
    padding-bottom: 1em;
    flex-shrink: 1;
}

.registry-container .table-controls > * {
    margin: 0px;
    padding: 0px;
}

.registry-container .table-controls .spacer {
    flex: 1;
}

@media (max-width: 992px) {
    .registry-container .table-controls .spacer {
        display: none;
        width: 0; height: 0;
    }
}

.registry-container .table-container {
    flex: 1;
}

.registry-container .table-container .table {
    margin-bottom: 0px !important;
}

.registry-container .table-container .table tbody {
}

th.col-header {
    cursor: pointer;
}
th.col-header:hover {
    color: var(--primary-dark);
}
