/* Sticky table header */
thead th {
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}

/* Keyboard shortcut styling */
.kbd {
  padding: 0.125rem 0.375rem;
  border: 12px solid #e5e7eb;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  background: #f9fafb;
}

/* Key-value pair styling */
.kv-key {
  white-space: nowrap;
  color: #6b7280;
}
.kv-val pre {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Table styling */
#tbl {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
#tbl th, #tbl td {
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.5rem 0.75rem;
  vertical-align: top;
  font-size: 16px; /* Match body font size */
  font-family: "Arial", sans-serif !important; /* Set font family */
  color: #333 !important; /* Set font color */
}
#tbl th {
  text-align: left;
  font-weight: 600;
}

/* Custom header grid */
#head-grid {
  display: grid;
  grid-template-columns: var(--head-grid-template, repeat(auto-fit, minmax(140px, 1fr)));
  width: 100%;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  overflow: hidden;
}
.head-cell {
  padding: 0.5rem 0.75rem;
  border-right: 1px solid #e5e7eb;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.head-cell:last-child {
  border-right: none;
}
.head-cell button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: inherit;
  color: inherit;
}

/* Statistics panel styles */
#stats {
  padding: 12px 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-weight: 500;
  color: #374151;
}