/* Venta Rápida Cantinas v0.3.1 — corrección visual */
*{box-sizing:border-box}
html{background:#f3f4f6}
body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f3f4f6;color:#111827}
a{color:inherit}
.shell{min-height:100dvh;display:grid;place-items:center;padding:24px}
.card{width:min(100%,520px);background:#fff;border-radius:24px;padding:28px;box-shadow:0 16px 45px rgba(0,0,0,.08)}
h1{margin:8px 0;font-size:clamp(28px,5vw,38px);line-height:1.08}h2{margin:0 0 16px}
.logo{font-size:44px}.muted{color:#596273}.hint{font-size:13px;color:#6b7280}
.version{margin-top:22px;color:#6b7280;font-size:13px;text-align:center}
.alert{padding:11px 13px;border-radius:12px;margin:14px 0}.alert.error{background:#fef2f2;color:#991b1b}.alert.success{background:#f0fdf4;color:#166534}
.button{display:block;width:100%;border:0;border-radius:12px;padding:12px 16px;background:#111827;color:#fff!important;text-decoration:none!important;text-align:center;font-weight:750;margin-top:14px;cursor:pointer}
.button.inline{display:inline-block;width:auto}.button.secondary{background:#e5e7eb;color:#111827!important}
label{display:block;font-weight:650;margin:12px 0}input,select,textarea{display:block;width:100%;font:inherit;padding:12px;border:1px solid #d1d5db;border-radius:10px;margin-top:6px;background:#fff}
.check{display:flex;align-items:center;gap:8px;font-weight:550}.check input{width:auto;margin:0}
.password-wrap{position:relative}.password-wrap input{padding-right:52px}.eye{position:absolute;right:6px;top:50%;transform:translateY(-42%);border:0;background:transparent;font-size:20px;padding:8px;cursor:pointer}

/* Barra superior */
.topbar{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:12px max(18px,calc((100% - 1120px)/2));background:#111827;color:#fff}
.topbar a,.topbar a:visited,.topbar a:hover,.topbar a:active{color:#fff;text-decoration:none}
.brand{display:flex;align-items:center;gap:10px;min-width:max-content;color:#fff!important;text-decoration:none!important}
.brand img{width:32px;height:32px;object-fit:contain}.brand-mark{font-size:26px}
.brand strong,.brand small{display:block;color:#fff}.brand strong{font-weight:750}.brand small{font-size:11px;opacity:.72}
.topnav{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}
.topnav a,.topnav a:visited{display:inline-flex;align-items:center;color:#fff!important;text-decoration:none!important;padding:8px 11px;border-radius:9px;font-size:14px;font-weight:550;line-height:1.2}
.topnav a:hover{background:#263244;color:#fff!important}.topnav a:last-child{border:1px solid #344154;margin-left:5px}

/* Contenido */
.page{width:min(1120px,100%);margin:auto;padding:28px 18px 80px}.page-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:16px}
.welcome,.panel{background:#fff;border-radius:20px;padding:22px;box-shadow:0 8px 24px rgba(0,0,0,.045);margin-bottom:16px}
.eyebrow{text-transform:uppercase;letter-spacing:.1em;font-size:12px;font-weight:800;color:#6b7280}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:16px 0}.stats article,.module{background:#fff;border-radius:18px;padding:20px;box-shadow:0 8px 24px rgba(0,0,0,.04)}
.stats b{display:block;font-size:28px}.stats span{color:#6b7280;font-size:13px}
.module-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.module,.module:visited{display:block;text-decoration:none!important;color:#111827!important;transition:transform .12s ease,box-shadow .12s ease}
a.module:hover{transform:translateY(-1px);box-shadow:0 11px 28px rgba(0,0,0,.075);color:#111827!important;text-decoration:none!important}
.module>span{font-size:28px}.module h3{margin:8px 0 4px;color:#111827;text-decoration:none}.module p{margin:0 0 12px;color:#6b7280;text-decoration:none}.module small{display:inline-block;font-weight:700;color:#4b5563;text-decoration:none}
.module a{text-decoration:none}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
fieldset{border:1px solid #e5e7eb;border-radius:12px;margin:14px 0;padding:12px}legend{font-weight:750;padding:0 6px}
.checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px 10px;border-bottom:1px solid #e5e7eb;vertical-align:top}
th{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#6b7280}td small{display:block;color:#6b7280;margin-top:3px}
table a{font-weight:650;color:#1d4ed8;text-decoration:none}table a:hover{text-decoration:underline}
.badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#eef2f7;color:#475569;font-size:12px;text-decoration:none}
.badge.ok{background:#dcfce7;color:#166534}.badge.off{background:#f3f4f6;color:#6b7280}.empty{text-align:center;color:#6b7280;padding:20px}
.event-cards{display:grid;gap:10px}.event-card{border:1px solid #e5e7eb;border-radius:14px;padding:14px;display:flex;justify-content:space-between;gap:16px;align-items:center}
.event-card h3{margin:8px 0 3px}.event-card p{margin:0;color:#6b7280}.event-card a{color:#1d4ed8;text-decoration:none;font-weight:650}
.logo-preview{display:flex;align-items:center;gap:12px;margin:14px 0}.logo-preview img{width:72px;height:72px;object-fit:contain;border:1px solid #e5e7eb;border-radius:14px;padding:6px;background:#fff}
#net-state{position:fixed;right:12px;bottom:12px;z-index:99;padding:7px 10px;border-radius:999px;font-size:12px;background:#fff;box-shadow:0 4px 16px rgba(0,0,0,.12)}
#net-state.online{color:#166534}#net-state.offline{color:#9a3412}
@media(max-width:720px){
 .shell{padding:14px}.card{padding:22px;border-radius:20px}.page{padding:16px 12px 76px}
 .topbar{position:sticky;align-items:center;padding:9px 12px;gap:8px}.brand strong{font-size:14px}.brand small{font-size:10px}.brand-mark{font-size:22px}
 .topnav{gap:1px}.topnav a,.topnav a:visited{font-size:12px;padding:7px 6px}.topnav a:last-child{margin-left:2px}
 .stats{grid-template-columns:1fr 1fr}.stats article:last-child{grid-column:1/-1}.module-grid,.form-grid,.checks{grid-template-columns:1fr}.event-card{align-items:flex-start}.page-head{display:block}
}
@media(max-width:480px){
 .topbar{align-items:flex-start}.topnav{max-width:62%}.topnav a{font-size:11px;padding:6px 5px}
}
/* v0.4.0 operación móvil */
.product-admin-grid{display:grid;gap:9px}.product-admin-card{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:10px;padding:11px;border:1px solid #e5e7eb;border-radius:13px}.prod-emoji{font-size:30px}.product-admin-card small{display:block;color:#6b7280;margin-top:3px}
.mobile-access-grid{display:grid;gap:10px}.mobile-access{display:flex;align-items:center;gap:13px;padding:15px;border-radius:15px;background:#f8fafc;text-decoration:none!important;color:#111827!important}.mobile-access>span{font-size:30px}.mobile-access strong,.mobile-access small{display:block}.mobile-access small{color:#6b7280;margin-top:2px}
.pos-body,.super-body{background:#eef1f4;overscroll-behavior:none}.pos-head{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:#111827;color:#fff;min-height:58px}.pos-head small,.pos-head strong{display:block}.pos-head small{opacity:.72;font-size:11px}.pos-head a{color:#fff;text-decoration:none;border:1px solid #39465a;padding:8px 11px;border-radius:10px}
.pos-main{padding:10px 10px 100px;max-width:760px;margin:auto}.pos-total{position:sticky;top:58px;z-index:15;background:#fff;border-radius:16px;padding:10px 14px;margin-bottom:10px;box-shadow:0 4px 15px rgba(0,0,0,.08);display:flex;align-items:baseline;gap:8px}.pos-total span{font-size:13px;color:#6b7280}.pos-total strong{font-size:32px;margin-left:auto}.pos-total small{font-weight:700}
.pos-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pos-product{position:relative;min-height:112px;border:0;border-radius:15px;background:#fff;padding:10px 6px;box-shadow:0 3px 12px rgba(0,0,0,.06);font:inherit;color:#111827;touch-action:manipulation}.pos-product:active{transform:scale(.97)}.pos-product>span{display:block;font-size:31px}.pos-product b{display:block;font-size:14px;line-height:1.12;margin:5px 0}.pos-product small{font-size:12px;color:#475569;font-weight:700}.pos-product.soldout{opacity:.52}.pos-product em{position:absolute;inset:auto 4px 7px;background:#991b1b;color:#fff;border-radius:7px;padding:3px;font-size:10px;font-style:normal;font-weight:900}
.cart-panel{margin-top:12px;background:#fff;border-radius:16px;padding:13px}.cart-panel h2{font-size:18px}.cart-row{display:grid;grid-template-columns:1fr auto 74px;align-items:center;gap:8px;padding:10px 0;border-top:1px solid #eef0f2}.cart-row small{display:block;color:#6b7280}.cart-row>strong{text-align:right}.qty{display:flex;align-items:center}.qty button{width:38px;height:38px;border:0;border-radius:10px;background:#e9edf2;font-size:22px;font-weight:800}.qty input{width:45px;height:38px;margin:0 3px;padding:4px;text-align:center;font-weight:800}
.checkout-fab{position:fixed;z-index:30;left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));max-width:740px;margin:auto;height:60px;border:0;border-radius:17px;background:#111827;color:#fff;font-size:19px;font-weight:850;box-shadow:0 10px 30px rgba(0,0,0,.22)}.checkout-fab:disabled{opacity:.45}
.pay-dialog{width:min(94vw,480px);border:0;border-radius:22px;padding:20px}.pay-dialog::backdrop{background:rgba(15,23,42,.6)}.dialog-close{float:right;border:0;background:#eef0f3;border-radius:50%;width:34px;height:34px;font-size:20px}.pay-total{text-align:center;margin:10px 0 18px}.pay-total small,.pay-total strong{display:block}.pay-total strong{font-size:42px}.cash-suggestions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.cash-suggestions button{border:0;border-radius:11px;padding:12px 5px;background:#e9edf2;font-weight:800}.change-box{display:flex;justify-content:space-between;align-items:center;background:#f0fdf4;color:#166534;padding:12px;border-radius:12px;margin-top:10px}.change-box strong{font-size:24px}
.super-main{padding:18px 12px;max-width:720px;margin:auto}.super-main h1{font-size:28px}.super-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.super-product{background:#fff;border-radius:17px;padding:14px;text-align:center;box-shadow:0 4px 14px rgba(0,0,0,.05)}.super-product>span{display:block;font-size:40px}.super-product>strong,.super-product>em{display:block}.super-product>em{font-style:normal;font-size:11px;font-weight:900;color:#166534;margin:6px}.super-product.is-out{opacity:.7}.super-product.is-out>em{color:#991b1b}.super-product button{width:100%;border:0;border-radius:11px;padding:11px 7px;color:#fff;font-weight:800}.super-product button.danger{background:#991b1b}.super-product button.success{background:#166534}
@media(max-width:420px){.pos-products{grid-template-columns:repeat(3,1fr);gap:6px}.pos-product{min-height:105px;padding:8px 4px}.pos-product>span{font-size:28px}.pos-product b{font-size:13px}.cart-row{grid-template-columns:1fr auto}.cart-row>strong{grid-column:1/-1}.super-grid{grid-template-columns:1fr 1fr}}

/* v0.5.0 */
.role-help{padding:10px 12px;background:#eff6ff;border-radius:10px;color:#1e3a8a}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-title a,.edit-link{color:#1d4ed8;text-decoration:none;font-weight:700}
.money-wrap{position:relative}.money-wrap>span{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-weight:800;color:#475569;z-index:2}.money-wrap input.money-input{padding-left:52px;font-variant-numeric:tabular-nums;font-weight:750}.money-wrap input[type=hidden]{display:none}
.emoji-suggestions{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.emoji-suggestions button{border:1px solid #e5e7eb;background:#fff;border-radius:10px;font-size:23px;width:42px;height:40px;cursor:pointer}.emoji-suggestions button:hover{background:#f3f4f6}
.product-actions{display:flex;align-items:center;gap:10px}.inactive-card{opacity:.62}.mini-danger{border:0;border-radius:8px;padding:7px 9px;background:#fee2e2;color:#991b1b;font-weight:750;cursor:pointer}
@media(max-width:600px){.product-admin-card{grid-template-columns:42px 1fr}.product-actions{grid-column:2;justify-content:flex-start}.section-title{align-items:flex-start}.money-wrap input.money-input{font-size:18px}}

/* v0.6.0 + v0.6.1 */
.sortable-list{display:grid;gap:8px;margin-top:18px}.sort-row{display:grid;grid-template-columns:42px minmax(120px,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:12px;background:#fff}.drag-handle{border:0;background:#f1f5f9;border-radius:9px;width:36px;height:36px;cursor:grab;font-size:19px;color:#475569}.dragging{opacity:.42}.one-action{grid-template-columns:minmax(220px,520px)}
.product-admin-card{grid-template-columns:38px 46px minmax(0,1fr) auto}.prod-thumb{width:44px;height:44px;object-fit:cover;border-radius:11px}.emoji-field{display:flex;gap:8px;align-items:center}.emoji-field input{min-width:0}.emoji-picker{margin-top:8px;padding:10px;border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc}.emoji-picker[hidden]{display:none}.emoji-picker>input{margin-bottom:8px}.image-tools{margin-top:8px}.current-product-image{display:flex;align-items:center;gap:10px;margin-top:9px}.current-product-image img{width:70px;height:70px;object-fit:cover;border-radius:12px}.sale-product-image{width:62px;height:62px;object-fit:cover;border-radius:14px;margin:auto}
.display-admin-list{display:grid;gap:10px}.display-admin-card{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #e5e7eb;border-radius:12px}.display-admin-card>div{display:grid;flex:1}.display-admin-card small{color:#64748b;margin-top:3px}
.public-display{background:#0f172a;color:#fff;min-height:100vh}.public-display>header{display:flex;justify-content:space-between;align-items:center;padding:24px 4vw}.public-display h1{margin:3px 0 0;font-size:clamp(28px,4vw,58px)}.display-clock{font-size:clamp(24px,3vw,48px);font-weight:800}.public-display main{padding:0 4vw 4vw;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px}.display-product{position:relative;min-height:260px;border-radius:24px;background:#fff;color:#0f172a;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:22px;text-align:center}.display-product img{width:120px;height:120px;object-fit:cover;border-radius:22px}.display-product>span{font-size:86px;line-height:1}.display-product h2{font-size:clamp(24px,3vw,44px);margin:12px 0 4px}.display-product strong{font-size:clamp(28px,3.5vw,52px)}.display-product.soldout{opacity:.62}.display-product.soldout>b{position:absolute;inset:45% 0 auto;background:#991b1b;color:#fff;font-size:clamp(25px,4vw,55px);padding:8px;transform:rotate(-8deg)}
@media(max-width:600px){.sort-row{grid-template-columns:42px 1fr}.sort-row .muted{grid-column:2}.product-admin-card{grid-template-columns:38px 42px 1fr}.product-actions{grid-column:3}.emoji-field{align-items:stretch;flex-direction:column}.display-admin-card{align-items:flex-start;flex-wrap:wrap}.sale-product-image{width:54px;height:54px}}

.error-log-list{display:grid;gap:12px}.error-card{border:1px solid #fecaca;background:#fffafa;border-radius:13px;padding:14px}.error-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.error-head>div{display:grid;gap:3px}.error-head small{color:#64748b}.error-card p{margin:10px 0}.error-card pre{white-space:pre-wrap;word-break:break-word;background:#111827;color:#f8fafc;padding:12px;border-radius:10px;max-height:320px;overflow:auto;font-size:12px}
@media(max-width:600px){.error-head{flex-direction:column}.copy-error{width:100%}}

/* v0.7.0 */
.login-logo{width:86px;height:86px;border-radius:20px;display:grid;place-items:center;overflow:hidden;margin-bottom:10px}.login-logo img{max-width:100%;max-height:100%;object-fit:contain}
.alert.warning{background:#fffbeb;color:#92400e}.alert.warning a{font-weight:800}
.page-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.event-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.event-actions a{text-decoration:none;color:#1d4ed8;font-weight:700}.event-action-primary{background:#e0f2fe;padding:6px 9px;border-radius:8px}.event-action-disabled{color:#94a3b8;font-size:13px}
.blocked-access-list{display:grid;gap:8px}.blocked-access-list article{display:flex;justify-content:space-between;gap:12px;padding:12px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:11px}.blocked-access-list span{color:#92400e}
.selection-tools{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 12px}.selection-tools .button{margin-top:0}.supervisor-category-groups{display:grid;gap:12px}.supervisor-category{border:1px solid #e5e7eb;border-radius:12px;padding:10px}.category-check-head{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #eef2f7;padding-bottom:8px;margin-bottom:8px}.category-check-head label{margin:0}.category-only{border:0;background:#eef2ff;color:#3730a3;border-radius:8px;padding:6px 9px;font-weight:700;cursor:pointer}.assign-thumb{width:24px;height:24px;object-fit:cover;border-radius:6px}
.public-url-row{display:flex;gap:7px;margin-top:9px}.public-url-row input{margin:0;font-size:12px;background:#f8fafc}.public-url-row .button{margin:0;white-space:nowrap}.display-info{min-width:280px}.button.disabled{opacity:.5;pointer-events:none}.button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:650px){.page-head{align-items:flex-start;gap:10px;flex-direction:column}.page-actions{width:100%}.page-actions .button{flex:1}.blocked-access-list article{flex-direction:column}.display-info{min-width:100%;width:100%}.public-url-row{flex-direction:column}.public-url-row .button{width:100%}.event-actions{justify-content:flex-start}.category-check-head{align-items:flex-start}.topnav{gap:2px}.topnav a{padding:7px 8px!important}}

/* v0.8.0 */
.pos-head-actions{display:flex;gap:6px;align-items:center}.cash-input{font-size:22px!important;font-weight:800;font-variant-numeric:tabular-nums}.catalog-msg{min-height:0;margin:0 2px 8px;color:#92400e;font-size:12px;font-weight:700}.availability-toggle{border:0;border-radius:9px;padding:7px 9px;font-weight:800;cursor:pointer}.availability-toggle.is-on{background:#fee2e2;color:#991b1b}.availability-toggle.is-off{background:#dcfce7;color:#166534}.display-assignment{background:#f8fafc}.display-products-editor{margin-top:10px;border-top:1px solid #e5e7eb;padding-top:8px}.display-products-editor summary{cursor:pointer;color:#1d4ed8;font-weight:800}.display-products-editor form{margin-top:10px}.super-product-image{width:54px;height:54px;object-fit:cover;border-radius:13px;margin:auto}
.history-page{max-width:1180px}.history-filter{padding-top:14px}.history-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0}.history-stats article{background:#fff;border-radius:15px;padding:14px;box-shadow:0 2px 10px rgba(0,0,0,.04)}.history-stats small{display:block;color:#64748b}.history-stats strong{display:block;font-size:22px;margin-top:5px}.sales-records{display:grid;gap:10px}.sale-record{border:1px solid #e5e7eb;border-radius:13px;padding:12px;background:#fff}.sale-record.voided{opacity:.6}.sale-record-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.sale-record-head>div{display:grid}.sale-record-head small{color:#64748b;margin-top:2px}.sale-record-head>b{font-size:18px}.sale-lines{display:grid;gap:5px;margin:10px 0;padding:9px;background:#f8fafc;border-radius:10px}.sale-lines>div{display:grid;grid-template-columns:1fr auto 100px;gap:8px;align-items:center}.sale-lines>div strong{text-align:right}.sale-money{display:flex;gap:14px;flex-wrap:wrap;color:#475569;font-size:13px}.history-two{display:grid;grid-template-columns:1.2fr .8fr;gap:12px}.table-wrap{overflow:auto}.history-table{width:100%;border-collapse:collapse;font-size:13px}.history-table th,.history-table td{padding:8px 9px;border-bottom:1px solid #e5e7eb;text-align:left;white-space:nowrap}.history-table th{background:#f8fafc;position:sticky;top:0}.panel details>summary{cursor:pointer;padding:4px 0}
@media(max-width:700px){.cash-input{font-size:25px!important;min-height:52px}.history-stats{grid-template-columns:1fr 1fr}.history-stats strong{font-size:19px}.history-two{grid-template-columns:1fr}.sale-lines>div{grid-template-columns:1fr auto}.sale-lines>div strong{grid-column:2}.sale-record-head{align-items:center}.sale-money{gap:8px 12px}.pos-head-actions a{padding:7px 8px;font-size:12px}.product-actions{gap:6px;flex-wrap:wrap}}
/* v0.9.0 */
html,body{max-width:100%;overflow-x:hidden}.topbar,.pos-head{box-sizing:border-box;max-width:100vw}.nav-toggle{display:none;border:1px solid rgba(255,255,255,.18);background:transparent;color:inherit;border-radius:10px;width:42px;height:40px;font-size:22px;cursor:pointer}.topbar .nav-toggle,.pos-head .nav-toggle{color:#fff}.strong-alert{border-width:2px!important;box-shadow:0 3px 14px rgba(15,23,42,.09);font-weight:650}.alert.error.strong-alert{background:#fff1f2;border-color:#e11d48;color:#881337}.alert.success.strong-alert{background:#ecfdf5;border-color:#16a34a;color:#14532d}.alert.info{background:#eff6ff;border:1px solid #60a5fa;color:#1e3a8a}
.centered-login{text-align:center}.centered-login .login-logo,.centered-login .logo{margin-left:auto;margin-right:auto}.centered-login .login-form{text-align:left}.login-divider{display:flex;align-items:center;gap:10px;margin:14px 0;color:#94a3b8}.login-divider:before,.login-divider:after{content:"";height:1px;background:#e5e7eb;flex:1}.biometric-login{display:flex;align-items:center;justify-content:center;gap:9px;width:100%}.biometric-login img{width:26px;height:26px;object-fit:contain}.biometric-login-msg{text-align:center}
.biometric-register{display:grid;grid-template-columns:180px 1fr;gap:24px;align-items:center}.biometric-visual{display:flex;gap:12px;justify-content:center}.biometric-visual img{width:76px;height:76px;object-fit:contain}.biometric-action{display:inline-flex;gap:8px;align-items:center}.biometric-action img{width:24px;height:24px}.passkey-list{display:grid;gap:10px}.passkey-device{display:grid;grid-template-columns:48px 1fr auto auto;gap:12px;align-items:center;border:1px solid #e5e7eb;padding:12px;border-radius:13px}.passkey-device-icon img{width:38px;height:38px}.passkey-device>div:nth-child(2){display:grid}.passkey-device small{color:#64748b}
.stock-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}.stock-card{background:#fff;border:1px solid #e5e7eb;border-radius:15px;padding:14px}.stock-card-head{display:grid;grid-template-columns:52px 1fr auto;gap:10px;align-items:center}.stock-card-head img{width:48px;height:48px;object-fit:cover;border-radius:11px}.stock-card-head>span{font-size:36px}.stock-card-head>div{display:grid}.stock-card-head small{color:#64748b}.stock-card-head>b{font-size:24px}.stock-card details{border-top:1px solid #eef2f7;margin-top:10px;padding-top:8px}.stock-card summary{cursor:pointer;font-weight:750}.stock-form{padding-top:10px}.stock-edit-link{display:flex;flex-direction:column;justify-content:center;padding:10px 12px;border:1px dashed #94a3b8;border-radius:10px}.stock-edit-link span{font-size:12px;color:#64748b}.stock-edit-link strong{font-size:20px}.stock-edit-link a{font-weight:700;color:#1d4ed8;text-decoration:none}
.import-groups,.display-category-groups{display:grid;gap:12px}.import-category,.display-category{border:1px solid #e5e7eb;border-radius:13px;padding:10px}.import-products{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px}.import-product{display:grid;grid-template-columns:1fr 130px;gap:6px 10px;align-items:center;background:#f8fafc;border-radius:10px;padding:9px}.import-select{display:flex!important;align-items:center;gap:7px}.import-select img{width:30px;height:30px;object-fit:cover;border-radius:7px}.import-select span{font-size:25px}.import-product>small{grid-column:1/-1;color:#64748b}.import-price-label{font-size:12px}.import-price-label input{margin-top:3px}.import-skip{margin:14px 0}.selector-search{max-width:260px;margin:0!important}.display-product-option[hidden],[data-category-block][hidden]{display:none!important}
.super-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.supervisor-sell-button{white-space:nowrap}.stock-mini{color:#64748b}.primary-op-link{background:#dcfce7!important;color:#14532d!important}
.changelog-list{display:grid;gap:12px}.changelog-card{display:grid;grid-template-columns:150px 1fr;background:#fff;border:1px solid #e5e7eb;border-radius:15px;padding:15px;gap:18px}.changelog-version{display:flex;flex-direction:column;gap:4px}.changelog-version strong{font-size:22px}.changelog-version span{color:#64748b;font-size:12px}.changelog-version em{font-style:normal;background:#dcfce7;color:#166534;border-radius:999px;padding:3px 7px;width:max-content;font-size:11px}.changelog-card h2{margin:0 0 6px}.changelog-card p{margin:0;line-height:1.5}.manual-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}.manual-card{background:#fff;border:1px solid #e5e7eb;border-radius:15px;padding:16px}.manual-card>span{font-size:30px}.manual-card h2{margin:8px 0}.manual-card p{line-height:1.5;color:#475569}
/* Public display: keep sold-out ribbon inside card and align prices */
.public-display main{align-items:stretch}.display-product{overflow:hidden;justify-content:space-between;padding:0;min-height:285px}.display-product-main{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;width:100%;padding:20px 18px 12px;min-height:0}.display-product-main img{width:116px;height:116px;object-fit:cover;border-radius:20px}.display-emoji{font-size:82px;line-height:1}.display-product h2{margin:10px 0 0;line-height:1.05;max-width:100%;overflow-wrap:anywhere}.display-price{width:100%;box-sizing:border-box;background:#eef2f7;border-top:1px solid #dbe2ea;display:flex;align-items:baseline;justify-content:center;gap:8px;padding:12px 10px}.display-price small{font-size:clamp(13px,1.4vw,22px);font-weight:800;color:#64748b}.display-price strong{font-size:clamp(30px,4vw,58px);line-height:1;white-space:nowrap}.soldout-ribbon{position:absolute;left:-8%;right:-8%;top:42%;background:#b91c1c;color:#fff;font-size:clamp(22px,3vw,46px);font-weight:950;line-height:1;padding:10px 4px;text-align:center;transform:rotate(-7deg);box-shadow:0 4px 12px rgba(0,0,0,.22);white-space:nowrap;overflow:hidden}.display-product.soldout>b{display:none}
/* Force mobile navigation from JS even if browser zoom changes CSS viewport. */
body.mobile-layout .nav-toggle{display:grid;place-items:center;flex:0 0 auto}body.mobile-layout .topbar,body.mobile-layout .pos-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px}body.mobile-layout .topnav,body.mobile-layout .pos-head-actions{display:none!important;position:absolute;top:calc(100% + 6px);left:8px;right:8px;z-index:500;background:#111827;border:1px solid #334155;border-radius:13px;padding:8px;box-shadow:0 14px 35px rgba(0,0,0,.28);max-height:min(70vh,520px);overflow:auto}body.mobile-layout .topbar.menu-open .topnav,body.mobile-layout .pos-head.menu-open .pos-head-actions{display:grid!important;grid-template-columns:1fr;gap:3px}body.mobile-layout .topnav a,body.mobile-layout .pos-head-actions a{display:block;padding:11px 12px!important;border-radius:9px;white-space:normal}body.mobile-layout .topnav a:hover,body.mobile-layout .pos-head-actions a:hover{background:#1f2937}body.mobile-layout .brand{min-width:0}body.mobile-layout .brand span{min-width:0}body.mobile-layout .brand strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:55vw;display:block}
@media(max-width:760px){.nav-toggle{display:grid;place-items:center}.topbar,.pos-head{position:relative}.topnav,.pos-head-actions{display:none!important}.topbar.menu-open .topnav,.pos-head.menu-open .pos-head-actions{display:grid!important}.biometric-register{grid-template-columns:1fr}.passkey-device{grid-template-columns:42px 1fr}.passkey-device>.badge,.passkey-device>form{grid-column:2}.super-title-row{align-items:stretch;flex-direction:column}.supervisor-sell-button{width:100%;text-align:center}.changelog-card{grid-template-columns:1fr}.import-product{grid-template-columns:1fr}.import-price-label{grid-column:1}.selector-search{max-width:none;width:100%}.display-product{min-height:230px}.display-product-main img{width:86px;height:86px}.display-emoji{font-size:64px}}

/* v0.9.1 */
.date-validation-msg{margin:14px 0 10px}
.operational-message{font-size:16px;line-height:1.5}
textarea[name="no_active_event_message"]{min-height:105px;resize:vertical}

/* v0.9.2 */
.status-help{display:block;margin-top:6px;color:#64748b;line-height:1.35}
.display-status-badge{display:inline-flex;margin-top:8px;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.12);font-size:13px;font-weight:800;letter-spacing:.02em}
.display-status-badge[data-status="running"]{background:#166534}.display-status-badge[data-status="enabled"]{background:#075985}.display-status-badge[data-status="draft"]{background:#854d0e}.display-status-badge[data-status="finished"],.display-status-badge[data-status="closed"]{background:#475569}
.public-display main.display-state-wrap{display:grid;place-items:center;min-height:65vh}
.display-state-card{width:min(760px,90vw);box-sizing:border-box;text-align:center;background:#fff;color:#0f172a;border-radius:28px;padding:clamp(28px,5vw,64px);box-shadow:0 18px 60px rgba(0,0,0,.24)}
.display-state-icon{width:84px;height:84px;border-radius:50%;display:grid;place-items:center;margin:0 auto 18px;background:#e2e8f0;font-size:40px;font-weight:900}
.display-state-card h2{font-size:clamp(34px,5vw,66px);margin:0 0 12px}.display-state-card p{font-size:clamp(18px,2.4vw,30px);line-height:1.35;color:#475569;margin:0}

/* v1.0.0 production */
.manual-start,.manual-note{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:18px;margin-bottom:18px}
.manual-start h2{margin:0 0 14px}.manual-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.manual-steps>div{display:flex;gap:10px;align-items:flex-start;padding:12px;background:#f8fafc;border-radius:12px}
.manual-steps b{width:30px;height:30px;min-width:30px;border-radius:50%;display:grid;place-items:center;background:#0f172a;color:#fff}
.manual-steps span{display:grid;gap:3px}.manual-steps small{color:#64748b;line-height:1.35}
.manual-note{border-left:5px solid #0f172a}.manual-note strong{font-size:18px}.manual-note p{margin:6px 0 0;color:#475569}
.version-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px}
.version-status-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:18px;display:grid;gap:5px}
.version-status-card span{font-size:13px;color:#64748b;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.version-status-card strong{font-size:32px;color:#0f172a}.version-status-card small{color:#475569;line-height:1.4}
.version-status-card.current{border-color:#86efac;background:#f0fdf4}.version-status-card.latest{border-color:#93c5fd;background:#eff6ff}
.changelog-card.is-current-version{border:2px solid #22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.08)}
.version-badges{display:flex;gap:5px;flex-wrap:wrap}
.changelog-version em.version-current{background:#dcfce7!important;color:#166534!important}
.changelog-version em.version-latest{background:#dbeafe!important;color:#1e40af!important}
@media(max-width:760px){.manual-steps{grid-template-columns:1fr 1fr}.version-status-grid{grid-template-columns:1fr}}
@media(max-width:480px){.manual-steps{grid-template-columns:1fr}.version-status-card strong{font-size:28px}}

/* v1.0.1 manual ampliado */
.manual-role-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.manual-role-tabs a{padding:9px 13px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#334155;text-decoration:none;font-weight:800}.manual-role-tabs a.active{background:#0f172a;color:#fff;border-color:#0f172a}
.manual-toc{background:#fff;border:1px solid #dbe3ec;border-radius:16px;padding:16px 18px;margin-bottom:18px}.manual-toc>strong{display:block;margin-bottom:10px;font-size:17px}.manual-toc>div{display:flex;gap:7px;flex-wrap:wrap}.manual-toc a{background:#f1f5f9;color:#334155;text-decoration:none;padding:7px 10px;border-radius:9px;font-weight:700;font-size:13px}
.manual-section{background:#fff;border:1px solid #e2e8f0;border-radius:17px;padding:20px;margin-bottom:16px;scroll-margin-top:90px}.manual-section-title{display:flex;gap:13px;align-items:flex-start;margin-bottom:14px}.manual-section-title>span{width:38px;height:38px;min-width:38px;border-radius:12px;display:grid;place-items:center;background:#0f172a;color:#fff;font-weight:900;font-size:18px}.manual-section-title h2{margin:0}.manual-section-title p{margin:3px 0 0;color:#64748b}
.manual-section h3{margin:18px 0 8px}.manual-section>p{line-height:1.6;color:#334155}
.manual-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.manual-columns article{background:#f8fafc;border:1px solid #eef2f7;border-radius:12px;padding:13px}.manual-columns h3{margin:0 0 6px;font-size:16px}.manual-columns p{margin:0;color:#475569;line-height:1.45}
.manual-option-table{display:grid;gap:7px}.manual-option-table>div{display:grid;grid-template-columns:190px 1fr;gap:12px;padding:10px 12px;background:#f8fafc;border-radius:10px;border:1px solid #eef2f7}.manual-option-table span{color:#475569;line-height:1.4}
.manual-state-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.manual-state-grid article{background:#f8fafc;border:1px solid #e2e8f0;border-radius:11px;padding:12px}.manual-state-grid b{display:block;margin-bottom:5px}.manual-state-grid p{margin:0;color:#475569;font-size:13px;line-height:1.35}
.manual-ordered{margin:8px 0 0;padding-left:24px}.manual-ordered li{margin:8px 0;line-height:1.5;color:#334155}
.manual-warning,.manual-tip,.manual-role-note{padding:14px 16px;border-radius:12px;margin:14px 0}.manual-warning{background:#fff7ed;border:1px solid #fdba74;color:#7c2d12}.manual-tip{background:#eff6ff;border:1px solid #93c5fd;color:#1e3a8a}.manual-role-note{background:#f0fdf4;border:1px solid #86efac;color:#14532d}.manual-warning p,.manual-tip p,.manual-role-note p{margin:5px 0 0;line-height:1.45}
.manual-checklist{background:#0f172a;color:#fff;border-radius:17px;padding:20px;margin:20px 0}.manual-checklist h2{margin-top:0}.manual-checklist>div{display:grid;grid-template-columns:1fr 1fr;gap:9px}.manual-checklist label{background:rgba(255,255,255,.08);padding:10px 12px;border-radius:10px}
@media(max-width:900px){.manual-columns{grid-template-columns:1fr 1fr}.manual-state-grid{grid-template-columns:1fr 1fr}.manual-option-table>div{grid-template-columns:150px 1fr}}
@media(max-width:600px){.manual-columns,.manual-state-grid,.manual-checklist>div{grid-template-columns:1fr}.manual-option-table>div{grid-template-columns:1fr;gap:3px}.manual-role-tabs a{flex:1;text-align:center}.manual-section{padding:15px}.manual-toc>div{display:grid;grid-template-columns:1fr 1fr}.manual-toc a{text-align:center}}

/* v1.0.2 permisos */
.role-scope-note{background:#eff6ff;border:1px solid #93c5fd;color:#1e3a8a;padding:12px 14px;border-radius:12px}

/* v1.0.3 sesiones y auditoría */
.session-settings{margin-top:14px}.session-runtime{margin-top:12px;padding:12px 14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;display:flex;gap:8px 16px;flex-wrap:wrap}.session-runtime strong{width:100%}.session-runtime span{font-size:13px;color:#475569}.user-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.user-actions form{margin:0}.audit-filters .form-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.audit-timeline{display:grid;gap:10px}.audit-row{display:grid;grid-template-columns:105px minmax(0,1fr);gap:14px;padding:14px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}.audit-time{display:grid;align-content:start;gap:3px}.audit-time strong{font-size:14px}.audit-time span{font-variant-numeric:tabular-nums;color:#64748b}.audit-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.audit-head>div{display:grid;gap:3px}.audit-head>div>strong{font-size:16px}.audit-head small{color:#64748b}.audit-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.audit-meta span{background:#f1f5f9;border-radius:999px;padding:5px 8px;font-size:12px;color:#334155}.audit-uri{display:block;margin-top:9px;white-space:normal;word-break:break-all;background:#f8fafc;padding:8px 9px;border-radius:8px;color:#334155}.audit-row details{margin-top:8px}.audit-row pre{white-space:pre-wrap;word-break:break-word;background:#111827;color:#f8fafc;padding:11px;border-radius:9px;max-height:300px;overflow:auto;font-size:12px}@media(max-width:650px){.audit-row{grid-template-columns:1fr}.audit-time{display:flex;gap:8px}.audit-head{flex-direction:column}.copy-audit{width:100%}}
