@charset "UTF-8";
:root{font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#19392f;background:#f3f6f3;font-size:16px;--green:#183c32;--muted:#607369;--line:#dde5de;--orange:#f4ab55}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e5a041;outline-offset:3px}a{color:inherit}button{border:0}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.9rem,4vw,2.7rem);font-weight:650;line-height:1.1;letter-spacing:-.055em}h2{font-size:1.25rem;font-weight:650;letter-spacing:-.025em}h3{font-size:1rem;font-weight:600;line-height:1.35}p{line-height:1.6}.muted{color:var(--muted)}.small{font-size:.875rem;line-height:1.5}.eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase}.loading{display:grid;min-height:70vh;place-items:center;color:var(--muted)}
.shell{max-width:1120px;padding:0 40px 65px;margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;padding:28px 0;border-bottom:1px solid var(--line);gap:16px}.brand{display:flex;align-items:center;gap:12px;font-weight:650;letter-spacing:-.025em}.brandmark{flex-shrink:0;display:grid;place-items:center;background:var(--green);color:white;width:44px;height:44px;border-radius:14px}.brandmark svg{width:25px;height:25px}.brand span span{display:block;color:var(--muted);font-size:.75rem;font-weight:450;letter-spacing:.02em;margin-top:3px}.toolbar{display:flex;gap:10px;align-items:center}.icon-btn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border-radius:12px;background:transparent;color:var(--muted);text-decoration:none}.icon-btn:hover{background:#e8eee8}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 18px;border-radius:12px;background:var(--green);color:#fff;font-size:.875rem;font-weight:600;text-decoration:none;line-height:1.4}.btn:hover{background:#285347}.btn.secondary{background:#edf2ed;color:var(--green);border:1px solid var(--line)}.btn.secondary:hover{background:#e2ebe2}.btn.light{background:#fff;color:var(--green)}.btn.danger{background:#fff2ee;color:#a13928}.btn svg{width:18px;height:18px}.text-btn{background:transparent;color:var(--green);font-size:.875rem;font-weight:600;min-height:44px;padding:10px 0}.text-btn:hover{text-decoration:underline}
.intro{display:flex;justify-content:space-between;align-items:end;gap:24px;padding:35px 0 24px}.intro .eyebrow{color:var(--muted);margin-bottom:12px}.intro p{margin-top:12px;color:var(--muted);font-size:.9375rem}.date-tag{font-size:.875rem;white-space:nowrap;display:flex;align-items:center;gap:8px;color:var(--muted);padding-bottom:3px}.date-tag svg{width:17px;height:17px}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:26px}.stat{padding:18px 20px;display:flex;gap:14px;align-items:center;border:1px solid var(--line);border-radius:16px;background:#fff}.stat strong{display:block;font-size:1.6rem;letter-spacing:-.05em;line-height:1.2}.stat span{font-size:.8125rem;color:var(--muted)}.stat-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#f1f5ef;color:#627854}.nav{display:flex;gap:4px;padding:5px;width:max-content;background:#e8eee7;border-radius:14px;margin-bottom:28px}.nav button{display:flex;align-items:center;justify-content:center;gap:8px;background:transparent;color:var(--muted);padding:11px 18px;border-radius:10px;font-size:.875rem;font-weight:550;min-height:44px}.nav button svg{width:18px;height:18px}.nav button.active{background:#fff;color:var(--green);box-shadow:0 1px 5px #183c3210}.badge-count{display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:6px;background:#e8eee7;font-size:.75rem}
.section-top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.section-top p{margin-top:5px}.filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}.filter{display:flex;align-items:center;gap:7px;min-height:40px;padding:9px 14px;border:1px solid var(--line);border-radius:100px;background:#fff;color:var(--muted);font-size:.875rem}.filter.active{background:var(--green);color:white;border-color:var(--green)}.store-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#c94745;flex-shrink:0}.store-dot.mercadona{background:#25845d}.store-dot.pingo-doce{background:#96a239}.store-label{display:inline-flex;gap:6px;align-items:center;font-size:.75rem;color:var(--muted)}.store-label .store-dot{width:6px;height:6px}
.welcome{display:grid;grid-template-columns:1.4fr 1fr;gap:28px;background:var(--green);color:white;padding:30px;border-radius:20px;margin-bottom:22px;position:relative;overflow:hidden}.welcome h2{font-size:1.55rem;line-height:1.25;max-width:400px;margin-top:10px}.welcome p{color:#c4d6ca;margin:12px 0 20px;font-size:.9375rem;max-width:450px}.welcome .eyebrow{color:#bbd1bc}.welcome-art{display:flex;justify-content:center;align-items:center}.basket-art{width:155px;height:155px;border:1px solid #6c907680;border-radius:50%;display:grid;place-items:center;background:#284e3d}.basket-art svg{width:75px;height:75px;stroke:#e6c997;stroke-width:1}.tip{display:flex;gap:10px;padding:15px 18px;background:#eaf0e5;border:1px solid #dfe8d9;border-radius:14px;font-size:.875rem;color:#486047;margin-top:20px;line-height:1.6}.tip svg{margin-top:2px;width:18px;height:18px;flex-shrink:0}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}.product-head{display:flex;gap:12px;align-items:start}.product-symbol{width:45px;height:45px;display:grid;place-items:center;background:#f0f4ed;border-radius:12px;font-size:1.4rem;flex-shrink:0}.product-title{flex:1;min-width:0}.product-title h3{margin:4px 0 6px;overflow-wrap:anywhere}.product-title .small{color:var(--muted)}.edit-btn{margin:-8px -9px 0 0}.card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #edf1ec;padding-top:14px;margin-top:17px}.card-footer .btn{min-height:40px;padding:8px 13px}.confidence{font-size:.75rem;color:#64755f;background:#edf3e9;border-radius:6px;padding:4px 7px;white-space:nowrap}.reason{font-size:.875rem;color:var(--muted);margin:14px 0 0;line-height:1.6}.due-label{font-size:.8125rem;color:#a25723}.tag{display:inline-block;font-size:.75rem;background:#f1f4ef;border-radius:5px;padding:3px 6px;margin-top:3px;color:var(--muted)}
.store-section{margin:26px 0 30px}.store-heading{display:flex;align-items:center;gap:9px;margin-bottom:12px}.store-heading h2{font-size:1.0625rem}.store-heading span.count{font-size:.8125rem;color:var(--muted)}.list-box{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}.list-row{display:flex;align-items:center;padding:17px 18px;gap:14px}.list-row+.list-row{border-top:1px solid #edf1ec}.list-row .product-symbol{width:38px;height:38px;font-size:1.2rem}.list-info{flex:1;min-width:0}.list-info h3{overflow-wrap:anywhere}.qty-btn{font-size:.875rem;color:var(--muted);background:#f2f5ef;border-radius:7px;padding:5px 8px;min-height:32px;margin-top:7px}.check-btn{width:44px;height:44px;display:grid;place-items:center;border:1.5px solid #c8d6c6;background:white;color:#62875b;border-radius:50%;flex-shrink:0}.check-btn:hover{background:#eaf2e6;border-color:#6e9265}.list-row .icon-btn{min-width:36px}.list-row .icon-btn svg{width:18px}
.empty{background:#fff;border:1px dashed #cbd9c9;border-radius:17px;text-align:center;padding:40px 25px}.empty .empty-icon{display:grid;place-items:center;background:#edf3e8;border-radius:16px;width:55px;height:55px;margin:0 auto 15px;color:#72936b}.empty p{color:var(--muted);font-size:.9375rem;max-width:420px;margin:10px auto 18px}.upcoming{margin-top:28px}.upcoming h2{margin-bottom:12px}.upcoming-row{display:flex;gap:16px;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line);font-size:.875rem}.upcoming-row span{color:var(--muted)}
.search{display:flex;align-items:center;gap:12px;padding:0 15px;background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:18px}.search svg{color:#748b77;width:20px}.search input{padding:14px 0;width:100%;border:0;outline:0;background:transparent;min-width:0;color:var(--green)}.search input::placeholder{color:#859187}.search:focus-within{outline:2px solid #98b095;outline-offset:1px}.history-date{font-size:.75rem;letter-spacing:.07em;color:var(--muted);text-transform:uppercase;font-weight:650;margin:24px 0 12px}.history-row{display:flex;align-items:center;gap:12px;padding:16px 18px}.history-row+.history-row{border-top:1px solid #edf1ec}.history-row .list-info .small{margin-top:4px;color:var(--muted)}.voided{opacity:.55}.voided h3{text-decoration:line-through}.history-row .text-btn{padding-left:12px;font-size:.8125rem}.footer-note{text-align:center;font-size:.75rem;color:#7a8a7a;padding:25px 0 0}.offline{background:#fff1d4;color:#795a23;border:1px solid #ecd7aa;padding:12px 16px;border-radius:12px;margin:15px 0;font-size:.875rem}
dialog{border:1px solid var(--line);border-radius:22px;padding:0;width:min(560px,calc(100% - 28px));max-height:calc(100dvh - 35px);color:var(--green);box-shadow:0 24px 100px #152b3250}dialog::backdrop{background:#122c2860;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:1}.dialog-head h2{font-size:1.2rem}.dialog-body{padding:22px 24px 24px}.dialog-body>p{margin-bottom:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 14px}.field{display:flex;flex-direction:column;gap:7px;font-size:.875rem;font-weight:550}.field.full{grid-column:1/-1}.field input,.field select,.field textarea{min-height:46px;border:1px solid #cbd7ca;background:#fff;border-radius:10px;padding:11px 12px;color:var(--green);width:100%;min-width:0;font-size:1rem;font-weight:400}.field textarea{resize:vertical;min-height:75px}.field select{appearance:none;padding-right:35px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23536b58' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}.field small{color:var(--muted);font-weight:400;font-size:.8125rem;line-height:1.5}.checkbox{display:flex;flex-direction:row;align-items:center;gap:10px;font-size:.875rem;line-height:1.5}.checkbox input{accent-color:var(--green);width:20px;height:20px;flex-shrink:0}.dialog-actions{display:flex;justify-content:end;align-items:center;gap:10px;margin-top:24px}.dialog-actions .btn{flex:1}.form-error{color:#a03928;background:#fff0eb;padding:10px 13px;border-radius:9px;font-size:.875rem;margin-top:15px}.form-error:empty{display:none}.dialog-product{display:flex;gap:14px;align-items:center;background:#f2f6ef;padding:15px;border-radius:12px;margin-bottom:22px}.dialog-product h3{margin-bottom:5px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--green);color:white;padding:13px 20px;border-radius:12px;max-width:calc(100% - 32px);width:max-content;box-shadow:0 4px 30px #183c3230;font-size:.875rem;z-index:100;opacity:0;pointer-events:none;transition:opacity .15s}#toast.show{opacity:1}.login{min-height:100dvh;display:grid;place-items:center;padding:32px 22px}.login-card{width:100%;max-width:440px;text-align:center}.login-card .brandmark{width:70px;height:70px;border-radius:23px;margin:0 auto 25px}.login-card .brandmark svg{width:38px;height:38px}.login-card h1{font-size:2.8rem;max-width:350px;margin:auto}.login-card>p{color:var(--muted);margin:20px 0 25px;font-size:1rem}.login-stores{display:flex;gap:18px;justify-content:center;margin:25px 0 32px}.login-card .btn{width:100%}.login-card .install-note{font-size:.8125rem;border-top:1px solid var(--line);padding-top:24px;margin-top:28px;color:var(--muted)}.login-error{font-size:.875rem;padding:13px;background:#fff0eb;color:#9b3929;border-radius:12px;margin:16px 0}
@media(min-width:1000px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.shell{padding:0 20px calc(105px + env(safe-area-inset-bottom))}.topbar{padding:18px 0}.brand{font-size:.9375rem}.brandmark{width:39px;height:39px;border-radius:12px}.toolbar{gap:4px}.toolbar .btn{padding:10px 13px}.toolbar .export{display:none}.intro{padding:27px 0 22px}.intro p{font-size:.875rem}.date-tag{display:none}.stats{gap:8px;margin-bottom:24px}.stat{padding:14px 11px;gap:0;display:block;border-radius:13px}.stat strong{font-size:1.6rem}.stat span{font-size:.75rem}.stat-icon{display:none}.nav{position:fixed;bottom:0;left:0;right:0;margin:0;width:100%;border-radius:0;background:#ffffffed;backdrop-filter:blur(14px);border-top:1px solid var(--line);z-index:5;justify-content:space-around;padding:7px 10px calc(7px + env(safe-area-inset-bottom))}.nav button{flex-direction:column;gap:5px;font-size:.875rem;padding:7px 6px;min-width:65px;background:none;border-radius:10px}.nav button svg{width:22px;height:22px}.nav button.active{box-shadow:none;background:#edf3e8}.badge-count{display:none}.grid{grid-template-columns:1fr}.section-top{align-items:start}.section-top .btn{padding:10px 13px;flex-shrink:0}.section-top h2{font-size:1.2rem}.filters{gap:6px;flex-wrap:nowrap;overflow-x:auto;margin-left:-20px;margin-right:-20px;padding:0 20px 5px;scrollbar-width:none}.filter{flex-shrink:0;padding:9px 12px;font-size:.8125rem}.welcome{grid-template-columns:1fr;padding:24px;gap:0;border-radius:17px}.welcome-art{display:none}.welcome h2{font-size:1.45rem}.welcome p{font-size:.875rem}.welcome .btn{font-size:.8125rem}.card{padding:18px}.list-row{gap:10px;padding:15px 13px}.list-row .product-symbol{display:none}.list-row .icon-btn{min-width:30px}.list-row h3{font-size:.9375rem}.history-row{padding:15px 13px}.history-row h3{font-size:.9375rem}.history-row .product-symbol{display:none}.history-row .text-btn{font-size:.75rem}.dialog-head{padding:15px 18px}.dialog-body{padding:20px 18px}.form-grid{gap:16px 12px}#toast{bottom:calc(90px + env(safe-area-inset-bottom))}.empty{padding:30px 20px}.footer-note{line-height:1.6}.upcoming-row{gap:10px}.login-stores{gap:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.login-card form{text-align:left}
