:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Hiragino Sans", sans-serif;
}

body {
  margin: 0;
  background: #f4f5f7;
  color: #222;
}

header {
  background: #1f2933;
  color: #fff;
  padding: 1rem 2rem;
}

main {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

section {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.field {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

.field input,
.field select,
.field textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.actions {
  display: flex;
  gap: 0.5rem;
}

button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
}

button.secondary,
#cancel-button,
#close-detail {
  background: #6b7280;
}

button.danger {
  background: #dc2626;
}

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

th,
td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

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

.error {
  color: #dc2626;
  font-size: 0.85rem;
}

dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 0.5rem;
}

dt {
  font-weight: 600;
  color: #555;
}

.info {
  background: #e0f7fa;
  color: #006064;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1rem;
}