.fc-col-header {
  background-color: #F4F6F9;
}
.fc-theme-standard td, .fc-theme-standard th, .fc-theme-standard .fc-scrollgrid {
  border: none;
}
.fc-theme-standard th {
  padding-top: 5px;
  padding-bottom: 5px;
}
.fc-daygrid-day-number {
  width: 100% !important;
  text-align: center !important;
}
.fc .fc-daygrid-day-top {
  display: flex;
  justify-content: center;
  align-items: center;
}
.fc .fc-daygrid-day {
  height: 20px !important; /* Установите желаемую высоту */
}
.fc .fc-daygrid-day:hover {
  cursor: pointer;
  background-color: #0ab39c;
  border-color: #0ab39c;
  color: white;
  border-radius: 5px;
}
.fc .fc-daygrid-day.selected-date {
  background-color: #0ab39c;
  border-color: #0ab39c;
  color: white;
  border-radius: 5px;
}
.fc .fc-daygrid-day.selected-date:hover {
  background-color: #09a088; /* Немного темнее при наведении на активную дату */
}
.fc .fc-daygrid-day.selected-date .fc-daygrid-day-number {
  color: white;
}

/* Уменьшаем область событий до минимума */
.fc .fc-daygrid-day-events {
  min-height: 0 !important;
  /*height: 5px !important;*/
  margin: 0 !important;
}
/* Убираем дополнительные отступы */
.fc .fc-daygrid-body-balanced .fc-daygrid-day-events {
  position: relative !important;
  padding: 0 !important;
}
.fc .fc-toolbar.fc-header-toolbar {
  margin-bottom: .5em;
}
.fc .fc-button-primary {
  background-color: #F4F6F9;
  border-color:  #F4F6F9;
  color: #878a99;
}
.fc .fc-button {
  padding: 0.2em 0.35em;
}
.fc .fc-button:focus {
  outline: none !important;
  box-shadow: none !important;
}
.fc .fc-button:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.fc .fc-button:hover {
  background-color: #0ab39c;
  border-color:  #0ab39c;
  color: white;
}
.fc-toolbar-title {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
}
.fc .fc-daygrid-day.fc-day-today {
  background-color: #0ab39c;
  color: white;
  border-radius: 5px;
}
/* Стили для контейнера дня */
.fc .fc-daygrid-day-top {
  flex-direction: row !important;
  justify-content: center;
  padding-top: 5px;
}
/* Стили для числа */
.fc .fc-daygrid-day-number {
  position: relative;
  padding-right: 1px !important; /* Оставляем место для значка */
}
/* Стили для значка с количеством событий */
.event-count-badge {
  position: absolute;
  top: 0;
  right: 8px;
  background-color: #0ab39c;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 1px solid white;
}

.events-list {
  list-style: circle;
  list-style-position: inside;
  padding-left: 0;
}
.events-list li {
  margin-bottom: 8px;
  line-height: 1.4;
}
.case-number {
  color: #0ab39c;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .fc-toolbar-title {
    font-size: 1rem !important;
  }
}

.fc {
  /*// Стили для праздничных дней*/
  .holiday-cell {
    background-color: #ffecec;
    color: red;
    font-weight: bold;
  }

  .holiday-event {
    background-color: #ffecec;
    border: none;
    color: #e74c3c;
    padding: 2px 4px;

    .holiday-title {
      font-weight: 500;
    }

    .holiday-description {
      font-size: 0.8em;
      color: #666;
    }
  }

  .holiday-transfer-event {
    background-color: #f7f9fa;
    border: 1px dashed #bdc3c7;
    color: #7f8c8d;

    .holiday-title {
      font-style: italic;
    }
  }

  /*// Существующие стили для дедлайнов*/
  .deadline-event {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
  }
}

/*// Стили для списка событий дня*/
#day-events-list {
  .holiday {
    color: #e74c3c;
    margin: 4px 0;
    padding: 4px;
    background-color: #ffecec;
    border-radius: 4px;
  }

  .holiday-transfer {
    color: #7f8c8d;
    margin: 4px 0;
    padding: 4px;
    background-color: #f7f9fa;
    border: 1px dashed #bdc3c7;
    border-radius: 4px;
  }
}

/*!* Обновляем стили для выходных дней *!*/
.weekend-cell:not(.holiday-cell[data-working-day="true"]) {
  color: #e74c3c !important; /* Красный цвет текста как у праздников */
}

/*!* Выходной день при наведении *!*/
.weekend-cell:not(.holiday-cell[data-working-day="true"]):hover {
  background-color: #0ab39c !important; /* Сохраняем ваш цвет при наведении */
  color: white !important;
}

/* Рабочий праздничный день */
.holiday-cell.working-day {
  background-color: transparent !important;
  color: black !important;
  font-weight: normal !important;
}

/* Сегодняшний день, если он выходной */
.fc .fc-daygrid-day.fc-day-today.weekend-cell {
  background-color: #0ab39c !important;
  color: white !important;
}

/* Убедимся, что при наведении на рабочий праздничный день
   используются стандартные эффекты наведения */
.holiday-cell.working-day:hover {
  background-color: #0ab39c !important;
  color: white !important;
}

/* Для выбранного рабочего праздничного дня */
.holiday-cell.working-day.selected-date {
  background-color: #0ab39c !important;
  color: white !important;
}
