/* Staff overview is a presentation layer over the existing scoped roster and records. */
.staff-workspace .app-shell { grid-template-columns:258px minmax(0,1fr); }
.staff-workspace .sidebar { gap:17px; }
.staff-workspace .workspace { padding-inline:clamp(18px,3vw,42px); }
.staff-workspace .security-notice { margin:14px 0 20px; }

#monitor[data-staff-surface="all"] > .monitor-empty,
#monitor[data-staff-surface="all"] > .official-monitor { display:none!important; }

.staff-surface-tabs,.staff-detail-tabs { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin:3px 0 21px; padding:5px; border:1px solid #dae6e7; border-radius:12px; background:#edf3f3; width:fit-content; max-width:100%; }
.staff-surface-tabs button,.staff-detail-tabs button { min-height:40px; padding:9px 15px; border:0; border-radius:8px; background:transparent; color:#56727a; font-size:14px; font-weight:700; white-space:nowrap; }
.staff-surface-tabs button[aria-pressed="true"],.staff-detail-tabs button[aria-pressed="true"] { background:#fff; color:#115c60; box-shadow:0 1px 5px rgba(8,42,54,.10); }
.staff-surface-tabs button:hover,.staff-detail-tabs button:hover { color:#0a6971; }
.staff-surface-tabs { gap:8px; padding:7px; border-color:#b9d9d5; background:#e5f3f0; }
.staff-surface-tabs button { min-height:52px; padding:12px 20px; color:#194a55; font-size:16px; font-weight:800; letter-spacing:.01em; }
.staff-surface-tabs button[aria-pressed="true"] { background:#0e686c; color:#fff; box-shadow:0 3px 9px rgba(8,76,80,.18); }
.staff-surface-tabs button:hover:not([aria-pressed="true"]) { background:#d1e9e5; color:#104d55; }
.staff-surface-tabs button[aria-pressed="true"]:hover { color:#fff; background:#0b5e62; }
.staff-surface-tabs button:focus-visible { outline:3px solid #d9932f; outline-offset:2px; }
.staff-detail-tabs { width:100%; justify-content:space-between; }
.staff-detail-tabs > div { display:flex; flex-wrap:wrap; gap:3px; }
.staff-detail-tabs .staff-back { color:#14766d; font-weight:800; }

.staff-overview { display:grid; gap:17px; }
.staff-overview-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; }
.staff-overview-heading h2 { margin:4px 0 4px; color:#102f42; font-size:clamp(25px,2.7vw,34px); letter-spacing:-.04em; line-height:1.15; }
.staff-overview-heading p { margin:0; color:#667d88; font-size:15px; line-height:1.5; }
.staff-overview-heading > span { color:#687e87; font-size:14px; white-space:nowrap; }
.staff-overview-metrics { display:flex; flex-wrap:wrap; gap:9px; }
.staff-overview-metrics span { display:flex; align-items:baseline; gap:8px; padding:10px 14px; border:1px solid #dce7e8; border-radius:9px; color:#657b84; background:#fff; font-size:14px; }
.staff-overview-metrics strong { color:#145c61; font-size:18px; line-height:1; }
.staff-overview-groups { display:flex; gap:8px; }
.staff-overview-groups button { min-height:40px; padding:9px 14px; border:1px solid #d5e3e5; border-radius:9px; background:#fff; color:#5d7881; font-size:14px; font-weight:700; }
.staff-overview-groups button[aria-pressed="true"] { border-color:#51b1aa; color:#0c6668; background:#edf9f5; }
.staff-overview-groups b { margin-left:5px; color:#1c827a; }
.staff-overview-body { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(275px,.83fr); gap:16px; align-items:start; }
.staff-overview-card { min-width:0; overflow:hidden; padding:20px 22px; border:1px solid #dce6e8; border-radius:14px; background:#fff; box-shadow:0 9px 30px rgba(5,33,45,.035); }
.staff-overview-card h3 { margin:0 0 15px; color:#153c49; font-size:17px; line-height:1.3; }
.staff-overview-card h3 span { margin-left:7px; color:#7b9096; font-size:14px; font-weight:600; }
.staff-roster-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:10px; }
.staff-roster-head h3 { margin:0; }
.staff-roster-head input { width:min(245px,100%); min-height:39px; font-size:14px; }
.staff-overview-row { display:flex; align-items:center; gap:12px; width:100%; min-height:69px; padding:12px 2px; border:0; border-top:1px solid #edf1f2; background:transparent; color:#1a3b48; text-align:left; }
.staff-overview-row[hidden] { display:none; }
.staff-overview-row:hover,.staff-overview-row:focus-visible { background:#f3faf8; outline-offset:-2px; }
.staff-overview-avatar { flex:0 0 37px; width:37px; height:37px; display:grid; place-items:center; border-radius:9px; background:#e5f2ef; color:#177467; font-size:13px; font-weight:800; }
.staff-overview-person { min-width:0; flex:1; display:grid; gap:3px; }
.staff-overview-person strong { overflow:hidden; font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.staff-overview-person small { color:#768b93; font-size:13px; }
.staff-overview-person small b { color:#176f82; }
.staff-overview-state { max-width:45%; color:#617a82; font-size:13px; line-height:1.35; text-align:right; }
.staff-overview-chevron { color:#8ea7aa; font-size:21px; }
.staff-action-row { display:grid; gap:4px; width:100%; padding:13px 0 13px 13px; border:0; border-top:1px solid #edf1f2; border-left:3px solid #6fb7c5; background:transparent; color:#173c49; text-align:left; }
.staff-action-row.medical { border-left-color:#c63d4f; }
.staff-action-row.coach { border-left-color:#ce9a43; }
.staff-action-row:hover { background:#f6faf9; }
.staff-action-row strong { font-size:14px; }
.staff-action-row span { color:#607a83; font-size:13px; line-height:1.45; }
.staff-overview-empty { margin:9px 0 14px; color:#69818a; font-size:14px; line-height:1.55; }
.staff-report-reminder { margin-top:18px; padding:15px; border-radius:10px; background:#eaf5f1; }
.staff-report-reminder strong { color:#115e58; font-size:14px; }
.staff-report-reminder p { margin:6px 0 11px; color:#507b74; font-size:13px; line-height:1.5; }
.staff-report-reminder button { padding:0; border:0; background:transparent; color:#136b60; font-size:14px; font-weight:800; }

#monitor[data-staff-surface="profile"] .official-hero { overflow:visible; min-height:0; padding:18px 21px; background:#fff; }
#monitor[data-staff-surface="profile"] .official-hero::after { display:none; }
#monitor[data-staff-surface="profile"] .selected-avatar { width:54px; height:54px; border-radius:13px; box-shadow:none; font-size:17px; }
#monitor[data-staff-surface="profile"] .official-identity h2 { font-size:23px; }
#monitor[data-staff-surface="profile"] .official-actions { gap:8px; }
#monitor[data-staff-surface="profile"] .official-actions .button { min-height:39px; font-size:13px; }
#monitor[data-staff-surface="profile"] .official-actions .flow-link:not(.hidden) { min-height:39px; padding-inline:17px; font-size:13px; font-weight:800; }

.game-context-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; margin-top:18px; }
.game-context-grid > section { min-width:0; padding:16px; border:1px solid #dce8ea; border-radius:11px; background:#f8fbfc; }
.game-context-grid > section:nth-child(2) { border-color:#c7e2d9; background:#f4faf7; }
.game-context-grid h3,.game-schedule-context h3 { margin:0; color:#1b4f5a; font-size:14px; letter-spacing:.025em; }
.game-context-grid .game-details { margin-top:11px; }
.game-context-grid .game-details article { display:grid; gap:5px; padding:12px; background:#fff; }
.game-context-grid .game-details span,.game-context-grid .game-details small { color:#597582; font-size:13px; line-height:1.45; }
.game-context-grid .game-details p { margin:0; color:#617d88; font-size:13px; line-height:1.5; }
.game-context-grid .game-review-note { margin-top:3px!important; }
.game-travel-alert { color:#925a12!important; font-weight:750; }
.game-travel-more { margin-top:4px; font-size:13px; }
.game-travel-more summary { color:#176d70; font-weight:750; cursor:pointer; }
.game-travel-more small { display:block; margin-top:8px; }
.game-schedule-context { margin-top:17px; padding-top:16px; border-top:1px solid #dce8ea; }
.game-schedule-list { display:grid; gap:9px; margin-top:11px; }
.game-schedule-list article { display:grid; gap:5px; padding:13px 15px; border:1px solid #dce8ea; border-radius:10px; background:#fff; }
.game-schedule-list strong { color:#20465b; font-size:14px; }
.game-schedule-list span,.game-schedule-list small,.game-schedule-list > p { margin:0; color:#607b85; font-size:13px; line-height:1.45; }
.game-schedule-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:5px; }
.game-schedule-actions button { min-height:34px; padding:6px 10px; border:1px solid #c7dddd; border-radius:7px; background:#eff8f6; color:#176b6b; font-size:12px; font-weight:750; cursor:pointer; }
.game-schedule-actions button:hover { background:#daefea; }
.staff-game-section + .staff-game-section { margin-top:18px; padding-top:16px; border-top:1px solid #e4eeee; }
.staff-game-section h3 { margin-bottom:10px; }
.report-travel-note { color:#246c66; font-weight:650; }

#monitor[data-staff-detail="summary"] .analysis-grid,
#monitor[data-staff-detail="summary"] .performance-tests-card,
#monitor[data-staff-detail="summary"] .decision-note,
#monitor[data-staff-detail="training"] .signal-grid,
#monitor[data-staff-detail="training"] .game-card,
#monitor[data-staff-detail="training"] .performance-tests-card,
#monitor[data-staff-detail="training"] .decision-note,
#monitor[data-staff-detail="training"] .wellness-card,
#monitor[data-staff-detail="training"] .activity-card,
#monitor[data-staff-detail="game"] .signal-grid,
#monitor[data-staff-detail="game"] .analysis-grid,
#monitor[data-staff-detail="game"] .performance-tests-card,
#monitor[data-staff-detail="game"] .decision-note { display:none!important; }
#monitor[data-staff-detail="training"] .analysis-grid { grid-template-columns:minmax(0,1fr); }
#monitor[data-staff-detail="training"] .trend-card { grid-column:1; }
#monitor[data-staff-detail="summary"] .signal-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }

@media(max-width:1100px) {
  .staff-workspace .app-shell { grid-template-columns:230px minmax(0,1fr); }
  .staff-overview-body { grid-template-columns:1fr; }
  #monitor[data-staff-detail="summary"] .signal-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:820px) {
  .staff-workspace .app-shell { grid-template-columns:1fr; }
  .staff-overview-heading { align-items:start; flex-direction:column; gap:5px; }
  .staff-surface-tabs { flex-wrap:nowrap; width:100%; overflow-x:auto; }
  .staff-detail-tabs { align-items:start; flex-direction:column; }
  .staff-detail-tabs > div { max-width:100%; overflow-x:auto; flex-wrap:nowrap; }
  .staff-overview-body { gap:11px; }
  #monitor[data-staff-surface="profile"] .official-hero { gap:15px; }
  .game-context-grid { grid-template-columns:1fr; }
}
@media(max-width:520px) {
  .staff-overview-card { padding:16px; }
  .staff-overview-metrics span { flex:1 1 calc(50% - 9px); }
  .staff-overview-state { max-width:34%; }
  .staff-overview-groups { flex-wrap:wrap; }
  .staff-overview-groups button { flex:1 1 140px; }
  #monitor[data-staff-detail="summary"] .signal-grid { grid-template-columns:1fr 1fr; }
}
