/* Centralização e espaçamento do contêiner principal */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f9fafb;
    margin: 0;
    padding: 0;
}

/* Contêiner principal */
.welcome-container {
    text-align: center;
    width: 100%;
    max-width: 500px; /* Aumentado para melhorar proporção */
    padding: 40px 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo-index {
    width: 150px;
    margin-bottom: 25px;
}

/* Título principal */
.welcome-container h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Subtítulo */
.welcome-container p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

/* Campos de entrada */
.login-box input[type="email"],
.login-box input[type="password"] {
    width: 100%; /* Campos ocupam toda a largura do contêiner */
    max-width: 400px; /* Limite de largura */
    padding: 15px; /* Aumentado para maior conforto */
    margin: 15px auto; /* Espaçamento uniforme e centralizado */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    display: block;
    box-sizing: border-box;
}

/* Botão de login */
.login-box button {
    width: 100%;
    max-width: 400px; /* Botão alinhado aos campos */
    padding: 15px;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s;
    margin: 20px auto; /* Espaçamento inferior */
    display: block;
}

.login-box button:hover {
    background-color: #357abd;
    transform: scale(1.02);
}

/* Link "Esqueceu sua senha?" */
.login-box p a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 12px;
    transition: color 0.3s ease-in-out;
}

.login-box p a:hover {
    text-decoration: underline;
    color: #357abd;
}

/* Checkbox e label */
.remember-me {
    display: flex;
    align-items: center;
    justify-content: center; /* Centraliza horizontalmente */
    font-size: 0.9rem;
    color: #666;
    margin: 15px 0;
}

.remember-me input {
    margin-right: 8px;
}

/* Ajuste do contêiner do formulário */
.login-box {
    display: flex;
    flex-direction: column; /* Organiza elementos em coluna */
    align-items: center; /* Centraliza os elementos */
    gap: 20px; /* Espaçamento uniforme entre os elementos */
}


/* Estilização para o grid */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    text-align: left;
    padding: 8px;
}

th {
    background-color: #f3f4f6;
    font-weight: bold;
}

td {
    border: 1px solid #ddd;
}

/* Botão de Upload */
#uploadButton {
    background-color: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#uploadButton:hover {
    background-color: #1d4ed8;
}

/* Correção para ajustar o grid dentro da área principal */
.main-content {
    margin-left: 250px;
    margin-top: 60px; /* Espaço abaixo do cabeçalho */
    padding: 20px;
    min-height: 100vh;
    background-color: #f9fafb;
    box-sizing: border-box; /* Inclui padding e border no cálculo de largura/altura */
    overflow: auto; /* Evita que o conteúdo transborde */
}

img {
    max-width: 100%; /* Limita a largura da imagem ao contêiner */
    height: auto; /* Ajusta a altura proporcionalmente */
    display: block; /* Garante que a imagem não quebre o layout */
    margin: 0 auto; /* Centraliza a imagem */
}



/* ======== Estilos do Botão ======== */
.menu-button {
    width: 198px; /* Largura do botão */
    height: 41px; /* Altura do botão */
    background-color: #444; /* Cor inicial do botão */
    top: 30px;
    color: #fff; /* Cor do texto */
    font-size: 14px; /* Tamanho do texto */
    font-weight: bold; /* Estilo da fonte */
    border: none; /* Remove bordas padrão */
    border-radius: 5px; /* Bordas arredondadas */
    text-align: center; /* Centraliza o texto */
    cursor: pointer; /* Cursor de clique */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Animação */
    margin-bottom: 5px; /* Define a distância entre os botões */
}
.sidebar .menu-button:first-child {
    margin-top: 80px; /* Define o espaçamento inicial do primeiro botão */
}
/* Efeito de hover (ao passar o mouse) */
.menu-button:hover {
    background-color: #555; /* Cor mais clara no hover */
    transform: scale(1.05); /* Leve aumento no tamanho */
}

/* Efeito ao clicar */
.menu-button:active {
    background-color: #333; /* Cor mais escura ao clicar */
    transform: scale(0.98); /* Leve redução no tamanho */
}

/* ======== Banner do Título ======== */
.title-banner {
    width: calc(100% - 244px); /* Subtrai a largura do menu lateral */
    height: 40px;
    position: fixed;
    top: 56px;
    left: 244px; /* Após o menu lateral */
    background-color: #3b3b3b; /* Cor do banner */
    display: flex;
    align-items: center; /* Centraliza verticalmente */
    padding-left: 5px;
    z-index: 1000; /* Garante que fique acima dos demais elementos */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra para destaque */
}

/* Título do banner */
.page-title {
    font-size: 14px;
    font-weight: bold;
    color: #f5f5f5; /* Cor do texto */
    margin-left: 5px;
}

/* ======== Botão "Adicionar Arquivos" ======== */
.add-files-button {
    width: 164px;
    height: 41px;
    position: absolute;
    left: 249px;
    top: 91px;
    background-color: #2787cc;
    color: #fcfcfc;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 10px; /* Bordas arredondadas */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Container Principal */
.filters-container {
    width: calc(100% - 244px); /* Subtrai a largura do menu lateral */
    height: auto; /* Altura ajustável */
    position: absolute;
    top: 137px; /* Posição abaixo do menu */
    margin-left: 244px; /* Posição após o menu lateral */
    background-color: #ffffff; /* Fundo para visualização */
    display: flex; /* Organiza itens horizontalmente */
    align-items: flex-start; /* Centraliza verticalmente com base no conteúdo */
    padding: 10px; /* Espaçamento interno */
    gap: 15px; /* Espaçamento horizontal entre os itens */
    box-sizing: border-box; /* Inclui padding na largura */
    border: 1px solid #dbdbdb; /* Borda */
    border-radius: 5px; /* Bordas arredondadas */
}

/* Botão Adicionar Arquivos */
.add-files-button {
    width: 160px;
    height: 41px;
    background-color: #2787cc;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.add-files-button:hover {
    background-color: #1a659a;
}

/* Itens do Filtro */
.filter-container {
    margin-top: 10px; /* Pequeno espaçamento abaixo do cabeçalho */
    padding: 15px;
    background: white;
    border-radius: 5px;
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
}
.filters {
    display: flex;
    flex-wrap: wrap; /* Permite que os itens quebrem linha se necessário */
    gap: 15px; /* Espaçamento entre os filtros */
    align-items: center; /* Centraliza verticalmente os labels, inputs e botões */
    width: 100%; /* Permite usar todo o espaço disponível */
    justify-content: flex-start;
}

.filter-item {
    display: flex;
    flex-direction: column; /* Alinha label e campo verticalmente */
    gap: 5px; /* Espaço entre o label e o input */
    align-items: flex-start; /* Alinha tudo à esquerda */
    min-width: 150px; /* Evita que os inputs fiquem pequenos demais */
}

.filter-label {
    font-size: 14px;
    color: #000000;
}

/* Campo Empresa */
.filter-input {
    width: 500px; /* Ajuste a largura */
    height: 30px; /* Altura específica */
    background-color: #ffffff;
    border: 1px solid #dbdbdb;
    border-radius: 5px;
    padding: 5px;
    font-size: 10px;
    box-sizing: border-box;
}

/* Campo de Data */
.filter-date {
    width: 100px; /* Ajuste a largura */
    height: 30px; /* Altura específica */
    background-color: #ffffff;
    border: 1px solid #dbdbdb;
    border-radius: 5px;
    padding: 5px;
    font-size: 10px;
    box-sizing: border-box;
}

/* Botões de Ação */
.filter-actions {
    display: flex;
    justify-content: center; /* Centraliza os botões horizontalmente */
    align-items: center; /* Centraliza os botões verticalmente */
    gap: 0; /* Remove o espaçamento entre os botões */
    height: 100%; /* Garante que ocupe toda a altura do container pai */
}

.filter-button {
    width: 70px;
    height: 30px;
    background-color: #610f0f;
    color: #fefefe;
    font-size: 12px;
    font-weight: bold;
    border: none; /* Remove bordas adicionais */
    border-radius: 5px 0 0 5px; /* Bordas arredondadas apenas no lado esquerdo */
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center; /* Centraliza o texto verticalmente */
    justify-content: center; /* Centraliza o texto horizontalmente */
}

.filter-button:hover {
    background-color: #4d0c0c;
}

.clear-button {
    width: 70px;
    height: 30px;
    background-color: #ffffff;
    color: #610f0f;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #dbdbdb; /* Adiciona borda ao botão "Limpar" */
    border-left: none; /* Remove a borda esquerda para colar os botões */
    border-radius: 0 5px 5px 0; /* Bordas arredondadas apenas no lado direito */
    cursor: pointer;
    display: flex;
    align-items: center; /* Centraliza o texto verticalmente */
    justify-content: center; /* Centraliza o texto horizontalmente */
}

.clear-button:hover {
    background-color: #f5f5f5;
}

.filter-actionssefaz {
    display: flex;
    justify-content: center; /* Centraliza os botões horizontalmente */
    align-items: center; /* Centraliza os botões verticalmente */
    gap: 0; /* Remove o espaçamento entre os botões */
    height: 100%; /* Garante que ocupe toda a altura do container pai */
}

.gerar-button {
    width: 80px;
    height: 35px;
    background-color: #3249c8;
    color: #fefefe;
    font-size: 12px;
    font-weight: bold;
    border: none; /* Remove bordas adicionais */
    border-radius: 5px 0 0 5px; /* Bordas arredondadas apenas no lado esquerdo */
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center; /* Centraliza o texto verticalmente */
    justify-content: center; /* Centraliza o texto horizontalmente */
}

.gerar-button:hover {
    background-color: #2873d5;
}

.export-button {
    width: 80px;
    height: 35px;
    background-color: #138927;
    color: #fefefe;
    font-size: 12px;
    font-weight: bold;
    border: none; /* Remove bordas adicionais */
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center; /* Centraliza o texto verticalmente */
    justify-content: center; /* Centraliza o texto horizontalmente */
}

.export-button:hover {
    background-color: #28d55f;
}

.atualizar-button {
    width: 80px;
    height: 35px;
    background-color: #e41212;
    color: #fefefe;
    font-size: 12px;
    font-weight: bold;
    border: none; /* Remove bordas adicionais */
    border-left: none; /* Remove a borda esquerda para colar os botões */
    border-radius: 0 5px 5px 0; /* Bordas arredondadas apenas no lado direito */
    cursor: pointer;
    display: flex;
    align-items: center; /* Centraliza o texto verticalmente */
    justify-content: center; /* Centraliza o texto horizontalmente */
}

.atualizar-button:hover {
    background-color: #e06767;
}
/* ======== Banner Arquivos Carregados ======== */
.files-banner {
    width: calc(100% - 244px); /* Subtrai a largura do menu lateral */
    height: 50px;
    position: fixed; /* Fixo na tela */
    top: 220px;
    left: 244px;
    background-color: #9bcefd;
    display: flex;
    align-items: center;
    padding-left: 10px;
    z-index: 1000; /* Fica acima dos outros elementos */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra para destaque */
}

.files-title {
    font-size: 14px;
    font-weight: bold;
    color: #000000;
}

/* ======== Grid ======== */

.grid-container {
    width: calc(100% - 244px); /* Subtrai a largura do menu lateral */
    height: calc(100vh - 355px); /* Altura dinâmica baseada na viewport */
    position: fixed; /* Fixo na tela */
    top: 250px; /* Alinhado ao grid-banner */
    left: 244px;
    background-color: #ffffff;
    overflow-y: auto; /* Barra de rolagem vertical */
    overflow-x: auto; /* Barra de rolagem horizontal */
    padding: 0px; /* Espaçamento interno */
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); /* Sombra interna */
    margin-top: 15px; /* Evita que fique colado nos filtros */
}

/* Tabela dentro da grid */
table {
    width: 100%; /* Tabela ocupa 100% do container */
    border-collapse: collapse;
    table-layout: auto; /* Define largura fixa para colunas */
    min-width: 1200px; /* Evita que quebre a formatação em telas menores */
}

th, td {
    padding: 8px;
    border: 1px solid #e0e0e0; /* Traço claro entre os campos */
    text-align: left; /* Alinha o texto à esquerda */
    white-space: nowrap; /* Impede quebra de linha */
    overflow: hidden; /* Oculta conteúdo excedente */
    text-overflow: ellipsis; /* Adiciona reticências para textos longos */
}

th {
    background-color: #007fbf; /* Azul escuro para o fundo */
    color: white; /* Cor do texto branco */
    font-weight: bold;
    text-align: left; /* Alinha o cabeçalho à esquerda também */
    font-size: 12px; /* Tamanho do texto */
}

td {
    background-color: #fff;
    font-size: 10px; /* Tamanho do texto */
}

/* Define tamanhos fixos para as colunas */
th:nth-child(1), td:nth-child(1) { width: 50px; } /* Exemplo: Código */
th:nth-child(2), td:nth-child(2) { width: 300px; } /* Exemplo: Nome */
th:nth-child(3), td:nth-child(3) { width: 80px; } /* Exemplo: CNPJ */
th:nth-child(4), td:nth-child(4) { width: 50px; } /* Exemplo: Referencia */
th:nth-child(5), td:nth-child(5) { width: 50px; } /* Exemplo: qt notas arquivo */
th:nth-child(6), td:nth-child(6) { width: 50px; } /* Exemplo: qt notas importado */
th:nth-child(7), td:nth-child(7) { width: 75px; } /* Exemplo: status */
th:nth-child(8), td:nth-child(8) { width: 101px; } /* Exemplo: ações */
th:nth-child(9), td:nth-child(9) { width: 42px; } /* Exemplo: análises */

tr {
    border-bottom: 1px solid #e0e0e0;
}

.popup-message {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #2196f3; /* Azul */
    color: white;
    padding: 15px;
    border-radius: 5px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.popup-message.success {
    background-color: #4caf50; /* Verde */
}
.popup-message.error {
    background-color: #f44336; /* Vermelho */
}
.popup-message .close-popup {
    background: none;
    border: none;
    font-size: 18px;
    color: white;
    margin-left: 10px;
    cursor: pointer;
}

#empresa-suggestions {
    position: absolute; /* Posiciona a lista abaixo do input */
    background-color: white; /* Fundo branco */
    border: 1px solid #ccc; /* Bordas */
    list-style: none; /* Remove estilo de lista */
    padding: 0; /* Padding zero no contêiner */
    z-index: 1050; /* Maior z-index para sobrepor outros elementos */
    margin: 0; /* Remove margens */
    top: calc(100%); /* Posiciona logo abaixo do input */
    left: 0; /* Alinha à esquerda do input */
    width: 100%; /* Mesma largura do input */
    max-height: 200px; /* Limita a altura */
    overflow-y: auto; /* Rolagem vertical se necessário */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Sombra */
    border-radius: 5px; /* Bordas arredondadas */
}

#empresa-suggestions li {
    padding: 10px; /* Espaçamento interno */
    cursor: pointer; /* Cursor de clique */
    font-size: 10px; /* Tamanho da fonte */
    transition: background-color 0.2s ease; /* Animação ao passar o mouse */
    border-bottom: 1px solid #f0f0f0; /* Linha entre itens */
}

#empresa-suggestions li:last-child {
    border-bottom: none; /* Remove a linha do último item */
}

#empresa-suggestions li:hover {
    background-color: #f9f9f9; /* Destaque ao passar o mouse */
}

/* Estilização do modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-header .close {
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.modal-body {
    margin: 20px 0;
    font-size: 16px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-confirm {
    padding: 10px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-confirm:hover {
    background-color: #45a049;
}

.btn-cancel {
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-cancel:hover {
    background-color: #e53935;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none; /* Oculta os botões por padrão */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 5px 0;
    z-index: 9999; /* Sobrepõe outros elementos */
    flex-direction: column;
}

.dropdown-content button {
    width: 100%;
    background-color: white;
    border: none;
    text-align: left;
    padding: 5px;
    cursor: pointer;
    font-size: 10px;
    display: block;
    border-bottom: 1px solid #ddd; /* Linha divisória */
}

.dropdown-content button:last-child {
    border-bottom: none;
}

.dropdown-content button:hover {
    background-color: #f1f1f1;
}

/* Torna o menu visível apenas quando a classe 'show' for adicionada */
.show {
    display: flex;
}

/* Para que o dropdown não fique cortado se estiver dentro de uma tabela */
td {
    position: relative;
    overflow: visible !important; /* Garante que o dropdown não seja cortado */
}

/* Informações da Empresa */
.info-box {
    width: 900px; /* Subtrai a largura do menu lateral */
    height: 80px;
    margin-top: 50px;
    margin-left: 244px;
    font-size: 12px;
    background-color: #ffffff;
    padding: 15px; /* Adiciona mais espaçamento interno */
    border-radius: 5px; /* Bordas arredondadas */
    /* border: 1px solid #dbdbdb;*/  /*Borda leve */
}

/* Organização dos detalhes da empresa */
.info-content {
    display: flex;
    flex-wrap: wrap; /* Permite que os itens quebrem linha */
    gap: 20px; /* Espaçamento entre os itens */
    font-size: 12px;
}

/* filtros notas */
.filtersnota-container {
    width: 900px;
    margin-left: 244px;
    background-color: #ffffff;
    padding: 15px;
    /*border: 1px solid #dbdbdb;*/
    border-radius: 5px;
    display: flex;
    flex-direction: column; /* Mantém os elementos empilhados corretamente */
    gap: 5px; /* Espaçamento entre os elementos */
}
/* Título com linha */
.section-title {
    display: flex;
    align-items: center; /* Alinha o título e a linha verticalmente */
    font-size: 14px;
    font-weight: bold;
    color: #333; /* Cor do texto */
}

.section-title::after {
    content: "";
    flex-grow: 1; /* Faz com que a linha ocupe o espaço restante */
    height: 2px; /* Espessura da linha */
    background-color: #ccc; /* Cor da linha */
    margin-left: 10px; /* Espaçamento entre o título e a linha */
}
.filtersnota {
    display: flex;
    flex-wrap: wrap; /* Permite que os itens quebrem linha se necessário */
    gap: 5px; /* Espaçamento entre os filtros */
    align-items: center; /* Centraliza verticalmente os labels, inputs e botões */
    max-width: 900px; /* Mantém os campos mais organizados */
    justify-content: flex-start;
}
.filtersnota-input.numero-nota {
     width: 100px; /* Número da Nota */
     height: 30px; /* Altura específica */
     background-color: #ffffff;
     border: 1px solid #dbdbdb;
     border-radius: 5px;
     padding: 5px;
     font-size: 10px;
     box-sizing: border-box;
}
.filtersnota-input.chave-nfe {
    width: 300px; /* Número da Nota */
    height: 30px; /* Altura específica */
    background-color: #ffffff;
    border: 1px solid #dbdbdb;
    border-radius: 5px;
    padding: 5px;
    font-size: 10px;
    box-sizing: border-box;
}
.filtersnota-input.cnpj {
    width: 200px; /* Número da Nota */
    height: 30px; /* Altura específica */
    background-color: #ffffff;
    border: 1px solid #dbdbdb;
    border-radius: 5px;
    padding: 5px;
    font-size: 10px;
    box-sizing: border-box;
}
.filtersnota-input.nome-pessoa {
    width: 300px; /* Número da Nota */
    height: 30px; /* Altura específica */
    background-color: #ffffff;
    border: 1px solid #dbdbdb;
    border-radius: 5px;
    padding: 5px;
    font-size: 10px;
    box-sizing: border-box;

}
.filtersnota-input.periodo {
    width: 80px; /* Número da Nota */
    height: 30px; /* Altura específica */
    background-color: #ffffff;
    border: 1px solid #dbdbdb;
    border-radius: 5px;
    padding: 5px;
    font-size: 10px;
    box-sizing: border-box;
}
.filtersnota-item-group {
    display: flex;
    gap: 2px; /* Define um pequeno espaço entre os dois inputs */
}
.filtersnota-input.entrada-saida {
    width: 100px; /* Número da Nota */
    height: 30px; /* Altura específica */
    background-color: #ffffff;
    border: 1px solid #dbdbdb;
    border-radius: 5px;
    padding: 5px;
    font-size: 10px;
    box-sizing: border-box;
}

.filtersnota-item {
    display: flex;
    flex-direction: column; /* Coloca o título acima do input */
    gap: 3px; /* Espaço entre o label e o input */
    align-items: flex-start; /* Alinha tudo à esquerda */
    min-width: 150px; /* Evita que os inputs fiquem pequenos demais */
    margin-right: 10px; /* Reduz a distância entre os campos */

}

/* Estilização dos labels */
.filtersnota-label {
    font-size: 12px;
    font-weight: bold; /* Deixa o texto mais destacado */
    color: #333;
    margin-bottom: 3px; /* Reduz o espaçamento entre label e input */
}

/* ======== Grid notas ======== */
.gridnotas-container {
    width: calc(100% - 244px); /* Subtrai a largura do menu lateral */
    margin-left: 244px; /* Mantém alinhado com os filtros */
    background-color: #ffffff;
    padding: 15px;

    border-radius: 5px;
    display: flex;
    flex-direction: column; /* Mantém os elementos empilhados corretamente */
    height: 550px; /* Define altura máxima para ativar a rolagem */
    margin-top: 0px;
    overflow: hidden; /* Oculta overflow geral */
    position: relative; /* Mantém alinhamento */
    margin-top: 0px; /* Reduzindo o espaço extra */
}
/* Cabeçalho fixo da tabela */
.gridnotas-header {
        flex-grow: 1; /* Permite que a grid ocupe o espaço disponível */
        overflow-x: auto; /* Permite rolagem horizontal */
        position: relative; /* Mantém a posição correta */
        margin-top: 0px; /* Reduzindo o espaço extra */
        padding: 0; /* Remove qualquer padding extra */
        border-spacing: 0; /* Elimina espaçamento de tabela */

        flex-grow: unset; /* Evita expansão forçada */
    }

    .gridnotas-header table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        min-width: 1200px; /* Evita quebra em telas pequenas */
        margin-top: 0; /* Garante que o espaço acima do tbody seja removido */
    }

    .gridnotas-header thead {
        position: sticky;
        top: 0;
        background-color: #007fbf; /* Mantém a cor azul do cabeçalho */
        color: white;
        z-index: 10;
        margin-bottom: 0; /* Garante que não tenha espaçamento abaixo do cabeçalho */
    }

.gridnotas-wrapper {
    flex-grow: 1; /* Permite que a grid ocupe o espaço disponível */
    height: 390px;
    overflow-x: auto; /* Permite rolagem horizontal */
    overflow-y: auto; /* Ativa rolagem vertical */
    position: relative; /* Mantém a posição correta */
    margin-top: -2px; /* Reduzindo o espaço extra */
    padding: 0; /* Remove qualquer padding extra */
    border-spacing: 0; /* Elimina espaçamento de tabela */

    border-top: none; /* Remove a borda superior */
}

.gridnotas-wrapper table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 1200px; /* Evita quebra em telas pequenas */
    margin-top: 0; /* Garante que o espaço acima do tbody seja removido */
}

.gridnotas-wrapper thead {
    position: sticky;
    top: 0;
    background-color: #007fbf; /* Mantém a cor azul do cabeçalho */
    color: white;
    z-index: 10;
    margin-bottom: 0; /* Garante que não tenha espaçamento abaixo do cabeçalho */
}

.gridnotas-wrapper tbody {
    height: 350px;
    overflow-y: auto;
    width: 100%;
}

.gridnotas-wrapper th, .gridnotas-wrapper td {
    padding: 10px;
    text-align: left;
    white-space: nowrap; /* Evita quebras de linha */
    overflow: hidden; /* Oculta overflow */
    text-overflow: ellipsis; /* Adiciona reticências em textos longos */
}

.gridnotas-wrapper th {
    background-color: #007fbf; /* Azul escuro */
    color: white;
    font-weight: bold;
}

.gridnotas-wrapper td {
    background-color: #fff;
}
/* Ajustar largura das colunas */
.gridnotas-header th:nth-child(1),
.gridnotas-wrapper td:nth-child(1) {
    width: 15%;
    text-align: justify;
}

.gridnotas-header th:nth-child(2),
.gridnotas-wrapper td:nth-child(2) {
    white-space: normal; /* Permite quebra de linha */
    word-wrap: break-word; /* Quebra palavras longas */
    max-width: 200px; /* Define um tamanho máximo para evitar excesso de largura */
    width: 25%;
}

.gridnotas-header th:nth-child(3),
.gridnotas-wrapper td:nth-child(3) {
    width: 12%;
    text-align: right;
}

.gridnotas-header th:nth-child(4),
.gridnotas-wrapper td:nth-child(4) {
    width: 8%;
}

.gridnotas-header th:nth-child(5),
.gridnotas-wrapper td:nth-child(5) {
    width: 8%;
}

.gridnotas-header th:nth-child(6),
.gridnotas-wrapper td:nth-child(6) {
    width: 10%;
    text-align: right;
}

.gridnotas-header th:nth-child(7),
.gridnotas-wrapper td:nth-child(7) {
    width: 40%;
    text-align: justify;
}

.gridnotas-header th:nth-child(8),
.gridnotas-wrapper td:nth-child(8) {
    width: 10%;
}

.gridnotas-header th:nth-child(9),
.gridnotas-wrapper td:nth-child(9) {
    width: 10%;
}

.gridnotas-header th:nth-child(10),
.gridnotas-wrapper td:nth-child(10) {
    width: 12%;
    text-align: right;
}

.gridnotas-header th:nth-child(11),
.gridnotas-wrapper td:nth-child(11) {
    width: 12%;
    text-align: right;
}

.gridnotas-header th:nth-child(12),
.gridnotas-wrapper td:nth-child(12) {
    width: 12%;
    text-align: right;
}

.gridnotas-header th:nth-child(13),
.gridnotas-wrapper td:nth-child(13) {
    width: 12%;
    text-align: right;
}

/* Título com linha (padrão das outras seções) */
.section-title {
    display: flex;
    align-items: center; /* Alinha o título e a linha verticalmente */
    font-size: 14px;
    font-weight: bold;
    color: #333; /* Cor do texto */
}

.section-title::after {
    content: "";
    flex-grow: 1; /* Faz com que a linha ocupe o espaço restante */
    height: 2px; /* Espessura da linha */
    background-color: #ccc; /* Cor da linha */
    margin-left: 10px; /* Espaçamento entre o título e a linha */
}

/* Estilização da tabela */
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px; /* Evita que quebre a formatação em telas menores */
}

th, td {
    padding: 8px;
    border: 1px solid #e0e0e0; /* Traço claro entre os campos */
    text-align: left; /* Padrão para texto */
}

th {
    background-color: #007fbf;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Alinhar números à direita */
td.valor, td.numero-nota {
    text-align: right;
}

/* Alinhar números ao centro */
td.data {
    text-align: center;
}

/* Contêiner principal do totalizador */
.totalizador-container {
    margin-top: 30px; /* Cria espaçamento entre a tabela de resultados e o totalizador */
}


/* Totalizador fixo na parte inferior */
.totalizador-container {
    position: sticky;
    bottom: 0;
    background-color: #007fbf;
    z-index: 0;
    margin-top: 0px; /* Remove o espaço extra acima */
}

/* Estilização da tabela totalizadora */
.totalizador-tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background-color: #007fbf;
    margin-top: 0px;
}
/* Linhas do totalizador */
.totalizador-linha {
    border-top: 1px solid #007fbf;
}

/* Células alinhadas horizontalmente */
.totalizador-linha td {
    background-color: #007fbf;
    color: white;
    padding: 5px 10px;
    white-space: nowrap;
    text-align: left;
    font-size: 12px;
    margin-top: 0px;
    border-right: none !important; /* Remove as linhas verticais */
    border-left: none !important;  /* Remove possíveis linhas laterais */
}

.tabs-container {
    margin: 20px 0;
    text-align: center;
}

.tabs {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #ccc;
}

.tab-link {
    background: #f1f1f1;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    border: 1px solid #ccc;
    border-bottom: none;
    font-weight: bold;
}

.tab-link.active {
    background: #fff;
    border-bottom: 2px solid #fff;
    color: #333;
}

.tab-content {
    display: none;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
}

.tab-content.active {
    display: block;
}

.modal-dialog {
    max-width: 600px; /* Ajuste conforme necessário */
}

#upload-status {
    display: block !important; /* Garante que o status apareça */
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: green;
    background: #f0fff0;
    padding: 10px;
    border-radius: 5px;
    margin-top: 70px;
    border: 1px solid green;
}


