Correções para funcionalidade dos menus

/* Garantir que dropdowns funcionem corretamente */
.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block !important;
}

/* Garantir que menus de implementos sejam visíveis */
#mostrar-navbarImplementos {
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#mostrar-navbarImplementos.active {
    display: block !important;
}

/* Garantir que menus de empresa sejam visíveis */


#mostrar-navbarEmpresa.active {
    display: block !important;
}

/* Garantir que menus de tradução sejam visíveis */
#mostrar-navbarTraducao {
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    right: 0;
    left: inherit !important;
}

#mostrar-navbarTraducao.active {
    display: block !important;
}

/* Garantir que listas de implementos sejam visíveis */
#lista-linha {
    max-height: 400px;
    overflow-y: auto;
}

#lista-implementos {
    max-height: 400px;
    overflow-y: auto;
}

/* Garantir que elementos de carregamento sejam visíveis */
.loading-element {
    display: flex !important;
    justify-content: center;
    align-items: center;
    height: 100px;
}

/* Garantir que preloader funcione */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-loading.active {
    display: flex !important;
}

.page-loading:not(.active) {
    display: none !important;
}
