/* === CONTENEDOR DE AMBOS BOTONES (Estado + Acciones) === */
.col-acciones {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    position: relative;
    white-space: nowrap;
}

/* === BOTONES PRINCIPALES (delgados, alineados, bonitos) === */
.menu-btn {
    background: #ffffff;
    border: 1px solid #cccccc;
    padding: 4px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px; /* espacio entre icono y texto */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Flecha al final, no debajo */
.menu-btn::after {
    content: "▼";
    font-size: 11px;
    margin-left: 4px;
    opacity: 0.7;
}

/* === MENÚ DESPLEGABLE === */
.menu {
    display: none;
    position: absolute;            /* ESTO LO ARREGLA TODO */
    min-width: 200px;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 999999;            /* SOBRE TODO */
    animation: fadeIn 0.15s ease-out;
    overflow: hidden;
}


/* Animación */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === OPCIONES DEL MENÚ === */
.menu a,
.menu button {
    width: 100%;
    padding: 9px 15px;
    font-size: 14px;
    border: none;
    background: none;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.menu a:hover,
.menu button:hover {
    background: #f2f2f2;
}

/* Si el menú se sale de la pantalla → moverlo a la derecha */
.menu-desbordado {
    right: 0 !important;
    left: auto !important;
}
