/* Acciones por fila de una tabla: uno o dos botones ícono visibles y el resto
   dentro del menú "…" (row_actions.js). El menú es position:fixed y lo ubica el
   JS, así que no lo recorta el overflow del contenedor de la tabla. */

.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .25rem;
}

.ra-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: .375rem;
    cursor: pointer;
    color: rgb(var(--c-txt-2));
    background: rgb(var(--c-card));
    border: 1px solid rgb(var(--c-stroke-strong));
    transition: background .15s;
}
.ra-btn:hover { background: rgb(var(--c-subtle)); }

.ra-menu {
    position: fixed;
    z-index: 70;
    min-width: 13rem;
    padding: .25rem;
    background: rgb(var(--c-card));
    border: 1px solid rgb(var(--c-stroke));
    border-radius: .5rem;
    box-shadow: var(--shadow-pop);
}
.ra-menu.hidden { display: none; }
/* Los ítems que son POST van envueltos en su propio <form>: sin esto el form
   agrega su caja y el botón deja de ocupar el ancho del menú. */
.ra-menu form { display: block; margin: 0; }

.ra-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .4375rem .625rem;
    border-radius: .375rem;
    font-size: .8125rem;
    color: rgb(var(--c-txt-2));
    white-space: nowrap;
    text-align: left;
}
.ra-item:hover { background: rgb(var(--c-muted-bg)); }
/* Variante <button> (acciones POST): que no herede el look de botón del browser. */
button.ra-item {
    background: none;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}
button.ra-item:hover { background: rgb(var(--c-muted-bg)); }
button.ra-item:disabled { opacity: .45; cursor: not-allowed; }
button.ra-item:disabled:hover { background: none; }

.ra-item.ra-danger { color: var(--tone-red-fg); }
.ra-item.ra-danger:hover { background: var(--tone-red-bg); }

.ra-sep { height: 1px; margin: .25rem .375rem; background: rgb(var(--c-stroke)); }
