:root {
  --cal-bg-header-color: var(--black);
  --cal-color: var(--dark-blue);
  --cal-day-color: var(--black);
  --cal-day-muted-color: #6c757d;

  --cal-event-color: #fff;
  --cal-event-border-color: #8FC0FF;
}

.calendar,
.calendar * {
  box-sizing: border-box;
}

.calendar {
  width: 100%;
  margin: 0 auto;
  color: var(--cal-color);
}

.calendar .header::after {
  position: absolute;
  content: '';
  bottom: -2px;
  right: 3%;
  height: 1px;
  width: 94%;
  background: linear-gradient(135deg, #7ebff4, #3f80b4, #0f5e92, #3f80b4, #7ebff4);
}

.calendar .header {
  width: 100%;
  display: flex;
  position: relative;
}

.calendar .header .navbar {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.calendar .header .navbar .button {
  width: calc(100%/7);
  aspect-ratio: 1;
  position: relative;
  cursor: pointer;
}

.calendar .header .navbar .button>* {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--cal-color);
}

.calendar .header .navbar .title {
  flex-grow: 1;
  height: 30px;
  position: relative;
}

.calendar .header .navbar .title >.heading {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--cal-color);
}

.calendar .header .navbar .title >.heading >.reset_date {
  font-size: 8px;
  color: var(--blue);
  cursor: pointer;
}

.calendar .app {
  width: 100%;
}

.calendar .app .week {
  width: 100%;
  display: flex;
  flex-direction: row;
}

.calendar .app .week .weekday {
  width: calc(100%/7);
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: lowercase;
  font-size: small;
}

.calendar .app .month {
  display: flex;
  flex-direction: row;
  width: 100%;
  flex-wrap: wrap;
}

.calendar .app .month .day.muted {
  color: var(--cal-day-muted-color);
  padding-bottom: 8px;
}

.calendar .app .month .day {
  width: calc(100%/7);
  aspect-ratio: 3/2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: small;
  color: var(--cal-day-color);
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-size: 13px;
  cursor: pointer;
}

.calendar .app .month .day .number {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
}

.calendar .app .month .day .dots {
  height: 8px;
  width: 50%;
  text-align: center;
  font-size: 10px;
  line-height: 8px;
  letter-spacing: 1px;
  overflow: hidden;
}

.calendar .app .month .day .dots >span:nth-child(n+5) {
  display: none;
}

.calendar .app .month .event {
  position: relative;
  color: var(--cal-event-color);
  font-weight: bold;
}

.calendar .app .month .today .number {
  background-color: var(--blue);
  border: 6px solid var(--blue);
  color: var(--white);
  box-sizing: content-box;
}

.calendar .app .month .today .number+.dots {
  margin-top: -4px;
  margin-bottom: 4px;
}

.calendar .app .events {
  width: 100%;
  overflow: hidden;
}

.calendar .app .events .empty_item_info {
  text-align: center;
  font-size: 12px;
  padding: 10px;
}

.calendar .app .events .empty_item_info > a {
  text-decoration: none;
  color: var(--blue);
}


.calendar .app .events .events_day {
  text-align: center;
  font-size: 13px;
  position: relative;
  margin-bottom: 5px;
  margin-top: 13px;
}

.calendar .app .events .events_day::after {
  position: absolute;
  content: '';
  bottom: -2px;
  right: 25%;
  height: 1px;
  width: 50%;
  background: linear-gradient(135deg, #7ebff4, #3f80b4, #0f5e92, #3f80b4, #7ebff4);
}

.calendar .app .events .item:nth-child(odd) .time {
  background: linear-gradient(135deg, #7ebff4, #3f80b4, #0f5e92);
}

.calendar .app .events .item:nth-child(even) .time {
  background: linear-gradient(135deg, #7ebff4, #3f80b4, #0f5e92);
}


.calendar .app .events .item {
  width: 100%;
  display: flex;
  flex-direction: row;
}

.calendar .app .events .item >div {
  border-bottom: 1px solid rgb(240 113 173 / 12%);
}

.calendar .app .events .item .time {
  width: calc(100%/6*1);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.calendar .app .events .item .time > span {
  font-size: 13px;
}

.calendar .app .events .item .time > span div:first-child
{
  margin-bottom: 0 !important;
}

.calendar .app .events .item .time > span,
.calendar .app .events .item .time > span div {
  color: var(--white);
}

.calendar .app .events .item .task {
  width: calc(100%/6*5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 5px 10px;
  font-size: 13px;
}

.calendar .app .events .item .task >p {
  margin: 5px 0;
  max-width: 100%;
  overflow: hidden;
  text-wrap: nowrap;
  text-overflow: ellipsis;
}

.calendar .app .events .item .task >p >a {
  text-decoration: none;
  color: var(--cal-color);
}

.calendar .app .events .item .task >a {
  text-decoration: none;
  color: var(--dark-blue);
  font-weight: 600;
  font-size: 10px;
}

.calendar .app .events .item .task >a .flag {
  height: 20px;
  margin-right: 4px;
  margin-top: -2px;
}

.calendar .app .events .item .task >.description {
  color: #CCC;
  font-size: 10px;
  margin-top: 3px;
}