/* One-click EN/ES control shared by staff, workers and customer accounts. */
.systm-language-switch { position:relative; display:flex; flex:0 0 auto; align-items:center; gap:8px; margin-left:auto; }
.systm-language-switch .systm-language-toggle {
    appearance:none; display:inline-flex; align-items:center; justify-content:center;
    min-width:46px; min-height:44px; padding:9px 13px; border:1px solid #c8d4df;
    border-radius:8px; background:#fff; color:#184b75; font-family:inherit;
    font-size:13px; font-weight:750; line-height:1.3; letter-spacing:.025em;
    white-space:nowrap; cursor:pointer; touch-action:manipulation;
}
.systm-language-switch .systm-language-toggle:hover { background:#eef5fa; border-color:#8daec8; }
.systm-language-switch .systm-language-toggle:focus-visible { outline:3px solid #1b6bb4; outline-offset:3px; }
.systm-language-switch .systm-language-toggle[aria-busy="true"] { cursor:progress; }
.systm-language-switch .systm-language-status {
    position:absolute; top:calc(100% + 6px); right:0; z-index:1600;
    width:max-content; max-width:min(280px, calc(100vw - 32px)); padding:8px 11px;
    border:1px solid #c8d4df; border-radius:7px; background:#fff; color:#28465c;
    box-shadow:0 4px 14px #10223812; font-family:inherit; font-size:12px;
    font-weight:500; line-height:1.45; text-align:left; white-space:normal;
}
.systm-language-switch .systm-language-status:empty { display:none; }
.systm-language-switch [data-systm-language-form][hidden] { display:none !important; }
.systm-language-switch.login-language-switch {
    position:fixed; top:max(16px, env(safe-area-inset-top)); right:max(16px, env(safe-area-inset-right));
    z-index:10; padding:0; border-radius:8px; background:transparent; box-shadow:none;
}
.worker-header .systm-language-switch { margin-left:0; }
.worker-header .systm-language-toggle { border-color:#6c8499; }
.worker-header .systm-language-toggle:focus-visible { outline-color:#b9dcff; }
.portal-header-inner { flex-wrap:wrap; }
.portal-header-actions { display:flex; align-items:center; gap:16px; margin-left:auto; }
.portal-header .systm-language-toggle { color:#175c65; border-color:#bdd2d7; }
.portal-header .systm-language-toggle:hover { background:#edf7f7; }
@media(max-width:520px) {
    .systm-language-switch .systm-language-toggle { min-width:44px; padding:9px 10px; }
    .portal-header-actions { gap:9px; }
}
@media print { .systm-language-switch { display:none !important; } }
