/* Shared navigation shell: included by App in every HTML response. */
#appnavigation,.modulelinks,.member-bottom,.member-drawer,#openlibrary,#createlibrary{display:none!important}
#gym-menu-toggle.gym-nav-alert::after{content:"";position:absolute;top:6px;right:5px;width:9px;height:9px;border-radius:50%;background:#e4572e;box-shadow:0 0 0 2px #102d50}
#gym-menu-toggle{position:fixed;left:0;top:104px;z-index:10050;width:34px;height:48px;border:0;border-radius:0 9px 9px 0;background:#102d50;color:white;font:700 22px system-ui;cursor:pointer;box-shadow:0 2px 8px #102d5030}
#gym-navigation{position:fixed;left:0;top:0;bottom:0;width:min(290px,85vw);z-index:10060;box-sizing:border-box;background:#102d50;color:white;padding:18px 14px;overflow:auto;box-shadow:8px 0 28px #06172a40;font:15px system-ui}
#gym-navigation[hidden],#gym-nav-backdrop[hidden],#gym-menu-toggle[hidden]{display:none!important}
#gym-nav-backdrop{position:fixed;inset:0;background:#07162660;z-index:10055;border:0;margin:0;padding:0;width:100%;height:100%}
#gym-navigation .gym-nav-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:2px solid #c52242;padding-bottom:18px;margin-bottom:12px}
#gym-navigation button,#gym-navigation a{font:inherit;box-sizing:border-box}
#gym-navigation .gym-nav-close{background:transparent;border:1px solid #ffffff50;color:white;border-radius:8px;width:36px;height:36px;padding:0;font-size:24px;cursor:pointer}
#gym-navigation .gym-nav-group{margin:6px 0}#gym-navigation .gym-nav-group>button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:0;border-radius:8px;background:#ffffff0b;color:white;text-align:left;padding:13px 12px;font-weight:700;cursor:pointer}
#gym-navigation .gym-nav-group>button[aria-expanded=true]{background:#1c4776}#gym-navigation .gym-nav-children{border-left:2px solid #3b699b;margin:7px 0 12px 14px;padding-left:8px}
#gym-navigation a{display:block;color:#e4efff;text-decoration:none;border-radius:7px;padding:11px 12px;overflow-wrap:anywhere}#gym-navigation a:hover,#gym-navigation a:focus-visible{background:#285887;color:white}#gym-navigation a[aria-current=page]{background:#1263ab;color:white;font-weight:700}
#gym-navigation .gym-nav-signout{width:100%;border:1px solid #ffffff40;background:transparent;color:white;border-radius:8px;margin-top:20px;padding:11px;cursor:pointer}
body.exercise-index #calendar,body.exercise-index #dayworkspace,body.exercise-index #workspace>nav,body.exercise-index #workspace>.toolbar>.actions{display:none!important}
body.exercise-index #librarydialog{position:static;display:block;width:100%;max-width:1200px;max-height:none;margin:20px 0;padding:22px;box-sizing:border-box;border:1px solid #d8e3ef;border-radius:12px;box-shadow:none}
body.exercise-index #closelibrary{display:none}body.member-shell{padding-bottom:24px!important}
@media(max-width:700px){#gym-menu-toggle{top:78px;width:30px;height:44px}body.exercise-index #librarydialog{padding:14px}#gym-navigation{padding:14px 12px}}

body:not(.member-shell) #seriesview,body:not(.member-shell) #calendarview,body:not(.member-shell) #reports{display:none!important}

body.attendance-report-page #days,body.attendance-report-page #serieslist,body.attendance-report-page main>nav,body.attendance-report-page .schedulefilters{display:none!important}body.attendance-report-page #reportdialog{position:static;width:100%;max-width:1100px;max-height:none;margin:20px 0;border:1px solid #d8e3ef;border-radius:12px;box-sizing:border-box}body.attendance-report-page #closereport{display:none}

#memberschedule,#history{display:none!important}

body.performance-history #coachtools,body.performance-history #calendar,body.performance-history #workspace>.toolbar,body.performance-history #workspace>nav,body.performance-history #workout-date-calendar,body.performance-history #viewleaderboard,body.performance-history #memberleaderboard{display:none!important}
body.performance-history #dayworkspace{display:block;margin:20px 0}body.performance-history #selectedday{display:none}

/* Staff search (Run 9): results in the quick-actions Search panel (white drawer); full width, so it fits 320–430px. */
.gym-search label{display:block;font-weight:600;margin:0 0 6px}
.gym-search-status{margin:8px 0;font-size:14px;line-height:1.35;color:#4a6481}
.gym-search-status:empty{display:none}
.gym-search-results[hidden]{display:none!important}
.gym-search-group{margin:16px 0 4px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#4a6481}
.gym-search-results a{display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:44px;box-sizing:border-box;padding:9px 12px;border-radius:8px;color:#102d50;text-decoration:none;overflow-wrap:anywhere}
.gym-search-results a:hover{background:#eef4fb}
.gym-search-results a[aria-selected=true]{background:#1263ab;color:white}
.gym-search-results a[aria-selected=true] .gym-search-detail{color:#e4efff}
.gym-search-label{font-weight:700}
.gym-search-detail{font-size:13px;color:#4a6481}
.gym-search-more{font-size:13px;color:#4a6481;margin:4px 12px}

/* Offline notice (QA 2026-11-08): above the phone tab bar, never covering page headings. */
#gym-offline{position:fixed;left:16px;right:16px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:10070;margin:0;padding:12px 14px;border-radius:10px;background:#102d50;color:white;font:600 15px system-ui;text-align:center;box-shadow:0 4px 16px #06172a40}
