/* Rij-acties: knop met drie punten + contextmenu (zie RowActionsHelper) */
.row-actions {
    display: inline-block;
    position: relative;
}

th.row-actions-col,
td.row-actions-col {
    width: 1%;
    white-space: nowrap;
    text-align: center;
}

.row-actions-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.row-actions-toggle:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.row-actions-toggle:focus-visible {
    outline: none;
    border-color: var(--primary-color, #4f46e5);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.row-actions-toggle[aria-expanded="true"] {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color, #4f46e5);
}

.row-actions-menu {
    display: none;
    position: fixed;
    z-index: 1080;
    min-width: 12rem;
    max-width: 20rem;
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.375rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-sm, 0.5rem);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 4px 10px -6px rgba(15, 23, 42, 0.1);
    text-align: left;
    white-space: nowrap;
}

.row-actions-menu.is-open {
    display: block;
    animation: row-actions-fade-in 0.12s ease-out;
}

@keyframes row-actions-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.row-actions-item,
.row-actions-item-custom > a,
.row-actions-item-custom > button {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.row-actions-item-custom {
    padding: 0;
}

.row-actions-item i,
.row-actions-item-custom i {
    width: 1rem;
    color: #94a3b8;
    text-align: center;
    transition: color 0.12s ease;
}

.row-actions-item:hover,
.row-actions-item:focus,
.row-actions-item-custom > a:hover,
.row-actions-item-custom > button:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    outline: none;
}

.row-actions-item:hover i,
.row-actions-item:focus i {
    color: var(--primary-color, #4f46e5);
}

.row-actions-item-danger,
.row-actions-item-danger i {
    color: #dc2626;
}

.row-actions-item-danger:hover,
.row-actions-item-danger:focus {
    background-color: #fef2f2;
    color: #b91c1c;
}

.row-actions-item-danger:hover i,
.row-actions-item-danger:focus i {
    color: #b91c1c;
}

.row-actions-divider {
    height: 1px;
    margin: 0.375rem 0.25rem;
    background-color: #e2e8f0;
}
