/* Shared flat controls. Transparent borders preserve existing sizes and alignment. */
body :is(
    button, input[type="button"], input[type="submit"], input[type="reset"],
    .btn, [role="button"], [role="tab"], .page-link, .paginate_button,
    .button-blue, .button-green, .button-rounded-blue, .button-rounded-green,
    .uber-button, .uber-sales-button, .uber-store-option, .home-hero__meta,
    .nav-link, .nav-tabs, .nav-pills, .btn-group,
    .app-nav-collapse, .app-mobile-toggle, .tox-split-button,
    .badge, [class*="badge"], [class*="chip"], [class*="pill"],
    .bg_indicator, .bg_round_indicator, .bg_releve_temperature,
    .home-kpi-card, .home-kpi-card__icon, .hp-kpi, .hp-kpi-icon, .uber-mini-stat,
    .min-prix, .recent-maj, .uber-inline-meta span,
    #hp-year, .hs-view-link, .hs-view-navigation, .hs-type-tabs, .hp-tabs,
    .hs-kpi-inline, .hs-status, .hs-cancelled-state,
    .hs-week-cell__hs, .hs-week-cell__alert, .hs-employee-avatar, .hp-avatar,
    .hp-count, .hp-trend, .hp-tab-count, .hp-band-row small,
    .alert, .hs-feedback, .app-notification
) {
    border-color: transparent !important;
    box-shadow: none !important;
}
/* Sole border exception: keep the sidebar collapse control easy to locate. */
body #appNavCollapse { border: 1px solid var(--color-text-secondary) !important; }
body #appNavCollapse:hover { border-color: var(--color-primary) !important; }
body :is(button, .btn, input[type="button"], input[type="submit"], input[type="reset"], [role="button"], [role="tab"], .nav-link, .page-link, .paginate_button, #hp-year, .hs-view-link):focus-visible {
    outline: 2px solid var(--color-primary) !important;
    outline-offset: 2px;
}
body :is(button, .btn, input[type="button"], input[type="submit"], input[type="reset"], [role="button"], [role="tab"], .nav-link, .page-link, .paginate_button, #hp-year, .hs-view-link):focus:not(:focus-visible) {
    outline: none !important;
}
body :is(button, .btn, .badge, [class*="badge"], [class*="chip"], [class*="pill"]) {
    background-image: none !important;
}
.home-kpi-link:is(:hover, :focus) .home-kpi-card { transform: none !important; }
.app-notification { background: color-mix(in srgb, var(--notification-accent) 7%, var(--color-surface)); }
.hs-workspace :is(.hs-kpi-inline, .hs-legend-chip, .hs-total-pill, .hs-adjust-btn) { background: var(--color-background); }
.hs-pilotage .hp-kpi-punctual { background: var(--color-primary-light) !important; }
.hs-pilotage .hp-kpi-regular { background: #eff8ff !important; }
.hs-pilotage .hp-kpi-cost { background: var(--color-success-light) !important; }
.hs-pilotage .hp-kpi-peak { background: #fff6e9 !important; }
.hs-pilotage .hp-kpi-regular .hp-kpi-icon { background: #d6f1ff !important; }
