.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;
  }
}
