body { min-height:100vh; height:auto; overflow:auto; background:radial-gradient(ellipse at top, #162716 0, var(--bg) 65%); }
.receipt-page { width:min(100% - 40px, 820px); margin:36px auto 60px; }
.receipt-nav { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.receipt-brand { display:flex; align-items:center; gap:12px; color:var(--text); text-decoration:none; font-size:1rem; letter-spacing:.04em; }
.receipt-brand img { width:44px; height:44px; object-fit:contain; }
.receipt-brand b { font-weight:400; color:var(--muted); }
.receipt-back { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 16px; border:1px solid #496047; border-radius:10px; background:#1b2c1e; color:#e3eddb; text-decoration:none; font-size:.85rem; font-weight:600; flex-shrink:0; transition:background .2s,border-color .2s; }
.receipt-back:hover { color:#fff; background:#2a402b; border-color:#7c9b68; }
.receipt { padding:36px; border:1px solid var(--border-strong); border-radius:24px; background:var(--surface); box-shadow:0 20px 70px #0003; }
.receipt-heading { padding-bottom:24px; }
.receipt-status { display:inline-flex; align-items:center; gap:8px; padding:6px 12px; border-radius:999px; background:#2ea82e15; border:1px solid #2ea82e40; color:#a8df98; font-size:.75rem; font-weight:600; }
.receipt h1 { font-size:clamp(1.6rem, 4vw, 2rem); letter-spacing:-.03em; line-height:1.2; margin:16px 0 10px; }
.receipt p { line-height:1.65; color:#a8b89c; font-size:.9rem; }
.receipt-event { padding:20px 22px; border:1px solid var(--border); border-left:3px solid var(--green-mid); background:var(--card); border-radius:4px 12px 12px 4px; }
.receipt-event > span { font-size:.65rem; letter-spacing:.14em; color:var(--muted); font-weight:700; }
.receipt-event h2 { margin:8px 0 0; font-size:1.35rem; line-height:1.4; overflow-wrap:anywhere; }
.receipt-data { display:grid; grid-template-columns:1fr 1fr; gap:22px 28px; margin:26px 0; }
.receipt-field { min-width:0; }
.receipt-field-wide { grid-column:1 / -1; }
.receipt-field dt { margin-bottom:6px; font-size:.75rem; color:var(--muted); }
.receipt-field dd { margin:0; font-size:.95rem; line-height:1.5; overflow-wrap:anywhere; }
.receipt-field:first-child dd { font-size:1.1rem; font-weight:600; }
.receipt-field:last-child { padding-top:18px; border-top:1px dashed var(--border-strong); }
.receipt-field:last-child dd { font-family:ui-monospace, monospace; font-size:.8rem; color:#a8b89c; }
.receipt .receipt-note { font-size:.75rem; }
.receipt-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:22px; }
.receipt-actions a, .receipt > .btn-primary { display:inline-flex; align-items:center; justify-content:center; padding:13px 20px; width:auto; border-radius:10px; clip-path:none; font-size:.8rem; letter-spacing:0; text-transform:none; text-decoration:none; }
.receipt-actions .btn-primary { background:#287b24; color:#fff; border:1px solid #3d9a37; flex:1 1 230px; }
.receipt-actions .btn-primary:hover { background:#328e2d; }
.receipt-actions .btn-secondary { color:var(--text); border:1px solid var(--border-strong); background:var(--card); }
.cancel-registration { margin-top:26px; padding-top:20px; border-top:1px solid var(--border); }
.cancel-registration summary { color:#cd9696; cursor:pointer; font-size:.8rem; width:fit-content; }
.cancel-registration p { margin:16px 0; }
.cancel-registration label { display:flex; align-items:flex-start; gap:10px; font-size:.85rem; line-height:1.6; }
.cancel-registration input[type=checkbox] { width:18px; height:18px; flex-shrink:0; margin-top:3px; accent-color:#a54a4a; }
.cancel-registration button { margin-top:18px; padding:12px 18px; border:1px solid #a54a4a; border-radius:8px; background:#492020; color:#fff; font:inherit; font-size:.85rem; cursor:pointer; }
.cancel-registration button:hover { background:#652828; }
.receipt-page :is(a,button,summary):focus-visible { outline:2px solid var(--green-mid); outline-offset:4px; }
.receipt [role=alert] { padding:14px; border:1px solid #a54a4a; border-radius:8px; margin-bottom:20px; }
@media(max-width:540px) {
 .receipt-page { width:calc(100% - 28px); margin:20px auto 32px; }
 .receipt { padding:22px 18px; border-radius:18px; }
 .receipt-brand { gap:8px; font-size:.85rem; }
 .receipt-back { font-size:.8rem; }
 .receipt-data { gap:20px; }
 .receipt-actions a { width:100%; }
}
@media(max-width:360px) { .receipt-data { grid-template-columns:1fr; } }

/* Comprovante em formato de ingresso, com ações em uma área independente. */
body { background:radial-gradient(ellipse at 75% 0, #203523 0, #0a100c 60%); }
.receipt-page { width:min(100% - 48px, 1060px); margin:32px auto 56px; }
.receipt-nav { margin-bottom:42px; }
.receipt { padding:0; background:transparent; border:0; border-radius:0; box-shadow:none; }
.receipt-heading { padding-bottom:28px; }
.receipt h1 { font-size:clamp(2rem,5vw,3rem); margin:14px 0 10px; letter-spacing:-.045em; }
.receipt-heading > p { color:#b6c4b5; }
.receipt-ticket { display:grid; grid-template-columns:minmax(0,1fr) 300px; border-radius:22px; overflow:hidden; box-shadow:0 24px 70px #0004; }
.receipt-ticket-main { padding:32px; background:#f5f6ef; color:#223829; min-width:0; }
.receipt-event { padding:0 0 24px; border:0; border-bottom:1px solid #d7dfd4; border-radius:0; background:none; }
.receipt-event > span { color:#597360; font-size:.62rem; letter-spacing:.13em; }
.receipt-event h2 { font-size:clamp(1.6rem,3vw,2.25rem); line-height:1.15; color:#193e28; letter-spacing:-.03em; margin-top:12px; }
.receipt-data { margin:24px 0 20px; gap:22px 24px; }
.receipt-field dt { color:#5e7162; font-size:.72rem; }
.receipt-field dd { color:#243d2c; font-size:.92rem; }
.receipt-field:first-child { padding:14px 16px; background:#e8eee3; border-radius:10px; }
.receipt-field:first-child dd { font-size:1.05rem; }
.receipt-field:last-child { border-color:#c7d3c4; padding-top:18px; }
.receipt-field:last-child dd { color:#526657; font-size:.73rem; }
.receipt .receipt-note { color:#68776a; font-size:.7rem; line-height:1.6; }
.receipt-ticket-side { position:relative; padding:32px 26px; background:#18271c; border-left:2px dashed #48604a; min-width:0; }
.receipt-ticket-side::before,.receipt-ticket-side::after { content:''; position:absolute; width:24px; height:24px; left:-13px; background:#0e170f; border-radius:50%; }
.receipt-ticket-side::before { top:-12px; }
.receipt-ticket-side::after { bottom:-12px; }
.receipt-document-icon { display:grid; place-items:center; width:54px; height:60px; border:1px solid #4c6346; background:#283d27; color:#c2e5aa; border-radius:12px; margin-bottom:24px; }
.receipt-ticket-side h2 { font-size:1.25rem; margin:0 0 10px; color:#edf3e6; }
.receipt-ticket-side > p { color:#b1c0ad; font-size:.82rem; }
.receipt-actions { display:flex; flex-direction:column; gap:10px; margin-top:26px; }
.receipt-actions a { width:100%; min-height:46px; padding:12px; font-size:.76rem; }
.receipt-actions .btn-primary { flex:none; background:#c6e89f; border-color:#c6e89f; color:#1c3520; font-weight:700; }
.receipt-actions .btn-primary:hover { background:#dbf3bf; border-color:#dbf3bf; }
.receipt-actions .btn-secondary { background:transparent; border-color:#435841; color:#d7e2ce; }
.cancel-registration { border-color:#3d513b; margin-top:24px; padding-top:20px; }
.cancel-registration summary { font-size:.76rem; color:#dda9a5; }
.cancel-registration p,.cancel-registration label { font-size:.78rem; }
@media(max-width:780px) {
 .receipt-page { width:min(100% - 32px,600px); margin-top:24px; }
 .receipt-nav { margin-bottom:28px; }
 .receipt-ticket { grid-template-columns:1fr; border-radius:18px; }
 .receipt-ticket-main { padding:24px; }
 .receipt-ticket-side { padding:24px; border-left:0; border-top:2px dashed #48604a; }
 .receipt-ticket-side::before { left:-12px; top:-13px; }
 .receipt-ticket-side::after { left:auto; right:-12px; top:-13px; bottom:auto; }
 .receipt-document-icon { width:42px; height:46px; margin-bottom:16px; }
}
@media(max-width:420px) {
 .receipt-nav { flex-wrap:wrap; gap:16px; }
 .receipt-back { width:100%; }
 .receipt-ticket-main,.receipt-ticket-side { padding:22px 18px; }
 .receipt-data { column-gap:16px; }
 .receipt-brand b { display:none; }
}

/* Acompanhar o tema também nas páginas que não carregam app.css. */
[data-theme="light"] body { background:radial-gradient(ellipse at 75% 0, #dbe8d7 0, var(--bg) 60%); }
[data-theme="light"] .receipt-heading > p { color:var(--muted); }
[data-theme="light"] .receipt-status { color:#28633a; }
[data-theme="light"] .receipt-back { background:var(--surface);color:var(--text);border-color:var(--border-strong); }
[data-theme="light"] .receipt-back:hover { background:var(--surface-2); }
[data-theme="light"] .receipt-ticket-side { background:#e3eddc;color:#243d2c;border-color:#aabda3; }
[data-theme="light"] .receipt-ticket-side::before,[data-theme="light"] .receipt-ticket-side::after { background:var(--bg); }
[data-theme="light"] .receipt-ticket-side h2 { color:#243d2c; }
[data-theme="light"] .receipt-ticket-side p { color:#526657; }
[data-theme="light"] .receipt-actions .btn-secondary { color:#243d2c;border-color:#8fa384; }
[data-theme="light"] .cancel-registration { border-color:#aabda3; }
[data-theme="light"] .cancel-registration summary { color:#923e38; }
