/* Header actions container */
.appointments--header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Notice styles */
.notice--error {
  color: var(--danger-600);
}

.notice--success {
  color: var(--success-600);
}

/* Filters component */
/* Everything here wraps as whole controls. Without it the row cannot reflow, so the only
   give is inside each label — and "Include no-shows" breaks across two lines mid-phrase,
   which reads as damage rather than as layout. */
.appointments-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-inline: 1px;
}

.appointments-filters--container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.appointments-filters--select-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.appointments-filters--label {
  font-size: var(--rem-12);
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.appointments-filters--select {
  min-width: 180px;
  padding: 0.375rem 0.75rem;
  font-size: var(--rem-14);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.appointments-filters--select:hover {
  border-color: var(--border-hover);
}

.appointments-filters--select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
}

/* Checkbox styles */
.appointments-filters--checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.appointments-filters--checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  user-select: none;
  /* A control is a unit: it moves to the next row whole rather than splitting its label. */
  flex: 0 0 auto;
  span {
    white-space: nowrap;
    font-size: var(--rem-14);
    color: var(--text-body);
  }
}

.appointments-filters--checkbox-label:hover {
  color: var(--text-heading);
}

.appointments-filters--checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

/* The Day/Week switch and the date arrows, side by side at the end of the filter row. */
.weekly-schedule--header-controls {
  display: flex;
  align-items: center;
  gap: var(--rem-12);
}

/* The shared tabs wrapper fills its row and keeps a tab bar's height; here it is one
   control among others. */
.tabs--div-container.appointments-filters--view-switch {
  width: auto;
  min-height: 0;
  justify-content: center;
}
