:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#172334;background:#e8f3ff}*{box-sizing:border-box}body.vb-body{margin:0;background:#e8f3ff}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.65;cursor:wait}input,textarea{width:100%;border:1px solid #cbd5e1;border-radius:11px;background:#fff;padding:13px;font-size:17px;color:#172334}label{display:block;font-weight:700;font-size:13px;margin:12px 0 7px}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}.vb-shell{max-width:560px;min-height:100dvh;margin:auto;background:#f8fafc;padding-bottom:calc(92px + env(safe-area-inset-bottom))}.vb-head{background:white;padding:18px 16px 13px;display:flex;justify-content:space-between;align-items:center;gap:9px}.vb-head h1,.vb-login h1{color:#173b65;letter-spacing:.4px;margin:5px 0;font-size:25px}.vb-head small,.vb-login h1 small{background:#e2e8f0;border-radius:6px;padding:4px 6px;font-size:10px;vertical-align:middle}.vb-head p{font-size:12px;color:#64748b;margin:5px 0}.vb-tag{font-size:9px;letter-spacing:1.2px;color:#475569;font-weight:750}.vb-logout{color:#334155;text-decoration:none;font-size:12px;font-weight:700;border-radius:8px;padding:9px;border:1px solid #cbd5e1}.vb-connect{background:white;padding:0 16px 12px;font-size:12px;color:#15803d}.vb-dot{display:inline-block;background:#16a34a;width:8px;height:8px;border-radius:50%;margin-right:4px}.vb-counters{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:12px}.vb-counters div{text-align:center;padding:12px 2px;background:#dbeafe;color:#1d4ed8;border-radius:12px}.vb-counters div:nth-child(2){background:#fef3c7;color:#92400e}.vb-counters div:nth-child(3){background:#fee2e2;color:#991b1b}.vb-counters strong{display:block;font-size:27px}.vb-counters small{display:block;font-size:9px;font-weight:800}.vb-section{padding:14px 16px 26px}.vb-entry{background:#fff1e8}.vb-sales{background:#e8f3ff}.vb-section h2{font-size:22px;color:#173b65;margin:0 0 10px}.vb-muted,.vb-note{color:#64748b;font-size:13px;line-height:1.5}.vb-biginput{text-align:center;font-size:36px;font-weight:800;letter-spacing:3px;height:78px}.vb-primary,.vb-secondary,.vb-confirm,.vb-danger{width:100%;border:0;border-radius:12px;padding:15px;font-weight:800;font-size:16px;margin-top:12px;min-height:53px}.vb-primary{background:#1d4ed8;color:#fff}.vb-secondary{background:#dbeafe;color:#1d4ed8}.vb-confirm{background:#15803d;color:white}.vb-danger{background:#b91c1c;color:white}.vb-result{text-align:center;background:white;border-radius:17px;padding:20px;margin-top:18px;border:2px solid #cbd5e1;box-shadow:0 3px 8px #0001}.vb-result>span,.vb-result>b{display:block;font-size:13px}.vb-result strong{display:block;font-size:52px;letter-spacing:4px}.vb-result.available{background:#eff6ff;color:#1d4ed8;border-color:#93c5fd}.vb-result.sold{background:#f0fdf4;color:#166534;border-color:#86efac}.vb-result.entered{background:#fef2f2;color:#991b1b;border-color:#fca5a5}.vb-warn{font-weight:800}.vb-message{padding:12px 15px;font-size:13px;font-weight:700;margin:10px 14px;border-radius:11px;background:#dbeafe;color:#1d4ed8}.vb-message.error{background:#fee2e2;color:#991b1b}.vb-message.success{background:#dcfce7;color:#166534}.vb-filters{display:flex;gap:5px;flex-wrap:wrap;margin:10px 0}.vb-filters button{border:1px solid #cbd5e1;background:white;border-radius:8px;padding:9px;font-size:12px}.vb-filters .selected{background:#dbeafe;border-color:#2563eb;color:#1d4ed8;font-weight:800}.vb-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.vb-ticket{border-radius:11px;border:1px solid;padding:14px 3px}.vb-ticket b{font-size:22px;display:block}.vb-ticket small{font-size:9px}.vb-ticket.available{background:#dbeafe;color:#1d4ed8;border-color:#93c5fd}.vb-ticket.sold{background:#dcfce7;color:#166534;border-color:#86efac}.vb-ticket.entered{background:#fee2e2;color:#991b1b;border-color:#fca5a5}.vb-nav{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:min(560px,100%);display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:8px 7px max(9px,env(safe-area-inset-bottom));border-top:1px solid #cbd5e1;box-shadow:0 -4px 18px #0001;background:white;z-index:10}.vb-nav button{background:#f1f5f9;border:0;border-radius:10px;color:#334155;padding:8px 3px;min-height:55px;font-size:18px}.vb-nav button span{display:block;font-weight:800;font-size:11px;margin-top:3px}.vb-nav button.active{background:#dbeafe;color:#1d4ed8;outline:2px solid #60a5fa;outline-offset:-2px}.vb-stat{background:white;padding:14px;border-radius:12px;margin:9px 0;display:flex;justify-content:space-between;gap:10px;align-items:center}.vb-stat small{color:#64748b}.vb-stat b{font-size:18px;color:#173b65;text-align:right}.vb-admin{margin-top:20px;border:1px solid #fecaca;background:#fff;padding:14px;border-radius:12px}.vb-admin summary{font-weight:800;color:#991b1b}.vb-audit{max-height:380px;overflow:auto;background:white;padding:8px;border-radius:10px;font-size:12px}.vb-audit p{border-bottom:1px solid #e2e8f0;padding:6px}.vb-login{min-height:100dvh;display:grid;place-items:center;padding:20px}.vb-card{background:white;width:min(100%,390px);padding:25px;border-radius:22px;box-shadow:0 12px 34px #173b6520}.vb-card h2{font-size:20px}.vb-card p{font-size:13px;color:#64748b}.vb-error{padding:10px;border-radius:9px;background:#fee2e2;color:#991b1b}.vb-install{position:fixed;bottom:calc(78px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(540px,calc(100% - 20px));z-index:50;background:#173b65;color:white;display:flex;align-items:center;gap:9px;padding:12px;border-radius:13px;box-shadow:0 7px 20px #0004}.vb-install div{flex:1;min-width:0}.vb-install b,.vb-install small{display:block}.vb-install b{font-size:13px}.vb-install small{font-size:11px}.vb-install button{background:#fef3c7;color:#78350f;border:0;border-radius:8px;padding:8px;font-weight:800;font-size:12px}.vb-install #vb-install-x{background:#ffffff30;color:#fff;font-size:18px}.vb-loading{padding:50px;text-align:center}textarea{resize:vertical}@media(min-width:620px){.vb-shell{border:1px solid #cbd5e1;border-radius:18px}}@media(max-width:350px){.vb-grid{grid-template-columns:repeat(2,1fr)}.vb-head h1{font-size:21px}}
/* v1.2.0 acceso rápido, alto contraste y pantalla móvil */
select{width:100%;border:1px solid #cbd5e1;border-radius:11px;background:white;padding:13px;color:#172334;font-size:16px}select:focus-visible{outline:3px solid #60a5fa}
.vb-entry .vb-biginput{font-size:30px;min-height:86px;height:auto;text-align:left;letter-spacing:1px;line-height:1.3}
.vb-entry .vb-confirm{min-height:68px;font-size:19px;margin-top:15px}
.vb-subinfo{font-size:12px;color:#64748b;margin-top:16px;line-height:1.45}
.vb-express-success,.vb-express-error{padding:19px 13px;border-radius:18px;margin-top:17px;text-align:center;border:3px solid}
.vb-express-success{background:#dcfce7;color:#14532d;border-color:#22c55e}
.vb-express-error{background:#fee2e2;color:#991b1b;border-color:#ef4444}
.vb-express-success h2,.vb-express-error h2{color:inherit;font-size:25px;margin:0 0 10px}
.vb-express-success strong{font-size:23px;word-break:break-word}.vb-express-error p{font-weight:750;font-size:16px;line-height:1.4}
.vb-bigmark{font-size:48px;font-weight:900}.vb-entry .vb-muted{line-height:1.5}

/* v1.3.0: teclado numérico grande y entrada sin comas */
.vb-entry{padding-top:16px}.vb-number-display{font-size:44px;font-weight:900;text-align:center;letter-spacing:5px;height:80px;background:#fff;color:#12365f;caret-color:transparent}.vb-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}.vb-keypad button{border:1px solid #a6c4e9;background:#fff;border-radius:14px;min-height:64px;font-size:28px;font-weight:850;color:#163a65;touch-action:manipulation}.vb-keypad button:active{background:#bfdbfe}.vb-keypad button:last-child,.vb-keypad button:nth-child(10){background:#e1e9f4}.vb-group{border:1px solid #d3deec;border-radius:14px;padding:12px;background:white;margin-top:15px}.vb-group-title{display:flex;justify-content:space-between;gap:10px;font-size:14px}.vb-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px;min-height:31px}.vb-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid #93c5fd;background:#eff6ff;color:#1e40af;border-radius:9px;padding:5px 6px 5px 12px;font-size:16px}.vb-chip button{border:0;background:#c7daf7;border-radius:7px;min-height:30px;min-width:30px;font-weight:850;color:#1e3a8a}.vb-entry-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.vb-entry-actions button{font-size:17px;min-height:64px;margin-top:10px;padding:9px}.vb-batch{min-height:65px!important;font-size:18px!important}.vb-warning{background:#fff7dd;border-radius:10px;padding:9px;color:#854d0e}.vb-entry button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:360px){.vb-keypad button{min-height:58px}.vb-entry-actions button{font-size:15px}}

/* v1.4: semáforo grande, historial visible, menos lecturas y toques */
.vb-counters button{border:0;text-align:center;padding:12px 2px;background:#fee2e2;color:#991b1b;border-radius:12px;cursor:pointer}
.vb-counters button strong{display:block;font-size:27px}.vb-counters button small{display:block;font-size:9px;font-weight:800}
.vb-result-card{margin:14px 0 9px;padding:16px 12px;border-radius:20px;border:4px solid;text-align:center;box-shadow:0 5px 16px #0002;line-height:1.3}
.vb-result-symbol{font-size:48px;line-height:1.05;font-weight:950}.vb-result-head{font-size:27px;line-height:1.15;font-weight:950;letter-spacing:-.4px;margin:7px 0}.vb-result-folio{font-size:38px;letter-spacing:3px;font-weight:950;font-variant-numeric:tabular-nums;margin:5px 0}.vb-result-text{font-size:16px;font-weight:900}.vb-result-detail{margin:10px 0 0;font-size:14px;font-weight:750}.vb-result-footer{margin-top:12px;border-radius:10px;padding:10px;background:#fff8;color:#fff;font-size:14px;font-weight:950}
.vb-stop{background:#b91c1c;color:#fff;border-color:#7f1d1d}.vb-go{background:#13803d;color:white;border-color:#14532d}.vb-review{background:#ffefae;color:#713f12;border-color:#eab308}.vb-review .vb-result-head{font-size:24px}
.vb-verify{display:block;width:100%;min-height:46px;margin:9px 0 5px;border:2px solid #b9c9dd;background:#fff;color:#173b65;border-radius:11px;font-size:16px;font-weight:900}
.vb-checking{text-align:center;margin:12px 0;border-radius:14px;background:#dbeafe;color:#1e40af;padding:16px;font-size:18px;font-weight:800}
.vb-recent{margin-top:18px;border-radius:16px;background:white;border:1px solid #d3deec;padding:13px}.vb-recent-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.vb-recent-title h3{margin:0;font-size:17px;color:#173b65}.vb-recent-title button{border:0;border-radius:10px;background:#dbeafe;color:#1d4ed8;font-size:12px;font-weight:900;padding:10px}.vb-recent-rows>div{display:grid;grid-template-columns:90px 1fr auto;align-items:center;gap:5px;border-top:1px solid #e2e8f0;padding:10px 0}.vb-recent-rows strong{font-size:21px;color:#173b65}.vb-recent-rows span{font-size:11px;color:#991b1b;font-weight:900}.vb-recent-rows small{font-size:11px;color:#64748b}.vb-recent-rows p{font-size:13px;color:#64748b}
.vb-ticket-date{display:block;font-size:10px;margin-top:3px;color:#991b1b}
@media(max-width:380px){.vb-result-head{font-size:23px}.vb-result-folio{font-size:32px}.vb-recent-rows>div{grid-template-columns:70px 1fr;gap:3px}.vb-recent-rows small{grid-column:2}}


/* v1.5: teclado exprés inteligente, PASA/NO PASA gigante e historial más visual */
.vb-passbtn{background:#0f9d58!important;font-size:20px!important;box-shadow:0 6px 16px #15803d33}
.vb-verify{font-size:15px;font-weight:950;background:#f8fbff}
.vb-result-card{position:relative;overflow:hidden}
.vb-result-head{font-size:34px;letter-spacing:1px}
.vb-result-symbol{font-size:58px}
.vb-result-folio{font-size:44px}
.vb-result-text{font-size:18px}
.vb-stop .vb-result-head,.vb-go .vb-result-head,.vb-review .vb-result-head{text-transform:uppercase}
.vb-go{background:linear-gradient(180deg,#16a34a,#15803d);border-color:#14532d}
.vb-stop{background:linear-gradient(180deg,#dc2626,#b91c1c);border-color:#7f1d1d}
.vb-review{background:linear-gradient(180deg,#fde68a,#facc15);border-color:#ca8a04}
.vb-recent{box-shadow:0 4px 12px #173b650d}
.vb-recent-rows{display:grid;gap:8px;margin-top:10px}
.vb-recent-item{display:grid;grid-template-columns:88px 1fr auto;align-items:center;gap:10px;border:1px solid #e2e8f0;background:#f8fbff;padding:12px;border-radius:14px;text-align:left}
.vb-recent-item strong{font-size:24px;color:#173b65}
.vb-recent-item span{display:block;font-size:12px;font-weight:900;color:#991b1b}
.vb-recent-item small{display:block;font-size:12px;color:#64748b;margin-top:3px}
.vb-recent-item em{font-style:normal;background:#dbeafe;color:#1d4ed8;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:900}
.vb-keypad button{font-size:30px;min-height:68px}
.vb-number-display{font-size:48px;min-height:84px}
@media(max-width:380px){
 .vb-result-head{font-size:28px}
 .vb-result-folio{font-size:36px}
 .vb-result-symbol{font-size:48px}
 .vb-number-display{font-size:40px}
 .vb-recent-item{grid-template-columns:74px 1fr auto;padding:10px}
 .vb-recent-item strong{font-size:20px}
}

/* v1.6 - fast-entry layout. Keeps sales, search and audit unchanged. */
.vb-fast-head{display:flex;justify-content:space-between;align-items:center;padding:12px 16px 9px;background:#fff;gap:8px}
.vb-brand{font-weight:950;color:#153a66;font-size:20px;letter-spacing:-.6px}.vb-brand span{font-size:11px;letter-spacing:0;background:#e7f1ff;padding:5px 7px;border-radius:7px;margin-left:3px}.vb-fast-head small{font-size:11px;color:#52657a}.vb-exit{color:#52657a;border:1px solid #dbe3ef;border-radius:10px;padding:8px 10px;text-decoration:none;font-size:12px;font-weight:800}
.vb-mini-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#f1f6fc;gap:6px;padding:7px 10px}.vb-mini-stats>div,.vb-mini-stats>button{border:0;border-radius:11px;background:white;min-height:48px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#173b65}.vb-mini-stats b{font-size:19px}.vb-mini-stats span{font-size:9px;font-weight:850}
.vb-fast-entry{padding:10px 12px 20px;background:#f6f8fb}.vb-fast-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px;color:#1b3e66}.vb-fast-title strong{font-size:14px}.vb-fast-title span{font-size:10px;color:#16803d;font-weight:750}
.vb-fast-form{border-radius:16px;background:#fff;padding:10px;box-shadow:0 3px 12px #14284b0c}.vb-fast-display{min-height:66px;border:2px solid #d9e5f5;border-radius:13px;background:#f9fbff;display:grid;grid-template-columns:50px 1fr 46px;align-items:center;padding:2px 7px;gap:5px}.vb-fast-display span{font-size:11px;font-weight:850;color:#63758d}.vb-fast-display strong{font-size:37px;letter-spacing:4px;text-align:center;color:#173b65;font-variant-numeric:tabular-nums;white-space:nowrap}.vb-fast-display button{border:0;border-radius:9px;background:#e5ecf6;color:#173b65;font-size:23px;min-height:44px}
.vb-fast-keys{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:9px}.vb-fast-keys button{min-height:51px;background:#fff;border:1px solid #c6d6e9;border-radius:12px;color:#173b65;font-size:25px;font-weight:900;touch-action:manipulation}.vb-fast-keys button:active,.vb-fast-keys button:focus-visible{background:#dbeafe;outline:2px solid #80aeed}.vb-fast-keys button:nth-last-child(3),.vb-fast-keys button:last-child{background:#e9f0f9}
.vb-fast-main{display:grid;gap:7px;margin-top:9px}.vb-fast-main button{border:0;border-radius:12px;min-height:52px;font-weight:950}.vb-fast-enter{background:#148447;color:#fff;font-size:18px}.vb-fast-check{background:#eaf2fd;color:#1b4e96;font-size:12px;min-height:42px!important}
.vb-fast-options{display:flex;justify-content:space-between;gap:6px;margin-top:10px}.vb-fast-options button{border:1px solid #dbe5f0;background:#fff;border-radius:9px;padding:8px 9px;min-height:42px;color:#254967;font-size:11px;font-weight:800}.vb-proof-opts{display:flex;gap:8px;margin-top:7px}.vb-proof-opts button{flex:1;min-height:44px;border-radius:9px;border:1px solid #b4c9e8;background:#e9f2ff;color:#153a66;font-weight:850}
.vb-fast-group{border-top:1px solid #e2e8f0;padding-top:10px;margin-top:10px}.vb-fast-group button{min-height:48px}.vb-fast-note{font-size:10px;line-height:1.35;color:#7e5b17;margin:9px 2px 0}.vb-fast-history{margin-top:12px}.vb-fast-history .vb-recent{margin-top:0}
#vb-floating-result:empty{display:none}#vb-floating-result:not(:empty){position:fixed;z-index:35;bottom:calc(77px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(540px,calc(100% - 18px));pointer-events:none}#vb-floating-result .vb-result-card{pointer-events:auto;margin:0;box-shadow:0 12px 35px #10253f55;padding:13px 11px;border-radius:16px;border-width:3px}#vb-floating-result .vb-result-symbol{font-size:34px}#vb-floating-result .vb-result-head{font-size:32px;margin:2px 0}#vb-floating-result .vb-result-folio{font-size:31px;margin:2px 0}#vb-floating-result .vb-result-text{font-size:14px}#vb-floating-result .vb-result-detail{font-size:12px;margin-top:4px}#vb-floating-result .vb-result-footer{font-size:12px;margin-top:6px;padding:6px}
.vb-credit{text-align:center;padding:8px 12px 90px;font-size:10px;line-height:1.5;color:#758296;background:#fff}.vb-authorship{text-align:center;border-top:1px solid #edf0f5;padding-top:10px;font-size:11px!important;color:#64748b!important}
@media(min-width:620px){.vb-fast-keys button{min-height:58px}}
@media(max-width:355px){.vb-fast-display strong{font-size:30px}.vb-fast-entry{padding:8px}.vb-fast-keys button{min-height:47px}.vb-fast-head{padding:8px}.vb-mini-stats{padding:5px}}

/* v1.7 teclado plegable */
.vb-keyboard-toggle{width:100%;display:block;margin:7px 0 2px;border:1px solid #b8d0eb;background:#edf5ff;color:#173b65;border-radius:10px;min-height:38px;font-size:12px;font-weight:900;touch-action:manipulation}
#vb-sync-status{font-weight:850;color:#15803d} .vb-fast-title #vb-sync-status:has(+ *){color:inherit}


/* v1.8: visible country assignment, without mixing countries and sales */
.vb-country-panel{background:#fff;border:1px solid #bed4ef;border-radius:14px;padding:13px;margin:13px 0 17px;box-shadow:0 3px 9px #0b3c7210}
.vb-country-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.vb-country-header strong{font-size:14px;color:#173b65}
.vb-country-header span{font-size:11px;color:#64748b}
.vb-country-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:11px}
.vb-country-card{border:1px solid #c8d6eb;border-radius:12px;background:#f7faff;color:#173b65;padding:11px 5px;min-height:85px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer}
.vb-country-card span{font-size:10px;font-weight:900;white-space:nowrap}
.vb-country-card b{font-size:26px;font-variant-numeric:tabular-nums}
.vb-country-card small{font-size:10px;color:#315aa0}
.vb-country-card:focus-visible,.vb-country-filter button:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}
.vb-country-note{background:#fff8e4;color:#80520e;padding:10px;border-radius:9px;font-size:12px;font-weight:600;line-height:1.5;margin:10px 0 0}
.vb-country-filter{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
.vb-country-filter button{border:1px solid #cbd5e1;border-radius:9px;padding:9px;background:#fff;color:#173b65;font-size:12px;font-weight:750;min-height:39px}
.vb-country-filter button.selected{background:#dbeafe;color:#1d4ed8;border-color:#2563eb}
.vb-sales .vb-country-panel{margin-top:10px}
@media(max-width:380px){.vb-country-card span{font-size:9px}.vb-country-card b{font-size:23px}}
