.top-section {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
}

.top-section .chart {
     width: 400px;
}

.top-section .chart .panel-title {
    text-align: center;
}

.c3-arc-Entrada {
    fill: #1a4a4a !important;
}

.c3-legend-item-Entrada .c3-legend-item-tile {
    stroke: #1a4a4a !important;
}

.c3-arc-Saída {
    fill: #cc9b1d !important;
}

.c3-legend-item-Saída .c3-legend-item-tile {
    stroke: #cc9b1d !important;
}

.top-section .resumo {
    width: 40%;
    display: flex;
    flex-direction: column;
}

.resumo h2 {
    font-size: 1.4em;
}

.resumo h3 {
    font-size: 1.2em;
    color: #00324a;
    border-bottom: 1px solid #555;
    width: 100%;
}

.resumo span {
    font-size: 2em;
    margin-bottom: 13px;
}

/* Bottom Section */
.tabelas_inf {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    height: fit-content;
    padding: 5px;
    overflow-x: scroll;
    /*overflow-y: hidden;*/
    justify-content: space-between;
}

.custos_tabelas {
    flex-grow: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 2px 2px rgba(0,0,0,0.2);
    padding: 10px;
}

.card_custos_heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
    margin-bottom: 20px;
}

.card_custos_title {
    font-weight: bold;
}

.custos_tabelas .card_custos {
    width: 100%;
    border-bottom: 1px solid #555;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    margin-bottom: 10px;
}

.custos_tabelas .card_custos h2 {
    font-size: 1em;
    font-weight: bold;
    margin: 0 10px 0 0;
}

@media screen and (max-width: 1240px) {
    /*.custos_tabelas {*/
    /*    min-width: 200px;*/
    /*}*/
    
    .card_custos_heading {
        flex-direction: column;
    }
        
    .custos_tabelas .card_custos {
        align-items: flex-start;
        /*flex-direction: column;*/
    }
}

@media screen and (max-width: 833px) {
    .tabelas_inf {
        flex-direction: column;
    }
    
    .custos_tabelas {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 0 2px 2px rgba(0,0,0,0.2);
        padding: 10px;
    }
    
    .top-section {
        flex-direction: column;
    }
    
    .top-section .resumo {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .top-section .chart {
        width: 100%;
    }
}

