

.rightAligned {
  text-align: right;
}

.viz-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);;
  left: 0px;
  list-style: none;
  z-index: 99999;

  margin: 0;
  padding: 8px 0;

  color: var(--epoch-gray-700, #2B424B);
  font-family: Messina Sans;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.28px;

  border-radius: var(--Non-Pill-Radius, 8px);
  border: 1px solid var(--Epoch-Website-Gray-300, #CCD8D9);
  background: #FFF;

  display: flex;
  flex-direction: column;
  align-items: start;

  /* Menu Drop Shadow */
  box-shadow: 0px 5px 15px -3px rgba(0, 0, 0, 0.15);

  width: 199px;

  cursor: auto;
}

.viz-dropdown li::before {
  display: none;
}

.viz-dropdown .download-header {
  color: var(--epoch-gray-700, #2B424B);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.viz-dropdown li:not(:first-child) {
  margin-top: 12px;
}

.viz-dropdown .button {
  padding: 3px 10px;
  width: 100%;
  text-align: left;
  align-items: flex-start;
  justify-content: flex-start;
}

.viz-dropdown .button:not(:last-child) {
  margin-bottom: 5px;
}

.viz-dropdown li {
  display: flex;
  flex-direction: column;
}

.viz-dropdown button {
  text-align: left;
}

.viz-container table.dataTable th, table.dataTable td {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
  padding-right: 4px !important;
  padding-left: 4px !important;
}

.viz-container .dateSlider {
  margin: 10px auto;
}

.viz-container .download-header {
  font-size: 0.9em;
  text-align: left;
}

/* ------------------------------------------------------ */
/* Taken from https://stackoverflow.com/a/28074607 */
.viz-container .loading {
  display: inline-block;
  width: 16px;
}

.viz-container .loading:after {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
  -webkit-animation: ellipsis steps(3,end) 1800ms infinite;      
  animation: ellipsis steps(3,end) 1800ms infinite;
  content: "\2026"; /* ascii code for the ellipsis character */
  width: 5px;
}

@keyframes ellipsis {
  to {
    width: 20px;    
  }
}

@-webkit-keyframes ellipsis {
  to {
    width: 20px;    
  }
}
/* ------------------------------------------------------ */

.viz-container {
  display: flex;
  flex-direction: column;
}

.viz-container .plotter-container {
  min-height: 0;
  flex: 1;
  position: relative;
}

.viz-footer-bar {
  display: flex;
  padding: 12px 24px;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  align-self: stretch;

  border: 0px solid var(--epoch-gray-300, #CCD8D9);
  background: var(--epoch-gray-100, #EBF5F4);

  flex-wrap: wrap;
  justify-content: center;
  justify-content: space-between;
  row: 24px;
}

.viz-bottom-button-bar {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.viz-bottom-button-bar .button {
  color: var(--epoch-green-700, #034752);
}

.viz-bottom-button-bar #exportButton {
  position: relative;
}

.viz-footer-right {
  display: flex;
  align-items: center;
  gap: 48px;

  color: var(--epoch-gray-700, #2B424B);
  font-family: Messina Sans;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 14.4px */
  letter-spacing: -0.24px;
}

.viz-footer-right-label {
  font-weight: 700;
}

.viz-authors-container {
  text-wrap: nowrap;
}

.viz-license-container {
  display: flex;
  gap: 8px;
  text-wrap: nowrap;
  align-items: center;
}

.viz-license-icons {
  display: flex;
  gap: 4px;
}

.viz-license-icons img {
  height: 16px;
}

@media (max-width: 1225px) {
  .viz-footer-bar {
    flex-direction: column;
    row-gap: 18px;
  }
}

.viz-selector {
  left: 50px;
  top: 50px;
  max-width: calc(100vw - 10px);

  position: absolute;
  z-index: 100;

  width: 308px;
  padding: 8px 0px;

  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.02);
  background: var(--epoch-white, #FFF);

  /* Shadow/sm */
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.06), 0px 1px 3px 0px rgba(16, 24, 40, 0.10);
}

.viz-selector:not(.open) {
  display: none;
}

.viz-selector .selector-button {
  display: flex;
  height: 40px;
  padding: 6px 16px;
  align-items: center;
  gap: 12px;
  align-self: stretch;
  justify-content: space-between;

  cursor: pointer;

  color: var(--epoch-gray-700, #2B424B);
  font-family: Messina Sans;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 16.8px */
  letter-spacing: -0.28px;
}

.viz-selector .selector-button .check-icon {
  display: none;
}

.viz-selector .selector-button:hover {
  background: var(--epoch-gray-50, #F2FAF9);
}

.viz-selector .selector-button.selected {
  font-weight: 700;
}

.viz-selector .selector-button.selected .check-icon {
  display: block;
}

.plotter-container .graph-buttons {
  display: flex;
  gap: 4px;
}

.plotter-container .graph-buttons button {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.tippy-box[data-theme~='viz-plain'] {
  color: var(--epoch-gray-700, #2B424B);
  font-family: Messina Sans;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.28px;

  border-radius: var(--Non-Pill-Radius, 8px);
  border: 1px solid var(--Epoch-Website-Gray-300, #CCD8D9);
  background: #FFF;

  /* Menu Drop Shadow */
  box-shadow: 0px 5px 15px -3px rgba(0, 0, 0, 0.15);

  width: 199px;

  cursor: auto;
}

.tippy-box[data-theme~='viz-plain'] .tippy-content {
  padding: 0;
}

.new-viz-dropdown {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 8px 0;
}

.new-viz-dropdown > * {
  display: flex;
  padding: 8px var(--H-Padding, 12px);
  align-items: center;
  gap: 8px;
  align-self: stretch;
}

.viz-dropdown-header {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1px;
  text-transform: uppercase;
}

.viz-dropdown-option {
  cursor: pointer;
}

.viz-dropdown-option:hover {
  background: var(--Epoch-Website-Gray-100, #EBF5F4);
}

.new-viz-dropdown .share-twitter-button {
  text-decoration: none;
}

.new-viz-dropdown .share-twitter-button:hover {
  color: var(--epoch-gray-700, #2B424B);
}

.plotter-container .new-legend.interaction-mode .legend-item.selected {
  font-weight: 600;
  line-height: 120%; /* 16.8px */
  letter-spacing: -0.28px;
}

.plotter-container .new-legend.interaction-mode.only-one-category-mode.some-hovered .legend-item:not(.hovered),
.plotter-container .new-legend.interaction-mode .legend-item:not(.hovered):not(.selected) {
  color: var(--Epoch-Website-Gray-400, #90A5AB);
}

.plotter-container .new-legend.interaction-mode.only-one-category-mode.some-hovered .legend-item:not(.hovered) .icon path,
.plotter-container .new-legend.interaction-mode .legend-item:not(.hovered):not(.selected) .icon path {
  fill: rgba(155, 191, 193, 0.45);
  stroke: #9BBFC1;
}
