/* Shift Scheduling / Rostering (Phase 71). Header/tabs/week-nav reuse
   .workspace-hero/.lv-tabs/.ts-week-nav (timesheets.css); status colors
   reuse .status-badge.cert-warn (compliance.css) for the draft badge. */
.sched-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--space-3);
}
.sched-day { min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.sched-day__head { display: flex; flex-direction: column; gap: 2px; font-size: var(--text-sm); }
.sched-day__head span { color: var(--color-fg-muted); font-size: var(--text-xs); }
.sched-day__empty { color: var(--color-fg-muted); font-size: var(--text-xs); }

.sched-chip { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2); border-radius: var(--radius-md); background: var(--color-surface-hover); font-size: var(--text-xs); }
.sched-chip__time { font-weight: var(--font-semibold); }
.sched-chip__role { color: var(--color-fg-muted); }
.sched-chip--editable { cursor: pointer; }
.sched-chip--editable:hover { background: var(--color-primary-soft); }

.sched-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.sched-toolbar .ts-week-nav { margin: 0; margin-left: auto; }

.sched-roster { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.sched-roster-head, .sched-roster-row { display: flex; border-bottom: 1px solid var(--color-border); }
.sched-roster-row:last-child { border-bottom: none; }
.sched-namecol { flex: 0 0 200px; display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); font-size: var(--text-sm); }
.sched-roster-days, .sched-roster-row .sched-roster-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); flex: 1; }
.sched-daynum { display: flex; flex-direction: column; align-items: center; padding: var(--space-2); font-size: var(--text-xs); border-left: 1px solid var(--color-border); }
.sched-daynum span { color: var(--color-fg-muted); }
.sched-roster-cell { position: relative; display: flex; flex-direction: column; gap: 2px; padding: var(--space-2); border-left: 1px solid var(--color-border); min-height: 56px; }
.sched-add-btn { align-self: center; margin-top: auto; width: 22px; height: 22px; border-radius: var(--radius-full); border: 1px dashed var(--color-border); background: transparent; color: var(--color-fg-muted); cursor: pointer; font-size: var(--text-sm); line-height: 1; }
.sched-add-btn:hover { background: var(--color-primary-soft); color: var(--color-primary); border-color: var(--color-primary); }

@media (max-width: 900px) {
  .sched-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sched-namecol { flex-basis: 140px; }
  .sched-roster-head, .sched-roster-row { min-width: 780px; }
}
@media (max-width: 520px) {
  .sched-grid { gap: var(--space-2); }
  .sched-day { padding: var(--space-3); }
  .sched-toolbar { align-items: stretch; flex-direction: column; }
  .sched-toolbar .ts-week-nav { width: 100%; margin-left: 0; }
}
