html {
    background: transparent;
    height: 100%;
}

body {
    margin: 0;
    overflow-y: auto !important; /* Permitir rolagem da página */
    padding-top: 0px;
    padding-bottom: 0px;
    min-height: 100vh;
    /* Full viewport height */
    background: linear-gradient(180deg, #000000 0%, #cc0000 50%, #000000 100%);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;

}


#logo1 {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 0;

}




.container::-webkit-scrollbar {
    width: 8px;
}

.container::-webkit-scrollbar-track {
    background: #202020;
}

.container::-webkit-scrollbar-thumb {
    background-color: #FFA500;
    border-radius: 4px;
}

.container::-webkit-scrollbar-thumb:hover {
    background-color: #FF8C00;
}


#container-email_senha {
    top: 0;
    position: fixed;
    z-index: 1000;
    width: 100%;
    height: 100vh;

    color: white;
    padding: 0px;

}


/* Body para centralizar o header */
body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    /* Centraliza horizontalmente */
}




/* Header */
header,
nav {
    position: relative !important; /* Desativar fixação se houver */
    overflow: hidden;
    box-sizing: border-box;
    margin: 0 auto !important;
    /* Reset and center */
    margin-top: 1vh !important;
    /* Awning top margin */
    width: 96% !important;
    padding: 5px !important;
    display: flex !important;
    align-items: center !important;
    /* Centraliza verticalmente */
    justify-content: center !important;
    /* O Header centraliza a ROW */
    border-radius: 0 0 50px 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    background-color: transparent;
    /* Changed from white to transparent */
}

/* Força a ROW interna a ocupar tudo e separar os itens */
header .row {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    /* Afasta Logo e Ícones */
    align-items: center !important;
    margin: 0 !important;
}

/* Logo Default (Desktop) */
#logo-header {
    max-height: 100px !important;
    width: auto !important;
}

/* Ajustes Específicos para Mobile */
@media screen and (max-width: 768px) {
    #logo-header {
        max-height: 60px !important;
        /* Retorna ao tamanho menor original */
    }

    header,
    .top-menu,
    nav {
        height: 18vh !important;
        min-height: 18vh !important;
    }
}

/* Main Container - Scrollable */
#container-main {
    width: 100%;
    height: auto !important; /* Altura automática para rolar com a página */
    overflow-y: visible !important; /* Rolagem externa via body */
    overflow-x: hidden;
    padding-bottom: 30px;
    background: transparent;
}

/* Media query para desktop (dispositivos maiores) */
@media screen and (min-width: 768px) {

    header,
    .top-menu,
    nav {
        height: 08vh !important;
    }

    #container-main {
        height: auto !important;
    }
}


/* Footer - Input Container */
footer {
    position: fixed;
    bottom: 0;
    width: 95%;
    margin: 0 auto !important;
    padding: 5px !important;
    height: 10vh !important;
    /* Altura fixa calculada */
    background-color: #000000 !important;
    z-index: 999;
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
    /* Centraliza verticalmente */
    justify-content: center !important;
    /* Centraliza horizontalmente */
    border-top: 1px solid #333; /* Opcional: uma borda sutil para separar do conteúdo */
}

/* Ajustes de responsividade para manter a proporção se necessário, 
   mas tentando manter os 10/78/12 como regra de ouro */
@media screen and (max-width: 768px) {
    /* Mantém as proporções mesmo no mobile */
}

footer * span {
    color: red !important;
}

footer #send-icon {
    color: red !important;
}


.header-icons.disabled {
    color: gray;
    cursor: not-allowed;
    display: none;
}

/* componente menu_01 */

.icon-table {
    display: grid;
    grid-template-columns: repeat(3, minmax(80px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: rgba(0, 20, 0, 0.2);
    margin: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.7);
}

.icon-table .material-icons {
    font-size: 36px;
    color: #EE962E;
    transition: all 0.3s ease;
    padding: 15px;
    background-color: rgba(0, 100, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
}

.icon-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-item:hover .material-icons {
    transform: scale(1.2);
    background-color: rgba(238, 150, 46, 0.2);
}

.icon-item.disabled .material-icons {
    color: gray;
    cursor: not-allowed;
}

.tooltip {
    visibility: hidden;
    width: 120px;
    background-color: transparent;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 90%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.2s;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.icon-item:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.btnSair,
.btnSalvarSair {
    background-color: green !important;
    color: white !important;
}

.btnSair:hover,
.btnSalvarSair:hover {
    background-color: lightgreen !important;
    color: black;
}

.btnSalvar:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}






.btnExcluir {
    background-color: red !important;
}

.btnSalvarSair:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* Para desktop (telas maiores que 768px) */
@media screen and (min-width: 768px) {
    .icon-table {
        grid-template-columns: repeat(4, minmax(80px, 1fr));
        max-width: 1200px;
        margin: 20px auto;
    }

    .icon-table .material-icons {
        font-size: 54px;
    }
}


p {
    margin: 0;
    text-align: justify;
    margin-bottom: 10px;
}


.table-pagination-container {
    width: 98%;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #ddd;
    background-color: lightgray;
}

.treetable-outer-container {
    width: 100%;
    position: relative;
    border-radius: 10px 10px 0 0;
    border: none;
}

.treetable-outer-container::-webkit-scrollbar {
    width: 12px;
    height: 12px;

}

.treetable-outer-container::-webkit-scrollbar-thumb {
    background-color: #FFA500;
    border-radius: 10px;
    border: 2px solid #F5F5F5;
}

.treetable-outer-container::-webkit-scrollbar-track {
    background-color: #F5F5F5;
    border-radius: 10px;
}

.treetable {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background-color: transparent;
    min-width: 100%;
    max-width: 100%;
    background-color: lightgray !important;
    color: black !important;
}

th {
    background-color: #FFA500 !important;
    color: black;
}

.toggle {
    cursor: pointer;
    user-select: none;
    margin-right: 5px;
}

.hidden {
    display: none;
}

.indent {
    display: inline-block;
    width: 20px;
}

td>div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: transparent !important;
}

td {
    background-color: transparent !important;
    color: black;
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.editable {
    border: 2px solid #4CAF50;
}

.action-column {
    text-align: center;
    background-color: #FFA500 !important;
    color: black;
 
}

.action-icon {
    cursor: pointer;
}

tr.selected {
    color: black !important;
    background-color: yellow !important;
}

td.selected {
    color: black !important;
}

.edit-input {
    width: calc(100% - 16px);
    padding: 8px;
    border: 0px solid #ddd;
    outline: none;
    background-color: white !important;
}

tr.selected td {
    color: white;
}

tr.selected td>div {
    color: black !important;
}

td.disabled {
    cursor: not-allowed;
}


.toolbar {
    background-color: transparent;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 0px solid #ddd;
    border-radius: 4px;

}

.toolbar-button {
    background-color: #2196F3;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    font-size: 14px;
}

.toolbar-button:hover {
    background-color: lightblue;
    color: black;
}

.toolbar-button i {
    margin-right: 5px;
}


.toolbar-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


@media only screen and (max-width: 767px) {




    .table-pagination-container {
        width: 100%;
        margin-left: 0;
        overflow-x: hidden;
        /* Moldura fixa */
        display: flex;
        flex-direction: column;
        max-height: 55vh;
        /* Limita a altura total para garantir espaço para o paginador */
    }


    .treetable {
        min-width: 300%;
        max-width: 300%;
    }

    .treetable-outer-container {
        overflow-x: auto;
        overflow-y: auto;
        /* Scroll vertical e horizontal */
        width: 100%;
        height: auto !important;
        max-height: 45vh;
        /* Limita altura da tabela para deixar espaço para o paginador */
        flex: 1 1 auto;
        min-height: 0;
        /* Importante para flexbox funcionar corretamente */
    }

    .pag_01 {
        width: 100%;
        flex-shrink: 0;
        /* Não permite que o paginador encolha */
        margin-top: 5px;
    }

    .sticky-pagination {
        flex-shrink: 0;
        /* Não permite que o paginador encolha */
        position: relative !important;
        /* Remove sticky no mobile para evitar problemas */
    }

    .treetable-outer-container::-webkit-scrollbar {
        width: 16px;
        height: 16px;
        background-color: #F5F5F5;
    }

    .treetable-outer-container::-webkit-scrollbar-thumb {
        background-color: #FFA500;
        border-radius: 10px;
        border: 2px solid #F5F5F5;
    }
}



.nav-link:not(.active) {
    color: yellow;
    /* cor do texto não selecionado */
}

.accordion-item {
    background-color: transparent;
    /* Cor amarelo claro */
}


.accordion {
    background-color: transparent;
    margin-bottom: 50px;
}

.accordion-button.collapsed {
    background-color: lightcyan;
}



.tdStatusPagto[data-status='P'] {
    background: #FFD700 !important;
    /* Amarelo */
    color: #000000 !important;
    /* Preto */
}

.tdStatusPagto[data-status='R'] {
    background-color: #006400 !important;
    /* Verde escuro */
    color: #FFD700 !important;
    /* Amarelo */
}


.tdStatusPagto[data-status='C'] {
    background-color: #FF0000 !important;
    /* Vermelho */
    color: #FFFFFF !important;
    /* Branco */
}

input:disabled,
select:disabled {
    background-color: #808080;
    color: gray;
}




/* SIDEBAR_02 */

#sidebar_02 {
    color: gold;
    position: fixed;
    z-index: 1000;
    background-color: #333333;
    padding: 20px;
    border-radius: 10px;
    border: 3px solid gold;

}

.sidebar_02-body h3 {
    color: gold;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

#sidebar02-close {
    color: gold !important;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    background-color: transparent !important;
}

#input-01-send {
    color: red;
}


@media screen and (min-width: 320px) and (max-width: 700px) {


    #container-main {
        width: 100%;
        height: calc(82vh - 2vh);
    }
}

@media screen and (min-width: 701px) and (max-width: 900px) {




    #container-main {
        width: 100%;
        height: calc(82vh - 2vh);
    }


}


/* Media query para aparelhos de tamanho médio */
@media screen and (min-width: 901px) and (max-width: 1024px) {
    #container-main {
        width: 100%;
        height: calc(90vh - 2vh);
    }

    #sidebar_02 {
        padding: 15px;
        border-radius: 8px;
    }

    .sidebar_02-body h3 {
        font-size: 18px;
    }
}

/* Estilos para o menu lateral personalizado */
.sidebar-custom {
    position: fixed;
    top: 0;
    left: -300px;
    /* Começa escondido à esquerda */
    width: 280px;
    height: calc(100vh - 70px);
    background-color: #000000;
    z-index: 1001;
    /* Maior que o overlay para ficar acima */
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* O scroll é controlado pela sidebar-content */
    border-bottom: 1px solid #ff0000;
}

.sidebar-custom.active {
    left: 0;
    /* Torna o sidebar visível */
}

#sidebar_custom_header {
    padding: 20px;
    background-color: #343a40;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
    /* Impede o cabeçalho de encolher */
}

.sidebar-content {
    padding: 20px;
    overflow-y: auto !important;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    -webkit-overflow-scrolling: touch;
    /* Melhora scroll em dispositivos touch */
}

/* Scrollbar para a sidebar-content */
.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: #ff0000;
    border-radius: 3px;
}

#sidebar_custom_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.menu-box-pink {
    background-color: #8b0000;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
}

.menu-item {
    display: flex;
    padding: 12px 15px;
    /* Ajuste de padding para consistência */
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
    text-align: center;
    /* Centraliza o texto */
    border-radius: 4px;
    /* Adiciona bordas arredondadas */
    margin-bottom: 5px;
    /* Espaçamento entre os itens */
    min-height: 44px;
    /* Garante altura mínima consistente */
    align-items: center;
    /* Centraliza verticalmente */
    justify-content: center;
    /* Centraliza horizontalmente */
    width: 100%;
    /* Garante que todos ocupem a mesma largura */
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background-color: #ffffff;
    color: #8b0000;
}

.menu-item-selected {
    background-color: #ff85a2;
    color: white;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.logo-neon {
    filter: drop-shadow(0 0 2px #ffffff) drop-shadow(0 0 5px #ffffff);
    transition: filter 0.3s ease;
}

.logo-neon:hover {
    filter: drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 10px #ffffff) drop-shadow(0 0 15px #ffffff);
}

.sidebar-custom::-webkit-scrollbar {
    width: 6px;
}

.sidebar-custom::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.sidebar-custom::-webkit-scrollbar-thumb {
    background: #ff0000;
    border-radius: 3px;
}


.sidebar-custom:focus {
    outline: none;
}

.sidebar-content:focus {
    outline: none;
    /* Remove outline padrão, permite navegação por teclado */
}