@keyframes loading {
  0% {
    background-position: -200%;
  }

  100% {
    background-position: 200%;
  }
}

.load {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400% 100%;
  animation: 3.5s loading linear infinite;
  z-index: 2;
}

.no-data-placeholder {
  position: absolute;
  display: flex;
  justify-content: center;
  z-index: 1;
  background-color: #FFF;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.no-data-placeholder-comp {
  position: absolute;
  display: flex;
  justify-content: center;
  z-index: 1;
  background-color: #FFF;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

/* legend styles */

#custom-legend {
  border: 1px solid #fff;
  width: 100%;
}

#custom-legend th {
  font-size: 15px;
  font-weight: bold;
  font-family: sans-serif;
}

#custom-legend input {
  width: 15px;
  height: 15px;
  display: block;
  margin: 0 auto;
  text-align: center;
  line-height: 1.5;
}

#custom-legend input[type="checkbox"]:checked {
  accent-color: #198754;
}

#custom-legend td,
#custom-legend th {
  font-size: 14px;
  padding: 10px;
}

#custom-legend tr:nth-child(even) {
  background-color: #f8f9fa;
  border: 1px solid #fff;
}

#custom-legend td label {
  padding-left: 5px;
}

.ellipsis-legend-wrapper {
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  max-height: 44px;
  min-height: auto;
  overflow: hidden;
  padding-right: 20px;
  padding-left: 20px;
  margin: auto 10px;
  position: relative;
}

.trunc-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  width: 100%;
  line-height: 1;
}

.trunc-list li {
  margin: 0;
  padding: 0;
  flex: 1 0 auto;
}

.trunc-list label {
  display: block;
  padding: 0.5em;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}

.ellipsis {
  font-size: 20px;
  position: absolute;
  right: 0;
  bottom: 0;
  padding-left: 20px;
}

.ellipsis-legend-container {
  background-color: #fff;
  height: 60px;
  max-height: 60px;
}
