/* TABLE STYLES */
/* GENERAL */
main .tablepress {
  --head-bg-color: var(--yellow) !important;
  --border-color: unset !important;
  --even-bg-color: unset;
  --odd-bg-color: #efefef;
}
.tablepress td,
.tablepress th {
  border: 3px solid white !important;
  line-height: 1.1;
  vertical-align: middle !important;
}

.tablepress td {
  font-size: 0.875rem;
}
.tablepress th {
  font-size: 16px;
  text-align: center !important;
  height: 50px;
}

/* COLUMN GREY */
.tablepress.column-grey {
  --even-bg-color: unset;
  --odd-bg-color: unset;
}

.tablepress.column-grey tbody tr td:first-of-type,
.tablepress.column-grey tbody tr:first-of-type td {
  background-color: var(--light-light-grey);
  font-size: 0.875rem;
}

.tablepress.column-grey tbody tr td:first-of-type {
  width: 20%;
}

/* ALTERNATE */
.tablepress.alternate {
  --even-bg-color: unset;
  --odd-bg-color: #fbe385;
}

.tablepress.alternate tbody tr:first-of-type td {
  /* background-color: #fbe385;*/
  font-size: 0.875rem;
  font-weight: bold;
  /*  height: 50px; */
}

/* YELLOW GREY */
.tablepress.yellow-grey {
  --even-bg-color: unset;
  --odd-bg-color: #fbe385;
  --head-bg-color: white !important;
}

/*.tablepress.yellow-grey tbody tr:first-of-type td {
    background-color: #fbe385;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    height: 50px;
}

.tablepress.yellow-grey tbody tr:nth-of-type(2) td {
    font-weight: bold;
}*/

.tablepress.yellow-grey tbody tr:first-of-type td {
  background-color: var(--yellow);
  text-align: center;
  font-weight: bold;
  font-size: 0.875rem;
  height: 40px;
}

.tablepress.yellow-grey tbody tr:nth-of-type(2) td {
  background-color: #efefef;
  font-weight: bold;
}
table.tablepress {
  margin: 1rem 0;
}

@media only screen and (max-width: 1024px) {
  table.tablepress {
    overflow: auto;
    display: block;
    position: relative;
  }
  table.tablepress caption,
  table.tablepress thead,
  table.tablepress tbody {
    overflow-x: auto;
  }
  ::-webkit-scrollbar-thumb {
    background: #444444;
    border-radius: 20px;
  }
  ::-webkit-scrollbar-track {
    background: #dcd8d9;
    border-radius: 20px;
  }
  ::-webkit-scrollbar {
    height: 5px;
  }
  /* FIXED */
  table.tablepress.column-grey tr > th:first-child,
  table.tablepress.column-grey tr > td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
  }
  table.tablepress.alternate thead,
  table.tablepress.yellow-grey thead {
    position: sticky;
    left: 0;
    display: inline-block;
    width: 100%;
  }
  table.tablepress.alternate thead tr,
  table.tablepress.yellow-grey thead tr {
    display: block;
  }
  table.tablepress.alternate thead th,
  table.tablepress.yellow-grey thead th {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
