/* ==========================================
   OLYMPO ADMIN V2
   VENDAS
========================================== */


/* ==========================================
   CABEÇALHO
========================================== */

.vendas-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
    margin-bottom: 30px;
}


/* ==========================================
   RESUMO
========================================== */

.vendas-resumo {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin-bottom: 25px;
}


/* ==========================================
   CARDS DE RESUMO
========================================== */

.vendas-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 */

.vendas-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 lateral discreto */

.vendas-resumo__card::after {
    content: "";

    position: absolute;

    width: 90px;
    height: 90px;

    right: -45px;
    bottom: -45px;

    background:
        radial-gradient(
            circle,
            rgba(212, 175, 55, 0.09),
            transparent 70%
        );

    pointer-events: none;
}


.vendas-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);
}


.vendas-resumo__card span {
    display: block;

    margin-bottom: 8px;

    color:
        #8995a5;

    font-size:
        10px;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.75px;
}


.vendas-resumo__card strong {
    color:
        #d4af37;

    font-size:
        27px;

    font-weight:
        700;

    letter-spacing:
        -0.3px;
}


/* ==========================================
   FORMULÁRIO
========================================== */

.venda-formulario {
    position: relative;
    overflow: hidden;

    padding: 30px;

    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);
}


.venda-formulario::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
========================================== */

.venda-formulario__titulo {
    padding-bottom: 20px;

    margin-bottom: 24px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);
}


.venda-formulario__titulo h2 {
    margin:
        5px 0 0;

    color:
        #ffffff;

    font-size:
        19px;

    font-weight:
        700;
}


.venda-formulario__titulo p {
    margin:
        7px 0 0;

    color:
        #8995a5;

    font-size:
        12px;

    line-height:
        1.5;
}


/* ==========================================
   CAMPOS
========================================== */

.venda-formulario__campos {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap:
        18px;

    align-items:
        end;
}


/* ==========================================
   CAMPOS INTERNOS
========================================== */

.venda-formulario .campo {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


.venda-formulario .campo label {
    color:
        #aeb7c3;

    font-size:
        10px;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.55px;
}


.venda-formulario .campo select,
.venda-formulario .campo input {
    width: 100%;

    min-height:
        44px;

    padding:
        0 13px;

    color:
        #ffffff;

    background:
        #0a111d;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius:
        9px;

    outline:
        none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.venda-formulario .campo select:hover,
.venda-formulario .campo input:hover {
    border-color:
        rgba(212, 175, 55, 0.20);
}


.venda-formulario .campo select:focus,
.venda-formulario .campo input:focus {
    background:
        #0d1624;

    border-color:
        rgba(212, 175, 55, 0.55);

    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 0.07);
}


.venda-formulario .campo select option {
    color:
        #ffffff;

    background:
        #0d1624;
}


/* ==========================================
   VALORES DA VENDA
========================================== */

.venda-valores {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        12px;

    margin-top:
        22px;
}


.venda-valor {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height:
        76px;

    padding:
        14px 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;
}


.venda-valor:hover {
    background:
        linear-gradient(
            145deg,
            #101a2a,
            #0b131f
        );

    border-color:
        rgba(212, 175, 55, 0.20);

    transform:
        translateY(-1px);
}


.venda-valor span {
    display: block;

    margin-bottom:
        6px;

    color:
        #7f8994;

    font-size:
        9px;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.55px;
}


.venda-valor strong {
    color:
        #d4af37;

    font-size:
        18px;

    font-weight:
        700;
}


/* destaque do total */

.venda-valor:nth-child(2) {
    border-color:
        rgba(212, 175, 55, 0.16);

    background:
        linear-gradient(
            145deg,
            rgba(212, 175, 55, 0.07),
            rgba(212, 175, 55, 0.025)
        );
}


.venda-valor:nth-child(2) strong {
    font-size:
        20px;
}


/* lucro */

.venda-valor:nth-child(3) strong {
    color:
        #55c878;
}


/* ==========================================
   AÇÕES
========================================== */

.venda-formulario__acoes {
    display: flex;

    justify-content:
        flex-end;

    gap:
        10px;

    margin-top:
        22px;

    padding-top:
        20px;

    border-top:
        1px solid rgba(255, 255, 255, 0.06);
}


.venda-formulario__acoes .botao {
    min-width:
        190px;

    min-height:
        44px;
}


/* ==========================================
   HISTÓRICO
========================================== */

.vendas-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);
}


.vendas-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
        );
}


.vendas-lista__cabecalho {
    padding-bottom:
        18px;

    margin-bottom:
        0;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.06);
}


.vendas-lista__cabecalho h2 {
    margin:
        5px 0 0;

    color:
        #ffffff;

    font-size:
        18px;

    font-weight:
        700;
}


/* ==========================================
   ITEM DA VENDA
========================================== */

.venda-item,
.item-venda {
    display: flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    padding:
        18px 4px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.055);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.venda-item:hover,
.item-venda:hover {
    background:
        rgba(212, 175, 55, 0.025);

    transform:
        translateX(2px);
}


.venda-item:last-child,
.item-venda:last-child {
    border-bottom:
        none;
}


/* ==========================================
   INFORMAÇÕES
========================================== */

.venda-item__info,
.venda-info {
    display: flex;

    flex-direction:
        column;

    gap:
        5px;

    min-width:
        0;
}


.venda-item__info strong,
.venda-info strong {
    color:
        #ffffff;

    font-size:
        14px;

    font-weight:
        700;
}


.venda-item__info span,
.venda-info span {
    color:
        #8995a5;

    font-size:
        11px;
}


/* ==========================================
   VALORES DO HISTÓRICO
========================================== */

.venda-item__pagamento,
.venda-item__total,
.venda-item__lucro,
.venda-valor {
    display:
        flex;

    flex-direction:
        column;

    gap:
        5px;
}


.venda-item__pagamento span,
.venda-item__total span,
.venda-item__lucro span {
    color:
        #7f8994;

    font-size:
        9px;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.5px;
}


.venda-item__pagamento strong {
    color:
        #ffffff;

    font-size:
        12px;

    text-transform:
        capitalize;
}


.venda-item__total strong,
.venda-item__lucro strong {
    color:
        #d4af37;

    font-size:
        14px;
}


/* ==========================================
   VALOR DO ITEM GERADO PELO JS
========================================== */

.item-venda .venda-valor {
    min-width:
        120px;

    align-items:
        flex-end;

    text-align:
        right;
}


.item-venda .venda-valor strong {
    color:
        #d4af37;

    font-size:
        15px;
}


.item-venda .venda-valor span {
    color:
        #55c878;

    font-size:
        10px;
}


/* ==========================================
   PAGAMENTO NO HISTÓRICO
========================================== */

.venda-info span:nth-child(4) {
    color:
        #a8b0bb;
}


/* ==========================================
   DATA
========================================== */

.venda-item__data {
    color:
        #7f8994;

    font-size:
        10px;

    white-space:
        nowrap;

    text-align:
        right;
}


/* ==========================================
   ESTADO VAZIO
========================================== */

.vendas-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;
}


.vendas-lista .estado-vazio strong {
    display:
        block;

    margin-bottom:
        7px;

    color:
        #ffffff;

    font-size:
        14px;
}


.vendas-lista .estado-vazio p {
    margin:
        0;

    color:
        #7f8994;

    font-size:
        12px;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 1000px) {

    .venda-formulario__campos {
        grid-template-columns:
            1fr 1fr;
    }


    .venda-formulario__campos
    .campo:first-child {
        grid-column:
            1 / -1;
    }


    .venda-item,
    .item-venda {
        gap:
            15px;
    }

}


/* ==========================================
   CELULAR
========================================== */

@media (max-width: 700px) {

    .vendas-cabecalho {
        flex-direction:
            column;

        align-items:
            flex-start;
    }


    .vendas-resumo {
        grid-template-columns:
            1fr;

        gap:
            12px;
    }


    .vendas-resumo__card {
        min-height:
            96px;

        padding:
            18px;
    }


    .venda-formulario,
    .vendas-lista {
        padding:
            20px;

        border-radius:
            15px;
    }


    .venda-formulario__campos {
        grid-template-columns:
            1fr;
    }


    .venda-formulario__campos
    .campo:first-child {
        grid-column:
            auto;
    }


    .venda-valores {
        grid-template-columns:
            1fr;
    }


    .venda-formulario__acoes {
        flex-direction:
            column;
    }


    .venda-formulario__acoes .botao {
        width:
            100%;

        min-width:
            0;
    }


    .venda-item,
    .item-venda {
        flex-direction:
            column;

        align-items:
            stretch;

        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;
    }


    .venda-item:hover,
    .item-venda:hover {
        transform:
            none;
    }


    .venda-item:last-child,
    .item-venda:last-child {
        border:
            1px solid rgba(255, 255, 255, 0.06);
    }


    .item-venda .venda-valor {
        min-width:
            0;

        align-items:
            flex-start;

        text-align:
            left;

        padding-top:
            12px;

        border-top:
            1px solid rgba(255, 255, 255, 0.05);
    }


    .venda-item__data {
        text-align:
            left;
    }

}


/* ==========================================
   CELULAR PEQUENO
========================================== */

@media (max-width: 420px) {

    .venda-formulario,
    .vendas-lista {
        padding:
            16px;
    }


    .vendas-resumo__card strong {
        font-size:
            23px;
    }


    .venda-formulario__titulo h2,
    .vendas-lista__cabecalho h2 {
        font-size:
            17px;
    }


    .venda-valor strong {
        font-size:
            17px;
    }

}