/* 
 * Fix global para dropdowns dos DataTables aparecerem fora da div table-responsive
 * Aplicado automaticamente em todos os DataTables do sistema
 */

/* Dropdown movido para body - manter estilo Bootstrap */
.dropdown-menu-detached {
    position: fixed !important;
    z-index: 10000 !important;
    display: block !important;
    min-width: 160px;
    padding: 1px 0;
    margin: 0px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
}

/* Estilo dos itens do dropdown */
.dropdown-menu-detached > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu-detached > li > a,
.dropdown-menu-detached > li > form,
.dropdown-menu-detached > li > button {
    display: block;
    padding: 8px 15px;
    clear: both;
    font-weight: normal;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    margin: 0;
}

.dropdown-menu-detached > li > a:hover,
.dropdown-menu-detached > li > form:hover,
.dropdown-menu-detached > li > button:hover {
    color: #262626;
    text-decoration: none;
    background-color: #f5f5f5;
}

/* Dividers no dropdown */
.dropdown-menu-detached > .divider {
    height: 1px;
    margin: 0px 0;
    overflow: hidden;
    background-color: #e5e5e5;
}

/* Botões dentro do dropdown - resetar estilos Bootstrap */
.dropdown-menu-detached .btn {
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    padding: 8px 15px !important;
    background-color: transparent !important;
    color: #333 !important;
    text-align: left !important;
    width: 100% !important;
    font-weight: normal !important;
}

.dropdown-menu-detached .btn:hover,
.dropdown-menu-detached .btn:focus {
    background-color: #f5f5f5 !important;
    color: #262626 !important;
    box-shadow: none !important;
}

.dropdown-menu-detached .btn-light {
    background-color: transparent !important;
    color: #333 !important;
}

.dropdown-menu-detached .btn-light:hover {
    background-color: #f5f5f5 !important;
    color: #262626 !important;
}

/* Ícones FontAwesome */
.dropdown-menu-detached .fa {
    margin-right: 8px;
    width: 14px;
    text-align: center;
    display: inline-block;
}

/* Formulários inline no dropdown */
.dropdown-menu-detached .form-inline {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Esconder dropdown original quando movido */
.dropdown-moved .dropdown-menu {
    display: none !important;
} 