table {
  border-collapse: collapse;
}

thead {
  background-color: var(--darkgray);
  color: #fff;
}

th {
  white-space: nowrap;
  text-align: left;
}

th, td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  overflow: hidden;
  text-overflow: ellipsis;
}

tbody tr { transition: background-color 0.3s ease; }
tbody tr:nth-child(even) { background-color: #f9f9f9; }
tbody tr:hover { background-color: #eaeaea; }

/* Overview table: fixed layout with column widths */
.overview-table {
  table-layout: fixed;
}

.overview-table th:nth-child(1) { width: 1rem; }
.overview-table th:nth-child(2) { width: 20rem; }
.overview-table th:nth-child(3) { width: 4rem; }
.overview-table th:nth-child(4) { width: 2rem; }
.overview-table th:nth-child(5) { width: 12rem; }

/* Details table: fixed layout with column widths */
.details-table {
  table-layout: fixed;
}

.details-table th:nth-child(1) { width: 20rem; }
.details-table th:nth-child(2) { width: 7rem; }
.details-table th:nth-child(3) { width: 5.5rem; }

/* Score colors */
.alert { color: #c62828; font-weight: 600; }
.wow { color: #2e7d32; }
td.score-cell.alert { background-color: #f0bfbf; }
td.score-cell.wow { background-color: #c8e6c9; }
td.score-cell.replaced { color: #888; text-decoration: line-through; background: transparent; }

/* Greeting table */
.greeting-table {
  margin-top: .9rem;
  width: auto;
  background: #fff;
}

.greeting-table td {
  border: none;
  padding: 0.15rem 0.5rem 0.15rem 0;
  vertical-align: baseline;
  background-color: #fff;
}

.greeting-table td:first-child {
  text-align: right;
}

.greeting-table tr:first-child td {
  font-size: 1.6rem;
}
