:root{--bg:#f0f2f7;--surface:#fff;--border:#e2e6ef;--text:#111827;--muted:#8492a6;--radius:14px;--shadow:0 2px 10px #0f172a12;--shadow-md:0 8px 24px #0f172a1a;--action:#d680c5;--c-init:#3b82f6;--c-pay:#0ea5e9;--c-fail:#ef4444;--c-paid:#8b5cf6;--c-prep:#2dd4bf;--c-way:#0891b2;--c-done:#16a34a;--c-kitchen-ok:#10b981;--c-warn:#f59e0b;--c-late:#dc2626}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%}body{color:var(--text);-webkit-font-smoothing:antialiased;font-family:DM Sans,sans-serif}.auto-refresh{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.auto-refresh-time{color:var(--muted);white-space:nowrap;font-size:.75rem}.auto-refresh-switch{width:36px;height:20px;display:inline-block;position:relative}.auto-refresh-switch input{opacity:0;width:0;height:0;position:absolute}.auto-refresh-slider{background:#d1d5db;border-radius:999px;transition:background .2s;position:absolute;inset:0}.auto-refresh-slider:before{content:"";background:#fff;border-radius:50%;width:14px;height:14px;transition:transform .2s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0003}.auto-refresh-switch input:checked~.auto-refresh-slider{background:var(--c-done)}.auto-refresh-switch input:checked~.auto-refresh-slider:before{transform:translate(16px)}.auto-refresh-label{color:var(--muted);font-size:.75rem;font-weight:500}.auto-refresh-button{border:1.5px solid var(--border);background:var(--bg);min-height:36px;color:var(--text);white-space:nowrap;border-radius:9px;padding:0 12px;font-family:Syne,sans-serif;font-size:.78rem;font-weight:700}.confirm-dialog-backdrop{z-index:1000;background:#0006;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.confirm-dialog{border-radius:var(--radius);background:var(--surface);width:100%;max-width:400px;box-shadow:var(--shadow-md);padding:24px}.confirm-dialog-message{color:var(--text);margin-bottom:20px;line-height:1.4}.confirm-dialog-actions{gap:12px;display:flex}.confirm-dialog-cancel,.confirm-dialog-confirm{letter-spacing:.02em;border:none;border-radius:10px;flex:1;min-height:48px;font-family:Syne,sans-serif;font-size:.9rem;font-weight:800}.confirm-dialog-cancel{border:1.5px solid var(--border);color:var(--muted);background:0 0}.confirm-dialog-confirm{background:var(--c-fail);color:#fff}.order-card{border-left:4px solid var(--card-accent,var(--border));background:var(--surface);box-shadow:var(--shadow);border-radius:12px;flex-direction:column;gap:10px;padding:14px 16px;display:flex}.order-card-top{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.order-card-heading{min-width:0}.order-card-name{text-overflow:ellipsis;white-space:nowrap;font-family:Syne,sans-serif;font-size:1.05rem;font-weight:700;overflow:hidden}.order-card-dot-id{color:var(--muted);margin-top:1px;font-size:.72rem}.order-card-time{color:var(--muted);white-space:nowrap;flex-shrink:0;font-size:.7rem;font-weight:600}.order-card-value{color:var(--muted);font-size:.82rem;font-weight:600}.order-card-text{color:var(--text);white-space:pre-wrap;font-size:.9rem;line-height:1.4}.order-card-text-truncated{max-height:2.8em;position:relative;overflow:hidden}.order-card-text-truncated:after{content:"";background:linear-gradient(transparent, var(--surface));height:1.2em;position:absolute;bottom:0;left:0;right:0}.order-card-fail{flex-direction:column;gap:2px;display:flex}.order-card-fail-attempt{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-size:.68rem;font-weight:800}.order-card-fail-reason{color:var(--c-fail);font-size:.9rem;font-weight:700;line-height:1.4}.order-items-list{flex-direction:column;gap:6px;list-style:none;display:flex}.order-items-list-item{flex-direction:column;gap:1px;display:flex}.order-items-list-title{color:var(--text);font-family:Syne,sans-serif;font-size:.85rem;font-weight:700;line-height:1.3}.order-items-list-detail{color:var(--muted);padding-left:10px;font-size:.75rem;line-height:1.3}.order-items-list-item.kds-item{cursor:pointer;border:1.5px solid #11111112;border-left:5px solid #0000;border-radius:14px;padding:9px 10px;transition:background .2s,border-color .2s}.order-items-list-item.kds-item.prep-pendiente{background:#fff;border-left-color:#ff3b30}.order-items-list-item.kds-item.prep-preparando{background:#dff7e4;border-color:#34c75959 #34c75959 #34c75959 #34c759}.order-items-list-item.kds-item.prep-lista{background:#f0f0f2;border-left-color:#c7c7cc}.order-items-list-item.kds-item.prep-lista .nom,.order-items-list-item.kds-item.prep-lista .modlist{text-decoration:line-through;text-decoration-thickness:2px}.tag-prep{letter-spacing:.05em;text-transform:uppercase;color:#1f7d33;background:#34c75924;border:1.5px solid #34c75980;border-radius:99px;margin-top:5px;padding:2px 9px;font-size:10px;font-weight:900;display:inline-block}.order-info-block{flex-direction:column;gap:10px;display:flex}.order-info-row{flex-direction:column;gap:3px;display:flex}.order-info-label{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-size:.6rem;font-weight:800}.order-info-text{border:1px solid var(--border);background:var(--bg);border-radius:9px;padding:8px 10px;font-size:.85rem;line-height:1.4}.order-info-link{border:1px solid var(--border);background:var(--bg);color:var(--c-way);word-break:break-word;border-radius:9px;padding:8px 10px;font-size:.85rem;line-height:1.4}.order-info-fail-reason{border:1px solid var(--c-fail);background:color-mix(in srgb, var(--c-fail) 12%, var(--bg));color:var(--c-fail);border-radius:9px;padding:8px 10px;font-size:.85rem;font-weight:700;line-height:1.4}.order-info-items{border:1px solid var(--border);background:var(--bg);border-radius:9px;padding:6px 9px}.order-info-header-row{gap:10px;display:flex}.order-info-header-col{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.order-info-header-col-order{flex:none}.order-info-header-value{border:1px solid var(--border);background:var(--bg);white-space:nowrap;text-overflow:ellipsis;border-radius:9px;padding:6px 9px;font-size:.85rem;font-weight:700;overflow:hidden}.order-info-header-col-order .order-info-header-value{align-self:flex-start;width:fit-content}.order-info-icon-row{gap:8px;display:flex}.order-info-icon-btn{border:1.5px solid var(--border);background:var(--bg);width:44px;height:44px;color:var(--muted);border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;transition:border-color .15s,color .15s,background .15s;display:flex}.order-info-icon-btn svg{width:19px;height:19px}.order-info-icon-btn.is-open{border-color:var(--action);color:var(--action);background:color-mix(in srgb, var(--action) 14%, var(--bg))}.order-info-value-row{align-items:center;gap:6px;display:flex}.order-info-value-row .order-info-text,.order-info-value-row .order-info-link{flex:1;min-width:0}.order-info-copy-btn{border:1.5px solid var(--border);background:var(--bg);width:34px;height:34px;color:var(--muted);border-radius:9px;flex-shrink:0;justify-content:center;align-items:center;transition:border-color .15s,color .15s,background .15s;display:flex}.order-info-copy-btn svg{width:15px;height:15px}.order-info-copy-btn.is-copied{border-color:var(--action);color:var(--action);background:color-mix(in srgb, var(--action) 14%, var(--bg))}.order-detail-modal-backdrop{z-index:900;background:#00000085;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.order-detail-modal{border-radius:var(--radius);background:var(--surface);width:100%;max-width:480px;max-height:90vh;box-shadow:var(--shadow-md);flex-direction:column;padding:24px;display:flex;overflow-y:auto}.order-detail-modal-title{margin-bottom:16px;font-family:Syne,sans-serif;font-size:1.1rem;font-weight:800}.order-detail-modal-error{color:var(--c-fail);margin-top:12px;font-size:.9rem}.order-detail-modal-actions{flex-direction:column;gap:10px;margin-top:20px;display:flex}.order-detail-modal-cancel,.order-detail-modal-confirm{letter-spacing:.02em;border:none;border-radius:11px;min-height:48px;font-family:Syne,sans-serif;font-size:.9rem;font-weight:800}.order-detail-modal-cancel{border:1.5px solid var(--text);color:var(--text);background:0 0}.order-detail-modal-confirm{background:var(--action);color:#000}.order-detail-modal-confirm:disabled,.order-detail-modal-cancel:disabled{opacity:.6}.admin-board{flex-direction:column;height:100%;padding:20px;display:flex}.admin-message{color:var(--muted);padding:8px 0}.admin-columns{scroll-snap-type:x proximity;flex:1;gap:14px;padding-bottom:8px;display:flex;overflow-x:auto}.admin-column{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-height:0;box-shadow:var(--shadow);scroll-snap-align:start;flex-direction:column;flex:0 0 300px;display:flex}.admin-column-over{outline:2px dashed var(--c-way);outline-offset:-4px}.admin-column-header{border-bottom:1px solid var(--border);align-items:center;gap:8px;padding:14px 16px;display:flex}.admin-column-accent{border-radius:2px;flex-shrink:0;width:3px;height:20px}.admin-column-title{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-family:Syne,sans-serif;font-size:.85rem;font-weight:800;overflow:hidden}.admin-column-count{background:var(--text);color:#fff;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;min-width:24px;height:24px;padding:0 6px;font-family:Syne,sans-serif;font-size:.72rem;font-weight:800;display:inline-flex}.admin-column-list{flex-direction:column;gap:10px;padding:12px;display:flex;overflow-y:auto}.admin-card{touch-action:none;cursor:pointer}.admin-card-dragging{opacity:.85;box-shadow:var(--shadow-md);z-index:10}.kitchen-order-card{background:var(--surface);box-shadow:var(--shadow);border-radius:12px;flex-direction:column;display:flex;overflow:hidden}.kitchen-order-card-topbar{background:var(--c-kitchen-ok);color:var(--text);justify-content:space-between;align-items:center;gap:10px;padding:7px 14px;transition:background-color .2s,color .2s;display:flex}.kitchen-order-card-topbar-warn{background:var(--c-warn);color:var(--text)}.kitchen-order-card-topbar-late{background:var(--c-late);color:#fff}.kitchen-order-card-topbar-label{letter-spacing:.06em;text-transform:uppercase;opacity:.85;align-items:center;gap:6px;font-family:Syne,sans-serif;font-size:.68rem;font-weight:800;display:flex}.kitchen-order-card-live-dot{background:currentColor;border-radius:999px;width:6px;height:6px;animation:1.6s ease-in-out infinite kitchen-order-card-pulse}@media (prefers-reduced-motion:reduce){.kitchen-order-card-live-dot{animation:none}}@keyframes kitchen-order-card-pulse{0%,to{opacity:.35}50%{opacity:1}}.kitchen-order-card-timer{font-variant-numeric:tabular-nums;letter-spacing:.01em;font-family:DM Sans,sans-serif;font-size:1rem;font-weight:600}.kitchen-order-card-body{flex-direction:column;gap:10px;padding:12px 16px 14px;display:flex}.kitchen-order-card-top{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.kitchen-order-card-name{font-family:Syne,sans-serif;font-size:1.05rem;font-weight:700}.kitchen-order-card-number{color:var(--muted);white-space:nowrap;flex-shrink:0;font-size:.72rem;font-weight:600}.kitchen-order-card-items .order-items-list-title{font-size:.95rem}.kitchen-order-card-button{color:#fff;text-transform:uppercase;letter-spacing:.04em;background:#111;border:none;border-radius:17px;width:100%;min-height:48px;padding:0 20px;font-family:Syne,sans-serif;font-size:.9rem;font-weight:900;transition:background .2s}.kitchen-order-card-button:disabled{color:#11111159;background:#1111111f}.kitchen-order-card-button-ready:not(:disabled){background:#34c759;box-shadow:0 8px 22px #34c75966}.restore-dispatch-trigger{border:1.5px solid var(--border);background:var(--surface);width:44px;height:44px;color:var(--text);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:1.3rem;line-height:1;display:flex}.restore-dispatch-backdrop{z-index:900;background:#00000085;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.restore-dispatch-panel{border-radius:var(--radius);background:var(--surface);width:100%;max-width:420px;max-height:80vh;box-shadow:var(--shadow-md);flex-direction:column;padding:24px;display:flex;overflow-y:auto}.restore-dispatch-title{margin-bottom:16px;font-family:Syne,sans-serif;font-size:1.1rem;font-weight:800}.restore-dispatch-message{color:var(--muted);font-size:.9rem}.restore-dispatch-list{flex-direction:column;gap:10px;list-style:none;display:flex}.restore-dispatch-item{border:1px solid var(--border);background:var(--bg);border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.restore-dispatch-info{flex-direction:column;gap:2px;min-width:0;display:flex}.restore-dispatch-number{font-family:Syne,sans-serif;font-size:.85rem;font-weight:700}.restore-dispatch-name{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;overflow:hidden}.restore-dispatch-elapsed{color:var(--muted);font-size:.72rem}.restore-dispatch-restore-button{background:var(--action);color:#000;border:none;border-radius:9px;flex-shrink:0;min-height:44px;padding:0 14px;font-family:Syne,sans-serif;font-size:.82rem;font-weight:800}.restore-dispatch-restore-button:disabled{opacity:.6}.restore-dispatch-close{border:1.5px solid var(--text);min-height:48px;color:var(--text);letter-spacing:.02em;background:0 0;border-radius:11px;margin-top:20px;font-family:Syne,sans-serif;font-size:.9rem;font-weight:800}.view-toggle{background:var(--bg);border-radius:12px;gap:4px;padding:4px;display:flex}.view-toggle-button{min-height:40px;color:var(--muted);background:0 0;border:none;border-radius:9px;padding:0 16px;font-family:Syne,sans-serif;font-size:.85rem;font-weight:700}.view-toggle-button-active{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.kitchen-view{min-height:100%;padding:20px}.kitchen-count{background:var(--dot-pink,#ff3ea5);color:#fff;border-radius:999px;justify-content:center;align-items:center;min-width:24px;height:24px;padding:0 7px;font-family:Syne,sans-serif;font-size:.75rem;font-weight:800;display:inline-flex}.kitchen-message{color:var(--muted);padding:16px 0}.kitchen-list{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;list-style:none;display:grid}.kitchen-dispatch-button{background:var(--action);color:#000;letter-spacing:.02em;white-space:nowrap;border:none;border-radius:10px;width:100%;min-height:48px;padding:0 20px;font-family:Syne,sans-serif;font-size:.9rem;font-weight:800}.operation-card{border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);flex-direction:column;gap:14px;padding:16px;display:flex}.operation-card-action{border-top:1px solid var(--border);flex-direction:column;gap:8px;padding-top:4px;display:flex}.operation-card-label{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-size:.6rem;font-weight:800}.operation-card-input{border:1.5px solid var(--border);min-height:48px;color:var(--text);border-radius:10px;padding:0 14px;font-family:inherit;font-size:1rem}.operation-card-input:focus{border-color:var(--c-prep);outline:none}.operation-card-error{color:var(--c-fail);font-size:.85rem}.operation-card-send-button{background:var(--action);color:#000;letter-spacing:.02em;border:none;border-radius:10px;min-height:48px;font-family:Syne,sans-serif;font-size:.9rem;font-weight:800}.operation-card-send-button:disabled{opacity:.6}.operation-card-status{border-top:1px solid var(--border);color:var(--muted);padding-top:10px;font-size:.82rem;font-weight:700}.operation-view{min-height:100%;padding:20px}.app-header{margin-bottom:20px}.operation-count{background:var(--dot-pink,#ff3ea5);color:#fff;border-radius:999px;justify-content:center;align-items:center;min-width:24px;height:24px;padding:0 7px;font-family:Syne,sans-serif;font-size:.75rem;font-weight:800;display:inline-flex}.operation-message{color:var(--muted);padding:16px 0}.operation-list{grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:14px;list-style:none;display:grid}.access-destinations{margin-top:20px}.access-destinations-title{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:0;font-size:.75rem;font-weight:600}.access-destinations-buttons{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:12px;display:flex}.access-destinations-button{background:var(--ink,#111);color:#fff;border-radius:999px;padding:8px 16px;font-size:.85rem;font-weight:600;text-decoration:none}.access-destinations-empty{color:var(--muted);margin-top:16px;font-size:.75rem}.auth-loading{min-height:100%;color:var(--muted);justify-content:center;align-items:center;font-size:.95rem;display:flex}.access-card{text-align:center;max-width:380px;padding:32px}.access-card-title{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0;font-size:.75rem;font-weight:700}.access-card-message{color:inherit;margin:8px 0 0;font-size:.95rem}
