/* Shift board visibility rules that do not change the underlying labor classification. */

/* Part-time / short-time contract-off cells remain classified internally for payroll and
   audit logic, but the monthly/weekly board should show them as a plain blank cell. */
.shift-cell[data-day-reason="part_time_contract_off"] .shift-day-state {
  display: none !important;
}

/* Saturday-linked weekday rests are authoritative rest cells. The board must never show
   a stale child chip such as "未割当" for them. Hide whatever child state was rendered
   and paint one deterministic board label from the cell's authoritative reason. */
.shift-cell[data-day-reason="saturday_work_adjustment"] .shift-day-state {
  display: none !important;
}

.shift-cell[data-day-reason="saturday_work_adjustment"]::after {
  content: "公休\A土曜";
  white-space: pre-line;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid #94a3b8;
  border-radius: 7px;
  background: #f8fafc;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  box-sizing: border-box;
}

/* If the cell was previously flagged as unresolved in the same browser render, do not
   leave an error badge beside the now-resolved Saturday adjustment rest. */
.shift-cell[data-day-reason="saturday_work_adjustment"] .shift-flag-error {
  display: none !important;
}
