.bem-calendar {
  --bem-calendar-height: 560px;
  width: 100%;
  box-sizing: border-box;
}
.bem-calendar * {
  box-sizing: border-box;
}

.bem-calendar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}
.bem-calendar-controls select {
  max-width: 200px;
}

.bem-calendar-title {
  font-weight: 600;
  margin-left: auto;
}

.bem-calendar-stage {
  width: 100%;
  min-height: 160px;
}

.bem-calendar-loading,
.bem-calendar-error,
.bem-calendar-empty {
  padding: 16px;
  border: 1px solid #ccd0d4;
  background: #fff;
}

.bem-calendar-resource-timeline {
  --bem-calendar-resource-width: 220px;
  border: 1px solid #ccd0d4;
  background: #fff;
  width: 100%;
  overflow: hidden;
}

.bem-calendar-timeline-scroll {
  width: 100%;
  overflow-x: hidden;
}

.bem-calendar-is-year .bem-calendar-timeline-scroll {
  overflow-x: auto;
}

.bem-calendar-timeline-grid {
  display: grid;
  width: 100%;
}

.bem-calendar-is-year .bem-calendar-timeline-grid {
  width: var(--bem-calendar-timeline-width);
  min-width: var(--bem-calendar-timeline-width);
}

.bem-calendar-timeline-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid #ccd0d4;
  background: #f6f7f7;
}

.bem-calendar-resource-header {
  position: sticky;
  left: 0;
  z-index: 6;
  min-height: 40px;
  padding: 10px;
  font-weight: 600;
  border-right: 1px solid #ccd0d4;
  background: #f6f7f7;
}

.bem-calendar-time-header {
  min-height: 40px;
  padding: 6px 4px;
  border-right: 1px solid #dcdcde;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bem-calendar-holiday-header {
  background: #fff5d6;
}

.bem-calendar-timeline-body {
  max-height: var(--bem-calendar-height);
  overflow-y: auto;
  overflow-x: hidden;
}

.bem-calendar-is-year .bem-calendar-timeline-body {
  width: var(--bem-calendar-timeline-width);
  min-width: var(--bem-calendar-timeline-width);
  overflow-x: visible;
}

.bem-calendar-resource-row {
  min-height: 48px;
  border-bottom: 1px solid #dcdcde;
}

.bem-calendar-resource-name {
  position: sticky;
  left: 0;
  z-index: 4;
  padding: 8px 10px;
  border-right: 1px solid #ccd0d4;
  background: #fff;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bem-calendar-cell {
  min-height: 48px;
  padding: 2px;
  border: 0;
  border-right: 1px solid #f0f0f1;
  background: #fff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bem-calendar-cell:hover,
.bem-calendar-classic-day:hover {
  background: #f0f6fc;
}

.bem-calendar-cell-holiday {
  background: #fffaf0;
}

@media (max-width: 782px) {
  .bem-calendar-resource-timeline {
    --bem-calendar-resource-width: 150px;
  }
}
.bem-calendar-event {
  display: block;
  margin: 1px 0;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #dbeafe;
  border: 1px solid #93c5fd;
}

.bem-calendar-event-vacation {
  background: #dcfce7;
  border-color: #86efac;
}

.bem-calendar-event-sickness {
  background: #fee2e2;
  border-color: #fca5a5;
}

.bem-calendar-event-status-open {
  opacity: 0.75;
}

.bem-calendar-classic {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.bem-calendar-classic-day {
  min-height: 110px;
  padding: 8px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  border-radius: 0;
}
.bem-calendar-classic-day .bem-calendar-classic-day-core {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
}
.bem-calendar-classic-day:hover {
  background: #f0f6fc;
}

.bem-calendar-classic-day-holiday {
  background: #fffaf0;
}

.bem-calendar-holiday-label {
  display: block;
  margin: 4px 0;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 11px;
  background: #fff5d6;
  border: 1px solid #facc15;
}

@media (max-width: 782px) {
  .bem-calendar-classic {
    grid-template-columns: 1fr;
  }
}
button.bem-calendar-cell {
  border-radius: 0 !important;
}

/* Day-state coloring. Override these classes in your theme/admin CSS if needed. */
.bem-calendar-time-weekend,
.bem-calendar-cell-weekend,
.bem-calendar-classic-day-weekend {
  background: #f8fafc;
}

.bem-calendar-time-today,
.bem-calendar-cell-today,
.bem-calendar-classic-day-today {
  background: rgba(1, 122, 134, 0.2);
}

.bem-calendar-time-saturday,
.bem-calendar-cell-saturday,
.bem-calendar-classic-day-saturday {
  background: #f6f8fb;
}

.bem-calendar-time-sunday,
.bem-calendar-cell-sunday,
.bem-calendar-classic-day-sunday {
  background: #f2f5f9;
}

.bem-calendar-holiday-header,
.bem-calendar-cell-holiday,
.bem-calendar-classic-day-holiday {
  background: #fff3cd;
}

.bem-calendar-cell-holiday:hover,
.bem-calendar-classic-day-holiday:hover {
  background: #ffe8a3;
}

.bem-calendar-holiday-label {
  background: #fde68a;
  border-color: #f59e0b;
}

.bem-calendar-year-month-header {
  border-bottom: 1px solid #ccd0d4;
  background: #eef2f7;
}

.bem-calendar-month-resource-spacer {
  position: sticky;
  left: 0;
  z-index: 7;
  min-height: 28px;
  border-right: 1px solid #ccd0d4;
  background: #eef2f7;
}

.bem-calendar-month-block {
  min-height: 28px;
  padding: 5px 8px;
  border-right: 1px solid #cbd5e1;
  background: #eef2f7;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bem-calendar-is-year .bem-calendar-time-header {
  min-height: 44px;
  line-height: 1.25;
}

.bem-calendar-period-title {
  padding: 8px 10px;
  border-bottom: 1px solid #ccd0d4;
  background: #f8fafc;
  font-weight: 600;
  font-size: 14px;
}

.bem-calendar-classic-year {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bem-calendar-classic-month-block {
  border: 1px solid #ccd0d4;
  background: #fff;
}

.bem-calendar-classic-month-title {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #ccd0d4;
  background: #f6f7f7;
  font-size: 14px;
}

.bem-calendar-classic-month-weekdays,
.bem-calendar-classic-month-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.bem-calendar-classic-month-weekdays span {
  padding: 5px 3px;
  border-bottom: 1px solid #dcdcde;
  border-right: 1px solid #f0f0f1;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  background: #f8fafc;
}

.bem-calendar-classic-day-spacer {
  min-height: 58px;
  border-right: 1px solid #f0f0f1;
  border-bottom: 1px solid #f0f0f1;
  background: #f8fafc;
}

.bem-calendar-classic-day-compact {
  min-height: 58px;
  padding: 4px;
  border-right: 1px solid #f0f0f1;
  border-bottom: 1px solid #f0f0f1;
  font-size: 11px;
}
.bem-calendar-classic-day-compact .bem-calendar-event,
.bem-calendar-classic-day-compact .bem-calendar-holiday-label {
  margin-top: 2px;
  padding: 1px 3px;
  font-size: 10px;
}

@media (max-width: 1200px) {
  .bem-calendar-classic-year {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 782px) {
  .bem-calendar-classic-year {
    grid-template-columns: 1fr;
  }
}
.bem-calendar-event-work-schedule {
  background: #ede9fe;
  border-color: #c4b5fd;
}

.bem-calendar-event-work-time {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

.bem-calendar-event-work-time-draft {
  opacity: 0.65;
}

.bem-calendar-event-work-time-submitted {
  background: #fef3c7;
  border-color: #fbbf24;
}

.bem-calendar-event-work-time-approved {
  background: #d1fae5;
  border-color: #6ee7b7;
}

.bem-calendar-event-work-time-rejected {
  background: #fee2e2;
  border-color: #fca5a5;
}

.bem-calendar-event-neutral {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

.js-element-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 20;
}
.js-element-preview-modal .element-preview-modal__box {
  background-color: #fff;
  width: 400px;
  min-width: 20%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
}
.js-element-preview-modal .element-preview-modal__box .element-preview-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
}
.js-element-preview-modal .element-preview-modal__box .bem-calendar-cell {
  width: 100%;
  pointer-events: none;
}

/*# sourceMappingURL=bem-calendar.css.map */
