/* v100: company branding only; no planner, account or permission styles. */
html[data-brand100-loading] #loginScreen .login-brand,
html[data-brand100-loading] .sidebar .brand,
html[data-brand100-loading] #driverLogo { visibility:hidden; }
#loginScreen #loginLogo { display:block; width:auto; height:auto; max-width:min(260px,100%); max-height:142px; object-fit:contain; margin:0 auto; }
#loginScreen .login-brand h2 { overflow-wrap:anywhere; }
#brandLogoWrap.has-logo { width:76px!important; height:48px!important; min-width:76px; flex:0 0 76px; padding:4px; border-radius:8px; background:#fff; overflow:hidden; }
#brandLogoWrap.has-logo img { display:block; width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain; }
.sidebar .brand>div:not(#brandLogoWrap) { min-width:0; }
#brandBusinessName { overflow-wrap:anywhere; }
#driverPortal .driver-brand>img#driverLogo { width:92px!important; max-width:92px!important; max-height:52px!important; object-fit:contain!important; }
@media(max-width:900px){
 body:not(.driver-mode) .sidebar #brandLogoWrap.has-logo { width:76px!important; height:48px!important; min-width:76px; }
 .sidebar .brand { gap:10px!important; }
 #brandBusinessName { font-size:.98rem; }
}
/* Preserve Access99 hiding against older high-specificity mobile nav display:flex rules.
   This only affects elements the EXISTING permission controller has denied. */
html body:not(.driver-mode) .sidebar nav .nav-item[data-access99-denied="true"],
html body .sidebar #gsSubnav[data-access99-denied="true"],
html body .sidebar #w94Menu[data-access99-denied="true"] { display:none!important; }
