html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
  font-size: 14px;
}

#calendar {
  max-width: 1100px;
  margin: 40px auto;
}

.admission-process-tags span {
  cursor: pointer;
}

.tooltip b,
.tooltip p,
.tooltip h3,
.tooltip span {
  font-size: .6em;
  margin: 0;
}

.tooltip h3 {
  line-height: 15px;
}

.tooltip hr {
  margin: 5px 0;
}

.tooltip .tooltip-inner {
  white-space: initial !important;
}

.event-tag {
  background-color: #c4bfbf;
  border-radius: 10px;
  display: inline-flex;
  font-size: 1.2rem;
  margin-right: 5px;
  padding: 2px 10px;
  width: fit-content;
  margin-bottom: 10px;
  margin-top: 5px;
}

.event-location {
  margin-left: auto !important;
}

.fc-list-day-text {
  text-decoration: none;
}

.fc-header-toolbar button.fc-button {
  text-transform: capitalize !important;
}

.fc-DownloadEventsButton-button {
  background-color: #024cbc !important;
}

.fc-timegrid-axis-cushion {
  font-size: 1.6rem;
  text-transform: capitalize;
  white-space: nowrap;
}

#calendar a {
  text-decoration: none;
}

.fc .fc-list-event-dot {
  margin-right: -2px;
}

.fc .fc-list-table thead {
  display: none;
}

.fc-list-event-time,
.fc-event-time {
  text-transform: uppercase;
}

.fc-daygrid-dot-event {
  align-items: baseline !important;
}

.fc-timegrid-col .fc-event-main {
  color: black !important;
}

.fc-timegrid-col .fc-timegrid-event {
  background-color: #f1f5fb !important;
  border-color: #98bcf2 !important;
  font-size: 1rem;
  overflow: hidden;
}

/* place color dots in lower layer if they are of color white */
.fc-list-event-graphic span[style='border-color: white;'],
.fc-timegrid-event span[style='border-color: white;'],
.fc-daygrid-event div[style='border-color: white;'] {
  display: none;
}

.fc-timegrid-event .fc-event-time {
  font-size: revert !important;
}

.fc-popover-body .fc-event-time {
  white-space: nowrap;
}

.fc-timegrid-event .fc-event-main {
  line-height: 1.5 !important;
  margin: 0;
  padding: 1px 1px 0;
}

.select2-container .select2-selection--multiple {
  min-height: 40px !important;
}

.fc .fc-button-primary {
  color: #024cbc !important;
  background-color: #edf0f20f !important;
  border-color: #024cbc !important;
}

.fc .fc-button-primary:disabled {
  border-color: #cac4c4 !important;
  color: #cac4c4 !important;
}

.fc .fc-button-primary.fc-button-active {
  color: #ffffff !important;
  background-color: #024cbc !important;
  border-color: #024cbc !important;
}

.fc-direction-ltr .fc-list-table .fc-list-event-graphic {
  border: none;
  display: flex;
  margin-left: 10px;
  margin-top: 11px;
  width: 10px;
}

#calendar .fc-list-event-dot,
#calendar .fc-daygrid-event-dot {
  display: none;
}

.ap-capsule {
  border: solid 1px gray;
  border-radius: 15px;
  font-size: 12px;
  margin-right: 3px;
  padding: 0px 10px;
}

.fc-event-title-container .ap-capsule {
  font-size: 8px;
}

.rtl .fc-direction-ltr .fc-list-table .fc-list-event-graphic {
  border: none;
  display: flex;
  margin-left: 10px;
  margin-right: 10px;
  margin-top: 11px;
  width: auto;
}

.last-dot {
  border: 1px solid lightblue !important;
  padding: 4px !important;
}

.last-dot span {
  margin-top: -7px;
  margin-left: -2px;
  position: absolute;
  font-size: 8px;
}

.download-event-ics {
  color: #024cbc !important;
  white-space: nowrap;
  text-align: right;
  float: right;
}

.download-event-ics label {
  display: none;
}

#calendar .download-event-ics:focus {
  box-shadow: none;
}

.rtl .download-event-ics {
  text-align: left;
  float: left;
}

.calendar-event p {
  margin: 0 0 10px 0;
}

.calendar-event strike {
  color: red;
}

.calendar-event strike span {
  color: black;
}

.cancel-status {
  color: red;
  cursor: initial;
  text-transform: uppercase;
}

.calendar .total-count {
  font-size: 12px;
  margin-top: -35px;
}

.calendar .total-count label {
  cursor: default;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  line-height: 40px !important;
  padding: 2px 5px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__arrow {
  height: 40px !important;
}

.fc-toolbar-chunk {
  display: inline-flex;
}

.fc-prev-button,
.fc-next-button {
  display: none !important;
}

/*
i wish this required CSS was better documented :(
https://github.com/FezVrasta/popper.js/issues/674
derived from this CSS on this page: https://popper.js.org/tooltip-examples.html
*/

.tooltip {
  opacity: 1 !important;
  border-left: none !important;
  padding: 8px 0 8px 8px !important;
  white-space: pre-wrap;
}

.tooltip-inner {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 8px;
}

.tooltip-inner .info {
  white-space: pre-line;
}

/* width */
.fc .fc-more-popover .fc-popover-body::-webkit-scrollbar,
.fc-scroller::-webkit-scrollbar,
.tooltip-inner::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.fc .fc-popover {
  left: 50% !important;
  margin: 0 0 0 -25% !important;
  top: 25% !important;
}

/* Track */
.fc .fc-more-popover .fc-popover-body::-webkit-scrollbar-track,
.fc-scroller::-webkit-scrollbar-track,
.tooltip-inner::-webkit-scrollbar-track {
  background: #f4f4f4;
}

/* Handle */
.fc .fc-more-popover .fc-popover-body::-webkit-scrollbar-thumb,
.fc-scroller::-webkit-scrollbar-thumb,
.tooltip-inner::-webkit-scrollbar-thumb {
  background: #c3c3c3;
  border-radius: 4px;
}

/* Handle on hover */
.fc .fc-more-popover .fc-popover-body::-webkit-scrollbar-thumb:hover,
.fc-scroller::-webkit-scrollbar-thumb:hover,
.tooltip-inner::-webkit-scrollbar-thumb:hover {
  background: #bdbdbd;
  cursor: pointer;
}

.popper[x-placement^='top']::before,
.tooltip[x-placement^='top']::before {
  border-width: 10px 10px 0 10px;
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-top-color: #4ee4b3;
  bottom: -10px;
  left: calc(50% - 10px);
  margin-top: 0;
  margin-bottom: 0;
}

.tooltip[x-placement^='bottom']::before,
.popper[x-placement^='bottom']::before {
  border-width: 0 10px 10px 10px;
  border-left-color: transparent;
  border-right-color: transparent;
  border-top-color: transparent;
  border-bottom-color: #4ee4b3;
  top: -10px;
  left: calc(50% - 10px);
  margin-top: 0;
  margin-bottom: 0;
}

.popper[x-placement^='right']::before,
.tooltip[x-placement^='right']::before {
  border-width: 10px 10px 10px 0;
  border-left-color: transparent;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-right-color: #4ee4b3;
  left: -10px;
  top: calc(50% - 10px);
  margin-left: 0;
  margin-right: 0;
}

.popper[x-placement^='left']::before,
.tooltip[x-placement^='left']::before {
  border-width: 10px 0 10px 10px;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: #4ee4b3;
  left: 100%;
  top: calc(50% - 10px);
  margin-left: 0;
  margin-right: 0;
}

.calendar-inner {
  margin: 60px auto;
}

.calendar-inner .col-3,
.calendar-inner .col-9 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.calendar-inner .fc-content {
  color: white !important;
}

.calendar-inner .fc-title a {
  color: white;
}

.calendar-inner a {
  color: #000000;
}

.calendar-inner table,
th,
td {
  border-left: 1px solid #dddddd;
}

.calendar-inner .navigation .btn-primary a strong {
  color: #ffffff;
}

.calendar-search {
  margin-left: 10px;
  margin-right: 10px;
}

.calendar-search .search-school-label {
  display: none;
}

.calendar-search .filter-heading {
  float: left;
  cursor: default;
}

.footer__built-by {
  width: auto !important;
}

.rtl .fc-toolbar-title {
  margin-bottom: 10px !important;
}

.rtl .calendar-search .filter-heading {
  cursor: default;
  float: right;
}

.rtl .admission-process-tags .tag {
  border-radius: 20px;
  background-color: #0b4497;
  color: white;
  padding: 0 6px;
  margin-left: 5px;
  float: right;
  text-align: center;
}

.calendar-search .clear-all {
  float: right;
  margin-top: 6px;
}

.rtl .calendar-search .clear-all {
  float: left;
  margin-top: 6px;
}

.calendar-search input[type='search'] {
  height: auto;
  line-height: initial;
  width: auto !important;
}

.calendar-search .select2-container--default .select2-selection--multiple .select2-selection__rendered li {
  list-style: none;
  overflow: hidden;
  line-height: 24px;
  text-overflow: ellipsis;
  max-width: -webkit-fill-available;
}

.fc-direction-ltr .fc-daygrid-event .fc-event-time {
  margin-right: 3px;
  margin-left: 3px;
}

.admission-process-tags .tag {
  border-radius: 20px;
  background-color: #0b4497;
  color: white;
  padding: 3px 6px;
  margin-right: 5px;
  text-align: center;
}

.admission-process-tags .icon-check {
  visibility: hidden;
  font-size: 14px;
}

.admission-process-tags .visible .icon-check {
  visibility: visible;
}

.calendar-filter {
  border-right: 1px solid #b8b8b8;
  margin: 25px 10px 10px 10px;
  padding-right: 15px;
  background-color: #f3f3f33b;
}

.calendar-filter > div {
  border-bottom: 1px solid #e0dfdf;
  margin-bottom: 5px;
  padding-bottom: 5px;
}

.calendar-filter > div > a {
  border-top: 1px solid #ffffff;
  display: block;
  padding: 10px;
  margin-right: 15px;
  text-decoration: none;
  outline: none;
}

.calendar-filter label {
  font-weight: normal;
  font-size: 1.5rem;
}

.calendar-filter > div > a:first-child {
  margin-top: 0;
  border-top: 0;
  font-weight: bold;
}

.calendar-filter > div > a.arrow::after {
  content: '';
  border: solid #024cbc;
  border-width: 0 2px 2px 0;
  padding: 4px;
  margin-right: -15px;
  margin-top: 8px;
  float: right;
}

.rtl .calendar-filter > div > a.arrow::after {
  float: left;
  margin-left: 5px;
}

.calendar-filter > div > a.arrow.up::after {
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}

.calendar-filter > div > a.arrow.down::after {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

.calendar-filter ul {
  display: none;
  padding-left: 10px;
  margin: 10px 0 10px 0;
}

.calendar-filter ul li {
  list-style: none;
  margin-bottom: 3px;
}

.calendar-inner .select2-container {
  min-width: 100%;
}

.rtl .select2-container--default .select2-selection--multiple {
  border-radius: 4px !important;
  width: 100%;
}

.overlay {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  opacity: .5;
  background: #79a7ec;
  z-index: 9;
}

.overlay-inner {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}

.overlay-content {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  width: 75px;
  height: 75px;
  display: inline-block;
  border-width: 2px;
  border-color: rgba(255, 255, 255, .05);
  border-top-color: #ffffff;
  animation: spin 1s infinite linear;
  border-radius: 100%;
  border-style: solid;
}

h1,
.h1 {
  font-size: 2em !important;
  margin-top: 10px !important;
}

.fc .fc-daygrid-event-harness {
  position: relative;
  background-color: #f1f5fb !important;
  border-color: #98bcf2 !important;
  border-radius: 4px;
  border: 1px solid;
  margin-bottom: 2px;
  font-size: 1.5rem;
}

.fc .fc-daygrid-event-harness:hover {
  background-color: rgba(0, 0, 0, .1) !important;
}

.fc-daygrid-dot-event.fc-event-mirror,
.fc-daygrid-dot-event:hover {
  background: none !important;
}

.fc .fc-daygrid-day-bottom {
  font-size: .65em !important;
}

.fc .fc-more-popover .fc-popover-body {
  min-width: 220px;
  max-width: 400px;
  max-height: 300px;
  padding: 10px;
  overflow: hidden scroll;
}

.fc-popover-body .fc-event {
  max-width: max-content;
  white-space: unset;
}

.rtl strong {
  float: right;
  margin-left: 10px;
}

.fc .fc-toolbar-title {
  font-size: 3rem !important;
  line-height: 50px;
  overflow: hidden;
  max-width: 350px;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.total-count-val {
  margin-right: 3px;
}

.total-count-dis {
  margin-left: 3px;
}

.rtl .total-count-val {
  margin-left: 5px;
}

.rtl .total-count-dis {
  margin-right: 5px;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 650px) {
  .fc .fc-toolbar.fc-header-toolbar {
    display: block;
    text-align: center;
  }

  .fc-header-toolbar .fc-toolbar-chunk {
    display: block;
    margin-top: 5px;
  }

  .fc-scroller::-webkit-scrollbar,
  .tooltip-inner::-webkit-scrollbar {
    width: 3px;
    height: 3px;
  }

  .fc-view {
    overflow: scroll !important;
  }
}

@media screen and (max-width: 768px) {
  h1,
  .h1 {
    font-size: 1.6rem !important;
    margin-top: 10px !important;
  }

  .select2-container .select2-search--inline .select2-search__field {
    margin-top: 10px !important;
  }

  .fc .fc-toolbar-title {
    line-height: 30px;
    font-size: 1em !important;
    max-width: initial;
    text-align: center;
    text-transform: capitalize;
  }
}

@media screen and (max-width: 2500px) and (min-width: 769px) {
  .calendar-inner .col-9 {
    width: 74.5% !important;
  }

  .calendar-inner .col-3 {
    width: 24.5% !important;
  }

  .calendar-inner .select2-container {
    max-width: 100%;
  }

  .select2 .select2-container .select2-container--default {
    max-width: 100%;
  }

  .calendar-filter ul li {
    list-style: none;
    margin-bottom: -3px;
  }
}

@media screen and (max-width: 1040px) and (min-width: 768px) {
  .fc-toolbar .fc-toolbar-chunk {
    display: flex;
  }

  .fc-toolbar {
    overflow: scroll;
  }

  .fc .fc-toolbar-title {
    font-size: 1em !important;
    max-width: 200px;
    text-transform: capitalize;
  }

  .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    font-size: 11px;
  }

  .select2-container .select2-search--inline .select2-search__field {
    margin-top: 12px !important;
  }
}

.calendar-filter ul li span {
  font-size: 1.5rem;
  font-weight: normal;
}

.calendar-filter ul li span.visible label,
.calendar-filter ul li.visible label {
  font-weight: bold;
}

.fc-list .fc-scroller {
  height: 100%;
  overflow: auto !important;
}

.fc-daygrid-day-events {
  overflow: hidden;
}

.cancelled-event,
.cancelled-event .fc-sticky,
.cancelled-event .fc-list-event-title {
  text-decoration: line-through !important;
}

.fc .fc-list-day-cushion,
.fc .fc-list-table td {
  padding: 10px 5px !important;
}

.fc .fc-daygrid-day-number {
  padding-right: 8px !important;
}

.fc-list-event-title a {
  max-width: 600px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  display: block;
}

.fc-list-event:hover {
  background-color: whitesmoke;
}

.cancelled-event .fc-list-event-title .suffix {
  color: red;
  display: inline-block;
  text-decoration: none !important;
}

#suffix {
  font-weight: normal;
}

form input:not(.button) {
  width: auto !important;
}

.rsvp-close-btn {
  border: 0 !important;
}

.calendar-content {
  padding-top: 9px;
}

.clear-all {
  font-size: 11px;
}

.pull-left {
  float: left;
}

.pull-right {
  float: right;
}

.content-left {
  justify-content: left;
}

.messaging-style {
  margin: 2rem 0 !important;
}

.btn-cancel-style {
  display: flex !important;
  flex-flow: wrap;
}

.event-tag-style {
  background-color: #ffffff !important;
}

.sch-name-style {
  margin-top: -15px;
}

.p-desc-style {
  white-space: pre-line;
}

.fc .fc-list-event.fc-event-forced-url {
  cursor: pointer;
  border: 1px solid #dddddd;
}
