/* ─── Workers tab ─────────────────────────────────────────────────────────────────
   Fifth derivative of the workspace archetype (shared.css owns .pathbar, .workspace,
   .workspace-rail/-row, .workspace-panel/-head/-body, both folds and the .panel-*
   inspector shapes). What's left here is the three grid columns, the pane's three
   sections, and the rotation's two small tables inside the inspector.
   ─────────────────────────────────────────────────────────────────────────────── */

/* departments · the section's list · whatever is selected */
.workers-workspace { --rail-w: 13rem; --panel-w: 21rem; grid-template-columns: var(--rail-col) minmax(0, 1fr) var(--panel-col); }

/* the pane is a column of chrome and one scrolling view, not a scroller itself */
.workers-pane { display: flex; flex-direction: column; overflow: hidden; }
.workers-section { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.workers-subview { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.workers-section .table-scroll { flex: 1; min-height: 0; margin-bottom: 0; }
.workers-section .tab-bar,
.workers-section .disclaimer-banner { flex: none; }
/* it already reads as a caveat; inside a pane it doesn't need a full row of its own height too */
.workers-section .disclaimer-banner { margin: 0 0 0.5rem; font-size: 0.78rem; padding: 0.4rem 0.7rem; }

/* a worker row is a selection, not just a row to read */
#workers-tbody tr,
#worker-timecards-tbody tr,
#rotations-tbody tr { cursor: pointer; }

/* ─── Inspector ─── */

/* a heading with its own action, e.g. Pairs and the button that adds one */
.panel-sub-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }

/* The rotation's pairs and its 7x2 weekly grid. Pair labels are two letters ("A / C"), so both
   tables fit the panel at a smaller scale rather than needing the pane's width. */
.rotation-mini {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}
.rotation-mini th {
  text-align: left;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0.2rem 0.3rem;
  border-bottom: 1px solid var(--border-light);
}
.rotation-mini td {
  padding: 0.2rem 0.3rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-sub);
}
.rotation-mini td.col-action { text-align: right; white-space: nowrap; }
.rotation-mini select { width: 100%; padding: 0.1rem 0.25rem; font-size: 0.74rem; }
