:root {
  --white: #fff;
  --black: #000;
  --gray: #2b3c56;
  --red: #d3001c;
  --primary_lite: #e4ecfe;
}

.table-container-div {
  overflow-x: auto;
  overflow-y: auto;
  height: 100%;
}

.padding_1 {
  padding: 1rem;
}

.padding_2 {
  padding: 2rem;
}

.padding_3 {
  padding: 3rem;
}

.padding_4 {
  padding: 4rem;
}

.relative {
  position: relative;
}

/* ********************************
         MEDIA QUERY
********************************* */

@media (max-width:720px) {
  .flex {
    flex-wrap: wrap;
  }
}

@media (max-width:720px) {
  .padding_1, .padding_2, .padding_3, .padding_4 {
    padding: 1rem;
  }
}

@media (max-width:720px) {
  a {
    font-size: 14px;
  }
}

/* SMALL SCREEN */

@media (max-width:300px) {
  .padding_1, .padding_2, .padding_3, .padding_4 {
    padding: 0.5rem;
  }
}

@media (max-width:300px) {
  a {
    font-size: 10px;
  }
}

/* ********************************
            MAIN
********************************* */

.table-container-div {
  width: 100%;
  overflow-x: auto;
}

table {
  margin: auto;
  width: 100%;
  overflow: hidden;
  background-color: var(--white);
  border-radius: 10px;
  position: relative;
  border-collapse: collapse;
  z-index: 1;
  color: var(--gray);
  white-space: nowrap;
}

tbody tr:not(:last-child) {
  border-bottom: 1px solid rgba(1,1,1,0.2);
}

th, td {
  padding: 0.9rem;
  gap: 10px;
  position: relative;
  cursor: default;
}

thead {
  background-color: var(--primary_lite);
}

th {
  text-transform: uppercase;
}

td img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 5px;
}

tr td:last-child, tr td:nth-last-child(4), tr td:nth-last-child(8), tr td:nth-last-child(9) {
  text-align: center;
}

@media (min-width:721px) {
    tr td:last-child, tr td:nth-last-child(4), tr td:nth-last-child(8), tr td:nth-last-child(9) {
        max-width: 300px;
    }
}

tr:hover {
  background-color: #f9f9f9;
}


.active, .inactive {
  padding: 0 0.8rem;
  border-radius: 40px;
}

@media (max-width:720px) {
  table {
    background-color: transparent;
  }
}

@media (max-width:720px) {
  table thead {
    display: none;
  }
}

@media (max-width:720px) {
  table td {
    width: 100%;
    display: block;
    text-align: right;
  }
}

@media (max-width:720px) {
  table td:not(:last-child) {
    border-bottom: 1px solid rgba(1,1,1,0.2);
  }
}

@media (max-width:720px) {
  table td:before {
    content: attr(data-label);
    font-weight: 500;
    z-index: 1;
    float: left;
    color: var(--black);
  }
}

@media (max-width:720px) {
  tr {
    border-radius: 12px;
    display: block;
    margin: 0.5rem 0;
    border: solid 2px var(--red) !important;
  }
}

@media (max-width:720px) {
  tbody tr {
    border-bottom: none;
  }
}

@media (max-width:720px) {
  tr td {
    text-align: right !important;
  }
}

@media (max-width:720px) {
  td:last-child:hover:after {
    left: auto;
    right: 10%;
    transform: translate(50%, 50%);
  }
}

@media (max-width:720px) {
  th, td {
    padding: 0.5rem 1rem;
  }
}

