/* x-staff.css: the owner's Staff page (owner-staff.js). Only design tokens from style.css. */

/* Staff names that open a profile */
.st-name { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-ctl); text-underline-offset: 3px; }
.st-name:hover { text-decoration-color: currentColor; }
.st-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.35; }
.st-sub.bad-text { color: var(--error); font-weight: 700; }
.st-mt { margin-top: 8px; align-items: center; }
.st-nowrap { flex-wrap: nowrap; }

/* Needs your attention: pill, the sentence, then the big answer buttons (full width on phones) */
.st-alert { flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 12px; }
.st-alert .pill { flex: none; }
.st-alert .row-main { min-width: 220px; }
.st-answer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.st-answer .calm-btn { min-width: 120px; }
.st-alert-done { background: var(--surface-2); }
@media (max-width: 619px) {
  .st-alert .row-main { flex: 1 1 100%; min-width: 0; }
  .st-answer { width: 100%; }
  .st-answer .calm-btn { flex: 1 1 0; }
}

/* Tabs and the calmer page */
.st-page .st-tabs-wrap { margin-top: 48px; }
#st-tabs, #rp-tabs { scroll-margin-top: calc(var(--top-h) + var(--tabs-h) + 8px); }
.st-say { font-size: 17px; line-height: 1.5; }
.st-more { margin-top: 48px; }

/* Your team: one row per person with a single "See profile" button */
.st-team-row { gap: 14px; padding: 14px 12px; }
.st-team-row .row-main em .good-text { font-weight: 700; }
.st-team-row.is-on { background: var(--surface-2); box-shadow: inset 4px 0 0 var(--ink); }
.st-team-row .calm-btn { flex: none; min-width: 150px; }
.st-team-row .calm-btn[aria-pressed="true"] { border-color: var(--text); }
@media (max-width: 619px) {
  .st-team-row { flex-wrap: wrap; }
  .st-team-row .row-main { min-width: calc(100% - 60px); }
  .st-team-row .calm-btn { width: 100%; }
}

/* Profile: actions and the two plain-word lists come first */
.st-prof-actions .calm-btn { min-width: 120px; }
.st-two-notes .sub-head { margin-top: 20px; }
.st-sentence + .st-two-notes { margin-top: 4px; }

/* What each person earns you */
.st-profit-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "av who num" "bar bar bar"; gap: 8px 12px; align-items: center; }
.st-profit-row .avatar { grid-area: av; }
.st-profit-row .row-main { grid-area: who; }
.st-profit-row .st-earn { grid-area: bar; min-width: 0; }
.st-profit-row .st-earn-num { grid-area: num; }
.st-profit-row.is-on { background: var(--surface-2); box-shadow: inset 4px 0 0 var(--ink); }
.st-profit-row.is-support .row-main strong, .st-profit-row.is-support .st-earn-num strong { color: var(--muted); }
.st-earn-bar { position: relative; display: block; height: 10px; background: var(--track); }
.st-earn-bar > span { display: block; height: 100%; background: var(--st-green); }
.st-earn-bar.lvl-amber > span { background: var(--mk-amber); }
.st-earn-bar.lvl-red > span { background: var(--accent); }
.st-earn-bar.lvl-grey > span { background: var(--line-ctl); }
.st-earn-bar > i { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1px; background: var(--ink); }
.st-earn-cap { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.st-earn-num { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.st-earn-num strong { font: 800 24px/1 var(--display); }
.st-earn-num em { font-style: normal; font-size: 13px; color: var(--muted); }
@media (min-width: 720px) {
  .st-profit-row { grid-template-columns: 40px minmax(150px, 1fr) minmax(0, 1.6fr) 140px; grid-template-areas: "av who bar num"; gap: 12px 16px; }
}

/* Profile */
#st-profile, #st-timeoff, #st-schedule, #st-team, #st-certs, #st-earn { scroll-margin-top: calc(var(--top-h) + var(--tabs-h) + 16px); }
.st-prof-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.st-prof-head .avatar { width: 56px; height: 56px; font-size: 18px; }
.st-prof-who { flex: 1; min-width: 180px; }
.st-prof-who .muted { margin-top: 2px; }
.st-score { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.st-score b { font: 800 52px/.9 var(--display); }
.st-score .pill { align-self: center; margin-left: 4px; }
.st-sentence { margin-top: 16px; font-size: 17px; line-height: 1.5; max-width: 46em; }

/* 12-month chart: stacked bars (PT / classes / new members) with a dashed cost line */
.st-plot { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 180px; border-bottom: 2px solid var(--ink); }
.st-col { display: flex; flex-direction: column-reverse; justify-content: flex-start; height: 100%; min-width: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.st-col:hover, .st-col:focus-visible { background: var(--surface-2); }
.st-seg { display: block; width: 100%; flex: none; }
.st-seg-pt { background: var(--ink); }
.st-seg-cls { background: var(--line-ctl); }
.st-seg-new { background: var(--st-blue); }
.st-cost { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.st-cost polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.st-xlabels { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.st-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.st-legend span { display: inline-flex; align-items: center; gap: 6px; }
.st-key { display: inline-block; width: 12px; height: 12px; }
.st-key-cost { width: 18px; height: 0; border-top: 2px dashed var(--accent); }
@media (min-width: 960px) { .st-plot { height: 220px; } }

/* Scorecard and notes */
.st-two { display: grid; gap: 8px 32px; }
.st-two .sub-head:first-child { margin-top: 20px; }
@media (min-width: 840px) { .st-two { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.st-score-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.st-score-row .row-main strong { font-size: 15px; }
.st-score-row .row-main em { font-size: 13px; }
.st-score-row .st-spark { grid-column: 1 / -1; grid-row: 2; max-width: 240px; height: 22px; margin: 0; }
@media (min-width: 620px) {
  .st-score-row { grid-template-columns: minmax(0, 1fr) 96px auto; }
  .st-score-row .st-spark { grid-column: auto; grid-row: auto; }
}
.st-notes { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--line-strong); }
.st-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.st-note .pill { flex: none; margin-top: 1px; }
.dash-table tr.st-now td { background: var(--surface-2); }

/* Members per class, per coach */
.st-pc-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "who num" "bar bar" "btn btn"; gap: 8px 12px; align-items: center; }
.st-pc-row .row-main { grid-area: who; }
.st-pc-row .busy-bar { grid-area: bar; }
.st-pc-row .busy-num { grid-area: num; }
.st-pc-row .btn-quiet { grid-area: btn; justify-self: start; }
@media (min-width: 720px) {
  .st-pc-row { grid-template-columns: minmax(180px, 1.2fr) minmax(0, 1fr) 56px 120px; grid-template-areas: "who bar num btn"; }
  .st-pc-row .btn-quiet { justify-self: end; }
}
.busy-bar span.st-quiet { background: var(--mk-amber); }
.st-pc-classes { padding: 4px 0 8px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.st-pc-class { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "when what num" "bar bar bar"; gap: 6px 12px; align-items: center; padding: 10px 12px 10px 24px; font-size: 14px; }
.st-pc-class + .st-pc-class { border-top: 1px solid var(--line); }
.st-pc-class > :nth-child(1) { grid-area: when; }
.st-pc-class > :nth-child(2) { grid-area: what; min-width: 0; }
.st-pc-class > :nth-child(3) { grid-area: bar; }
.st-pc-class > :nth-child(4) { grid-area: num; text-align: right; white-space: nowrap; }
@media (min-width: 720px) {
  .st-pc-class { grid-template-columns: 110px minmax(0, 1.2fr) minmax(0, 1fr) 120px; grid-template-areas: "when what bar num"; }
}

/* This week's schedule */
.st-sched .st-shift { white-space: nowrap; font-size: 13px; }
.dash-table .st-today { background: var(--st-blue-tint); }
.dash-table th.st-today { color: var(--st-blue); }

/* Pay and scores switched off: the note where they were, plain coach rows and the plain profile */
.st-off-note { margin-top: 16px; padding: 10px 14px; background: var(--surface-2); color: var(--muted); font-size: 15px; line-height: 1.45; }
.st-off-note .link-btn { color: var(--text); }
.st-off-note .st-off-link { margin-left: 4px; font-size: 14px; color: var(--muted); }
.st-pc-row.is-plain { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who btn"; }
.st-pc-row.is-plain .btn-quiet { justify-self: end; }
@media (min-width: 720px) { .st-pc-row.is-plain { grid-template-columns: minmax(0, 1fr) 120px; } }
.st-prof-class { gap: 14px; padding: 12px; }
.st-prof-when { flex: none; width: 96px; font-weight: 700; }
#st-off-note { scroll-margin-top: calc(var(--top-h) + var(--tabs-h) + 16px); }

/* Settings › Classes and staff: the "Show sample pay and scores" switch (owner-settings.js) */
.st-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.st-switch-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; font: 600 15px/1.3 var(--sans); }
.st-switch-text .muted { font-weight: 400; }

/* Calm page: bigger captions (16px body text) */
.calm .st-earn-cap, .calm .st-earn-num em { font-size: 15px; }
.calm .st-score-row .row-main strong { font-size: 17px; }
.calm .st-score-row .row-main em { font-size: 15px; }
.calm .st-pc-class { font-size: 16px; }
.calm .st-legend, .calm .st-sched .st-shift { font-size: 15px; }
