/* ==========================================
   OLYMPO ADMIN V2
   FINANCEIRO
========================================== */


/* ==========================================
   CABEÇALHO
========================================== */

.financeiro-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
    margin-bottom: 30px;
}


/* ==========================================
   RESUMO
========================================== */

.financeiro-resumo {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    margin-bottom: 25px;
}


/* ==========================================
   CARDS DO RESUMO
========================================== */

.financeiro-resumo__card {
    position: relative;
    overflow: hidden;

    min-height: 112px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 22px 24px;

    background:
        linear-gradient(
            145deg,
            #182238 0%,
            #101a2c 55%,
            #0b121f 100%
        );

    border:
        1px solid rgba(212, 175, 55, 0.18);

    border-radius:
        16px;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.20);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}


/* brilho superior */

.financeiro-resumo__card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(212, 175, 55, 0.75),
            transparent
        );
}


/* brilho decorativo */

.financeiro-resumo__card::after {
    content: "";

    position: absolute;

    width: 95px;
    height: 95px;

    right: -48px;
    bottom: -48px;

    background:
        radial-gradient(
            circle,
            rgba(212, 175, 55, 0.09),
            transparent 70%
        );

    pointer-events:
        none;
}


.financeiro-resumo__card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(212, 175, 55, 0.38);

    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.28);
}


.financeiro-resumo__card span {
    display: block;

    margin-bottom:
        8px;

    color:
        #8995a5;

    font-size:
        10px;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.75px;
}


.financeiro-resumo__card strong {
    color:
        #d4af37;

    font-size:
        27px;

    font-weight:
        700;

    letter-spacing:
        -0.3px;
}


/* ==========================================
   FATURAMENTO
========================================== */

.financeiro-resumo__card:first-child {
    border-color:
        rgba(212, 175, 55, 0.25);
}


/* ==========================================
   CUSTO
========================================== */

.financeiro-resumo__card:nth-child(2) strong {
    color:
        #c5ccd4;
}


/* ==========================================
   LUCRO
========================================== */

.financeiro-resumo__card--lucro {
    border-color:
        rgba(85, 200, 120, 0.25);

    background:
        linear-gradient(
            145deg,
            #16273a 0%,
            #102022 55%,
            #0b171b 100%
        );
}


.financeiro-resumo__card--lucro::before {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(85, 200, 120, 0.65),
            transparent
        );
}


.financeiro-resumo__card--lucro strong {
    color:
        #55c878;
}


/* ==========================================
   QUANTIDADE DE VENDAS
========================================== */

.financeiro-resumo__card:nth-child(4) strong {
    color:
        #d4af37;

    font-size:
        29px;
}


/* ==========================================
   FORMAS DE PAGAMENTO
========================================== */

.financeiro-pagamentos {
    position: relative;
    overflow: hidden;

    padding:
        28px;

    margin-bottom:
        25px;

    background:
        linear-gradient(
            145deg,
            #182238 0%,
            #101a2c 55%,
            #0b121f 100%
        );

    border:
        1px solid rgba(212, 175, 55, 0.18);

    border-radius:
        18px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.23);
}


.financeiro-pagamentos::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height:
        2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(212, 175, 55, 0.70),
            transparent
        );
}


/* ==========================================
   TÍTULO PAGAMENTOS
========================================== */

.financeiro-pagamentos__cabecalho {
    padding-bottom:
        18px;

    margin-bottom:
        20px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);
}


.financeiro-pagamentos__cabecalho h2 {
    margin:
        5px 0 0;

    color:
        #ffffff;

    font-size:
        19px;

    font-weight:
        700;
}


.financeiro-pagamentos__cabecalho p {
    margin:
        7px 0 0;

    color:
        #8995a5;

    font-size:
        12px;

    line-height:
        1.5;
}


/* ==========================================
   GRID DE PAGAMENTOS
========================================== */

.financeiro-pagamentos__grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap:
        12px;
}


/* ==========================================
   CARDS DE PAGAMENTO
========================================== */

.financeiro-pagamento {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height:
        82px;

    padding:
        15px 16px;

    background:
        linear-gradient(
            145deg,
            #0d1624,
            #09101b
        );

    border:
        1px solid rgba(255, 255, 255, 0.065);

    border-radius:
        11px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.financeiro-pagamento::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 3px;
    height: 100%;

    background:
        rgba(212, 175, 55, 0.35);

    opacity:
        0.6;
}


.financeiro-pagamento:hover {
    background:
        linear-gradient(
            145deg,
            #101a2a,
            #0b131f
        );

    border-color:
        rgba(212, 175, 55, 0.22);

    transform:
        translateY(-2px);
}


.financeiro-pagamento span {
    display: block;

    margin-bottom:
        6px;

    color:
        #7f8994;

    font-size:
        9px;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.6px;
}


.financeiro-pagamento strong {
    color:
        #d4af37;

    font-size:
        17px;

    font-weight:
        700;
}


/* ==========================================
   PIX
========================================== */

.financeiro-pagamento:first-child {
    border-color:
        rgba(85, 200, 120, 0.18);
}


.financeiro-pagamento:first-child::before {
    background:
        #55c878;
}


/* ==========================================
   HISTÓRICO
========================================== */

.financeiro-lista {
    position: relative;
    overflow: hidden;

    padding:
        28px;

    background:
        linear-gradient(
            145deg,
            #182238 0%,
            #101a2c 55%,
            #0b121f 100%
        );

    border:
        1px solid rgba(212, 175, 55, 0.18);

    border-radius:
        18px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.23);
}


.financeiro-lista::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height:
        2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(212, 175, 55, 0.65),
            transparent
        );
}


.financeiro-lista__cabecalho {
    padding-bottom:
        18px;

    margin-bottom:
        0;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);
}


.financeiro-lista__cabecalho h2 {
    margin:
        5px 0 0;

    color:
        #ffffff;

    font-size:
        19px;

    font-weight:
        700;
}


/* ==========================================
   ITEM FINANCEIRO
========================================== */

.financeiro-item {
    display: grid;

    grid-template-columns:
        minmax(180px, 2fr)
        minmax(100px, 1fr)
        minmax(120px, 1fr)
        minmax(100px, 1fr)
        minmax(100px, 1fr)
        auto;

    align-items:
        center;

    gap:
        18px;

    padding:
        18px 4px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.055);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.financeiro-item:hover {
    background:
        rgba(212, 175, 55, 0.025);

    transform:
        translateX(2px);
}


.financeiro-item:last-child {
    border-bottom:
        none;
}


/* ==========================================
   PRODUTO
========================================== */

.financeiro-item__info {
    display:
        flex;

    flex-direction:
        column;

    gap:
        5px;

    min-width:
        0;
}


.financeiro-item__info strong {
    color:
        #ffffff;

    font-size:
        14px;

    font-weight:
        700;
}


.financeiro-item__info span {
    color:
        #8995a5;

    font-size:
        11px;
}


/* ==========================================
   DADOS
========================================== */

.financeiro-item__custo,
.financeiro-item__faturamento,
.financeiro-item__lucro,
.financeiro-item__pagamento {
    display:
        flex;

    flex-direction:
        column;

    gap:
        5px;
}


.financeiro-item__custo span,
.financeiro-item__faturamento span,
.financeiro-item__lucro span,
.financeiro-item__pagamento span {
    color:
        #7f8994;

    font-size:
        9px;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.5px;
}


.financeiro-item__custo strong {
    color:
        #c5ccd4;

    font-size:
        13px;
}


.financeiro-item__faturamento strong {
    color:
        #d4af37;

    font-size:
        14px;
}


.financeiro-item__lucro strong {
    color:
        #55c878;

    font-size:
        14px;
}


.financeiro-item__pagamento strong {
    color:
        #ffffff;

    font-size:
        12px;

    text-transform:
        capitalize;
}


/* ==========================================
   DATA
========================================== */

.financeiro-item__data {
    color:
        #7f8994;

    font-size:
        10px;

    white-space:
        nowrap;

    text-align:
        right;
}


/* ==========================================
   ESTADO VAZIO
========================================== */

.financeiro-lista .estado-vazio {
    margin-top:
        18px;

    padding:
        40px 20px;

    background:
        rgba(8, 15, 28, 0.65);

    border:
        1px dashed rgba(212, 175, 55, 0.18);

    border-radius:
        12px;

    text-align:
        center;
}


.financeiro-lista .estado-vazio strong {
    display:
        block;

    margin-bottom:
        7px;

    color:
        #ffffff;

    font-size:
        14px;
}


.financeiro-lista .estado-vazio p {
    margin:
        0;

    color:
        #7f8994;

    font-size:
        12px;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 1100px) {

    .financeiro-resumo {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .financeiro-pagamentos__grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .financeiro-item {
        grid-template-columns:
            2fr 1fr 1fr;
    }


    .financeiro-item__data {
        text-align:
            left;
    }

}


/* ==========================================
   CELULAR
========================================== */

@media (max-width: 700px) {

    .financeiro-cabecalho {
        flex-direction:
            column;

        align-items:
            flex-start;
    }


    .financeiro-resumo {
        grid-template-columns:
            1fr;

        gap:
            12px;
    }


    .financeiro-resumo__card {
        min-height:
            96px;

        padding:
            18px;
    }


    .financeiro-pagamentos,
    .financeiro-lista {
        padding:
            20px;

        border-radius:
            15px;
    }


    .financeiro-pagamentos__grid {
        grid-template-columns:
            1fr;
    }


    .financeiro-item {
        grid-template-columns:
            1fr 1fr;

        gap:
            14px;

        padding:
            18px;

        margin-bottom:
            12px;

        background:
            rgba(8, 15, 28, 0.65);

        border:
            1px solid rgba(255, 255, 255, 0.06);

        border-radius:
            12px;
    }


    .financeiro-item:hover {
        transform:
            none;
    }


    .financeiro-item:last-child {
        border:
            1px solid rgba(255, 255, 255, 0.06);
    }


    .financeiro-item__data {
        grid-column:
            1 / -1;

        padding-top:
            4px;

        border-top:
            1px solid rgba(255, 255, 255, 0.05);

        text-align:
            left;
    }

}


/* ==========================================
   CELULAR PEQUENO
========================================== */

@media (max-width: 420px) {

    .financeiro-pagamentos,
    .financeiro-lista {
        padding:
            16px;
    }


    .financeiro-resumo__card strong {
        font-size:
            23px;
    }


    .financeiro-pagamentos__cabecalho h2,
    .financeiro-lista__cabecalho h2 {
        font-size:
            17px;
    }


    .financeiro-item {
        grid-template-columns:
            1fr;
    }


    .financeiro-item__data {
        grid-column:
            auto;
    }

}