.area-imposto-saida {
    margin-top: 26px !important;
}

#inputGroupSelectResult {
    margin-top: 5px;
}

.cmd-purchase-passo-1 {
    font-size: 14px;
}

.cmd-purchase-cancelar{
    font-size: 14px;
}

.cmd-purchase-add-produto{
    
}

.title-legenda{
    font-size: 22px;
    margin-left: 0px;
}

.legenda-vermelha {
    width: 70px;
    height: 70px;
    background-color: #ff6666;
}

.lb-msg-validacao-stap-1{
    font-size: 19px;
}

.title-purchase-xml{
    font-size: 19px;
}

.lb-produto-entrada{
    font-size: 22px;
    margin-bottom: -2px;
}

.lb-produto-entrada strong{
    font-size: 22px;
    font-weight: bold;
}

#lb-validacao-produtos{    
    font-size: 20px;    
    text-align: center; 
    width: 100%; 
    margin-top: 0px; 
    margin-bottom: 5px;
}

.label-input-text {
    margin-top: 10px;
}

#txt-nova-quantidade {
    width: 100%;
    border: 0px solid #fff;
}

.input-qtd-product{
    margin-top: -20px !important;
}

.input-qtd-product-price{
    margin-top: -10px !important;
}

.bg-info-product{
    margin-top: -13px !important;
}
/* Entrada - passo 1: notas da manifestacao */
.ent-notas { border: 1px solid #e3e8ec; border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; background: #fafcfd; }
.ent-notas-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ent-notas-topo strong { color: #2e7d32; font-size: 15px; }
.ent-sub { display: block; font-size: 12px; color: #78909c; }
.ent-busca { max-width: 320px; }
.ent-notas-lista { max-height: 240px; overflow-y: auto; margin-top: 8px; }
.ent-tabela { margin: 0; }
.ent-tabela td { padding: 7px 8px; vertical-align: middle; font-size: 13px; }
.ent-tabela small { display: block; color: #90a4ae; }
.ent-tabela tr.ent-ja td { opacity: .55; }
.ent-btn-dar { background: #2e7d32; color: #fff; border: 0; border-radius: 6px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.ent-btn-dar:hover { background: #1b5e20; }
.ent-tag-ja { background: #fff3e0; color: #e65100; border-radius: 10px; padding: 1px 8px; font-size: 11px; margin-left: 6px; }
.ent-ou { margin: 8px 0 0; color: #90a4ae; font-size: 12px; }

/* Entrada - passo 2: conferencia dos itens */
.ent-resumo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 8px; font-size: 14px; }
.ent-resumo-falta { color: #c62828; }
.ent-resumo-ok { color: #2e7d32; font-weight: 500; }
.ent-chip { display: inline-block; border-radius: 10px; padding: 1px 8px; font-size: 11px; margin-top: 2px; }
.ent-chip-ok { background: #e8f5e9; color: #2e7d32; }
.ent-chip-novo { background: #ffebee; color: #c62828; }
.ent-fator, .ent-num { width: 70px; border: 1px solid #cfd8dc; border-radius: 6px; padding: 3px 6px; text-align: center; background: #fff; }
.ent-conversao { display: block; color: #90a4ae; font-size: 11px; }
.ent-btn-remover { background: transparent; border: 0; color: #b0bec5; cursor: pointer; font-size: 14px; padding: 4px 8px; }
.ent-btn-remover:hover { color: #c62828; }

/* Entrada - janelas de decisao/vinculo */
.ent-modal .modal-content { border-radius: 14px; border: 0; overflow: hidden; }
.ent-modal-topo { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #eceff1; }
.ent-modal-topo h4 { margin: 0; font-size: 17px; font-weight: 500; color: #37474f; }
.ent-modal-x { background: none; border: 0; font-size: 24px; line-height: 1; color: #90a4ae; cursor: pointer; }
.ent-modal-corpo { padding: 16px 18px; }
.ent-modal-rodape { padding: 8px 18px 16px; text-align: center; }
.ent-item-nota { background: #f5f7f8; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.ent-item-nota small, .ent-escolhido small { display: block; color: #90a4ae; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
.ent-item-nota strong { color: #37474f; font-size: 15px; }
.ent-opcao { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1px solid #dfe5e8; background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.ent-opcao i { font-size: 22px; width: 28px; text-align: center; }
.ent-opcao span { display: block; }
.ent-opcao strong { display: block; font-size: 15px; color: #37474f; }
.ent-opcao em { display: block; font-style: normal; font-size: 12px; color: #78909c; }
.ent-opcao-sim i { color: #2e7d32; }
.ent-opcao-sim:hover { border-color: #2e7d32; background: #f1f8f2; }
.ent-opcao-novo i { color: #ef6c00; }
.ent-opcao-novo:hover { border-color: #ef6c00; background: #fff8f1; }
.ent-rotulo { display: block; font-size: 13px; color: #546e7a; margin-bottom: 4px; }
.ent-campo { border: 1px solid #cfd8dc !important; border-radius: 8px; padding: 8px 10px !important; background: #fff !important; }
.ent-escolhido { margin: 12px 0; min-height: 46px; background: #f1f8f2; border-radius: 10px; padding: 8px 12px; }
.ent-escolhido strong { color: #2e7d32; }
.ent-escolhido strong:empty::before { content: "Nenhum ainda - pesquise acima e clique no produto"; color: #90a4ae; font-weight: 400; font-size: 13px; }
.ent-btn-principal { width: 100%; background: #2e7d32; color: #fff; border: 0; border-radius: 10px; padding: 11px; font-size: 14px; cursor: pointer; }
.ent-btn-principal:hover { background: #1b5e20; }
.ent-btn-sec { background: none; border: 0; color: #78909c; font-size: 13px; cursor: pointer; padding: 6px 12px; }
.ent-btn-sec:hover { color: #37474f; text-decoration: underline; }

.ent-erro-xml { background: #fff3e0; color: #bf360c; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.ent-modal-rodape .ent-btn-principal { width: auto; padding: 9px 24px; }

/* Entrada - precificacao */
.ent-lote { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #f1f8f2; border-radius: 10px; padding: 8px 12px; margin: 0 0 8px; font-size: 13px; color: #37474f; }
.ent-lote i { color: #2e7d32; }
.ent-lote small { flex-basis: 100%; color: #78909c; }
.ent-btn-lote { background: #2e7d32; color: #fff; border: 0; border-radius: 6px; padding: 5px 14px; font-size: 12px; cursor: pointer; }
.ent-btn-lote:hover { background: #1b5e20; }
.ent-custo { font-weight: 500; white-space: nowrap; }
.ent-custo-atual, .ent-preco-atual { display: block; font-size: 11px; color: #90a4ae; white-space: nowrap; }
.ent-custo-atual.ent-sobe { color: #ef6c00; }
.ent-preco { width: 90px; }
.ent-preju { border-color: #c62828 !important; background: #ffebee !important; }

.ent-legenda { list-style: none; padding: 0; margin: 0; font-size: 13px; color: #546e7a; }
.ent-legenda li { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.ent-leg-cor { display: inline-block; width: 26px; height: 18px; border-radius: 4px; flex: none; }
.ent-leg-vermelho { background: #f8c9c9; }
.ent-leg-campo { display: inline-block; width: 26px; height: 18px; border-radius: 4px; border: 1px solid #c62828; flex: none; }
.ent-leg-seta { color: #ef6c00; width: 26px; text-align: center; flex: none; }

.ent-fat-aviso { background: #fff8e1; border-radius: 10px; padding: 10px 14px; margin: 0 0 8px; font-size: 13px; color: #4e342e; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ent-fat-aviso i { color: #ef6c00; }
.ent-data { width: auto !important; padding: 3px 6px; }
.ent-btn-descartar { background: #fff; color: #c62828; border: 1px solid #c62828; }
.ent-btn-descartar:hover { background: #ffebee; }

.ent-btn-remover-fat { width: 100%; margin-top: 8px; background: #fff; color: #c62828; border: 1px solid #c62828; border-radius: 10px; padding: 10px; font-size: 14px; cursor: pointer; }
.ent-btn-remover-fat:hover { background: #ffebee; }
#tabela-faturas-entrada tbody tr:hover { background: #f5f7f8; }

.ent-opcao-excluir i { color: #c62828; }
.ent-opcao-excluir:hover { border-color: #c62828; background: #fff5f5; }
.ent-total-compra { display: block; margin-top: 4px; color: #2e7d32; font-weight: 500; }

.ent-sugestao { background: #e8f1fb; color: #1e4f8a; border-radius: 10px; padding: 8px 12px; font-size: 12px; margin-bottom: 10px; }
.ent-sub-inline { font-size: 11px; color: #90a4ae; text-transform: none; }

/* Entrada - detalhe do item */
.ent-btn-info { background: none; border: 0; color: #1e6fc4; cursor: pointer; padding: 0 4px; font-size: 14px; }
.ent-btn-info:hover { color: #0d47a1; }
.ent-det-titulo { margin: 14px 0 8px; font-size: 14px; color: #37474f; font-weight: 600; }
.ent-det-grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ent-det-cel { background: #f5f7f8; border-radius: 8px; padding: 6px 10px; }
.ent-det-cel small { display: block; font-size: 11px; color: #90a4ae; }
.ent-det-cel strong { font-size: 13px; color: #37474f; }
.ent-det-comp { width: 100%; font-size: 13px; }
.ent-det-comp td { padding: 4px 8px; border-bottom: 1px solid #eceff1; }
.ent-det-comp .ent-nao-entra { color: #b0bec5; }
.ent-det-comp .ent-nao-entra em { font-size: 11px; }
.ent-det-comp .ent-comp-total td { font-weight: 600; border-top: 2px solid #cfd8dc; border-bottom: 0; color: #2e7d32; }
.ent-det-margem { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ent-det-col small { display: block; font-size: 11px; color: #90a4ae; letter-spacing: .4px; margin-bottom: 4px; }
.ent-det-col label { display: block; font-size: 12px; color: #78909c; margin: 6px 0 2px; }
.ent-det-val { background: #f5f7f8; border-radius: 8px; padding: 6px 10px; font-size: 13px; color: #37474f; }
.ent-det-destaque { background: #e8f5e9; color: #2e7d32; font-weight: 600; }
@media (max-width: 768px) { .ent-det-grade { grid-template-columns: repeat(2, 1fr); } .ent-det-margem { grid-template-columns: 1fr; } }

/* Entrada - botao Importar XML em destaque */
#btn-importar-xml { background-color: #0d3b66 !important; color: #fff !important; border: 0; box-shadow: 0 2px 6px rgba(13, 59, 102, .35); font-weight: 500; }
#btn-importar-xml:hover, #btn-importar-xml:focus { background-color: #0a2f52 !important; color: #fff !important; box-shadow: 0 4px 10px rgba(13, 59, 102, .45); }

/* Detalhe do item: compacto, corpo rola e o botao Aplicar fica sempre visivel */
.ent-modal-det .modal-dialog { max-width: 900px; margin-top: 1rem; }
.ent-modal-det .ent-modal-corpo { max-height: calc(100vh - 190px); overflow-y: auto; padding: 10px 16px; }
.ent-modal-det .ent-item-nota { margin-bottom: 6px; padding: 6px 10px; }
.ent-modal-det .ent-det-titulo { margin: 10px 0 6px; font-size: 13px; }
.ent-modal-det .ent-det-grade { grid-template-columns: repeat(6, 1fr); gap: 5px; }
.ent-modal-det .ent-det-cel { padding: 3px 8px; }
.ent-modal-det .ent-det-cel small { font-size: 10px; }
.ent-modal-det .ent-det-cel strong { font-size: 12px; }
.ent-modal-det .ent-det-comp td { padding: 2px 8px; font-size: 12px; }
.ent-modal-det .ent-det-margem { gap: 8px; }
.ent-modal-det .ent-det-col label { margin: 3px 0 1px; font-size: 11px; }
.ent-modal-det .ent-det-val { padding: 3px 8px; font-size: 12px; }
.ent-modal-det .ent-campo { padding: 3px 8px !important; height: auto; font-size: 12px; }
.ent-rodape-det { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 10px 16px; border-top: 1px solid #eceff1; }
.ent-rodape-det .ent-btn-principal { width: auto; padding: 8px 20px; }
@media (max-width: 768px) { .ent-modal-det .ent-det-grade { grid-template-columns: repeat(3, 1fr); } }
