/* Fleet -> Schedule (#fleet-schedule), Fleet's two choices and the #fleet "Next up" strip. Desk tokens and Fleet Health type only; every rule is scoped.
   One cue per state, the same everywhere: a dot and a word. Ink = scheduled, green = running, orange = missed,
   red = lost, grey = queued/done/cancelled/off. A stale source greys its rows and names itself in orange. */
.sc-page .page-heading{margin-bottom:6px}
.sc-sources{font-size:12.5px;color:var(--muted);margin:0 0 18px}
.sc-stale-text{color:var(--orange);font-weight:500}
.sc-fetch{font-size:12.5px;margin:-12px 0 18px}
.sc-notices{list-style:none;margin:0 0 22px;padding:0;display:grid;gap:4px;font-size:13.5px}
.sc-notices li{position:relative;padding-left:18px}
.sc-notices li::before{content:"";position:absolute;left:0;top:.62em;width:7px;height:7px;border-radius:50%;background:var(--muted)}
.sc-notices li.is-warn::before{background:var(--orange)}.sc-notices li.is-bad{color:var(--red)}.sc-notices li.is-bad::before{background:var(--red)}
.sc-notices li.is-muted{color:var(--muted)}
.sc-title{font-size:15px;font-weight:600;margin:0 0 8px}
.sc-list{margin:0 0 18px}
.sc-empty{margin:8px 0 18px;font-size:14px}

/* The list: time and countdown first, so the eye runs down two columns. */
.sc-table{table-layout:fixed;font-size:14px}
.sc-table col,.sc-table th[scope=col]:nth-child(1){width:112px}
.sc-table th[scope=col]:nth-child(2){width:200px}
.sc-table th[scope=col]:nth-child(4){width:150px}
.sc-table th[scope=col]:nth-child(5){width:130px}
.sc-table td,.sc-table th[scope=row]{padding:11px 12px}
.sc-table th[scope=row]{font-family:inherit;font-size:14px;font-weight:500}
.sc-table th[scope=row] small{font-family:inherit}
.sc-when{font-variant-numeric:tabular-nums;white-space:nowrap}
.sc-cd{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}
.sc-who{color:var(--muted)}
.sc-state{white-space:nowrap}
.sc-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--ink);margin-right:8px;position:relative;top:-1px}
.sc-row.is-ok .sc-dot{background:var(--green)}.sc-row.is-ok .sc-state{color:var(--green)}
.sc-row.is-warn .sc-dot{background:var(--orange)}.sc-row.is-warn .sc-state,.sc-row.is-warn .sc-cd{color:var(--orange)}
.sc-row.is-bad .sc-dot{background:var(--red)}.sc-row.is-bad .sc-state,.sc-row.is-bad .sc-cd{color:var(--red)}
.sc-row.is-muted .sc-dot{background:var(--muted)}.sc-row.is-muted>*{color:var(--muted)}.sc-row.is-muted .sc-cd{font-weight:500}
.sc-row.is-stale>*{opacity:.55}
.sc-fold{border-top:1px solid var(--line)}
.sc-fold:last-of-type{border-bottom:1px solid var(--line);margin-bottom:22px}

/* Fleet's two choices (r80): the same section bar as Paper's (.p1-nav), scoped to Fleet. */
.fl-choices{display:flex;flex-wrap:wrap;gap:8px 25px;border-bottom:1px solid var(--line);margin:0 auto 24px;max-width:1560px}
.fl-choices a{padding:10px 0;text-decoration:none;color:var(--muted);border-bottom:2px solid transparent}
.fl-choices a:hover{color:var(--ink)}
.fl-choices a.active{color:var(--ink);border-color:var(--orange)}
.fl-choices+.sc-strip{border-top:0;padding-top:0}

/* The worker account's week (r80): one line, the same dot-and-colour cue as the rows.
   Plain = counting, orange = paused waiting for Paul, red = stopped at the ceiling. */
.sc-week{margin:-8px 0 18px;font-size:14px;font-variant-numeric:tabular-nums}
.sc-week .sc-dot{background:var(--muted)}
.sc-week.is-warn{color:var(--orange);font-weight:500}.sc-week.is-warn .sc-dot{background:var(--orange)}
.sc-week.is-bad{color:var(--red);font-weight:500}.sc-week.is-bad .sc-dot{background:var(--red)}
.sc-strip .sc-week{margin:0 0 6px}

/* #fleet strip: three lines, nothing else. */
.sc-strip{max-width:1560px;margin:0 auto 26px;padding:14px 0 12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:14px;line-height:1.6}
.sc-strip-title{font-size:12px;font-weight:500;color:var(--muted);letter-spacing:.02em;margin:0 0 6px}
.sc-next-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.sc-next-list li{display:grid;grid-template-columns:96px 140px minmax(0,1fr) auto;gap:12px;align-items:baseline}
.sc-next-list li.is-stale{opacity:.55}
.sc-next-list .sc-what{overflow-wrap:anywhere}
.sc-strip-foot{margin:8px 0 0;font-size:12.5px;color:var(--muted)}
.sc-strip-foot a{color:var(--ink)}

@media(max-width:760px){
  .fl-choices{gap:6px 16px;font-size:13px;margin-bottom:18px}
  .sc-table,.sc-table tbody,.sc-table tr{display:block;width:100%}
  .sc-table thead{display:none}
  .sc-table tr.sc-row{display:grid;grid-template-columns:auto 1fr auto;gap:2px 12px;padding:12px 0;border-bottom:1px solid var(--line)}
  .sc-table tr.sc-row>*{display:block;width:auto;padding:0;border:0}
  .sc-table .sc-when{grid-column:1;grid-row:1}
  .sc-table .sc-cd{grid-column:2;grid-row:1}
  .sc-table .sc-state{grid-column:3;grid-row:1;text-align:right}
  .sc-table .sc-what{grid-column:1/-1;grid-row:2}
  .sc-table .sc-who{grid-column:1/-1;grid-row:3;font-size:12.5px}
  .sc-next-list li{grid-template-columns:auto 1fr;gap:0 12px;padding:4px 0}
  .sc-next-list .sc-what,.sc-next-list .sc-who{grid-column:1/-1}
  .sc-next-list .sc-who{font-size:12.5px;color:var(--muted)}
}
/* r82: the repeating-job infinity icon sits after the job name; its tooltip is the shared .desk-tip. */
.sc-what-line{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.sc-inf{display:inline-flex;width:18px;height:18px;align-items:center;justify-content:center;color:var(--muted);border-radius:4px}
.sc-inf svg{width:16px;height:16px}
.sc-inf:hover,.sc-inf:focus{color:var(--ink)}
.sc-table th[scope=col][data-sort-key]{white-space:nowrap}
/* r82 fix 1: the infinity tooltip opens BELOW its icon, so it never covers its own row's text. */
.sc-inf.desk-tip:hover::after,.sc-inf.desk-tip:focus::after{bottom:auto;top:calc(100% + 6px);left:0;right:auto;max-width:min(240px,70vw)}
.sc-fold-error{margin:10px 12px}
