/* Global styles for AccessControl panel popover.
   These must be global because MudBlazor renders the popover outside the component's DOM tree,
   so CSS isolation (scoped) cannot reach them. */

.ps-panel {
    min-width: 300px;
    max-width: 340px;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 6px !important;
}

.ps-panel-header {
    background: var(--mud-palette-primary);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .ps-panel-header span {
        color: white;
        font-weight: 600;
        font-size: 0.85rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.ps-panel-account {
    padding: 16px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ps-panel-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--mud-palette-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.ps-panel-info {
    overflow: hidden;
    flex: 1;
}

.ps-panel-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-panel-email {
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-panel-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    justify-content: flex-start;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

    .ps-panel-action:hover {
        background: var(--mud-palette-action-default-hover);
    }

.ps-panel-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--mud-palette-background-grey);
    color: var(--mud-palette-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}
