@import "flatpickr/dist/themes/light.css";

.flatpickr-weekdays,
span.flatpickr-weekday,
.flatpickr-months .flatpickr-month,
.flatpickr-current-month
  .flatpickr-monthDropdown-months
  .flatpickr-monthDropdown-month,
.flatpickr-current-month .flatpickr-monthDropdown-months {
  @apply bg-slate-150 text-slate-600 dark:bg-navy-500 dark:text-navy-100;
}

.flatpickr-current-month {
  @apply inline-flex items-start justify-between;
  font-size: 110%;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  @apply fill-current text-slate-500 dark:text-navy-200;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
  @apply border-primary bg-primary text-white dark:border-accent dark:!bg-accent  dark:text-white;
}

.flatpickr-innerContainer,
.flatpickr-time {
  @apply dark:border-b-navy-500 dark:bg-navy-700;
}

.flatpickr-innerContainer,
.dayContainer {
  @apply rounded-b;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay,
.flatpickr-day.notAllowed,
.flatpickr-day.notAllowed.prevMonthDay,
.flatpickr-day.notAllowed.nextMonthDay {
  @apply dark:text-navy-300;
}

.flatpickr-day {
  @apply text-slate-600 dark:text-navy-100;
}

.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange,
.flatpickr-day.today.inRange,
.flatpickr-day.prevMonthDay.today.inRange,
.flatpickr-day.nextMonthDay.today.inRange,
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day:focus,
.flatpickr-day.prevMonthDay:focus,
.flatpickr-day.nextMonthDay:focus {
  @apply border-slate-150 bg-slate-150 dark:border-navy-500 dark:bg-navy-500;
}

.flatpickr-days {
  @apply border-slate-150 dark:border-navy-500;
}

.flatpickr-time input,
.flatpickr-time .flatpickr-time-separator,
.flatpickr-time .flatpickr-am-pm {
  @apply text-slate-600 dark:text-navy-100;
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:focus {
  @apply bg-slate-150 dark:bg-navy-500;
}

.flatpickr-time .numInputWrapper span.arrowUp {
  @apply dark:after:border-b-navy-200;
}
.flatpickr-time .numInputWrapper span.arrowDown {
  @apply dark:after:border-t-navy-200;
}
.flatpickr-calendar.hasTime .flatpickr-time {
  @apply border-slate-150 dark:border-navy-500;
}

.flatpickr-day.inRange {
  box-shadow:
    -5px 0 0 var(--color-slate-500),
    5px 0 0 var(--color-slate-500);
}

.dark .flatpickr-day.inRange {
  box-shadow:
    -5px 0 0 var(--color-navy-500),
    5px 0 0 var(--color-navy-500);
}

.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n + 1)),
.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n + 1)),
.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n + 1)) {
  box-shadow: var(--color-accent) -10px 0 0;
}

.dark .flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n + 1)),
.dark .flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n + 1)),
.dark .flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n + 1)) {
  box-shadow: var(--color-accent) -10px 0 0;
}

.flatpickr-calendar.arrowTop,
.flatpickr-calendar.arrowTop {
  @apply before:border-b-slate-150 after:border-b-slate-150 dark:after:border-b-navy-500 dark:before:border-b-navy-500;
}

.flatpickr-calendar.arrowBottom,
.flatpickr-calendar.arrowBottom {
  @apply before:border-t-slate-150 after:border-t-slate-150 dark:after:border-t-navy-700 dark:before:border-t-navy-700;
}

.flatpickr-current-month input.cur-year[disabled],
.flatpickr-current-month input.cur-year[disabled]:hover {
  @apply dark:text-navy-300;
}
