

.pg .hm-bloco-widget > .hm-widget{
    container: wg-bloco / inline-size;
}


@container wg-bloco (max-width: 479.98px){
    .pg .hm-bloco-widget .fx-app.wg{
        padding: 14px 14px 16px 14px;
        border-radius: 16px;
    }

    .pg .hm-bloco-widget .wg .wg-topo{
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "icone titulo botao"
            "detalhe detalhe detalhe";
        row-gap: 8px;
        margin-bottom: 12px;
    }

    .pg .hm-bloco-widget .wg .wg-icone{
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 1.1rem;
    }

    .pg .hm-bloco-widget .wg .wg-detalhe{
        margin: 0;
    }

    .pg .hm-bloco-widget .wg .wg-legenda{
        margin-left: 0;
    }

    .pg .hm-bloco-widget .wg .wg-largo{
        display: none;
    }

    .pg .hm-bloco-widget .wg .wg-estreito{
        display: inline;
    }

    .pg .hm-bloco-widget .wg .wg-todos:not(.wg-expande){
        gap: 0;
        padding: 6px 9px;
        font-size: 0;
    }

    .pg .hm-bloco-widget .wg .wg-todos:not(.wg-expande) i{
        font-size: 0.95rem;
    }
}


.pg .hm-bloco-widget:not(.hm-regua) .wg.wg-linhas .wg-meses{
    grid-auto-rows: auto;
    row-gap: 10px;
}

.pg .hm-bloco-widget:not(.hm-regua) .wg .wg-mes-fora{
    display: none;
}


.pg .hm-bloco-widget:not(.hm-regua) .wg.wg-cabem .wg-todos:not(.wg-expande){
    display: none;
}


@media (min-width: 768px){
    .pg .hm-bloco-widget.hm-regua .wg.wg-aberto .wg-meses{
        grid-template-rows: auto;
        grid-auto-rows: 0;
        row-gap: 0;
        overflow: hidden;
    }
}


.pg .hm-bloco-widget:not(.hm-regua) .fx-app.wg.wg-compacto{
    padding: 8px 14px 10px 14px;
}

.pg .hm-bloco-widget:not(.hm-regua) .wg.wg-compacto .wg-topo{
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "icone titulo botao";
    row-gap: 0;
    margin-bottom: 6px;
}

.pg .hm-bloco-widget:not(.hm-regua) .wg.wg-compacto .wg-detalhe{
    display: none;
}

.pg .hm-bloco-widget:not(.hm-regua) .wg.wg-compacto .wg-icone{
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 1rem;
}

.pg .hm-bloco-widget:not(.hm-regua) .wg.wg-compacto .wg-titulo{
    -webkit-line-clamp: 1;
}

.pg .hm-bloco-widget:not(.hm-regua) .wg.wg-compacto .wg-mes{
    padding: 6px 10px;
}

.pg .hm-bloco-widget:not(.hm-regua) .wg.wg-compacto .wg-mes > :not(.wg-mes-topo, .wg-valor, .wg-saldo){
    display: none;
}

.pg .hm-bloco-widget:not(.hm-regua) .wg.wg-compacto .wg-mes-topo{
    min-height: 20px;
}

.pg .hm-bloco-widget:not(.hm-regua) .wg.wg-compacto .wg-valor{
    margin-top: 2px;
    font-size: 1.25rem;
}

.pg .hm-bloco-widget:not(.hm-regua) .wg.wg-compacto .wg-saldo{
    margin-top: 2px;
    padding-top: 0;
    border-top: 0;
}
