/* SimplyBoss White-label: loaded after the portal stylesheet so a custom logo
 * can deliberately replace the default SimplyBoss text mark. */
.companyos-branding-active .navbar-brand .companyos-branding-logo,
.companyos-branding-active aside[data-testid="sidebar"] .navbar-brand .glpi-logo.companyos-branding-logo,
.companyos-branding-active .navbar-vertical .navbar-brand .glpi-logo.companyos-branding-logo,
.companyos-branding-active #navbar .glpi-logo.companyos-branding-logo{display:block!important;max-width:220px!important;max-height:76px!important;width:auto!important;height:auto!important;margin:.25rem auto!important;object-fit:contain!important}
.companyos-branding-active aside[data-testid="sidebar"] .navbar-brand:has(.companyos-branding-logo)::after,
.companyos-branding-active .navbar-vertical .navbar-brand:has(.companyos-branding-logo)::after,
.companyos-branding-active #navbar .navbar-brand:has(.companyos-branding-logo)::after{content:none!important;display:none!important}
.companyos-auth-sidebar-logo{display:block!important;max-width:220px!important;max-height:76px!important;width:auto!important;height:auto!important;margin:.25rem auto!important;object-fit:contain!important}
body.navbar-collapsed .companyos-auth-sidebar-logo{max-width:40px!important;max-height:40px!important;margin:.25rem auto!important}
.companyos-auth-sidebar-text{display:block!important;margin:.25rem auto!important;color:var(--tblr-primary,#245B78)!important;font-size:1.45rem!important;font-weight:800!important;letter-spacing:.02em!important;line-height:1.2!important;text-align:center!important;white-space:nowrap!important}
body.navbar-collapsed .companyos-auth-sidebar-text{font-size:0!important;width:40px!important;height:40px!important}
.companyos-branding-active .btn-primary{background-color:var(--tblr-primary)!important;border-color:var(--tblr-primary)!important}
.companyos-branding-active a{--tblr-link-color:var(--tblr-primary)}
/* Login source is a technical GLPI selector. The service also injects this
 * rule immediately on the login screen, before the form is painted. */
.companyos-branding-active form:has(select[name="auth"]) .mb-3:has(select[name="auth"]){display:none!important}
/* GLPI 11 creates the anonymous-page logo through CSS content, not an img.
 * Disable this native replacement before SimplyBoss supplies its own mark. */
.companyos-branding-active main.page-anonymous .glpi-logo{content:normal!important;--logo:none!important}
/* The copyright footer belongs to the anonymous GLPI login card only. */
.companyos-branding-active .welcome-anonymous .container-tight>.text-center.text-muted.mt-3:has(a.copyright){display:none!important}
