/* Modern resource calendar. All overrides belong to this view. */
body .calendar-modern-view.wbg,
.platform-browser .calendar-modern-view.wbg,
body .calendar-modern-view .scroll-content,
body .calendar-modern-view .scroll {
    background: #f5f7fa !important;
    background-image: none !important;
}
.calendar-modern-view .calendar-modern-shell { padding: 20px 22px 28px; width: 100%; box-sizing: border-box; }
.calendar-modern-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.calendar-period-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; min-width: 0; }
.calendar-modern-view .calendar-period { margin: 0; color: #29444d; font-size: 20px; font-weight: 700; line-height: 1.3; }
.calendar-navigation, .calendar-range-buttons { display: flex; gap: 6px; }
.calendar-modern-toolbar button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 13px; border: 1px solid #dde6eb; border-radius: 9px; background: #fff; color: #526b78; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.calendar-navigation .icon { font-size: 19px; }
.calendar-modern-toolbar button:hover { background: #edf4f5; }
.calendar-modern-toolbar button:focus-visible { outline: 2px solid #339894; outline-offset: 2px; }
.calendar-modern-toolbar .calendar-range-buttons button.is-active { background: #29444d; border-color: #29444d; color: #fff; }
.calendar-modern-grid { overflow: visible; border: 1px solid #e0e8ed; border-radius: 15px; background: #fff; }
/* Use Ionic's native scroll container so the actual, horizontally synced date header can stick. */
.calendar-modern-view .calendar-modern-content > .scroll { height: auto; min-height: 100%; -webkit-transform: none; transform: none; }
.calendar-modern-view .fc-timeline > table > .fc-head { position: -webkit-sticky; position: sticky; top: 0; z-index: 10; background: #fafcfd; box-shadow: 0 1px 0 #dde6eb; }
.calendar-modern-view .fc-timeline > table > .fc-head > tr > td { background: #fafcfd; }
.calendar-modern-view .fc-timeline > table > .fc-head > tr > td:first-child .fc-scroller-clip { border-top-left-radius: 14px; }
.calendar-modern-view .fc-timeline > table > .fc-head > tr > td:last-child .fc-scroller-clip { border-top-right-radius: 14px; }
.calendar-modern-view .fc { color: #29444d; }
.calendar-modern-view .fc th, .calendar-modern-view .fc td,
.calendar-modern-view .fc hr, .calendar-modern-view .fc .fc-divider,
.calendar-modern-view .fc .fc-row, .calendar-modern-view .fc .fc-content,
.calendar-modern-view .fc .fc-popover, .calendar-modern-view .fc .fc-list-view { border-color: #e7edf1; }
.calendar-modern-view .fc .fc-divider { width: 1px; border-style: solid; background: #e7edf1; }
.calendar-modern-view .fc .fc-resource-area { background: #fff; }
.calendar-modern-view .fc .fc-resource-area .fc-cell-content { padding: 12px 14px; min-height: 56px; }
.calendar-modern-view .fc .fc-resource-area .fc-cell-text { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; font-size: 13px; line-height: 1.35; font-weight: 600; }
.calendar-modern-view .calendar-resource-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; width: 100%; min-height: 44px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; text-align: left; font: inherit; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
.calendar-modern-view .calendar-resource-name:focus-visible { outline: 2px solid #267f77; outline-offset: 2px; }
.calendar-modern-view .fc .fc-resource-area th { color: #7b909d; font-size: 12px; font-weight: 600; background: #fafcfd; }
.calendar-modern-view .fc .fc-resource-area .fc-expander { padding: 4px 5px 4px 0; color: #90a1ac; font-size: 13px; }
.calendar-modern-view .fc .fc-head .fc-resource-area .fc-cell-content { min-height: 0; }
.calendar-modern-view .fc .fc-head .fc-cell-content { padding-top: 9px; padding-bottom: 9px; color: #708794; font-size: 12px; font-weight: 600; }
.calendar-modern-view .fc .fc-head .fc-today .fc-cell-content { color: #267f77; }
.calendar-modern-view .fc .fc-sat, .calendar-modern-view .fc .fc-sun { background: #f8fafc; }
.calendar-modern-view .fc .fc-today { background: #eef8f5; }
/* Scheduler 1.x renders horizontal group headings in td.fc-divider, in both grid halves. */
.calendar-modern-view .fc .fc-body .fc-resource-area .fc-divider,
.calendar-modern-view .fc .fc-body .fc-time-area .fc-divider { background: #f3f6f8; color: #7c909c; }
.calendar-modern-view .fc .fc-resource-area .fc-divider .fc-cell-content { display: flex; align-items: center; gap: 4px; box-sizing: border-box; min-height: 32px; padding: 6px 9px; }
.calendar-modern-view .fc .fc-resource-area .fc-divider .fc-cell-text { flex: 1; min-width: 0; padding: 0; font-size: 11px; line-height: 1.25; font-weight: 600; }
.calendar-modern-view .fc .fc-resource-area .fc-divider .fc-expander { flex: 0 0 auto; padding: 4px 0; }
.calendar-modern-view .fc .fc-widget-content .fc-event-container { height: auto !important; min-height: 54px; }
.calendar-modern-view .fc .fc-timeline-event { margin: 4px 2px !important; padding: 7px 9px; border: 0; border-radius: 8px; background: #dcedeb; color: #29444d; font-size: 12px; line-height: 1.3; font-weight: 600; box-shadow: none; }
.calendar-modern-view .fc .fc-timeline-event.calendar-booking-unavailable { background: #edf0f4; color: #657684; }
.calendar-modern-view .fc .fc-timeline-event .fc-title { display: block; padding: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; }
.calendar-modern-view .fc .fc-timeline-event .fc-title::before { content: none; display: none; }
.calendar-modern-view .fc .fc-timeline-event .fc-content { padding: 0; }
.calendar-modern-view .fc .calendar-booking-dates { display: block; margin-top: 3px; opacity: .75; font-size: 10px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.calendar-modern-view .fc .fc-timeline-event:focus-visible { outline: 2px solid #267f77; outline-offset: 1px; }
.calendar-modern-view .fc .fc-highlight { background: #c8e7e2; opacity: .5; }
.calendar-modern-view .fc .fc-scroller { -webkit-overflow-scrolling: touch; }
.calendar-modern-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 13px; font-size: 12px; color: #7b909d; }
.calendar-modern-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.calendar-legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.calendar-legend-dot.reserved { background: #63a89d; }
.calendar-legend-dot.unavailable { background: #9daab6; }
.calendar-modern-hint { margin-left: auto; }
@media (max-width: 767px) {
    .calendar-modern-view .calendar-modern-shell { padding: 12px 10px 20px; }
    .calendar-modern-toolbar { gap: 10px; margin-bottom: 12px; }
    .calendar-period-controls { width: 100%; justify-content: space-between; gap: 10px; }
    .calendar-modern-view .calendar-period { font-size: 17px; }
    .calendar-modern-toolbar button { min-height: 42px; padding: 8px 11px; }
    .calendar-modern-view .fc .fc-resource-area .fc-cell-content { padding-left: 9px; padding-right: 7px; }
    .calendar-modern-view .fc .fc-resource-area .fc-body .fc-cell-content { padding-top: 6px; padding-bottom: 6px; }
    .calendar-modern-view .fc .fc-resource-area .fc-cell-text { font-size: 12px; }
    .calendar-modern-grid { border-radius: 12px; }
    .calendar-modern-hint { margin-left: 0; width: 100%; font-size: 11px; }
}
@media (max-width: 420px) {
    .calendar-modern-view .calendar-period { width: 100%; }
    .calendar-period-controls { gap: 8px; }
}


/* Owner-cleaned reservations: keep the booking readable while making the payment exclusion visible. */
.calendar-modern-view .calendar-booking-self-cleaned {
  box-shadow: inset 0 -3px 0 rgba(41, 68, 77, 0.45);
}

.calendar-modern-view .calendar-self-cleaned-badge {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
/* Jours bloqués Airbnb : information seule (pas de fiche réservation au clic). */
.calendar-modern-view .fc .fc-timeline-event.calendar-block { cursor: pointer; box-shadow: none; padding: 7px 5px; font-size: 11px; }
.calendar-modern-view .fc .fc-timeline-event.calendar-block .fc-title { font-weight: 600; }
.calendar-modern-view .fc .fc-timeline-event.calendar-block-prep { background: #e2f2f0; border: 1px dashed #7fbab4; color: #1f6b66; }
.calendar-modern-view .fc .fc-timeline-event.calendar-block-manual { background: repeating-linear-gradient(135deg, #eef1f4 0 6px, #e2e7ec 6px 12px); border: 1px solid #d3dbe2; color: #5b6b77; }
.calendar-legend-dot.block-prep { background: #e2f2f0; box-shadow: inset 0 0 0 1px #7fbab4; }
.calendar-legend-dot.block-manual { background: repeating-linear-gradient(135deg, #c9d2da 0 2px, #eef1f4 2px 4px); box-shadow: inset 0 0 0 1px #b8c3cc; }
