body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #1f2933;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: #1f2937;
  color: #fff;
  padding: 16px;
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  font-size: 20px;
  font-weight: 600;
  color: inherit;
}

.site-nav a {
  color: #d1d5db;
  margin-left: 16px;
}

.site-nav a.is-active {
  color: #fff;
  font-weight: 600;
}

.layout {
  display: flex;
  max-width: 1100px;
  margin: 24px auto;
  gap: 24px;
  padding: 0 16px 40px;
  box-sizing: border-box;
}

.layout__sidebar {
  width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  box-sizing: border-box;
}

.layout__sidebar h2 {
  margin-top: 0;
  font-size: 16px;
  margin-bottom: 12px;
}

.layout__sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layout__sidebar a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  color: #1f2933;
}

.layout__sidebar a.is-active,
.layout__sidebar a:hover {
  background: #e5edff;
}

.layout__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
}

.info-list {
  padding-left: 18px;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.table-scroll {
  overflow-x: auto;
}

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

th,
td {
  border: 1px solid #e5e7eb;
  padding: 10px;
  text-align: left;
  font-size: 14px;
}

th {
  background: #f3f4f6;
}

.table-actions__cell {
  display: flex;
  gap: 8px;
  align-items: center;
}

.button {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #2563eb;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.button.secondary {
  background: #fff;
  color: #2563eb;
}

.button.danger {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.button.secondary:hover {
  background: #e5edff;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.message {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
}

.message.success {
  background: #dcfce7;
  border: 1px solid #22c55e;
  color: #166534;
}

.message.error {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

.note {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}

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

.form-simple {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-simple label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-weight: 600;
}

.form-simple input {
  padding: 8px;
  border: 1px solid #cbd5f5;
  border-radius: 6px;
  font-size: 14px;
}

.form-hint {
  font-size: 12px;
  color: #6b7280;
}

.form-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.site-footer {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: #6b7280;
}

.message.error,
.message.success {
  font-weight: 500;
}

.note {
  background: #f3f4f6;
  padding: 8px;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .layout__sidebar {
    width: 100%;
  }
}
