/* BRAHIMI V5.2.0 */
/* BFZ_V520_SOFTWAREWIDE_SYSTEM_COLOR_AUDIT */
:root{--bfz-system-color:var(--user-blue,#1f6ca8);--bfz-v520-system:var(--bfz-system-color);--bfz-v520-system-soft:color-mix(in srgb,var(--bfz-v520-system) 10%,#fff);--bfz-v520-system-line:color-mix(in srgb,var(--bfz-v520-system) 30%,#dbe6ed)}
body.bfz-v520-theme{--primary:var(--bfz-v520-system);--accent:var(--bfz-v520-system)}

/* Primary actions: semantic success/warning/danger controls are deliberately excluded. */
body.bfz-v520-theme :is(button,input[type="submit"],a).primary,
body.bfz-v520-theme :is(button,input[type="submit"],a).btn-primary,
body.bfz-v520-theme :is(button,input[type="submit"],a).button-primary,
body.bfz-v520-theme :is(button,input[type="submit"],a)[data-primary-action="true"],
body.bfz-v520-theme .dp-btn.primary,
body.bfz-v520-theme .dp-optimize-open,
body.bfz-v520-theme .dp-disposition-apply,
body.bfz-v520-theme .dp-optimizer-submit{
  background:var(--bfz-v520-system)!important;background-color:var(--bfz-v520-system)!important;border-color:var(--bfz-v520-system)!important;color:#fff!important;-webkit-text-fill-color:#fff!important
}

/* V5.3 correction: this block is intentionally narrow.
   V5.2 briefly recoloured generic active/selected controls, including white
   iOS-style filter switches. Only controls that were filled dark blue before
   the theme bridge belong to the system colour. */
body.bfz-v520-theme .dp-segment a.active,
body.bfz-v520-theme .dp-filter-chip.active,
body.bfz-v520-theme .dp-resource-palette-tabs button.is-active{
  background:var(--bfz-v520-system)!important;background-color:var(--bfz-v520-system)!important;border-color:var(--bfz-v520-system)!important;color:#fff!important;-webkit-text-fill-color:#fff!important
}

/* Configurable focus/selection treatment. */
body.bfz-v520-theme :is(input,select,textarea,button,a):focus-visible{outline-color:var(--bfz-v520-system)}
body.bfz-v520-theme input[type="checkbox"],body.bfz-v520-theme input[type="radio"]{accent-color:var(--bfz-v520-system)}
body.bfz-v520-theme ::selection{background:color-mix(in srgb,var(--bfz-v520-system) 24%,transparent)}

/* Historical fixed-blue primary controls discovered by the V5.2 audit. */
body.bfz-v520-theme .bfz-v301-primary,
body.bfz-v520-theme .bfz-v350-primary,
body.bfz-v520-theme .bfz-v400-primary,
body.bfz-v520-theme .bfz-v420-primary,
body.bfz-v520-theme .bfz-v450-primary,
body.bfz-v520-theme .bfz-v490-primary,
body.bfz-v520-theme .bfz-v500-primary{
  background:var(--bfz-v520-system)!important;border-color:var(--bfz-v520-system)!important;color:#fff!important
}

/* Do not convert semantic status colors into the system color. */
body.bfz-v520-theme :is(.danger,.error,.is-danger,.is-error,.warning,.is-warning,.success,.is-success,.is-negative,.is-positive){--bfz-v520-semantic-preserve:1}

/* V5.2 audit: legacy modules with fixed old-blue active-state rules. */
body.bfz-v520-theme .om-v450-period-tabs a.is-active,
body.bfz-v520-theme .om-v450-period-tabs a.is-active:visited,
body.bfz-v520-theme .om-v450-period-tabs a.is-active:hover,
body.bfz-v520-theme .om-v450-saved-views a.is-active,
body.bfz-v520-theme .module-order-button.active{
  background:var(--bfz-v520-system)!important;background-color:var(--bfz-v520-system)!important;border-color:var(--bfz-v520-system)!important;color:#fff!important;-webkit-text-fill-color:#fff!important
}
body.bfz-v520-theme .om-v450-list-head nav a.is-active{color:var(--bfz-v520-system)!important}
body.bfz-v520-theme .om-v450-list-head nav a.is-active::after{background:var(--bfz-v520-system)!important}
body.bfz-v520-theme :is(.cm-v460-site-choice,.cm-v460-issue-choice).is-active{
  border-color:var(--bfz-v520-system)!important;box-shadow:0 0 0 1px var(--bfz-v520-system) inset!important;background:var(--bfz-v520-system-soft)!important
}
body.bfz-v520-theme .bfz-v400-optimizer-scope label.selected{
  border-color:var(--bfz-v520-system)!important;background:var(--bfz-v520-system-soft)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--bfz-v520-system) 10%,transparent)!important
}
