html {
    overflow-x: hidden;
}
body {
    margin: 0;
    overflow: hidden;
    padding-top: 18px;
    background: linear-gradient(135deg, #200122 0%, #6f0000 100%);
    background-attachment: fixed;
}


#logo1 {
    max-width: 500px;
    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 e o footer */
body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Centraliza horizontalmente */
}

/* Header */
header, nav {
    overflow: hidden;
    box-sizing: border-box;
    margin: 5px 0 !important;
    width: 95% !important;
    padding: 5px !important;
    display: flex !important;
    align-items: center !important; /* Centraliza verticalmente */
    justify-content: center !important; /* O Header centraliza a ROW */
}

/* 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: 70px !important; /* Reduzido em 30% (era 100px) */
    width: auto !important;
}

/* Ajustes Específicos para Mobile */
@media screen and (max-width: 768px) {
    #logo-header {
        max-height: 42px !important; /* Reduzido em 30% (era 60px) */
    }
}

/* Main Container - Scrollable */
#container-main {
    width: 100%;
    height: 68vh !important; /* Altura fixa calculada */
    overflow-y: auto !important; /* Rolagem interna permitida */
    overflow-x: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #FFA500 #202020;
    padding: 0 0 20px 0 !important; /* Adicionando 20px de padding inferior para evitar que o conteúdo fique grudado no footer */
    margin: 0 !important;
    background: transparent;
}

/* Media query para desktop (dispositivos maiores) */
@media screen and (min-width: 768px) {
    header, .top-menu, nav {
    }

    #container-main {
        height: 68vh !important;
    }
}

/* Footer - Input Container */
footer {
    position: fixed;
    bottom: 0;
    width: 95%;
    margin: 0 auto !important;
    padding: 5px !important;
    height: 12vh !important; /* Altura fixa calculada */
    background-color: transparent !important;
    z-index: 999;
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important; /* Centraliza verticalmente */
    justify-content: center !important; /* Centraliza horizontalmente */
}

footer * span {
    color: red !important;
}

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


label {
    color: red;
}


.material-icons {
    font-size: 20px;
    color: black;
}



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

#header_icon_role_user:hover {
    color: #FFA500 !important;
    transform: scale(1.1);
}

#header_icon_role_user:active {
    transform: scale(0.95);
}

/* 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;
}


.treetable-outer-container {
    width: 100%;
    height: 60vh;
    min-height: 60vh;
    overflow: auto;
    position: relative;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.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;
    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-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;
}


/* Padding inferior para dispositivos móveis */
@media only screen and (max-width: 767px) {


    .container {
        padding-bottom: 70px;
    }
}

/* Padding inferior para desktop (dispositivos maiores) */
@media screen and (min-width: 768px) {
    .container {
        padding-bottom: 70px;
    }
}


.treetable-outer-container {
    overflow: auto;
    width: 100%;
    height: 60vh;
    min-height: 60vh;
}

.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%;
        max-height: 100%;
    }
}

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




    #container-main {
        width: 100%;
        height: calc(72vh - 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(88vh - 2vh);
    }

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

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

/* Custom Sidebar Styles (Adapted from Sidebar 04) */
.sidebar-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 90vh;
    background-color: #FFB6C1; /* LightPink */
    color: black; /* Black text for readability */
    z-index: 950;
    transform: translateX(-100%);
    transition: transform 0.5s ease, opacity 0.3s ease;
    /* sidebar_04 transition */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-custom.active {
    transform: translateX(0);
    opacity: 1;
}

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

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

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    /* sidebar_04 padding */
    border-bottom: 1px solid #ddd;
    min-height: 60px;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    /* sidebar_04 size */
    font-weight: bold;
    /* Changed to bold */
    color: black !important;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    /* sidebar_04 color */
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: #e0e0e0;
    color: #333;
}

.sidebar-content {
    flex: 1;
    padding: 15px 25px 15px 15px;
    /* sidebar_04 padding */
    overflow-y: auto;
    padding-bottom: 100px;
}

.sidebar-link {
    display: block;
    padding: 10px;
    color: white; /* Changed to white */
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
    width: 100%;
    /* Ensure full width for selection highlight */
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: yellow; /* Alterado para amarelo */
}

.menu-box-pink {
    background-color: black;
    /* Changed to Black */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #FF69B4; /* Changed to HotPink */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
}

.menu-item-selected {
    background-color: #FF69B4 !important;
    /* Changed to Pink */
    color: black !important;
    /* Changed to Black */
    border-radius: 4px;
}

/* Fade Transitions for page content */
#container-main.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

#container-main.fade-in {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

#container-main {
    opacity: 1;
    transition: opacity 0.3s;
}
