/* Scrollbar principal (vertical) */
::-webkit-scrollbar {
    width: 6px;
}

/* Scrollbar horizontal (para tabelas) */
::-webkit-scrollbar:horizontal {
    height: 6px;
}

/* Track (trilha) - quase invisível */
::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

/* Handle (alça) - muito discreta */
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Handle ao passar o mouse */
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Handle ativo (arrastando) */
::-webkit-scrollbar-thumb:active {
    background: rgba(0, 0, 0, 0.35);
}

/* Para Firefox - scrollbar fina e transparente */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

/* Scrollbars específicas para tabelas responsivas - ainda mais discretas */
.table-responsive::-webkit-scrollbar {
    height: 4px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    margin: 0 2px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

/* Scrollbars para modais - mais finas */
.modal-content::-webkit-scrollbar {
    width: 4px;
}

/* Scrollbars para elementos com hover - aparecem só ao passar o mouse */
.scrollable-hover {
    overflow-y: auto;
}

.scrollable-hover::-webkit-scrollbar-track {
    background: transparent;
}

.scrollable-hover::-webkit-scrollbar-thumb {
    background: transparent;
}

.scrollable-hover:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

/* Versão ainda mais discreta para elementos pequenos */
.scrollable-ghost::-webkit-scrollbar {
    width: 3px;
}

.scrollable-ghost::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

.scrollable-ghost::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Classes utilitárias para alturas (mantidas do anterior) */
.scrollable-sm { max-height: 200px; overflow-y: auto; }
.scrollable-md { max-height: 400px; overflow-y: auto; }
.scrollable-lg { max-height: 600px; overflow-y: auto; }
.scrollable-viewport { max-height: 70vh; overflow-y: auto; }

/* Suporte para modo escuro (se aplicável) */
@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.25);
    }
    
    * {
        scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    }
}
/* FIM DO SCROLL BAR */


.approval-form-container {
    height: 90vh;
    overflow-y: auto;
}

.container {
    padding: 2rem;
    margin: 0 auto;
}	


/* estilo do formulario de login */
.form-container {
    max-width: 600px;   
    padding: 1rem;
    width: 100%;
    margin: 0 auto;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* estilo da pagina index */
.iframe {
    height: 100vh;
    width: 100%;
    border: none;
}

#iframe-conteudo {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}


@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
}

body {
    font-family: 'Poppins', sans-serif;
}

.wrapper {
    display: flex;
}

.main {
    min-height: 100%;
    width: calc(100% - 4.5rem); /* Ajuste a largura para considerar o tamanho do menu lateral */
    margin-left: 4.5rem; /* Ajuste a margem esquerda para dar espaço ao menu lateral */
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    background-color: #fafbfe;
}

aside#sidebar {
    width:  4.5rem;;
    min-width: 0%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    position: fixed; /* Fixa o sidebar na tela */
    top: 0; /* Alinha ao topo da tela */
    bottom: 0; /* Estende até o fundo da tela */
    height: 100%; /* Garante que tenha a altura total da tela */
    transition: all .25s ease-in-out;
    background-color: #0e2238; /* Cor de fundo */
}

#sidebar {
    width: 100%;
    min-width: 100%;
    z-index: 1000;
    top: 0;
    bottom: 0;
    height: 100vh;
    transition: all .25s ease-in-out;
    background-color: #0e2238;
    display: flex;
    flex-direction: column;
}


#sidebar.expand {
    width: 260px;
    min-width: 260px;
}

.toggle-btn {
    background-color: transparent;
    cursor: pointer;
    border: 0;
    padding: 1rem 1.5rem;
}

.toggle-btn i {
    font-size: 1.5rem;
    color: #FFF;
}

.sidebar-logo {
    margin: auto 0;
}

.sidebar-logo a {
    color: #FFF;
    font-size: 1.15rem;
    font-weight: 600;
}

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span {
    display: none;
}

.sidebar-nav {
    padding: 2rem 0;
    flex: 1 1 auto;
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: #FFF;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.sidebar-link i {
    font-size: 1.1rem;
    margin-right: .75rem;
}

a.sidebar-link:hover {
    background-color: rgba(255, 255, 255, .075);
    border-left: 3px solid #3b7ddd;
}

.sidebar-item {
    position: relative;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    position: absolute;
    top: 0;
    left: 70px;
    background-color: #0e2238;
    padding: 0;
    min-width: 15rem;
    display: none;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown {
    display: block;
    max-height: 15em;
    width: 100%;
    opacity: 1;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}

/* CSS APLICADO NO SELECT COM BARRA DE PESQUISA */
.select2-container--bootstrap4 .select2-selection--single {
    height: auto;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

/* Texto dentro da seleção */
.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    color: var(--bs-body-color);
    line-height: 1.5;
}

/* Dropdown (lista de opções) */
.select2-container--bootstrap4 .select2-dropdown {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    font-size: 1rem;
}

/* Opções dentro do dropdown */
.select2-container--bootstrap4 .select2-results__option {
    color: var(--bs-body-color);
    padding: 0.375rem 0.75rem;
}

/* Opção selecionada */
.select2-container--bootstrap4 .select2-results__option--highlighted {
    background-color: var(--bs-primary);
    color: #fff;
}