.ts-receipt-dialog{width:min(940px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid #77642d;border-radius:16px;background:#121921;color:#eef1f5;box-shadow:0 25px 90px #0009;overflow:auto;font-family:Arial,sans-serif}.ts-receipt-dialog::backdrop{background:#03070cd4;backdrop-filter:blur(4px)}.ts-receipt-dialog *,.ts-sport-receipt *{box-sizing:border-box}.ts-receipt-actions{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 22px;border-bottom:1px solid #3c4249;background:#1c242d}.ts-receipt-actions>span{font-size:11px;font-weight:700;letter-spacing:.1em;color:#dbc27b}.ts-receipt-actions>div{display:flex;gap:8px}.ts-receipt-actions button{padding:10px 14px;border:1px solid #e2b834;border-radius:7px;background:#edbe18;color:#111820;font-size:12px;font-weight:800;cursor:pointer}.ts-receipt-actions [data-ts-receipt-close]{border-color:#485564;background:transparent;color:#e4eaf1}.ts-receipt-actions button:focus-visible{outline:3px solid #fff;outline-offset:2px}.ts-sport-receipt{padding:28px;font-family:Arial,sans-serif}.ts-receipt-brand{display:flex;align-items:center;gap:14px;padding-bottom:22px;border-bottom:2px solid #b39538}.ts-receipt-star{display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;border:1px solid #c7a849;border-radius:12px;background:#d9ad25;color:#141b22;font-size:29px}.ts-receipt-brand>div{display:flex;flex-direction:column;gap:6px}.ts-receipt-brand strong{font-size:22px;letter-spacing:.03em;color:#f1d47d}.ts-receipt-brand>div>span{font-size:12px;color:#aeb9c8}.ts-receipt-status{margin-left:auto;padding:8px 12px;border-radius:20px;background:#344251;color:#dbe8f7;font-size:12px;font-weight:700;white-space:nowrap}.ts-receipt-status.pending{background:#1c4934;color:#b6f4cf}.ts-receipt-status.won{background:#1c4934;color:#b6f4cf}.ts-receipt-status.lost{background:#502a34;color:#ffbdcc}.ts-receipt-heading{padding:22px 0 18px}.ts-receipt-heading h2{margin:0 0 7px;font-size:20px;overflow-wrap:anywhere}.ts-receipt-heading p{margin:0;font-size:13px;color:#b3c0ce}.ts-receipt-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0 0 24px;border:1px solid #384352;border-radius:9px;overflow:hidden;background:#18222f}.ts-receipt-info>div{padding:15px 16px;border-bottom:1px solid #303c4a}.ts-receipt-info dt{margin-bottom:7px;color:#acbbcb;font-size:11px}.ts-receipt-info dd{margin:0;color:#fff;font-size:14px;font-weight:700;overflow-wrap:anywhere}.ts-receipt-events-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #414953}.ts-receipt-events-heading h3{margin:0;font-size:14px;color:#e8cc7a}.ts-receipt-events-heading>span{font-size:11px;color:#aab8c9}.ts-receipt-event{display:flex;gap:12px;padding:17px 0;border-bottom:1px solid #323d49;break-inside:avoid;page-break-inside:avoid}.ts-receipt-event-number{display:grid;place-items:center;flex-shrink:0;align-self:flex-start;width:26px;height:26px;border-radius:6px;background:#353022;color:#f0d684;font-size:12px;font-weight:700}.ts-receipt-event-content{min-width:0;flex:1}.ts-receipt-match{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.ts-receipt-match strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.ts-receipt-match time{flex-shrink:0;font-size:11px;line-height:1.8;color:#b0bed0}.ts-receipt-competition{margin:6px 0 10px;font-size:11px;color:#98aabe}.ts-receipt-selection{display:flex;justify-content:space-between;gap:16px;font-size:11px;color:#b4c1d0}.ts-receipt-selection b{display:block;margin-top:5px;color:#eaf0f6;font-size:13px;overflow-wrap:anywhere}.ts-receipt-odd{min-width:60px;text-align:right}.ts-receipt-odd b{color:#edd178}.ts-receipt-summary{display:flex;justify-content:flex-end;gap:24px;flex-wrap:wrap;margin-top:24px;padding:18px;background:#1b2633;border:1px solid #394756;border-radius:8px}.ts-receipt-summary>div{min-width:190px;max-width:100%}.ts-receipt-summary span,.ts-receipt-summary small{display:block;font-size:11px;color:#b5c3d3}.ts-receipt-summary strong{display:block;margin:7px 0;font-size:24px;color:#f2d685}.ts-receipt-summary small{line-height:1.5}.ts-receipt-footnote{margin-top:22px;padding-top:16px;border-top:1px solid #37424e;color:#a6b6c9;font-size:11px;line-height:1.7}.ts-receipt-message{margin:18px 0 0;color:#dfc785;font-size:12px;line-height:1.6}.ts-receipt-print{margin:0;background:#fff;color:#111}.ts-receipt-print .ts-sport-receipt{max-width:100%;padding:0;color:#111}.sport-ticket-print-frame{position:fixed;left:-10000px;top:0;width:900px;height:1200px;border:0}
@media(max-width:600px){.ts-receipt-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:10px}.ts-receipt-actions{padding:10px;gap:5px}.ts-receipt-actions>span{display:none}.ts-receipt-actions>div{width:100%;justify-content:space-between}.ts-receipt-actions button{padding:10px;font-size:11px}.ts-sport-receipt{padding:18px 14px}.ts-receipt-brand{gap:9px;flex-wrap:wrap}.ts-receipt-star{width:34px;height:34px;font-size:22px;border-radius:8px}.ts-receipt-brand strong{font-size:16px}.ts-receipt-status{padding:7px 9px;font-size:11px}.ts-receipt-info{grid-template-columns:repeat(2,minmax(0,1fr))}.ts-receipt-info>div{padding:12px}.ts-receipt-info dd{font-size:12px}.ts-receipt-match{display:block}.ts-receipt-match time{display:block;margin-top:5px}.ts-receipt-summary{gap:18px;padding:15px}.ts-receipt-summary>div{width:100%}}
@media print{html,body{background:#fff!important;color:#111!important}.ts-sport-receipt{padding:0;color:#111;font-size:10pt}.ts-receipt-brand{padding-bottom:12px;border-color:#222;break-inside:avoid}.ts-receipt-brand strong{color:#111;font-size:18pt}.ts-receipt-brand>div>span,.ts-receipt-match time,.ts-receipt-competition,.ts-receipt-info dt,.ts-receipt-summary span,.ts-receipt-summary small,.ts-receipt-footnote,.ts-receipt-events-heading>span,.ts-receipt-selection{color:#444}.ts-receipt-star,.ts-receipt-status,.ts-receipt-status.pending,.ts-receipt-status.won,.ts-receipt-status.lost{background:#fff;color:#111;border:1px solid #666}.ts-receipt-info{background:#fff;border-color:#ccc;break-inside:avoid;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}.ts-receipt-info>div{padding:10px;border-color:#ddd}.ts-receipt-info dd,.ts-receipt-events-heading h3,.ts-receipt-selection b,.ts-receipt-odd b,.ts-receipt-summary strong,.ts-receipt-message{color:#111}.ts-receipt-event{padding:12px 0;border-color:#ccc}.ts-receipt-event-number{background:#fff;color:#111;border:1px solid #bbb}.ts-receipt-match{display:flex}.ts-receipt-match strong{font-size:10pt}.ts-receipt-match time{font-size:8pt}.ts-receipt-heading{padding:16px 0}.ts-receipt-summary{background:#fff;border-color:#bbb;break-inside:avoid}.ts-receipt-summary strong{font-size:18pt}.ts-receipt-footnote{border-color:#ccc;break-inside:avoid}.ts-receipt-actions{display:none}@page{size:A4;margin:14mm}}

/* Settlement of each selection, independent of overall ticket status. */
.ts-receipt-leg-result{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:12px}
.ts-receipt-leg-badge{display:inline-flex;align-items:center;gap:7px;color:#b9c5d3;font-size:11px;font-weight:700}
.ts-receipt-leg-icon{display:inline-grid;place-items:center;width:21px;height:21px;flex-shrink:0;border-radius:50%;background:#344251;color:#d8e2ed;font:700 13px/1 Arial,sans-serif}
.ts-receipt-leg-badge.won{color:#8ae0bc}.ts-receipt-leg-badge.won .ts-receipt-leg-icon{background:#16845e;color:#fff}
.ts-receipt-leg-badge.lost{color:#ff9aa5}.ts-receipt-leg-badge.lost .ts-receipt-leg-icon{background:#cc2944;color:#fff}
.ts-receipt-leg-badge.pending{color:#e3cc8b}.ts-receipt-leg-badge.pending .ts-receipt-leg-icon{background:#51452c;color:#f5dfaa}
.ts-receipt-leg-score{display:inline-flex;align-items:center;gap:8px;font-size:11px;color:#b2c0d0}
.ts-receipt-leg-score b{padding:4px 8px;border:1px solid #3b495a;border-radius:5px;color:#eef3f8;font-size:12px;white-space:nowrap}
@media print{.ts-receipt-leg-badge,.ts-receipt-leg-score,.ts-receipt-leg-score b{color:#111!important}.ts-receipt-leg-icon{border:1px solid #777;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ts-receipt-leg-score b{border-color:#aaa}}


/* Shared receipt controls and 58/80 mm roll-paper layout. */
.ts-receipt-actions>div{flex-wrap:wrap;align-items:center;justify-content:flex-end}
.ts-receipt-paper-label{display:flex;align-items:center;gap:6px;color:#dae2ec;font-size:11px}
.ts-receipt-paper-label select{max-width:160px;padding:8px;border:1px solid #637080;border-radius:6px;background:#101923;color:#fff;font:inherit}
.ts-receipt-print-state{margin:0;padding:0 18px;color:#e3cd89;font:12px/1.5 Arial,sans-serif}
.ts-receipt-print-state:not(:empty){padding-top:12px;padding-bottom:12px}
.ts-receipt-dialog--thermal .ts-receipt-body{padding:20px;background:#252e39}
.ts-thermal-receipt{box-sizing:border-box;width:74mm;max-width:100%;margin:0 auto;padding:3mm;background:#fff;color:#000;font:12px/1.25 Arial,sans-serif;overflow-wrap:anywhere}
.ts-thermal-receipt *{box-sizing:border-box}
.ts-receipt-dialog[data-paper="58"] .ts-thermal-receipt{width:52mm;font-size:11px}
.ts-thermal-logo{display:block;width:100%;height:auto;margin:0 auto 5mm}
.ts-thermal-receipt header>p{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:3mm 0;font-size:.94em}
.ts-thermal-receipt header b{text-transform:uppercase}
.ts-thermal-event{padding:2mm 1mm;border:1px solid #000;border-bottom:0;break-inside:avoid;page-break-inside:avoid}
.ts-thermal-event:last-child{border-bottom:1px solid #000}
.ts-thermal-event>div{display:flex;justify-content:space-between;align-items:flex-start;gap:6px}
.ts-thermal-event strong{font-weight:800}
.ts-thermal-event time{max-width:42%;font-size:.83em;text-align:right;flex-shrink:0}
.ts-thermal-event p{margin:1mm 0;font-size:.92em}
.ts-thermal-event span b{display:block;margin-top:1mm}
.ts-thermal-totals{margin:5mm 0 0}
.ts-thermal-totals>div{display:flex;justify-content:space-between;gap:8px;padding:2mm 1mm;margin-top:1mm;border:1px solid #000;break-inside:avoid}
.ts-thermal-totals dt,.ts-thermal-totals dd{margin:0;font-weight:800}
.ts-thermal-totals dd{text-align:right}
.ts-thermal-totals .ts-thermal-potential{display:block;text-align:center}
.ts-thermal-potential dd{text-align:center;font-size:1.6em;margin-top:2mm}
.ts-thermal-receipt footer{margin-top:2mm;padding:2mm 1mm;border:1px solid #000;font-size:.85em;line-height:1.3}
.ts-thermal-receipt footer p{margin:3mm 0 0}
.ts-thermal-print{width:var(--ts-paper-width,74mm);margin:0;background:#fff;color:#000}
.ts-thermal-print .ts-thermal-receipt{width:100%;max-width:none;padding:0;margin:0}
.ts-thermal-print[style*="52mm"] .ts-thermal-receipt{font-size:11px}
@media print{.ts-receipt-print-state{display:none}.ts-thermal-receipt{color:#000!important;background:#fff!important}.ts-thermal-receipt img{max-width:100%}}
@media(max-width:600px){.ts-receipt-actions>div{justify-content:flex-start}.ts-receipt-paper-label{width:100%}.ts-receipt-dialog--thermal .ts-receipt-body{padding:12px 6px}}

.ts-thermal-receipt .ts-receipt-leg-result{gap:4px;margin-top:2mm}.ts-thermal-receipt .ts-receipt-leg-badge,.ts-thermal-receipt .ts-receipt-leg-score,.ts-thermal-receipt .ts-receipt-leg-score b{color:#000!important;font-size:.85em}.ts-thermal-receipt .ts-receipt-leg-icon{background:#fff!important;color:#000!important;border:1px solid #000;width:16px;height:16px;font-size:10px}.ts-thermal-receipt .ts-receipt-leg-score b{padding:2px 4px;border-color:#000}
