{"version":3,"file":"WeekView.module.mjs","names":[],"sources":["../../../src/components/WeekView/WeekView.module.css"],"sourcesContent":[".weekView {\n  --week-view-week-day-height: 58px;\n  --week-view-all-day-slots-height: 48px;\n  --week-view-radius: var(--schedule-radius, var(--mantine-radius-default));\n  --week-view-slots-label-width: 80px;\n  --week-view-min-slot-width: 80px;\n  --week-view-slot-height: 64px;\n\n  @mixin where-light {\n    --week-view-border-color: var(--mantine-color-gray-3);\n    --week-view-business-hours-bg: var(--mantine-color-white);\n    --week-view-non-business-hours-bg: var(--mantine-color-gray-0);\n  }\n\n  @mixin where-dark {\n    --week-view-border-color: var(--mantine-color-dark-4);\n    --week-view-business-hours-bg: var(--mantine-color-dark-7);\n    --week-view-non-business-hours-bg: var(--mantine-color-dark-6);\n  }\n}\n\n.weekViewRoot {\n  --indicator-labels-offset: calc(var(--week-view-slots-label-width) / var(--number-of-days));\n\n  border: 1px solid var(--week-view-border-color);\n  border-radius: var(--week-view-radius);\n  overflow: hidden;\n}\n\n.weekViewInner {\n  display: flex;\n  position: relative;\n  overflow: hidden;\n}\n\n.weekViewScrollArea {\n  :where(:global(.mantine-ScrollArea-scrollbar)) {\n    z-index: 4;\n  }\n}\n\n.weekViewHeader {\n  display: flex;\n  position: sticky;\n  top: 0;\n  z-index: 4;\n  background-color: var(--mantine-color-body);\n  border-bottom: 1px solid var(--week-view-border-color);\n  margin-bottom: -1px;\n  transition: box-shadow 100ms ease;\n\n  &:where([data-scrolled]) {\n    box-shadow: var(--mantine-shadow-sm);\n  }\n}\n\n.weekViewCorner {\n  height: var(--week-view-week-day-height);\n  flex: 0 0 var(--week-view-slots-label-width);\n  min-width: var(--week-view-slots-label-width);\n  line-height: 1;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n}\n\n.weekViewSlotLabels {\n  flex: 0 0 var(--week-view-slots-label-width);\n  min-width: var(--week-view-slots-label-width);\n  background-color: var(--mantine-color-body);\n}\n\n.weekViewSlotLabel {\n  border-top: 1px solid var(--week-view-border-color);\n  text-align: right;\n  height: var(--week-view-slot-height);\n  padding: 4px;\n  padding-inline-end: 8px;\n  font-size: var(--mantine-font-size-sm);\n  user-select: none;\n  cursor: default;\n  font-variant-numeric: tabular-nums;\n  text-transform: uppercase;\n\n  &:where([data-business-hours]) {\n    background-color: var(--week-view-business-hours-bg);\n  }\n\n  &:where([data-non-business-hours]) {\n    background-color: var(--week-view-non-business-hours-bg);\n  }\n}\n\n.weekViewDay {\n  flex: 1;\n  border-inline-start: 1px solid var(--week-view-border-color);\n}\n\n.weekViewDayLabel {\n  height: var(--week-view-week-day-height);\n  min-width: var(--week-view-min-slot-width);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  line-height: 1;\n  font-weight: var(--mantine-font-weight-medium);\n  user-select: none;\n  cursor: pointer;\n  flex: 1;\n  border-inline-start: 1px solid var(--week-view-border-color);\n  padding-inline-start: 5px;\n\n  &:where([data-weekend]) {\n    color: var(--mantine-color-error);\n  }\n\n  &:where([data-today]) {\n    gap: 6px;\n  }\n\n  @mixin hover {\n    @mixin where-light {\n      background-color: var(--mantine-color-gray-0);\n    }\n\n    @mixin where-dark {\n      background-color: var(--mantine-color-dark-6);\n    }\n  }\n\n  &:where([data-static]) {\n    cursor: default;\n    pointer-events: none;\n  }\n}\n\n.weekViewDayNumber {\n  text-align: center;\n  width: 26px;\n  aspect-ratio: 1;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  border-radius: 100%;\n  font-size: var(--mantine-font-size-sm);\n\n  :where(.weekViewDayLabel[data-today]) & {\n    background-color: var(--mantine-primary-color-filled);\n    color: var(--mantine-primary-color-contrast);\n  }\n}\n\n.weekViewDayWeekday {\n  text-align: center;\n  font-size: var(--mantine-font-size-sm);\n  text-transform: capitalize;\n}\n\n.weekViewBackgroundEvent {\n  position: absolute;\n  pointer-events: none;\n  z-index: 2;\n  border-radius: var(--week-view-radius);\n  background-color: var(--bg-event-bg);\n  overflow: hidden;\n  font-size: 12px;\n  font-weight: var(--mantine-font-weight-medium);\n  padding: 3px 4px;\n  color: var(--bg-event-color);\n}\n\n.weekViewDaySlots {\n  position: relative;\n}\n\n.weekViewDaySlot {\n  display: block;\n  width: 100%;\n  border-top: 1px solid var(--week-view-border-color);\n  height: calc(var(--week-view-slot-height) * var(--slot-size, 1));\n  min-width: var(--week-view-min-slot-width);\n  padding: 4px;\n  cursor: pointer;\n  position: relative;\n\n  &:where(:focus) {\n    z-index: 1;\n  }\n\n  @mixin hover {\n    @mixin where-light {\n      background-color: var(--mantine-color-gray-1);\n    }\n\n    @mixin where-dark {\n      background-color: var(--mantine-color-dark-5);\n    }\n  }\n\n  &:where([data-business-hours]) {\n    background-color: var(--week-view-business-hours-bg);\n  }\n\n  &:where([data-non-business-hours]) {\n    background-color: var(--week-view-non-business-hours-bg);\n  }\n\n  &:where([data-drop-target]) {\n    @mixin where-light {\n      background-color: var(--mantine-color-blue-1);\n    }\n\n    @mixin where-dark {\n      background-color: var(--mantine-color-dark-5);\n    }\n\n    &::before {\n      content: '';\n      position: absolute;\n      inset: 0;\n      pointer-events: none;\n      z-index: 2;\n      border: 1px solid;\n      border-radius: 2px;\n\n      @mixin where-light {\n        border-color: var(--mantine-color-blue-4);\n      }\n\n      @mixin where-dark {\n        border-color: var(--mantine-color-blue-6);\n      }\n    }\n  }\n\n  &:where([data-drag-selected]) {\n    &,\n    &:hover {\n      background-color: var(--mantine-primary-color-light);\n    }\n\n    &::before {\n      content: '';\n      position: absolute;\n      inset: -1px;\n      pointer-events: none;\n      z-index: 2;\n      border: 1px solid;\n\n      @mixin where-light {\n        border-color: var(--mantine-primary-color-2);\n      }\n\n      @mixin where-dark {\n        border-color: var(--mantine-primary-color-9);\n      }\n    }\n  }\n\n  &:where([data-drag-slot-index]) {\n    touch-action: none;\n  }\n\n  &:where([data-static]) {\n    cursor: default;\n    pointer-events: none;\n  }\n}\n\n.weekViewDaySlots .weekViewDaySlot {\n  border-top-style: dotted;\n\n  &:where([data-hour-start]) {\n    border-top-style: solid;\n  }\n}\n\n.weekViewRoot:where([data-hide-sub-hour-grid-lines])\n  .weekViewDaySlots\n  .weekViewDaySlot:not([data-hour-start]) {\n  border-top-color: transparent;\n}\n\n.weekViewRoot:where([data-event-interaction]) .weekViewDaySlots .weekViewDaySlot {\n  pointer-events: none;\n}\n\n.weekViewWeekLabel {\n  text-align: center;\n  margin-bottom: 4px;\n  font-size: var(--mantine-font-size-sm);\n}\n\n.weekViewWeekNumber {\n  font-weight: var(--mantine-font-weight-medium);\n  text-align: center;\n  font-size: var(--mantine-font-size-lg);\n}\n\n.weekViewAllDaySlots {\n  display: flex;\n  height: var(--week-view-all-day-slots-height);\n}\n\n.weekViewAllDaySlotsLabel {\n  flex: 0 0 var(--week-view-slots-label-width);\n  text-align: right;\n  padding: 4px 8px;\n  font-size: var(--mantine-font-size-sm);\n}\n\n.weekViewAllDaySlotsEvents {\n  position: absolute;\n  inset: 0;\n  overflow: hidden;\n  pointer-events: none;\n}\n\n.weekViewAllDaySlotsList {\n  position: relative;\n  width: 100%;\n  height: 100%;\n  display: flex;\n\n  & > .weekViewDaySlot {\n    flex: 1;\n    border-inline-start: 1px solid var(--week-view-border-color);\n    height: 100%;\n  }\n\n  &:hover,\n  &:focus-within {\n    .weekViewAllDaySlotsEvents {\n      overflow: visible;\n\n      &::before {\n        content: '';\n        position: absolute;\n        top: 100%;\n        height: calc(var(--week-view-all-day-slots-height) / 2 * var(--extra-rows));\n        inset-inline: 0;\n        z-index: 1;\n        pointer-events: all;\n      }\n    }\n  }\n}\n"],"mappings":""}