.hmis-locale-switch{display:inline-flex;align-items:center;gap:2px;direction:ltr;margin:0;padding:3px;border:1px solid #b9d7d1;border-radius:9px;background:#f5fbf9;flex-shrink:0}
/* Semantic text markers add no box, spacing, size or direction to the layout. */
hmis-ui{display:contents}
body.hmis-urdu hmis-ui{font-family:'Noto Naskh Arabic',Tahoma,Arial,sans-serif;letter-spacing:normal}
.hmis-locale-switch button{border:0;border-radius:6px;background:transparent;color:#27534d;font:600 12px/1.4 Arial,Tahoma,sans-serif;padding:6px 9px;min-height:30px;cursor:pointer}
.hmis-locale-switch button[lang=ur]{font-family:'Noto Naskh Arabic',Tahoma,serif;font-size:15px;padding-top:3px;padding-bottom:3px}
.hmis-locale-switch button.is-active{background:#006e62;color:#fff;cursor:default}
.hmis-locale-switch button:focus-visible{outline:2px solid #0f766e;outline-offset:2px}
.hmis-login-page{flex-direction:column;gap:10px}
.login-language-row{display:flex;justify-content:flex-end;width:100%;max-width:820px}
/* Translation-only mode: no direction, ordering, sizing or positioning overrides. */
body.hmis-urdu button:not([lang]),body.hmis-urdu :is(.hmis-label,.hmis-navbar-title small,.hmis-navbar-section,.hmis-profile-copy small,.dropdown-menu a,.brand-copy,.brand-logo-text span,.mobile-logo span,.form-title,.form-group label,.login-tabs,.secure-note,.forgot-link,.patient-account-actions,.command-status-pill,.mini-pill){font-family:'Noto Naskh Arabic',Tahoma,Arial,sans-serif;letter-spacing:normal}
/* Shorter translations keep the same reserved space as the English copy. */
.hmis-login-shell .brand-copy h1{min-height:2.04em}
.hmis-login-shell .brand-copy p{min-height:3em}
.hmis-login-shell .form-title p{min-height:2.8em}
.hmis-login-shell .secure-note{min-height:calc(2.9em + 16px)}
body.hmis-urdu :is(.hmis-label,.brand-copy h1,.brand-copy p,.form-title h2,.form-title p,.brand-logo-text span,.secure-note span){unicode-bidi:plaintext}
@media(max-width:1040px){.login-language-row{max-width:420px}}
@media(max-width:767px){.hmis-locale-switch button{font-size:10px;padding:4px 6px;min-height:28px}.hmis-locale-switch button[lang=ur]{font-size:14px}.hmis-navbar-title{min-width:0}}
@media print{.hmis-locale-switch,.login-language-row{display:none!important}}
@media print{body.hmis-urdu hmis-ui{font-family:inherit;letter-spacing:inherit}}
@media(max-width:767px){
    /* Both languages use the same mobile drawer, below the actual header. */
    .main-sidebar{top:var(--hmis-mobile-header-bottom,116px)!important;height:calc(100vh - var(--hmis-mobile-header-bottom,116px))!important;height:calc(100dvh - var(--hmis-mobile-header-bottom,116px))!important}
}
