#timeline-embed .tl-timeaxis-minor .tl-timeaxis-tick {
  display: none !important;
}

/* ----------- Main ----------- */
#tl {
  background-color: #f7f5f3;
}
#filterbyrow {
  width: 100%;
  background-color: #f7f5f3;
  position: relative;
  font-family: "breve_news_book", sans-serif;
  padding-top: 1rem;
}

/* ----------- General Styles ----------- */

/* Headings */
#tl .heading {
  width: 100%;
  min-height: 5rem;
  padding-left: 1rem;
  background-color: #f7f5f3;
  font-family: breve_title_book_italic;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 2rem;
}

@media (max-width: 992px) {
  #tl .heading {
    padding-left: 0;
  }
}

#tl small {
  font-size: 0.54em;
}

/* ----------- Parallax SideBar ----------- */

#tl-content-row .container_text_port h4 {
  line-height: 0.5 !important;
}

#emtl-sidebar {
  width: 600px;
}

/* ----------- Filter By, Time Period, Key Events ----------- */

.tl__filter-title {
  font-size: 1.2rem;
  min-width: 170px;
}

#tl .timeline-filters {
  margin-left: 0 !important;
  width: 100% !important;
  border-bottom: 1px solid #e9ecef;
  max-width: none !important;
  height: 250px !important;
  display: grid;
}

#filterbyrow {
  align-self: center;
}

/* Time Period and Slider */
#tl .time-period-box {
  max-width: 450px;
  padding-right: 2rem;
}

#tl .time-period-container {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
}

#tl #slider {
  width: 90%;
}

#tl .form-control {
  background-color: #f7f5f3;
}

#tl .time-period {
  border-radius: 0;
  padding: 0.2rem 0.5rem;
  margin-right: 1rem;
}

/* Key Events */
#tl .ke-btns-container {
  padding: 0.4rem 0 0.8rem 0;
}

#tl .ke-btns-container .ke-btn {
  border-radius: 0;
  background-color: #f7f5f3;
  color: black;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  /* disabled btn color */
  color: rgb(194, 194, 194);
}

#tl .ke-btns-container .ke-btn.active {
  background-color: #f7f5f3;
  color: black;
}

#tl .key-events-box {
  padding-left: 1.5rem;
}

#tl .key-events-box .key-events-description {
  font-size: 0.775rem;
  width: 80%;
  line-height: 1rem;
}

/* Filter By */
#filterbyrow .filter-by-box {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

#filterbyrow .filter-by-box .filters .filter-heading {
  padding-top: 4px;
  width: 130px;
}

#tl #timeline-filter-list {
  margin: 0;
}

#tl .timeline-filters .filters ul .active {
  background-color: #E5E2DD !important;
}

#tl .timeline-filters .filters ul li {
  background-color: #f7f5f3;
  padding: 4px 0px;
  width: 107px;
  justify-content: center;
}

@media (max-width: 992px) {
  #filterbyrow {
    display: flex !important;
    height: 100%;
    padding-top: 0;
  }

  #tp-and-ke-row {
    display: flex !important;
  }

  #filterbyrow .time-period-box,
  #filterbyrow .key-events-box {
    border-top: 1px solid #e9ecef !important;
    height: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #filterbyrow .key-events-description {
    text-align: center;
    margin-bottom: 0;
  }

  #filterbyrow .time-period-box {
    border-right: 1px solid #e9ecef !important;
    padding-right: 0;
  }

  #tl .time-period {
    margin: 0;
  }

  #filterbyrow .filter-by-box {
    border-top: 1px solid #a8a7af !important;
    border-bottom: 1px solid #a8a7af !important;
    padding-left: 0;
    padding-right: 0;
  }

  #filterbyrow .filter-by-box .filters {
    display: flex;
    align-items: center;
    flex-direction: row;
    height: 100%;
  }

  #filterbyrow .filter-by-box .filters .filter-heading {
    width: 67px !important;
    margin-bottom: 0;
    margin-left: 5px;
    margin-right: 5px;
  }

  #tl #timeline-filter-list {
    justify-content: start;
  }

  #tl .timeline-filters .filters ul li {
    width: 107px;
  }

  #slider {
    display: none;
  }

  #tl .time-period-box .tl-input:first-child {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  #tl .timeline-filters .filters ul li {
    width: 97px;
  }
}

/* ----------- Embedded Timeline ----------- */

#timeline-embed {
  border-top: 1px solid #e9ecef;
  width: 100%;
  height: 700px;
}

#timeline-embed .tl-icon-goend,
#timeline-embed .tl-icon-goback {
  display: none;
}

@media (max-width: 992px) {
  #timeline-embed .tl-storyslider {
    height: 350px !important;
  }

  #timeline-embed .tl-storyslider .tl-slidenav-next {
    top: 30px !important;
  }

  #timeline-embed .tl-storyslider .tl-slidenav-previous {
    top: 30px !important;
    right: 220px !important;
  }

  #timeline-embed .tl-slide {
    display: flex;
    flex-direction: column;
  }

  #timeline-embed .tl-slide-content-container {
    align-content: start;
    padding: 0;
    height: auto;
  }

  #timeline-embed .tl-slide-content-container .tl-slide-content {
    margin: 0;
  }

  #timeline-embed .tl-slide-content-container .tl-text {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
  }

  #timeline-embed .tl-text-headline-container .tl-headline {
    font-size: 25px;
    line-height: 25px;
  }
}

@media (max-width: 576px) {
  #timeline-embed .tl-storyslider .tl-slidenav-previous {
    right: 150px !important;
  }
}

.heading .tl__filter-title {
  font-size: 1.4rem;
  min-width: 170px;
  margin-bottom: 0;
}

#tl .tl-input label {
  font-size: 0.8rem;
  color: black !important;
}
.tl-input input {
  width: 87px;
  text-align: center;
  font-size: 0.8rem;
  border: none;
}

@media (max-width: 992px) {
  .heading .tl__filter-title {
    margin-bottom: 0.875rem;
    margin-top: 0.875rem;
  }
}

/* ----------- ACAPS event monitoring container----------- */

#aem {
  background-color: #f7f5f3;
}

#aem .chart-container {
  background-color: #f7f5f3;
  padding-top: 6rem;
}

/* Chart */
#aem .em-graph-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background-color: #f7f5f3;
}

#aem .em-graph-container .em-graph {
  width: 1050px;
  background-color: rgb(55, 70, 89);
  border-radius: 15rem 0 0 15rem;
  z-index: 3;
  height: 400px;
}

#aem .em-graph-container .em-graph {
  display: flex;
  justify-content: flex-end;
}

#aem .em-graph-container .em-graph-titles {
  padding-top: 3rem;
  padding-left: 2rem;
}

#aem .em-graph-container .em-graph-titles .subtitles {
  padding-bottom: 0;
}

#aem .chart-block {
  padding-left: 1rem;
  padding-bottom: 2rem;
}

#aem .em-graph-container .chart-block-scale {
  width: 90%;
}

/* Chart Tooltip */
div[id^="chartjs-tooltip"] {
  opacity: 0;
  position: absolute;
  font-size: 12px;
  padding: 6px;
  pointer-events: none;
  z-index: 1000;
  width: auto;
  height: auto;
  background-color: #fff;
  font-family: "Work Sans", sans-serif;
  border-radius: 4px;
  /* margin-left: 8px; */
}

div[id^="chartjs-tooltip"] .triangle-right {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border-top: 8px solid transparent; /* Adjust size of the triangle */
  border-bottom: 8px solid transparent; /* Adjust size of the triangle */
  border-left: 8px solid #fff; /* Set border color to white */
  top: 0; /* Align with the top of the tooltip */
  right: -5px; /* Adjust positioning to the right */
  transform: translateY(50%); /* Adjust vertical alignment */
}

/* Triangle pointing to the left */
div[id^="chartjs-tooltip"] .triangle-left {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border-top: 8px solid transparent; /* Adjust size of the triangle */
  border-bottom: 8px solid transparent; /* Adjust size of the triangle */
  border-right: 8px solid #fff; /* Set border color to white */
  top: -5px; /* Align with the top of the tooltip */
  left: -5px; /* Adjust positioning to the left */
  transform: translateY(50%); /* Adjust vertical alignment */
}

@media (min-width: 1500px) {
  #aem .em-graph-container .em-graph {
    width: 1200px;
  }
}

@media (min-width: 1800px) {
  #aem .em-graph-container .em-graph {
    width: 1300px;
  }
}

@media (max-width: 992px) {
  #aem .em-graph-container .em-graph {
    display: flex;
    justify-content: center;
    border-radius: 0 0 0 0;
    height: auto;
  }

  #aem .chart-container {
    background-color: #fff !important;
  }

  #aem .chart-container .top-heading {
    background-color: #fff !important;
    justify-content: center;
  }

  #aem .chart-container .top-heading .title {
    font-size: 2.5rem;
  }

  #aem .em-graph-container .em-graph-titles {
    text-align: center;
    padding-top: 1rem;
  }

  #aem .em-graph-container .em-graph-titles .subtitle {
    display: none;
  }

  #aem .chart-block {
    padding: 2rem 0;
  }
}

@media (max-width: 576px) {
  #aem .em-graph-container .chart-block-scale {
    width: 100%;
  }
}

/* Table */
#aem .em-table-container {
  width: 100%;
  overflow-x: auto;
  display: flex;
  justify-content: center;
  padding-bottom: 10rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-left: 1rem;
  padding-top: 6rem;
  padding-right: 10rem;
}

#aem .em-table thead {
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

#aem .em-table th {
  font-weight: bold;
  text-transform: uppercase;
  text-align: left;
  padding: 10px;
  font-family: "Work Sans", sans-serif;
  color: #262e3d;
  font-size: 0.7rem;
  vertical-align: top;

  padding-left: 0;
}

#aem .em-table th:first-child {
  min-width: 100px;
}

#aem .em-table th:nth-child(3) {
  min-width: 100px;
}

#aem .em-table tr {
  position: relative;
  z-index: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  font-family: breve_news_book !important;
}

#aem .em-table tr td {
  border-bottom: none;
  padding: 15px 0;
  max-width: 500px;
}

#aem .em-table tr td a {
  text-decoration: underline !important;
  color: #666666 !important;
}

#aem .em-table tr th,
#aem .em-table tr td {
  padding-left: 15px;
  padding-right: 15px;
}

#aem .em-table tr th:nth-child(1),
#aem .em-table tr td:nth-child(1) {
  padding-left: 0;
  padding-right: 15px;
}

#aem .em-table .read-more {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 992px) {
  #aem .em-table-container {
    width: auto;
    display: flex;
    justify-content: start;
    align-items: start;
    padding: 2.5rem 2.5rem 3rem 3rem;
    overflow-x: auto;
  }

  #aem .em-table tr > :nth-child(2) {
    max-width: none;
    min-width: 600px;
  }

  #aem .em-table tr td {
    min-width: none;
  }
}

/* Pagination */

.pagination {
  margin-bottom: 2rem;
  font-family: "Work Sans", sans-serif;
}

.pagination .pagination-selector {
  font-size: 14px;
  padding: 5px 10px;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.pagination #event-monitoring-table-page-input {
  text-align: center;
  height: 100%;
  font-size: 0.8rem;
  font-weight: 900;
  background-color: #f7f5f3;
  color: #262e3d;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #5f5f5f54;
  border-radius: 10%;
}

/* Error Message */
.error-message {
  background-color: rgba(255, 0, 0, 0.7);
  color: white;
  padding: 10px;
  border-radius: 10px;
  margin: 20px;
  z-index: 1000;
  position: fixed;
  bottom: 0;
  right: 0;
}
