/* BAHAMUT COMMERCE — Dispatch Ticket Spool orders */

.page-orders.a29-or {
  background: var(--a29-cream);
}

.page-orders.a29-or .a29-btn-soft {
  background: var(--a29-linen);
  color: var(--a29-emerald-dark);
  border: 1px solid var(--a29-linen);
}

.page-orders.a29-or .a29-btn-soft:hover {
  background: var(--a29-emerald);
  color: var(--a29-white);
  border-color: var(--a29-emerald);
}

/* —— Spool head —— */
.a29-or-spoolhead {
  position: relative;
  padding: 2.25rem 0 3rem;
  background: var(--a29-ink);
  color: var(--a29-white);
  overflow: hidden;
}

.a29-or-perf {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background:
    radial-gradient(circle at 6px 6px, var(--a29-cream) 5px, transparent 5px) 0 0 / 12px 12px repeat-x;
  opacity: 0.25;
}

.a29-or-spoolhead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 2rem;
  align-items: center;
}

.a29-or-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--a29-mustard);
}

.a29-or-title {
  margin: 0;
  font-family: var(--a29-font-display);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  max-width: 14ch;
}

.a29-or-title em {
  font-style: italic;
  color: var(--a29-mustard);
}

.a29-or-lede {
  margin: 0.75rem 0 0;
  max-width: 44ch;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.a29-or-dial {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  justify-content: center;
}

.a29-or-dial-face {
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.a29-or-dial-face span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--a29-mustard);
  border-radius: 50%;
}

.a29-or-dial-face span:nth-child(1) { top: 4px; left: 50%; transform: translateX(-50%); }
.a29-or-dial-face span:nth-child(2) { right: 4px; top: 50%; transform: translateY(-50%); }
.a29-or-dial-face span:nth-child(3) { bottom: 4px; left: 50%; transform: translateX(-50%); }
.a29-or-dial-face span:nth-child(4) { left: 4px; top: 50%; transform: translateY(-50%); }

.a29-or-dial strong {
  font-family: var(--a29-font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--a29-mustard);
}

.a29-or-dial em {
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* —— Floor —— */
.a29-or-floor {
  padding: 2rem 0 4rem;
  margin-top: -0.75rem;
  position: relative;
  z-index: 2;
}

.a29-or-loading {
  margin-top: 1rem;
  padding: 1.75rem;
  text-align: center;
  background: var(--a29-white);
  border: 1px dashed var(--a29-linen);
  color: var(--a29-muted);
  font-size: 0.9rem;
}

/* Guest lockbox */
.a29-or-guest {
  max-width: 480px;
  margin: 0 auto;
}

.a29-or-lockbox {
  padding: 2.5rem 1.75rem;
  text-align: center;
  background: var(--a29-white);
  border: 2px solid var(--a29-ink);
  box-shadow: 6px 6px 0 var(--a29-emerald-dark);
}

.a29-or-lockbox-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.a29-or-lockbox h2 {
  margin: 0 0 0.5rem;
  font-family: var(--a29-font-display);
  font-size: 1.35rem;
  color: var(--a29-emerald-dark);
}

.a29-or-lockbox p {
  margin: 0 auto;
  max-width: 36ch;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--a29-muted);
}

.a29-or-guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Roll container */
.a29-or-roll {
  background: var(--a29-white);
  border: 1px solid var(--a29-linen);
  box-shadow: var(--a29-shadow);
  overflow: hidden;
}

.a29-or-roll-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.5rem;
  background: var(--a29-emerald-dark);
  color: var(--a29-white);
}

.a29-or-roll-tag {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--a29-mustard);
}

.a29-or-roll-head h2 {
  margin: 0;
  font-family: var(--a29-font-display);
  font-size: 1.2rem;
}

.a29-or-roll-code {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.a29-or-roll-body {
  padding: 1.5rem 1.5rem 2rem;
  background:
    repeating-linear-gradient(
      180deg,
      var(--a29-cream),
      var(--a29-cream) 28px,
      rgba(11, 110, 79, 0.04) 28px,
      rgba(11, 110, 79, 0.04) 29px
    );
}

.a29-or-list {
  display: grid;
  gap: 1rem;
  max-width: 820px;
  margin-inline: auto;
}

/* Ticket wraps (JS-rendered) */
.a29-or-ticket-wrap {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0;
  transform: translateX(var(--a29-or-offset, 0));
  transition: transform 0.2s;
}

.a29-or-ticket-wrap:hover {
  transform: translateX(calc(var(--a29-or-offset, 0) + 4px));
}

.a29-or-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  padding: 0.75rem 0.35rem;
  background: var(--a29-mustard);
  color: var(--a29-ink);
  border: 2px solid var(--a29-ink);
  border-right: none;
  text-align: center;
  line-height: 1.1;
}

.a29-or-stub-day {
  font-family: var(--a29-font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.a29-or-stub-mon,
.a29-or-stub-yr {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.a29-or-ticket {
  position: relative;
  background: #f8f4ec;
  border: 2px solid var(--a29-ink);
  padding: 1rem 1.25rem 1.1rem;
  min-width: 0;
  box-shadow: 3px 3px 0 rgba(20, 20, 20, 0.08);
}

.a29-or-ticket-perf {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 6px;
  background:
    radial-gradient(circle at 6px 3px, var(--a29-cream) 4px, transparent 4px) 0 0 / 12px 6px repeat-x;
}

.a29-or-ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.a29-or-stamp {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--a29-emerald);
  color: var(--a29-emerald-dark);
  transform: rotate(-3deg);
}

.a29-or-ticket-wrap.tone-packed .a29-or-stamp {
  border-color: var(--a29-emerald);
  background: rgba(11, 110, 79, 0.08);
}

.a29-or-ticket-wrap.tone-shipped .a29-or-stamp {
  border-color: #3a6ea5;
  color: #1e4a8a;
  background: #eef4ff;
}

.a29-or-ticket-wrap.tone-delivered .a29-or-stamp {
  border-color: #2d7a4a;
  color: #1f6b3a;
  background: #edf7f0;
}

.a29-or-ticket-wrap.tone-cancelled .a29-or-stamp {
  border-color: #b54545;
  color: #9b3333;
  background: #fdf0f0;
}

.a29-or-issue {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--a29-muted);
}

.a29-or-id {
  margin: 0 0 0.65rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 600;
  word-break: break-all;
  color: var(--a29-ink);
}

.a29-or-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
}

.a29-or-meta div {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
}

.a29-or-meta dt {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a29-muted);
}

.a29-or-meta dd {
  margin: 0;
  font-weight: 600;
}

.a29-or-items {
  margin: 0 0 0.75rem;
  padding-left: 0.65rem;
  border-left: 2px solid var(--a29-tomato);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--a29-muted);
}

.a29-or-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px dashed #c4baa8;
}

.a29-or-date {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--a29-muted);
}

.a29-or-track-btn {
  padding: 0.5rem 0.95rem;
  font-size: 0.62rem;
}

/* Empty roll */
.a29-or-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.a29-or-empty-roll {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 6px solid var(--a29-linen);
  border-top-color: var(--a29-emerald);
  position: relative;
}

.a29-or-empty-roll::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--a29-cream);
  border: 1px solid var(--a29-linen);
}

.a29-or-empty h2 {
  margin: 0 0 0.5rem;
  font-family: var(--a29-font-display);
  font-size: 1.3rem;
  color: var(--a29-emerald-dark);
}

.a29-or-empty p {
  margin: 0 auto 1.25rem;
  max-width: 38ch;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--a29-muted);
}

/* —— Responsive —— */
@media (max-width: 720px) {
  .a29-or-spoolhead-grid {
    grid-template-columns: 1fr;
  }

  .a29-or-dial {
    justify-self: start;
  }

  .a29-or-ticket-wrap {
    transform: none;
  }

  .a29-or-ticket-wrap:hover {
    transform: none;
  }
}

@media (max-width: 540px) {
  .a29-or-ticket-wrap {
    grid-template-columns: 1fr;
  }

  .a29-or-stub {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-right: 2px solid var(--a29-ink);
    border-bottom: none;
  }

  .a29-or-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .a29-or-track-btn {
    width: 100%;
    justify-content: center;
  }

  .a29-or-guest-actions .a29-btn {
    width: 100%;
    justify-content: center;
  }
}
