body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f7f6f2;
  color: #222;
}

.site-header {
  background: #26382f;
  color: white;
  padding: 16px 24px;
}

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

.site-header a {
  color: white;
  margin-right: 16px;
}

main {
  padding: 24px;
  max-width: 1200px;
}

.stats,
.grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.card,
section {
  background: white;
  border: 1px solid #d8d3c4;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

input,
select,
button {
  padding: 8px;
  font-size: 1rem;
}

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

th,
td {
  border: 1px solid #ddd6c6;
  padding: 8px;
  text-align: left;
}

th {
  background: #ede7d7;
}

.pager {
  margin-top: 16px;
  display: flex;
  gap: 16px;
}

dt {
  font-weight: bold;
}

dd {
  margin-bottom: 8px;
}

.messages { margin-bottom: 16px; }
.message { padding: 10px 12px; border-radius: 6px; margin-bottom: 8px; border: 1px solid #cfc7b6; background: #fff; }
.message.success { border-color: #9ab897; background: #edf7ec; }
.message.error { border-color: #c78c8c; background: #faeeee; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.button, button { background: #26382f; color: white; border: 0; border-radius: 5px; text-decoration: none; display: inline-block; cursor: pointer; }
.button { padding: 9px 12px; }
button.danger { background: #8a2e2e; }
.button.secondary { background: #6d6a61; }
.actions { display: flex; gap: 6px; align-items: center; }
.actions form { display: inline; }
.small { max-width: 70px; }
.edit-form label { display: block; font-weight: bold; margin: 0 0 12px; }
.edit-form input[type="text"], .edit-form input:not([type]), .edit-form select, .edit-form textarea { box-sizing: border-box; display: block; width: 100%; margin-top: 4px; }
textarea { font-family: Arial, sans-serif; font-size: 1rem; padding: 8px; }
.checkbox-row { display: flex !important; align-items: center; gap: 8px; font-weight: normal !important; }
.checkbox-row input { width: auto !important; }
.checkbox-grid { columns: 3; }
@media (max-width: 800px) { .toolbar, .title-row { flex-direction: column; align-items: stretch; } .checkbox-grid { columns: 1; } }

.sort-link {
  color: inherit;
  text-decoration: none;
}

.sort-link:hover {
  text-decoration: underline;
}

.sort-indicator {
  font-size: 0.85em;
  margin-left: 0.2rem;
}

.actions-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.button.primary {
  background: #0b3d75;
  color: #fff;
  border-color: #0b3d75;
}

button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.warning-note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #d9a441;
  background: #fff7e6;
  border-radius: 0.4rem;
}

.report-box {
  padding: 1rem;
  background: #f5f7fb;
  border: 1px solid #d6deea;
  border-radius: 0.4rem;
  overflow: auto;
  white-space: pre-wrap;
}
