/* ---------------------------------------------------------------------------
   Mambo Software - what the PHP build adds on top of mambo.css.

   The shared design stays in mambo.css (copied from the static reference); this
   file only styles the things a database-driven site needs and the flat pages
   never had: price lines, the admin tables, and the small inline forms.
   ------------------------------------------------------------------------- */

.shell > .contact__status {
  margin: 14px 0 0;
  border-radius: var(--radius);
}

/* Product page ------------------------------------------------------------- */

.app__price {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.app__toggle[aria-expanded="true"] .app__price { color: inherit }

.featurelist {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.5;
}

.featurelist li { padding-left: 16px; position: relative }

.featurelist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tint, var(--primary));
}

.app__foot { margin: 10px 0 0; font-size: 13px }

.detail__actions form { display: contents }

/* Cart and profile --------------------------------------------------------- */

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

.cartline form { display: flex }

.paytotal {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.paytotal__sum { border-top: 1px solid var(--border); padding-top: 8px; margin-top: 2px }

.paytotal__sum dd,
.paytotal__sum dt { font-weight: 800; color: var(--foreground) }

.paytotal--panel { margin-top: 0 }
.paytotal--apps { max-width: 72ch }

.resend { display: flex; gap: 8px }
.resend input { flex: 1; min-width: 0 }
.form--resend { margin-top: 14px }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.tag--paid { background: oklch(95% .05 150); color: oklch(42% .13 150) }

/* Sign-in modes ------------------------------------------------------------ */

.gate__card .btn--block { margin-top: 2px }

/* Staff desk --------------------------------------------------------------- */

.admin { display: grid; gap: 22px; align-content: start }

.admin__panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.table { width: 100%; border-collapse: collapse; font-size: 14px }

.table th, .table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table thead th {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.table tbody tr:last-child td { border-bottom: 0 }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap }
.table .wrap { max-width: 42ch }
.table .is-drift { color: oklch(46% .19 27); font-weight: 700 }

.btn--small { padding: 6px 10px; font-size: 13px }
.btn--link { background: none; border: 0; padding: 6px 10px; color: var(--muted-foreground); font-weight: 600 }
.btn--link:hover { color: var(--primary); text-decoration: underline }

.navlink__form { display: inline }

/* Invitation link on the gate ------------------------------------------------ */

.invite {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--primary);
  background: var(--muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
}

/* Agent desk --------------------------------------------------------------- */

.linkbox {
  font: 500 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 7px 9px;
  width: 34ch;
  max-width: 100%;
}

.sendform { display: grid; gap: 6px }

/* Content desk ------------------------------------------------------------- */

.deskbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 6px;
}

.deskbar__back {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-foreground);
  text-decoration: none;
  margin-right: 6px;
}

.deskbar__back:hover { color: var(--primary); text-decoration: underline }

.deskbar__tab {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-foreground);
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.deskbar__tab:hover { color: var(--foreground) }

.deskbar__tab.is-active {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
}

.swatch {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 6px;
  border-radius: 8px;
  background: color-mix(in oklab, var(--tint, var(--primary)) 14%, transparent);
  color: var(--tint, var(--primary));
  vertical-align: middle;
}

.iconpick {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.iconpick legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-foreground);
  padding: 0 4px;
}

.iconpick__one {
  display: inline-grid;
  gap: 2px;
  place-items: center;
  width: 62px;
  padding: 7px 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--tint, var(--primary));
  font-size: 11px;
}

.iconpick__one:has(input:checked) {
  border-color: var(--primary);
  background: color-mix(in oklab, var(--primary) 10%, transparent);
}

.iconpick__one input { margin: 0 }
.iconpick__one .muted { font-size: 10px }

/* An icon is path data only, so it needs the same box an input has. */
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--foreground);
}

select:focus-visible { outline-offset: 0; border-color: var(--ring) }

.featurerow {
  display: grid;
  gap: 12px;
  align-items: end;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 720px) {
  .featurerow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 84px auto }
}

.featurerow .switch { font-size: 13px }
.seatbox { width: 5.5ch; padding: 5px 7px; text-align: right }

@media (max-width: 640px) {
  .table { font-size: 13px }
  .table th, .table td { padding: 6px }
  .admin__panel { overflow-x: auto }
  .linkbox { width: 20ch }
}
