/* Copied from cardee-eventflow-admin/EFA-EFP-design-system @ f4d5536 (tokens/components.css).
   Do not edit here without updating the source. */

/* ============================================================
   Yekwa / EventFlow — Component classes (plain CSS)
   Hand-authored, drop-in for Symfony/Twig partials. No build step.
   Every value derives from tokens so light/dark themes just work.
   ============================================================ */

/* ---------------------------------------------------------------
   BUTTONS  —  .btn + variant + size
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  line-height: 1;
  min-height: var(--tap-target);
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: var(--text-inverse);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}
.btn:hover { background: var(--brand-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5; cursor: not-allowed; transform: none;
}

/* Primary CTA — brand glow (used for pay / checkout) */
.btn--primary { background: var(--brand); color: var(--text-inverse); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--cta { box-shadow: var(--shadow-brand); }
.btn--cta:hover { box-shadow: var(--shadow-brand); }

/* Secondary — outlined */
.btn--secondary {
  background: var(--surface-card); color: var(--text-strong); border-color: var(--border-strong);
}
.btn--secondary:hover { background: var(--surface-hover); }

/* Ghost — text only */
.btn--ghost { background: transparent; color: var(--text-body); }
.btn--ghost:hover { background: var(--surface-hover); }

/* Accent — blue, for secondary emphasis actions */
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }

/* Danger — destructive */
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: var(--red-600); }

/* Subtle — tinted brand fill */
.btn--subtle { background: var(--brand-subtle); color: var(--brand-subtle-fg); }
.btn--subtle:hover { background: var(--brand-subtle); filter: brightness(0.96); }

/* Sizes */
.btn--sm { min-height: 34px; padding: 0 var(--space-3); font-size: var(--text-xs); border-radius: var(--radius-sm); }
.btn--lg { min-height: 52px; padding: 0 var(--space-8); font-size: var(--text-base); border-radius: var(--radius-lg); }
.btn--block { display: flex; width: 100%; }
.btn--icon { padding: 0; width: var(--tap-target); }
.btn--icon.btn--sm { width: 34px; }

/* ---------------------------------------------------------------
   FORMS
   --------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.label {
  font-family: var(--font-ui);
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  color: var(--text-strong);
}
.label .req { color: var(--danger); margin-left: 2px; }
.hint { font-size: var(--text-xs); color: var(--text-muted); }
.error-text { font-size: var(--text-xs); color: var(--danger-fg); }

.input, .select, .textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-strong);
  background: var(--surface-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0 var(--space-3);
  min-height: var(--tap-target);
  transition: border-color var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}
.textarea { padding: var(--space-3); min-height: 96px; resize: vertical; line-height: var(--leading-normal); }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--border-brand);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.input:disabled, .select:disabled, .textarea:disabled {
  background: var(--surface-sunken); color: var(--text-muted); cursor: not-allowed;
}
.input--invalid, .select--invalid, .textarea--invalid { border-color: var(--danger); }
.input--invalid:focus { box-shadow: 0 0 0 3px var(--danger-bg); }

/* Input with leading icon / prefix (e.g. currency) */
.input-group { position: relative; display: flex; align-items: stretch; }
.input-group__addon {
  display: inline-flex; align-items: center;
  padding: 0 var(--space-3);
  background: var(--surface-sunken);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.input-group__addon:first-child { border-right: 0; border-radius: var(--radius-md) 0 0 var(--radius-md); }
.input-group__addon:last-child { border-left: 0; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.input-group .input:not(:first-child) { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.input-group .input:not(:last-child) { border-radius: var(--radius-md) 0 0 var(--radius-md); }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237C8798' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-8);
}

/* Checkbox / radio — accent color drives native controls */
.checkbox, .radio { display: inline-flex; gap: var(--space-2); align-items: flex-start; cursor: pointer; font-size: var(--text-sm); }
.checkbox input, .radio input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch__track {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--gray-300); border-radius: var(--radius-pill);
  transition: background var(--dur-base) var(--ease-standard);
}
.switch__track::before {
  content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-spring);
}
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::before { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 3px var(--focus-ring); }

/* ---------------------------------------------------------------
   CARDS
   --------------------------------------------------------------- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card--flat { box-shadow: none; }
.card--raised { box-shadow: var(--shadow-md); }
.card--interactive { cursor: pointer; transition: box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard); }
.card--interactive:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card__media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-sunken); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--space-5); }
.card__title { font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: var(--text-lg); color: var(--text-strong); margin: 0 0 var(--space-2); }
.card__footer { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }

/* ---------------------------------------------------------------
   BADGES / TAGS / CHIPS
   --------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-family: var(--font-ui); font-weight: var(--fw-bold);
  font-size: var(--text-xs); line-height: 1;
  padding: 4px var(--space-2); border-radius: var(--radius-xs);
  background: var(--surface-sunken); color: var(--text-body);
}
.badge--brand   { background: var(--brand-subtle);  color: var(--brand-subtle-fg); }
.badge--success { background: var(--success-bg);    color: var(--success-fg); }
.badge--warning { background: var(--warning-bg);    color: var(--warning-fg); }
.badge--danger  { background: var(--danger-bg);     color: var(--danger-fg); }
.badge--info    { background: var(--info-bg);       color: var(--info-fg); }
.badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: var(--fw-regular);
  padding: 6px var(--space-3); border-radius: var(--radius-pill);
  background: var(--surface-card); border: 1px solid var(--border-strong); color: var(--text-body);
  cursor: pointer; transition: all var(--dur-fast) var(--ease-standard);
}
.chip--active { background: var(--brand); border-color: var(--brand); color: var(--text-inverse); }

/* ---------------------------------------------------------------
   ALERTS
   --------------------------------------------------------------- */
.alert {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  color: var(--text-body);
  background: var(--surface-sunken);
}
.alert__icon { flex: none; font-size: 1.15em; line-height: var(--leading-normal); }
.alert__title { font-weight: var(--fw-bold); color: var(--text-strong); margin: 0 0 2px; }
.alert--info    { background: var(--info-bg);    border-color: color-mix(in srgb, var(--info) 30%, transparent);    color: var(--info-fg); }
.alert--success { background: var(--success-bg); border-color: color-mix(in srgb, var(--success) 30%, transparent); color: var(--success-fg); }
.alert--warning { background: var(--warning-bg); border-color: color-mix(in srgb, var(--warning) 35%, transparent); color: var(--warning-fg); }
.alert--danger  { background: var(--danger-bg);  border-color: color-mix(in srgb, var(--danger) 35%, transparent);  color: var(--danger-fg); }
.alert--info .alert__title,
.alert--success .alert__title,
.alert--warning .alert__title,
.alert--danger .alert__title { color: inherit; }

/* ---------------------------------------------------------------
   TABLES (EFA data-dense)
   --------------------------------------------------------------- */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-card); }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th, .table td { padding: var(--space-3) var(--space-4); text-align: left; }
.table thead th {
  font-family: var(--font-ui); font-weight: var(--fw-bold);
  font-size: var(--text-xs); letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: var(--text-muted);
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table tbody td { border-bottom: 1px solid var(--border); color: var(--text-body); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-hover); }
.table--striped tbody tr:nth-child(even) td { background: var(--surface-sunken); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table__sort::after { content: " \e83d"; font-family: var(--font-icon); font-size: 0.7em; opacity: 0.5; }

/* ---------------------------------------------------------------
   MODAL / DIALOG
   --------------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(17, 21, 27, 0.55);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
}
.modal {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%; max-width: 480px;
  max-height: calc(100vh - 2 * var(--space-8));
  display: flex; flex-direction: column; overflow: hidden;
}
.modal__header { padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.modal__title { font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: var(--text-lg); color: var(--text-strong); margin: 0; }
.modal__body { padding: var(--space-6); overflow-y: auto; color: var(--text-body); font-size: var(--text-sm); }
.modal__footer { padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border); display: flex; gap: var(--space-3); justify-content: flex-end; }

/* ---------------------------------------------------------------
   PRICE BREAKDOWN  (money clarity — shared EFA + EFP)
   --------------------------------------------------------------- */
.price-breakdown {
  font-family: var(--font-numeric);
  font-size: var(--text-sm);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-4); padding: var(--space-2) 0;
}
.price-row__label { color: var(--price-line); display: inline-flex; align-items: baseline; gap: var(--space-2); }
.price-row__sub { color: var(--text-muted); font-size: var(--text-xs); }
.price-row__value { font-variant-numeric: tabular-nums; color: var(--text-body); }
.price-row--fee .price-row__label,
.price-row--fee .price-row__value { color: var(--price-fee); }
.price-row--tax .price-row__label,
.price-row--tax .price-row__value { color: var(--price-tax); }
.price-row--refund .price-row__value { color: var(--price-refund); }
.price-divider { border: 0; border-top: 1px dashed var(--border-strong); margin: var(--space-3) 0; }
.price-row--total {
  padding-top: var(--space-3);
}
.price-row--total .price-row__label {
  font-family: var(--font-heading); font-weight: var(--fw-bold);
  font-size: var(--text-base); color: var(--price-total);
}
.price-row--total .price-row__value {
  font-family: var(--font-heading); font-weight: var(--fw-bold);
  font-size: var(--text-xl); color: var(--price-total);
}
.price-free { color: var(--price-free); font-weight: var(--fw-bold); }

/* ---------------------------------------------------------------
   HELPERS
   --------------------------------------------------------------- */
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); }
.muted { color: var(--text-muted); }
.tabular { font-variant-numeric: tabular-nums; }
