:root {
  --border: #d0d5dd;
  --muted: #667085;
  --error: #b42318;
  --bg: #f9fafb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1d2939;
  background: var(--bg);
  line-height: 1.5;
}

.header {
  padding: 1rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.header h1 {
  margin: 0;
  font-size: 1.4rem;
}

.subtitle {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.content {
  padding: 1.25rem 1.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.filters input {
  min-width: 16rem;
  max-width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  color: inherit;
}

button.secondary {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  font: inherit;
  cursor: pointer;
}

button.secondary:hover {
  background: var(--bg);
}

.status {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.status.error {
  color: var(--error);
  font-weight: 600;
}

.tablewrap {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  background: var(--bg);
  font-weight: 600;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}
