/* ==========================================
   OLYMPO ADMIN V2
   ESTOQUE
========================================== */


/* ==========================================
   TIPOGRAFIA
========================================== */

.estoque-cabecalho,
.estoque-resumo,
.estoque-movimentacao,
.estoque-lista,
.historico-estoque {

    font-family:
        "Segoe UI",
        Inter,
        Arial,
        sans-serif;

}


/* ==========================================
   CABEÇALHO
========================================== */

.estoque-cabecalho {

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 30px;
}

.estoque-cabecalho .pagina-titulo {

    min-width: 0;
}

.pagina-titulo__mini {

    display: block;

    margin-bottom: 6px;

    color: #d4af37;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.pagina-titulo h1 {

    margin: 0;

    color: #ffffff;

    font-size: 30px;
    font-weight: 750;

    letter-spacing: -0.5px;

    line-height: 1.15;
}

.pagina-titulo p {

    margin: 8px 0 0;

    color: #9ca3af;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.5;
}


/* ==========================================
   RESUMO
========================================== */

.estoque-resumo {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 30px;
}

.estoque-resumo__card {

    position: relative;
    overflow: hidden;

    display: flex;

    flex-direction: column;

    gap: 8px;

    padding: 22px;

    background:
        linear-gradient(
            145deg,
            #151d2e 0%,
            #0e1625 55%,
            #0a101c 100%
        );

    border:
        1px solid
        rgba(212, 175, 55, 0.18);

    border-radius: 16px;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.20);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.estoque-resumo__card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(212, 175, 55, 0.65),
            transparent
        );
}

.estoque-resumo__card:hover {

    transform: translateY(-2px);

    border-color:
        rgba(212, 175, 55, 0.40);

    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, 0.28);
}

.estoque-resumo__card span {

    color: #9ca3af;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;

    line-height: 1.3;
}

.estoque-resumo__card strong {

    color: #d4af37;

    font-size: 29px;
    font-weight: 750;

    letter-spacing: -0.5px;

    line-height: 1;
}


/* ==========================================
   PAINEL DE MOVIMENTAÇÃO
========================================== */

.estoque-movimentacao {

    position: relative;
    overflow: hidden;

    margin-bottom: 30px;

    padding: 28px;

    background:
        linear-gradient(
            145deg,
            #151d2e 0%,
            #0e1625 55%,
            #0a101c 100%
        );

    border:
        1px solid
        rgba(212, 175, 55, 0.28);

    border-radius: 18px;

    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, 0.25);
}

.estoque-movimentacao::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #d4af37,
            transparent
        );
}

.estoque-movimentacao__titulo {

    margin-bottom: 22px;
}

.estoque-movimentacao__titulo h2 {

    margin: 0 0 7px;

    color: #ffffff;

    font-size: 19px;
    font-weight: 700;

    letter-spacing: -0.2px;
}

.estoque-movimentacao__titulo p {

    margin: 0;

    color: #9ca3af;

    font-size: 13px;

    line-height: 1.5;
}


/* ==========================================
   FORMULÁRIO
========================================== */

.estoque-formulario {

    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(160px, 1fr)
        minmax(0, 1.4fr)
        auto;

    gap: 18px;

    align-items: end;
}

.estoque-formulario .campo {

    display: flex;

    flex-direction: column;

    gap: 8px;

    min-width: 0;
}

.estoque-formulario .campo label {

    color: #dce1e7;

    font-size: 11px;
    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: 0.9px;
}

.estoque-formulario .campo input,
.estoque-formulario .campo select {

    width: 100%;
    min-height: 46px;

    box-sizing: border-box;

    padding: 0 14px;

    background: #080f1c;

    border:
        1px solid
        #293548;

    border-radius: 10px;

    color: #f9fafb;

    font-family:
        "Segoe UI",
        Inter,
        Arial,
        sans-serif;

    font-size: 14px;
    font-weight: 500;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.estoque-formulario .campo input::placeholder {

    color: #596474;
}

.estoque-formulario .campo input:hover,
.estoque-formulario .campo select:hover {

    border-color:
        rgba(212, 175, 55, 0.40);
}

.estoque-formulario .campo input:focus,
.estoque-formulario .campo select:focus {

    background: #0b1423;

    border-color: #d4af37;

    box-shadow:
        0 0 0 3px
        rgba(212, 175, 55, 0.08);
}


/* ==========================================
   AÇÕES
========================================== */

.estoque-formulario__acoes {

    display: flex;

    align-items: stretch;

    gap: 12px;

    min-width: 260px;
}

.estoque-formulario__acoes .botao {

    min-height: 50px;

    padding: 0 22px;

    border-radius: 11px;

    font-family:
        "Segoe UI",
        Inter,
        Arial,
        sans-serif;

    font-size: 13px;
    font-weight: 750;

    white-space: nowrap;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}


/* ==========================================
   BOTÃO ENTRADA
========================================== */

#botao-entrada {

    background:
        linear-gradient(
            135deg,
            #d4af37,
            #a88420
        );

    color: #080c11;

    border:
        1px solid
        rgba(255, 220, 100, 0.45);

    box-shadow:
        0 6px 18px
        rgba(212, 175, 55, 0.20);
}

#botao-entrada:hover {

    background:
        linear-gradient(
            135deg,
            #e5c354,
            #c49d2e
        );

    transform: translateY(-2px);

    box-shadow:
        0 9px 24px
        rgba(212, 175, 55, 0.30);
}


/* ==========================================
   BOTÃO SAÍDA
========================================== */

#botao-saida {

    background:
        linear-gradient(
            135deg,
            #991b1b,
            #7f1d1d
        );

    color: #ffffff;

    border:
        1px solid
        rgba(248, 113, 113, 0.35);

    box-shadow:
        0 6px 18px
        rgba(153, 27, 27, 0.20);
}

#botao-saida:hover {

    background:
        linear-gradient(
            135deg,
            #b91c1c,
            #991b1b
        );

    transform: translateY(-2px);

    box-shadow:
        0 9px 24px
        rgba(153, 27, 27, 0.30);
}


/* ==========================================
   ESTOQUE ATUAL
========================================== */

.estoque-lista {

    position: relative;
    overflow: hidden;

    margin-bottom: 30px;

    padding: 28px;

    background:
        linear-gradient(
            145deg,
            #151d2e 0%,
            #0e1625 55%,
            #0a101c 100%
        );

    border:
        1px solid
        rgba(212, 175, 55, 0.18);

    border-radius: 18px;

    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, 0.22);
}

.estoque-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
        );
}

.estoque-lista__cabecalho {

    padding-bottom: 18px;

    margin-bottom: 4px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.06);
}

.estoque-lista__cabecalho h2 {

    margin: 0;

    color: #ffffff;

    font-size: 18px;
    font-weight: 700;
}


/* ==========================================
   PRODUTO
========================================== */

.estoque-item__produto {

    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;
}

.estoque-item__produto strong {

    display: block;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.3;
}

.estoque-item__produto small {

    display: block;

    margin-top: 4px;

    color: #737e8b;

    font-size: 11px;
}


/* ==========================================
   ITEM DE ESTOQUE
========================================== */

.estoque-item {

    display: grid;

    grid-template-columns:
        minmax(180px, 2fr)
        minmax(130px, 1fr)
        minmax(130px, 1fr)
        auto;

    align-items: center;

    gap: 20px;

    padding: 20px 4px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.06);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.estoque-item:last-child {

    border-bottom: none;
}

.estoque-item:hover {

    background:
        rgba(212, 175, 55, 0.025);

    transform: translateX(2px);
}

.estoque-item__quantidade,
.estoque-item__minimo,
.estoque-item__preco {

    display: flex;

    flex-direction: column;

    gap: 5px;

    padding: 10px 14px;

    background: #0b111b;

    border:
        1px solid
        rgba(255, 255, 255, 0.06);

    border-radius: 9px;
}

.estoque-item__quantidade small,
.estoque-item__minimo span,
.estoque-item__preco span {

    color: #7f8994;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.6px;
}

.estoque-item__quantidade strong {

    color: #d4af37;

    font-size: 18px;
    font-weight: 750;
}

.estoque-item__minimo strong {

    color: #ffffff;

    font-size: 16px;
    font-weight: 650;
}

.estoque-item__preco strong {

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
}


/* ==========================================
   SEM IMAGEM
========================================== */

.estoque-item__sem-imagem {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    flex-shrink: 0;

    background: #0b111b;

    border:
        1px solid
        rgba(212, 175, 55, 0.15);

    border-radius: 9px;

    color: #596474;

    font-size: 8px;
    font-weight: 700;

    text-transform: uppercase;

    text-align: center;
}


/* ==========================================
   ALERTA
========================================== */

.estoque-item__alerta {

    display: inline-flex;

    align-items: center;

    width: fit-content;

    padding: 6px 9px;

    background:
        rgba(212, 175, 55, 0.10);

    border:
        1px solid
        rgba(212, 175, 55, 0.20);

    border-radius: 7px;

    color: #d4af37;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}


/* ==========================================
   HISTÓRICO
========================================== */

.historico-estoque {

    position: relative;
    overflow: hidden;

    padding: 28px;

    background:
        linear-gradient(
            145deg,
            #151d2e 0%,
            #0e1625 55%,
            #0a101c 100%
        );

    border:
        1px solid
        rgba(212, 175, 55, 0.18);

    border-radius: 18px;

    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, 0.22);
}

.historico-estoque::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(212, 175, 55, 0.70),
            transparent
        );
}

.historico-estoque__cabecalho {

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding-bottom: 18px;

    margin-bottom: 8px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.06);
}

.historico-estoque__cabecalho h2 {

    margin: 0;

    color: #ffffff;

    font-size: 18px;
    font-weight: 700;

    letter-spacing: -0.2px;
}


/* ==========================================
   ITEM DO HISTÓRICO
========================================== */

.historico-item {

    position: relative;
    overflow: hidden;

    display: grid;

    grid-template-columns:
        minmax(220px, 2fr)
        110px
        100px
        150px
        145px;

    align-items: center;

    gap: 16px;

    margin-top: 10px;

    padding: 16px 18px;

    background:
        linear-gradient(
            135deg,
            rgba(21, 29, 46, 0.96),
            rgba(10, 17, 29, 0.98)
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 13px;

    box-shadow:
        0 5px 18px
        rgba(0, 0, 0, 0.16);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


/* linha dourada lateral */

.historico-item::before {

    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 3px;

    background:
        linear-gradient(
            180deg,
            #d4af37,
            rgba(212, 175, 55, 0.15)
        );

    opacity: 0.65;
}

.historico-item:hover {

    transform: translateY(-2px);

    border-color:
        rgba(212, 175, 55, 0.30);

    background:
        linear-gradient(
            135deg,
            #192236,
            #101927
        );

    box-shadow:
        0 9px 25px
        rgba(0, 0, 0, 0.24);
}


/* ==========================================
   INFORMAÇÕES DO PRODUTO
========================================== */

.historico-item__info {

    display: flex;

    flex-direction: column;

    gap: 5px;

    min-width: 0;
}

.historico-item__produto {

    overflow: hidden;

    color: #ffffff;

    font-size: 14px;
    font-weight: 750;

    letter-spacing: 0.1px;

    line-height: 1.35;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.historico-item__info strong {

    overflow: hidden;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.historico-item__info span {

    overflow: hidden;

    color: #8f99a7;

    font-size: 11px;

    line-height: 1.4;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==========================================
   TIPO
========================================== */

.historico-item__tipo {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 78px;

    padding: 7px 10px;

    border-radius: 8px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.8px;

    text-align: center;

    text-transform: uppercase;
}

.historico-item__tipo--entrada {

    background:
        rgba(74, 222, 128, 0.08);

    border:
        1px solid
        rgba(74, 222, 128, 0.20);

    color: #4ade80;

    box-shadow:
        inset 0 0 12px
        rgba(74, 222, 128, 0.025);
}

.historico-item__tipo--saida {

    background:
        rgba(248, 113, 113, 0.08);

    border:
        1px solid
        rgba(248, 113, 113, 0.20);

    color: #f87171;

    box-shadow:
        inset 0 0 12px
        rgba(248, 113, 113, 0.025);
}


/* ==========================================
   QUANTIDADE
========================================== */

.historico-item__quantidade {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 4px;

    min-width: 0;

    padding: 9px 12px;

    background:
        rgba(8, 15, 28, 0.65);

    border:
        1px solid
        rgba(255, 255, 255, 0.055);

    border-radius: 9px;
}

.historico-item__quantidade::before {

    content: "QUANTIDADE";

    color: #6f7987;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.8px;
}

.historico-item__quantidade strong {

    color: #ffffff;

    font-size: 15px;
    font-weight: 750;
}


/* ==========================================
   ESTOQUE RESULTANTE
========================================== */

.historico-item__estoque {

    display: flex;

    flex-direction: column;

    gap: 4px;

    min-width: 0;

    padding: 9px 12px;

    background:
        rgba(212, 175, 55, 0.045);

    border:
        1px solid
        rgba(212, 175, 55, 0.10);

    border-radius: 9px;
}

.historico-item__estoque::before {

    content: "ESTOQUE ATUAL";

    color: #75652e;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.8px;
}

.historico-item__estoque strong {

    color: #d4af37;

    font-size: 15px;
    font-weight: 800;
}


/* ==========================================
   DATA
========================================== */

.historico-item__data {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    justify-content: center;

    gap: 4px;

    color: #8b95a3;

    font-size: 11px;
    font-weight: 500;

    line-height: 1.4;

    text-align: right;
}

.historico-item__data::before {

    content: "REGISTRADO EM";

    color: #626c7a;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.8px;
}


/* ==========================================
   ESTADO VAZIO
========================================== */

.estoque-lista .estado-vazio,
.historico-estoque .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;
}

.estoque-lista .estado-vazio strong,
.historico-estoque .estado-vazio strong {

    color: #cbd2da;

    font-size: 14px;
    font-weight: 650;
}

.estoque-lista .estado-vazio p,
.historico-estoque .estado-vazio p {

    margin-top: 7px;

    color: #737e8b;

    font-size: 12px;
}


/* ==========================================
   RESPONSIVO — 1200
========================================== */

@media (max-width: 1200px) {

    .historico-item {

        grid-template-columns:
            minmax(180px, 2fr)
            100px
            90px
            130px;

    }

    .historico-item__data {

        grid-column: 4;

    }

}


/* ==========================================
   RESPONSIVO — 1100
========================================== */

@media (max-width: 1100px) {

    .estoque-formulario {

        grid-template-columns:
            1fr 1fr;
    }

    .estoque-formulario .campo:first-child {

        grid-column: span 2;
    }

    .estoque-formulario__acoes {

        grid-column: 1 / -1;

        justify-content: flex-start;
    }

    .estoque-item {

        grid-template-columns:
            1fr 1fr;
    }

    .estoque-item__produto {

        grid-column: span 2;
    }

    .historico-item {

        grid-template-columns:
            1fr auto auto;

        gap: 12px;

    }

    .historico-item__data {

        grid-column: 1 / -1;

        align-items: flex-start;

        text-align: left;

    }

}


/* ==========================================
   RESPONSIVO — 800
========================================== */

@media (max-width: 800px) {

    .estoque-resumo {

        grid-template-columns: 1fr;
    }

    .estoque-cabecalho {

        align-items: flex-start;

        flex-direction: column;
    }

    .estoque-cabecalho .botao {

        width: 100%;
    }

    .estoque-formulario {

        grid-template-columns: 1fr;
    }

    .estoque-formulario .campo:first-child {

        grid-column: auto;
    }

    .estoque-formulario__acoes {

        grid-column: auto;

        width: 100%;
    }

    .historico-item {

        grid-template-columns:
            1fr 1fr;

        gap: 12px;

    }

    .historico-item__info {

        grid-column: 1 / -1;

    }

    .historico-item__data {

        grid-column: 1 / -1;

    }

}


/* ==========================================
   RESPONSIVO — 600
========================================== */

@media (max-width: 600px) {

    .estoque-movimentacao,
    .estoque-lista,
    .historico-estoque {

        padding: 20px;

        border-radius: 15px;
    }

    .estoque-formulario__acoes {

        flex-direction: column;
    }

    .estoque-formulario__acoes .botao {

        width: 100%;
    }

    .estoque-item {

        grid-template-columns: 1fr;

        gap: 12px;

        padding: 18px;

        margin-bottom: 12px;

        background:
            rgba(8, 15, 28, 0.65);

        border:
            1px solid
            rgba(255, 255, 255, 0.06);

        border-radius: 12px;
    }

    .estoque-item:last-child {

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.06);
    }

    .estoque-item__produto {

        grid-column: auto;
    }

    .estoque-item:hover {

        transform: none;
    }

    .historico-item {

        grid-template-columns: 1fr;

        gap: 10px;

        margin-top: 10px;

        padding: 16px;

    }

    .historico-item__info {

        grid-column: auto;
    }

    .historico-item__tipo {

        width: fit-content;

    }

    .historico-item__quantidade {

        width: 100%;

        box-sizing: border-box;

    }

    .historico-item__estoque {

        width: 100%;

        box-sizing: border-box;

    }

    .historico-item__data {

        grid-column: auto;

        align-items: flex-start;

        text-align: left;

    }

}


/* ==========================================
   RESPONSIVO — 420
========================================== */

@media (max-width: 420px) {

    .estoque-resumo__card {

        padding: 18px;
    }

    .estoque-resumo__card strong {

        font-size: 25px;
    }

    .estoque-movimentacao,
    .estoque-lista,
    .historico-estoque {

        padding: 16px;
    }

    .historico-item {

        padding: 15px;

        border-radius: 12px;
    }

}