/* v1636: detalles de orden y recibos con fotografías */
.ssw1636-overlay{position:fixed;inset:0;z-index:2147483600;background:rgba(10,22,40,.75);display:flex;align-items:center;justify-content:center;padding:15px;overflow-y:auto}
.ssw1636-dialog{width:min(100%,790px);max-height:min(95vh,980px);overflow-y:auto;background:#f7f9fc;color:#152333;border-radius:19px;box-shadow:0 24px 80px #0006;font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
.ssw1636-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 20px;background:#101b27;color:white;position:sticky;top:0;z-index:2}
.ssw1636-toolbar h2{font-size:16px;line-height:1.3;margin:0;color:white}.ssw1636-toolbar>div{display:flex;gap:8px;flex-wrap:wrap}.ssw1636-toolbar button,.ssw1636-show-receipt{border:0;border-radius:9px;padding:9px 12px;background:#ffcf00;color:#101b27;font-weight:850;font-size:13px;cursor:pointer}.ssw1636-toolbar button:last-child{background:#e6ebf3}
.ssw1636-paper{padding:24px;background:white}.ssw1636-header{border-bottom:3px solid #ffcf00;padding-bottom:15px}.ssw1636-header>span{font-size:13px;font-weight:950;letter-spacing:.06em}.ssw1636-header>span em{color:#cf9600;font-style:normal}.ssw1636-header h2{font-size:23px;margin:10px 0 4px;color:#10283e}.ssw1636-header p,.ssw1636-header small{font-size:12px;color:#677485;margin:0;display:block}
.ssw1636-parties{padding:12px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 18px}.ssw1636-parties p{font-size:13px;line-height:1.4;overflow-wrap:anywhere;margin:4px 0}.ssw1636-paper h3{font-size:15px;margin:14px 0 8px;color:#10283e}
.ssw1636-item{display:grid;grid-template-columns:68px minmax(0,1fr) auto;gap:12px;align-items:center;border-bottom:1px solid #e8edf2;padding:10px 0}.ssw1636-item-body{display:flex;flex-direction:column;gap:3px;min-width:0}.ssw1636-item-body strong{font-size:14px;overflow-wrap:anywhere}.ssw1636-item-body small{font-size:12px;color:#5b6875;line-height:1.3}.ssw1636-item>b{font-size:13px;text-align:right;white-space:nowrap}.ssw1636-photo{position:relative;display:grid;place-items:center;width:64px;height:64px;flex:0 0 64px;background:#f1f4f8;border:1px solid #dce3ec;border-radius:11px;overflow:hidden}.ssw1636-photo>span{font-size:19px;display:flex;align-items:center;flex-direction:column}.ssw1636-photo>span small{font-size:9px;color:#667085}.ssw1636-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:white}
.ssw1636-totals{border-top:2px solid #dde4e9;padding-top:10px;margin-top:14px}.ssw1636-summary-row{display:flex;justify-content:space-between;gap:10px;margin:8px 0;font-size:13px}.ssw1636-summary-row strong{white-space:nowrap}.ssw1636-final{font-weight:950;font-size:17px;color:#122638;border-top:2px solid #ffcf00;padding-top:12px}.ssw1636-settlement{border:1px solid #ced8e1;border-radius:12px;padding:12px;margin-top:12px;background:#f5f8fb}.ssw1636-settlement>strong{font-size:14px}.ssw1636-footnote{font-size:11px;line-height:1.5;color:#657383;margin-top:18px}
.ssw1636-partner-history{display:grid;gap:8px;margin:10px 0}.ssw1636-partner-history article{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #dbe3eb;border-radius:12px;padding:12px;background:#fff}.ssw1636-partner-history article>span{display:flex;flex-direction:column;gap:5px;min-width:0}.ssw1636-partner-history article small{color:#657383;font-size:12px}.ssw1636-history-card .ssw1636-history-items{display:grid;gap:7px;margin:10px 0}.ssw1636-history-items>div{display:flex;align-items:center;gap:9px}.ssw1636-history-items .ssw1636-photo{width:44px;height:44px;flex-basis:44px}.ssw1636-history-items .ssw1636-photo small{font-size:8px}.ssw1636-history-items>div>span{display:flex;flex-direction:column;gap:3px}.ssw1636-history-items small{font-size:11px}.ssw1636-history-card .ss128-history-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
@media(max-width:560px){.ssw1636-overlay{padding:0;align-items:stretch}.ssw1636-dialog{width:100%;height:100dvh;max-height:100dvh;border-radius:0}.ssw1636-toolbar{padding:12px;align-items:flex-start}.ssw1636-toolbar button{padding:8px}.ssw1636-paper{padding:16px}.ssw1636-parties{grid-template-columns:1fr}.ssw1636-item{grid-template-columns:54px minmax(0,1fr);gap:8px}.ssw1636-item>b{grid-column:2;text-align:left}.ssw1636-photo{width:52px;height:52px;flex-basis:52px}.ssw1636-partner-history article{flex-direction:column;align-items:flex-start}}
@media print{body>*:not(#ssw1636ReceiptOverlay){display:none!important}#ssw1636ReceiptOverlay{position:static!important;display:block!important;background:#fff!important;overflow:visible!important;padding:0!important}#ssw1636ReceiptOverlay .ssw1636-dialog{width:100%!important;max-height:none!important;height:auto!important;overflow:visible!important;box-shadow:none!important;border:0!important}#ssw1636ReceiptOverlay .ssw1636-toolbar{display:none!important}#ssw1636ReceiptOverlay .ssw1636-paper{padding:0!important}.ssw1636-item{break-inside:avoid}}

.ssw1636-events{margin-top:17px;border-top:1px solid #d6dce3;padding-top:10px}.ssw1636-events summary{font-weight:800;font-size:13px;cursor:pointer}.ssw1636-event{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid #ebeff4;font-size:12px;text-transform:capitalize}.ssw1636-event small{font-size:11px;color:#617085;text-transform:none}

/* v1638: Scroll nativo de TODA la ventana del recibo: ningun hijo tiene scroll. */
html body #ssw1636ReceiptOverlay.ssw1636-overlay{
 position:fixed!important;inset:0!important;z-index:2147483600!important;
 box-sizing:border-box!important;display:block!important;
 width:100%!important;height:100vh!important;height:100dvh!important;
 overflow-y:auto!important;overflow-x:hidden!important;
 padding:clamp(8px,2vh,20px)!important;
 overscroll-behavior:contain!important;touch-action:pan-y!important;
 -webkit-overflow-scrolling:touch!important;
 scrollbar-width:auto!important;scrollbar-color:#e6ad00 #e8edf3!important;
 scroll-behavior:auto!important;
}
html body #ssw1636ReceiptOverlay.ssw1636-overlay::-webkit-scrollbar{width:16px!important}
html body #ssw1636ReceiptOverlay.ssw1636-overlay::-webkit-scrollbar-track{background:#e8edf3!important}
html body #ssw1636ReceiptOverlay.ssw1636-overlay::-webkit-scrollbar-thumb{background:#e6ad00!important;border:3px solid #e8edf3!important;border-radius:12px!important}
html body #ssw1636ReceiptOverlay .ssw1636-dialog{
 box-sizing:border-box!important;display:block!important;position:relative!important;
 width:min(100%,840px)!important;max-width:840px!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 margin:0 auto!important;overflow:visible!important;
}
html body #ssw1636ReceiptOverlay .ssw1636-toolbar{
 position:sticky!important;top:0!important;z-index:10!important;
 box-sizing:border-box!important;min-height:58px!important;
}
html body #ssw1636ReceiptOverlay .ssw1636-paper{
 box-sizing:border-box!important;display:block!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 overflow:visible!important;touch-action:auto!important;
 padding-bottom:34px!important;scroll-behavior:auto!important;
 outline:none!important;
}
html body #ssw1636ReceiptOverlay .ssw1637-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
html body #ssw1636ReceiptOverlay [data-ssw1637-down]{background:#e8f4ff!important;color:#10283e!important}
html body #ssw1636ReceiptOverlay .ssw1637-scroll-end{display:flex;justify-content:center;padding:18px 0 8px}
html body #ssw1636ReceiptOverlay [data-ssw1637-up]{background:#152638;color:#fff;border:0;border-radius:12px;cursor:pointer;font-weight:750;padding:11px 18px;min-height:42px}
html body #ssw1636ReceiptOverlay .ssw1638-total-preview{
 background:#f3f7fb;border:1px solid #dbe5f1;border-radius:10px;
 margin-top:14px;padding:9px 12px;display:flex;justify-content:space-between;
 gap:12px;align-items:center;font-size:13px;color:#10283e;
}
html body #ssw1636ReceiptOverlay .ssw1638-total-preview strong{font-size:18px;white-space:nowrap}
@media(max-width:560px){
 html body #ssw1636ReceiptOverlay.ssw1636-overlay{padding:0!important}
 html body #ssw1636ReceiptOverlay .ssw1636-dialog{width:100%!important;max-width:none!important;min-height:100dvh!important;border-radius:0!important}
 html body #ssw1636ReceiptOverlay .ssw1636-toolbar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;padding:10px 12px!important}
 html body #ssw1636ReceiptOverlay .ssw1636-toolbar h2{font-size:14px}
 html body #ssw1636ReceiptOverlay .ssw1637-actions{gap:6px}
 html body #ssw1636ReceiptOverlay .ssw1636-toolbar button{padding:8px 9px!important;font-size:12px}
 html body #ssw1636ReceiptOverlay .ssw1636-paper{padding:16px 16px calc(34px + env(safe-area-inset-bottom,0px))!important}
}
@media print{
 html body #ssw1636ReceiptOverlay.ssw1636-overlay{position:static!important;inset:auto!important;display:block!important;height:auto!important;overflow:visible!important;padding:0!important;background:#fff!important}
 html body #ssw1636ReceiptOverlay .ssw1636-dialog{position:static!important;width:100%!important;max-width:none!important;min-height:0!important;height:auto!important;overflow:visible!important;box-shadow:none!important;border:0!important}
 html body #ssw1636ReceiptOverlay .ssw1636-toolbar{display:none!important}
 html body #ssw1636ReceiptOverlay .ssw1636-paper{height:auto!important;overflow:visible!important;padding:0!important}
 html body #ssw1636ReceiptOverlay .ssw1637-scroll-end{display:none!important}
}

/* v1639: UN SOLO SCROLL, en la tarjeta del recibo. El fondo NO se desplaza. */
html.ssw1639-receipt-open,html.ssw1639-receipt-open body,
html body.ssw1639-receipt-open,
html.ssw1639-receipt-open body#ssRacingPage.ssw1639-receipt-open{
    overflow:hidden!important;
    overscroll-behavior:none!important;
}
html body #ssw1636ReceiptOverlay.ssw1636-overlay{
    position:fixed!important;inset:0!important;z-index:2147483600!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:100%!important;height:100vh!important;height:100dvh!important;
    max-height:100dvh!important;overflow:hidden!important;
    padding:clamp(8px,2vh,18px)!important;
    touch-action:pan-y!important;overscroll-behavior:none!important;
    scrollbar-width:none!important;
}
html body #ssw1636ReceiptOverlay.ssw1636-overlay::-webkit-scrollbar{display:none!important}
html body #ssw1636ReceiptOverlay .ssw1636-dialog{
    box-sizing:border-box!important;display:block!important;position:relative!important;
    flex:0 1 840px!important;width:min(100%,840px)!important;max-width:840px!important;
    height:auto!important;max-height:calc(100dvh - clamp(16px,4vh,36px))!important;
    min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
    overscroll-behavior:contain!important;touch-action:pan-y!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:thin!important;scrollbar-color:#e4ab00 #edf1f5!important;
    background:white!important;scroll-behavior:auto!important;
    outline:none!important;
}
html body #ssw1636ReceiptOverlay .ssw1636-dialog::-webkit-scrollbar{display:block!important;width:10px!important}
html body #ssw1636ReceiptOverlay .ssw1636-dialog::-webkit-scrollbar-track{background:#edf1f5!important}
html body #ssw1636ReceiptOverlay .ssw1636-dialog::-webkit-scrollbar-thumb{background:#e4ab00!important;border:2px solid #edf1f5!important;border-radius:12px!important}
html body #ssw1636ReceiptOverlay .ssw1636-toolbar{
    position:sticky!important;top:0!important;z-index:20!important;
}
html body #ssw1636ReceiptOverlay .ssw1636-paper{
    display:block!important;height:auto!important;min-height:0!important;max-height:none!important;
    overflow:visible!important;touch-action:pan-y!important;
}
@media(max-width:560px){
 html body #ssw1636ReceiptOverlay.ssw1636-overlay{padding:0!important}
 html body #ssw1636ReceiptOverlay .ssw1636-dialog{
    width:100%!important;max-width:none!important;flex:1 1 auto!important;
    height:100dvh!important;max-height:100dvh!important;
    border-radius:0!important;
 }
}
@media print {
 html.ssw1639-receipt-open,html.ssw1639-receipt-open body,
 html body.ssw1639-receipt-open,
 html.ssw1639-receipt-open body#ssRacingPage.ssw1639-receipt-open{height:auto!important;overflow:visible!important;}
 html body #ssw1636ReceiptOverlay.ssw1636-overlay{
    display:block!important;position:static!important;inset:auto!important;
    width:100%!important;height:auto!important;max-height:none!important;
    overflow:visible!important;padding:0!important;background:white!important;
 }
 html body #ssw1636ReceiptOverlay .ssw1636-dialog{
    width:100%!important;max-width:none!important;max-height:none!important;
    height:auto!important;overflow:visible!important;box-shadow:none!important;
    scrollbar-width:none!important;
 }
 html body #ssw1636ReceiptOverlay .ssw1636-toolbar{display:none!important}
 html body #ssw1636ReceiptOverlay .ssw1636-paper{overflow:visible!important}
}

/* v1640: CAUSA RAIZ DEL SCROLL/CLICS BLOQUEADOS.
 * Un CSS antiguo (11cd0069d499c6ea453c.css) contiene:
 * [id*="Overlay"]:not(.show):not(.active) { pointer-events:none; }
 * El recibo #ssw1636ReceiptOverlay coincide, por lo que la barra se dibuja
 * pero rueda, arrastre, botones y tactil van al fondo.
 * Esta excepcion mantiene la protección de overlays antiguos cerrados.
 */
html body #ssw1636ReceiptOverlay.ssw1636-overlay,
html body #ssw1636ReceiptOverlay.ssw1636-overlay .ssw1636-dialog,
html body #ssw1636ReceiptOverlay.ssw1636-overlay .ssw1636-toolbar,
html body #ssw1636ReceiptOverlay.ssw1636-overlay .ssw1636-paper {
    pointer-events:auto!important;
}
