[hidden]{display:none!important}
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#14161b;background:#f5f6f8;--ink:#111317;--muted:#697386;--line:#dfe3e9;--orange:#ff8a00;--orange-dark:#d96f00;--cyan:#00cbd3;--green:#00d45a;--red:#c23b3b;--paper:rgba(255,255,255,.97)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 8% 0%,rgba(255,138,0,.14),transparent 28%),radial-gradient(circle at 92% 8%,rgba(0,203,211,.14),transparent 30%),#f5f6f8}.shell{width:min(1440px,calc(100% - 32px));margin:0 auto;padding:32px 0 44px}.hero{position:relative;display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:20px;padding:24px 26px;overflow:hidden;border:1px solid rgba(17,19,23,.08);border-radius:24px;background:linear-gradient(135deg,rgba(255,255,255,.99),rgba(250,252,252,.94));box-shadow:0 18px 48px rgba(17,19,23,.08)}.hero:after{content:"";position:absolute;right:-70px;bottom:-110px;width:280px;height:280px;border:34px solid rgba(255,138,0,.09);border-radius:50%}.brand-lockup{display:flex;align-items:center;gap:24px}.brand-logo{width:165px;height:auto;filter:drop-shadow(0 8px 13px rgba(17,19,23,.12))}.eyebrow{margin:0 0 7px;font-size:12px;font-weight:900;letter-spacing:.18em;color:var(--orange-dark)}h1{margin:0;font-size:clamp(34px,5vw,58px);line-height:1;letter-spacing:-.045em}.subtitle{max-width:760px;margin:12px 0 0;color:#596275;font-size:16px;line-height:1.55}.version{z-index:2;padding:8px 12px;border-radius:999px;background:#fff0dd;color:#a65000;border:1px solid #ffd09b;font-size:12px;font-weight:900}.card{background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:0 14px 40px rgba(28,34,45,.07)}.action-card{padding:22px 26px}.start-form{display:grid;grid-template-columns:minmax(190px,300px) minmax(190px,300px) minmax(260px,1fr);gap:16px;align-items:end}.date-field label{display:block;margin-bottom:8px;font-weight:900;color:#263044}.date-field input{width:100%;min-height:52px;border:1px solid #cbd3df;border-radius:13px;padding:0 14px;background:#fff;font:inherit}.date-field input:focus{outline:none;border-color:var(--cyan);box-shadow:0 0 0 4px rgba(0,203,211,.14)}.start-button{min-height:52px;border:0;border-radius:14px;padding:0 22px;background:linear-gradient(90deg,#111317,#262a31 72%,#4a2e0d);color:#fff;font-weight:900;cursor:pointer;box-shadow:inset 5px 0 0 var(--orange),0 12px 26px rgba(17,19,23,.14)}.start-button:disabled{opacity:.58;cursor:wait}.start-button.small{min-height:44px;font-size:13px}.button-mark{color:var(--orange);margin-right:7px}.action-note{margin:12px 0 0;color:var(--muted);font-size:13px}.status-card{margin-top:18px;padding:22px 24px}.section-heading,.platform-title,.pending-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.section-heading h2,.platform-title h2{margin:0 0 5px}.section-heading p,.platform-title p,.pending-head p{margin:0;color:var(--muted);font-size:13px}.badge{border-radius:999px;padding:7px 11px;font-size:12px;font-weight:900}.badge.working{background:#fff0dd;color:#995000}.badge.success{background:#dcf8e8;color:#126238}.badge.danger{background:#ffe5e5;color:#a12d2d}.overall-progress{height:9px;margin-top:18px;overflow:hidden;border-radius:999px;background:#e9edf2}.overall-progress-bar{width:0;height:100%;background:linear-gradient(90deg,var(--cyan),var(--green));transition:width .35s}.overall-progress-text{text-align:right;margin-top:7px;font-size:12px;font-weight:900;color:#657086}.tabs{display:flex;gap:10px;margin:22px 0 16px;padding:7px;border-radius:16px;background:#e9edf1;width:max-content;max-width:100%}.tab{border:0;padding:12px 18px;border-radius:12px;background:transparent;color:#5c6676;font-weight:900;cursor:pointer}.tab.active{background:#fff;color:#111317;box-shadow:0 4px 16px rgba(17,19,23,.08);box-shadow:inset 3px 0 0 var(--orange),0 4px 16px rgba(17,19,23,.08)}.tab-pane{display:none}.tab-pane.active{display:block}.platform-title{margin:8px 0 16px}.download-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:12px;text-decoration:none;background:#00aeb8;color:#fff;font-size:13px;font-weight:900}.download-btn.secondary{background:#fff;color:#283346;border:1px solid #cfd6df}.download-group{display:flex;gap:8px}.warnings{margin-bottom:14px;padding:13px 15px;border:1px solid #f4d199;border-radius:14px;background:#fff9ee;color:#825000;font-size:13px;line-height:1.45}.platform-block{margin-bottom:22px}.platform-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.platform-bar h3{margin:0;font-size:20px}.platform-total-line{color:var(--muted);font-size:12px;font-weight:800}.kpi-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;margin-bottom:12px}.kpi{padding:14px;border:1px solid #e2e6ed;border-radius:14px;background:#fff}.kpi span{display:block;color:#70798a;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.03em}.kpi b{display:block;margin-top:5px;font-size:20px;letter-spacing:-.02em}.table-wrap{overflow:auto;border:1px solid #dde2e9;border-radius:16px;background:#fff}.report-table{width:100%;min-width:1250px;border-collapse:separate;border-spacing:0;font-size:12px}.report-table th{position:sticky;top:0;z-index:1;padding:10px 9px;background:#111317;color:#fff;text-align:right;white-space:nowrap}.report-table th:nth-child(1),.report-table th:nth-child(2){text-align:left}.report-table td{padding:9px;border-bottom:1px solid #edf0f3;text-align:right;white-space:nowrap}.report-table td:nth-child(1),.report-table td:nth-child(2){text-align:left}.report-table tbody tr:hover{background:#f8fbfc}.report-table .zero{color:#a2a9b5}.report-table .warn{color:#a65a00;font-weight:900}.online-row{background:#fff8e9!important}.pending-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px;padding:14px 16px;border:1px solid #dfe4ea;border-radius:15px;background:#fff}.pending-toolbar b{display:block}.pending-toolbar span{display:block;margin-top:3px;color:var(--muted);font-size:12px}.pending-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.pending-card{padding:16px;min-width:0}.pending-head{align-items:center;padding-bottom:12px;border-bottom:1px solid #e6e9ee}.pending-head h3{margin:0 0 3px}.mini-btn{border:1px solid #ccd4df;border-radius:9px;background:#fff;padding:8px 10px;color:#344158;font-size:12px;font-weight:900;cursor:pointer}.ticket-list{max-height:640px;overflow:auto;padding-top:8px}.ticket-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:start;padding:10px 8px;border-bottom:1px solid #edf0f3}.ticket-check{margin-top:6px;width:17px;height:17px;accent-color:#00aeba}.ticket-main b{display:block;font-size:13px}.ticket-main small{display:block;margin-top:3px;color:#6e7787;line-height:1.35}.ticket-money{text-align:right}.ticket-money b{display:block;font-size:14px}.ticket-money small{color:#727b8a}.exclusion{grid-column:2/4;display:none;grid-template-columns:minmax(180px,260px) minmax(180px,1fr);gap:8px;padding:9px;border-radius:10px;background:#fff4f4;border:1px solid #f3caca}.ticket-row.excluded .exclusion{display:grid}.exclusion select,.exclusion input{width:100%;min-height:38px;border:1px solid #d4d9e1;border-radius:9px;padding:0 9px;background:#fff;font:inherit;font-size:12px}.exclusion input[hidden]{display:none}.muted{color:var(--muted)}@media(max-width:1100px){.kpi-grid{grid-template-columns:repeat(4,1fr)}.pending-grid{grid-template-columns:1fr}}@media(max-width:760px){.shell{width:min(100% - 18px,1440px);padding-top:12px}.hero{padding:18px}.brand-logo{width:105px}.brand-lockup{gap:12px}.version{position:absolute;right:12px;top:12px}.start-form{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(2,1fr)}.platform-title,.pending-toolbar{flex-direction:column;align-items:stretch}.tabs{width:100%;overflow:auto}.tab{white-space:nowrap}.exclusion{grid-template-columns:1fr}}

/* V0.2.1 - sesiones separadas y vistas de reporte */
.section-intro{margin:10px 0 14px}.section-intro h2{margin:0 0 5px;font-size:26px}.section-intro>p:last-child{margin:0;color:var(--muted)}
.session-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.session-card{position:relative;padding:22px;display:grid;grid-template-columns:54px 1fr;gap:15px;overflow:hidden}.session-card h3{margin:1px 0 7px;font-size:22px}.session-card p{margin:0;color:var(--muted);line-height:1.5}.session-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#111317;color:#fff;font-weight:950;box-shadow:inset 4px 0 0 var(--orange)}.session-form{grid-column:1/3;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:4px}.session-form label{font-size:12px;font-weight:900;color:#4f5b6d}.session-form input{display:block;width:100%;min-height:46px;margin-top:6px;border:1px solid #cbd3df;border-radius:11px;padding:0 12px;background:#fff;font:inherit}.session-form .start-button{grid-column:1/3}.pending-button{box-shadow:inset 5px 0 0 var(--cyan),0 12px 26px rgba(17,19,23,.14)}
.workspace-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:22px 0 14px}.workspace-top h2{margin:0 0 4px;font-size:28px}.workspace-top p:last-child{margin:0;color:var(--muted);font-size:13px}.report-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 12px;margin-bottom:14px}.view-switcher{display:flex;gap:7px;flex-wrap:wrap}.view-btn{border:1px solid #d4dae3;border-radius:10px;padding:9px 13px;background:#fff;color:#4b576b;font-weight:900;cursor:pointer}.view-btn.active{background:#111317;color:#fff;border-color:#111317;box-shadow:inset 3px 0 0 var(--orange)}.combined-note{margin:0 0 9px;color:var(--muted);font-size:12px}.dual-kpi{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:13px}.dual-kpi .kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.combined-wrap{max-width:100%}.combined-table{min-width:2850px}.combined-table .group-head th{text-align:center;background:#22262d}.combined-table .group-head .loto-group{background:#292d34}.combined-table .group-head .pelota-group{background:#174047}.single-platform{min-width:1450px}
.report-table .sticky-code{position:sticky;left:0;z-index:4;min-width:78px;max-width:78px;text-align:left;background:#fff}.report-table .sticky-name{position:sticky;left:78px;z-index:4;min-width:245px;max-width:245px;text-align:left;background:#fff;box-shadow:4px 0 7px rgba(20,22,27,.06)}.report-table thead .sticky-code,.report-table thead .sticky-name{z-index:8;background:#111317;color:#fff}.report-table tbody tr:hover .sticky-code,.report-table tbody tr:hover .sticky-name{background:#f8fbfc}.report-table .online-row .sticky-code,.report-table .online-row .sticky-name{background:#fff8e9!important}
@media(max-width:1000px){.session-grid,.dual-kpi{grid-template-columns:1fr}.dual-kpi .kpi-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:700px){.session-form{grid-template-columns:1fr}.session-form .start-button{grid-column:1}.workspace-top,.report-toolbar{flex-direction:column;align-items:stretch}.dual-kpi .kpi-grid{grid-template-columns:repeat(2,1fr)}.report-table .sticky-name{left:70px;min-width:190px;max-width:190px}.report-table .sticky-code{min-width:70px;max-width:70px}}

/* V0.3.0 - informes simultáneos, progreso individual y resultados progresivos */
.task-progress-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.task-progress{padding:13px 14px;border:1px solid #dde3eb;border-radius:14px;background:#fff}.task-top,.task-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px}.task-top>div{display:flex;align-items:center;gap:8px;min-width:0}.task-top b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-number{display:inline-grid;place-items:center;min-width:29px;height:25px;border-radius:8px;background:#111317;color:#fff;font-size:10px;font-weight:950;box-shadow:inset 3px 0 0 var(--orange)}.method-badge{padding:5px 7px;border-radius:999px;background:#edf1f5;color:#657084;font-size:9px;font-weight:950;white-space:nowrap}.method-badge.directo{background:#dcf8e8;color:#126238}.method-badge.respaldo{background:#fff0dd;color:#995000}.method-badge.error{background:#ffe5e5;color:#a12d2d}.task-bar{height:6px;margin:10px 0 8px;overflow:hidden;border-radius:999px;background:#edf0f4}.task-bar>div{height:100%;background:linear-gradient(90deg,var(--cyan),var(--green));transition:width .25s}.task-error .task-bar>div{background:#d94b4b}.task-bottom{color:#737d8d;font-size:10px}.task-bottom span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-bottom b{color:#404b5e}.live-platform-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.platform-wait{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px;border:1px dashed #ccd5e0;border-radius:18px;background:linear-gradient(180deg,#fff,#f8fafc);text-align:center}.platform-wait h3{margin:14px 0 7px}.platform-wait p{max-width:360px;margin:0;color:var(--muted);font-size:12px;line-height:1.45}.big-spinner{width:38px;height:38px;border:4px solid #e2e8ee;border-top-color:var(--cyan);border-radius:50%;animation:spin .85s linear infinite}.platform-loader{display:flex;align-items:center;justify-content:center;gap:10px;min-height:160px;color:#6b7688;font-size:13px;font-weight:850}.loader-dot{width:17px;height:17px;border:3px solid #e0e6ec;border-top-color:var(--cyan);border-radius:50%;animation:spin .8s linear infinite}.platform-empty{padding:28px;text-align:center;color:var(--muted)}@keyframes spin{to{transform:rotate(360deg)}}.view-btn:disabled{opacity:.4;cursor:not-allowed}.pdf-button{border:0;cursor:pointer;font:inherit}.pdf-button:disabled{opacity:.55;cursor:wait}
@media(max-width:1000px){.task-progress-grid,.live-platform-grid{grid-template-columns:1fr}}

/* V0.3.1 - resolución individual, modo manual y progreso de entregables */
.badge.partial{background:#eef0f4;color:#596375}.task-progress.task-completed{border-color:#cdebd9}.task-progress.task-error,.task-progress.task-cancelled{border-color:#f1caca}.task-progress.task-skipped{border-color:#d9dde5;background:#f7f8fa}.task-progress.task-skipped .task-bar>div{background:#8d96a5}.task-progress.task-cancelled .task-bar>div,.task-progress.task-error .task-bar>div{background:#d94b4b}.task-top{align-items:flex-start}.task-head-actions{display:flex!important;justify-content:flex-end;align-items:center!important;gap:6px!important;flex-wrap:wrap}.task-percent{font-size:10px;font-weight:950;color:#445064;min-width:32px;text-align:right}.task-skip,.task-cancel,.task-retry,.task-manual,.manual-submit{border:0;font:inherit;font-weight:900;cursor:pointer}.task-skip{min-height:26px;padding:0 7px;border-radius:7px;background:#f0f2f5;color:#4f5969;font-size:9px}.task-cancel{width:27px;height:27px;border-radius:8px;background:#ffe9e9;color:#a62f2f;font-size:18px;line-height:1}.task-resolution{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.task-retry,.task-manual{min-height:34px;padding:0 11px;border-radius:9px;font-size:10px}.task-retry{background:#111317;color:#fff}.task-manual{background:#fff4e5;color:#9a5300;border:1px solid #f2c98d}.method-badge.manual{background:#e7f1ff;color:#245a9a}.method-badge.saltado{background:#eceff3;color:#596273}.method-badge.cancelado{background:#ffe5e5;color:#a12d2d}.manual-panel{margin-top:11px;padding:13px;border:1px solid #d9dfe7;border-radius:12px;background:#f9fafc}.manual-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.manual-heading strong{font-size:12px}.manual-close{border:0;background:transparent;color:#657085;font-size:18px;cursor:pointer}.manual-panel p{margin:7px 0 10px;color:#6c7687;font-size:11px;line-height:1.45}.manual-site-link{display:inline-flex;margin-bottom:9px;color:#006a73;font-size:11px;font-weight:900;text-decoration:none}.manual-file-label{display:grid;gap:6px;padding:9px;border:1px dashed #cbd3de;border-radius:9px;background:#fff;color:#4f5b6c;font-size:10px;font-weight:900}.manual-file{font-size:11px}.manual-confirm{display:flex;align-items:flex-start;gap:7px;margin:9px 0;color:#596477;font-size:10px;line-height:1.4}.manual-confirm input{margin-top:1px}.manual-submit{min-height:35px;padding:0 12px;border-radius:9px;background:#00aeb8;color:#fff;font-size:10px}.manual-submit:disabled,.task-retry:disabled,.task-manual:disabled,.task-skip:disabled,.task-cancel:disabled{opacity:.55;cursor:wait}.manual-feedback{margin-top:8px;color:#687386;font-size:10px;font-weight:800}.manual-feedback.error{color:#ab3030}.manual-feedback.success{color:#13713e}.platform-unavailable{display:flex;min-height:150px;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:22px;text-align:center;color:#6b7586}.platform-unavailable b{color:#343d4c}.platform-unavailable.action{background:#fff9ef;border-radius:12px}.platform-wait.unavailable{border-style:solid;border-color:#e0d4c4}.unavailable-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#fff0dd;color:#9a5300;font-size:20px;font-weight:950}.deliverable-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.deliverable-actions .start-button,.deliverable-actions .download-btn{min-height:42px}.deliverable-progress{margin:0 0 14px;padding:14px 16px}.deliverable-progress.error{border-color:#efc9c9}.deliverable-progress.error .overall-progress-bar{background:#d94b4b}.deliverable-progress-top{display:flex;justify-content:space-between;align-items:center;gap:16px}.deliverable-progress-top .eyebrow{margin-bottom:3px}.deliverable-progress-top b{font-size:12px}.deliverable-progress-top>span{font-size:12px;font-weight:950;color:#4f596a}
@media(max-width:760px){.task-head-actions{justify-content:flex-start}.deliverable-actions{justify-content:flex-start;width:100%}.deliverable-actions>*{width:100%}}

/* V0.3.3 - visibilidad estricta de entregables */
#pendingActions[hidden],#cuadreXlsx[hidden],#cuadrePdfButton[hidden],#reportExcel[hidden]{display:none!important}

/* V0.3.3 - recuperación general */
.status-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.retry-all{font-weight:800;border-color:#f4b400;background:#fff8dc;color:#5d4300}
.retry-all:hover{transform:translateY(-1px)}

/* V0.3.6 · adquisición segmentada de Lotería */
.task-progress.task-chunked .task-bar{height:13px;margin-top:12px;box-shadow:inset 0 0 0 1px #e1e6ec}
.task-progress.task-chunked .task-bar>div{background:linear-gradient(90deg,#00b7c0,#00c85a)}
.task-subranges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:2px 0 11px}
.task-subranges[hidden]{display:none!important}
.subrange{padding:7px 8px;border:1px solid #e2e6ec;border-radius:9px;background:#fafbfd;min-width:0}
.subrange-top{display:flex;justify-content:space-between;gap:8px;align-items:center;color:#536075;font-size:9px;font-weight:900}
.subrange-top span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.subrange-top b{color:#303b4c;font-size:9px}
.subrange-bar{height:4px;margin:5px 0;overflow:hidden;border-radius:999px;background:#e9edf2}.subrange-bar>div{height:100%;border-radius:999px;background:linear-gradient(90deg,#00b7c0,#00c85a);transition:width .25s}
.subrange small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7b8493;font-size:8px}.sub-completed{border-color:#ccebd8;background:#fbfffc}.sub-error{border-color:#f0cccc}.sub-error .subrange-bar>div{background:#d94b4b}
@media(max-width:760px){.task-subranges{grid-template-columns:1fr}}
