/* Action button styles for tables */
.action-btn-group {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.action-btn {
    background: white;
    border: 2px solid #dee2e6;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    color: #495057;
    transition: all 0.25s ease;
    outline: none;
    min-width: 40px;
    min-height: 40px;
}

.action-btn:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

.action-btn:hover {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    border-color: #1e3a5f;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.25);
    transform: translateY(-2px);
}

.action-btn svg {
    width: 1.25em;
    height: 1.25em;
    vertical-align: middle;
    transition: transform 0.2s;
}

.action-btn:active svg {
    transform: rotate(90deg) scale(1.1);
}

.action-dropdown {
    display: none;
    position: fixed;
    min-width: 152px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(30, 58, 95, 0.15), 0 4px 8px rgba(0,0,0,0.08);
    z-index: 10000;
    flex-direction: column;
    padding: 0.35rem;
    animation: dropdownFadeIn 0.25s ease;
    list-style: none;
    overflow: visible !important;
}

/* Permitir que el dropdown sobresalga solo del td con acciones */
.custom-table tbody td:last-child {
    overflow: visible !important;
}

.action-dropdown.show {
    display: flex;
}

.action-dropdown-btn {
    background: none;
    border: none;
    color: #333;
    padding: 0.65rem 0.9rem;
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-weight: 500;
}

.action-dropdown-btn:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(4px);
}

.action-dropdown-btn.edit {
    color: #ff9800;
}

.action-dropdown-btn.edit:hover {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #f57c00;
}

.action-dropdown-btn.delete {
    color: #e94560;
}

.action-dropdown-btn.delete:hover {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
}

.action-dropdown-btn svg {
    width: 1.1em;
    height: 1.1em;
}

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

