/*!
    *
    * Wijmo Library 5.20262.60
    * https://developer.mescius.com/wijmo
    *
    * Copyright(c) MESCIUS inc. All rights reserved.
    *
    * Licensed under the End-User License Agreement For MESCIUS Wijmo Software.
    * us.sales@mescius.com
    * https://developer.mescius.com/wijmo/licensing
    *
    */

@use "../misc/mixins";

// Scheduler
.wj-scheduler {
  display: block;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 0;
  color: #111827;
  font-family: Arial, sans-serif;
  font-size: 14px;
  --wj-scheduler-timed-frozen-frame-z-index: 7;
  --wj-scheduler-timed-corner-frame-z-index: 8;
  --wj-scheduler-timed-header-pane-z-index: 6;
  --wj-scheduler-cell-nonworking-background-color: rgba(0, 0, 0, 0.07);
  --wj-scheduler-cell-working-background-color: #fff;

  .wj-scheduler-root {
    display: flex;
    position: relative;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: #fff;
  }

  .wj-scheduler-header {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    align-items: center;
    min-height: 48px;
    gap: 16px;
    padding: 0 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    user-select: none;
  }

  .wj-scheduler-header-left,
  .wj-scheduler-header-right,
  .wj-scheduler-view-menu-container,
  .wj-scheduler-view-menu {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .wj-scheduler-header-left {
    gap: 10px;
    overflow: hidden;
  }

  .wj-scheduler-header-right {
    gap: 14px;
    justify-content: flex-end;
    overflow: hidden;
  }

  .wj-scheduler-date-range {
    flex: 0 1 auto;
    position: relative;
    min-width: 0;
    max-width: 100%;
    padding: 0 16px 0 8px;
    overflow: hidden;
    color: #0f172a;
    cursor: pointer;
    font-weight: 600;
    line-height: 48px;
    text-overflow: ellipsis;
    user-select: none;
    white-space: nowrap;

    &::after {
      content: "";
      position: absolute;
      top: 50%;
      right: 4px;
      width: 7px;
      height: 7px;
      border-right: 1px solid #64748b;
      border-bottom: 1px solid #64748b;
      transform: translateY(-65%) rotate(45deg);
    }

    &.wj-scheduler-date-range-hidden {
      display: none;
    }

    &:focus-within {
      outline: 2px solid #000;
      outline-offset: -2px;
    }
  }

  .wj-scheduler-date-range-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wj-scheduler-date-range-picker-host {
    position: absolute;
    inset: 0;
    z-index: 1;
    min-width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;

    .wj-input-group {
      width: 100%;
      height: 100%;
    }

    input {
      cursor: pointer;
    }
  }

  .wj-scheduler-nav-button,
  .wj-scheduler-view-scroll-button,
  .wj-scheduler-view-button {
    height: 30px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #020617;
    flex: 0 0 auto;
    font: inherit;
    font-weight: 600;
    line-height: 30px;
    white-space: nowrap;
    cursor: pointer;
    @include mixins.wjTransform();

    &:hover {
      background: #f8fafc;
    }

    &:focus {
      outline: 2px solid #000;
      outline-offset: -2px;
    }
  }

  .wj-scheduler-nav-button,
  .wj-scheduler-view-scroll-button {
    font-size: 20px;

    & > span {
      position: relative;
      top: -2px;
    }
  }

  .wj-scheduler-view-button {
    border-bottom: 2px solid transparent;
  }

  .wj-scheduler-view-menu-divider {
    height: 34px;
    width: 1px;
    background: #e5e7eb;
    margin-left: 12px;
  }

  .wj-scheduler-view-menu-container {
    flex: 0 1 auto;
    max-width: 100%;
    overflow: hidden;
  }

  .wj-scheduler-view-menu {
    flex: 1 1 auto;
    gap: 4px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;

    &::-webkit-scrollbar {
      display: none;
    }
  }

  .wj-scheduler-view-button-active {
    color: #007cbe;
    border-bottom-color: #007cbe;
  }

  .wj-scheduler-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #fff;
  }

  .wj-scheduler-surface {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: auto;
    background: #fff;
  }

  .wj-scheduler-surface-matrix {
    display: grid;
  }

  .wj-scheduler-surface-timed-vertical,
  .wj-scheduler-surface-timed-horizontal {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .wj-scheduler-timed-header-pane {
    flex: 0 0 auto;
    position: relative;
    z-index: var(--wj-scheduler-timed-header-pane-z-index);
    min-width: 0;
    overflow: hidden;
    background: #fff;
  }

  .wj-scheduler-timed-scroll-viewport {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    background: #fff;
  }

  .wj-scheduler-timed-column-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 5;
    min-width: max-content;
    background: #fff;
  }

  .wj-scheduler-timed-column-header-grid,
  .wj-scheduler-timed-row-group,
  .wj-scheduler-timed-horizontal-header-row,
  .wj-scheduler-timed-horizontal-row-grid,
  .wj-scheduler-timed-vertical-frame,
  .wj-scheduler-timed-horizontal-header-frame,
  .wj-scheduler-timed-horizontal-row-header-frame,
  .wj-scheduler-timed-corner-frame {
    display: grid;
    min-width: max-content;
  }

  .wj-scheduler-timed-vertical-frame,
  .wj-scheduler-timed-horizontal-row-header-frame,
  .wj-scheduler-timed-corner-frame {
    position: sticky;
    left: 0;
    z-index: var(--wj-scheduler-timed-frozen-frame-z-index);
    background: #fff;
  }

  .wj-scheduler-timed-corner-frame {
    z-index: var(--wj-scheduler-timed-corner-frame-z-index);
  }

  .wj-scheduler-timed-horizontal-header-frame {
    background: #fff;
  }

  .wj-scheduler-timed-section-header,
  .wj-scheduler-matrix-band {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 48px;
    overflow: hidden;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    color: #172554;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 4px;
  }

  .wj-scheduler-timed-corner,
  .wj-scheduler-matrix-band-corner {
    background: #fff;
  }

  .wj-scheduler-timed-axis {
    background: #f8fafc;
    border-right: 1px solid #e5e7eb;

    > .wj-scheduler-timed-axis-row {
      align-items: flex-start;
      padding-top: 5px;
    }

    > .wj-scheduler-timed-axis-row-dst {
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
    }
  }

  .wj-scheduler-timed-axis-row {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0;
    border-bottom: 1px solid #e5e7eb;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1;
  }

  .wj-scheduler-timed-axis-row-dst {
    color: #c62828;
  }

  .wj-scheduler-timed-axis-dst-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    margin: 3px 0 0;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: #c62828;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    cursor: help;
  }

  .wj-scheduler-timed-axis-dst-indicator::after {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 50%;
    display: none;
    width: max-content;
    max-width: 280px;
    padding: 7px 9px;
    border: 1px solid #d1d5db;
    background: #111827;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    color: #fff;
    content: attr(data-dst-tooltip);
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    transform: translateX(-12px);
  }

  .wj-scheduler-timed-axis-dst-indicator:hover::after,
  .wj-scheduler-timed-axis-dst-indicator:focus-visible::after {
    display: block;
  }

  .wj-scheduler-timed-vertical-row-headers,
  .wj-scheduler-timed-horizontal-row-headers {
    display: grid;
  }

  .wj-scheduler-timed-section {
    min-width: 180px;
    background: #fff;
  }

  .wj-scheduler-timed-section-body {
    position: relative;
    overflow: hidden;
    background: #fff;
  }

  .wj-scheduler-timed-section-body-vertical {
    display: grid;
  }

  .wj-scheduler-timed-section-body-horizontal {
    display: grid;
  }

  .wj-scheduler-cell {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;

    &.wj-scheduler-active-target {
      background: #007cbe;
      outline: none;

      .wj-scheduler-cell-label {
        color: #fff;
      }
    }
  }

  .wj-scheduler-cell-nonworking {
    background: var(--wj-scheduler-cell-nonworking-background, var(--wj-scheduler-cell-nonworking-background-color));
    border-right-color: #d1d5db;
    border-bottom-color: #d1d5db;
    color: #64748b;
  }

  .wj-scheduler-cell-nonworking .wj-scheduler-cell-label {
    color: #475569;
    font-weight: 600;
  }

  .wj-scheduler-timed-cell-vertical.wj-scheduler-timed-cell-sub-slot {
    border-bottom: 1px dotted #e5e7eb;
  }

  .wj-scheduler-timed-cell-horizontal.wj-scheduler-timed-cell-sub-slot {
    border-right: 1px dotted #e5e7eb;
  }

  .wj-scheduler-timed-cell-sub-slot.wj-scheduler-cell-nonworking {
    border-right-color: #d1d5db;
    border-bottom-color: #d1d5db;
  }

  .wj-scheduler-cell-label {
    padding: 8px;
    color: #64748b;
    font-size: 13px;
  }

  .wj-scheduler-timed-cell-vertical .wj-scheduler-cell-label {
    display: none;
  }

  .wj-scheduler-timed-items-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .wj-scheduler-item {
    box-sizing: border-box;
    margin: 0;
    padding: 4px 4px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 4px;
    background: #bfdcff;
    color: #000;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
    @include mixins.wjTransform();

    [data-part="scheduler-item-subject"],
    [data-part="scheduler-item-resources"],
    [data-part="scheduler-item-time"] {
      display: -webkit-box;
      overflow: hidden;
      text-overflow: ellipsis;
      overflow-wrap: anywhere;
      white-space: normal;
      -webkit-box-orient: vertical;
      margin-bottom: 2px;
    }

    [data-part="scheduler-item-subject"] {
      -webkit-line-clamp: 4;
      min-height: 18px;
    }

    [data-part="scheduler-item-resources"],
    [data-part="scheduler-item-time"] {
      font-size: 12px;
      font-weight: 400;
      -webkit-line-clamp: 2;
    }

    [data-part="scheduler-item-time"] {
      font-size: 12px;
      font-weight: 400;
      -webkit-line-clamp: 2;
      margin-bottom: 0;
    }

    &:hover:not(.wj-scheduler-item-moving):not(.wj-scheduler-item-resizing):not(.wj-scheduler-item-preview) {
      opacity: 0.8;
      box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.2);
    }

    &.wj-scheduler-active-target {
      z-index: 4;
      border-color: #000;
    }
  }

  .wj-scheduler-item.wj-scheduler-summary-item {
    padding-block: 0;
    line-height: 24px;

    [data-part="scheduler-item-subject"] {
      display: block;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  .wj-scheduler-item-moving {
    z-index: 5;
    opacity: 0.35;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
    cursor: grabbing;
  }

  .wj-scheduler-item-resizing {
    opacity: 0.35;
  }

  .wj-scheduler-item.wj-scheduler-item-preview {
    position: absolute;
    z-index: 6;
    border: 2px dashed #111827;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    transition: none;
  }

  .wj-scheduler-surface-moving,
  .wj-scheduler-surface-moving * {
    cursor: grabbing;
  }

  .wj-scheduler-surface-resizing-vertical,
  .wj-scheduler-surface-resizing-vertical * {
    cursor: ns-resize;
  }

  .wj-scheduler-surface-resizing-horizontal,
  .wj-scheduler-surface-resizing-horizontal * {
    cursor: ew-resize;
  }

  .wj-scheduler-timed-item-vertical,
  .wj-scheduler-timed-item-horizontal {
    position: absolute;
    z-index: 2;
    margin: 0;
    box-shadow: none;
    pointer-events: auto;

    .wj-scheduler-item-resize-handle {
      position: absolute;
      z-index: 3;
      display: flex;
      box-sizing: border-box;
      opacity: 0;
    }

    .wj-scheduler-item-resize-bar {
      display: block;
      box-sizing: border-box;
      pointer-events: none;
    }

    &:hover .wj-scheduler-item-resize-handle {
      opacity: 0.9;
    }
  }

  .wj-scheduler-timed-item-vertical {
    .wj-scheduler-item-resize-handle {
      right: 0;
      left: 0;
      height: 6px;
      justify-content: center;
      cursor: ns-resize;
    }

    .wj-scheduler-item-resize-start {
      top: 0;
    }

    .wj-scheduler-item-resize-end {
      bottom: 0;
    }

    .wj-scheduler-item-resize-bar {
      width: 60%;
      height: 100%;
    }

    .wj-scheduler-item-resize-start .wj-scheduler-item-resize-bar {
      border-top: 2px solid #fff;
    }

    .wj-scheduler-item-resize-end .wj-scheduler-item-resize-bar {
      border-bottom: 2px solid #fff;
    }
  }

  .wj-scheduler-timed-item-horizontal {
    padding: 2px 4px;

    .wj-scheduler-item-resize-handle {
      top: 0;
      bottom: 0;
      width: 6px;
      align-items: center;
      cursor: ew-resize;
    }

    .wj-scheduler-item-resize-start {
      left: 0;
    }

    .wj-scheduler-item-resize-end {
      right: 0;
    }

    .wj-scheduler-item-resize-bar {
      width: 100%;
      height: 60%;
    }

    .wj-scheduler-item-resize-start .wj-scheduler-item-resize-bar {
      border-left: 2px solid #fff;
    }

    .wj-scheduler-item-resize-end .wj-scheduler-item-resize-bar {
      border-right: 2px solid #fff;
    }
  }

  .wj-scheduler-surface-resizing-vertical,
  .wj-scheduler-surface-resizing-horizontal {
    .wj-scheduler-item-preview .wj-scheduler-item-resize-handle {
      opacity: 0.9;
    }
  }

  .wj-scheduler-surface-moving .wj-scheduler-item-resize-handle {
    display: none;
  }

  .wj-scheduler-timed-horizontal-hour-header {
    display: grid;
    background: #fff;
    padding: 0;
  }

  .wj-scheduler-timed-horizontal-hour-header-label {
    align-self: stretch;
    justify-content: flex-start;
    height: auto;
    min-height: 0;
    background: #f8fafc;
    padding-left: 5px;
  }
}

// Keep the scheduler root presentable even when the host element class is not
// available to the selector, for example in partial host templates or wrapper demos.
.wj-scheduler-header {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  align-items: center;
  min-height: 48px;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  user-select: none;
}

.wj-scheduler-header-left,
.wj-scheduler-header-right,
.wj-scheduler-view-menu-container,
.wj-scheduler-view-menu {
  display: flex;
  align-items: center;
  min-width: 0;
}

.wj-scheduler-header-left {
  gap: 10px;
  overflow: hidden;
}

.wj-scheduler-header-right {
  gap: 14px;
  justify-content: flex-end;
  overflow: hidden;
}

.wj-scheduler-date-range {
  flex: 0 1 auto;
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 0 16px 0 8px;
  overflow: hidden;
  color: #0f172a;
  cursor: pointer;
  font-weight: 600;
  line-height: 48px;
  text-overflow: ellipsis;
  user-select: none;
  white-space: nowrap;
}

.wj-scheduler-date-range-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wj-scheduler-date-range::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  width: 7px;
  height: 7px;
  border-right: 1px solid #64748b;
  border-bottom: 1px solid #64748b;
  transform: translateY(-65%) rotate(45deg);
}

.wj-scheduler-date-range-hidden {
  display: none;
}

.wj-scheduler-date-range:focus-within {
  outline: 2px solid #000;
  outline-offset: -2px;
}

.wj-scheduler-date-range-picker-host {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
}

.wj-scheduler-date-range-picker-host .wj-input-group {
  width: 100%;
  height: 100%;
}

.wj-scheduler-date-range-picker-host input {
  cursor: pointer;
}

.wj-scheduler-date-range-dropdown {
  border: none;
  border-radius: 6px;
  font-size: 14px;
  .wj-inputdate-dropdown-container {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    .wj-calendar-outer {
      border: none;
      border-radius: 0;
      .wj-calendar-header .wj-btn-group .wj-btn {
        padding: 0;
        &[wj-part="btn-today"] > span {
          top: 0px;
        }
      }
    }
  }
}

.wj-scheduler-view-menu-container {
  flex: 0 1 auto;
  max-width: 100%;
  overflow: hidden;
}

.wj-scheduler-view-menu {
  flex: 1 1 auto;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.wj-scheduler-view-menu::-webkit-scrollbar {
  display: none;
}

.wj-scheduler-event-editor {
  width: min(500px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid #d7dce3;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  font-family: Arial, sans-serif;
  font-size: 14px;

  .wj-scheduler-event-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
  }

  .wj-scheduler-event-editor-title {
    font-size: 16px;
    font-weight: 600;
  }

  .wj-scheduler-event-editor-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 2px;
    background: transparent;
    color: #667085;
    font-family: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    @include mixins.wjTransform();

    & > span {
      display: block;
      line-height: 1;
      text-align: center;
    }
    &:focus {
      border-color: #000;
    }
  }

  .wj-scheduler-event-editor-close:hover {
    background: #f2f4f7;
  }

  .wj-scheduler-event-editor-body {
    padding: 16px;
  }

  .wj-scheduler-event-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
  }

  .wj-scheduler-event-editor-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 6px;
  }

  .wj-scheduler-event-editor-field-full,
  .wj-scheduler-event-editor-options {
    grid-column: 1 / -1;
  }

  .wj-scheduler-event-editor-label {
    color: #344054;
    font-size: 13px;
    font-weight: 500;
  }

  .wj-scheduler-event-editor-input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid #cfd6df;
    border-radius: 4px;
    background: #fff;
    color: #101828;
    font: inherit;
    letter-spacing: 0;
    @include mixins.wjTransform();
  }

  .wj-scheduler-event-editor-input:focus-within {
    border-color: #000;
  }

  .wj-scheduler-event-editor-date-input {
    width: 100%;
    min-width: 0;
    @include mixins.wjTransform();
    &:focus-within {
      border-color: #000;
    }
  }

  .wj-scheduler-event-editor-input.wj-state-invalid,
  .wj-scheduler-event-editor-date-input.wj-state-invalid {
    border-color: #d92d20;
    outline: 1px solid rgba(217, 45, 32, 0.2);
  }

  .wj-scheduler-event-editor-error {
    min-height: 18px;
    color: #d92d20;
    font-size: 12px;
    line-height: 18px;
  }

  .wj-scheduler-event-editor-description {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
  }

  textarea.wj-scheduler-event-editor-input {
    min-height: 76px;
    resize: none;
  }

  .wj-scheduler-event-editor-options {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 28px;
  }

  .wj-scheduler-event-editor-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
  }

  .wj-scheduler-event-editor-option input {
    width: 16px;
    height: 16px;
    margin: 0;
  }

  .wj-scheduler-event-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
  }

  .wj-scheduler-event-editor-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 8px;
  }

  .wj-scheduler-event-editor-button {
    min-width: 68px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #cfd6df;
    border-radius: 4px;
    background: transparent;
    color: #243047;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0;
    @include mixins.wjTransform();

    &:hover {
      box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.2);
    }
    &:focus {
      outline: 2px solid #000;
      outline-offset: -2px;
    }
  }

  .wj-scheduler-event-editor-button-primary {
    border-color: #40d351;
    background: transparent;
    color: #40d351;
    &:hover {
      background: #40d351;
      color: #fff;
    }
  }

  .wj-scheduler-event-editor-button-danger {
    border-color: #d92d20;
    background: transparent;
    color: #d92d20;
    margin-right: auto;
    &:hover {
      background: #d92d20;
      color: #fff;
    }
  }

  .wj-scheduler-event-editor-button:disabled {
    cursor: default;
    opacity: 0.55;
  }

  .wj-multi-autocomplete {
    .wj-token {
      margin: 2px;
      background: transparent;
      &.wj-token-active {
        background: #eee;
      }
    }
    .wj-input-group .wj-form-control {
      margin-top: 2px;
      padding: 4px;
    }
  }
}

.wj-scheduler-context-menu {
  min-width: 150px;
  border-radius: 8px;
  font-size: 14px;
  border: none;

  .wj-listbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    .wj-scheduler-context-menu-icon {
      width: 20px;
      text-align: center;
      img {
        width: 100%;
        height: 100%;
        vertical-align: middle;
      }
    }

    .wj-glyph-plus,
    .wj-glyph-minus {
      margin-top: 10px;
    }

    .wj-glyph-calendar {
      margin-top: -2px;
    }
  }
}

@media (max-width: 560px) {
  .wj-scheduler-event-editor {
    .wj-scheduler-event-editor-grid {
      grid-template-columns: minmax(0, 1fr);
    }

    .wj-scheduler-event-editor-field-full,
    .wj-scheduler-event-editor-options {
      grid-column: auto;
    }
  }
}
