/*
 * Action menus: the row menu of the list tables (TableCells.actions) and the
 * page actions of detail views (components/_actions.html). Loaded globally.
 * Neutral items, a single divider, only the destructive action in red.
 */

.action-menu__toggle {
    color: var(--tblr-secondary);
}

.action-menu__toggle:hover,
.action-menu__toggle:focus-visible,
.action-menu__toggle[aria-expanded="true"] {
    color: var(--tblr-body-color);
}

.action-menu {
    min-width: 11rem;
    padding: .25rem;
}

.action-menu .dropdown-item {
    gap: .5rem;
    padding: .5rem .625rem;
    font-size: .875rem;
    border-radius: var(--tblr-border-radius);
}

.action-menu .dropdown-item-icon {
    margin-right: 0;
    color: var(--tblr-secondary);
}

.action-menu .dropdown-divider {
    margin: .25rem 0;
}

.action-menu .action-menu__danger,
.action-menu .action-menu__danger .dropdown-item-icon {
    color: var(--ec-text-danger);
}

.action-menu .action-menu__danger:hover,
.action-menu .action-menu__danger:focus-visible {
    background: rgba(var(--tblr-danger-rgb), .08);
}

/* Navbar bell (partials/navbar/_notifications.html). */
.notification-bell {
    width: min(24rem, calc(100vw - 2rem));
}

.bell-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

/* The text column must be able to shrink, or long text overflows the menu. */
.bell-item__body {
    flex: 1 1 auto;
    min-width: 0;
}

/* The message: up to two lines, then an ellipsis. */
.bell-item__message {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.bell-item--unread .bell-item__subject {
    font-weight: var(--tblr-font-weight-medium, 500);
}

/* Unread marker: a small dot, the only state the list needs to show. */
.bell-item__dot {
    flex-shrink: 0;
    width: .5rem;
    height: .5rem;
    margin-top: .5rem;
    border-radius: 50%;
    background: var(--tblr-primary);
}
