:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #2563eb;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.wrapper { width: min(1100px, calc(100% - 24px)); margin: 0 auto; }
.topbar { background: #111827; color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 12px; }
.topbar a { color: #fff; text-decoration: none; margin-left: 14px; }
.brand { font-weight: 700; }
.footer { padding: 24px 0 36px; color: var(--muted); }
.mobile-card, .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(17,24,39,.04);
  margin: 24px auto;
}
.mobile-card { max-width: 520px; }
.mobile-card.narrow { max-width: 420px; }
.center { text-align: center; }
.stack { display: grid; gap: 14px; }
label span, legend { display: block; margin-bottom: 6px; font-weight: 600; }
input, textarea, select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
}
fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.radio-item { display: block; margin: 8px 0; }
.radio-item input { width: auto; margin-right: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: #e5e7eb; color: #111827; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-small { padding: 8px 10px; font-size: 14px; }
.alert { padding: 12px 14px; border-radius: 12px; margin-top: 18px; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.muted { color: var(--muted); }
.dashboard-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.chip.active { background: #111827; color: #fff; }
.table-wrap { overflow: auto; background: #fff; border: 1px solid var(--border); border-radius: 18px; margin: 20px 0 30px; }
table { width: 100%; border-collapse: collapse; min-width: 1050px; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.badge { display: inline-block; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-accepted { background: #dbeafe; color: #1d4ed8; }
.badge-refused { background: #fee2e2; color: #b91c1c; }
.badge-completed { background: #dcfce7; color: #166534; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions form { margin: 0; }
.detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; margin: 24px 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li { padding: 12px; background: #f9fafb; border-radius: 12px; border: 1px solid var(--border); }
.qr-image { max-width: 300px; width: 100%; height: auto; }
.mt-16 { margin-top: 16px; }
@media (max-width: 768px) {
  .dashboard-head { flex-direction: column; align-items: flex-start; }
  .detail-grid { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; align-items: flex-start; }
}
