body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f1f3f5;
    color: #20262d;
}

.select2-container--default .select2-selection--single {
    height: 34px !important;
    border-radius: 5px;
    border: 1px solid #cfd5da;
}

/* Centraliza o texto selecionado na vertical */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px !important;
}

/* Alinha a seta do Select2 na vertical */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
}
.coluna-acoes {
    width: 45px;
    text-align: center;
    vertical-align: middle;
    padding: 2px !important;
}
/* Display de Destaque para o Total */
        .total-display {
            background: #0f172a;
            color: #22c55e;
            border-radius: 12px;
            padding: 20px;
            text-align: right;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
        .total-display .label {
            font-size: 0.9rem;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .total-display .value {
            font-size: 2.5rem;
            font-weight: 700;
            line-height: 1.1;
        }

.btn-excluir {
    width: 28px;
    height: 17px;

    padding: 0;
    margin: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    line-height: 1;

    color: #dc3545;
    background-color: white;

    border: 1px solid #dc3545;
    border-radius: 4px;

    cursor: pointer;
}

.btn-excluir:hover {
    color: white;
    background-color: #dc3545;
}

/* =========================
   TOPO
========================= */
.topo {
    height: 64px;
    background: #111820;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 22px;
    gap: 35px;
}

.logo {
    font-size: 25px;
    font-weight: bold;
    white-space: nowrap;
}

.logo span {
    color: #65b94f;
}

.menu {
    display: flex;
    gap: 28px;
    flex: 1;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.usuario {
    white-space: nowrap;
    font-size: 14px;
}

.btn-sair {
    border: 1px solid #e35b5b;
    color: #fff;
    background: transparent;
    padding: 9px 15px;
    border-radius: 5px;
}

/* =========================
   CONTAINER
========================= */
.pdv {
    margin: 0 auto;
    padding: 22px;
    max-width: 1550px;
}

/* =========================
   CABEÇALHO DA VENDA
========================= */
.cabecalho-venda {
  display: flex;
    align-items: end;
    padding-bottom: 10px;
    background-color: #ffffff;
}

.numero-venda,
.campo,
.btn-gravar {
    padding-left: 10px;
    padding-right: 10px;
}
.numero-venda label,
.campo label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 7px;
  
  
}

.numero {
    font-size: 20px;
    font-weight: bold;
    color: #2369bd;
    height: 34px;
}

input:not([type="submit"]):not([type="button"]):not(.custom-button),
select {
    width: 100%;
    height: 34px;
    border: 1px solid #cfd5da;
    border-radius: 5px;
    padding: 0 1px;
    font-size: 15px;
    background: #fff;
    display: block;
}

input:focus,
select:focus {
    outline: none;
    border-color: #4285e5;
    box-shadow: 0 0 0 2px rgba(66,133,229,.12);
}

.btn-gravar {
    height: 44px;
    border: none;
    border-radius: 5px;
    background: #42a653;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100px;
}

.btn-gravar:hover {
    background: #358d45;
}

/* =========================
   ÁREA PRINCIPAL
========================= */
.conteudo {
    display: grid;
    grid-template-columns: 375px minmax(0, 1fr);
    gap: 25px;
}

/* =========================
   TABELA
========================= */
.painel {
    grid-column: 2;
    grid-row: 1;
    background: #fff;
    border: 1px solid #dce1e5;
    border-radius: 7px;
    overflow: hidden;
    min-height: 600px;
}

.painel-titulo {
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 17px;
    border-bottom: 1px solid #dce1e5;
    color: #2168ba;
    font-size: 16px;
    font-weight: bold;
}

.tabela {
    width: 100%;
    border-collapse: collapse;
}

.tabela th {
    background: #f6f7f8;
    font-size: 13px;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid #dce1e5;
}

.tabela td {
    padding: 13px 15px;
    border-bottom: 1px solid #e6e9eb;
    font-size: 14px;
}

.tabela th:nth-child(3),
.tabela th:nth-child(4),
.tabela th:nth-child(5),
.tabela th:nth-child(6),
.tabela td:nth-child(3),
.tabela td:nth-child(4),
.tabela td:nth-child(5),
.tabela td:nth-child(6) {
    text-align: center;
}

.valor-total {
    color: #319247;
    font-weight: bold;
}

.btn-excluir {
    border: 1px solid #dc4d4d;
    background: #fff;
    color: #dc3f3f;
    border-radius: 5px;
    padding: 7px 12px;
    cursor: pointer;
}

.area-vazia {
    height: 360px;
}

.rodape-tabela {
    border-top: 1px solid #dce1e5;
    padding: 15px;
    font-size: 14px;
    font-weight: bold;
}

/* =========================
   RESUMO
========================= */
.resumo {
    display: flex;
    flex-direction: column;
    gap: 14px;
    grid-column: 1;
    grid-row: 1;
}

.resumo-painel {
    background: #fff;
    border: 1px solid #dce1e5;
    border-radius: 7px;
    padding: 17px;
}

.resumo-titulo {
    color: #2168ba;
    font-weight: bold;
    font-size: 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dce1e5;
    margin-bottom: 15px;
}

.linha-resumo {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 14px;
}

.desconto {
    color: #d84242;
}

.acrescimo {
    color: #2168ba;
}

.total-label {
    margin-top: 13px;
    padding-top: 18px;
    border-top: 1px solid #dce1e5;
    font-size: 18px;
    font-weight: bold;
}

.total {
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    color: #419d51;
    margin: 10px 0 0;
}

.btn-acao {
    width: 100%;
    height: 64px;
    border: none;
    border-radius: 7px;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.btn-pagamento {
    background: #42a653;
}

.btn-finalizar {
    background: #176bc1;
}

.btn-pagamento:hover {
    background: #348b43;
}

.btn-finalizar:hover {
    background: #12579d;
}

.info {
    background: #fff;
    border: 1px solid #dce1e5;
    border-radius: 7px;
    padding: 15px;
}

.info strong {
    display: block;
    margin-bottom: 8px;
}

.status {
    color: #df931f;
    font-weight: bold;
}

/* =========================
   BOTÕES INFERIORES
========================= */
.acoes {
    display: grid;
    grid-template-columns: 215px 215px 215px 215px 1fr;
    gap: 24px;
    margin-top: 25px;
}

.acao {
    height: 115px;
    background: #fff;
    border: 1px solid #d7dde2;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
}

.icone {
    font-size: 35px;
    margin-bottom: 7px;
}

.acao.nova {
    color: #39934b;
}

.acao.consulta {
    color: #3e79ce;
}

.acao.cancelar {
    color: #d34a4a;
}

.acao.imprimir {
    color: #8054c4;
}

.atalhos {
    background: #eef6ff;
    border: 1px solid #c9def7;
    border-radius: 7px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.atalhos strong {
    color: #2168ba;
    margin-bottom: 12px;
}

.atalhos span {
    font-size: 13px;
    margin: 4px 0;
}

/* =========================
   RODAPÉ
========================= */
.rodape {
    height: 36px;
    box-sizing: border-box;
    background: #111820;
    color: #b8c0c8;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    margin-top: auto; /* Empurra o rodapé para o final da tela quando sobra espaço */
    width: 100%;
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 1100px) {

    .cabecalho-venda {
        grid-template-columns: 120px 1fr 1fr;
    }

    .conteudo {
        grid-template-columns: 1fr;
    }

    .painel,
    .resumo {
        grid-column: 1;
        grid-row: auto;
    }

    .acoes {
        grid-template-columns: repeat(4, 1fr);
    }

    .atalhos {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {

    .topo {
        height: auto;
        padding: 15px;
        flex-wrap: wrap;
    }

    .menu {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }

    .cabecalho-venda {
        grid-template-columns: 1fr;
    }

    .acoes {
        grid-template-columns: 1fr 1fr;
    }

    .rodape {
        flex-direction: column;
        gap: 8px;
    }

    .painel {
        overflow-x: auto;
    }

    .tabela {
        min-width: 750px;
    }
}
