.simple-calendar {
  color: #203040;
}

.cleanings-calendar {
  overflow-x: visible;
  padding-bottom: 0.25rem;
}

.cleanings-mobile-calendar {
  display: block;
  margin-top: 0.75rem;
}

.cleanings-desktop-calendar {
  display: none;
}

.cleanings-desktop-filters {
  display: none;
}

.cleanings-mobile-header-actions {
  align-items: center;
  display: flex;
  flex: none;
  gap: 0.625rem;
  padding-left: 0.25rem;
}

.cleanings-mobile-header-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 0.65rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  color: #34495d;
  cursor: pointer;
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  list-style: none;
  text-decoration: none;
  width: 2.5rem;
}

.cleanings-mobile-header-button::-webkit-details-marker {
  display: none;
}

.cleanings-mobile-filter-menu {
  position: relative;
}

.cleanings-mobile-filter-menu[open] .cleanings-mobile-header-button {
  background: #edf6fc;
  border-color: #bdd5eb;
  color: #2f7fbf;
}

.cleanings-mobile-filter-menu summary {
  outline: none;
}

.cleanings-mobile-filter-menu summary::marker {
  display: none;
  content: "";
}

.cleanings-mobile-filter-popover {
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 0.75rem;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
  max-width: calc(100vw - 1.5rem);
  position: absolute;
  right: 0;
  top: calc(100% + 0.7rem);
  width: 21rem;
  z-index: 30;
}

.cleanings-mobile-filter-form {
  padding: 0.9rem;
}

.cleanings-mobile-month {
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.cleanings-mobile-month__header {
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem 1rem;
}

.cleanings-mobile-month__title-group,
.cleanings-mobile-agenda__title-group {
  min-width: 0;
}

.cleanings-mobile-eyebrow {
  color: #7b8ea2;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1rem;
  text-transform: uppercase;
}

.cleanings-mobile-month__title {
  color: #203040;
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.55rem;
}

.cleanings-mobile-icon-button {
  align-items: center;
  background: #2f7fbf;
  border: 1px solid #2f7fbf;
  border-radius: 0.65rem;
  box-shadow: 0 8px 18px rgba(47, 127, 191, 0.16);
  color: #ffffff;
  display: inline-flex;
  flex: none;
  height: 2.5rem;
  justify-content: center;
  text-decoration: none;
  width: 2.5rem;
}

.cleanings-mobile-nav {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0.75rem 0.75rem 0;
}

.cleanings-mobile-nav__link {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 0.55rem;
  color: #34495d;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.5rem;
  text-decoration: none;
}

.cleanings-mobile-nav__link--today {
  background: #edf6fc;
  border-color: #bdd5eb;
  color: #2f7fbf;
}

.cleanings-mobile-weekdays,
.cleanings-mobile-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cleanings-mobile-weekdays {
  padding: 0.75rem 0.75rem 0;
}

.cleanings-mobile-weekday {
  color: #6a7f93;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.2rem 0;
  text-align: center;
  text-transform: uppercase;
}

.cleanings-mobile-grid {
  gap: 0.35rem;
  padding: 0.45rem 0.75rem 0.9rem;
}

.cleanings-mobile-day {
  align-items: center;
  aspect-ratio: 1;
  background: #f8fbfe;
  border: 1px solid #dfe7ef;
  border-radius: 0.65rem;
  color: #203040;
  display: flex;
  flex-direction: column;
  font-weight: 800;
  justify-content: center;
  min-width: 0;
  position: relative;
  text-decoration: none;
}

.cleanings-mobile-day--outside-month {
  background: #ffffff;
  color: #94a3b8;
}

.cleanings-mobile-day--today {
  border-color: #2f7fbf;
  box-shadow: inset 0 0 0 1px #2f7fbf;
}

.cleanings-mobile-day--selected {
  background: #2f7fbf;
  border-color: #2f7fbf;
  color: #ffffff;
}

.cleanings-mobile-day--has-cleanings:not(.cleanings-mobile-day--selected) {
  background: #edf6fc;
  border-color: #bdd5eb;
}

.cleanings-mobile-day__number {
  font-size: 0.88rem;
  line-height: 1;
}

.cleanings-mobile-day__count {
  align-items: center;
  background: #ffffff;
  border: 1px solid #bdd5eb;
  border-radius: 999px;
  bottom: 0.22rem;
  color: #2f7fbf;
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 900;
  height: 1rem;
  justify-content: center;
  line-height: 1;
  min-width: 1rem;
  padding: 0 0.25rem;
  position: absolute;
  right: 0.22rem;
}

.cleanings-mobile-day--selected .cleanings-mobile-day__count {
  border-color: #ffffff;
}

.cleanings-mobile-agenda {
  margin-top: 1rem;
}

.cleanings-mobile-agenda__header {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cleanings-mobile-agenda__date {
  color: #203040;
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.45rem;
}

.cleanings-mobile-agenda__count {
  color: #6a7f93;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1rem;
}

.cleanings-mobile-add-link {
  align-items: center;
  background: #2f7fbf;
  border: 1px solid #2f7fbf;
  border-radius: 0.65rem;
  box-shadow: 0 8px 18px rgba(47, 127, 191, 0.16);
  color: #ffffff;
  display: inline-flex;
  flex: none;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.35rem;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
}

.cleanings-mobile-events {
  display: grid;
  gap: 0.65rem;
}

.cleanings-mobile-event {
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  color: #203040;
  display: block;
  padding: 0.85rem;
  text-decoration: none;
}

.cleanings-mobile-event--canceled {
  background: #fff5f5;
  border-color: #fecaca;
}

.cleanings-mobile-event__topline {
  display: grid;
  gap: 0.45rem;
}

.cleanings-mobile-event__title {
  color: #203040;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2rem;
  margin: 0;
}

.cleanings-mobile-event__time {
  align-items: center;
  background: #f2f6fa;
  border: 1px solid #d9e4ee;
  border-radius: 0.45rem;
  color: #34495d;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  justify-self: start;
  line-height: 1;
  padding: 0.35rem 0.45rem;
}

.cleanings-mobile-event__guest {
  color: #506579;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2rem;
  margin: 0.55rem 0 0;
}

.cleanings-mobile-event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.cleanings-mobile-pill {
  align-items: center;
  background: #f8fbfe;
  border: 1px solid #dfe7ef;
  border-radius: 999px;
  color: #506579;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  min-height: 1.55rem;
  padding: 0.35rem 0.55rem;
}

.cleanings-mobile-pill--cleaner {
  background: #e9f3fb;
  border-color: #bdd5eb;
  color: #2d6f9f;
}

.cleanings-mobile-pill--inspection {
  background: #fff7df;
  border-color: #eed48a;
  color: #85610f;
}

.cleanings-mobile-pill--canceled {
  background: #ffffff;
  border-color: #fecaca;
  color: #b91c1c;
}

.cleanings-mobile-empty {
  align-items: center;
  background: #ffffff;
  border: 1px dashed #d0dce8;
  border-radius: 0.75rem;
  color: #506579;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  text-align: center;
}

.cleanings-mobile-empty__icon {
  align-items: center;
  background: #f2f6fa;
  border: 1px solid #dfe7ef;
  border-radius: 0.65rem;
  color: #2f7fbf;
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.cleanings-mobile-empty__title {
  color: #34495d;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25rem;
  margin: 0;
}

.simple-calendar table {
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 0 0 0.5rem 0.5rem;
  border-top: 0;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  min-width: 100%;
  table-layout: fixed;
  width: 100%;
}

.simple-calendar tr {
  border-collapse: collapse;
}

.calendar-weekdays {
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 0.5rem 0.5rem 0 0;
  border-bottom: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 100%;
  position: sticky;
  top: 3.75rem;
  z-index: 15;
}

.calendar-weekday {
  border-right: 1px solid #edf2f7;
  color: #6a7f93;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.55rem 0.55rem;
  text-transform: uppercase;
}

.calendar-weekday:last-child {
  border-right: 0;
}

.simple-calendar th {
  background: #ffffff;
  border-bottom: 1px solid #dfe7ef;
  border-right: 1px solid #edf2f7;
  box-sizing: border-box;
  color: #6a7f93;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.65rem 0.75rem;
  text-align: left;
  text-transform: uppercase;
}

.simple-calendar th:last-child {
  border-right: 0;
}

.simple-calendar td {
  background: #ffffff;
  border-bottom: 1px solid #edf2f7;
  border-right: 1px solid #edf2f7;
  box-sizing: border-box;
  height: 8.25rem;
  padding: 0.4rem;
  transition: background-color 150ms ease, box-shadow 150ms ease;
  vertical-align: top;
  width: 14.285%;
}

.simple-calendar tr:last-child td {
  border-bottom: 0;
}

.simple-calendar td:last-child {
  border-right: 0;
}

.simple-calendar .calendar-title {
  color: #203040;
}

.simple-calendar .calendar-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.simple-calendar .calendar-heading time {
  flex: 1;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.75rem;
}

.simple-calendar .calendar-heading nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.simple-calendar .day {
  min-height: 8.25rem;
}

.simple-calendar .day:hover {
  background: #fbfdff;
}

.simple-calendar .today {
  background: #f4f9fd;
  box-shadow: inset 0 0 0 1px rgba(47, 127, 191, 0.28);
  position: relative;
  z-index: 1;
}

.simple-calendar .today:hover {
  background: #eef6fc;
}

.simple-calendar .prev-month,
.simple-calendar .next-month {
  background: #ffffff;
  color: #94a3b8;
}

.simple-calendar .prev-month .cleanings-day-number,
.simple-calendar .next-month .cleanings-day-number {
  color: #94a3b8;
}

.cleanings-day-number {
  align-items: center;
  border-radius: 999px;
  color: #34495d;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  height: 1.55rem;
  justify-content: center;
  line-height: 1;
  min-width: 1.55rem;
  padding: 0 0.35rem;
}

.simple-calendar .today .cleanings-day-number {
  background: #2f7fbf;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16);
  color: #ffffff;
}

.cleaning-event {
  background: #f8fbfd;
  border: 1px solid #dfe7ef;
  border-radius: 0.5rem;
  color: #203040;
  display: block;
  padding: 0.35rem;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.cleaning-event:hover {
  background: #ffffff;
  border-color: #bdd5eb;
  box-shadow: 0 4px 12px rgba(47, 127, 191, 0.12);
  transform: translateY(-1px);
}

.cleaning-event--canceled {
  background: #fff5f5;
  border-color: #fecaca;
  padding: 0.45rem;
}

.cleaning-event__status {
  align-items: center;
  background: #ffffff;
  border: 1px solid #fecaca;
  border-radius: 0.375rem;
  color: #b91c1c;
  display: inline-flex;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 0.35rem;
  padding: 0.25rem 0.4rem;
  text-transform: uppercase;
}

.cleaning-event--canceled:hover {
  background: #fff5f5;
  box-shadow: none;
  transform: none;
}

@media (max-width: 767px) {
  .simple-calendar .calendar-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .simple-calendar .calendar-heading nav {
    justify-content: flex-start;
  }

  .simple-calendar th {
    top: 3.75rem;
  }
}

@media (min-width: 768px) {
  .cleanings-mobile-calendar {
    display: none;
  }

  .cleanings-desktop-calendar {
    display: block;
  }

  .cleanings-mobile-header-actions {
    display: none;
  }

  .cleanings-desktop-filters {
    display: block;
  }
}

@media (max-width: 1180px) {
  .simple-calendar td {
    height: 7.75rem;
    padding: 0.35rem;
  }

  .simple-calendar .day {
    min-height: 7.75rem;
  }

  .cleaning-event {
    padding: 0.3rem;
  }

  .cleaning-event--canceled {
    padding: 0.4rem;
  }

  .cleanings-day-number {
    height: 1.45rem;
    min-width: 1.45rem;
  }
}
