/* Shared login and portal header menus. Native details preserves keyboard access without JavaScript. */
.header-dropdown{position:relative;margin:0;display:block;font-size:14px;color:#263b58}
.header-dropdown>summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;padding:8px;border-radius:8px;white-space:nowrap}
.header-dropdown>summary::-webkit-details-marker{display:none}
.header-dropdown>summary:focus-visible,.header-dropdown button:focus-visible{outline:2px solid #2874c6;outline-offset:2px}
.language-flag{width:24px;height:16px;object-fit:cover;flex-shrink:0;border-radius:2px}
.header-dropdown .header-dropdown-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:1050;min-width:180px;margin:0;padding:6px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 10px 35px #152b4926;display:block}
.header-dropdown .header-dropdown-menu button{display:flex;align-items:center;gap:10px;width:100%;margin:0;padding:10px 12px;border:0;border-radius:6px;background:transparent;color:#263b58;text-align:left;font:inherit;cursor:pointer}
.header-dropdown-menu button:hover,.header-dropdown-menu button[aria-current=true]{background:#eef4fb}
.header-icon svg,.header-avatar svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
.header-icon{position:relative}
.notification-dot{position:absolute;right:7px;top:6px;width:7px;height:7px;background:#ef4444;border-radius:50%}
.header-dropdown .notification-menu{width:340px;max-width:calc(100vw - 32px);max-height:420px;overflow-y:auto;padding:14px}
.notification-menu a{display:flex;flex-direction:column;gap:4px;padding:12px 0;border-bottom:1px solid #edf0f5;text-decoration:none;color:#263b58;white-space:normal}
.notification-menu a:hover{background:#f4f7fb}
.notification-menu small,.header-user small{display:block;color:#76869a;font-size:12px}
.notification-menu p{padding:16px 0;margin:0;color:#76869a}
.header-user{display:flex;align-items:center;gap:9px;min-width:0}
.header-avatar{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#142e50;color:white;flex-shrink:0}
.header-user-name{display:block;font-size:13px;font-weight:600;max-width:230px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:600px){.portal-topbar{align-items:flex-start;gap:8px;flex-direction:column}.portal-account{gap:8px}.header-user-name{max-width:150px}.notification-dropdown .notification-menu{right:-80px}}

/* Match the account avatar: compact circular controls without a dropdown arrow. */
.language-selector>summary,.notification-dropdown>summary{width:36px;height:36px;box-sizing:border-box;border:1px solid #dce3ec;border-radius:50%;padding:0;display:flex;align-items:center;justify-content:center;background:#fff}
.language-selector>summary:hover,.notification-dropdown>summary:hover{background:#f2f6fb;border-color:#b5c5d8}
.language-selector>summary .language-flag{width:22px;height:15px}

/* Icon-only sign out keeps native POST/antiforgery and an accessible translated name. */
.header-sign-out{display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid #dce3ec;border-radius:50%;background:#fff;color:#64768d;cursor:pointer}
.header-sign-out svg{width:19px;height:19px}
.header-sign-out:hover{color:#b42318;border-color:#f2b8b5;background:#fff5f4}
.header-sign-out:focus-visible{outline:2px solid #2166ac;outline-offset:3px}
