@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "Lato", sans-serif;
    background-color: #F2F2F2;
    color: #3a3a3a;
}

section {
    width: 580px;
    max-width: 100%;
    margin: 0 auto;
    /* padding: 20px 0; */
}

.grafico {
    width: 100%;
    margin-bottom: 40px;
}

.barra-chart {
    width: 20%;
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
}

.semiChart-wrap {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 210px;
    margin: 0 auto;
}

.grafico h2 {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 10px 12px;
}

h2 {
    font-size: 14px;
    font-weight: 500;
    color: #919191;
    text-transform: uppercase;
    text-align: center;
    margin: 0 10px 12px;
}

.chart-wrap {
    position: relative;
    width: 100%;
    height: 310px;
}

.registros {
    width: 100%;
    /* margin-top: 40px; */
}

.container {
    width: 100%;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.informacoes {
    width: 540px;
    max-width: 100%;
    min-height: 100px;
    padding: 18px 20px;
    border-radius: 8px;
    background-color: #4EA584;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 18px;
}

.bloco-infos {
    flex: 1;
    min-width: 0;
}

.detalhes {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    flex-direction: column;
    padding-right: 10px;
}

.infos {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    text-transform: uppercase;
}

.infos .valor {

    font-size: 13px;
    font-weight: 400;
}

p.categoria {
    font-size: 15.5px;
    font-weight: 700;
}

.total-registros {
    /* margin-top: 3px; */
    opacity: .75;
    font-size: 14px;
}

.detalhes>.valor {
    flex: 0 0 145px;
    text-align: right;
    font-size: 15px;
    font-weight: 600;
}

.btn-ver-mais {
    flex: 0 0 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .72);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.btn-ver-mais:hover {
    background-color: rgba(255, 255, 255, .95);
}

.material-symbols-outlined {
    font-size: 38px !important;
    color: #4EA584;
    transition: transform .15s ease;
}

.container.aberto .material-symbols-outlined {
    transform: rotate(180deg);
}

.detalhamento {
    width: 456px;
    max-width: calc(100% - 30px);
    padding: 8px 28px;
    margin-bottom: 10px;
    border-radius: 0 0 8px 8px;
    background: #fff;
    color: #585858;
    box-shadow: 0 3px 12px #00000010;
}

.gasto {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

.gasto:not(:last-child) {
    border-bottom: 1px dashed #bcbcbc;
}

.item-wrap {
    flex: 1;
    min-width: 0;
}

.item {
    font-size: 14.5px;
    line-height: 1.3;
    width: 70%;
}

.descricao {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.35;
    opacity: .72;
}

.detalhamento .valor {
    flex: 0 0 100px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    width: 10%;
}

.text-info {
    padding: 19px 19px 0px 19px;
} 


.text-info p {
    font-size: 15px;
    line-height: 1.5;
    color: #575757;
}


@media (max-width: 610px) {
    /* section {
        padding: 15px;
    } */

    .text-info {
    padding: 14px 5px 4px 5px;
} 

    .informacoes {
        width: 100%;
        padding: 15px;
        gap: 12px;
    }

    .detalhes {
        gap: 7px;
    }

    .detalhes>.valor {
        flex-basis: 110px;
        font-size: 14px;
    }

    p.categoria {
        font-size: 14px;
    }

    .total-registros {
        font-size: 13px;
    }

    .detalhamento {
        width: calc(100% - 30px);
        max-width: none;
        padding: 6px 20px;
    }

    .gasto {
        gap: 12px;
    }

    .detalhamento .valor {
        flex-basis: 95px;
        font-size: 13.5px;
    }

    .item {
        font-size: 13.5px;
    }

    .chart-wrap {
        height: 280px;
    }
}

@media (max-width: 410px) {

    h2 {
        font-size: 13px;
    }
    .detalhes {
        padding-right: 0px;
    }

    .infos .valor {
        font-size: 12px;
        font-weight: 400;
    }

    .total-registros {
        font-size: 12px;
    }

    .detalhamento .valor {
        flex-basis: 67px;
        font-size: 13.5px;
    }
}