/* Keep the year inside the existing date popup; Category controls remain native and inline. */
html.bf-secondary-ui [role="listitem"]:has(>button[data-testid="parameter-value-widget-target"][aria-label="Quarter year"]){display:none!important}
html.bf-secondary-ui [role="listitem"]:has(>button[data-testid="parameter-value-widget-target"][aria-label="Category"]){display:none!important}
.bf-secondary-category{display:flex;align-items:center;gap:8px;margin-left:auto;margin-right:10px;font-size:12px;flex-shrink:0;color:var(--mb-color-text-secondary,#94a1ad)}
.bf-secondary-category select{max-width:210px;padding:6px 8px;border:1px solid var(--mb-color-border,#3b4953);border-radius:6px;background:var(--mb-color-background-primary,#071923);color:var(--mb-color-text-primary,#f0f2f4);font:inherit;cursor:pointer}
.bf-secondary-category select:focus-visible{outline:2px solid #509ee3;outline-offset:2px}
html[data-mantine-color-scheme="light"] .bf-secondary-category select{background:#fff;color:#26323b}
.bf-secondary-note{display:none}
/* The club chart owns its checkbox dropdown; its native parameter remains mapped but hidden in the shared header. */
html.bf-secondary-ui [role="listitem"]:has(>button[data-testid="parameter-value-widget-target"][aria-label="Purchase categories"]){display:none!important}
html.bf-secondary-ui [role="listitem"]:has(>button[data-testid="parameter-value-widget-target"][aria-label="Ranking categories"]){display:none!important}
.bf-purchase-selector{margin-left:auto;margin-right:10px;padding:6px 10px;border:1px solid var(--mb-color-border,#3b4953);border-radius:6px;background:var(--mb-color-background-primary,#071923);color:var(--mb-color-text-primary,#f0f2f4);font:12px Lato,Arial,sans-serif;cursor:pointer}
.bf-purchase-selector:after{content:' ▾'}
.bf-purchase-popup{position:fixed;z-index:10000;width:280px;max-height:calc(100vh - 24px);overflow:auto;padding:14px;background:var(--mb-color-background-primary,#071923);color:var(--mb-color-text-primary,#f0f2f4);border:1px solid var(--mb-color-border,#3b4953);border-radius:8px;box-shadow:0 12px 40px #0006;font:14px/1.4 Lato,Arial,sans-serif}
.bf-purchase-options{margin-top:10px;max-height:350px;overflow:auto}
.bf-purchase-options label{display:flex;gap:10px;align-items:center;padding:7px 3px;cursor:pointer}
.bf-purchase-options input{accent-color:#509ee3;width:16px;height:16px;flex-shrink:0}
.bf-purchase-footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--mb-color-border,#3b4953);padding-top:12px;margin-top:10px}
.bf-purchase-footer button{padding:7px 12px;border:1px solid var(--mb-color-border,#3b4953);border-radius:6px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.bf-purchase-footer button.bf-purchase-apply{background:#509ee3;color:#081b29;border-color:#509ee3}
.bf-purchase-footer button:disabled{opacity:.4;cursor:default}
html[data-mantine-color-scheme="light"] .bf-purchase-popup,html[data-mantine-color-scheme="light"] .bf-purchase-selector{background:#fff;color:#26323b}

/* Ranking Club is a widget-owned control, retaining both the shared Club and table-specific scope. */
html.bf-secondary-ui [role="listitem"]:has(>button[data-testid="parameter-value-widget-target"][aria-label="Ranking clubs"]){display:none!important}
/* Adjacent ranking controls stay together without inserting a second automatic gap. */
.bf-purchase-selector + .bf-purchase-selector{margin-left:0}
