/* =========================
   CONFIGURAÇÕES GERAIS
========================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
body {
    margin: 0;
    padding: 0;

    background-image: url("../images/2.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    font-family: Montserrat, sans-serif;
}


/* =========================
   OVERLAY
========================= */

.overlay {
    width: 100%;
    min-height: 100vh;

    background: #27418c;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    padding: 30px 200px;
}

.logo {
    width: 220px;
}

.menu {
    display: flex;
    gap: 40px;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu a:hover {
    opacity: 0.8;
}

.active {
    text-decoration: underline !important;
}


.menu-sair {
    margin-left: auto;

    font-weight: 400;

    opacity: 0.8;

    padding: 6px 16px;

    border: 1px solid rgba(255,255,255,0.4);

    border-radius: 20px;
}

.menu-sair:hover {
    opacity: 1;

    background: rgba(255,255,255,0.12);
}


/* =========================
   LOGIN
========================= */

.login-box {
    width: 500px;

    margin: 80px auto 0 auto;

    background: rgba(0, 0, 0, 0.15);

    padding: 50px;

    border-radius: 10px;

    text-align: center;

    color: white;

    backdrop-filter: blur(5px);
}

.login-box h1 {
    margin-bottom: 40px;
}


/* =========================
   CAMPOS BOOTSTRAP / LOGIN
========================= */

.form-control {
    background: rgba(255, 255, 255, 0.1);

    border: none;

    color: #ffffff;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);

    color: #ffffff;

    border: none;

    box-shadow: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}


/* =========================
   BOTÃO PADRÃO
========================= */

.btn {
    width: 150px;
}


/* ==================================================
   CADASTRO DE PRODUÇÃO
================================================== */


/* =========================
   LAYOUT PRINCIPAL
========================= */

.cadastro-layout {
    width: 100%;
    min-height: 100vh;

    display: flex;
}


/* =========================
   LADO ESQUERDO
========================= */

.cadastro-imagem {
    width: 40%;
    min-height: 100vh;

    background-color: #27418c;

    position: relative;

    overflow: hidden;
}


/* =========================
   LOGO
========================= */

.cadastro-logo {
    position: absolute;

    width: 170px;

    top: 65px;
    left: 60px;

    z-index: 2;
}


/* =========================
   SACO DE BATATAS
========================= */

.saco-batatas {
    position: absolute;

    width: 400px;

    max-width: 100%;
    left: 85%;
    top:20%;
    transform: translateX(-50%);
}


/* =========================
   LADO DIREITO
========================= */

.cadastro-formulario {
    width: 60%;
    min-height: 100vh;

    background-color: #ffffff;

    display: flex;

    justify-content: center;
    align-items: center;
}


/* =========================
   CONTEÚDO DO FORMULÁRIO
========================= */

.formulario-conteudo {
    width: 55%;

    max-width: 430px;
}


/* =========================
   TÍTULO
========================= */

.formulario-conteudo h1 {
    margin: 0 0 38px 0;

    text-align: center;

    font-size: 24px;

    font-weight: 400;

    color: #555555;
}


/* =========================
   CAMPOS
========================= */

.campo {
    margin-bottom: 17px;
}


/* =========================
   LABEL
========================= */

.campo label {
    display: block;

    margin-left: 20px;

    margin-bottom: 7px;

    font-size: 11px;

    letter-spacing: 1px;

    color: #999999;

    font-weight: 500;
}


/* =========================
   INPUT E SELECT
========================= */

.campo-input {
    width: 100%;

    height: 38px;

    border: none;

    outline: none;

    border-radius: 25px;

    background-color: #eeeeee;

    padding: 0 20px;

    font-size: 14px;

    color: #555555;

    box-sizing: border-box;
}


/* =========================
   FOCO NO CAMPO
========================= */

.campo-input:focus {
    background-color: #e8e8e8;

    color: #555555;

    box-shadow: 0 0 0 2px rgba(41, 69, 141, 0.15);
}


/* =========================
   PLACEHOLDER
========================= */

.campo-input::placeholder {
    color: #999999;
}


/* =========================
   SELECT
========================= */

select.campo-input {
    cursor: pointer;

    appearance: none;
}

/* =========================
   TÍTULO HISTÓRICO/
========================= */

.titulo-pagina {
    font-size: 34px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.subtitulo-pagina {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

/* =========================
   BOTÃO CADASTRAR
========================= */

.btn-cadastrar {
    display: block;

    width: 135px;

    height: 32px;

    margin: 34px auto 0 auto;

    border: none;

    border-radius: 20px;

    background-color: #27418c;

    color: white;

    font-size: 11px;

    font-weight: 500;

    cursor: pointer;

    transition: 0.2s;
}


/* =========================
   HOVER BOTÃO
========================= */

.btn-cadastrar:hover {
    background-color: #27418C;

    transform: scale(1.02);
}


/* =========================
   RESPONSIVIDADE
========================= */

@media (max-width: 768px) {

    .cadastro-layout {
        flex-direction: column;
    }

    .cadastro-imagem {
        width: 100%;

        min-height: 250px;
    }

    .cadastro-formulario {
        width: 100%;

        min-height: auto;

        padding: 50px 20px;

        box-sizing: border-box;
    }

    .formulario-conteudo {
        width: 100%;

        max-width: 430px;
    }

    .cadastro-logo {
        width: 140px;

        top: 30px;
        left: 30px;
    }

    .saco-batatas {
        width: 220px;

        bottom: -30px;
    }

    .navbar {
        padding: 20px;
    }

    .logo {
        width: 160px;
    }

    .menu {
        gap: 15px;
        flex-wrap: wrap;
    }

    .login-box {
        width: auto;

        margin: 40px 20px 0 20px;

        padding: 30px;
    }

    .dashboard-cta {
        flex-direction: column;
        text-align: center;
    }
}
/* ==================================================
   DASHBOARD DO GESTOR
================================================== */

.relatorios-page {

    width: 100%;

    min-height: 100vh;

    padding: 40px 6% 60px 6%;

    box-sizing: border-box;

}


/* ==================================================
   CABEÇALHO
================================================== */

.relatorios-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 30px;

}


.relatorios-header h1 {

    margin: 0;

    color: white;

    font-size: 30px;

    font-weight: 600;

}


.relatorios-header p {

    margin-top: 7px;

    color: rgba(255,255,255,0.7);

    font-size: 14px;

}


.relatorio-usuario {

    text-align: right;

    color: white;

}


.relatorio-usuario span {

    display: block;

    font-size: 11px;

    color: rgba(255,255,255,0.65);

    text-transform: uppercase;

    letter-spacing: 1px;

}


.relatorio-usuario strong {

    font-size: 15px;

}


/* ==================================================
   FILTROS
================================================== */

.periodos {

    display: flex;

    gap: 10px;

    margin-bottom: 25px;

    flex-wrap: wrap;

}


.periodo-btn {

    border: none;

    background: rgba(255,255,255,0.15);

    color: white;

    padding: 9px 22px;

    border-radius: 20px;

    cursor: pointer;

    font-size: 13px;

    transition: 0.2s;

}


.periodo-btn:hover {

    background: rgba(255,255,255,0.25);

}


.periodo-btn.ativo {

    background: white;

    color: #27418c;

    font-weight: bold;

}


/* ==================================================
   CARDS
================================================== */

.cards-relatorio {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    margin-bottom: 25px;

}


.card-relatorio {

    background: white;

    border-radius: 14px;

    padding: 22px;

    display: flex;

    align-items: center;

    gap: 18px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.08);

}


.card-icone {

    width: 48px;

    height: 48px;

    border-radius: 12px;

    background: #eef1fb;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 23px;

}


.card-relatorio span {

    display: block;

    color: #999;

    font-size: 10px;

    letter-spacing: 1px;

    margin-bottom: 5px;

}


.card-relatorio strong {

    color: #333;

    font-size: 22px;

}


.card-variacao {

    display: block;

    margin-top: 4px;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: normal;

}


.card-variacao-positiva {

    color: #1e8e3e;

}


.card-variacao-negativa {

    color: #d93025;

}


/* ==================================================
   GRID DOS GRÁFICOS
================================================== */

.graficos-grid {

    display: grid;

    grid-template-columns:
        2fr 1fr;

    gap: 20px;

    margin-bottom: 20px;

}


/* ==================================================
   CARD DE GRÁFICO
================================================== */

.grafico-card {

    background: white;

    border-radius: 14px;

    padding: 25px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.08);

    box-sizing: border-box;

}


.grafico-header {

    margin-bottom: 20px;

}


.grafico-header h2 {

    margin: 0;

    font-size: 18px;

    color: #444;

    font-weight: 600;

}


.grafico-header span {

    display: block;

    margin-top: 5px;

    color: #999;

    font-size: 12px;

}


/* ==================================================
   CONTAINER DOS GRÁFICOS
================================================== */

.grafico-container {

    position: relative;

    height: 300px;

}


.grafico-donut {

    height: 300px;

}


/* ==================================================
   TABELA
================================================== */

.tabela-card {

    margin-top: 20px;

}


.tabela-container {

    overflow-x: auto;

}


.tabela-container table {

    width: 100%;

    border-collapse: collapse;

}


.tabela-container th {

    text-align: left;

    padding: 13px;

    font-size: 11px;

    color: #999;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    border-bottom: 1px solid #eee;

}


.tabela-container td {

    padding: 14px 13px;

    font-size: 13px;

    color: #555;

    border-bottom: 1px solid #f1f1f1;

}


.tabela-container tr:last-child td {

    border-bottom: none;

}


/* ==================================================
   RESPONSIVIDADE
================================================== */

@media (max-width: 1000px) {

    .cards-relatorio {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .graficos-grid {

        grid-template-columns: 1fr;

    }

}


/* ==================================================
   ESTOQUE
================================================== */

.busca-produto-container {

    position: relative;

    max-width: 480px;

    margin-bottom: 26px;

}


.busca-produto-icone {

    position: absolute;

    left: 20px;

    top: 50%;

    transform: translateY(-50%);

    font-size: 17px;

    pointer-events: none;

}


.busca-produto-input {

    width: 100%;

    height: 50px;

    border: none;

    border-radius: 25px;

    padding: 0 20px 0 50px;

    font-size: 15px;

    color: #333333;

    box-sizing: border-box;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.12);
}


.busca-produto-input:focus {

    outline: none;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.22);
}


.categoria-titulo {

    display: inline-block;

    color: white;

    font-size: 19px;

    font-weight: 700;

    margin: 30px 0 14px 0;

    letter-spacing: 0.3px;

    border-bottom: 3px solid #4caf6d;

    padding-bottom: 4px;
}


.categoria-secao:first-of-type .categoria-titulo {

    margin-top: 0;
}


.produto-esgotado-faixa {

    position: absolute;

    top: 12px;

    right: -30px;

    transform: rotate(35deg);

    background: #c0392b;

    color: white;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.5px;

    padding: 3px 34px;

    text-transform: uppercase;
}

.estoque-acoes {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

}


.acoes-com-espaco {

    margin-bottom: 20px;

}


.foto-preview {

    max-width: 120px;

    border-radius: 10px;

    display: block;

    margin-bottom: 10px;

}


.linha-cancelada {

    opacity: 0.5;

}


.btn-cadastrar-inline {

    display: inline-block;

    padding: 9px 18px;

    border-radius: 20px;

    background: white;

    color: #27418c;

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

    transition: 0.2s;

}


.btn-cadastrar-inline:hover {

    transform: scale(1.03);

    color: #27418c;

}


.btn-cadastrar-inline-destaque {

    background: #4caf6d;

    color: white;
}


.btn-cadastrar-inline-destaque:hover {

    color: white;
}


.estoque-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(180px, 1fr));

    gap: 18px;

}


.produto-card {

    background: white;

    border-radius: 14px;

    border-top: 4px solid #4caf6d;

    padding: 16px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.08);

    text-align: center;

}


.produto-sem-estoque {

    opacity: 0.55;

}


.produto-foto {

    position: relative;

    width: 100%;

    height: 170px;

    border-radius: 10px;

    background: #eef8f0;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    margin-bottom: 12px;

}


.produto-foto img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.produto-foto-placeholder {

    font-size: 62px;

}


.produto-icone-svg {

    width: 60%;

    height: 60%;

}


.produto-info strong {

    display: block;

    color: #333;

    font-size: 15px;

    margin-bottom: 6px;

}


.produto-quantidade {

    display: block;

    font-size: 12px;

    color: #2e8b57;

    font-weight: 600;

}


.produto-quantidade-zero {

    color: #c0392b;

}


.produto-segunda-qualidade {

    display: inline-block;

    background: #fff3cd;

    color: #8a6300;

    font-size: 10px;

    font-weight: 700;

    padding: 2px 8px;

    border-radius: 10px;

    margin-bottom: 4px;

    text-transform: uppercase;

}


.linha-alerta {

    background: #fff8e6;

}


.produto-preco-venda {

    display: block;

    font-size: 21px;

    font-weight: 700;

    color: #1e7d4f;

    margin: 4px 0 2px 0;

}


.produto-diferenciador {

    position: absolute;

    top: 8px;

    left: 8px;

    background: #27418c;

    color: white;

    font-size: 10px;

    font-weight: 700;

    padding: 3px 10px;

    border-radius: 12px;

    box-shadow:
        0 2px 8px
        rgba(0,0,0,0.15);

    max-width: calc(100% - 16px);

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.produto-chegou-hoje {

    position: absolute;

    bottom: 8px;

    left: 8px;

    background: #ffffff;

    color: #1e7d4f;

    font-size: 10px;

    font-weight: 700;

    padding: 3px 10px;

    border-radius: 12px;

    box-shadow:
        0 2px 8px
        rgba(0,0,0,0.15);
}


.produto-preco-caixa {

    display: block;

    font-size: 14px;

    font-weight: 700;

    color: #1e7d4f;

    margin: 2px 0;

}


.produto-faixas-titulo {

    display: block;

    font-size: 10px;

    font-weight: 700;

    color: #999999;

    text-transform: uppercase;

    margin-top: 4px;

}


.produto-faixa-extra {

    display: block;

    font-size: 11px;

    color: #888888;

}


.produto-preco-secundario {

    display: block;

    font-size: 11px;

    color: #aaaaaa;

    margin: 4px 0;

}


/* ==================================================
   ARMÁRIOS
================================================== */

.armario-card {

    background: white;

    border-radius: 14px;

    padding: 20px 16px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.08);

    text-align: center;

    border: 2px solid transparent;

}


.armario-card.armario-livre {

    border-color: #b7e4c7;

    background: #f4fbf6;

}


.armario-numero {

    display: block;

    font-size: 20px;

    font-weight: 700;

    color: #27418c;

    margin-bottom: 8px;

}


.armario-dono {

    display: block;

    font-size: 14px;

    color: #333;

    font-weight: 600;

    margin-bottom: 4px;

}


.armario-dono-livre {

    color: #2e8b57;

}


.armario-acoes {

    margin-top: 14px;

    display: flex;

    justify-content: center;

    gap: 6px;

    flex-wrap: wrap;

}


.form-preco-pavilhao2 {

    display: flex;

    gap: 6px;

    margin-top: 10px;

}


.form-preco-pavilhao2 .campo-input {

    height: 32px;

    font-size: 12px;

}


.produto-alerta-lotes {

    display: block;

    margin-top: 8px;

    font-size: 11px;

    color: #b8860b;

    text-decoration: underline;

}


/* ==================================================
   FILTROS DA LISTAGEM DE PRODUTOS
================================================== */

.filtros-produtos {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

    margin-bottom: 20px;

    background: white;

    padding: 20px;

    border-radius: 14px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.08);

    box-sizing: border-box;

}


.filtros-produtos .campo-input {

    width: auto;

    min-width: 200px;

}


/* ==================================================
   FORMULÁRIO DE ESTOQUE - EXTRAS
================================================== */

.formulario-largo {

    max-width: 500px;

}


.campo-arquivo {

    border-radius: 12px;

    padding: 8px 20px;

}


.texto-ajuda {

    margin: 6px 0 10px 20px;

    font-size: 12px;

    color: #999999;

}


.alerta-lote {

    background: #fff8e1;

    border: 1px solid #ffe082;

    border-radius: 10px;

    padding: 14px 18px;

    margin-bottom: 20px;

    font-size: 13px;

    color: #7a5c00;

}


.alerta-lote ul {

    margin: 8px 0;

    padding-left: 18px;

}


.alerta-fornecedor-hoje {

    background: #eef1fb;

    border-color: #c7d0f0;

    color: #27418c;

}


.dias-semana-checkboxes {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin: 6px 0 0 20px;

}


.dia-checkbox {

    display: flex;

    align-items: center;

    gap: 5px;

    font-size: 12px;

    color: #555555;

    background: #eeeeee;

    padding: 6px 12px;

    border-radius: 15px;

    cursor: pointer;

}


.faixa-row {

    display: grid;

    grid-template-columns: 1fr 1fr 1fr auto;

    gap: 8px;

    margin-bottom: 10px;

    align-items: center;

}


.btn-secundario {

    border: 1px dashed #27418c;

    background: transparent;

    color: #27418c;

    border-radius: 20px;

    padding: 8px 16px;

    font-size: 12px;

    cursor: pointer;

}


.btn-remover-faixa {

    border: none;

    background: #f5f5f5;

    color: #c0392b;

    border-radius: 50%;

    width: 28px;

    height: 28px;

    cursor: pointer;

    font-size: 14px;

}


.previa-total {

    margin: -6px 0 18px 20px;

    font-size: 13px;

    color: #27418c;

    font-weight: 600;

}


@media (max-width: 650px) {

    .relatorios-page {

        padding:
            25px 15px 40px 15px;

    }


    .relatorios-header {

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;

    }


    .relatorio-usuario {

        text-align: left;

    }


    .cards-relatorio {

        grid-template-columns: 1fr;

    }


    .periodo-btn {

        padding:
            8px 15px;

    }


    .grafico-card {

        padding: 18px;

    }

}


/* ==================================================
   DASHBOARD - ATALHO EM DESTAQUE
================================================== */

.dashboard-cta {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    background: linear-gradient(135deg, #27418c, #3a5bb8);

    color: white;

    border-radius: 16px;

    padding: 24px 28px;

    margin-bottom: 20px;

    text-decoration: none;

    box-shadow: 0 8px 24px rgba(39, 65, 140, 0.35);

    transition: 0.2s;

}


.dashboard-cta:hover {

    transform: scale(1.01);

    color: white;

}


.dashboard-cta strong {

    display: block;

    font-size: 20px;

}


.dashboard-cta span {

    display: block;

    font-size: 13px;

    opacity: 0.85;

    margin-top: 4px;

}


.dashboard-cta-seta {

    font-size: 28px;

}


.dashboard-lista-simples {

    list-style: none;

    padding: 0;

    margin: 0;

}


.dashboard-lista-simples li {

    padding: 8px 0;

    border-bottom: 1px solid #eee;

}


.dashboard-lista-simples li:last-child {

    border-bottom: none;

}


/* ==================================================
   ENTRADA POR FORNECEDOR
================================================== */

.escolha-fornecedor .campo {

    margin-bottom: 0;

    max-width: 420px;

}


.tabela-entrada-lote td {

    vertical-align: middle;

}


.lote-produto {

    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 200px;

}


.lote-foto {

    width: 44px;

    height: 44px;

    object-fit: cover;

    border-radius: 10px;

    flex-shrink: 0;

}


.lote-diferenciador {

    display: inline-block;

    margin-left: 6px;

    background: #27418c;

    color: white;

    font-size: 10px;

    font-weight: 700;

    padding: 2px 8px;

    border-radius: 12px;

}


.campo-lote {

    min-width: 110px;

    padding: 0 14px;

}


.adicionar-produto-lote {

    margin-top: 16px;

    max-width: 420px;

}


.resumo-lote {

    font-weight: 600;

    color: #27418c;

    margin: 0 0 16px 0;

}


@media (max-width: 650px) {

    .tabela-entrada-lote thead {

        display: none;

    }


    .tabela-entrada-lote tr {

        display: block;

        border: 1px solid #eee;

        border-radius: 12px;

        padding: 10px 12px;

        margin-bottom: 12px;

    }


    .tabela-entrada-lote tr[hidden] {

        display: none;

    }


    .tabela-entrada-lote td {

        display: flex;

        align-items: center;

        justify-content: space-between;

        gap: 12px;

        padding: 6px 0;

        border-bottom: none;

    }


    .tabela-entrada-lote td::before {

        content: attr(data-label);

        font-size: 11px;

        color: #999;

        text-transform: uppercase;

    }


    .tabela-entrada-lote td[data-label="Produto"]::before {

        content: none;

    }


    .tabela-entrada-lote .campo-lote {

        max-width: 55%;

    }

}



/* ==================================================
   CATÁLOGO PARA CLIENTES
================================================== */

.catalogo-topo {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 0 18px;

    margin-bottom: 8px;

}


.catalogo-categoria {

    font-size: 15px;

    margin-bottom: 10px;

}



/* ==================================================
   PAINEL DO GESTOR
================================================== */

.painel-filtros {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));

    gap: 0 16px;

    margin-bottom: 20px;

}


.painel-filtros-acoes {

    grid-column: 1 / -1;

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 10px 16px;

}


.painel-filtros .texto-ajuda {

    grid-column: 1 / -1;

    margin-left: 0;

}


.painel-abas {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-bottom: 20px;

    border-bottom: 2px solid rgba(255, 255, 255, 0.25);

}


.painel-aba {

    border: none;

    background: transparent;

    color: rgba(255, 255, 255, 0.8);

    padding: 10px 18px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    border-bottom: 3px solid transparent;

    margin-bottom: -2px;

}


.painel-aba:hover {

    color: white;

}


.painel-aba.ativa {

    color: white;

    border-bottom-color: white;

}


.painel-status {

    background: white;

    border-radius: 12px;

    padding: 14px 18px;

    margin-bottom: 20px;

    font-weight: 600;

    color: #27418c;

}


.painel-status.erro {

    color: #d93025;

}


.painel-destaque {

    color: rgba(255, 255, 255, 0.9);

    margin: 0 0 16px 0;

    font-size: 13px;

}


.painel-largo,
.painel-aviso {

    margin-bottom: 20px;

}


.painel-secao .grafico-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    flex-wrap: wrap;

    gap: 12px;

}


.painel-controles {

    display: flex;

    align-items: center;

    gap: 8px;

}


.painel-controles .campo-input {

    width: auto;

    min-width: 90px;

}


.painel-controles .texto-ajuda {

    margin: 0;

}


.painel-cinco {

    grid-template-columns: repeat(5, 1fr);

}


.painel-duas-colunas {

    grid-template-columns: 1fr 1fr;

}


.tabela-painel th[data-chave] {

    cursor: pointer;

    user-select: none;

}


.tabela-painel th.ordenado-cresc::after {

    content: " ▲";

}


.tabela-painel th.ordenado-decresc::after {

    content: " ▼";

}


.tabela-painel tr.linha-parada td {

    background: #fff4e5;

    color: #8a4b00;

    font-weight: 600;

}


@media (max-width: 1000px) {

    .painel-cinco,
    .painel-duas-colunas {

        grid-template-columns: 1fr 1fr;

    }

}


@media (max-width: 650px) {

    .painel-cinco,
    .painel-duas-colunas {

        grid-template-columns: 1fr;

    }

    .painel-aba {

        padding: 8px 10px;

        font-size: 13px;

    }

}



.lote-sem-preco {

    display: inline-block;

    margin-left: 6px;

    background: #fff4e5;

    color: #8a4b00;

    font-size: 10px;

    font-weight: 700;

    padding: 2px 8px;

    border-radius: 12px;

}



/* ==================================================
   MENSAGENS DE CONFIRMAÇÃO (FLASH)
================================================== */

.mensagens-flash {

    padding: 0 6% 0 6%;

    display: grid;

    gap: 10px;

}


.mensagem-flash {

    border-radius: 12px;

    padding: 14px 18px;

    font-weight: 600;

    font-size: 14px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

}


.mensagem-sucesso {

    background: #e6f4ea;

    color: #1e6b34;

    border-left: 5px solid #1e8e3e;

}


.mensagem-aviso {

    background: #fff4e5;

    color: #8a4b00;

    border-left: 5px solid #e0a100;

}


/* ==================================================
   SAÍDA RÁPIDA E CONTAGEM
================================================== */

.busca-linhas {

    max-width: 420px;

    margin-bottom: 12px;

}


.tabela-entrada-lote tr.linha-destaque td {

    background: #eef1fb;

}


.valor-estimado {

    font-weight: 600;

    color: #27418c;

    white-space: nowrap;

}


.confirmacao-sobra {

    border-left: 5px solid #e0a100;

}


.confirmacao-sobra h2 {

    font-size: 17px;

    color: #8a4b00;

    margin: 0 0 6px 0;

}


.sobra-item {

    display: flex;

    flex-wrap: wrap;

    justify-content: space-between;

    align-items: center;

    gap: 8px 20px;

    padding: 12px 0;

    border-bottom: 1px solid #f1f1f1;

}


.sobra-opcoes {

    display: flex;

    flex-wrap: wrap;

    gap: 6px 18px;

}


@media (max-width: 650px) {

    .mensagens-flash {

        padding: 0 15px;

    }

}



/* ==================================================
   ESTOQUE EM CAIXAS + CARD CLICÁVEL
================================================== */

.produto-card {

    position: relative;

}


.produto-card-link {

    position: absolute;

    inset: 0;

    z-index: 1;

    border-radius: inherit;

}


.produto-card:has(.produto-card-link):hover {

    box-shadow: 0 6px 22px rgba(39, 65, 140, 0.25);

    transform: translateY(-2px);

    transition: 0.15s;

}


.produto-card .produto-alerta-lotes {

    position: relative;

    z-index: 2;

}



.produto-estoque-detalhe {

    display: block;

    font-size: 12px;

    color: #888;

    margin-bottom: 6px;

}




/* ==================================================
   DASHBOARD DO OPERADOR: AÇÕES DO DIA
================================================== */

.acoes-dia {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 16px;

    margin-bottom: 16px;

}


.acao-dia {

    display: flex;

    flex-direction: column;

    gap: 4px;

    background: white;

    border-radius: 16px;

    padding: 22px 20px;

    text-decoration: none;

    color: #333;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

    border-top: 5px solid #27418c;

    transition: 0.15s;

}


.acao-dia:hover {

    transform: translateY(-2px);

    box-shadow: 0 8px 26px rgba(39, 65, 140, 0.25);

    color: #333;

}


.acao-dia strong {

    font-size: 18px;

    color: #27418c;

}


.acao-dia span {

    font-size: 13px;

    color: #777;

}


.acao-dia .acao-dia-icone {

    font-size: 30px;

}


.acao-dia-principal {

    background: linear-gradient(135deg, #27418c, #3a5bb8);

}


.acao-dia-principal strong,
.acao-dia-principal span {

    color: white;

}


.acao-dia-pendente {

    border-top-color: #e0a100;

}


.acoes-secundarias {

    margin-bottom: 25px;

}


@media (max-width: 1000px) {

    .acoes-dia {

        grid-template-columns: 1fr 1fr;

    }

}


@media (max-width: 650px) {

    .acoes-dia {

        gap: 10px;

    }

    .acao-dia {

        padding: 16px 14px;

    }

    .acao-dia strong {

        font-size: 16px;

    }

}



.produto-estoque-linha {

    display: block;

    margin: 8px 0 4px 0;

    font-size: 13px;

    color: #555;

}


.produto-estoque-numero {

    display: block;

    font-size: 19px;

    font-weight: 800;

    color: #1e7d4f;

}



.aviso-acrescimo {

    display: block;

    margin: 6px 0;

    padding: 6px 10px;

    border-radius: 8px;

    background: #fff4e5;

    color: #8a4b00;

    font-size: 12px;

    font-weight: 600;

}


/* Produtos em Estoque: filtros de lote e ações Editar/Excluir */

.filtro-rotulo {

    display: flex;

    align-items: center;

    gap: 6px;

    margin: 0;

    font-size: 14px;

    color: #333;

}

.filtros-produtos .campo-input.campo-dias,
.filtros-produtos .filtro-rotulo input[type="date"] {

    min-width: 0;

}

.filtros-produtos .campo-input.campo-dias {

    width: 70px;

}

.acoes-lote {

    display: flex;

    gap: 6px;

    flex-wrap: wrap;

}

.acoes-lote form {

    margin: 0;

}


/* Aviso de fim de expediente (contagem / produção pendente) */

.aviso-expediente {

    margin-bottom: 10px;

}

.aviso-expediente a {

    color: inherit;

    font-weight: 700;

    margin-left: 6px;

    white-space: nowrap;

}


/* Catálogo: escolha dos preços, busca/contador e seleção por card */

.catalogo-precos {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 4px 16px;

    margin-bottom: 8px;

}

.catalogo-precos-titulo {

    font-size: 13px;

    font-weight: 700;

    color: #555;

}

.catalogo-barra .busca-produto-container {

    margin-bottom: 12px;

}

.catalogo-selecao {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 10px;

}

.catalogo-linha {

    cursor: pointer;

}

.catalogo-linha.selecionada td {

    background: #eef1fb;

}

.catalogo-linha td.especial-oculto > * {

    display: none;

}

.catalogo-grupo[hidden] {

    display: none;

}

#btnGerarPdf:disabled {

    opacity: 0.5;

    cursor: not-allowed;

}

@media (max-width: 650px) {

    .catalogo-linha.selecionada {

        border-color: #27418c;

        background: #eef1fb;

    }

    .catalogo-linha td.especial-oculto {

        display: none;

    }

}


/* Estoque: quanto sai o kg/un. comprando a caixa fechada */

.preco-kg-caixa {

    display: block;

    font-size: 0.9em;

    font-weight: 600;

    color: #2e6b2e;

}

.preco-kg-caixa-sem-desconto {

    color: #b45309;

}

.aviso-caixa-desconto[hidden] {

    display: none;

}


/* Lançamento da produção: sacos por qualidade e histórico por lote */

.tabela-producao-qualidades {

    width: 100%;

    border-collapse: collapse;

    margin-top: 4px;

}

.tabela-producao-qualidades th {

    font-size: 12px;

    color: #777;

    font-weight: 600;

    text-align: left;

    padding: 4px 6px;

}

.tabela-producao-qualidades td {

    padding: 4px 6px;

    vertical-align: middle;

}

.tabela-producao-qualidades .campo-input {

    margin: 0;

}

.tabela-producao-qualidades .campo-sacos {

    max-width: 110px;

}

#totalProducao {

    font-weight: 600;

    margin-top: 8px;

}

.linha-lote-producao td {

    background: #eef1fb;

    font-weight: 600;

}

.lote-producao-total {

    font-weight: 400;

    color: #555;

    margin-left: 8px;

}

.painel-filtros .campo[hidden] {

    display: none;

}


/* Contagem: caixas abertas e vendidas no kg na banca (preço da banca) */

.contagem-fechadas {

    margin-top: 6px;

}

.contagem-fechadas[hidden],
.link-fechadas[hidden],
.rotulo-fechadas[hidden] {

    display: none;

}

.link-fechadas {

    background: none;

    border: none;

    padding: 0;

    color: #27418c;

    text-decoration: underline;

    font-size: 13px;

    cursor: pointer;

}

.rotulo-fechadas {

    display: flex;

    align-items: center;

    gap: 6px;

    font-size: 13px;

    color: #555;

    margin: 0;

}

.painel-alerta-contagem:not(:empty) {

    color: #8a4b00;

    font-weight: 600;

}


/* Dashboard do Operador: "Chegou hoje" com foto/ícone, quantidade e fornecedor */

.chegadas-hoje {

    list-style: none;

    padding: 0;

    margin: 0;

    display: grid;

    gap: 8px;

}

.chegada-item {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 8px 10px;

    border: 1px solid #e3ecd9;

    border-left: 4px solid #2e7d32;

    border-radius: 10px;

    background: #f6fbf2;

}

.chegada-foto {

    width: 44px;

    height: 44px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 8px;

    background: white;

}

.chegada-texto {

    display: flex;

    flex-direction: column;

    gap: 2px;

    min-width: 0;

    font-size: 13px;

    color: #555;

}

.chegada-texto strong {

    font-size: 15px;

    color: #1f2d1f;

}

.chegada-selo {

    font-size: 12px;

}

/* selo "Chegou hoje" do card do Estoque mais visível */

.produto-chegou-hoje {

    background: #e6f4e1;

    color: #1e6b25;

    border: 1px solid #b9dfb0;

    border-radius: 999px;

    padding: 2px 8px;

    font-weight: 700;

}


/* Estoque: busca + filtro por fornecedor + ordenação lado a lado */

.estoque-ferramentas {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 10px;

    margin-bottom: 26px;

}

.estoque-ferramentas .busca-produto-container {

    flex: 1 1 280px;

    margin-bottom: 0;

}

.estoque-ferramenta {

    width: auto;

    flex: 0 1 230px;

    margin: 0;

}

.categoria-secao[hidden] {

    display: none;

}

.aviso-lucro-minimo[hidden] {

    display: none;

}

.aviso-lucro-minimo {

    background: #e8f0fe;

    color: #27418c;

}


/* Página Preços dos pavilhões: venda e custo lado a lado */

.rotulo-preco-pavilhao {

    display: flex;

    flex-direction: column;

    gap: 2px;

    font-size: 12px;

    color: #555;

    margin: 0;

}

.form-preco-pavilhao2 {

    flex-wrap: wrap;

    align-items: flex-end;

}


/* Faixa "bolsa" do Operador: preços do pavilhão que mudaram nas últimas 24 h */

.faixa-precos {

    display: flex;

    align-items: center;

    gap: 12px;

    margin: 0 6% 12px;

    padding: 8px 14px;

    background: #10203f;

    color: #f1f5ff;

    border-radius: 10px;

    overflow: hidden;

    font-size: 14px;

}

.faixa-precos[hidden] {

    display: none;

}

.faixa-precos-titulo {

    font-weight: 700;

    white-space: nowrap;

    color: #ffd166;

}

.faixa-precos-trilho {

    flex: 1;

    overflow: hidden;

    min-width: 0;

}

.faixa-precos-itens {

    display: inline-flex;

    gap: 28px;

    white-space: nowrap;

    padding-left: 100%;

    animation: faixa-rolar 40s linear infinite;

}

.faixa-precos:hover .faixa-precos-itens {

    animation-play-state: paused;

}

.faixa-preco small {

    color: #9fb0d6;

    margin-left: 4px;

}

.faixa-preco-sobe {

    color: #7ee08a;

}

.faixa-preco-desce {

    color: #ff8a80;

}

@keyframes faixa-rolar {

    from { transform: translateX(0); }

    to { transform: translateX(-100%); }

}

@media (prefers-reduced-motion: reduce) {

    .faixa-precos-itens {

        animation: none;

        padding-left: 0;

        flex-wrap: wrap;

        white-space: normal;

    }

}

@media (max-width: 650px) {

    .faixa-precos {

        margin: 0 15px 12px;

    }

}

.faixa-preco-sobe-texto {

    color: #1e7d4f;

    font-weight: 700;

}

.faixa-preco-desce-texto {

    color: #c0392b;

    font-weight: 700;

}

/* Entrada que parece repetida: pede confirmação */

.confirmacao-repetida {

    background: #fff4e5;

    border-left: 5px solid #e0a100;

    border-radius: 10px;

    padding: 12px 14px;

    margin: 12px 0;

    color: #8a4b00;

    font-weight: 600;

}

/* Página Preços: custo do pavilhão ainda não informado (mesmo visual do aviso do acréscimo) */

.aviso-custo {

    display: block;

    margin: 6px 0;

    padding: 6px 10px;

    border-radius: 8px;

    background: #fff4e5;

    color: #8a4b00;

    font-size: 12px;

}

/* Revisão dos insumos: fardos fechados + unidades soltas */

.contagem-insumo {

    display: flex;

    gap: 8px;

    flex-wrap: wrap;

    align-items: flex-end;

}


/* =========================
   CONFIGURAÇÕES
========================= */

.configuracoes-titulo {

    margin: 0 0 10px 0;

    font-size: 18px;

    font-weight: 600;

    color: #555555;

}


.configuracoes-card {

    margin-bottom: 18px;

}


.configuracoes-card .campo-input {

    max-width: 320px;

}


.configuracoes-card .campo .texto-ajuda {

    display: block;

}


/* =========================
   HISTÓRICO DE ENTREGAS
========================= */

@media (max-width: 650px) {

    .tabela-entregas td {

        gap: 10px;

        text-align: right;

    }


    .tabela-entregas td > * {

        min-width: 0;

    }

}


/* =========================
   CONTAGEM POR LOCAL
========================= */

.contagem-ferramentas {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 10px 20px;

}


.contagem-ferramentas .busca-linhas {

    flex: 1 1 220px;

}


.secao-contagem summary {

    display: flex;

    flex-wrap: wrap;

    justify-content: space-between;

    align-items: center;

    gap: 6px;

    cursor: pointer;

    list-style: none;

}


.secao-contagem summary::-webkit-details-marker {

    display: none;

}


.secao-contagem-nome {

    font-size: 18px;

    font-weight: 600;

    color: #27418c;

}


.secao-contagem-nome::before {

    content: "▾ ";

    color: #999;

}


.secao-contagem:not([open]) .secao-contagem-nome::before {

    content: "▸ ";

}


.contador-secao {

    font-size: 13px;

    color: #555;

    background: #eef1fb;

    border-radius: 999px;

    padding: 4px 12px;

}


.contagem-categoria {

    margin: 18px 0 4px;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.5px;

    text-transform: uppercase;

    color: #999;

}


.barra-contagem {

    position: sticky;

    bottom: 0;

    z-index: 5;

    display: flex;

    flex-wrap: wrap;

    justify-content: space-between;

    align-items: center;

    gap: 10px;

    margin-top: 20px;

    padding: 14px 20px;

    background: white;

    border-radius: 14px 14px 0 0;

    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);

}


.barra-contagem .botoes-formulario {

    margin: 0;

}


.link-claro {

    color: #ffd166;

    text-decoration: underline;

}


/* =========================
   TELA DO LOTE
========================= */

.lote-resumo {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 16px 40px;

}


.lote-foto-grande {

    width: 64px;

    height: 64px;

}


.lote-resumo-nome {

    display: block;

    font-size: 18px;

}


.resumo-lote {

    flex: 1 1 360px;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

    gap: 12px 24px;

    margin: 0;

}


.resumo-lote dt {

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.5px;

    text-transform: uppercase;

    color: #999;

}


.resumo-lote dd {

    margin: 2px 0 0;

    color: #333;

}


.campos-lote {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 0 24px;

}


.zona-perigo {

    border-left: 5px solid #dc3545;

}


.barra-contagem .botoes-formulario {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 10px;

}


.barra-contagem .botoes-formulario .btn-cadastrar,
.barra-contagem .botoes-formulario .btn {

    width: auto;

    margin: 0;

}


/* ==================================================
   MENU COM SUBMENUS (OPERADOR E VENDEDOR)
================================================== */

.logo-link {
    display: inline-block;
}

.menu {
    align-items: center;
}

.menu-grupo {
    position: relative;
}

.menu-grupo > summary {
    list-style: none;
    cursor: pointer;
    color: white;
    font-weight: bold;
    user-select: none;
}

.menu-grupo > summary::-webkit-details-marker {
    display: none;
}

.menu-grupo > summary::after {
    content: " ▾";
    font-size: 12px;
    opacity: 0.8;
}

.menu-grupo[open] > summary::after {
    content: " ▴";
}

.menu-grupo > summary:hover {
    opacity: 0.8;
}

.submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: -12px;
    z-index: 50;
    min-width: 210px;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.menu .submenu a {
    color: #27418c;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 8px;
}

.menu .submenu a:hover {
    background: #eef2fb;
    opacity: 1;
}

@media (max-width: 768px) {

    .submenu {
        left: 0;
        min-width: 190px;
    }

}


/* ==================================================
   PEÇAS VISUAIS (components/visual.html)
================================================== */

.cartoes-resumo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.cartao-numero {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: white;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #27418c;
    min-width: 0;
}

.cartao-numero-icone {
    font-size: 22px;
}

.cartao-numero-valor {
    font-size: 26px;
    line-height: 1.1;
    color: #27418c;
    overflow-wrap: anywhere;
}

.cartao-numero-rotulo {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.cartao-numero-detalhe {
    font-size: 12px;
    color: #888;
    overflow-wrap: anywhere;
}

.cartao-numero-ok { border-left-color: #4caf6d; }
.cartao-numero-ok .cartao-numero-valor { color: #2e7d4a; }
.cartao-numero-atencao { border-left-color: #e0a100; }
.cartao-numero-atencao .cartao-numero-valor { color: #8a5a00; }
.cartao-numero-alerta { border-left-color: #d64545; }
.cartao-numero-alerta .cartao-numero-valor { color: #b02a2a; }

.barra-nivel {
    display: block;
    width: 100%;
    max-width: 160px;
    height: 8px;
    margin-top: 6px;
    background: #e8ecf5;
    border-radius: 6px;
    overflow: hidden;
}

.barra-nivel-preenchida {
    display: block;
    height: 100%;
    background: #27418c;
    border-radius: 6px;
}

.barra-nivel-ok .barra-nivel-preenchida { background: #4caf6d; }
.barra-nivel-atencao .barra-nivel-preenchida { background: #e0a100; }
.barra-nivel-alerta .barra-nivel-preenchida { background: #d64545; }

/* filtros que aplicam sozinhos: o botão só aparece sem JavaScript */
.filtro-automatico .botao-filtrar {
    display: none;
}


/* ==================================================
   ABAS DE PÁGINA (ENTREGAS | EM ESTOQUE, CLIENTES)
================================================== */

.abas-pagina {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.aba-pagina {
    padding: 10px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.aba-pagina:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.aba-pagina-ativa,
.aba-pagina-ativa:hover {
    background: white;
    color: #27418c;
}

.grade-fornecedores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

.cartao-fornecedor {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f5f7fc;
    border-left: 4px solid #4caf6d;
}

.cartao-fornecedor .produto-preco-secundario {
    margin: 0;
}

.cartao-fornecedor-numero {
    font-size: 22px;
    font-weight: 700;
    color: #27418c;
}

.cartao-fornecedor-numero small {
    font-size: 12px;
    font-weight: 500;
    color: #777;
}

.cartao-fornecedor-parado {
    border-left-color: #c9cfdd;
    opacity: 0.75;
}

.texto-alerta {
    color: #b02a2a !important;
    font-weight: 600;
}


/* ==================================================
   VITRINE DE PACOTES E EMBALAGENS
================================================== */

.vitrine {
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 18px 18px 14px;
    margin-bottom: 20px;
    overflow: hidden;
}

.vitrine-palco {
    position: relative;
}

.vitrine-trilho {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.vitrine-trilho::-webkit-scrollbar {
    display: none;
}

.vitrine-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: center;
    padding: 6px 64px;
    box-sizing: border-box;
}

.vitrine-destaque {
    position: relative;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(180deg, #eef2fb 0%, #dfe6f6 70%, #cfd9ef 100%);
    overflow: hidden;
}

.vitrine-luz {
    position: absolute;
    inset: -20% 10% 30% 10%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%);
}

.vitrine-chao {
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 26px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(39, 65, 140, 0.35) 0%, rgba(39, 65, 140, 0) 70%);
}

.vitrine-foto {
    position: relative;
    z-index: 1;
    width: 78%;
    max-width: 280px;
    max-height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.18));
}

svg.vitrine-foto {
    height: 220px;
}

.vitrine-selo {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    background: #27418c;
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 14px;
}

.vitrine-nome {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 700;
    color: #27418c;
}

.vitrine-numeros {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.vitrine-numero {
    display: flex;
    flex-direction: column;
    background: #f5f7fc;
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 0;
}

.vitrine-numero span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #777;
}

.vitrine-numero strong {
    font-size: 30px;
    line-height: 1.15;
    color: #27418c;
}

.vitrine-numero small {
    font-size: 11px;
    color: #888;
    overflow-wrap: anywhere;
}

.vitrine-numero-zero strong {
    color: #b02a2a;
}

.vitrine-vazio {
    font-size: 13px;
    color: #555;
    background: #f5f7fc;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.vitrine-vazio-baixo {
    background: #fff4e5;
}

.vitrine-vazio .barra-nivel {
    max-width: none;
}

.vitrine-embalar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.vitrine-embalar select.campo-input {
    flex: 1 1 200px;
    width: auto;
}

.vitrine-quantidade {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vitrine-quantidade .campo-input {
    width: 64px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.vitrine-mais-menos {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #27418c;
    color: white;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.vitrine-previa {
    flex-basis: 100%;
    font-size: 12px;
    color: #777;
}

.vitrine-previa-alerta {
    color: #b02a2a;
    font-weight: 600;
}

.vitrine-botao-embalar {
    flex: 1 1 100%;
}

.vitrine-seta {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #27418c;
    color: white;
    font-size: 34px;
    line-height: 1;
    padding-bottom: 4px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(39, 65, 140, 0.35);
    transition: 0.15s;
}

.vitrine-seta:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.08);
}

.vitrine-seta:disabled {
    opacity: 0.25;
    cursor: default;
}

.vitrine-seta-anterior {
    left: 0;
}

.vitrine-seta-proxima {
    right: 0;
}

.vitrine-contador {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #777;
    margin: 10px 0 8px;
}

.vitrine-miniaturas {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scroll-behavior: smooth;
}

.vitrine-miniatura {
    flex: 0 0 auto;
    width: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 6px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: #f5f7fc;
    cursor: pointer;
    font-family: inherit;
}

.vitrine-miniatura-foto {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.vitrine-miniatura span {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vitrine-miniatura small {
    font-size: 10px;
    color: #888;
}

.vitrine-miniatura-baixa small {
    color: #b02a2a;
    font-weight: 600;
}

.vitrine-miniatura-ativa {
    border-color: #27418c;
    background: white;
    box-shadow: 0 4px 12px rgba(39, 65, 140, 0.2);
}

.filtro-titulo {
    color: #27418c;
    margin-right: 6px;
}

.dias-embalados {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dia-embalado {
    border-radius: 12px;
    background: #f5f7fc;
    padding: 10px 14px;
}

.dia-embalado > summary {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    list-style: none;
}

.dia-embalado > summary::-webkit-details-marker {
    display: none;
}

.dia-embalado .barra-nivel {
    max-width: none;
    margin-top: 0;
    height: 12px;
}

.dia-embalado-data {
    font-weight: 600;
    color: #27418c;
}

.dia-embalado-total {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

.dia-embalado-lista {
    list-style: none;
    padding: 10px 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dia-embalado-lista li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lote-foto-pequena {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

@media (max-width: 800px) {

    .vitrine {
        padding: 12px 10px 10px;
    }

    .vitrine-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 0 4px;
    }

    .vitrine-destaque {
        height: 230px;
    }

    .vitrine-foto {
        max-height: 190px;
        max-width: 190px;
    }

    svg.vitrine-foto {
        height: 160px;
    }

    .vitrine-seta {
        top: 115px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .vitrine-nome {
        font-size: 21px;
        margin-bottom: 10px;
    }

    .vitrine-numero strong {
        font-size: 22px;
    }

    .vitrine-numero {
        padding: 8px;
    }

    .dia-embalado > summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dia-embalado > summary .barra-nivel {
        grid-column: 1 / -1;
        grid-row: 2;
    }

}

.menu a,
.menu-grupo > summary {
    white-space: nowrap;
}

.menu-grupo > summary {
    display: block;
}

@media (min-width: 769px) {

    .menu {
        gap: 30px;
    }

}


/* ==================================================
   CLIENTES, CATÁLOGO PRONTO E PAINEL DO VENDEDOR
================================================== */

.grade-clientes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.cartao-cliente {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: white;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.cartao-cliente-topo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cartao-cliente-topo strong {
    font-size: 17px;
    color: #27418c;
}

.cartao-cliente-inicial {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #27418c, #3a5bb8);
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.cartao-cliente-dados {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #555;
}

.cartao-cliente-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: auto;
}

.cartao-cliente-acoes .btn-cadastrar {
    flex: 1 1 auto;
    width: auto;
    text-align: center;
    text-decoration: none;
}

.btn-whatsapp {
    border-color: #25a244;
    color: #1d7f36;
    text-decoration: none;
}

.clientes-inativos summary {
    cursor: pointer;
    font-weight: 600;
    color: #27418c;
}

.clientes-inativos ul,
.lista-simples {
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 14px;
    color: #555;
}

.clientes-inativos li a {
    margin-left: 8px;
}

.estado-vazio {
    text-align: center;
    padding: 40px 25px;
}

.estado-vazio-icone {
    font-size: 44px;
}

.estado-vazio .btn-cadastrar {
    display: inline-block;
    width: auto;
    padding-left: 24px;
    padding-right: 24px;
    text-decoration: none;
}

.grupo-costuma {
    margin-top: 16px;
}

.grupo-costuma-titulo {
    font-size: 14px;
    font-weight: 700;
    color: #27418c;
    margin: 0 0 8px;
}

.grade-costuma {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.opcao-costuma {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 2px solid #e3e8f3;
    cursor: pointer;
    font-size: 13px;
    background: white;
}

.opcao-costuma input {
    flex: 0 0 auto;
}

.opcao-costuma-marcada {
    border-color: #27418c;
    background: #eef2fb;
    font-weight: 600;
}

.etiqueta-cliente {
    display: inline-block;
    margin: 4px 4px 0 0;
    background: #fff4d6;
    color: #7a5600;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.etiqueta-cliente-ultimo {
    background: #e6f0ff;
    color: #27418c;
}

.campo-cliente-livre {
    margin-top: 8px;
}

.catalogo-cliente-aviso {
    margin-bottom: 16px;
}

.painel-vendedor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.lista-vendedor {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lista-vendedor li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lista-vendedor li > span:not(.seta-preco):not(.cartao-cliente-inicial) {
    flex: 1 1 auto;
    min-width: 0;
}

.seta-preco {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: #eef2fb;
    color: #27418c;
}

.seta-preco-sobe {
    background: #fde8e8;
    color: #b02a2a;
}

.seta-preco-desce {
    background: #e5f5ea;
    color: #2e7d4a;
}


/* ==================================================
   CONTAGEM: COMPLETAR DEPOIS E CORRIGIR
================================================== */

.faixa-contagem-dia {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    border-left: 5px solid #e0a100;
}

.faixa-contagem-dia > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.faixa-contagem-faltam {
    color: #8a5a00;
    font-weight: 600;
}

.faixa-contagem-completa {
    color: #2e7d4a;
    font-weight: 600;
}

.modo-contagem {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.ja-contado {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2e7d4a;
}

.linha-contada td {
    background: #f3faf5;
}

.aviso-faltam {
    flex-basis: 100%;
    background: #fff4e5;
    color: #8a4b00;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
}

.aviso-faltam details {
    margin: 6px 0;
    font-size: 12px;
}

.aviso-faltam summary {
    cursor: pointer;
}

.aviso-faltam .botoes-formulario {
    margin-top: 6px;
}

.vitrine-botao-embalar:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 650px) {

    .cartoes-resumo {
        grid-template-columns: repeat(auto-fit, minmax(98px, 1fr));
        gap: 8px;
    }

    .cartao-numero {
        padding: 10px 10px 10px 12px;
        border-left-width: 4px;
    }

    .cartao-numero-icone {
        font-size: 16px;
    }

    .cartao-numero-valor {
        font-size: 20px;
    }

    .cartao-numero-rotulo {
        font-size: 11px;
        line-height: 1.25;
    }

    .cartao-numero-detalhe {
        display: none;
    }

}

.celula-bloco {
    display: block;
    min-width: 0;
}

.celula-bloco .produto-preco-secundario {
    display: block;
}

.cartao-cliente-acoes .btn-cadastrar {
    margin: 0;
    padding: 10px 16px;
    font-size: 13px;
}


/* ==================================================
   FUNDO DO SISTEMA (TODAS AS TELAS): MALHA DE PONTOS BEM
   FRACA + LUZ NO CANTO DE CIMA E UM TOQUE DE VERDE EMBAIXO.
   A luz fica numa camada fixa (não rola com a página).
================================================== */

.overlay {
    position: relative;
    background-color: #27418c;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

.overlay::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 0%, rgba(130, 165, 255, 0.45), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(76, 175, 109, 0.18), transparent 50%);
}

/* conteúdo acima da luz; o menu acima do conteúdo (submenu abre por cima) */
.overlay > * {
    position: relative;
    z-index: 1;
}

.overlay > nav {
    z-index: 2;
}


/* ==================================================
   INÍCIO DO OPERADOR: "SEU DIA NA BANCA"
================================================== */

.dia-banca {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    padding: 24px 28px;
    border-radius: 20px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 30px rgba(10, 20, 60, 0.25);
}

.dia-banca-ola h1 {
    margin: 0 0 6px;
    font-size: 30px;
    font-weight: 700;
}

.dia-banca-ola p {
    margin: 0;
    font-size: 15px;
    opacity: 0.85;
}

.dia-banca-resumo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 8px;
}

.dia-banca-pronto {
    font-weight: 600;
}

.dia-banca-barra,
.dia-banca-mini {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.18);
}

.dia-banca-barra {
    height: 10px;
    margin-bottom: 14px;
}

.dia-banca-barra > span,
.dia-banca-mini > span {
    display: block;
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #4caf6d, #8fd98f);
    animation: encher-barra 0.9s ease-out both;
}

@keyframes encher-barra {
    from { width: 0; }
}

.dia-banca-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.dia-banca-tarefa {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: white;
    color: #27418c;
    text-decoration: none;
    border-left: 4px solid #e0a100;
    transition: transform 0.15s, box-shadow 0.15s;
}

.dia-banca-tarefa:hover {
    color: #27418c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 20, 60, 0.25);
}

.dia-banca-tarefa-feita {
    border-left-color: #4caf6d;
}

.dia-banca-icone {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff4d6;
    font-size: 17px;
}

.dia-banca-tarefa-feita .dia-banca-icone {
    background: #e5f5ea;
    color: #2e7d4a;
    font-weight: 700;
}

.dia-banca-texto {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dia-banca-texto strong {
    font-size: 14px;
}

.dia-banca-texto small {
    font-size: 12px;
    color: #777;
}

.dia-banca-mini {
    grid-column: 2;
    height: 5px;
    background: #eef2fb;
}

@media (max-width: 800px) {

    .dia-banca {
        grid-template-columns: minmax(0, 1fr);
        padding: 18px;
        gap: 14px;
    }

    .dia-banca-ola h1 {
        font-size: 24px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .dia-banca-barra > span,
    .dia-banca-mini > span {
        animation: none;
    }

    .dia-banca-tarefa {
        transition: none;
    }

}


/* ==================================================
   CHEGOU MERCADORIA: PREVISTOS PRA HOJE
================================================== */

.previstos-hoje {
    margin-bottom: 20px;
}

.previstos-titulo {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}

.previstos-titulo span {
    font-weight: 400;
    opacity: 0.8;
}

.previstos-vazio {
    color: white;
    opacity: 0.85;
    margin-bottom: 20px;
}

.grade-previstos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.cartao-previsto {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border-radius: 16px;
    background: white;
    color: #27418c;
    text-decoration: none;
    border-top: 5px solid #e0a100;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s, box-shadow 0.15s;
}

.cartao-previsto:hover {
    color: #27418c;
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(10, 20, 60, 0.3);
}

.cartao-previsto strong {
    font-size: 18px;
}

.cartao-previsto small {
    font-size: 12px;
    color: #777;
}

.cartao-previsto-status {
    font-size: 12px;
    font-weight: 700;
    color: #8a5a00;
}

.cartao-previsto-acao {
    margin-top: auto;
    padding-top: 8px;
    font-size: 13px;
    font-weight: 700;
}

.cartao-previsto-entregou {
    border-top-color: #4caf6d;
    opacity: 0.85;
}

.cartao-previsto-entregou .cartao-previsto-status {
    color: #2e7d4a;
}

.cartao-pavilhao {
    border-top-color: #27418c;
}

.atalhos-previstos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: white;
    font-size: 13px;
}

.atalho-previsto {
    padding: 6px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    font-weight: 600;
    text-decoration: none;
}

.atalho-previsto:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.atalho-previsto-entregou {
    opacity: 0.7;
}

.atalho-previsto-atual,
.atalho-previsto-atual:hover {
    background: white;
    color: #27418c;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {

    .cartao-previsto {
        transition: none;
    }

}


/* ==================================================
   BONECO (AVATAR) DE CADA USUÁRIO
================================================== */

.boneco {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(160deg, #eef2fb, #cfd9ef);
    box-shadow: 0 4px 14px rgba(10, 20, 60, 0.25);
}

.boneco-inicial {
    background: linear-gradient(135deg, #4caf6d, #2e7d4a);
    color: white;
    font-weight: 700;
}

.boneco-menu {
    width: 38px;
    height: 38px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

.boneco-medio {
    width: 72px;
    height: 72px;
    font-size: 30px;
}

.boneco-grande {
    width: 96px;
    height: 96px;
    font-size: 40px;
    border: 3px solid rgba(255, 255, 255, 0.85);
    animation: boneco-chega 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes boneco-chega {
    from { opacity: 0; transform: scale(0.6) rotate(-8deg); }
}

.menu-usuario {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.menu .menu-usuario + .menu-sair {
    margin-left: 0;
}

.menu-usuario-nome {
    font-weight: 600;
}

.dia-banca-ola,
.cabecalho-com-boneco {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.boneco-editar {
    display: flex;
    align-items: center;
    gap: 14px;
}

@media (max-width: 800px) {

    .boneco-grande {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }

    .menu-usuario-nome {
        display: none;
    }

}

@media (prefers-reduced-motion: reduce) {

    .boneco-grande {
        animation: none;
    }

}

/* menu que não cabe numa linha quebra em vez de passar da tela (o do
   Administrador tem 7 itens + boneco + Sair); margem lateral acompanha a tela */
.navbar {
    padding-left: clamp(20px, 8vw, 200px);
    padding-right: clamp(20px, 8vw, 200px);
}

.navbar > .container-fluid {
    flex-wrap: nowrap;
    gap: 24px;
}

.menu {
    flex-wrap: wrap;
    row-gap: 12px;
    justify-content: flex-end;
    min-width: 0;
}

@media (max-width: 768px) {

    .navbar > .container-fluid {
        flex-wrap: wrap;
    }

    .menu {
        justify-content: flex-start;
    }

}


/* ==================================================
   PREÇO POR CONDIÇÃO: TABELA DE PREÇOS, ESCADA DO PREÇO
   (mesmas cores nos 5 degraus: custo, mínimo, preço,
   entrega, nota — em Configurações e na Tabela)
================================================== */

.tp-escada {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.tp-degrau {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    background: white;
    border-radius: 12px;
    border-top: 4px solid #9aa6b2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.tp-degrau span { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6b7682; }
.tp-degrau strong { font-size: 14px; color: #1f2a37; }
.tp-degrau-custo { border-top-color: #9aa6b2; }
.tp-degrau-minimo { border-top-color: #d64545; }
.tp-degrau-preco { border-top-color: #2e8b4e; }
.tp-degrau-entrega { border-top-color: #e0a100; }
.tp-degrau-nota { border-top-color: #b4533f; }

.tp-condicao {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 24px;
}

.tp-condicao .campo { margin-bottom: 0; min-width: 220px; flex: 0 1 280px; }

.tp-caixinhas { display: flex; flex-wrap: wrap; gap: 10px; }

.tp-caixinha {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 2px solid #d9e0ea;
    border-radius: 12px;
    background: #f7f9fc;
    cursor: pointer;
    font-weight: 700;
    color: #1f2a37;
    user-select: none;
}

.tp-caixinha input { width: 20px; height: 20px; accent-color: #2e8b4e; }
.tp-caixinha small { display: block; font-weight: 500; color: #6b7682; }
.tp-caixinha:has(input:checked) { border-color: #2e8b4e; background: #eaf6ee; }
.tp-caixinha:has(input:focus-visible) { outline: 2px solid #2e8b4e; outline-offset: 2px; }

.tp-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: 1 1 100%; }
.tp-filtros .busca-produto-container { flex: 1 1 220px; margin: 0; }
.tp-filtros select { flex: 0 1 220px; }
.tp-so-abaixo { margin: 0; }

.tp-aviso-minimo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.tp-subir-todos, .tp-subir { margin: 0; display: inline; }

.btn-link-acao {
    background: none;
    border: 0;
    padding: 0;
    margin-top: 4px;
    color: #1d5fbf;
    font-weight: 700;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.tp-tabela td { font-variant-numeric: tabular-nums; }
.tp-tabela .tp-info { display: block; color: #6b7682; }
.tp-valor { font-weight: 700; color: #1f2a37; }
.tp-valor-destaque { font-size: 18px; color: #1f6b3a; }
.tp-por { color: #6b7682; margin-left: 2px; }
.tp-sem { color: #9aa6b2; }
.tp-kg-caixa { display: block; color: #6b7682; }
.tp-custo .tp-valor { color: #5b6773; }
.tp-minimo .tp-valor { color: #b02a2a; }
.tp-linha-abaixo td:first-child { box-shadow: inset 4px 0 0 #d64545; }
.tp-linha-no-pedido td { background: #f1faf3; }

.tp-chip {
    display: inline-block;
    margin: 4px 4px 0 0;
    padding: 2px 8px;
    border-radius: 10px;
    background: #eef1f5;
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
}

.tp-chip[hidden] { display: none; }
.tp-chip-ruim { background: #fde8e8; color: #b02a2a; }
.tp-chip-atencao { background: #fff4d6; color: #7a5600; }

.tp-pedido { min-width: 190px; }
.tp-pedido-campos { display: flex; gap: 6px; margin-bottom: 6px; }
.tp-pedido .tp-qtd { width: 70px; flex: 0 0 70px; text-align: right; }
.tp-pedido .tp-un { flex: 1 1 auto; min-width: 70px; }
.tp-pedido .tp-negociado { width: 100%; font-size: 13px; }
.tp-erro { display: block; color: #b02a2a; font-weight: 700; margin-top: 4px; }
.tp-erro[hidden] { display: none; }

.tp-barra-resumo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tp-barra-resumo strong { font-size: 20px; color: #1f6b3a; font-variant-numeric: tabular-nums; }

.condicoes-cliente { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rotulo-campo-condicao { font-weight: 700; font-size: 13px; color: #1f2a37; }
.condicao-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.condicao-chip { background: #eef1f5; color: #374151; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 10px; }

@media (max-width: 768px) {
    .tp-condicao .campo { flex: 1 1 100%; }
    .tp-caixinha { flex: 1 1 140px; }
    .tp-pedido { min-width: 0; }
    .tp-barra-resumo strong { font-size: 18px; }
}

/* Configurações → Preços e margens: cabeçalho de cada degrau da escada */
.config-degrau {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 14px;
    border-left: 6px solid #9aa6b2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.config-degrau.tp-degrau-custo { border-left-color: #9aa6b2; }
.config-degrau.tp-degrau-minimo { border-left-color: #d64545; }
.config-degrau.tp-degrau-preco { border-left-color: #2e8b4e; }
.config-degrau.tp-degrau-entrega { border-left-color: #e0a100; }
.config-degrau.tp-degrau-nota { border-left-color: #b4533f; }
.config-degrau h2 { margin: 0; font-size: 20px; color: #1f2a37; }
.config-degrau p { margin: 2px 0 0; color: #5b6773; font-size: 14px; }

.config-degrau-numero {
    flex: 0 0 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
    color: white;
    background: #9aa6b2;
}

.tp-degrau-minimo .config-degrau-numero { background: #d64545; }
.tp-degrau-preco .config-degrau-numero { background: #2e8b4e; }
.tp-degrau-entrega .config-degrau-numero { background: #e0a100; }
.tp-degrau-nota .config-degrau-numero { background: #b4533f; }
.config-degrau.tp-degrau-custo, .config-degrau.tp-degrau-minimo, .config-degrau.tp-degrau-preco,
.config-degrau.tp-degrau-entrega, .config-degrau.tp-degrau-nota { border-top: 0; }

.config-campo-com-prefixo { display: flex; align-items: center; gap: 8px; max-width: 260px; }
.config-campo-com-prefixo span { font-weight: 700; color: #5b6773; }
.config-subtitulo { margin-top: 18px; }
a.condicao-chip { text-decoration: none; }
a.condicao-chip:hover { background: #dde3ea; }

/* cadastro do produto: de onde vem o preço (as margens que não valem ficam apagadas) */
.origem-preco {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #eef6f0;
    border-left: 5px solid #2e8b4e;
    color: #1f2a37;
    font-size: 14px;
}

.origem-preco[data-regra="pavilhao"] { background: #f1f3f7; border-left-color: #6b7682; }
.origem-preco[data-regra="propria"] { background: #fff8e6; border-left-color: #e0a100; }
.origem-preco a { font-size: 13px; font-weight: 700; }
.campo-sem-efeito { opacity: 0.55; }
.campo-sem-efeito label::after { content: " — não usada agora"; font-weight: 500; text-transform: none; }

/* célula da Tabela de preços: um bloco só (no celular a tabela vira cartão com o rótulo à esquerda) */
.tp-celula { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tp-celula-pedido { gap: 6px; }

@media (max-width: 768px) {
    .tp-celula { align-items: flex-end; text-align: right; }
    .tp-celula-pedido { align-items: stretch; flex: 1 1 auto; }
    .tp-pedido-campos .tp-qtd { flex: 0 0 80px; }
}

/* Pedido / catálogo: kg avulso embaixo do preço; coluna "Pro cliente" vem do pedido */
.tp-tabela .tp-avulso { display: block; color: #6b7682; }
.tp-ao-vivo .tp-celula > span { font-weight: 700; color: #1f6b3a; font-variant-numeric: tabular-nums; }
.tp-ao-vivo .tp-celula > span.tp-no-pedido { font-weight: 500; color: #9aa6b2; font-size: 13px; }
/* preço não quebra no meio ("R$" de um lado, valor do outro) */
.tp-tabela .tp-celula > span, .tp-tabela .tp-valor { white-space: nowrap; }
.tp-tabela .tp-celula small { line-height: 1.35; }
.tp-tabela .tp-valor-destaque { font-size: 17px; }
.tp-tabela .lote-produto { min-width: 170px; }
.tp-tabela th, .tp-tabela td { padding-left: 7px; padding-right: 7px; }
.tp-tabela .tp-pedido { min-width: 150px; }
.tp-tabela .tp-pedido .tp-qtd { width: 56px; flex-basis: 56px; }
.tp-tabela .tp-pedido .tp-un { min-width: 0; }

/* Pedido / catálogo: caixinha "vai no catálogo", opções do PDF recolhidas */
.tp-tabela .tp-check { width: 36px; text-align: center; }
.tp-tabela .tp-check input { width: 20px; height: 20px; accent-color: #2e8b4e; }
.tp-tabela tr.selecionada td:first-child { box-shadow: inset 4px 0 0 #2e8b4e; }
.tp-custo small, .tp-custo .tp-valor { color: #5b6773; }
.pedido-opcoes > summary { cursor: pointer; font-weight: 700; color: #1f2a37; }
.pedido-opcoes > summary small { font-weight: 500; color: #6b7682; }
.pedido-opcoes[open] > summary { margin-bottom: 12px; }
.tp-barra .botoes-formulario { flex-wrap: wrap; gap: 8px; }
.tp-barra button[disabled] { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 768px) {
    .tp-barra { padding: 10px 14px; gap: 6px; }
    .tp-barra .botoes-formulario { gap: 6px; }
    .tp-barra .botoes-formulario .btn-cadastrar,
    .tp-barra .botoes-formulario .btn-secundario,
    .tp-barra .botoes-formulario .btn { padding: 6px 10px; font-size: 13px; }
    .tp-barra #tpDetalhe { font-size: 12px; }
}

.tp-erro.tp-erro-aviso { color: #8a4b00; }

/* Estoque: mínimo (custo + R$ da faixa) no card e aviso quando o preço está abaixo */
.produto-preco-minimo { display: block; font-size: 13px; font-weight: 600; color: #b02a2a; margin-top: 2px; }
.produto-abaixo-minimo { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 10px;
    background: #fde8e8; color: #b02a2a; font-size: 12px; font-weight: 700; }
