table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 1rem 0;
  font-size: 1rem;
}

caption {
  caption-side: top;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

thead th {
  border: 1px solid #000;
  background-color: #fff;
  font-weight: bold;
  padding: 8px;
  text-align: left;
}

tbody td {
  border: 1px solid #000;
  padding: 8px;
}

tbody tr:nth-child(even) td {
  background-color: #f0f0f0;
}

tbody td:hover {
  background-color: #ddd;
}

@media (max-width: 991px) {
  table {
    font-size: 0.9rem;
  }
}

@media (max-width: 767px) {
  table {
    font-size: 0.8rem;
  }
  thead {
    display: none;
  }
  tbody td {
    display: block;
    width: 100%;
    text-align: right;
    position: relative;
    padding-left: 50%;
  }
  tbody td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 45%;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }
}
