:root {
  --primary: #244395;
  --white: #ffffff;
  --gray: #e0e0e0;
  --dark: #3c3c3c;
  --black: #000000;
  --orange: #F2910F;
  --text: #5E6282;
  --dark-blue: #000080;
}

.calendar-page header {
  background-color: #F1F2FC;
  min-height: 180px;
}
.calendar-page .container {
  max-width: 1200px;
}
.calendar-page .calendar-wrapper {
  padding: 20px 20px 20px 20px;
  background-color: var(--white);
  border-radius: 10px 10px 10px 10px;
  box-shadow: 0px 6px 18px 0px rgba(0, 0, 0, 0.1);
}
.calendar-page #calendar-container {
  width: 100%;
  margin: auto;
  text-align: center;
  overflow: auto;
}
.calendar-page th.calendar-day {
  padding: 0;
}
.calendar-page .calendar-event a {
  color: var(--primary);
  text-decoration: none;
}
.calendar-page #month-year {
  font-weight: 600;
  color: #fff;
  font-size: 1.875rem;
}
@media screen and (max-width: 991.98px) {
  .calendar-page #month-year {
    font-size: 1rem;
  }
}
.calendar-page .events-wrap {
  position: absolute;
  top: 100px;
  left: 22px;
}
@media screen and (max-width: 991.98px) {
  .calendar-page .events-wrap {
    top: 86px;
  }
}
.calendar-page .calendar-navigation {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
  background: #244395;
  padding: 5px 10px 5px 10px;
  border-radius: 3px;
  justify-content: space-between;
}
@media screen and (max-width: 575.98px) {
  .calendar-page .calendar-navigation .btn {
    padding: 0.35rem 0.1rem;
  }
}
.calendar-page .calendar-event {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  text-align: center;
  z-index: 10;
  border: 2px solid #24478f;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 2;
  font-size: 12px;
  padding: 2px;
  border-radius: 3px;
}
.calendar-page .weekend-day, .calendar-page .holiday {
  background-color: #d0e8ff;
}
.calendar-page .calendar-table {
  width: auto;
}
.calendar-page table {
  background-color: transparent;
  width: 100%;
  margin-block-end: 15px;
  font-size: 0.9em;
  border-spacing: 0;
  border-collapse: collapse;
  position: relative;
}
.calendar-page table td, .calendar-page table th {
  padding: 15px;
  line-height: 1.5;
  vertical-align: top;
  border: 1px solid hsla(0, 0%, 50.2%, 0.5019607843);
}
.calendar-page table th {
  font-weight: 700;
}
.calendar-page table tfoot th, .calendar-page table thead th {
  font-size: 1em;
}
.calendar-page table caption + thead tr:first-child td, .calendar-page table caption + thead tr:first-child th, .calendar-page table colgroup + thead tr:first-child td, .calendar-page table colgroup + thead tr:first-child th, .calendar-page table thead:first-child tr:first-child td, .calendar-page table thead:first-child tr:first-child th {
  border-block-start: 1px solid hsla(0, 0%, 50.2%, 0.5019607843);
}
.calendar-page table tbody > tr:nth-child(odd) > td, .calendar-page table tbody > tr:nth-child(odd) > th {
  background-color: hsla(0, 0%, 50.2%, 0.0705882353);
}
.calendar-page table tbody tr:hover > td, .calendar-page table tbody tr:hover > th {
  background-color: hsla(0, 0%, 50.2%, 0.1019607843);
}
.calendar-page table tbody + tbody {
  border-block-start: 2px solid hsla(0, 0%, 50.2%, 0.5019607843);
}
@media (max-width: 767px) {
  .calendar-page table table {
    font-size: 0.8em;
  }
  .calendar-page table table td, .calendar-page table table th {
    padding: 7px;
    line-height: 1.3;
  }
  .calendar-page table table th {
    font-weight: 400;
  }
}
.calendar-page dd, .calendar-page dl, .calendar-page dt, .calendar-page li, .calendar-page ol, .calendar-page ul {
  margin-block-start: 0;
  margin-block-end: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

#ec-calendar {
  --ec-blue: #1476a8;
  --ec-blue-dark: #0c5d86;
  --ec-green: #78a92d;
  --ec-orange: #e59a28;
  --ec-red: #c93c35;
  --ec-text: #333;
  --ec-muted: #777;
  --ec-border: #dfe4e7;
  --ec-light: #f5f7f8;
  --ec-weekend: #e0e0e0;
  --ec-day-width: 46px;
  width: 100%;
  box-sizing: border-box;
}
#ec-calendar * {
  box-sizing: border-box;
}
#ec-calendar *::before {
  box-sizing: border-box;
}
#ec-calendar *::after {
  box-sizing: border-box;
}
#ec-calendar .ec-calendar__page-title {
  margin: 0;
  color: var(--primary);
}
#ec-calendar #calendar-messages {
  color: var(--ec-text);
  font-weight: 400;
}
#ec-calendar .ec-calendar__toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
#ec-calendar .ec-calendar__heading {
  min-width: 240px;
}
#ec-calendar .ec-calendar__title {
  margin: 0;
  color: var(--primary);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
}
#ec-calendar .ec-calendar__subtitle {
  margin: 6px 0 0;
  color: var(--ec-muted);
  font-size: 14px;
  line-height: 1.45;
}
#ec-calendar .ec-calendar__filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#ec-calendar .ec-calendar__filter label {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}
#ec-calendar .ec-calendar__filter select {
  min-width: 185px;
  height: 42px;
  margin: 0;
  padding: 0 34px 0 12px;
  border: 1px solid var(--ec-border);
  border-radius: 4px;
  background: #fff;
  color: var(--ec-text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
#ec-calendar .ec-calendar__reset {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 5px 16px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid var(--primary);
  border-radius: 4px;
  height: 42px;
  transition: 0.3s;
}
#ec-calendar .ec-calendar__reset:hover {
  background-color: var(--primary);
  color: var(--white);
}
#ec-calendar .ec-calendar__scroll-button {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  width: 38px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--ec-border);
  border-radius: 4px;
  background: #fff;
  color: var(--primary);
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
#ec-calendar .ec-calendar__scroll-button:hover {
  background: var(--ec-light);
}
#ec-calendar .ec-calendar__period-link {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  color: var(--white);
  background-color: var(--orange);
  font-size: 1rem;
  text-decoration: none;
  padding: 5px 16px;
  border-radius: 4px;
  border: 1px solid var(--orange);
}
#ec-calendar .ec-calendar__period-link.prev {
  background-color: var(--white);
  color: var(--orange);
  border-color: var(--orange);
}
#ec-calendar .ec-calendar__period-link:hover {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--white);
}
#ec-calendar .ec-calendar__legend {
  display: flex;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 11px;
  color: #555;
  font-size: 13px;
}
#ec-calendar .ec-calendar__legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 7px;
}
#ec-calendar .ec-calendar__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
#ec-calendar .ec-calendar__dot--completed {
  background: #8a8a8a;
}
#ec-calendar .ec-calendar__dot--free {
  background: var(--ec-green);
}
#ec-calendar .ec-calendar__dot--last {
  background: var(--ec-orange);
}
#ec-calendar .ec-calendar__dot--full {
  background: var(--ec-red);
}
#ec-calendar .ec-calendar__viewport {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--ec-border);
  border-radius: 5px;
  background: #fff;
}
#ec-calendar .ec-calendar__scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-color: #aeb7bc #f1f3f4;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
#ec-calendar .ec-calendar__scroll:active {
  cursor: grabbing;
}
#ec-calendar .ec-calendar__timeline {
  width: -moz-max-content;
  width: max-content;
  min-width: -moz-max-content;
  min-width: max-content;
}
#ec-calendar .ec-calendar__months {
  display: flex;
  height: 40px;
  border-bottom: 1px solid var(--ec-border);
  background: var(--ec-light);
}
#ec-calendar .ec-calendar__month {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 10px;
  border-right: 1px solid #d5dce0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: lowercase;
}
#ec-calendar .ec-calendar__days {
  display: flex;
  height: 70px;
  border-bottom: 1px solid var(--ec-border);
}
#ec-calendar .ec-calendar__day {
  width: var(--ec-day-width);
  min-width: var(--ec-day-width);
  flex: 0 0 var(--ec-day-width);
  padding: 8px 4px 7px;
  background: #fff;
  text-align: center;
  position: relative;
}
#ec-calendar .ec-calendar__day::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 1px;
  background: var(--ec-border);
  pointer-events: none;
}
#ec-calendar .ec-calendar__day--weekend, #ec-calendar .ec-calendar__day--holiday {
  background: var(--ec-weekend);
}
#ec-calendar .ec-calendar__weekday {
  display: block;
  color: var(--ec-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}
#ec-calendar .ec-calendar__day-number {
  display: block;
  margin-top: 3px;
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
}
#ec-calendar .ec-calendar__day-month {
  display: block;
  margin-top: 3px;
  color: var(--ec-muted);
  font-size: 10px;
  line-height: 1.1;
}
#ec-calendar .ec-calendar__trips {
  position: relative;
  width: -moz-max-content;
  width: max-content;
  display: flex;
}
#ec-calendar .ec-calendar__grid-day {
  position: relative;
  flex: 0 0 var(--ec-day-width);
  height: 100%;
  border-right: 1px solid var(--ec-border);
  pointer-events: none;
  z-index: 0;
  min-height: 284px;
}
#ec-calendar .ec-calendar__trip {
  position: absolute;
  display: block;
  text-align: center;
  height: 58px;
  padding: 6px 30px 6px 11px;
  overflow: hidden;
  border: 1px solid var(--ec-border);
  border-left: 4px solid var(--ec-green);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  z-index: 99;
  transition: opacity 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
  background: #f2fae5;
}
#ec-calendar .ec-calendar__trip--last {
  border-left-color: var(--ec-orange);
  background: #fff6eb;
}
#ec-calendar .ec-calendar__trip--last .ec-calendar__trip-meta strong {
  color: #a16d09;
}
#ec-calendar .ec-calendar__trip--completed {
  border-left-color: #8a8a8a;
  background: #f1f1f1;
  color: #666;
}
#ec-calendar .ec-calendar__trip--completed .ec-calendar__trip-country {
  color: #888;
}
#ec-calendar .ec-calendar__trip--completed .ec-calendar__trip-title {
  color: #666;
}
#ec-calendar .ec-calendar__trip--completed .ec-calendar__trip-meta {
  color: #888;
}
#ec-calendar .ec-calendar__trip--completed .ec-calendar__trip-meta strong {
  color: #777;
}
#ec-calendar .ec-calendar__trip--full {
  border-left-color: var(--ec-red);
  background: #ffe6e6;
}
#ec-calendar .ec-calendar__trip--full .ec-calendar__trip-meta strong {
  color: var(--ec-red);
}
#ec-calendar .ec-calendar__trip--continues-left {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
#ec-calendar .ec-calendar__trip--continues-right {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
#ec-calendar .ec-calendar__trip-main {
  min-width: 0;
}
#ec-calendar .ec-calendar__trip-country {
  color: var(--ec-muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}
#ec-calendar .ec-calendar__trip-title {
  margin-top: 2px;
  color: var(--ec-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
}
#ec-calendar .ec-calendar__trip-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  color: var(--ec-muted);
  font-size: 10px;
  line-height: 1.15;
}
#ec-calendar .ec-calendar__trip--available .ec-calendar__trip-meta strong {
  color: var(--ec-green);
}
#ec-calendar .ec-calendar__continuation {
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  height: 52px;
  width: 28px;
  color: var(--ec-muted);
  font-size: 18px;
  pointer-events: none;
}
#ec-calendar .ec-calendar__continuation--left {
  left: 0;
  justify-content: flex-start;
  background: linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0));
}
#ec-calendar .ec-calendar__continuation--right {
  right: 0;
  justify-content: flex-end;
  background: linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0));
}
#ec-calendar .ec-calendar__trip.is-dimmed {
  opacity: 0;
  pointer-events: none;
  filter: grayscale(0.9);
}
#ec-calendar .ec-calendar__trip.is-highlighted {
  z-index: 10;
}
#ec-calendar .ec-calendar__bottom-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  margin-top: 9px;
}
#ec-calendar .ec-calendar__scroll-arrows {
  display: flex;
  gap: 6px;
}
#ec-calendar .ec-calendar__current-period {
  color: var(--ec-muted);
  font-size: 12px;
  text-align: center;
}
#ec-calendar .ec-calendar__month-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 700px) {
  #ec-calendar .ec-calendar__toolbar {
    align-items: flex-start;
  }
  #ec-calendar .ec-calendar__title {
    font-size: 24px;
  }
  #ec-calendar .ec-calendar__filter {
    width: 100%;
  }
  #ec-calendar .ec-calendar__filter label {
    width: 100%;
  }
  #ec-calendar .ec-calendar__filter select {
    width: 100%;
  }
  #ec-calendar .ec-calendar__trip {
    padding-left: 8px;
    padding-right: 27px;
  }
  #ec-calendar .ec-calendar__trip-title {
    font-size: 14px;
  }
  #ec-calendar .ec-calendar__trip-meta {
    font-size: 9px;
  }
  #ec-calendar .ec-calendar__bottom-nav {
    grid-template-columns: 1fr auto;
  }
  #ec-calendar .ec-calendar__current-period {
    grid-column: 1/-1;
    grid-row: 1;
    order: -1;
  }
  #ec-calendar .ec-calendar__month-nav {
    justify-content: flex-end;
  }
  #ec-calendar .ec-calendar__day-number {
    font-size: 16px;
  }
  #ec-calendar .ec-calendar__days {
    height: auto;
  }
}