:root{--primary:#4f46e5;--primary-dark:#3730a3;--ink:#182235;--muted:#667085;--line:#e5e7eb;--bg:#f7f8fc;--card:#fff;--success:#118a49;--danger:#c83d4c;--shadow:0 10px 28px rgba(27,37,66,.10)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.app-shell{min-height:100vh;padding:env(safe-area-inset-top) 0 calc(86px + env(safe-area-inset-bottom));max-width:680px;margin:auto;background:var(--bg)}.topbar{padding:17px 18px 14px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:4}.eyebrow{margin:0;color:var(--primary);font-size:.78rem;font-weight:800}.topbar h1{margin:3px 0 0;font-size:1.12rem}.icon-button,.scan-button,.text-button{border:0;background:transparent;color:var(--primary);font-size:1.1rem;min-height:44px;min-width:44px;border-radius:12px}.icon-button:active,.scan-button:active{background:#eef2ff}.content{padding:16px}.view{display:none}.view.active{display:block}.primary-action{width:100%;border:0;border-radius:18px;padding:21px 18px;background:linear-gradient(135deg,var(--primary),#6d5cf3);color:#fff;display:flex;align-items:center;gap:16px;text-align:left;box-shadow:0 12px 22px rgba(79,70,229,.25);font:inherit;font-weight:800;font-size:1.14rem}.primary-action i{font-size:1.7rem}.primary-action small{display:block;margin-top:4px;opacity:.86;font-size:.78rem;font-weight:500}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:14px 0}.metrics article,.panel{background:var(--card);border:1px solid var(--line);border-radius:15px;box-shadow:0 2px 5px rgba(30,41,59,.03)}.metrics article{padding:14px}.metrics small,.muted{color:var(--muted);font-size:.78rem}.metrics strong{display:block;margin-top:6px;font-size:1.23rem}.panel{margin-top:14px;padding:15px}.panel h2,.section-heading h2,.subheading{font-size:1rem;margin:0}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:4px 0 10px}.simple-list{margin-top:10px}.empty{color:var(--muted);font-size:.86rem;padding:12px 0}.list-item{padding:11px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.list-item:last-child{border-bottom:0}.list-item strong{font-size:.9rem;display:block}.list-item small{color:var(--muted)}.search-row{display:flex;gap:9px;align-items:center}.search-box{flex:1;background:#fff;border:1px solid var(--line);display:flex;align-items:center;border-radius:13px;padding:0 12px;gap:10px;height:50px}.search-box i{color:var(--muted)}.search-box input{border:0;outline:0;width:100%;font:inherit;background:transparent}.scan-button{background:var(--primary);color:#fff;width:50px;height:50px;border-radius:13px}.chips{display:flex;gap:8px;overflow:auto;margin:14px 0 18px;padding-bottom:2px}.chip{border:0;padding:9px 14px;border-radius:18px;background:#eceef4;color:#4d5565;white-space:nowrap;font:inherit;font-size:.78rem}.chip i{margin-right:3px}.chip.active{background:#e6e4ff;color:var(--primary-dark);font-weight:800}.subheading{margin:0 0 11px}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.product-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:12px;text-align:left;min-height:142px;display:flex;flex-direction:column;justify-content:space-between;font:inherit;color:var(--ink)}.product-icon{height:55px;border-radius:11px;background:#f2f3ff;color:var(--primary);display:grid;place-items:center;font-size:1.5rem;margin-bottom:8px}.category-tag{display:inline-flex;align-self:flex-start;margin:-2px 0 6px;padding:3px 7px;border-radius:999px;background:#f0f2f7;color:#667085;font-size:.64rem;font-weight:800}.product-card strong{font-size:.86rem;line-height:1.2}.product-card.category-bebidas .product-icon{background:#e0f2fe;color:#0277bd}.product-card.category-snacks .product-icon{background:#fff4d6;color:#cc7a00}.product-card.category-abarrotes .product-icon{background:#e8f7e9;color:#178444}.product-card.category-limpieza .product-icon{background:#eee9ff;color:#6d4fd7}.product-card.category-pan .product-icon{background:#fff0e3;color:#c96913}.product-card.category-mascotas .product-icon{background:#fce7f3;color:#be3b78}.product-card small{color:var(--muted);font-size:.72rem}.product-card b{color:var(--success);font-size:.88rem;margin-top:8px}.cart-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:71px;width:min(680px,100%);background:#182235;color:#fff;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;z-index:8}.cart-bar.hidden,.overlay.hidden,.toast.hidden{display:none}.cart-bar small{display:block;color:#d4d9e5}.cart-bar strong{font-size:1.08rem}.cart-bar button{border:0;background:#5be184;color:#10351f;border-radius:11px;padding:12px 15px;font:inherit;font-weight:800}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(680px,100%);height:71px;background:#fff;border-top:1px solid var(--line);display:flex;z-index:9;padding-bottom:env(safe-area-inset-bottom)}.nav-item{border:0;background:#fff;flex:1;color:#7b8494;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:.68rem}.nav-item i{font-size:1.15rem}.nav-item.active{color:var(--primary);font-weight:800}.pilot-note{display:flex;gap:11px;padding:14px;background:#ede9fe;border-radius:14px;color:#382f88}.pilot-note i{margin-top:2px}.pilot-note strong{font-size:.9rem}.pilot-note p{margin:4px 0 0;font-size:.8rem;line-height:1.35}.outline-action{margin:14px 0 16px;width:100%;border:1.5px solid var(--primary);color:var(--primary);background:#fff;border-radius:13px;min-height:51px;font:inherit;font-weight:800}.product-heading{margin-top:10px}.text-button{font-size:.8rem;font-weight:800;width:auto}.big-sale{font-size:2rem;font-weight:900;color:var(--primary);margin:12px 0 2px}.overlay{position:fixed;inset:0;background:rgba(15,23,42,.56);z-index:20;display:flex;align-items:flex-end}.sheet{position:relative;width:100%;max-width:680px;margin:auto;background:#fff;border-radius:23px 23px 0 0;max-height:90vh;overflow:auto;padding:23px 18px calc(22px + env(safe-area-inset-bottom));box-shadow:var(--shadow)}.close{position:absolute;right:13px;top:12px;border:0;background:#edf0f5;border-radius:50%;width:35px;height:35px;font-size:1.35rem}.sheet h2{font-size:1.23rem;margin:0 38px 5px 0}.presentation-list{display:grid;gap:10px;margin-top:18px}.presentation{border:1.5px solid var(--line);border-radius:13px;padding:13px;background:#fff;text-align:left;display:flex;justify-content:space-between;align-items:center;font:inherit}.presentation.selected{border-color:var(--primary);background:#f5f3ff}.presentation strong{display:block}.presentation small{color:var(--muted)}.quantity-row{display:flex;align-items:center;justify-content:center;gap:18px;margin:19px 0}.quantity-row button{width:44px;height:44px;border:0;border-radius:50%;background:#eef0ff;color:var(--primary);font-size:1.1rem}.quantity-row strong{font-size:1.2rem}.sheet-primary{border:0;width:100%;min-height:53px;border-radius:13px;background:var(--success);color:#fff;font:inherit;font-weight:850;font-size:1rem}.pay-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:18px 0}.pay-option{border:1.5px solid var(--line);background:#fff;border-radius:13px;min-height:79px;font:inherit;font-weight:750;color:#394154}.pay-option.selected{border-color:var(--primary);color:var(--primary);background:#f5f3ff}.pay-option i{display:block;font-size:1.4rem;margin-bottom:6px}.amount-box{border:1px solid var(--line);border-radius:13px;padding:12px;margin-bottom:15px}.amount-box label{font-size:.78rem;color:var(--muted);display:block}.amount-box input{border:0;outline:0;font:inherit;font-size:1.25rem;font-weight:800;width:100%;padding-top:5px}.detail-box{background:#f8fafc;border-radius:12px;padding:12px;margin:13px 0;font-size:.88rem}.field{display:grid;gap:6px;margin:13px 0}.field label{font-size:.82rem;font-weight:750}.field input,.field select{min-height:47px;border:1px solid var(--line);border-radius:11px;padding:0 11px;font:inherit;background:#fff}.unit-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:15px 0}.unit-choice{border:1.5px solid var(--line);background:#fff;border-radius:13px;min-height:86px;font:inherit;color:#40475a}.unit-choice i{display:block;color:var(--primary);font-size:1.35rem;margin-bottom:6px}.unit-choice.selected{border-color:var(--primary);background:#f5f3ff}.present-editor{background:#f8fafc;border:1px solid var(--line);border-radius:13px;padding:12px;margin:10px 0}.present-editor h3{font-size:.88rem;margin:0 0 8px}.inline-fields{display:grid;grid-template-columns:1.25fr .75fr .75fr;gap:7px}.inline-fields input{min-width:0}.toast{position:fixed;bottom:91px;left:50%;transform:translateX(-50%);width:calc(100% - 30px);max-width:500px;padding:13px 15px;background:#182235;color:#fff;border-radius:13px;z-index:30;font-weight:650;box-shadow:var(--shadow)}.toast.error{background:#992f3c}.scanner-sheet #reader{width:100%;margin:13px 0}.scanner-sheet video{border-radius:13px}@media(min-width:680px){.app-shell{box-shadow:0 0 0 1px #e7e8ee}.content{padding:22px}.product-grid{grid-template-columns:repeat(3,1fr)}}

.login-screen{position:fixed;inset:0;z-index:40;display:grid;place-items:center;overflow-x:hidden;overflow-y:auto;padding:20px;background:radial-gradient(circle at 10% 8%,#a5f3fc 0,transparent 31%),radial-gradient(circle at 96% 86%,#c4b5fd 0,transparent 32%),linear-gradient(155deg,#312e81 0%,#4f46e5 48%,#312e81 100%)}.login-screen.hidden{display:none}.login-glow{position:absolute;border-radius:999px;filter:blur(2px);opacity:.58}.login-glow-one{width:230px;height:230px;background:#34d399;right:-96px;top:13%}.login-glow-two{width:170px;height:170px;background:#facc15;left:-85px;bottom:6%}.login-card{position:relative;z-index:1;width:min(100%,405px);overflow:hidden;background:#fff;border:1px solid rgba(255,255,255,.45);border-radius:27px;box-shadow:0 28px 65px rgba(15,23,42,.36)}.login-hero{position:relative;padding:26px 24px 23px;color:#fff;background:linear-gradient(132deg,#312e81,#4f46e5 61%,#6d5cf3);overflow:hidden}.login-hero:after{content:'';position:absolute;width:185px;height:185px;border:30px solid rgba(255,255,255,.09);border-radius:50%;right:-70px;top:-88px}.login-mark{position:relative;z-index:1;width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:#fff;color:#4f46e5;font-size:1.55rem;box-shadow:0 9px 20px rgba(15,23,42,.22);margin-bottom:14px}.login-hero .eyebrow{position:relative;z-index:1;color:#d9d7ff;letter-spacing:.055em;text-transform:uppercase;font-size:.72rem}.login-hero h1{position:relative;z-index:1;margin:6px 0 7px;font-size:1.72rem;line-height:1.06;letter-spacing:-.035em}.login-hero>p:not(.eyebrow){position:relative;z-index:1;margin:0;color:#ebeaff;font-size:.9rem;line-height:1.4;max-width:280px}.login-badge{position:relative;z-index:1;display:inline-flex;align-items:center;gap:7px;margin-top:15px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.15);font-size:.72rem;font-weight:750}.login-form-content{padding:21px 24px 23px}.login-form-heading h2{font-size:1.08rem;margin:0 0 3px}.login-form-heading p{color:var(--muted);font-size:.82rem;margin:0 0 16px}.login-card label{display:grid;gap:6px;font-size:.8rem;font-weight:800;margin:13px 0}.login-input{height:52px;display:flex;align-items:center;gap:10px;border:1.5px solid #dce1ec;border-radius:14px;padding:0 13px;background:#f9fafc;transition:border-color .16s,box-shadow .16s}.login-input:focus-within{border-color:var(--primary);background:#fff;box-shadow:0 0 0 4px rgba(79,70,229,.12)}.login-input i{color:#7c73db;font-size:.96rem;width:17px;text-align:center}.login-card input{min-width:0;flex:1;height:100%;border:0;outline:0;background:transparent;font:inherit;color:var(--ink)}.login-card input::placeholder{color:#9aa3b3}.login-submit{display:flex;align-items:center;justify-content:center;gap:11px;margin-top:19px;background:linear-gradient(135deg,#16a34a,#118a49);box-shadow:0 10px 20px rgba(17,138,73,.23)}.login-submit:active{transform:translateY(1px)}.login-error{min-height:18px;margin-top:10px;color:var(--danger);font-size:.79rem;font-weight:650;text-align:center}
@media (prefers-reduced-motion:no-preference){.primary-action,.product-card,.chip,.scan-button,.cart-bar button,.sheet-primary,.unit-choice,.presentation,.pay-option{transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,border-color .16s ease}.primary-action:active,.product-card:active,.scan-button:active,.cart-bar button:active,.sheet-primary:active,.unit-choice:active,.presentation:active,.pay-option:active{transform:scale(.98)}.product-card:hover{box-shadow:0 8px 17px rgba(27,37,66,.11);transform:translateY(-2px)}.toast:not(.hidden){animation:toast-in .2s ease-out}@keyframes toast-in{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}}@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

.topbar-actions{display:flex;align-items:center;gap:4px}
.logout-button{min-height:40px;border:0;border-radius:10px;padding:0 10px;background:#f1f3f8;color:#455066;font:inherit;font-size:.78rem;font-weight:800;display:inline-flex;align-items:center;gap:6px}.logout-button:hover{background:#e6e9f1}.dark-mode .logout-button{background:#2a354b;color:#dbe3f5}.dark-mode .logout-button:hover{background:#35425c}.sheet-actions{display:grid;gap:10px;margin-top:18px}.sheet-actions .outline-action{margin:0}.danger-action{min-height:51px;border:0;border-radius:13px;background:#b83243;color:#fff;font:inherit;font-weight:850;font-size:1rem}.danger-action:hover{background:#992f3c}
.dark-mode{--ink:#f5f7ff;--muted:#aeb8cc;--line:#2a354b;--bg:#101624;--card:#192235;--primary:#8b82ff;--primary-dark:#c7c2ff;--success:#42c77a;--danger:#ff8290;--shadow:0 12px 28px rgba(0,0,0,.32)}
.dark-mode .topbar,.dark-mode .bottom-nav,.dark-mode .product-card,.dark-mode .search-box,.dark-mode .sheet,.dark-mode .presentation,.dark-mode .pay-option,.dark-mode .unit-choice,.dark-mode .field input,.dark-mode .field select{background:var(--card);color:var(--ink)}
.dark-mode .bottom-nav,.dark-mode .nav-item{background:var(--card)}
.dark-mode .nav-item{color:#aeb8cc}.dark-mode .nav-item.active{color:#b8b2ff}
.dark-mode .chip{background:#263149;color:#c2cbe0}.dark-mode .chip.active,.dark-mode .presentation.selected,.dark-mode .pay-option.selected,.dark-mode .unit-choice.selected{background:#302b59;color:#e1deff;border-color:var(--primary)}
.dark-mode .product-icon{background:#2b3155;color:#b8b2ff}.dark-mode .category-tag{background:#2a354b;color:#c4cce0}
.dark-mode .product-card.category-bebidas .product-icon{background:#173c59;color:#67c5ff}.dark-mode .product-card.category-snacks .product-icon{background:#503a12;color:#ffd36b}.dark-mode .product-card.category-abarrotes .product-icon{background:#183f30;color:#72dda5}.dark-mode .product-card.category-limpieza .product-icon{background:#35285d;color:#c4a6ff}.dark-mode .product-card.category-pan .product-icon{background:#573314;color:#ffb76c}.dark-mode .product-card.category-mascotas .product-icon{background:#52233f;color:#ff9bc7}
.dark-mode .pilot-note{background:#2d2a56;color:#e2dfff}.dark-mode .outline-action{background:transparent;color:#bbb5ff}.dark-mode .close{background:#2a354b;color:var(--ink)}
.dark-mode .detail-box,.dark-mode .amount-box,.dark-mode .present-editor{background:#151d2d;border-color:var(--line);color:var(--ink)}
.dark-mode .login-screen{background:radial-gradient(circle at 10% 8%,#164e63 0,transparent 31%),radial-gradient(circle at 96% 86%,#43306f 0,transparent 32%),linear-gradient(155deg,#10152a 0%,#25205c 48%,#10152a 100%)}
.dark-mode .login-card{background:#192235;border-color:#3b4862}.dark-mode .login-form-content{background:#192235}.dark-mode .login-input{background:#111827;border-color:#3b4862}.dark-mode .login-input:focus-within{background:#111827}.dark-mode .login-card input{color:var(--ink)}
.dark-mode .icon-button:active,.dark-mode .scan-button:active{background:#2c3154}.dark-mode .empty{color:var(--muted)}
.registered-filters{margin:0 0 10px}.registered-filters .search-box{width:100%;height:46px}.chips.compact{margin:10px 0 2px}.registered-tag{display:inline-block;padding:2px 6px;border-radius:999px;background:#f0f2f7;color:#667085;font-size:.66rem;font-weight:800}.dark-mode .registered-tag{background:#2a354b;color:#c4cce0}
.insight-panel{overflow:hidden}.trend-message{margin:11px 0 14px;font-size:.9rem;font-weight:750;line-height:1.45;color:var(--ink)}.weekly-chart{height:148px;display:flex;align-items:flex-end;justify-content:space-between;gap:7px;padding:9px 3px 0;border-top:1px solid var(--line)}.weekly-bar{height:100%;min-width:0;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px}.weekly-value{height:17px;overflow:hidden;white-space:nowrap;font-size:.59rem;font-weight:800;color:var(--success)}.weekly-column{height:92px;width:100%;max-width:28px;display:flex;align-items:flex-end;border-radius:9px 9px 3px 3px;background:#edf0ff;overflow:hidden}.weekly-column i{display:block;width:100%;border-radius:8px 8px 3px 3px;background:linear-gradient(180deg,#8b82ff,#4f46e5)}.weekly-bar small{font-size:.63rem;color:var(--muted);text-transform:capitalize}.dark-mode .weekly-column{background:#293354}.dark-mode .weekly-column i{background:linear-gradient(180deg,#aaa3ff,#6f66e7)}
.quantity-editor,.cart-quantity-editor{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;align-items:end;margin:18px 0 5px}.quantity-editor button,.cart-quantity-editor button{min-height:44px;border:1px solid var(--line);border-radius:11px;background:#f5f6fb;color:var(--primary);font:inherit;font-weight:850}.quantity-editor label{grid-column:3;display:grid;gap:4px;font-size:.67rem;font-weight:800;color:var(--muted);text-align:center}.quantity-editor input,.cart-quantity-editor input{min-width:0;width:100%;height:44px;border:1.5px solid var(--primary);border-radius:11px;background:#fff;color:var(--ink);font:inherit;font-size:1rem;font-weight:850;text-align:center}.quantity-help{margin:0 0 16px;text-align:center}.checkout-line{padding:11px 0;border-bottom:1px solid var(--line)}.checkout-line:last-child{border-bottom:0}.checkout-line>div:first-child{display:flex;justify-content:space-between;gap:10px}.checkout-line strong,.checkout-line small{display:block}.checkout-line small{margin-top:3px;color:var(--muted);font-size:.75rem}.checkout-line-total{display:flex;align-items:center;gap:8px}.remove-line{width:34px;height:34px;border:0;border-radius:10px;background:#fff0f1;color:var(--danger);font-size:.9rem}.cart-quantity-editor{margin:9px 0 0}.cart-quantity-editor button{min-height:38px}.cart-quantity-editor input{height:38px}.dark-mode .quantity-editor button,.dark-mode .cart-quantity-editor button{background:#263149;border-color:var(--line);color:#c7c2ff}.dark-mode .quantity-editor input,.dark-mode .cart-quantity-editor input{background:#151d2d;color:var(--ink)}.dark-mode .remove-line{background:#572c38;color:#ffadb8}
.checkout-line{position:relative;padding-right:110px}.checkout-line-total{position:absolute;right:52px;top:12px}.remove-line{position:absolute;right:0;top:-5px;width:44px;height:44px;border-radius:13px;font-size:1rem;box-shadow:0 2px 6px rgba(200,61,76,.16)}.receipt-preview{text-align:center}.receipt-mark{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;background:#dcfce7;color:#15803d;font-size:1.65rem}.receipt-preview h2{margin-right:0}.receipt-list{margin:17px 0;text-align:left;border-top:1px dashed var(--line);border-bottom:1px dashed var(--line)}.receipt-list div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:.85rem}.receipt-list div:last-child{border-bottom:0}.receipt-note{text-align:left;font-size:.8rem;line-height:1.4;color:var(--muted);padding:11px;background:#f5f3ff;border-radius:12px}.receipt-note i{color:var(--primary);margin-right:5px}.receipt-new-sale{margin-bottom:0}.dark-mode .receipt-mark{background:#174a2c;color:#77e7a6}.dark-mode .receipt-note{background:#2d2a56;color:#e2dfff}
.registered-filters{position:relative}.chips{scrollbar-width:thin;scrollbar-color:#a7a0f7 transparent;overscroll-behavior-x:contain;scroll-snap-type:x proximity}.chips::-webkit-scrollbar{height:6px}.chips::-webkit-scrollbar-track{background:transparent}.chips::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#c5c1ff,#7b71e9);border-radius:999px}.chip{scroll-snap-align:start}.chips-scroll-cue{position:absolute;right:0;bottom:0;width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#5e55d8,#8b82ff);color:#fff;font-size:.65rem;pointer-events:none;box-shadow:0 5px 12px rgba(79,70,229,.24)}
@media (prefers-reduced-motion:no-preference){body.theme-transition,body.theme-transition .app-shell,body.theme-transition .topbar,body.theme-transition .bottom-nav,body.theme-transition .nav-item,body.theme-transition .panel,body.theme-transition .metrics article,body.theme-transition .product-card,body.theme-transition .search-box,body.theme-transition .sheet,body.theme-transition .presentation,body.theme-transition .pay-option,body.theme-transition .unit-choice,body.theme-transition .field input,body.theme-transition .field select,body.theme-transition .chip{transition:background-color .32s ease,color .32s ease,border-color .32s ease,box-shadow .32s ease!important}.theme-transition #btn-theme i{animation:theme-turn .35s ease}@keyframes theme-turn{50%{transform:rotate(135deg) scale(1.16)}}.chips-scroll-cue{animation:scroll-cue 1.35s ease-in-out infinite}@keyframes scroll-cue{50%{transform:translateX(-5px);box-shadow:0 7px 16px rgba(79,70,229,.36)}}.remove-line{animation:trash-breathe 1.15s ease-in-out .3s 2}.remove-line:hover,.remove-line:focus-visible{animation:trash-pop .45s ease-in-out infinite alternate;background:#ffe0e4}@keyframes trash-breathe{50%{transform:scale(1.1);box-shadow:0 0 0 5px rgba(200,61,76,.12)}}@keyframes trash-pop{to{transform:scale(1.12) rotate(-5deg);box-shadow:0 0 0 6px rgba(200,61,76,.15)}}.sheet-primary:hover,.outline-action:hover,.cart-bar button:hover,.logout-button:hover{transform:translateY(-2px);filter:brightness(1.03)}.quantity-editor button:hover,.cart-quantity-editor button:hover,.pay-option:hover{transform:translateY(-1px);border-color:var(--primary);box-shadow:0 5px 13px rgba(79,70,229,.12)}}
.code-lookup{display:flex;gap:.55rem;align-items:stretch}.code-lookup input{min-width:0;flex:1}.lookup-button{min-height:44px;padding:0 .82rem;border:0;border-radius:12px;background:var(--accent);color:#fff;font-weight:800;white-space:nowrap}.lookup-button:disabled{opacity:.68}.field-hint{display:block;margin-top:.42rem;color:var(--muted);font-size:.78rem;line-height:1.35}@media(max-width:380px){.code-lookup{flex-direction:column}.lookup-button{width:100%}}

.reference-name-search{padding-top:.25rem;border-top:1px solid var(--border,#e5e7eb)}.reference-results{display:grid;gap:.45rem;margin-top:.65rem}.reference-result{display:flex;align-items:center;justify-content:space-between;gap:.8rem;width:100%;min-height:52px;padding:.65rem .75rem;text-align:left;border:1px solid var(--border,#e5e7eb);border-radius:.8rem;background:var(--surface,#fff);color:inherit;cursor:pointer}.reference-result:hover,.reference-result:focus-visible{border-color:var(--primary,#2563eb);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary,#2563eb) 16%,transparent)}.reference-result span{display:grid;gap:.1rem;min-width:0}.reference-result strong,.reference-result small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reference-result small{color:var(--muted,#64748b)}
