.stat-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
}

.stat-table thead tr:first-child th {
  position: sticky;
  top: 0;
  z-index: 11;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-table thead tr:nth-child(2) th {
  position: sticky;
  top: 2.3rem;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ensure the corner cell (first row, first column) has highest z-index */
.stat-table thead tr:first-child th.header-title {
  z-index: 25;
}

.stat-table th,
.stat-table td {
  border: 1px solid #1e3a8a;
  padding: 0.5rem;
  text-align: center;
}

.stat-table .header-title {
  background-color: #1e3a8a !important;
  color: white;
  font-weight: bold;
  font-size: 1.25rem;
  padding: 1rem;
  text-align: center;
  position: sticky;
  left: 0;
  z-index: 20;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.stat-table .header-group {
  background-color: #1e3a8a !important;
  color: white;
  font-weight: bold;
  text-align: center;
}

.stat-table .sub-header {
  background-color: #dbeafe !important;
  font-weight: 600;
  font-size: 0.75rem;
}

.stat-table .procedure-cell {
  text-align: left;
  padding: 0.5rem 1rem;
  background-color: #f9fafb !important;
  position: sticky;
  left: 0;
  z-index: 5;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.stat-table .specialty-header td {
  background-color: #1e40af !important;
  color: white;
  text-align: center !important;
}

.stat-table .total-row {
  font-weight: bold;
}

.stat-table .total-row td {
  background-color: #9ca3af !important;
}

.stat-table .total-row td:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  background-color: #9ca3af !important;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.stat-table .data-cell {
  background-color: white !important;
}
