
:root {
  --text: #1c1d1f;
  --border: #eeeff1;
  --hover: #f7f7f8;
  --muted: #6b7280;
  --radius: 4px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
}

.banner {
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  padding: 6px 16px;
  text-align: center;
}

.topbar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.brand { font-weight: 600; font-size: 14px; color: var(--text); }
.brand-tag {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #8a6d00;
  background: #fff6d8;
  border: 1px solid #f0e0a0;
  border-radius: var(--radius);
  padding: 1px 5px;
  vertical-align: middle;
}

.who { display: flex; align-items: center; gap: 10px; }
.who span { color: var(--muted); font-size: 13px; }

.btn-primary, .btn-ghost {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
}

.btn-primary {
  background: var(--text);
  color: #fff;
  border: 1px solid var(--text);
  padding: 8px 12px;
  width: 100%;
}
.btn-primary:hover { background: #333; }

.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 10px;
}
.btn-ghost:hover { background: var(--hover); }
.btn-ghost:disabled { color: #b6b8bc; cursor: not-allowed; }

.login-view {
  display: flex;
  justify-content: center;
  padding: 64px 16px;
}
.login-card {
  width: 320px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-card h1 { font-size: 16px; margin: 0 0 2px; }
.muted { color: var(--muted); font-size: 12px; margin: 0 0 12px; }
.login-card label { font-size: 12px; font-weight: 500; margin-top: 8px; }
.login-card input {
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 4px;
}
.login-card input:focus { outline: 2px solid #cfd3d8; outline-offset: 0; }
.login-card button { margin-top: 14px; }
.error { color: #b42318; font-size: 12px; margin-top: 10px; }

.app-view { padding: 0 16px 24px; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}
.search-input, .status-select {
  font-family: inherit;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  background: #fff;
  color: var(--text);
}
.search-input { width: 280px; }
.spacer { flex: 1; }

.table-wrap {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow-x: auto;
  max-height: 70vh;
  overflow-y: auto;
}

table { border-collapse: collapse; width: 100%; table-layout: fixed; }

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 36px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  padding: 0 10px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  position: relative;
}
thead th .resizer {
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  z-index: 3;
}
thead th .sort-arrow { margin-left: 4px; color: var(--muted); }

tbody td {
  height: 40px;
  padding: 0 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}
tbody tr:hover td { background: var(--hover); }
tbody tr.duplicate td { background: #fffbea; }
tbody tr.duplicate:hover td { background: #fff6d8; }

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
}
.pill-never-reached { background: #f2f4f7; color: #475467; border-color: #e4e7ec; }
.pill-active { background: #eafaf0; color: #12794a; border-color: #cdeeda; }
.pill-false-information { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.pill-out { background: #f2f4f7; color: #667085; border-color: #e4e7ec; }
.pill-never-requested { background: #f2f4f7; color: #667085; border-color: #e4e7ec; }
.pill-angebot { background: #fff6d8; color: #8a6d00; border-color: #f0e0a0; }

.empty-state {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 4px;
}
