* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  background-color: #f3f4f6;
  color: #111827;
}
a {
  color: inherit;
  text-decoration: none;
}
a.btn-link {
  color: #2563eb;
}
.topbar {
  height: 56px;
  background: #111827;
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.topbar-title {
  font-weight: 600;
}
.topbar-user {
  font-size: 14px;
  opacity: 0.9;
}
.layout {
  display: flex;
  min-height: calc(100vh - 56px);
}
.sidebar {
  width: 240px;
  background: #111827;
  color: #e5e7eb;
  padding: 16px 0;
}
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
}
.sidebar li.active, .sidebar li a:hover {
  background: #1f2937;
}
.content {
  flex: 1;
  padding: 24px;
}
h1 {
  margin-top: 0;
  margin-bottom: 16px;
}
.subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: #6b7280;
}
.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.06);
}
.card-narrow {
  max-width: 480px;
  margin: 40px auto;
}
.card-wide {
  max-width: 960px;
  margin: 40px auto;
}
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th, .table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
}
.table th {
  background: #f9fafb;
  text-align: left;
  font-weight: 600;
}
.row-clickable:hover {
  background: #f9fafb;
  cursor: pointer;
}
.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}
.form-vertical .form-group {
  margin-bottom: 12px;
}
.form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #4b5563;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}
.form-inline .form-group input,
.form-inline .form-group select {
  width: auto;
}
.form-vertical textarea {
  resize: vertical;
}
.form-actions {
  margin-top: 12px;
}
.form-actions .btn {
  margin-right: 8px;
}
.checkbox-group input[type="checkbox"] {
  margin-right: 6px;
}
.btn {
  border-radius: 999px;
  padding: 6px 14px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  background: #e5e7eb;
}
.btn.primary {
  background: #2563eb;
  color: white;
}
.btn-secondary {
  background: #f3f4f6;
}
.btn-danger {
  background: #dc2626;
  color: white;
}
.btn-small {
  padding: 4px 10px;
  font-size: 12px;
}
.btn.full {
  width: 100%;
}
.button-group .btn {
  margin-left: 6px;
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #e5e7eb;
}
.badge-success {
  background: #dcfce7;
  color: #166534;
}
.badge-info {
  background: #e0f2fe;
  color: #075985;
}
.badge-primary {
  background: #dbeafe;
  color: #1d4ed8;
}
.badge-secondary {
  background: #e5e7eb;
  color: #374151;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.page-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.tab-button {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 13px;
  cursor: pointer;
}
.tab-button.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.mt-16 {
  margin-top: 16px;
}
.invite-section {
  margin-top: 20px;
  border-top: 1px dashed #e5e7eb;
  padding-top: 12px;
}
.hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}
.hint.center {
  text-align: center;
}
.required {
  color: #dc2626;
  font-size: 11px;
  margin-left: 4px;
}
.walkin-body {
  background: #111827;
}
.walkin-main {
  padding: 16px;
}
.image-placeholder {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  background: repeating-linear-gradient(
    45deg,
    #e5e7eb,
    #e5e7eb 10px,
    #f3f4f6 10px,
    #f3f4f6 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  font-size: 13px;
}
.template-info {
  font-size: 13px;
  color: #374151;
}
.qr-camera-placeholder {
  width: 100%;
  height: 260px;
  border-radius: 16px;
  border: 2px dashed #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  text-align: center;
  padding: 16px;
}
.link-list {
  list-style: disc;
  padding-left: 20px;
  font-size: 14px;
}
.link-list li {
  margin-bottom: 4px;
}
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  .content {
    padding: 16px;
  }
  .form-inline {
    flex-direction: column;
    align-items: stretch;
  }
}
