.custom-home-calendar .shadow-calendar__inner {
  flex-direction: row !important;
  flex-wrap: wrap;
  border: 0 solid #eee;
  border-radius: 0;
  margin: 0 -10px;
  padding: 0;
}

.custom-home-calendar .shadow-calendar__table-wrapper {
  background-color: transparent;
  border-radius: var(--border-radius);
  border: 2px dashed var(--main-border-color);
  padding: 20px;
  max-width: 100%;
  margin: 0 10px;
}

.custom-home-calendar .shadow-calendar__table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-home-calendar button.shadow-calendar__container__action {
  background: var(--main-bg-color);
  color: var(--desc-color);
  border-radius: var(--border-radius);
  padding: 4px 10px;
  font-family: var(--font-medium);
  transition: all 0.3s linear;
}

.custom-home-calendar button.shadow-calendar__container__action:hover {
  color: var(--main-color);
}

.shadow-calendar__table-head__current-date {
  font-size: 18px;
  color: var(--main-color);
  font-family: var(--font-medium);
  text-transform: capitalize;
}

.custom-home-calendar .shadow-calendar__table {
  margin-top: 20px;
}

.custom-home-calendar .shadow-calendar__day_events_container {
  max-width: 100% !important;
  overflow-y: hidden;
  max-height: 100%;
  flex: 1;
  margin: 0 10px;
  width: calc(100% - 430px);
}

.custom-home-calendar .shadow-calendar__week-day.shadow-calendar__week-day--has-events.shadow-calendar__week-day.is-visible-events .shadow-calendar__week-day__num {
  background-color: var(--main-color) !important;
  color: white !important;
}

.custom-home-calendar .shadow-calendar__week-day.shadow-calendar__week-day--is-current .shadow-calendar__week-day__num {
  background-color: var(--second-color);
}

.custom-home-calendar .shadow-calendar__week-day__total_events {
  background-color: var(--main-color);
}

.custom-home-calendar .shadow-calendar__week-day__num {
  height: 42px;
  width: 42px;
  background: white !important;
  color: var(--main-text-color) !important;
  font-size: 16px;
}

.custom-home-calendar .shadow-calendar__week-day.shadow-calendar__week-day--has-events .shadow-calendar__week-day__num {
  background: #efeded !important;
}

.custom-home-calendar .shadow-calendar__week-day__event-item__title {
  margin: 0;
  font-size: var(--sub-title-size);
  line-height: 26px;
  color: var(--main-text-color);
  font-family: var(--font-medium);
  font-weight: normal;
  flex: 1;
}

.custom-home-calendar .shadow-calendar__week-day__event-item {
  border-radius: var(--border-radius);
  position: relative;
}

.custom-home-calendar .shadow-calendar__week-day__event-item:before,
.custom-home-calendar .shadow-calendar__week-day__event-item:after {
  position: absolute;
  content: "";
  bottom: 0;
  height: 100%;
}

.custom-home-calendar .shadow-calendar__week-day__event-item:before {
  right: 0;
  border: 2px solid var(--main-border-color);
  width: 36%;
  border-left: 0;
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

.custom-home-calendar .shadow-calendar__week-day__event-item:after {
  left: 0;
  border: 2px dashed var(--main-border-color);
  width: 64%;
  border-right: 0;
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
}

.custom-home-calendar .shadow-calendar__week-day__event-item:not(:last-child) {
  margin-bottom: 10px;
}

.custom-home-calendar .shadow-calendar__week-day__event-item__details {
  display: flex;
  align-items: center;
  flex: 1;
}

.event--body {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: var(--grid-gutter) var(--grid-gutter) var(--grid-gutter) 0;
}

.event--head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.custom-home-calendar .shadow-calendar--date {
  width: 90px;
  color: var(--main-text-color);
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 20px 10px;
  height: 100%;
  margin-right: 10px;
  position: relative;
  justify-content: center;
}

.shadow-calendar--date:before {
  position: absolute;
  content: "";
  border: 1px dashed var(--main-border-color);
  height: 70%;
  top: 15%;
  right: 0;
}

.custom-home-calendar .shadow-calendar--date .day {
  font-size: 25px;
  line-height: 23px;
  font-family: var(--font-medium);
  color: var(--main-color);
}

.custom-home-calendar .shadow-calendar--date .month {
  font-size: 14px;
  line-height: 14px;
  margin-top: 5px;
  color: var(--desc-color);
  font-family: var(--font-medium);
  text-transform: capitalize;
}

.custom-home-calendar .shadow-calendar--date.shadow-calendar--date--current .day,
.custom-home-calendar .shadow-calendar--date.shadow-calendar--date--current .month {
  color: var(--main-color);
}

.shadow-calendar__head__cell, .shadow-calendar__head__row, .shadow-calendar__week, .shadow-calendar__week-day {
  border: 0;
  font-size: 11px;
  padding: 0;
  color: var(--desc-color) !important;
}

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

.shadow-calendar__events_list.style-scroll-y {
  max-height: 430px;
  padding-top: 6px;
}

.style-scroll-y {
  overflow-y: auto;
  padding-right: 5px;
}
.style-scroll-y::-webkit-scrollbar {
  width: 6px;
}
.style-scroll-y::-webkit-scrollbar-track {
  background: var(--main-bg-color);
  border-radius: var(--border-radius-large);
}
.style-scroll-y::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
  border-radius: var(--border-radius-large);
}

.event--info {
  margin-top: 5px;
}
.event--info .event--item {
  color: var(--desc-color);
  font-size: 15px;
  line-height: 25px;
  font-family: var(--font-medium);
  display: flex;
  align-items: center;
}
.event--info .event--item i {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
}
.event--info .event--item:not(:last-child) {
  margin-bottom: 5px;
}
.event--info .event--item.event--user {
  color: var(--main-color);
}

@media (max-width: 991.98px) {
  .custom-home-calendar .shadow-calendar__table-wrapper {
    padding: var(--grid-gutter);
    width: 390px;
  }
  .custom-home-calendar .shadow-calendar__day_events_container {
    width: calc(100% - 390px);
  }
  .custom-home-calendar .shadow-calendar__week-day__num {
    height: 38px;
    width: 38px;
    font-size: 15px;
  }
  .custom-home-calendar .shadow-calendar--date {
    width: 85px;
  }
  .custom-home-calendar .shadow-calendar--date .day {
    font-size: 24px;
    line-height: 22px;
  }
}
@media (max-width: 767.98px) {
  .custom-home-calendar .shadow-calendar--date {
    width: 70px;
  }
  .custom-home-calendar .shadow-calendar--date .day {
    font-size: 23px;
    line-height: 21px;
  }
  .shadow-calendar__head__cell, .shadow-calendar__head__row, .shadow-calendar__week, .shadow-calendar__week-day {
    font-size: 15px;
  }
}
@media (max-width: 730.98px) {
  .custom-home-calendar .shadow-calendar__inner {
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
  }
  .custom-home-calendar .shadow-calendar__table-wrapper {
    width: 520px;
    padding: var(--grid-gutter);
  }
  .custom-home-calendar .shadow-calendar__day_events_container {
    width: calc(100% - 20px);
    margin-top: 15px;
  }
  .shadow-calendar__events_list.style-scroll-y {
    padding-right: 10px;
    padding-top: 0;
  }
}
@media (max-width: 575.98px) {
  .custom-home-calendar .shadow-calendar__table-wrapper {
    width: 450px;
  }
  .custom-home-calendar .shadow-calendar--date .day {
    font-size: 19px;
    line-height: 17px;
  }
}
@media (max-width: 475.98px) {
  .custom-home-calendar .shadow-calendar__table-wrapper {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
  }
  .custom-home-calendar .shadow-calendar__table-head {
    flex-wrap: wrap;
  }
  .shadow-calendar__head__cell, .shadow-calendar__head__row, .shadow-calendar__week, .shadow-calendar__week-day {
    font-size: 14px;
    padding: 3px;
  }
  .custom-home-calendar .shadow-calendar__week-day__num {
    height: 34px;
    width: 34px;
    font-size: 14px;
  }
  .shadow-calendar__events_list.style-scroll-y {
    padding-right: 0;
  }
}
