/* ========================================
   Action Dropdown Menu (shadcn-style)
   Row actions rendered as a three-dots trigger
   opening a menu of icon + label items.
   ======================================== */

.itg-action-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.itg-action-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.itg-action-dropdown-trigger svg {
    width: 18px;
    height: 18px;
}

.itg-action-dropdown-trigger:hover {
    background: rgba(0, 86, 179, 0.08);
    color: #0f172a;
}

.itg-action-dropdown-trigger:focus-visible {
    outline: 2px solid var(--primary, #0056b3);
    outline-offset: 1px;
}

.itg-action-dropdown-trigger.is-open {
    background: rgba(0, 86, 179, 0.12);
    color: #0f172a;
}

.itg-action-dropdown-menu {
    z-index: 10100;
    min-width: 220px;
    max-width: 260px;
    padding: 6px;
    margin: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
    font-family: 'itg-outfit', 'Outfit', Arial, sans-serif;
}

.itg-action-dropdown-menu--enter {
    animation: itg-action-dropdown-in 0.12s ease-out;
}

@keyframes itg-action-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.itg-action-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    margin: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #0f172a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.12s ease;
}

.itg-action-menu-item:hover,
.itg-action-menu-item:focus-visible {
    background: #f1f5f9;
    color: #0f172a;
    outline: none;
}

.itg-action-menu-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #64748b;
}

.itg-action-menu-item:hover svg,
.itg-action-menu-item:focus-visible svg {
    color: #0f172a;
}

.itg-action-menu-item--danger {
    color: #dc2626;
}

.itg-action-menu-item--danger svg {
    color: #dc2626;
}

.itg-action-menu-item--danger:hover,
.itg-action-menu-item--danger:focus-visible {
    background: #fef2f2;
    color: #dc2626;
}

.itg-action-menu-item--danger:hover svg,
.itg-action-menu-item--danger:focus-visible svg {
    color: #dc2626;
}

.itg-action-menu-item.is-disabled,
.itg-action-menu-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}