:root {
  --fc-button-text-color: #262626;
}

.calendar table tbody td {
  font-size: unset;
  font-weight: unset;
}

.calendar td,
.calendar th {
  padding: 0px !important;
  border: 1px solid var(--fc-border-color) !important;
}

.calendar .fc-scrollgrid {
  border-bottom-width: 0px;
  border-collapse: collapse;
  border-right-width: 0px;
}

.calendar .fc-scrollgrid table {
  border-left-style: hidden;
  border-right-style: hidden;
  border-top-style: hidden;
  border-bottom-style: hidden;
}

.calendar .fc-toolbar-title {
  font-weight: bold;
}

.calendar .fc-list-day-cushion,
.calendar .fc-list-table td {
  padding: 8px 14px !important;
}

.calendar a {
  color: unset !important;
}

.calendar .fc a {
  font-size: 12px;
  font-weight: 400;
  transition: all 0.3s;
}

.calendar .fc a:hover {
  color: var(--color-01);
}

.calendar .fc-event-title a {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.calendar .fc-daygrid-day.fc-day-today,
/*.calendar .fc-list-day.fc-day-today + .fc-event,*/
.calendar .fc-listWeek-view .fc-list-event:hover td {
  background-color: rgba(241, 241, 241, 0.5);
}

.calendar .fc-dayGridMonth-view .fc-day-past .fc-daygrid-day-number,
.calendar .fc-dayGridMonth-view .fc-day-past .fc-event-past,
.calendar .fc-list-event.fc-event-past,
.calendar .fc-listWeek-view .fc-day-past

/*,
.calendar .fc-listWeek-view .fc-day-past + .fc-event*/
  {
  opacity: 0.35;
}

.calendar .fc-list-day:not(.fc-day-today) .fc-list-day-text,
.calendar .fc-list-day:not(.fc-day-today) .fc-list-day-side-text {
  font-weight: 400;
}

.calendar .fc-dayGridMonth-view .fc-event:not(.fc-event-past),
.calendar .fc-listWeek-view .fc-event:not(.fc-event-past) {
  cursor: pointer;
}

.calendar .fc-toolbar .fc-toolbar-title {
  font-size: 24px;
  line-height: 1;
  margin: auto;
  text-align: center;
  text-wrap: nowrap;
}

.calendar .fc-toolbar .fc-toolbar-title:first-letter {
  text-transform: uppercase;
}

.calendar .fc-toolbar .fc-button {
  font-size: 16px;
  font-weight: 400;
  background: none;
  border: none;
  color: inherit;
  line-height: 1;
  padding: 10px 10px;
  transition: all 0.2s;
}

.calendar .fc-toolbar .fc-button:focus {
  outline: unset;
  box-shadow: unset;
}

.calendar .fc-toolbar .fc-button:disabled {
  opacity: 0.2;
}

.calendar .fc-button-active,
.calendar .fc-button:not(:disabled):hover {
  background-color: hsla(0, 0%, 82%, .3) !important;
  z-index: 1;
}


.calendar .fc-toolbar .fc-prev-button,
.calendar .fc-toolbar .fc-next-button,
.calendar .fc-toolbar .fc-today-button {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  padding: 5px 5px;
}

.calendar .fc-toolbar .fc-today-button {
  font-size: 22px;
  padding: 5px 14px;
}

.calendar .fc-toolbar>div:nth-child(2)>div {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

.calendar .fc-col-header {
  text-transform: lowercase;
}

.calendar .fc-dayGridMonth-view .fc-daygrid-dot-event {
  transition: all 0.2s;
}

.calendar .fc-daygrid-dot-event.fc-event-mirror,
.calendar .fc-daygrid-dot-event:hover,
.calendar .fc-dayGridMonth-view .fc-daygrid-dot-event:hover,
.calendar .fc-popover-body .fc-daygrid-dot-event:hover {
  /*background: #f4f4f4 !important;*/
  background: unset;
}

.calendar .fc-dayGridMonth-view .fc-daygrid-day-events .fc-daygrid-event-harness:not(:first-child) {
  margin-top: 5px !important;
}

.calendar .fc-event-title {
  font-weight: 500;
}

.calendar .fc-dayGridMonth-view .fc-event-main-frame,
.calendar .fc-daygrid-day-events .fc-daygrid-dot-event {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  overflow: hidden;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  word-break: break-word;
  white-space: pre-line;
  overflow-wrap: break-word;
  -ms-word-break: break-word;
  word-break: break-word;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.calendar .fc-dayGridMonth-view .fc-event-main-frame {
  flex-direction: column;
}

.calendar .fc-daygrid-day-events .fc-daygrid-dot-event {
  flex-direction: row;
  /*background: #f7f7f7;
  border: 1px solid #f1f1f1;*/
}

.calendar .fc-event-main,
.calendar .fc-daygrid-dot-event {
  padding: 5px;
}

.calendar .fc-daygrid-event-dot {
  border-radius: 0 !important;
  border-width: 4px;
  /*order: 1;*/
}

.calendar .fc-daygrid-block-event .fc-event-time {
  font-weight: 400;
}

.calendar .fc-daygrid-dot-event .fc-daygrid-event-dot {
  margin: 0 0 5px 0;
}

.calendar .fc-daygrid-dot-event .fc-daygrid-event-dot,
.calendar .fc-daygrid-dot-event .fc-daygrid-event-time,
.calendar .fc-daygrid-dot-event .fc-event-title,
.calendar .fc-daygrid-dot-event .fc-event-titleSub {
  width: 100%;
}

.calendar .fc-daygrid-dot-event .fc-event-title,
.calendar .fc-daygrid-dot-event .fc-event-titleSub {
  margin-top: 3px;
}

.calendar .fc-daygrid-block-event .fc-event-time,
.calendar .fc-daygrid-block-event .fc-event-titleSub,
.calendar .fc-daygrid-dot-event .fc-event-time,
.calendar .fc-daygrid-dot-event .fc-event-titleSub {
  font-size: 10px;
}

.calendar .fc-daygrid-block-event .fc-event-titleSub {
  margin-top: 2px;
}

.calendar .fc-listWeek-view .fc-list-event .fc-event-wrapped {
  display: flex;
  flex-direction: column;
  padding: 9px 10px;
}

.calendar .fc-listWeek-view .fc-list-event .fc-event-wrapped.hasClassType {
  border-radius: 0 7px 7px 0;
}

.calendar .fc-list-table .fc-list-event-graphic {
  display: none !important;
}

.calendar .fc-listWeek-view .fc-list-event .fc-event-wrapped .fc-event-title,
.calendar .fc-listWeek-view .fc-list-event .fc-event-wrapped .fc-event-titleSub,
.calendar .fc-listWeek-view .fc-list-event .fc-event-wrapped .fc-event-teacher.name {
  line-height: 1;
  display: flex;
}

.calendar .fc-listWeek-view .fc-list-event .fc-event-wrapped .fc-event-titleSub {
  margin-top: 3px;
}

.calendar .fc-listWeek-view .fc-list-event .fc-event-wrapped .fc-event-teacher {
  display: inline-flex;
  width: auto;
  border-top: 1px dashed;
  margin-top: 6px;
  margin-right: auto;
  padding-top: 3px;
}

.calendar .fc-listWeek-view .fc-list-event .fc-event-wrapped .fc-event-teacher.name {
  font-size: 12px;
}

.calendar .fc-event .fc-event-title {
  display: flex;
}

.calendar .fc-event .fc-event-title.on-air:before {
  display: inline-block;
  content: '';
  margin: auto 3px auto 0;
  border: 3px solid red;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .calendar .fc-toolbar .fc-toolbar-title {
    font-size: 14px;
  }

  .calendar .fc-toolbar .fc-button {
    font-size: 14px;
    padding: 5px 7px;
  }

  .calendar .fc-toolbar .fc-today-button {
    font-size: 20px;
  }

  .calendar .fc-col-header {
    font-size: 12px;
  }

  .calendar .fc-daygrid-day-number,
  .calendar .fc-list-table .fc-list-event-time {
    font-size: 12px;
  }

  .calendar .fc-dayGridMonth-view .fc-daygrid-day-events .fc-daygrid-event-harness:not(:first-child) {
    margin-top: 2px !important;
  }

  .calendar .fc-dayGridMonth-view .fc-event-main {
    padding: 3px 3px !important;
  }

  .calendar .fc-dayGridMonth-view .fc-event-time,
  .calendar .fc-daygrid-dot-event .fc-daygrid-event-time,
  .calendar .fc-daygrid-dot-event .fc-daygrid-event-titleSub {
    font-size: 8px;
    /*margin-bottom: 2px;*/
  }

  .calendar .fc-daygrid-block-event .fc-event-title,
  .calendar .fc-daygrid-dot-event .fc-event-title {
    font-size: 10px;
  }

  .calendar .fc-daygrid-block-event .fc-event-titleSub,
  .calendar .fc-daygrid-dot-event .fc-event-titleSub {
    font-size: 8px;
    margin-top: 1px;
  }

  .calendar .fc-list-table td {
    padding: 8px 5px !important;
  }

  .calendar .fc-listWeek-view .fc-list-event .fc-event-wrapped {
    padding: 8px 8px;
  }

  .calendar .fc-listWeek-view .fc-list-event .fc-event-wrapped .fc-event-title,
  .calendar .fc-listWeek-view .fc-list-event .fc-event-wrapped .fc-event-titleSub {
    font-size: 12px;
  }

  .calendar .fc-listWeek-view .fc-list-event .fc-event-wrapped .fc-event-teacher {
    margin-top: 5px;
  }

  .calendar .fc-listWeek-view .fc-list-event .fc-event-wrapped .fc-event-teacher.name {
    font-size: 10px;
  }
}


.calendar .fc-popover-body .fc-daygrid-block-event .fc-event-main-frame,
.calendar .fc-popover-body .fc-daygrid-dot-event {
  flex-direction: column;
  align-items: flex-start;
  margin: 5px 0;
}

.calendar .fc-popover-body .fc-daygrid-block-event .fc-event-time,
.calendar .fc-popover-body .fc-daygrid-block-event .fc-event-title,
.calendar .fc-popover-body .fc-daygrid-block-event .fc-event-titleSub {
  width: 100%;
}


.calendar-init-popup,
.calendar-init-popup .popup-event-time,
.calendar-init-popup .popup-event-title,
.calendar-init-popup .popup-event-subTitle {
  line-height: 1;
}

.calendar-init-popup .popup-event-time {
  position: relative;
}

.calendar-init-popup .popup-event-time-postfix {
  position: absolute;
  top: 4px;
  right: -20px;
  font-size: 10px;
}

.calendar-init-popup .popup-event-title {
  display: flex !important;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.calendar-init-popup .popup-event-title.on-air:before {
  display: inline-block;
  content: '';
  margin: auto 5px auto 0;
  border: 4px solid red;
  border-radius: 10px;
}

.calendar-init-popup .popup-event-linkDetails a {
  opacity: .75;
  transition: all 0.3s;
}

.calendar-init-popup .popup-event-linkDetails a:hover {
  color: var(--color-01);
  opacity: 1;
}

.calendar-init-popup .popup-event-button {
  font-weight: 400 !important;
  text-transform: none !important;
  background: var(--color-01) !important;
  border: none !important;
  border-radius: 6px !important;
  color: #fff !important;
  padding: 10px 20px !important;
  margin-top: 20px !important;
  margin-bottom: 10px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  transition: all 0.3s !important;
}

.calendar-init-popup .popup-event-button .ezb-first {
  line-height: 1.5 !important;
}

.calendar-init-popup .popup-event-button:hover {
  opacity: .8 !important;
}

@media (max-width: 768px) {
  .calendar-init-popup .popup-event-time-postfix {
    top: 2px;
    right: -17px;
    font-size: 8px;
  }
}