:root {
  color-scheme: light;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f6fb;
  color: #1f2937;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  margin-bottom: 20px;
}

h1,
h2 {
  margin-top: 0;
}

.form {
  display: grid;
  gap: 16px;
}

.form.inline {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: center;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input,
select,
button {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

select[multiple] {
  min-height: 140px;
}

.btn {
  background: #f3f4f6;
  cursor: pointer;
  border: 1px solid #d1d5db;
  transition: all 0.2s ease;
}

.btn:hover {
  background: #e5e7eb;
}

.btn.primary {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

.btn.primary:hover {
  background: #4338ca;
}

.btn.danger {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

.notice {
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 12px;
  border-radius: 8px;
}

.help {
  color: #6b7280;
}

.message {
  min-height: 20px;
  margin: 8px 0 0;
}

.message.error {
  color: #b91c1c;
}

.message.success {
  color: #047857;
}

.footer {
  text-align: center;
  color: #6b7280;
}

.option-group {
  display: grid;
  gap: 8px;
}

.option-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.dashboard .stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 16px;
}

.stat-card {
  background: #f9fafb;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}

.table th,
.table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.select {
  min-width: 140px;
}

.badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #e5e7eb;
}

.badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.badge.approved {
  background: #d1fae5;
  color: #047857;
}

.badge.rejected {
  background: #fee2e2;
  color: #b91c1c;
}

@media (max-width: 600px) {
  .container {
    padding: 16px;
  }

  .form.inline {
    grid-template-columns: 1fr;
  }

  .table {
    font-size: 12px;
  }

  .actions {
    width: 100%;
  }
}
