:root {
  --bg: #f8fafc; /* slate-50 */
  --panel: #ffffff;
  --text: #0f172a; /* slate-900 */
  --muted: #475569; /* slate-600 */
  --accent: #2563eb; /* blue-600 */
  --accent-pressed: #1d4ed8;
  --ring: color-mix(in hsl, var(--accent) 60%, white);
}

/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 5px 10px;
  font: 16px/1.5 'Inter';
  color: var(--text);
  background: var(--bg);
}

h1 {
  margin: 5px 0;
}

a {
  color: #2563eb; /* blue-600 */
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #1e40af;
}

/* Dark mode link styles */
html.dark a {
  color: #93c5fd; /* blue-400 */
}
html.dark a:hover {
  color: #bfdbfe; /* blue-300 */
}

.button {
  /* Compact layout */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3em 0.6em; /* minimal spacing */

  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;

  /* Outlined style */
  background-color: transparent;
  color: #2563eb; /* blue-600 */
  border: 1.5px solid #2563eb;
  border-radius: 0.4em;

  /* Interaction */
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  background-color: #2563eb;
  color: #ffffff;
}

.button:active {
  background-color: #1d4ed8; /* blue-700 */
  border-color: #1d4ed8;
}

.button:disabled {
  color: #9ca3af; /* gray-400 */
  border-color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Compact Table Reset */
table {
  border-collapse: collapse; /* Merge borders */
  border-spacing: 0; /* No extra spacing */
  width: 100%; /* Full width by default */
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem; /* Slightly smaller font for compactness */
  color: var(--text, #111);
}

thead,
tfoot {
  background-color: var(--header-bg, #f5f5f5);
  font-weight: 600;
}

th,
td {
  padding: 0.35rem 0.5rem; /* Compact padding */
  text-align: left;
  vertical-align: middle;
  border: 1px solid var(--border, #ddd); /* Subtle border */
}

th {
  text-align: left;
  font-weight: 600;
}

tbody tr:nth-child(even) {
  background-color: var(--row-alt-bg, #fafafa);
}

tbody tr:hover {
  background-color: var(--row-hover-bg, #f0f0f0);
}

caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  padding: 0.25rem 0;
}

a {
  color: var(--link, #007bff);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header fieldset span {
  margin-right: 10px;
}

.header_inline_block {
  display: inline-block;
  width: 100px;
}

header span > em {
  color: var(--muted);
}

.ag-center-cols-viewport {
  min-height: unset !important;
}
