.calendar-project-event {
  position: relative;
  padding: 0;
  gap: 0;
}
.calendar-project-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 7px 42px 7px 11px;
  color: inherit;
  overflow: hidden;
}
.calendar-project-link > span:not(.calendar-people) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.calendar-project-link b,
.calendar-project-link small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: inherit;
}
.calendar-project-link > .icon {
  width: 22px;
  height: 22px;
  flex: none;
}
.calendar-event-menu {
  position: absolute;
  z-index: 4;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  min-width: 25px;
  height: 25px;
  min-height: 25px;
  padding: 4px;
  border: 0;
  background: #ffffffb8;
  color: inherit;
}
.calendar-event-menu:hover,
.calendar-event-menu:focus-visible {
  background: #fff;
}
.calendar-event-menu .icon {
  width: 15px;
  height: 15px;
}
.calendar-resize-handle {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: ew-resize;
  opacity: 0;
}
.calendar-resize-handle.start {
  left: 0;
}
.calendar-resize-handle.end {
  right: 0;
}
.calendar-project-event:hover .calendar-resize-handle,
.calendar-project-event:focus-within .calendar-resize-handle,
.calendar-resize-handle:focus-visible {
  opacity: 1;
  background: #ffffff75;
}
.calendar-project-event.resizing {
  overflow: visible;
  outline: 2px solid currentColor;
  outline-offset: 1px;
}
.calendar-resize-preview {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 5px 8px;
  border-radius: 5px;
  background: #081850;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px #08185030;
}
.calendar-resize-preview.invalid {
  background: #b42318;
}
body.calendar-resizing,
body.calendar-resizing * {
  cursor: ew-resize !important;
  user-select: none;
}
.calendar-project-event[data-segment-days='1'] .calendar-project-link {
  padding: 5px 6px;
}
.calendar-project-event[data-segment-days='1'] .calendar-project-link > .icon,
.calendar-project-event[data-segment-days='1'] .calendar-project-link small {
  display: none;
}
.calendar-project-event[data-segment-days='1']
  .calendar-project-link
  > span:not(.calendar-people)
  > b {
  white-space: normal;
  font-size: 11px;
  line-height: 15px;
  max-height: 30px;
  padding-right: 38px;
}
.calendar-project-event[data-segment-days='1'] .calendar-project-link > .calendar-people {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 0;
}
.calendar-project-event[data-segment-days='1'] .calendar-event-menu {
  right: 4px;
  top: 4px;
  transform: none;
  opacity: 0;
}
.calendar-project-event[data-segment-days='1']:hover .calendar-event-menu,
.calendar-project-event[data-segment-days='1'] .calendar-event-menu:focus-visible {
  opacity: 1;
}
@media print {
  .calendar-resize-handle,
  .calendar-event-menu,
  .calendar-resize-preview {
    display: none !important;
  }
  .calendar-project-link {
    padding: 5px 6px;
  }
}
