/* Ticket pages. Uses only the colours and fonts from core/app.css. */

@layer app, utilities;

@layer app {
/* ---------- shared bits ---------- */
.tix-subnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.tix-subnav a.on { color: #fff; border-color: var(--red); }
.tix-meter { height: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin: 12px 0 10px; }
.tix-meter i { display: block; height: 100%; background: var(--red); border-radius: 3px 0 0 3px; min-width: 2px; }
.tix-meter.quiet i { background: var(--muted); }
.tix-kv { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tix-kv:last-child { border-bottom: 0; }
.tix-kv span:first-child { color: var(--muted); }
.tix-kv b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tix-kv.total b { color: var(--text); font-size: 16px; }
.stat .of { font-size: 22px; color: var(--muted); font-weight: 600; margin-left: 4px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.nowrap { white-space: nowrap; }
.tix-rank { font-family: "Oswald", sans-serif; font-weight: 700; color: var(--muted); width: 28px; }
tr.top .tix-rank { color: var(--red); }
.tix-share { display: inline-block; vertical-align: middle; width: 70px; height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; margin-right: 8px; }
.tix-share i { display: block; height: 100%; background: var(--red); border-radius: 3px; }
.tix-cols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); margin-bottom: 22px; }
.tix-cols .panel { margin-bottom: 0; min-width: 0; }
.tix-todo { border-left: 3px solid var(--warn); }
.tix-todo .tix-kv span:first-child { color: var(--text); }
.tix-empty { color: var(--muted); padding: 6px 0; }
.tix-code { font-family: "Oswald", sans-serif; letter-spacing: .12em; font-weight: 600; }
.tix-link { font-size: 13px; }
.tix-link-full { word-break: break-all; }
.tix-link-short { display: none; white-space: nowrap; }
.tix-link .tix-copy { display: block; margin-top: 6px; }
/* phone: the short /t/name link and a Copy button, instead of the address breaking every letter */
@media (max-width: 700px) {
  .tix-link { white-space: nowrap; }
  .tix-link-full { display: none; }
  .tix-link-short { display: inline; }
}
.tix-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tix-head-actions select { width: auto; max-width: 260px; }
.tix-status-good { color: var(--ok); font-weight: 600; }
.tix-status-bad { color: var(--red-hot); font-weight: 600; }
form.inline { display: inline; margin: 0; }
.tix-qr-thumb { width: 64px; height: 64px; background: #fff; border-radius: 3px; display: block; }
.tix-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.tix-filter input[type=text] { max-width: 320px; }
.tix-filter select { width: auto; }

/* ---------- charts ---------- */
.tix-chart { position: relative; }
.tix-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.tix-chart .grid-line { stroke: var(--line); stroke-width: 1; }
.tix-chart .axis-text { fill: var(--muted); font: 11px "Inter", system-ui, sans-serif; }
.tix-chart .pace { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 5; fill: none; }
.tix-chart .sold-line { stroke: var(--red); stroke-width: 2.5; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.tix-chart .sold-area { fill: var(--red); opacity: .13; }
.tix-chart .dot { fill: var(--red); stroke: var(--panel); stroke-width: 2; }
.tix-chart .label { fill: var(--text); font: 600 12px "Inter", system-ui, sans-serif; }
.tix-chart .label.quiet { fill: var(--muted); font-weight: 500; }
.tix-chart .bar { fill: var(--red); }
.tix-chart .bar.zero { fill: var(--line); }
.tix-chart .cross { stroke: var(--muted); stroke-width: 1; visibility: hidden; }
.tix-chart .hover-dot { fill: var(--text); stroke: var(--panel); stroke-width: 2; visibility: hidden; }
.tix-chart .hit { fill: transparent; }
.tix-tip {
  position: absolute; top: 0; left: 0; pointer-events: none; visibility: hidden; z-index: 5;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px;
  font-size: 12px; line-height: 1.5; white-space: nowrap; box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}
.tix-tip b { display: block; font-size: 13px; }
.tix-tip span { color: var(--muted); }
.tix-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.tix-legend i { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--red); vertical-align: middle; margin-right: 7px; }
.tix-legend i.pace { border-top: 2px dashed var(--muted); }
.tix-chart .narrow { display: none; }
@media (max-width: 700px) {
  .tix-chart .wide { display: none; }
  .tix-chart .narrow { display: block; }
}

/* ---------- public show page ---------- */
body.public main { max-width: 980px; }
.tix-show { display: grid; gap: 26px; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
.tix-show.no-poster { grid-template-columns: minmax(0, 620px); justify-content: center; }
.tix-poster img { width: 100%; height: auto; display: block; border-radius: 6px; border: 1px solid var(--line); }
.tix-show h1 { margin-bottom: 10px; }
.tix-facts { margin: 0 0 18px; color: var(--text); font-size: 16px; }
.tix-facts div { margin-bottom: 2px; }
.tix-facts .when { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: 20px; font-weight: 600; }
.tix-desc { color: var(--muted); margin: 0 0 20px; white-space: pre-line; }
.tix-type { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; cursor: pointer; background: var(--ink); transition: .15s; }
.tix-type:hover { border-color: #3a3a3e; }
.tix-type:has(input:checked) { border-color: var(--red); background: var(--panel-2); }
.tix-type .name { flex: 1; min-width: 0; }
.tix-type .name b { display: block; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .06em; font-size: 17px; font-weight: 600; }
.tix-type .name small { color: var(--muted); font-weight: 400; font-size: 13px; }
.tix-type .price { text-align: right; font-family: "Oswald", sans-serif; font-size: 26px; font-weight: 700; line-height: 1; white-space: nowrap; }
.tix-type .price s { display: block; font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 3px; }
.tix-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--ok); border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
.tix-applied a { font-size: 13px; color: var(--muted); }
.tix-buy .field { max-width: none; margin-bottom: 14px; }
.tix-buy input[type=text], .tix-buy input[type=email], .tix-buy input[type=tel], .tix-buy select {
  width: 100%; background: var(--ink); color: var(--text); border: 1px solid var(--line);
  border-radius: 3px; padding: 12px; font: inherit; font-size: 16px; color-scheme: dark;
}
.tix-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tix-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 14px; margin: 4px 0 18px; }
.tix-consent input { margin-top: 2px; flex: none; }
.tix-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.tix-total span { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--muted); }
.tix-total b { font-family: "Oswald", sans-serif; font-size: 34px; font-weight: 700; line-height: 1; }
.tix-buy button.big { width: 100%; padding: 16px 20px; font-size: 17px; }
.tix-fine { color: var(--muted); font-size: 12px; text-align: center; margin: 12px 0 0; }
.tix-codebox { margin-top: 18px; }
.tix-codebox summary { font-size: 14px; }
.tix-codebox form { display: flex; gap: 8px; margin-top: 10px; }
.tix-codebox input { flex: 1; text-transform: uppercase; font-size: 16px; padding: 10px 12px; min-width: 0; }
.tix-error { border-left: 3px solid var(--red); background: var(--panel-2); padding: 12px 16px; border-radius: 3px; margin-bottom: 16px; }
.tix-closed { text-align: center; padding: 30px 20px; }
.tix-closed h2 { margin-bottom: 8px; }
.tix-testmode { text-align: center; font-size: 12px; color: var(--warn); margin: 0 0 14px; letter-spacing: .08em; text-transform: uppercase; font-family: "Oswald", sans-serif; }

/* ---------- tickets ---------- */
.tix-narrow { max-width: 560px; margin: 0 auto; }
.tix-ticket { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.tix-ticket .top { padding: 18px 20px 14px; border-bottom: 1px dashed var(--line); }
.tix-ticket .top h2 { margin: 0 0 4px; font-size: 22px; }
.tix-seat { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .06em; font-size: 18px; font-weight: 600; color: var(--red); margin: 2px 0 6px; }
.tix-ticket .qr { background: #fff; padding: 18px; display: flex; justify-content: center; }
.tix-ticket .qr img { width: min(100%, 280px); height: auto; aspect-ratio: 1; display: block; image-rendering: pixelated; }
.tix-ticket .bottom { padding: 14px 20px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.tix-ticket.void .qr { opacity: .15; }
.tix-banner { padding: 12px 20px; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; font-size: 14px; color: #fff; }
.tix-banner.good { background: var(--ok); }
.tix-banner.bad { background: var(--red); }
/* The practice banner lines up with the page's content column (620 px when there is no poster). */
.tix-practice { margin: 0 auto 18px; }
.tix-practice.narrow { max-width: 620px; }
.tix-seat-line { font-weight: 600; }
.tix-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 20px; }
.tix-actions.center { justify-content: center; margin: 18px 0 0; }
.tix-friend { text-align: center; }
form.tix-refund select { width: auto; padding: 6px 28px 6px 8px; font-size: 13px; margin-right: 4px; }
details.tix-refund-pick { display: inline-block; vertical-align: top; }
details.tix-refund-pick > summary { list-style: none; cursor: pointer; }
details.tix-refund-pick > summary::-webkit-details-marker { display: none; }
details.tix-refund-pick[open] > summary { margin-bottom: 8px; }
details.tix-refund-pick form.tix-refund { display: grid; gap: 6px; min-width: 220px; white-space: normal; }
.tix-refund-row { display: flex; align-items: center; gap: 8px; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--text, inherit); margin: 0; }
.tix-refund-row input { width: auto; margin: 0; }
.tix-refund-row span { flex: 1; }
.tix-friend .tix-code { font-size: 26px; color: var(--text); display: block; margin: 6px 0 2px; }
.tix-friend .linkbox { display: flex; gap: 8px; margin-top: 14px; }
.tix-friend .linkbox input { flex: 1; min-width: 0; font-size: 14px; }
@media (max-width: 700px) { .tix-friend .linkbox input, form.tix-refund select { font-size: 16px; } }
.tix-spinner { width: 44px; height: 44px; border: 3px solid var(--line); border-top-color: var(--red); border-radius: 50%; margin: 10px auto 18px; animation: tix-spin 1s linear infinite; }
@keyframes tix-spin { to { transform: rotate(360deg); } }

/* ---------- door ---------- */
.door { max-width: 620px; margin: 0 auto; }
.door-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.door-counts div { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px 8px; text-align: center; }
.door-counts b { display: block; font-family: "Oswald", sans-serif; font-size: 34px; font-weight: 700; line-height: 1; }
.door-counts div:first-child b { color: var(--red); }
.door-counts span { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; color: var(--muted); }
.door-result { border-radius: 8px; padding: 22px 18px; text-align: center; margin-bottom: 14px; background: var(--panel); border: 1px solid var(--line); min-height: 112px; display: flex; flex-direction: column; justify-content: center; }
.door-result b { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .06em; font-size: 34px; font-weight: 700; line-height: 1.05; display: block; }
.door-result span { font-size: 16px; margin-top: 6px; display: block; }
.door-result.idle b { font-size: 20px; color: var(--muted); }
.door-result.good { background: var(--ok); border-color: var(--ok); color: #fff; }
.door-result.bad { background: var(--red); border-color: var(--red); color: #fff; }
.door-cam { position: relative; background: #000; border-radius: 8px; overflow: hidden; margin-bottom: 12px; aspect-ratio: 4 / 3; display: none; }
.door-cam.on { display: block; }
.door-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.door-cam::after { content: ""; position: absolute; inset: 14% 20%; border: 3px solid rgba(255, 255, 255, .75); border-radius: 12px; pointer-events: none; }
.door button.wide, .door .btn.wide { width: 100%; padding: 15px; font-size: 15px; }
.door input[type=text], .door input[type=search], .door input[type=number] { font-size: 16px; padding: 13px 12px; width: 100%; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 3px; color-scheme: dark; }
.door-hit { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.door-hit:last-child { border-bottom: 0; }
.door-hit .who b { display: block; }
.door-hit .btns { display: flex; gap: 6px; flex-wrap: wrap; }
.door-hit button { padding: 10px 14px; }
.door-hit button.used { background: transparent; border-color: var(--line); color: var(--muted); }
.door-step { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; align-items: center; }
.door-step button { padding: 12px 0; font-size: 20px; }
.door-step output { text-align: center; font-family: "Oswald", sans-serif; font-size: 30px; font-weight: 700; }
.door-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.door-pay button { padding: 16px 8px; font-size: 15px; white-space: normal; }
.door-due { text-align: center; color: var(--muted); margin-top: 10px; }
.door-due b { color: var(--text); font-family: "Oswald", sans-serif; font-size: 22px; }

@media (max-width: 700px) {
  .tix-wide-only, .tix-share { display: none; }
  .panel { padding: 16px; }
  th, td { padding: 9px 8px; }
}
/* phone: "Needs your attention" puts the action link on its own line, and the order actions
   (Send again, Refund with its how-many picker) sit in a full-width row under the order card */
@media (max-width: 600px) {
  .tix-todo .tix-kv { flex-direction: column; align-items: flex-start; gap: 0; }
  .tix-todo .tix-kv a { display: inline-block; padding: 6px 0 2px; }
  .table-wrap.stack-390 td.tix-order-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .table-wrap.stack-390 td.tix-order-actions form.inline { display: inline-flex; align-items: center; gap: 8px; }
  .table-wrap.stack-390 td.tix-order-actions form.tix-refund { flex: 1 1 100%; }
  .table-wrap.stack-390 td.tix-order-actions form.tix-refund select { flex: 1; min-width: 0; margin: 0; padding-top: 9px; padding-bottom: 9px; }
}
@media (max-width: 760px) {
  .tix-show { grid-template-columns: 1fr; gap: 18px; }
  .tix-poster { max-width: 420px; margin: 0 auto; width: 100%; }
  body.public .bar { min-height: 64px; justify-content: center; }
  body.public .bar .brand img { height: 48px; }
  body.public main { padding: 18px 16px 60px; }
}
@media (max-width: 420px) {
  .tix-two { grid-template-columns: 1fr; gap: 0; }
  .tix-type { padding: 12px; gap: 10px; }
  .tix-type .price { font-size: 22px; }
  .stat .of { font-size: 18px; }
}

.tix-or { text-align: center; margin: 12px 0; position: relative; }
.tix-or span { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--muted); background: var(--ink); padding: 0 12px; position: relative; }
.tix-or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.tix-paypal { min-height: 48px; }
.tix-paypal-one { margin-bottom: 10px; }

/* A free add-on at checkout (a launch-day shirt): the line under the ticket, the size boxes and the terms. */
.tix-free { display: block; width: fit-content; margin-top: 6px; padding: 3px 8px; border-radius: 3px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tix-promo { border: 2px solid var(--red); border-radius: 6px; padding: 14px 16px; margin: 0 0 16px; background: var(--ink); display: grid; gap: 14px; align-items: center; }
.tix-promo.has-picture { grid-template-columns: minmax(0, 180px) 1fr; }
.tix-promo img { width: 100%; height: auto; display: block; border-radius: 4px; }
.tix-promo-when { display: inline-block; padding: 3px 8px; margin-bottom: 6px; border-radius: 3px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tix-promo-head { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .03em; font-size: 22px; font-weight: 700; line-height: 1.15; margin-bottom: 6px; }
@media (max-width: 520px) { .tix-promo.has-picture { grid-template-columns: 1fr; } .tix-promo img { max-width: 260px; margin: 0 auto; } }
.tix-addon { border: 1px solid var(--red); border-radius: 6px; padding: 14px 16px 16px; margin: 0 0 16px; background: var(--ink); min-width: 0; }
.tix-addon legend { padding: 0 6px; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; font-weight: 600; }
.tix-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tix-size { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 400; }
.tix-size i { font-style: normal; }
.tix-size select { width: 100%; }
.tix-terms { max-height: 190px; overflow-y: auto; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; color: var(--muted); background: var(--panel); }
.tix-terms b { display: block; color: var(--text); margin-bottom: 6px; }
.tix-terms p { margin: 0 0 8px; }
.tix-terms p:last-child { margin-bottom: 0; }
.tix-bag { border: 1px solid var(--red); border-radius: 6px; padding: 14px 16px; margin: 0 0 16px; background: var(--ink); }
.tix-bag b { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.tix-size-counts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.tix-size-counts div { min-width: 84px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); text-align: center; }
.tix-size-counts b { display: block; font-family: "Oswald", sans-serif; font-size: 30px; line-height: 1; }
.tix-size-counts span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* The door's bag box: shown under a scan whose order came with a free add-on. */
.door-bag { border: 2px solid var(--red); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; background: var(--ink); }
.door-bag .eyebrow { margin-bottom: 2px; }
.door-bag b { display: block; font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 26px; line-height: 1.1; }
.door-bag p { margin: 6px 0 12px; font-size: 16px; }
.door-bag .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.door-bag.given { border-color: var(--ok); }

/* Bag stickers: 4 x 2 inch labels, two across and five down on a Letter sheet (Avery 5163 / 8163). */
.bag-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.bag-sticker { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; color: #000; border-radius: 6px; break-inside: avoid; overflow: hidden; }
.bag-sticker img { width: 140px; height: 140px; flex: none; image-rendering: pixelated; display: block; }
.bag-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bag-number { font-family: "Oswald", sans-serif; font-size: 30px; line-height: 1.05; letter-spacing: .02em; }
.bag-name { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.bag-sizes { font-size: 13px; }
.bag-size-line { font-family: "Oswald", sans-serif; font-size: 22px; font-weight: 700; line-height: 1.1; }
@media print {
  @page { size: letter; margin: 0; }
  header, footer.site-foot, .tix-no-print, .messages, .tix-subnav { display: none !important; }
  body, main { background: #fff !important; color: #000 !important; }
  main { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .bag-sheet { grid-template-columns: 4in 4in; grid-auto-rows: 2in; column-gap: .1875in; row-gap: 0; padding: .5in 0 0 .15625in; }
  .bag-sticker { width: 4in; height: 2in; box-sizing: border-box; padding: .12in .16in; border-radius: 0; }
  .bag-sticker:nth-child(10n) { break-after: page; }
  .bag-sticker img { width: 1.6in; height: 1.6in; }
  .bag-number { font-size: 26pt; }
  .bag-name { font-size: 11pt; }
  .bag-sizes { font-size: 9pt; }
  .bag-size-line { font-size: 16pt; }
}
}
