/* Client-area shell only. Included by the guarded display hook, never documents. */
:root{--mb-navy:#07162D;--mb-blue:#2563FF;--mb-soft:#F5F7FC}
#header.header .navbar-brand{display:inline-flex;align-items:center;gap:11px;font-weight:700;font-size:19px;letter-spacing:-.3px;color:var(--mb-navy);line-height:1.3;max-width:100%;white-space:normal}
#header.header .navbar-brand:before{content:"";display:block;flex-shrink:0;width:42px;height:42px;background:url('/assets/mb-mark.svg') center/contain no-repeat}
#header.header .navbar-brand .logo-img{max-height:42px}
#header.header .navbar.navbar-light{background:white;border-bottom:1px solid #dce5f1}
#header.header .main-navbar-wrapper{background:var(--mb-navy)}
#header.header .main-navbar-wrapper a{color:#e2ebfb}
#header.header .main-navbar-wrapper .dropdown-menu{border:1px solid #dce5f1;border-radius:8px;box-shadow:0 12px 25px #07162d18}
#header.header .main-navbar-wrapper .dropdown-menu a{color:#17253c}
#header.header .main-navbar-wrapper .dropdown-menu a:hover,#header.header .main-navbar-wrapper .dropdown-menu a:focus{color:var(--mb-blue);background:var(--mb-soft)}
#header.header .main-navbar-wrapper a:focus-visible{outline:3px solid #c4d8ff;outline-offset:3px}
#header.header .navbar-light a:focus-visible{outline:3px solid #1747bd;outline-offset:3px}
#footer.footer{background:var(--mb-navy);color:#c4d3e8}
#footer.footer a,#footer.footer .btn{color:#e0eaff}
#footer.footer a:hover{color:#9fbeff}
#footer.footer .copyright{color:#c4d3e8}
#main-body .btn-primary{background-color:var(--mb-blue);border-color:var(--mb-blue);color:white}
#main-body .btn-primary:hover,#main-body .btn-primary:focus{background-color:#194bd0;border-color:#194bd0;color:white}
#main-body .btn-primary:disabled,#main-body .btn-primary.disabled{background-color:var(--mb-blue);border-color:var(--mb-blue)}
#main-body a:not(.btn):not(.list-group-item),#main-body .btn-link{color:var(--mb-blue)}
#main-body a:not(.btn):not(.list-group-item):hover,#main-body .btn-link:hover{color:#194bd0}
#main-body .list-group-item.active{background-color:var(--mb-blue);border-color:var(--mb-blue);color:white}
#main-body a:focus-visible,#main-body button:focus-visible{outline:3px solid #1747bd;outline-offset:3px}
@media(max-width:767px){#header.header .navbar-brand{font-size:14px;gap:8px;max-width:220px}#header.header .navbar-brand:before{width:32px;height:32px}#header.header .main-navbar-wrapper .dropdown-menu{max-width:100%;box-shadow:none}}
@media print{#header.header .navbar-brand:before{display:none}}
/* The guarded child header supplies dir. These rules mirror only the client shell. */
html[dir=rtl] body.primary-bg-color{direction:rtl;text-align:right}
html[dir=rtl] #header .main-navbar-wrapper .dropdown-menu{left:auto;right:0;text-align:right}
html[dir=rtl] #header .main-navbar-wrapper .dropdown-menu-right{right:auto;left:0}
html[dir=rtl] #header .mr-auto{margin-right:0!important;margin-left:auto!important}
html[dir=rtl] #header .ml-auto{margin-left:0!important;margin-right:auto!important}
html[dir=rtl] #header .navbar-brand.mr-3{margin-right:0!important;margin-left:1rem!important}
html[dir=rtl] #header .toolbar .ml-3{margin-left:0!important;margin-right:1rem!important}
html[dir=rtl] #header #nav>li>a.pr-4{padding-right:0!important;padding-left:1.5rem!important}
html[dir=rtl] #header .text-left,html[dir=rtl] #main-body .text-left,html[dir=rtl] #footer .text-left{text-align:right!important}
html[dir=rtl] #header .text-right,html[dir=rtl] #main-body .text-right,html[dir=rtl] #footer .text-right{text-align:left!important}
html[dir=rtl] #header .float-left,html[dir=rtl] #main-body .float-left,html[dir=rtl] #footer .float-left{float:right!important}
html[dir=rtl] #header .float-right,html[dir=rtl] #main-body .float-right,html[dir=rtl] #footer .float-right{float:left!important}
html[dir=rtl] #main-body label,html[dir=rtl] #main-body .card-header,html[dir=rtl] #main-body .panel-title{text-align:right}
html[dir=rtl] #main-body input[type=email],html[dir=rtl] #main-body input[type=url],html[dir=rtl] #main-body input[type=tel],html[dir=rtl] #main-body input[type=number],html[dir=rtl] #main-body input[type=password]{direction:ltr;text-align:left}
html[dir=rtl] #header .input-group-prepend>.btn,html[dir=rtl] #main-body .input-group-prepend>.btn,html[dir=rtl] #header .input-group-prepend>.input-group-text,html[dir=rtl] #main-body .input-group-prepend>.input-group-text{border-radius:0 .25rem .25rem 0}
html[dir=rtl] #header .input-group-append>.btn,html[dir=rtl] #main-body .input-group-append>.btn,html[dir=rtl] #header .input-group-append>.input-group-text,html[dir=rtl] #main-body .input-group-append>.input-group-text{border-radius:.25rem 0 0 .25rem}
/* Native login markup puts rememberme inside its label, without .form-check. */
html[dir=rtl] #main-body input.form-check-input[name=rememberme]{position:static;margin:0 0 0 .4rem;vertical-align:middle}
html[dir=rtl] #main-body .custom-control{padding-left:0;padding-right:1.5rem}
html[dir=rtl] #main-body .custom-control-input{left:auto;right:0}
html[dir=rtl] #main-body .custom-control-label::before,html[dir=rtl] #main-body .custom-control-label::after{left:auto;right:-1.5rem}
