/*
 * Bootstrap has no 600px breakpoint, so the chart rule lives here.
 * The floor-closure rows need a 44px touch target with the padding on
 * the row, and a label that covers the row so a tap anywhere toggles it.
 */
@media (max-width: 599px) {
  .chart-panel {
    display: none;
  }
}

.closure-row {
  position: relative;
  padding-block: 11px;
}

.closure-row .form-check-input {
  width: 20px;
  height: 20px;
}

.closure-row .form-check-label {
  line-height: 1.4;
  cursor: pointer;
}

.closure-row .form-check-label::after {
  content: "";
  position: absolute;
  inset: 0;
}

.staff-floors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 12px;
}

.staff-floor {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  background: var(--bs-tertiary-bg);
}

.staff-floor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 10px;
}

.staff-floor-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.staff-floor-closed {
  border-style: dashed;
}

.staff-floor-closed-label {
  color: var(--bs-secondary-color);
  font-size: 0.85rem;
  font-weight: 600;
}

.staff-cubicles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.staff-cubicle {
  display: flex;
  min-width: 0;
  min-height: 104px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
}

.staff-cubicle-status {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.staff-cubicle-name {
  font-size: 0.8rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.staff-cubicle-timer {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.staff-status-VACANT {
  background: var(--jamb-vacant-bg);
  color: var(--jamb-vacant-ink);
}

.staff-status-OCCUPIED {
  background: var(--jamb-occupied-bg);
  color: var(--jamb-occupied-ink);
}

.staff-status-NEEDS_ATTENTION {
  background:
    repeating-linear-gradient(135deg, transparent 0 3px, rgba(0, 0, 0, 0.16) 3px 6px),
    var(--jamb-attention-bg);
  color: var(--jamb-attention-ink);
}

.staff-status-OFFLINE {
  border: 2px dashed var(--bs-border-color);
  background: transparent;
  color: var(--jamb-offline-ink);
}

@media (max-width: 599px) {
  .staff-floors,
  .staff-cubicles {
    grid-template-columns: minmax(0, 1fr);
  }
}
