:root{ --bg:#ffffff; --text:#0f172a; --muted:#64748b; --border:#e5e7eb; --red:#ef4444; --green:#16a34a; }
*{ box-sizing:border-box; }
body{ margin:0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color:var(--text); background:var(--bg); }
header{ padding:16px 24px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:12px; }
.brand{ font-weight:800; font-size:22px; }
.container{ max-width:1000px; margin:24px auto; padding:0 16px; }
.card{ background:#fff; border:1px solid var(--border); border-radius:14px; padding:16px; box-shadow:0 10px 30px rgba(0,0,0,.04); }
.grid{ display:grid; grid-template-columns:repeat(12,1fr); gap:16px; }
.small{ color:var(--muted); font-size:12px; }
.btn{ display:inline-flex; align-items:center; gap:8px; border:1px solid var(--border); background:var(--red); color:#fff; padding:10px 14px; border-radius:12px; cursor:pointer; text-decoration:none; }
.btn.secondary{ background:#fff; color:var(--text); }
.input{ width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:12px; background:#f8fafc; }
.label{ font-size:12px; color:var(--muted); margin-bottom:6px; }
.success{ background:#ecfdf5; border:1px solid #a7f3d0; color:#065f46; padding:10px 12px; border-radius:10px; }
.alert{ background:#fef2f2; border:1px solid #fecaca; color:#7f1d1d; padding:10px 12px; border-radius:10px; }
.badge{ background:#e8f5e9; color:#166534; font-weight:700; padding:6px 10px; border-radius:999px; font-size:12px; }
.qr{ width:260px; height:260px; border:1px dashed var(--border); display:flex; align-items:center; justify-content:center; border-radius:12px; background:#fff; }
.muted{ color:var(--muted); }

@media (max-width: 768px){
  .container{ padding: 0 12px; }
  .grid{ grid-template-columns: repeat(6, 1fr); gap:12px; }
  .card{ padding:14px; border-radius:12px; }
  header{ padding:12px 14px; }
  .btn{ width:100%; justify-content:center; padding:12px 14px; border-radius:12px; }
  .input{ padding:14px; font-size:16px; }
  .qr{ width:100%; height:auto; }
  table thead{ display:none; }
  table tbody tr{ display:block; border:1px solid var(--border); border-radius:12px; padding:10px; margin-bottom:12px; }
  table tbody tr td{ display:flex; justify-content:space-between; padding:6px 0 !important; border:none !important; }
  table tbody tr td::before{ content: attr(data-label); font-weight:600; color:var(--muted); margin-right:12px; }
}
