:root {
  --bg: #f2f5fb;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --border: #dbe4f0;
  --shadow-sm: 0 2px 8px rgba(37, 99, 235, 0.08);
  --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.08);
  --focus-ring: #1d4ed8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  background: radial-gradient(circle at top right, #e9f0ff, transparent 28%), var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  background: #1d4ed8;
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  text-decoration: none;
}
.skip-link:focus {
  left: 10px;
}
.container { max-width: 1260px; margin: 0 auto; padding: 0 18px; }
.content { padding-bottom: 30px; flex: 1 0 auto; }
.content > section,
.content > article,
.content > .card,
.content > .kpi-grid {
  width: 100%;
  max-width: 100%;
}
.page-full-width {
  width: 100%;
  max-width: 100%;
}
.page-full-width > section,
.page-full-width .card,
.page-full-width .table-wrap,
.page-full-width .template-form-sections,
.page-full-width .template-block,
.page-full-width .template-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.site-footer {
  border-top: 1px solid #cfdcf3;
  background: linear-gradient(135deg, #0b1220 0%, #111b2f 55%, #162441 100%);
  color: #e6edf8;
  margin-top: auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.site-footer-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}
.site-footer-brand { display: flex; gap: 12px; align-items: center; min-width: 320px; }
.site-footer-brand strong { letter-spacing: 0.01em; font-size: 14px; }
.site-footer-brand p { margin: 2px 0 0; font-size: 12px; color: #a5b7d6; }
.site-footer-logo {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.35);
}
.site-footer-api {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.site-footer-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cddbf4;
}
.site-footer-links { display: flex; gap: 8px; flex-wrap: wrap; }
.site-footer-links a {
  color: #dbeafe;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(147, 197, 253, 0.32);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(30, 64, 175, 0.2);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.site-footer-links a:hover {
  color: #fff;
  border-color: rgba(191, 219, 254, 0.65);
  background: rgba(59, 130, 246, 0.28);
  transform: translateY(-1px);
}

.page-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 14px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgba(242, 245, 251, 0.98) 80%, rgba(242, 245, 251, 0));
  backdrop-filter: blur(2px);
}
.page-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-left { width: 100%; }

.breadcrumb { color: var(--muted); font-size: 13px; font-weight: 500; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb .sep { margin: 0 8px; }
.breadcrumb { margin-top: 8px; }

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 10px;
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
}
.nav-dropdown {
  position: relative;
  flex: 0 0 auto;
}
.nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid #c7d2fe;
  background: linear-gradient(180deg, #ffffff, #eef2ff);
  color: #1e3a8a;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}
.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}
.nav-dropdown > summary::after {
  content: "▾";
  margin-left: 6px;
  font-size: 11px;
}
.nav-dropdown[open] > summary::after {
  content: "▴";
}
.nav-dropdown-active > summary {
  border-color: #60a5fa;
  color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.nav-dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  border: 1px solid #dbe3f3;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-md);
  z-index: 60;
  overflow: hidden;
}
.nav-dropdown-menu a {
  padding: 9px 11px;
  text-decoration: none;
  color: #1e293b;
  border-bottom: 1px solid #edf2f7;
  font-size: 13px;
}
.nav-dropdown-menu a:last-child {
  border-bottom: none;
}
.nav-dropdown-menu a:hover {
  background: #eff6ff;
  color: #1d4ed8;
}
.nav-dropdown-menu a.nav-link-active {
  background: #dbeafe;
  color: #1e3a8a;
  font-weight: 700;
}
.nav-dropdown-menu a.nav-link-disabled {
  background: #f8fafc;
  color: #94a3b8;
  pointer-events: none;
  cursor: not-allowed;
}
.nav-menu-form {
  margin: 0;
}
.nav-menu-button {
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  border: none;
  border-top: 1px solid #edf2f7;
  background: #fff;
  color: #1e293b;
  font-size: 13px;
  cursor: pointer;
}
.nav-menu-button:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.header-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.btn {
  display: inline-block;
  background: linear-gradient(180deg, #3b82f6, var(--primary));
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.btn-secondary {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #334155;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  box-shadow: none;
}
.btn-secondary:hover {
  background: linear-gradient(180deg, #ffffff, #eef2f7);
  border-color: #94a3b8;
  box-shadow: none;
}
.btn-danger { background: linear-gradient(180deg, #ef4444, var(--danger)); }
.btn-warning {
  background: linear-gradient(180deg, #f59e0b, var(--warning));
  color: #fff;
}

.alert {
  border-radius: 12px;
  border: 1px solid #c7dcff;
  background: #ecf4ff;
  color: #123d80;
  padding: 10px 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card > .card {
  border-radius: 14px;
  background: var(--surface-soft);
  box-shadow: none;
  margin-top: 10px;
}
.card > .card:hover {
  box-shadow: none;
  transform: none;
}
.card:hover {
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  border-color: #c7d8f4;
}
.card h2, .card h3 {
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.card-muted {
  background: var(--surface-soft);
}

.section-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.helper-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.helper-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d4e2f8;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  padding: 5px 10px;
  font-size: 12px;
  color: #1e3a8a;
  font-weight: 600;
}

.status-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.status-active, .status-validated, .status-done, .status-confirmed { background: #dcfce7; color: #14532d; border-color: #4ade80; }
.status-draft, .status-planned, .status-queued { background: #dbeafe; color: #1e3a8a; border-color: #60a5fa; }
.status-rejected, .status-failed, .status-archived { background: #fee2e2; color: #7f1d1d; border-color: #f87171; }
.status-printed { background: #dcfce7; color: #14532d; border-color: #4ade80; }
.status-needs_reprint { background: #ffedd5; color: #7c2d12; border-color: #fb923c; }
.status-never_printed { background: #dbeafe; color: #1e3a8a; border-color: #60a5fa; }
.status-submitted, .status-running { background: #fef3c7; color: #78350f; border-color: #f59e0b; }

.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.kpi {
  font-size: 28px;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.kpi-label { color: #475569; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.card .table-wrap,
.card .template-form-sections,
.card .template-block,
.card .form-grid {
  width: 100%;
}
.table-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.table-tools input,
.table-tools select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  font-size: 13px;
  min-width: 180px;
}
.table-tools .helper-chip {
  margin-right: 6px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}
.table th, .table td { padding: 10px 10px; border-bottom: 1px solid #edf2f8; text-align: left; font-size: 13px; vertical-align: top; }
.table th {
  color: #1f3b72;
  font-weight: 700;
  background: linear-gradient(180deg, #f4f8ff, #edf4ff);
  position: sticky;
  top: 0;
  z-index: 2;
}
.table tbody tr:nth-child(2n) td { background: #fcfdff; }
.table tr:hover td { background: #f1f7ff; }
.table code { font-size: 11px; color: #1e3a8a; }
.table-empty-row td {
  text-align: center;
  color: #64748b;
  font-style: italic;
  padding: 16px 10px;
  background: #f8fbff;
}
.table-compact th,
.table-compact td {
  padding: 7px 8px;
  line-height: 1.25;
}
.participants-table {
  min-width: 980px;
}
.participants-actions-cell {
  width: 320px;
  text-align: left;
}
.participants-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.participants-actions details {
  width: 100%;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fbff;
  padding: 4px 6px;
}
.participants-actions summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
}
.participants-actions details .inline-form {
  margin-top: 6px;
}
.participants-actions .inline-form input,
.participants-actions .inline-form select {
  max-width: 150px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid #cedcf3;
  border-radius: 10px;
  padding: 9px 10px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  font-size: 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field span {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.template-form-sections .field span {
  text-transform: none;
  letter-spacing: 0.01em;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-grid button { width: max-content; }
.form-grid .checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border: 1px dashed #cdd8e8;
  border-radius: 10px;
  background: #f8fbff;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inline-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-right: 8px;
  flex-wrap: wrap;
}

.inline-form input {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 6px 8px;
  max-width: 180px;
}
.details-summary {
  cursor: pointer;
  font-weight: 700;
  margin: 8px 0;
  color: #1e3a8a;
}
.format-card-title { margin-bottom: 4px; }
.format-card-meta { margin-bottom: 0; }
.format-delete-row { margin-top: 8px; }
.format-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 14px;
  margin-top: 10px;
}

.template-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px;
}
.template-form-sections {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.template-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: #fcfdff;
  width: 100%;
  min-inline-size: 0;
}
.template-block legend {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preview-box {
  border: 1px dashed #9fb7da;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #f3f7ff);
  padding: 14px;
  position: sticky;
  top: 84px;
  align-self: flex-start;
}
.preview-badge {
  margin: 0 auto;
  width: 324px;
  height: 504px;
  border-radius: 12px;
  border: 2px solid #8eaadb;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.preview-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.preview-bg-exposure {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.preview-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.15;
  pointer-events: none;
  z-index: 3;
}
.preview-insert-frame {
  position: absolute;
  border: 2px dashed rgba(30, 64, 175, 0.85);
  border-radius: 8px;
  background: rgba(219, 234, 254, 0.14);
  pointer-events: none;
  z-index: 3;
}
.preview-seal-top,
.preview-seal-right,
.preview-seal-bottom,
.preview-seal-left {
  position: absolute;
  background: repeating-linear-gradient(
    45deg,
    rgba(251, 191, 36, 0.18),
    rgba(251, 191, 36, 0.18) 6px,
    rgba(245, 158, 11, 0.28) 6px,
    rgba(245, 158, 11, 0.28) 12px
  );
  pointer-events: none;
  z-index: 3;
}
.preview-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  text-align: center;
  top: 18px;
  font-size: 17px;
  font-weight: 700;
  z-index: 4;
}
.preview-role {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  text-align: center;
  top: 50px;
  font-size: 13px;
  z-index: 4;
}
.preview-boxes {
  position: absolute;
  display: flex;
  gap: 4px;
  z-index: 4;
}
.preview-boxes.bottom { left: 12px; right: 12px; bottom: 12px; justify-content: center; }
.preview-boxes.secondary.bottom { bottom: 34px; }
.preview-boxes.left_top { left: 10px; top: 92px; flex-direction: column; align-items: flex-start; }
.preview-boxes.left_bottom { left: 10px; bottom: 12px; flex-direction: column-reverse; align-items: flex-start; }
.preview-boxes.right_top { right: 10px; top: 92px; flex-direction: column; align-items: flex-end; }
.preview-boxes.right_bottom { right: 10px; bottom: 12px; flex-direction: column-reverse; align-items: flex-end; }
.preview-boxes.secondary.left_top { left: 30px; }
.preview-boxes.secondary.left_bottom { left: 30px; }
.preview-boxes.secondary.right_top { right: 30px; }
.preview-boxes.secondary.right_bottom { right: 30px; }
.preview-boxes span {
  width: 14px;
  height: 14px;
  border: 1px solid #1f2937;
  background: #fff;
}
.preview-group-label {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f172a;
  text-transform: none;
  z-index: 4;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 10px;
  align-items: center;
}
.range-row output {
  display: inline-flex;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Public pages premium pass */
.public-hero {
  border: 1px solid #c7dbff;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.22), transparent 45%),
    radial-gradient(circle at bottom left, rgba(147, 197, 253, 0.2), transparent 50%),
    linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}
.public-hero-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.public-hero h2 { margin: 0 0 6px; }
.public-hero p { margin: 0; color: #475569; }
.public-event-logo {
  height: 72px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}
.event-logo-thumb {
  height: 70px;
  width: auto;
  max-width: 260px;
  border-radius: 10px;
  border: 1px solid #dbe4f0;
  padding: 4px;
  background: #fff;
  object-fit: contain;
}
.public-card {
  border: 1px solid #c8dafe;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.public-form {
  gap: 12px;
}
.public-form .field > span {
  color: #1e3a8a;
}
.public-form input,
.public-form select,
.public-form textarea {
  border-color: #c7d2fe;
  background: #fff;
}
.public-form input:focus,
.public-form select:focus,
.public-form textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}
.public-matrix-wrap {
  grid-column: 1 / -1;
  border: 1px solid #cbdaf6;
  border-radius: 12px;
  padding: 10px;
  background: #f8fbff;
}
.public-table-wrap {
  border-color: #cfddf7;
}
.public-table-wrap .table th {
  background: #eef4ff;
}
.public-table-wrap .table td small {
  color: #334155;
}

@media (max-width: 900px) {
  .page-header { flex-direction: column; align-items: flex-start; }
  .quick-nav { width: 100%; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu {
    position: static;
    margin-top: 6px;
    min-width: 100%;
  }
  .kpi-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; }
  .template-grid { grid-template-columns: 1fr; }
  .preview-box {
    position: static;
    top: auto;
  }
  .table { min-width: 620px; }
  .site-footer-inner { flex-direction: column; align-items: flex-start; }
  .site-footer-api { justify-content: flex-start; }
  .public-hero-head { flex-direction: column; align-items: flex-start; }
  .table-tools input,
  .table-tools select {
    min-width: 140px;
    flex: 1;
  }
  .table-mobile-cards {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }
  .table-mobile-cards thead {
    display: none;
  }
  .table-mobile-cards tbody tr {
    display: block;
    margin: 0 0 10px;
    border: 1px solid #d8e4f7;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
  }
  .table-mobile-cards tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    border-bottom: 1px dashed #e2e8f0;
    padding: 7px 0;
    text-align: right;
  }
  .table-mobile-cards tbody td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    flex: 0 0 42%;
  }
  .table-mobile-cards tbody td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .table-mobile-cards tbody td[data-label^="Action"] {
    display: block;
    text-align: left;
  }
  .table-mobile-cards tbody td[data-label^="Action"]::before {
    display: block;
    margin-bottom: 6px;
  }
  .table-mobile-cards .inline-form {
    width: 100%;
    margin-right: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
  }
  .table-mobile-cards .inline-form input,
  .table-mobile-cards .inline-form select {
    width: 100%;
    max-width: 100%;
  }
  .table-mobile-cards .inline-form .btn,
  .table-mobile-cards td[data-label^="Action"] > form .btn {
    width: 100%;
  }
  .participants-table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }
  .participants-table thead {
    display: none;
  }
  .participants-table tbody tr {
    display: block;
    margin: 0 0 10px;
    border: 1px solid #d8e4f7;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
  }
  .participants-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    border-bottom: 1px dashed #e2e8f0;
    padding: 7px 0;
    text-align: right;
  }
  .participants-table tbody td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    flex: 0 0 42%;
  }
  .participants-table tbody td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .participants-actions-cell {
    width: 100%;
  }
  .participants-actions-cell::before {
    align-self: flex-start;
  }
  .participants-actions {
    width: 100%;
    align-items: stretch;
  }
  .participants-actions details {
    width: 100%;
  }
  .participants-actions .inline-form {
    width: 100%;
    margin-right: 0;
  }
  .participants-actions .inline-form input,
  .participants-actions .inline-form select {
    max-width: 100%;
    width: 100%;
  }
}
