:root {
  --bg: #f5f4f1;
  --text: #1b1b1b;
  --accent: #1f6b5c;
  --accent-2: #d0a646;
  --border: #d8d6cf;
}

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: white;
  border-bottom: 1px solid var(--border);
}

.site-header nav a {
  margin-left: 16px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.container {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 20px 40px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

.overdue {
  background: #fff2f2;
}

.form-card,
.form-grid {
  background: white;
  padding: 16px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

input, select, textarea {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

button {
  background: var(--accent);
  border: none;
  color: white;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.flash {
  margin-bottom: 16px;
}

.flash-item {
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.flash-item.error {
  background: #ffe3e3;
}

.flash-item.success {
  background: #e2f7ed;
}

.file-list {
  background: white;
  padding: 16px;
  border: 1px solid var(--border);
  list-style: none;
}

.file-link {
  margin-left: 10px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.pager {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.pager a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.summary {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}

.badge-ok {
  background: #e2f7ed;
  color: #1f6b5c;
}

.badge-bad {
  background: #ffe3e3;
  color: #a02222;
}

.badge-neutral {
  background: #f0f0f0;
  color: #4a4a4a;
}
