/* Workforce Capacity Planner (/workforce-capacity)
   Global stylesheet — scoped .razor.css is not linked in this app. */

/* Headline band: one block per person, so peak = core + flex reads without arithmetic.
   Blocks wrap on narrow screens rather than shrinking — a half-width person is not a unit. */
.capacity-headcount-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 4px 0 12px;
}

.capacity-block {
    width: 14px;
    height: 22px;
    border-radius: 3px;
    flex: 0 0 auto;
}

.capacity-block-core,
.capacity-legend-core {
    background: var(--mud-palette-primary);
}

.capacity-block-flex,
.capacity-legend-flex {
    background: var(--mud-palette-warning);
}

/* The crew you already have is a reference row, not a third category — outlined so it reads
   as a measurement against the plan rather than another slice of it. */
.capacity-block-have {
    background: transparent;
    border: 1px solid var(--mud-palette-text-secondary);
}

.capacity-headcount-total {
    margin-left: 8px;
    white-space: nowrap;
    font-weight: 600;
}

.capacity-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.capacity-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.capacity-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex: 0 0 auto;
}

/* Horizontal scroll container for the discipline × month FTE table. */
.capacity-table-scroll {
    overflow-x: auto;
    margin-top: 8px;
}

.capacity-table th,
.capacity-table td {
    white-space: nowrap;
}

.capacity-table th.num,
.capacity-table td.num {
    text-align: right;
}

.capacity-table th.strong,
.capacity-table td.strong {
    font-weight: 600;
}

/* The Total row is the staffing anchor — visually separate it from the
   capability-demand discipline rows above. */
.capacity-table .capacity-total-row td {
    font-weight: 600;
    border-top: 2px solid var(--mud-palette-lines-default);
}

/* Assumption panel: 12 compact month cells for availability / seasonality. */
.capacity-month-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.capacity-assumptions .mud-input-helper-text {
    margin-top: 0;
}

/* Growth what-if panel: two side-by-side "book today / average client" fact blocks. */
.capacity-growth-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.capacity-growth .mud-input-helper-text {
    margin-top: 0;
}

/* The slider sits directly under its numeric field — drop the default side padding
   so the two controls line up on the left edge. */
.capacity-growth .mud-slider {
    padding-left: 4px;
    padding-right: 4px;
}

/* Supply panel: "on the books" vs "plan needs", side by side. */
.capacity-supply-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* Calibration panel: one row per measurable lever — label, assumed vs measured, apply. */
.capacity-calibration-rows {
    display: flex;
    flex-direction: column;
}

.capacity-calibration-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.capacity-calibration-row:first-child {
    border-top: none;
}

.capacity-calibration-label {
    min-width: 0;
}

/* Assumed above, measured below — the measured value is the one being offered, so it carries
   the visual weight. */
.capacity-calibration-values {
    text-align: right;
    white-space: nowrap;
}

.capacity-calibration-values .capacity-measured {
    font-weight: 600;
}
