.mhCalendarShiftplan {
  width: 100%;
  overflow: auto;
  font-family: system-ui;
  box-sizing: border-box;
}

.mhCalendarShiftplan--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mhCalendarShiftplan__emptyMessage {
  color: #9ca3af;
  font-size: 14px;
  text-align: center;
}

.mhCalendarShiftplan__grid {
  display: grid;
  grid-template-columns: 160px repeat(var(--shiftplan-cols, 7), 1fr);
  min-width: 100%;
}

/* Header row */
.mhCalendarShiftplan__headerRow {
  display: contents;
}

.mhCalendarShiftplan__cornerCell {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
  border-bottom: 2px solid var(--bordersColor);
  border-right: 1px solid var(--bordersColor);
}

.mhCalendarShiftplan__dateCell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-bottom: 2px solid var(--bordersColor);
  border-right: 1px solid var(--bordersColor);
  font-size: 13px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.mhCalendarShiftplan__dateCell:last-child {
  border-right: none;
}

.mhCalendarShiftplan__dateCell--weekend {
  background: #f9fafb;
}

.mhCalendarShiftplan__dateCell--today {
  background: var(--headerTodayBackgroundColor, #eff6ff);
}

.mhCalendarShiftplan__dateDayName {
  font-size: 11px;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.mhCalendarShiftplan__dateNumber {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.mhCalendarShiftplan__dateCell--today .mhCalendarShiftplan__dateNumber {
  color: var(--currentTimeColor);
}

/* Resource rows */
.mhCalendarShiftplan__row {
  display: contents;
}

.mhCalendarShiftplan__resourceLabel {
  position: sticky;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid var(--bordersColor);
  border-right: 1px solid var(--bordersColor);
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  min-height: 48px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cells */
.mhCalendarShiftplan__cell {
  border-bottom: 1px solid var(--bordersColor);
  border-right: 1px solid var(--bordersColor);
  padding: 4px;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 2px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.mhCalendarShiftplan__cell:last-child {
  border-right: none;
}

.mhCalendarShiftplan__cell--weekend {
  background: #fafafa;
}

.mhCalendarShiftplan__cell--today {
  background: rgba(59, 130, 246, 0.04);
}

.mhCalendarShiftplan__cell:hover {
  background: #f3f4f6;
}

.mhCalendarShiftplan__cell--dragOver {
  background: rgba(59, 130, 246, 0.12);
  outline: 2px dashed #3b82f6;
  outline-offset: -2px;
}

/* Event inside cell */
.mhCalendarShiftplan__cell .mhCalendarEvent {
  width: 100%;
}

/* "+N more" button */
.mhCalendarShiftplan__moreBtn {
  background: none;
  border: none;
  padding: 2px 4px;
  font-size: 11px;
  font-weight: 500;
  color: #3b82f6;
  cursor: pointer;
  text-align: left;
  border-radius: 4px;
  transition: background-color 0.15s;
}

.mhCalendarShiftplan__moreBtn:hover {
  background: rgba(59, 130, 246, 0.08);
}

/* More popup (rendered inside modal) */
.mhCalendarShiftplan__morePopup {
  min-width: 200px;
  max-width: 300px;
}

.mhCalendarShiftplan__morePopupHeader {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--bordersColor);
}

.mhCalendarShiftplan__morePopupList {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
