:root{--bg: #ffffff;--surface: #fafafa;--border: #e6e6e6;--text: #16181d;--text-muted: #6b7280;--accent: #2f5fff;--accent-soft: #eef2ff;--danger: #d64545;--danger-soft: #fdecec;--success: #1f9d63;--success-soft: #e9f8f0;--radius: 10px;--font-display: "Space Grotesk", "Inter", sans-serif;--font-body: "Inter", sans-serif;--font-mono: "Space Grotesk", monospace}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font-body);-webkit-font-smoothing:antialiased}button{font-family:inherit}a{color:inherit}.auth-screen{min-height:100vh;display:grid;place-items:center;background:linear-gradient(180deg,#fff,#fcfcfd);padding:24px}.auth-card{width:100%;max-width:380px;padding:40px 32px;border:1px solid var(--border);border-radius:16px;background:#fff}.auth-mark{width:34px;height:34px;border-radius:9px;background:var(--text);margin-bottom:24px}.auth-card h1{font-family:var(--font-display);font-size:22px;margin:0 0 6px;letter-spacing:-.01em}.auth-card p.sub{color:var(--text-muted);font-size:14px;margin:0 0 28px}.field{margin-bottom:16px}.field label{display:block;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);margin-bottom:6px}.field input{width:100%;padding:11px 13px;border:1px solid var(--border);border-radius:8px;font-size:14px;color:var(--text);background:var(--surface);outline:none;transition:border-color .15s ease,background .15s ease}.field input:focus{border-color:var(--text);background:#fff}.btn{width:100%;padding:12px 16px;border-radius:8px;border:none;background:var(--text);color:#fff;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .15s ease,transform .1s ease}.btn:hover{opacity:.88}.btn:active{transform:translateY(1px)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{background:transparent;color:var(--text);border:1px solid var(--border)}.btn-danger{background:var(--danger)}.alert{font-size:13px;padding:10px 12px;border-radius:8px;margin-bottom:16px}.alert-error{background:var(--danger-soft);color:var(--danger)}.alert-info{background:var(--accent-soft);color:var(--accent)}.hint{font-size:12px;color:var(--text-muted);margin-top:18px;text-align:center}.code-input{letter-spacing:.3em;font-family:var(--font-mono);font-weight:600;text-align:center;font-size:20px!important}.app-shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{border-right:1px solid var(--border);padding:24px 18px;display:flex;flex-direction:column}.sidebar .brand{display:flex;align-items:center;gap:10px;margin-bottom:32px;padding:0 8px}.sidebar .brand .mark{width:26px;height:26px;border-radius:7px;background:var(--text);flex-shrink:0}.sidebar .brand span{font-family:var(--font-display);font-weight:600;font-size:15px}.nav-link{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;font-size:14px;font-weight:500;color:var(--text-muted);text-decoration:none;margin-bottom:2px;cursor:pointer;border:none;background:none;width:100%;text-align:left}.nav-link:hover{background:var(--surface);color:var(--text)}.nav-link.active{background:var(--accent-soft);color:var(--accent)}.sidebar-footer{margin-top:auto;padding-top:16px;border-top:1px solid var(--border)}.sidebar-user{padding:8px;margin-bottom:8px}.sidebar-user .name{font-size:13px;font-weight:600}.sidebar-user .role{font-size:12px;color:var(--text-muted)}.main{padding:32px 40px;max-width:1100px}.page-header{margin-bottom:28px}.page-header h1{font-family:var(--font-display);font-size:24px;margin:0 0 6px;letter-spacing:-.01em}.page-header p{color:var(--text-muted);font-size:14px;margin:0}.card{border:1px solid var(--border);border-radius:var(--radius);background:#fff;overflow:hidden}.card+.card{margin-top:20px}.mr-dropdown{position:absolute;top:100%;left:0;right:0;z-index:20;margin-top:4px;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px #0000001f;max-height:280px;overflow-y:auto}.mr-option{display:block;width:100%;text-align:left;padding:10px 12px;border:none;background:none;font-size:14px;font-family:inherit;cursor:pointer;border-bottom:1px solid var(--border)}.mr-option:last-child{border-bottom:none}.mr-option:hover{background:var(--surface)}.mr-option.muted{color:var(--text-muted);cursor:default}table{width:100%;border-collapse:collapse;font-size:13px}thead tr{border-bottom:1px solid var(--border)}th{text-align:left;padding:12px 16px;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);font-weight:600}td{padding:14px 16px;border-bottom:1px solid var(--border);vertical-align:middle}tbody tr:last-child td{border-bottom:none}.badge{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:100px;font-size:11px;font-weight:600}.badge-live{background:var(--success-soft);color:var(--success)}.badge-live .dot{width:6px;height:6px;border-radius:50%;background:var(--success)}.badge-role{background:var(--surface);color:var(--text-muted);border:1px solid var(--border)}.mono{font-family:var(--font-mono)}.code-pill{font-family:var(--font-mono);font-weight:700;letter-spacing:.15em;background:var(--accent-soft);color:var(--accent);padding:4px 10px;border-radius:6px;font-size:15px}.btn-sm{padding:7px 12px;font-size:12px;width:auto;border-radius:6px}.empty-state{padding:48px 16px;text-align:center;color:var(--text-muted);font-size:13px}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:12px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f0f1459;display:grid;place-items:center;z-index:40;padding:20px}.modal{width:100%;max-width:420px;background:#fff;border-radius:14px;border:1px solid var(--border);padding:28px}.modal h2{font-family:var(--font-display);font-size:18px;margin:0 0 20px}.modal-actions{display:flex;gap:10px;margin-top:22px}.checkbox-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.product-thumb{width:44px;height:44px;border-radius:8px;object-fit:cover;border:1px solid var(--border);background:var(--surface)}.product-thumb-placeholder{width:44px;height:44px;border-radius:8px;border:1px dashed var(--border);background:var(--surface);display:flex;align-items:center;justify-content:center;font-size:10px;color:var(--text-muted)}.image-picker{display:flex;align-items:center;gap:14px}.image-picker .preview{width:64px;height:64px;border-radius:10px;object-fit:cover;border:1px solid var(--border);background:var(--surface)}.image-picker .preview-placeholder{width:64px;height:64px;border-radius:10px;border:1px dashed var(--border);background:var(--surface);display:flex;align-items:center;justify-content:center;font-size:10px;color:var(--text-muted);text-align:center;padding:4px}.checkbox-row{display:flex;align-items:center;gap:8px;font-size:13px;padding:8px 10px;border:1px solid var(--border);border-radius:8px}.switch{position:relative;display:inline-block;width:36px;height:20px;flex-shrink:0}.sched-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:8px 10px;border:1px solid var(--border);border-radius:8px}.sched-day{flex:1;min-width:64px;font-size:13px;font-weight:600}.sched-off{font-size:12px;color:var(--text-muted)}.sched-times{display:flex;align-items:center;gap:8px}.sched-times input[type=time]{width:120px;padding:8px;border:1px solid var(--border);border-radius:6px;font-size:14px;font-family:inherit;background:var(--surface)}@media (max-width: 560px){.sched-times{flex-basis:100%}.sched-times input[type=time]{flex:1;width:auto;min-width:0}}.switch input{opacity:0;width:0;height:0}.switch .slider{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--border);border-radius:100px;transition:.15s;cursor:pointer}.switch .slider:before{content:"";position:absolute;width:16px;height:16px;left:2px;top:2px;background:#fff;border-radius:50%;transition:.15s}.switch input:checked+.slider{background:var(--accent)}.switch input:checked+.slider:before{transform:translate(16px)}.collect-sheet{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:var(--surface);display:flex;flex-direction:column}.cs-topbar{display:flex;align-items:center;gap:10px;padding:12px 14px;background:var(--bg);border-bottom:1px solid var(--border)}.cs-close{border:none;background:none;font-size:15px;cursor:pointer;color:var(--text-muted);padding:4px 8px}.cs-title{font-weight:600;font-size:14px}.cs-body{flex:1;overflow-y:auto;padding:14px 14px 120px;width:100%;max-width:520px;margin:0 auto}.cs-section{text-align:center;font-size:13px;color:var(--text-muted);margin:16px 0 8px}.cs-card{background:var(--bg);border:1px solid var(--border);border-radius:12px;overflow:hidden}.cs-item{display:flex;gap:12px;padding:12px;border-bottom:1px solid var(--border);align-items:center}.cs-item:last-child{border-bottom:none}.cs-item-img{width:54px;height:54px;border-radius:10px;object-fit:cover;background:var(--surface);flex-shrink:0}.cs-item-noimg{display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--text-muted)}.cs-item-info{flex:1;min-width:0}.cs-item-name{font-size:13px;font-weight:600}.cs-item-code{font-family:var(--font-mono);font-size:12px;color:var(--text-muted);margin-top:1px}.cs-item-price{display:flex;flex-direction:column;margin-top:4px;line-height:1.35}.cs-item-price .usd{font-size:13px;font-weight:700;color:var(--accent)}.cs-item-price .cup{font-size:11px;color:var(--text-muted)}.cs-item-qty{display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex-shrink:0}.cs-qty-label{font-size:10px;color:var(--text-muted)}.cs-stepper{display:flex;align-items:center;gap:3px;border:1px solid var(--border);border-radius:8px;padding:2px}.cs-stepper button{width:26px;height:26px;border:none;background:none;font-size:16px;cursor:pointer;color:var(--text);border-radius:6px}.cs-stepper button:disabled{opacity:.3;cursor:default}.cs-sell{min-width:18px;text-align:center;font-size:14px;font-weight:700}.cs-max{min-width:20px;text-align:center;font-size:12px;font-weight:600;color:var(--text-muted);background:var(--surface);border-radius:5px;padding:2px 3px}.cs-return-note{font-size:10px;color:var(--danger)}.cs-field{padding:12px}.cs-field label{display:block;font-size:12px;font-weight:600;color:var(--text-muted);margin-bottom:6px}.cs-field input{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:8px;font-size:14px;font-family:inherit;background:var(--surface)}.cs-pay{position:fixed;left:50%;bottom:0;transform:translate(-50%);width:100%;max-width:520px;border:none;background:var(--success);color:#fff;padding:12px 20px 18px;display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer}.cs-pay:disabled{opacity:.75;cursor:default}.cs-pay-label{font-size:12px;font-weight:700;letter-spacing:.1em;opacity:.85}.cs-pay-cup{font-size:30px;font-weight:800;line-height:1.05}.cs-pay-cup small{font-size:14px;font-weight:700;opacity:.85}.cs-pay-usd{font-size:13px;font-weight:600;opacity:.85}.cs-total-box{background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:14px;text-align:center;margin-top:6px}.cs-total-label{font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--text-muted)}.cs-total-amounts{margin-top:4px;display:flex;flex-direction:column;align-items:center;gap:2px}.cs-total-amounts .cup{font-size:26px;font-weight:800;line-height:1.1}.cs-total-sub{display:flex;gap:12px;font-size:13px;font-weight:600;color:var(--text-muted)}.cs-diff{margin-top:8px;font-size:13px;color:var(--danger)}.cs-diff.ok{color:var(--success)}.cs-pay-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--border)}.cs-pay-row:last-child{border-bottom:none}.cs-pay-input{width:90px;padding:9px 10px;border:1px solid var(--border);border-radius:8px;font-size:15px;font-family:inherit;text-align:right;background:var(--surface)}.cs-pay-cur{font-size:12px;color:var(--text-muted);width:30px}.cs-pay-origin{flex:1;font-size:14px;font-weight:500}.cs-confirm-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:110;background:#00000073;display:flex;align-items:center;justify-content:center;padding:20px}.cs-confirm{background:var(--bg);border-radius:14px;padding:20px;max-width:340px;width:100%;text-align:center}.cs-confirm p{margin:0 0 16px;font-size:15px;font-weight:600}.cs-confirm-actions{display:flex;gap:10px}.cs-confirm-actions .btn{flex:1}.cs-qr-btn{flex-shrink:0;padding:7px 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);font-size:12px;font-weight:600;font-family:inherit;color:var(--text);cursor:pointer}.cs-qr-btn:disabled{opacity:.45;cursor:not-allowed}.cs-qr{background:var(--bg);border-radius:14px;padding:18px;max-width:360px;width:100%;text-align:center}.cs-qr-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.cs-qr-title{font-size:17px;font-weight:700}.cs-qr-close{border:none;background:transparent;font-size:16px;line-height:1;cursor:pointer;color:var(--text-muted);padding:4px}.cs-qr-sub{font-size:14px;font-weight:600;color:var(--text-muted);margin-bottom:12px}.cs-qr-img{width:100%;max-width:300px;aspect-ratio:1 / 1;display:block;margin:0 auto;image-rendering:pixelated}.cs-qr-img--empty{display:flex;align-items:center;justify-content:center;border:1px dashed var(--border);border-radius:8px;color:var(--text-muted);font-size:13px}.cs-qr-amount{margin-top:12px;font-size:20px;font-weight:800}.cc-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:12px}.cc-card{display:flex;flex-direction:column;gap:4px;padding:14px;border:2px solid var(--border);border-radius:12px;background:var(--surface);cursor:pointer;text-align:left;font-family:inherit}.cc-card.on{border-color:var(--success)}.cc-card-label{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}.cc-card-value{font-size:20px;font-weight:800}.cc-control{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-radius:10px;margin-bottom:14px;color:#fff;font-size:15px}.cc-control.ok{background:var(--success)}.cc-control.bad{background:var(--danger, #c0392b)}.cc-control strong{font-size:18px}.cc-tree{display:flex;flex-direction:column;gap:18px}.cc-cur-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;border-bottom:1px solid var(--border);padding-bottom:6px;margin-bottom:10px}.cc-cur-name{font-size:15px;font-weight:700}.cc-cur-sub{font-size:12px;color:var(--text-muted)}.cc-denoms{display:flex;flex-direction:column;gap:6px}.cc-denom{display:flex;align-items:center;gap:12px}.cc-denom-label{width:110px;font-weight:600;font-size:14px}.cc-denom-input{flex:1;max-width:160px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;font-size:14px;font-family:inherit;text-align:right;background:var(--surface)}.cc-denom--auto .cc-denom-label{width:auto;font-weight:500;color:var(--text-muted)}.cc-denom-auto{flex:1;max-width:160px;text-align:right;font-weight:700;font-size:14px}.cc-facturas-total{margin-top:14px;font-size:28px;font-weight:800}@media (max-width: 560px){.cc-cards{grid-template-columns:1fr}}.invoice-item-thumb{width:40px;height:40px;border-radius:8px;object-fit:cover;background:var(--surface);display:block}.invoice-item-thumb--empty{display:flex;align-items:center;justify-content:center;font-size:10px;color:var(--text-muted);border:1px solid var(--border)}.size-chips{display:flex;flex-wrap:wrap;gap:8px}.size-chip{min-height:38px;padding:8px 16px;border:1px solid var(--border);border-radius:100px;background:var(--bg);color:var(--text);font-size:14px;font-weight:600;cursor:pointer}.size-chip.on{background:var(--accent);border-color:var(--accent);color:#fff}.size-qty-list{margin-top:12px;border:1px solid var(--border);border-radius:10px;overflow:hidden}.size-qty-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid var(--border)}.size-qty-row:last-child{border-bottom:none}.sq-name{font-size:14px;font-weight:600}.sq-stepper{display:flex;align-items:center;gap:4px}.sq-stepper button{width:36px;height:36px;border:1px solid var(--border);border-radius:8px;background:var(--surface);font-size:18px;line-height:1;cursor:pointer;color:var(--text)}.sq-stepper input{width:64px;height:36px;text-align:center;border:1px solid var(--border);border-radius:8px;font-size:15px;font-family:inherit;background:var(--surface);-moz-appearance:textfield}.sq-stepper input::-webkit-outer-spin-button,.sq-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}@media (max-width: 560px){.modal-backdrop{padding:10px}.modal{max-width:100%!important;padding:20px 16px 28px}}.admin-topbar,.admin-drawer,.admin-drawer-backdrop{display:none}@media (max-width: 899px){.app-shell{display:block}.sidebar{display:none}.admin-topbar{display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:50;background:var(--bg);border-bottom:1px solid var(--border);padding:10px 14px}.admin-burger{width:42px;height:42px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);cursor:pointer}.admin-topbar .brand{display:flex;align-items:center;gap:8px;margin:0;padding:0}.admin-topbar .brand .mark{width:22px;height:22px;border-radius:6px;background:var(--text)}.admin-topbar .brand span{font-family:var(--font-display);font-weight:600;font-size:15px}.admin-drawer-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f0f1473;z-index:60}.admin-drawer{display:flex;flex-direction:column;position:fixed;top:0;bottom:0;left:0;width:84%;max-width:320px;background:var(--bg);border-right:1px solid var(--border);padding:18px 14px;z-index:70;overflow-y:auto;-webkit-overflow-scrolling:touch;transform:translate(-100%);visibility:hidden;transition:transform .22s ease,visibility .22s}.admin-drawer.open{transform:translate(0);visibility:visible}.admin-drawer .brand{display:flex;align-items:center;gap:10px;margin-bottom:18px;padding:0 4px}.admin-drawer .brand .mark{width:26px;height:26px;border-radius:7px;background:var(--text)}.admin-drawer .brand span{font-family:var(--font-display);font-weight:600;font-size:15px}.admin-drawer .nav-link{padding:13px 12px;font-size:15px}.main{padding:16px 14px 48px;max-width:100%}.page-header{margin-bottom:18px}.page-header h1{font-size:20px}.toolbar{flex-wrap:wrap}.card{overflow-x:auto;-webkit-overflow-scrolling:touch}table{font-size:13px}th,td{padding:10px 12px;white-space:nowrap}.field input,input[type=text],input[type=number],input[type=search],input[type=date],input[type=password],input[type=email],select,textarea{font-size:16px}.btn{padding:14px 16px;font-size:15px}.btn-sm{padding:10px 14px;font-size:13px}.checkbox-grid{grid-template-columns:1fr}div[style*=grid-template-columns][style*="1fr 1fr"]{grid-template-columns:1fr!important}.modal{max-height:88vh;overflow-y:auto}}@media (max-width: 480px){.auth-card{padding:32px 20px}}
