body {
    background-color: white;
}

.sidebar {
    max-width: 400px;
    height: 100vh;
    background-color: white;
    border: 10px solid grey;
    padding: 20px;
    overflow-x: clip;
    overflow-y: auto;
}

.charts-container {
    min-height: 100vh;
    flex-grow: 1;
}

.white-panel {
    background-color: white;
    padding: 15px;
    display: flex;
    height: 50vh;
    border-top: 10px solid grey;
    border-right: 10px solid grey;
    flex-direction: column;
}

    .white-panel > .btn-outline-secondary {
        width: 75px;
        padding-top: 7px;
        height: 40px
    }

.chart-panel {
    height: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

    .chart-panel > canvas {
        max-width: 100%;
    }

.btn-outline-secondary > .fa-expand {
    font-size: 1.5em;
}

.content {
    display: flex;
    align-items: stretch;
}

.pie-chart {
    max-height: calc(100% - 40px);
}


@media (width < 1400px) {
    .pie-chart {
    }

    .sidebar {
        width: 100%;
        max-width: inherit;
        border-left: none;
        border-right: none;
        border-top: none;
        border-bottom: 5px solid grey;
        min-height: initial;
        height: auto;
    }

    .white-panel {
        border-left: none;
        border-top: none;
        border-right: none;
        border-bottom: 5px solid grey;
    }

    .content {
        flex-direction: column;
    }
}
