/* P100 — Windows-like right-click menu alignment.
 * Scope: Desktop context menus only. Functional behavior is unchanged.
 */
.context-menu button,
#desktopContext button,
#templateContext button {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    column-gap: 8px !important;
    align-items: center !important;
    justify-content: stretch !important;
    text-align: left !important;
    padding-inline: 9px !important;
}

.context-menu .context-menu-icon,
#desktopContext .context-menu-icon,
#templateContext .context-menu-icon {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    display: inline-grid !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    font-size: 14px !important;
    line-height: 1 !important;
    text-align: center !important;
    justify-self: center !important;
}

.context-menu .context-menu-label,
#desktopContext .context-menu-label,
#templateContext .context-menu-label {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
    justify-self: stretch !important;
}

.context-menu hr,
#desktopContext hr,
#templateContext hr {
    grid-column: 1 / -1 !important;
}
