@import url('variables.css');

/* --- CONFIGURAÇÕES GERAIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* Remove as setinhas de aumento/diminuição de todos os campos numéricos */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body {
    background-color: var(--bg-principal);
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden; /* Impede a página inteira de rolar para baixo */
}

input, button, select {
    outline: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

/* --- ESTRUTURA E LAYOUT (SIDEBAR + CONTEÚDO) --- */
#app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    padding: 24px;
    justify-content: space-between;
    flex-shrink: 0; /* IMPEDE ABSOLUTAMENTE que as outras telas esmaguem o menu! */
}

#sidebar .logo-area {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 25, 0.1);
}

#sidebar .logo-area h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}

#sidebar .logo-area span {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.menu-navegacao {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    flex-grow: 1;
}

.nav-btn {
    background: none;
    border: none;
    color: #94a3b8;
    text-align: left;
    padding: 12px 16px;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-btn:hover, .nav-btn.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-left: 4px solid var(--primary);
}

#sidebar .footer-sidebar {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
}

/* --- ÁREA PRINCIPAL DE CONTEÚDO --- */
#conteudo-principal {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
}

.modulo-tela {
    display: none;
    flex: 1;
    padding: 20px;
    height: 100%;
    overflow-y: auto; /* Permite rolar apenas o conteúdo da tela ativa */
    box-sizing: border-box;
    animation: fadeIn 0.2s ease-in-out;
}

.modulo-tela.active {
    display: block;
    
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- CARDS E CONTEXTOS --- */
.card-painel {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.titulo-sessao {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- NOVO LAYOUT DO PDV ESTILO VERTICAL PREMIUM --- */
.grid-pdv-moderno {
    display: grid;
    grid-template-columns: 1fr 420px; /* Esquerda flexível e Direita fixa para os itens */
    gap: 20px;
    height: calc(100vh - 120px);
    overflow: hidden;
}

/* Coluna Esquerda: Disposta verticalmente para empurrar o pagamento para a base */
.pdv-coluna-esquerda {
display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden; /* Impede rolagem na coluna toda */
    justify-content: space-between;     /* Garante que nada saia da coluna */
}
.pdv-coluna-esquerda::-webkit-scrollbar {
    width: 4px;
}
.pdv-coluna-esquerda::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* O Meio solicitado totalmente limpo */
.pdv-espaco-central-vazio {
flex: 1 1 auto; /* Permite crescer e encolher dinamicamente */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.2);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    margin: 8px 0; /* Reduzido o espaçamento externo */
    min-height: 60px; /* IMPORTANTE: Reduzido para dar espaço à comanda */
    overflow: hidden;
}

/* Monitor centralizado no espaço vazio */
.monitor-box-centrado {
text-align: center;
    padding: 12px 24px; /* Reduzido o padding vertical de 24px para 12px */
    background: #000000;
    border-radius: var(--radius-md);
    border: 2px solid #1e293b;
    width: 100%;
    max-width: 720px;
    max-height: 100px; /* Limitado para não crescer demais */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.monitor-box-centrado .label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}
.monitor-box-centrado .valor-string {
    color: var(--success);
    font-size: 24px;
    font-weight: 700;
    white-space: normal;
    text-overflow: ellipsis;
display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Painel de Pagamento Horizontal na Base */
.pdv-painel-pagamento-rodape {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 12px; /* Reduzido de 16px para salvar espaço */
    margin-bottom: 0px; /* Zerado para não empurrar a tela para baixo */
    flex-shrink: 0; /* Garante que o painel de pagamento mantenha seu tamanho */
}

.fechamento-layout-horizontal {
    display: flex;
    align-items: center;
    gap: 16px;
}

.input-recebido-container {
    flex: 1;
    margin: 0;
}

.input-pagamento-grande {
    font-size: 20px !important;
    font-weight: bold;
    padding: 12px !important;
}

.troco-box-horizontal {
    flex: 1;
    background: #000000;
    border-radius: var(--radius-md);
    border: 2px solid #1e293b;
    min-height: 65px !important;
    padding: 8px 16px !important;
    display: flex;
    flex-direction: column;
    justify-content: center !important;
}
.troco-box-horizontal .label {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: bold;
}
.troco-box-horizontal .valor-num {
    color: #ffffff;
    font-family: monospace;
    text-align: right;
    font-weight: bold;
    font-size: 24px !important;
}

.btn-concluir-pdv {
    height: 58px;
    padding: 0 24px;
    background-color: var(--success);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    border-radius: var(--radius-sm);
}
.btn-concluir-pdv:hover { background-color: var(--success-hover); }

/* Coluna Direita: O Cupom em Pé */
.pdv-coluna-direita-carrinho {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.carrinho-header-moderno {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.badge-contador {
    background-color: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* Scroll Vertical exclusivo para a lista lateral de itens */
.carrinho-scroll-vertical {
    flex: 1; 
    overflow-y: auto;
    min-height: 0; /* ESSENCIAL para o flexbox não estourar */
    border: 1px solid #e2e8f0;
}
.carrinho-scroll-vertical::-webkit-scrollbar {
    width: 6px;
}
.carrinho-scroll-vertical::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.tabela-pdv-vertical {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}
.tabela-pdv-vertical th {
    position: sticky;
    top: 0;
    background: #f1f5f9;
    z-index: 10;
    font-size: 12px;
    padding: 8px;
    color: var(--text-muted);
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}
.tabela-pdv-vertical td {
    padding: 10px 8px;
    font-size: 13px;
    border-bottom: 1px solid #f1f5f9;
}

.carrinho-vazio-placeholder-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 8px;
    padding-top: 60px;
    text-align: center;
}

/* Caixa do Total fixada na base direita */
.total-destaque-moderno {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    border: none;
    border-top: 3px solid var(--primary);
    border-radius: 0;
    padding: 12px 16px;
    min-height: 80px;
    display: flex;
    flex-direction: row; /* Alterado para alinhar lado a lado */
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.total-destaque-moderno .label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: bold;
    max-width: 40%; /* Evita que o texto empurre o valor */
    line-height: 1.2;
}
.total-destaque-moderno .valor-num {
    color: #3b82f6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    font-size: 28px; /* Reduzido levemente de 32px para não estourar */
    font-family: monospace;
    font-weight: bold;
    text-align: right;
}

/* --- FORMULÁRIOS, ENTRADAS E CAMPOS --- */
.grupo-input {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.grupo-input label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.input-ks {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: var(--text-main);
    transition: var(--transition);
}

.input-ks:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* --- BOTÕES --- */
.btn-ks {
    padding: 10px 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary { background-color: var(--primary); color: #ffffff; }
.btn-primary:hover { background-color: var(--primary-hover); }

.btn-success { background-color: var(--success); color: #ffffff; }
.btn-success:hover { background-color: var(--success-hover); }

.btn-danger { background-color: var(--danger); color: #ffffff; }
.btn-danger:hover { background-color: var(--danger-hover); }

/* --- TABELAS E INTEGRAÇÕES --- */
.container-tabela {
    width: 100%;
    overflow-x: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.tabela-ks {
    table-layout: fixed; /* Impede que células cresçam conforme o texto */
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.tabela-ks th {
    background-color: #f1f5f9;
    color: var(--text-muted);
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.tabela-ks td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.tabela-ks tbody tr:hover {
    background-color: #f8fafc;
}

/* --- MENU FLUTUANTE DE BUSCA (AUTOCOMPLETE) --- */
.dropdown-busca {
    position: absolute;
    background: #ffffff;
    border: 1px solid var(--border-color);
    width: 37%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 999;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    display: none;
}
.busca-container {
    position: relative; 
}

.busca-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    border-bottom: 1px solid #f1f5f9;
}

.busca-item:hover {
    background-color: #f1f5f9;
}

/* --- VÍNCULOS DE COMANDA NO CAIXA --- */
.comanda-alerta-box {
background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 8px 12px; /* Padding vertical menor */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-sm);
    margin-bottom: 8px; /* Margem menor */
    flex-shrink: 0; /* Nunca deixa o alerta ser esmagado */
}
.comanda-alerta-content {
    display: flex;
    align-items: center;
    gap: 10px;
}
.comanda-alerta-texto {
    display: flex;
    flex-direction: column;
}
.comanda-label {
    font-size: 10px;
    color: var(--success);
    font-weight: bold;
    text-transform: uppercase;
}
.btn-desvincular {
    background: none;
    border: none;
    color: #ef4444;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

/* --- GRIDS DE COMANDAS ATIVAS --- */
.comandas-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}

.mural-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.card-comanda-mural {
    position: relative;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden; /* Garante que os botões fiquem presos dentro do card */
    transition: all 0.2s ease;
}

.card-comanda-mural:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-comanda-mural.comanda-com-consumo {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.card-comanda-mural.comanda-com-consumo .cliente-tag {
    color: var(--success);
}

.card-comanda-conteudo {
    padding: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    height: 100%;
}

.card-comanda-mural:hover .card-comanda-conteudo {
    filter: blur(1px) opacity(0.3);
}

.card-comanda-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cliente-tag {
    font-size: 10px;
    font-weight: bold;
    color: var(--text-muted);
}

.cliente-nome {
    font-size: 16px;
    color: var(--text-main);
}

.card-comanda-valor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
    font-size: 13px;
}
.card-comanda-valor strong {
    color: var(--text-main);
    font-family: monospace;
    font-size: 14px;
}

/* Painel de ações invisível por padrão nos cards */
.card-comanda-acoes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.75); /* Fundo escuro semitransparente moderno */
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    padding: 12px;
}

.card-comanda-mural:hover .card-comanda-acoes {
    opacity: 1;
    visibility: visible;
}

.btn-acao-mural {
    width: 85%;
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.2s;
}
.btn-acao-mural:active { transform: scale(0.95); }

.btn-lancar { background: var(--primary); color: white; }
.btn-lancar:hover { background: #2563eb; }

.btn-excluir { background: #ef4444; color: white; }
.btn-excluir:hover { background: #dc2626; }

/* --- NOTIFICAÇÕES TOAST (ALERTA FLUTUANTE) --- */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #0f172a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid var(--primary);
}
.toast.success { border-left-color: var(--success); }
.toast.danger { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- ELEMENTO DO CUPOM DE IMPRESSÃO (OCULTO NA TELA) --- */
#cupom-impressao {
    display: none;
}
#monitor-produto {
    height: 60px;             /* Altura exata: nunca muda */
    min-height: 60px;
    width: 100%;              /* Ocupa a largura disponível */
    background: #1e293b;
    color: #fff;
    padding: 10px;
    
    /* Regras cruciais para o texto longo não quebrar o layout */
    white-space: nowrap;      /* Impede que o texto quebre em várias linhas */
    overflow: hidden;         /* Esconde o que passar do tamanho definido */
    text-overflow: ellipsis;  /* Adiciona "..." quando o texto for longo */
    flex-shrink: 0;           /* Garante que o monitor não encolha ou cresça */
    box-sizing: border-box;
}

/* Opcional: Garanta que a box pai não permita que o texto estique o layout */
.monitor-box-centrado {
    overflow: hidden; 
    width: 100%;
}

/* ============================================================
   ESTRUTURAÇÃO ESPECÍFICA DA TELA DE ESTOQUE (Refatoração)
   ============================================================ */

/* 1. Grid Principal: Tabela à esquerda, Formulários fixos à direita */
.grid-estoque-principal {
    display: grid;
    grid-template-columns: 1fr 360px; /* Tabela flexível, Painel lateral fixo */
    gap: 20px;
    height: calc(100vh - 120px);
    overflow: hidden; /* Importante para o scroll da tabela */
}

/* 2. Scroll para a Tabela */
.container-tabela-estoque {
    height: calc(100% - 40px); /* Ajuste para o título */
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

/* 3. Aside Lateral Fixa */
.aside-form-estoque {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 4. Estilos de Formulário Refatorados (O segredo da Estrutura) */
.form-cadastro-fixed, .form-entrada-fixed {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-section-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.warning-header {
    border-bottom-color: var(--warning);
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.grupo-input {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1; /* Todos os inputs ocupam o mesmo espaço inialmente */
}

/* Ajustes de tamanho proporcional específicos */
.input-id-short { flex: 0 0 70px; } /* Código fixo e curto */
.input-nome-main { flex: 1; }      /* Nome flexível ocupando o resto */
.half { flex: 0 0 calc(50% - 5px); } /* Metade da largura com gap */

.input-ks {
    width: 100%;
    box-sizing: border-box; /* OBRIGATÓRIO: Impede que o padding quebre a largura total */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.input-ks:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

/* 5. Linha de Ações/Botões Alinhada */
.form-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn-ks {
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    border: none;
    flex: 1;
    transition: background 0.2s;
}

.btn-clear { background-color: #e2e8f0; color: #333; }
.btn-success-main, .btn-success-lote { background-color: var(--success); color: white; }
.btn-success-lote { width: 100%; } /* Botão de lote ocupa tudo */

.btn-ks:hover { opacity: 0.9; }

/* ============================================================
   MODO COMPACTO AUTOMÁTICO PARA TELAS MENORES (NOTEBOOKS)
   ============================================================ */
@media (max-height: 800px) or (max-width: 1400px) {
    /* 1. Reduz o tamanho geral da fonte base do sistema */
    html {
        font-size: 13px;
    }

    /* 2. Compacta o Menu Lateral */
    #sidebar {
        width: 220px; /* Reduz de 260px para 220px */
        padding: 15px;
    }
    
    .logo-area h2 {
        font-size: 18px;
    }

    .nav-btn {
        padding: 10px 12px; /* Botões do menu ligeiramente menores */
        font-size: 13px;
    }

    /* 3. Reduz os espaçamentos das telas e dos painéis (cards) */
    .modulo-tela {
        padding: 12px;
    }

    .card-painel {
        padding: 12px;
    }

    /* 4. Compacta os formulários da tela de estoque */
    #tela-estoque > div {
        grid-template-columns: 1fr 400px; /* Reduz a lateral de 340px para 300px */
        gap: 12px;
        height: calc(100vh - 80px);
    }

    .form-row {
        gap: 8px;
        margin-bottom: 6px;
    }

    .input-ks {
        padding: 8px 10px; /* Inputs ligeiramente mais finos */
    }

    .btn-ks {
        padding: 10px;
    }

    /* 5. Ajustes para a Frente de Caixa (PDV) */
    #monitor-produto {
        height: 50px !important; /* Monitor de mensagens mais fino */
        min-height: 50px !important;
        font-size: 16px !important;
    }

    .container-botoes-pdv {
        gap: 8px;
    }
}
/* ============================================================
   Ajuste de Colunas e Ações da Tabela de Inventário
   ============================================================ */

/* 1. Definimos larguras específicas para cada coluna da tabela */
.tabela-ks th:nth-child(1), /* Código (ID) */
.tabela-ks td:nth-child(1) {
    width: 60px;
    text-align: center;
}

.tabela-ks th:nth-child(2), /* Descrição / Nome */
.tabela-ks td:nth-child(2) {
    width: auto; /* Ocupa todo o espaço restante */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tabela-ks th:nth-child(3), /* Preço */
.tabela-ks td:nth-child(3) {
    width: 90px;
}

.tabela-ks th:nth-child(4), /* Qtd Estoque */
.tabela-ks td:nth-child(4) {
    width: 75px;
    text-align: center;
}

.tabela-ks th:nth-child(5), /* Ações (Última coluna) */
.tabela-ks td:nth-child(5) {
    width: 100px; /* Garante largura fixa suficiente para os botões */
    text-align: center;
}

/* 2. Estilo para os botões de ação dentro da tabela (se aplicável) */
.tabela-ks td:nth-child(5) button,
.tabela-ks td:nth-child(5) a {
    padding: 4px 8px !important;
    font-size: 12px !important;
    margin: 0 2px;
    display: inline-flex;
}
/* Botão de Adicionar Pagamento - Alinhado ao Design System */
.btn-add-pagamento {
    height: 41px; /* Altura ideal para alinhar com o select e o input de valor */
    padding: 0 20px;
    background-color: var(--primary); /* Azul padrão KS Soft */
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm); /* Mesmo arredondamento dos inputs */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    align-self: flex-end; /* Garante que ele fique alinhado por baixo junto com os inputs */
    box-shadow: var(--shadow-sm);
}

.btn-add-pagamento:hover {
    background-color: var(--primary-hover); /* Tom de azul do hover do menu */
    transform: translateY(-1px);
}

.btn-add-pagamento:active {
    transform: translateY(0);
}
