/* BRIOUX_29_SCOPED_FINISH_V1
   Final targeted branding layer. No broad body * color rules.
   Pink is an accent; pink-to-black gradients belong to headers, not buttons.
*/
:root { --brx29-pink: #FF2B86; }
body.brioux-executive-ui,
body.brioux-gateway-ui {
    --brx-magenta: #FF2B86 !important;
    --brx-magenta-bright: #FF2B86 !important;
    --primary-brand: #FF2B86 !important;
    --accent-brand: #FF2B86 !important;
    --brand-pink: #FF2B86 !important;
    --brand-magenta: #FF2B86 !important;
    --pink: #FF2B86 !important;
    --magenta: #FF2B86 !important;
    --hot-pink: #FF2B86 !important;
    --sales-accent: #FF2B86 !important;
    --support-accent: #FF2B86 !important;
    --mh-accent: #FF2B86 !important;
}
/* Solid primary actions: one pink, no two-pink gradients. */
body.brioux-executive-ui :is(
    .btn-primary, .primary-button, .button-primary, .brx-part2-primary-button,
    .btn-login, .gateway-button, .portal-button, .support-button.primary,
    button.primary
),
body.brioux-gateway-ui :is(
    .btn-primary, .primary-button, .button-primary, .btn-login,
    .gateway-button, .portal-button, button.primary
) {
    background: #FF2B86 !important;
    background-image: none !important;
    border-color: #FF2B86 !important;
    color: #FFFFFF !important;
    text-shadow: none !important;
    box-shadow: 0 6px 20px rgba(255, 43, 134, 0.14) !important;
}
body.brioux-executive-ui :is(
    .btn-primary, .primary-button, .button-primary, .brx-part2-primary-button,
    .btn-login, .gateway-button, .portal-button, .support-button.primary,
    button.primary
) :is(span, strong, b, small, i),
body.brioux-gateway-ui :is(.btn-primary, .primary-button, .btn-login, button.primary) :is(span,strong,b,small,i) {
    color: #FFFFFF !important;
}
body.brioux-executive-ui :is(
    .btn-primary,.primary-button,.button-primary,.brx-part2-primary-button,
    .support-button.primary
):hover,
body.brioux-executive-ui :is(
    .btn-primary,.primary-button,.button-primary,.brx-part2-primary-button,
    .support-button.primary
):focus-visible {
    background: #FF2B86 !important;
    color: #FFFFFF !important;
    border-color: #FF2B86 !important;
    outline-color: #FFFFFF !important;
    filter: brightness(1.04);
}
/* Selected/active controls that are pink remain readable. */
body.brioux-executive-ui :is(
    .view-toggle-btn.active,.mq-pill.active,.claim-nav-tab.active,
    .support-nav-button.is-active,.sales-nav-item.active
) { color: #FFFFFF !important; }
body.brioux-executive-ui :is(
    .view-toggle-btn.active,.mq-pill.active,.claim-nav-tab.active,
    .support-nav-button.is-active,.sales-nav-item.active
) :is(span,strong,b,small) { color: #FFFFFF !important; }
/* Premium black / restrained-magenta header gradients, not large pink panels. */
body.brioux-executive-ui :is(
    .sales-topbar,.brioux-master-page-header,.support-topbar,.rcm-sidebar-header
) {
    background: radial-gradient(ellipse at 92% 3%, rgba(255,43,134,0.17), transparent 34%),
                linear-gradient(125deg, #080A0E 0%, #151A22 48%, #080A0E 100%) !important;
    color: #FFFFFF !important;
}
body.brioux-executive-ui :is(.sales-topbar,.brioux-master-page-header,.support-topbar,.rcm-sidebar-header)
:is(h1,h2,h3,p,span,strong,small) { color: #FFFFFF !important; }
/* BILLING: remove the old solid pink sidebar and restore readable graphite materials. */
body.brx29-billing .rcm-sidebar {
    background: linear-gradient(170deg, #181E27 0%, #0A0D13 100%) !important;
    color: #FFFFFF !important;
}
body.brx29-billing .rcm-sidebar :is(.rcm-nav-group,.rcm-nav-item,.rcm-sub-nav-item),
body.brx29-billing .rcm-sidebar :is(span,strong,small,div) {
    color: #FFFFFF !important;
}
body.brx29-billing .rcm-nav-item.active,
body.brx29-billing .rcm-sub-nav-item.active {
    background: #242B35 !important;
    border-left-color: #FF2B86 !important;
    color: #FFFFFF !important;
}
body.brx29-billing .fin-card,
body.brx29-billing .billing-table,
body.brx29-billing .claim-nav-container,
body.brx29-billing .claim-nav-pills,
body.brx29-billing .modal-box,
body.brx29-billing .modal-content {
    background: #181D25 !important;
    color: #FFFFFF !important;
    border-color: rgba(200,206,216,0.22) !important;
}
body.brx29-billing .fin-card :is(.fin-card-title,.fin-card-value),
body.brx29-billing .billing-table :is(th,td,span,strong),
body.brx29-billing .claim-nav-container :is(span,button),
body.brx29-billing .modal-content :is(h2,h3,h4,label,p,span,small,strong) {
    color: #FFFFFF !important;
}
body.brx29-billing .billing-table th { background: #252B34 !important; }
body.brx29-billing .billing-table td { background: #181D25 !important; }
body.brx29-billing .claim-nav-tab.active,
body.brx29-billing .mq-pill.active { background: #FF2B86 !important; color: #FFFFFF !important; }
body.brx29-billing .badge:is(.badge-yellow,.badge-red,.badge-green,.badge-gray,.badge-purple) {
    background: #F5F7FA !important;
    color: #12161D !important;
    border-color: #C8CED8 !important;
}
/* SALES: its explicitly white dashboard must have graphite ink. */
body.brx29-sales .sales-view[data-sales-view="dashboard"] {
    background: #FFFFFF !important;
    color: #12161D !important;
}
body.brx29-sales .sales-view[data-sales-view="dashboard"] :is(
    .metric-card,.panel,.sales-empty-state
) {
    background: #FFFFFF !important;
    background-image: none !important;
    color: #12161D !important;
    border-color: #D6DBE3 !important;
}
body.brx29-sales .sales-view[data-sales-view="dashboard"] :is(
    h1,h2,h3,h4,p,.eyebrow,.metric-label,.metric-detail,.metric-value,
    .panel-header,.sales-empty-state,.sales-empty-state span,.metric-card span,
    .metric-card strong,.panel p,.panel h2
) { color: #12161D !important; }
body.brx29-sales .sales-view[data-sales-view="dashboard"] .button.button-secondary {
    background: #FFFFFF !important;
    color: #12161D !important;
    border-color: #252B34 !important;
}
/* SUPPORT: preserve white dashboard canvas while keeping the dark sidebar white-ink. */
body.brx29-support .support-main,
body.brx29-support #support-view-dashboard {
    background: #FFFFFF !important;
    color: #12161D !important;
}
body.brx29-support #support-view-dashboard :is(.support-card,.support-kpi,.support-signal) {
    background: #FFFFFF !important;
    background-image: none !important;
    color: #12161D !important;
    border-color: #D6DBE3 !important;
}
body.brx29-support #support-view-dashboard :is(
    h2,h3,p,span,strong,small,.support-kpi-label,.support-kpi-value,
    .support-signal span,.support-signal strong
) { color: #12161D !important; }
body.brx29-support .support-topbar {
    background: #FFFFFF !important;
    background-image: none !important;
    color: #12161D !important;
    border-color: #D6DBE3 !important;
}
body.brx29-support .support-topbar :is(h1,h2,h3,p,span,strong,small) {
    color: #12161D !important;
}
body.brx29-support .support-topbar .support-return-link { color: #12161D !important; }
body.brx29-support .support-sidebar { background: #12161D !important; color: #FFFFFF !important; }
body.brx29-support .support-sidebar :is(h1,span,strong,p,.support-nav-button) {
    color: #FFFFFF !important;
}
/* PRODUCTS: visually one selector, native select retained for JS state only. */
body.brx29-products .brioux-master-page-content [hidden],
body.brx29-products #products-organization-select[hidden] {
    display: none !important;
}
body.brx29-products .brx-org-picker-trigger,
body.brx29-products .brx-org-picker-list,
body.brx29-products .brx-org-picker-option {
    background: #181D25 !important;
    background-image: none !important;
    border-color: rgba(200,206,216,0.30) !important;
    color: #FFFFFF !important;
}
body.brx29-products .brx-org-picker-trigger :is(span,strong,small),
body.brx29-products .brx-org-picker-option :is(span,strong,small) { color: #FFFFFF !important; }
body.brx29-products .brx-org-picker-option:hover,
body.brx29-products .brx-org-picker-option:focus-visible,
body.brx29-products .brx-org-picker-option[aria-selected="true"] {
    background: #252B34 !important;
    border-left: 3px solid #FF2B86 !important;
    color: #FFFFFF !important;
}
body.brx29-products .brx-part2-primary-button {
    background: #FF2B86 !important; background-image: none !important;
    border-color: #FF2B86 !important; color: #FFFFFF !important;
}
/* Explicit light document surface takes precedence over broad legacy dark-card rules. */
body.brioux-executive-ui :is(
    .brx-document-surface,.document-preview,.print-preview,.pdf-preview,
    .invoice-preview,.statement-preview
) {
    background: #FFFFFF !important;
    color: #12161D !important;
}
body.brioux-executive-ui :is(
    .brx-document-surface,.document-preview,.print-preview,.pdf-preview,
    .invoice-preview,.statement-preview
) :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,label,th,td) {
    color: #12161D !important;
}
/* A CSS-native hidden guard: no old render-isolation rule may unhide controls. */
body.brioux-executive-ui [hidden], body.brioux-gateway-ui [hidden] {
    display: none !important;
}
