/* Shared calendar controls, including the existing booking/resource calendars. */
.fc {
  --fc-border-color: var(--bs-border-color);
  --fc-page-bg-color: var(--bs-body-bg);
  --fc-neutral-bg-color: var(--bs-tertiary-bg);
  --fc-neutral-text-color: var(--bs-secondary-color);
  --fc-list-event-hover-bg-color: var(--bs-secondary-bg);
  --fc-today-bg-color: rgba(var(--bs-primary-rgb), 0.08);
  --fc-button-bg-color: var(--bs-primary);
  --fc-button-border-color: var(--bs-primary);
  --fc-button-text-color: var(--app-primary-text, #fff);
  min-width: 0;
}
.fc .fc-header-toolbar {
  flex-wrap: wrap;
  gap: 0.75rem;
}
.fc .fc-toolbar-title {
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}
.fc .fc-button {
  min-height: 2.5rem;
}
.fc .fc-view-harness {
  min-width: 0;
}
.fc a {
  color: inherit;
}
.fc .fc-button:focus-visible {
  outline: 3px solid var(--bs-primary);
  outline-offset: 3px;
}
@media (max-width: 575px) {
  .fc .fc-header-toolbar {
    justify-content: center;
  }
  .fc .fc-toolbar-chunk {
    max-width: 100%;
  }
  .fc .fc-toolbar-chunk:has(.fc-toolbar-title) {
    flex-basis: 100%;
    order: -1;
    text-align: center;
  }
  .fc .fc-button {
    min-height: 44px;
  }
  .fc .fc-multimonth {
    --fc-multimonth-min-width: 240px;
  }
}

/* Calendar-only surface enhancements; no extra calendar engine. */
.calendar-workspace > aside .card { border-radius:var(--bs-border-radius-lg); border-color:var(--bs-border-color); }
.calendar-workspace > aside .form-check { padding-top:.35rem; padding-bottom:.35rem; }
.calendar-workspace > section { min-width:0; }
.calendar-workspace .fc { border-radius:var(--bs-border-radius); }
[data-density="compact"] .calendar-workspace .card-body { padding:.85rem; }
[data-density="compact"] .calendar-workspace .form-check { padding-top:.12rem; padding-bottom:.12rem; }
[data-density="compact"] .fc .fc-button { min-height:2.15rem; padding:.2rem .5rem; }

/* Canonical citizen appointments: visually distinct requests and confirmed slots. */
.fc .takt-booking-event {
  border-radius: .45rem;
  border-width: 1px;
  font-weight: 650;
}
.fc .takt-booking-requested {
  background: var(--bs-warning-bg-subtle, #fff3cd);
  color: var(--bs-warning-text-emphasis, #664d03);
  border-color: var(--bs-warning-border-subtle, #ffda6a);
  border-style: dashed;
}
.fc .takt-booking-confirmed {
  background: var(--bs-primary-bg-subtle, #cfe2ff);
  color: var(--bs-primary-text-emphasis, #084298);
  border-color: var(--bs-primary-border-subtle, #9ec5fe);
}
.fc .takt-booking-event .fc-event-title,
.fc .takt-booking-event .fc-event-time {
  color: inherit;
}
