/**
 * Table Dropdown Fix
 * Corrige problemas com dropdowns em tabelas
 */

/* Fix dropdown z-index in tables */
.table-responsive {
    overflow: visible !important;
}

.table tbody tr {
    position: relative;
}

/* Dropdown menu positioning fix */
.dropdown-menu {
    position: absolute !important;
    z-index: 1050 !important;
    will-change: transform;
}

/* Fix dropdown in DataTables */
.dataTables_wrapper .dropdown-menu {
    position: fixed !important;
}

/* Ensure dropdown doesn't get cut off */
.card-body {
    overflow: visible !important;
}

/* Fix for action buttons */
.btn-group {
    position: static;
}

.dropdown-toggle::after {
    margin-left: 0.255em;
}

/* Fix dropdown animation */
.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fix table overflow issues */
.table-container {
    position: relative;
    overflow: visible !important;
}

/* Responsive table fixes */
@media (max-width: 768px) {
    .dropdown-menu {
        position: absolute !important;
        left: auto !important;
        right: 0 !important;
    }
}
