/**
 * Table buttons
 */

.spe-table-buttons {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  position: relative;
}

@media screen and (max-width: 991px) {
  .spe-table-buttons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .spe-table-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 575px) {
  .spe-table-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 479px) {
  .spe-table-buttons {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.spe-table-buttons__button {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 64px;
  overflow: hidden;

  transition: all ease 0.3s;
  border-radius: .3rem;
  border: solid 2px #eaeaea;
  background-color: white;
  color: #1b1a1a;

  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}

.spe-table-buttons__button::before {
  content: "";
  transition: ease 0.3s all;
  display: block;
  background-color: #4aab3d;
  border: none;
  border-radius: .3rem .3rem 0 0;
  width: 80%;
  height: 4px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.spe-table-buttons__button.spe-table-buttons__button--active,
.spe-table-buttons__button:hover{
  background-color: #4aab3d;
  border-color: #4aab3d;
  color: white;
}

.spe-table-buttons__button.spe-table-buttons__button--active::before,
.spe-table-buttons__button:hover::before {
  background-color: rgba(255, 255, 255, 0);
}

/**
 * Table
 */

.spe-table {
  display: none;
  opacity: 0;
  visibility: hidden;

  min-width: 100%;
  width: 100%;
  max-width: 100%;
}

.spe-table--active {
  display: block;
  opacity: 1;
  visibility: visible;
}

/**
 * DataTable Overrides
 */

.nl-table {
  border-radius: 12px;
  overflow: hidden;
}

.nl-table > .dataTables_wrapper {
  overflow: auto;
}