/* A dropdown action menu: the panel and its items. Global rather than scoped so every row menu
   draws one panel from one rule set (DocumentRowMenu's ⋯ menu and DocumentDownloadButton's caret
   sit side by side in the same row). A component adds its own class beside these for anything
   that is only its own, such as a min-width. */
.action-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 12rem;
    padding: 0.25rem;
    background-color: var(--white);
    border: 1px solid var(--beige-200);
    border-radius: 0.625rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
}

.action-menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 0.5rem;
    background: none;
    border: none;
    border-radius: 0.375rem;
    color: var(--beige-800);
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.action-menu-item:hover {
    background-color: var(--beige-100);
}

.action-menu-item.danger {
    color: var(--maroon-600);
}

.action-menu-item svg {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}
