/* The admin's global RTDB presence menu. One shared subscription for all views. */
.online-presence[hidden],.online-presence [hidden]{display:none!important}
.online-presence{position:relative;flex:none;min-width:0}
.online-presence-trigger{position:relative;display:flex;align-items:center;justify-content:center;width:45px;min-height:45px;padding:0;background:rgba(255,255,255,.58);border:1px solid rgba(177,193,204,.58);border-radius:15px;box-shadow:inset 0 1px 0 #ffffffd1,0 8px 24px #3e52600f;color:#1b2e3b;font:inherit;cursor:pointer}
.online-presence-icon{width:19px;height:19px;opacity:.88}
.online-presence-trigger>b{position:absolute;top:-6px;right:-6px;display:flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 3px;border:2px solid #f8fafb;border-radius:12px;background:#24a373;color:#fff;font-size:10px;line-height:14px;font-weight:700}
.online-presence-dot{display:inline-block;flex:none;width:8px;height:8px;border-radius:50%;background:#24a373}
.online-presence.unavailable .online-presence-trigger>b{background:#94a7b2}
.online-presence.unavailable .online-presence-dot{background:#9aabb5}
.online-presence-popover{position:absolute;top:calc(100% + 10px);right:0;width:350px;max-width:calc(100vw - 40px);padding:18px;background:#f8fafb;border:1px solid #d7e2e8;border-radius:21px;box-shadow:0 18px 46px #2a404f26;color:#244455;z-index:5350}
.online-presence-popover>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:13px;border-bottom:1px solid #dce6ec}
.online-presence-popover header small{font-size:9px;letter-spacing:1.5px;color:#8597a3}
.online-presence-popover h3{font-size:15px;margin:7px 0 0;font-weight:700}
.online-presence-popover h3>span{display:inline-flex;align-items:center;justify-content:center;min-width:23px;padding:4px 6px;margin-left:5px;border-radius:12px;font-size:10px;background:#e7f4ee;color:#328662}
.online-presence-close{display:grid;place-items:center;flex:none;width:30px;height:30px;padding:0;border:0;border-radius:9px;background:transparent;color:#78909e;font-size:23px;cursor:pointer}
.online-presence-close:hover{background:#eaf0f4}
.online-presence-list{max-height:min(390px,55dvh);overflow-y:auto;overscroll-behavior:contain}
.online-presence-person{display:flex;align-items:center;gap:11px;padding:15px 0;border-bottom:1px solid #e1e8ed}
.online-presence-person>div{min-width:0;flex:1}
.online-presence-person b{font-size:12px;font-weight:700;display:block;overflow-wrap:anywhere}
.online-presence-person b small{font-size:10px;font-weight:400;color:#8497a3;margin-left:7px}
.online-presence-person div>span{display:block;color:#8196a3;font-size:10px;line-height:1.6;margin-top:5px;overflow-wrap:anywhere}
.online-presence-avatar{display:grid;place-items:center;flex:none;width:35px;height:35px;border-radius:12px;background:#e9f0f4;color:#4f7187;font-size:10px;font-weight:700}
.online-presence-details,.online-presence-retry{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:14px 0 0;background:none;border:0;color:#416c86;text-align:left;font:inherit;font-size:11px;cursor:pointer}
.online-presence-retry{color:#9d6545}
.online-presence-empty{font-size:12px;line-height:1.6;color:#8497a3;margin:20px 0}
.new-design-ui.nd-authenticated.has-online-presence>.topbar .online-presence{display:block}
@media(min-width:701px) and (max-width:1180px){
 body.nd-view-home.new-design-ui.nd-authenticated.has-online-presence>.topbar{grid-template-columns:minmax(120px,1fr) repeat(5,45px)!important}
 body.nd-view-home.new-design-ui.nd-authenticated.has-online-presence>.topbar .nd-notification-button{grid-column:3!important;grid-row:1}
 body.nd-view-home.new-design-ui.nd-authenticated.has-online-presence>.topbar .online-presence{grid-column:2;grid-row:1}
 body.nd-view-home.new-design-ui.nd-authenticated.has-online-presence>.topbar #settingsOpenButton{grid-column:4!important;grid-row:1}
 body.nd-view-home.new-design-ui.nd-authenticated.has-online-presence>.topbar .account-menu.nd-user-button{grid-column:5!important;grid-row:1}
 body.nd-view-home.new-design-ui.nd-authenticated.has-online-presence>.topbar .nd-logout-icon-button{grid-column:6!important;grid-row:1}
}
@media(max-width:700px){
 body.new-design-ui.nd-authenticated.has-online-presence>#topbarRow{display:grid!important;grid-template-columns:minmax(62px,1fr) repeat(5,32px)!important;column-gap:4px!important;row-gap:8px!important}
 body.new-design-ui.nd-authenticated.has-online-presence>.topbar .topbar-actions{display:contents!important}
 body.new-design-ui.nd-authenticated.has-online-presence>.topbar .nd-topbar-brand{grid-column:1;grid-row:1;min-width:0!important}
 body.new-design-ui.nd-authenticated.has-online-presence>.topbar #topbarLogo{max-width:100%!important;height:auto!important;max-height:28px;width:130px!important}
 body.new-design-ui.nd-authenticated.has-online-presence>.topbar .nd-notification-button{grid-column:3!important;grid-row:1}
 body.new-design-ui.nd-authenticated.has-online-presence>.topbar .online-presence{grid-column:2;grid-row:1;position:static}
 body.new-design-ui.nd-authenticated.has-online-presence>.topbar #settingsOpenButton{grid-column:4!important;grid-row:1}
 body.new-design-ui.nd-authenticated.has-online-presence>.topbar #topbarUserWrap{grid-column:5!important;grid-row:1}
 body.new-design-ui.nd-authenticated.has-online-presence>.topbar #topbarLogoutButton{grid-column:6!important;grid-row:1}
 body.new-design-ui.nd-authenticated.has-online-presence>.topbar :is(.nd-notification-button,.account-menu.nd-user-button,.nd-logout-icon-button,#settingsOpenButton){width:32px!important;min-width:32px!important;max-width:32px!important;height:40px!important;min-height:40px!important;padding:0!important;border-radius:11px!important}
 body.new-design-ui.nd-authenticated.has-online-presence>.topbar .nd-topbar-search{grid-column:1/-1;grid-row:2;max-width:none;width:100%}
 .online-presence-trigger{width:32px;min-height:40px;border-radius:11px}
 .online-presence-trigger>b{top:-5px;right:-5px;min-width:18px;height:18px;font-size:9px;line-height:12px}
 .online-presence-icon{width:18px;height:18px}
 .online-presence-popover{left:0;right:0;width:100%;max-width:none;padding:16px;top:calc(100% + 8px)}
 .online-presence-list{max-height:min(340px,50dvh)}
}
