/* Amgreat (2026-09-24): hide Metabase's paid-plan upsells for every user.
 * Linked into every Metabase page by the same proxy that adds hook.js (nginx.conf).
 * Display only: no setting, licence or feature changes. Metabase's own update
 * notices stay on. A stylesheet rather than a script because Metabase's CSP
 * allows same-origin stylesheets but no inline style.
 *
 * Metabase marks its upsells with data-testid="upsell-...": banners, cards and
 * the gem badge on menu entries that only lead to a paywall. */

/* Upsell banners and cards, on any page */
[data-testid^="upsell-"]:not([data-testid="upsell-gem"]) { display: none !important; }

/* Menu entries, tabs and links that carry the gem: paid-only destinations */
a:has([data-testid="upsell-gem"]),
[role="tab"]:has([data-testid="upsell-gem"]) { display: none !important; }

/* Paid-only pages whose menu entry carries no gem: Tools, Erroring questions
 * (in OSS it holds only an upsell card, empty once that is hidden) */
[data-testid="admin-layout-sidebar"] a[href="/admin/tools/errors"] { display: none !important; }

/* Any remaining link to Metabase's upgrade page or store (the gem in the admin bar) */
a[href*="metabase.com/upgrade"],
a[href*="store.metabase.com"] { display: none !important; }
