/* Compact zebra-striped tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font: 12px/1.25 system-ui, sans-serif;
  color: #302b3a;
  background: #fff;
  border: 1px solid #d8cde5;
  border-radius: 6px;
}

thead {
  color: #fff;
  background: linear-gradient(135deg, #7552a8, #9b68bd);
}

th {
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  border-bottom: 2px solid #cfa9e8;
}

th:not(:last-child) {
  border-right: 1px solid rgb(255 255 255 / 18%);
}

td {
  padding: 5px 9px;
  vertical-align: top;
  border-bottom: 1px solid #e4dbea;
}

td:not(:last-child) {
  border-right: 1px solid #eee7f3;
}

/* Zebra stripes */
tbody > tr:nth-child(odd) {
  background: #fff;
}

tbody > tr:nth-child(even) {
  background: #f1e8fa;
}

tbody > tr:hover {
  background: #e8d8f5;
}

tbody > tr:last-child > td {
  border-bottom: 0;
}

/* Compact nested tables */
td table {
  margin: 1px 0;
  font-size: 11px;
  border-radius: 4px;
  box-shadow: none;
}

td table th {
  padding: 4px 6px;
  font-size: 9px;
}

td table td {
  padding: 3px 6px;
}

/* Horizontal scrolling on small screens */
@media (max-width: 700px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
