:root{color:#172035;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--navy:#172035;--muted:#7b8497;--line:#e7eaf0;--surface:#fff;--blue:#4269e1;--blue-dark:#3153bb;--blue-soft:#eef2ff;--red:#da4e58;--red-soft:#fff0f1;--orange:#f08b3f;--orange-soft:#fff5eb;--yellow:#d8a324;--yellow-soft:#fff8df;--green:#2ba36a;--green-soft:#eaf8f1;--shadow:0 12px 32px #17203512;background:#f3f5f9;font-family:Inter,ui-rounded,-apple-system,BlinkMacSystemFont,SF Pro Display,SF Pro Text,system-ui,sans-serif}*{box-sizing:border-box}html{background:#f3f5f9;min-height:100%}body{background:#f3f5f9;min-width:320px;min-height:100dvh;margin:0}button,input,select,textarea{font:inherit}button{color:inherit}button,[role=button]{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:2px;outline:3px solid #4269e140}h1,h2,h3,p{margin:0}.app-shell{min-height:100dvh;padding-bottom:calc(84px + env(safe-area-inset-bottom))}.topbar{width:min(100%,1080px);min-height:112px;padding:calc(22px + env(safe-area-inset-top)) 22px 22px;align-items:center;gap:14px;margin:0 auto;display:flex}.brand-mark{color:#fff;letter-spacing:-.02em;background:linear-gradient(145deg,#5679e6,#3155c2);border-radius:15px;flex:none;place-items:center;width:46px;height:46px;font-size:13px;font-weight:800;display:grid;box-shadow:0 8px 20px #4269e13d}.title-wrap{flex:1;min-width:0}.title-wrap h1{letter-spacing:-.04em;font-size:clamp(25px,5vw,34px);line-height:1.08}.title-wrap p{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:13px;overflow:hidden}.local-badge{color:#526078;background:#ffffffbf;border:1px solid #dde4fa;border-radius:999px;align-items:center;gap:7px;padding:8px 12px;font-size:12px;font-weight:700;display:none}.local-badge span{background:var(--green);width:7px;height:7px;box-shadow:0 0 0 4px var(--green-soft);border-radius:50%}.main-content{width:min(100%,1080px);margin:0 auto;padding:0 16px 36px}.welcome-card{color:#fff;background:radial-gradient(circle at 94% 0,#ffffff2e 0 15%,#0000 16%),radial-gradient(circle at 84% 20%,#ffffff1a 0 27%,#0000 28%),linear-gradient(135deg,#496ddc 0%,#294da7 100%);border-radius:26px;flex-direction:column;justify-content:space-between;align-items:flex-start;gap:24px;min-height:184px;padding:27px 24px;display:flex;position:relative;overflow:hidden;box-shadow:0 20px 40px #294da72e}.eyebrow{color:#8791a6;letter-spacing:.13em;margin-bottom:8px;font-size:10px;font-weight:800;display:block}.welcome-card .eyebrow{color:#ffffffb3}.welcome-card h2{letter-spacing:-.035em;max-width:360px;font-size:25px;line-height:1.12}.welcome-card p{color:#ffffffb8;max-width:440px;margin-top:8px;font-size:13px;line-height:1.5}.button{cursor:pointer;border:0;border-radius:13px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:11px 16px;font-size:13px;font-weight:750;transition:transform .15s,opacity .15s,background .15s;display:inline-flex}.button:active{transform:scale(.98)}.button:disabled{cursor:wait;opacity:.6}.button-light{color:#24458f;background:#fff;box-shadow:0 6px 18px #12255233}.button-primary{color:#fff;background:var(--blue);box-shadow:0 8px 18px #4269e133}.button-secondary{color:#4d576c;background:#eef0f4}.button-danger,.button-danger-text{color:#fff;background:var(--red)}.button-danger-text{color:var(--red);box-shadow:none;background:0 0}.stats-grid{grid-template-columns:repeat(2,1fr);gap:12px;margin-top:16px;display:grid}.stat-card{text-align:left;background:var(--surface);cursor:pointer;border:1px solid #e2e6eecc;border-radius:21px;grid-template-rows:auto auto;grid-template-columns:auto 1fr;align-items:center;gap:5px 11px;min-width:0;padding:17px;display:grid;box-shadow:0 7px 22px #1720350a}.stat-card:active{transform:scale(.99)}.stat-icon{border-radius:11px;grid-row:1/3;place-items:center;width:35px;height:35px;font-size:11px;font-weight:900;display:grid}.stat-blue{color:#3b62d3;background:#edf2ff}.stat-purple{color:#7a58c9;background:#f3eeff}.stat-orange{color:#d9772b;background:#fff3e8}.stat-red{color:#ce4650;background:#ffedef}.stat-card strong{color:var(--navy);letter-spacing:-.04em;align-self:end;font-size:23px;line-height:1}.stat-card>span:last-child{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:650;overflow:hidden}.section-block{margin-top:32px}.section-heading{justify-content:space-between;align-items:end;gap:16px;margin:0 4px 12px;display:flex}.section-heading h2{letter-spacing:-.03em;font-size:20px}.text-button{color:var(--blue);cursor:pointer;background:0 0;border:0;padding:8px 0;font-size:12px;font-weight:750}.list-card{background:var(--surface);box-shadow:var(--shadow);border:1px solid #e2e6eee6;border-radius:22px;overflow:hidden}.product-row,.market-row{align-items:center;gap:13px;min-height:82px;padding:15px 16px;display:flex}.product-row{align-items:flex-start;gap:12px;min-height:0;padding:14px 15px}.market-row{min-height:74px;padding:12px 15px}.product-row+.product-row,.market-row+.market-row{border-top:1px solid var(--line)}.product-avatar,.market-avatar{color:#536077;background:#f0f2f6;border-radius:14px;flex:none;place-items:center;width:43px;height:43px;font-size:15px;font-weight:800;display:grid}.product-avatar{border-radius:12px;width:38px;height:38px;margin-top:1px;font-size:13px}.product-avatar.tone-expired,.product-avatar.tone-seven{color:var(--red);background:var(--red-soft)}.product-avatar.tone-thirty{color:#c18118;background:var(--yellow-soft)}.product-avatar.tone-safe{color:var(--green);background:var(--green-soft)}.product-info,.market-info{flex:1;min-width:0}.product-name-line{justify-content:space-between;align-items:center;gap:8px;display:flex}.product-name-line .more-button{width:30px;height:28px;margin:-4px -3px -2px 0}.product-info h3,.market-info h3{letter-spacing:-.01em;text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.market-info p{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:11px;overflow:hidden}.product-meta-grid{margin-top:8px}.product-meta-grid>div{min-width:0}.product-meta-grid>div+div{border-top:1px solid #f0f2f6;margin-top:7px;padding-top:7px}.product-meta-grid .product-meta-label{color:#8d96a7;letter-spacing:0;text-transform:none;align-items:center;gap:6px;font-size:10px;font-weight:650;line-height:1.3;display:flex}.product-meta-grid .product-field-icon{color:#8e98aa;stroke-width:1.8px;flex:0 0 14px;width:14px;height:14px}.product-meta-grid strong{overflow-wrap:anywhere;color:#4f596e;margin-top:3px;padding-left:20px;font-size:12px;font-weight:700;line-height:1.4;display:block}.product-meta-grid .remaining-danger strong{color:var(--red)}.product-meta-grid .remaining-attention strong{color:#b67f12}.product-meta-grid .remaining-success strong{color:var(--green)}.status-pill{border-radius:999px;align-items:center;width:fit-content;padding:4px 8px;font-size:10px;font-weight:800;line-height:1;display:inline-flex}.status-blue{color:#365bc4;background:#edf2ff}.status-purple{color:#7050ba;background:#f2edff}.status-orange{color:#bd6928;background:#fff1e5}.status-green{color:#238456;background:#e8f7ef}.status-grey{color:#687286;background:#eef0f4}.notes-meta strong,.control-note-meta strong{white-space:pre-line}.checked-button,.return-button,.history-button{color:#3a5fca;background:var(--blue-soft);cursor:pointer;border:1px solid #dce4ff;border-radius:10px;justify-content:center;align-items:center;gap:6px;min-height:30px;padding:6px 10px;font-size:10px;font-weight:800;transition:transform .15s,opacity .15s,background .15s;display:inline-flex}.checked-button svg,.return-button svg,.history-button svg{width:13px;height:13px}.checked-button:hover{background:#e4eaff}.checked-button-refresh{color:#626d81;background:#f4f5f8;border-color:#e2e6ed}.checked-button-refresh:hover{background:#eceef3}.checked-button:active{transform:scale(.98)}.checked-button:disabled{cursor:wait;opacity:.6}.return-button{color:#b46327;background:#fff6ed;border-color:#f2dfcd}.return-button:hover{background:#ffeedf}.history-button{color:#626d81;cursor:pointer;background:#f4f5f8;border:1px solid #e2e6ed;border-radius:10px;align-items:center;gap:6px;min-height:30px;padding:6px 10px;font-size:10px;font-weight:800;display:inline-flex}.product-card-actions{border-top:1px solid #eef0f4;margin-top:9px;padding-top:8px}.card-actions-label{color:#8d96a7;margin-bottom:6px;font-size:10px;font-weight:650;display:block}.product-card-actions>div{flex-wrap:wrap;gap:7px;display:flex}.control-date-field input[aria-invalid=true],.return-date-field input[aria-invalid=true],.return-quantity-field input[aria-invalid=true]{border-color:var(--red);box-shadow:0 0 0 3px #da4e581a}.field-error{min-height:16px;color:var(--red);font-size:10px;font-weight:700;line-height:1.35}.check-form-actions .button{flex:1}.return-availability{color:#6d7688;background:#f4f6f9;border-radius:12px;margin-bottom:18px;padding:11px 13px;font-size:11px}.return-availability strong{color:var(--navy)}.market-address{color:#687286;font-weight:650}.expiry-line{color:#81899a;align-items:center;gap:5px;margin-top:7px;font-size:10px;font-weight:650;display:flex}.status-dot{background:#aab1be;border-radius:50%;flex:none;width:7px;height:7px}.status-dot.tone-expired{background:var(--red);box-shadow:0 0 0 3px var(--red-soft)}.status-dot.tone-seven{background:var(--orange);box-shadow:0 0 0 3px var(--orange-soft)}.status-dot.tone-thirty{background:var(--yellow);box-shadow:0 0 0 3px var(--yellow-soft)}.status-dot.tone-safe{background:var(--green);box-shadow:0 0 0 3px var(--green-soft)}.more-button,.close-button{color:#8790a2;cursor:pointer;letter-spacing:.08em;background:0 0;border:0;border-radius:12px;flex:none;width:38px;height:38px;font-size:14px;font-weight:800}.more-button:hover,.close-button:hover{background:#f1f3f7}.empty-state{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:220px;padding:34px 24px;display:flex}.empty-mark{width:44px;height:44px;color:var(--blue);background:var(--blue-soft);border-radius:14px;place-items:center;font-size:24px;font-weight:500;display:grid}.empty-state h3{margin-top:13px;font-size:15px}.empty-state p{max-width:300px;color:var(--muted);margin-top:6px;font-size:12px;line-height:1.5}.page-actions{justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px;display:flex}.page-actions>p,.result-count{color:var(--muted);font-size:12px;font-weight:600}.product-actions{align-items:stretch}.filter-bar{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px;display:grid}.delivery-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))}.filter-bar label{gap:5px;min-width:0;display:grid}.filter-bar label>span{color:#818b9d;font-size:10px;font-weight:700}.filter-bar select{color:#4f596d;background:#fff;border:1px solid #e1e5ec;border-radius:12px;width:100%;min-width:0;height:40px;padding:0 9px;font-size:11px;font-weight:650;box-shadow:0 4px 14px #17203509}.search-field{color:#8590a2;background:#fff;border:1px solid #e1e5ec;border-radius:14px;flex:1;align-items:center;gap:9px;min-width:0;height:46px;padding:0 13px;display:flex;box-shadow:0 5px 16px #1720350a}.search-field input{width:100%;min-width:0;color:var(--navy);background:0 0;border:0;outline:0;font-size:13px}.search-field>svg{flex:0 0 17px;width:17px;height:17px}.button>svg{width:15px;height:15px}.search-field input::placeholder{color:#9ca4b3}.search-field button{color:#fff;cursor:pointer;background:#b5bbc6;border:0;border-radius:50%;width:28px;height:28px}.result-count{margin:0 3px 10px}.expiring-search{max-width:540px;margin-bottom:22px}.group-stack{gap:16px;display:grid}.group-heading{cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:center;width:100%;min-height:42px;padding:4px;display:flex}.group-title,.group-meta{align-items:center;gap:10px;font-size:13px;font-weight:800;display:flex}.group-meta{color:var(--muted);font-size:12px;font-weight:650}.chevron{font-size:17px;transition:transform .16s;display:inline-block}.chevron.expanded{transform:rotate(180deg)}.compact-list{box-shadow:0 7px 22px #1720350a}.group-empty{color:var(--muted);text-align:center;padding:24px;font-size:12px}.bottom-nav{z-index:20;height:calc(68px + env(safe-area-inset-bottom));padding:7px max(10px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(10px, env(safe-area-inset-right));-webkit-backdrop-filter:blur(20px);background:#ffffffeb;border-top:1px solid #d8dde7db;grid-template-columns:repeat(6,1fr);display:grid;position:fixed;inset:auto 0 0;box-shadow:0 -10px 30px #1720350d}.nav-item{color:#9aa2b1;cursor:pointer;background:0 0;border:0;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-width:0;font-size:8px;font-weight:700;display:flex}.delivery-lot{color:var(--muted);margin-top:3px;font-size:10px;font-weight:650}.delivery-row .product-name-line{align-items:flex-start}.delivery-row .product-name-line .status-pill{flex:none}.difference-warning{color:#b67f12!important}.difference-clear{color:var(--green)!important}.form-intro{color:var(--muted);margin:-8px 0 18px;font-size:11px;line-height:1.5}.barcode-match{color:#4c5e8c;background:#f3f6ff;border:1px solid #dfe5f8;border-radius:13px;gap:4px;padding:11px 13px;font-size:11px;display:grid}.barcode-match[hidden]{display:none}.barcode-match strong,.barcode-match span{line-height:1.4}.barcode-match button{width:fit-content;color:var(--blue);cursor:pointer;background:0 0;border:0;padding:5px 0 0;font-size:11px;font-weight:800}.barcode-match.barcode-warning{color:#9b5b26;background:#fff7ef;border-color:#f2d6bd}.selected-delivery-details{background:#f7f8fa;border:1px solid #e1e5ec;border-radius:15px;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:12px 13px;display:grid}.selected-delivery-details[hidden]{display:none}.selected-delivery-details div{gap:3px;min-width:0;display:grid}.selected-delivery-details span{color:#8d96a7;font-size:9px;font-weight:650}.selected-delivery-details strong{overflow-wrap:anywhere;color:#4f596e;font-size:11px}.calculation-preview{color:#4c5e8c;background:#f3f6ff;border:1px solid #dfe5f8;border-radius:13px;padding:12px 13px;font-size:12px;line-height:1.5}.calculation-preview strong{color:#314fa6}.calculation-preview.calculation-negative{color:var(--red);background:var(--red-soft);border-color:#f2cdd0}.calculation-preview.calculation-negative strong{color:var(--red)}.form-error{margin-top:10px;display:block}.history-list{gap:10px;display:grid}.history-list article{border:1px solid var(--line);background:#fafbfc;border-radius:15px;padding:13px}.history-list article>div{justify-content:space-between;align-items:center;gap:12px;display:flex}.history-list article strong{font-size:13px}.history-list article span,.history-list article p,.history-list article small{color:var(--muted);font-size:10px;line-height:1.5}.history-list article p{color:#596478;margin-top:7px;font-weight:650}.history-list article small{white-space:pre-line;margin-top:6px;display:block}.nav-item>svg{stroke-width:1.8px;width:20px;height:20px}.nav-item.active{color:var(--blue)}.dialog-backdrop{z-index:50;padding-top:max(20px, env(safe-area-inset-top));-webkit-backdrop-filter:blur(3px);background:#141b2a6b;justify-content:center;align-items:flex-end;animation:.16s both fade-in;display:flex;position:fixed;inset:0}.sheet{width:min(100%,620px);max-height:calc(100dvh - 24px);padding:10px 20px calc(22px + env(safe-area-inset-bottom));background:#fff;border-radius:27px 27px 0 0;animation:.2s cubic-bezier(.2,.7,.2,1) both sheet-up;overflow-y:auto;box-shadow:0 -16px 50px #141b2a2b}.sheet-handle{background:#d8dce3;border-radius:99px;width:38px;height:4px;margin:0 auto 16px}.sheet-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px;display:flex}.sheet-heading h2,.confirm-sheet h2{letter-spacing:-.035em;font-size:22px}.close-button{color:#667085;letter-spacing:0;background:#f1f3f6;font-size:23px;font-weight:400}.field-grid{gap:16px;display:grid}.field{gap:7px;margin-bottom:16px;display:grid}.field-grid .field{margin-bottom:0}.field>span{color:#5b6578;font-size:11px;font-weight:750}.field em{color:#9aa2b0;font-style:normal;font-weight:500}.field input,.field select,.field textarea{width:100%;color:var(--navy);background:#fafbfc;border:1px solid #dde1e9;border-radius:13px;padding:12px 13px;font-size:14px;transition:border-color .15s,box-shadow .15s}.field input,.field select{min-height:47px}.field textarea{resize:vertical;line-height:1.45}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--blue);background:#fff;outline:0;box-shadow:0 0 0 3px #4269e11a}.form-actions,.confirm-actions{justify-content:space-between;align-items:center;gap:12px;margin-top:24px;display:flex}.confirm-sheet{text-align:center;padding:18px 3px 5px}.danger-mark{width:50px;height:50px;color:var(--red);background:var(--red-soft);border-radius:16px;place-items:center;margin:0 auto 15px;font-size:24px;font-weight:800;display:grid}.confirm-sheet p{max-width:380px;color:var(--muted);margin:9px auto 0;font-size:13px;line-height:1.55}.confirm-actions{justify-content:center}.confirm-actions .button{flex:1}.toast-region{z-index:80;inset:auto 16px calc(82px + env(safe-area-inset-bottom));pointer-events:none;place-items:center;display:grid;position:fixed}.toast{color:#fff;background:#172035f0;border-radius:999px;padding:11px 16px;font-size:12px;font-weight:700;animation:.18s both toast-in;box-shadow:0 10px 28px #17203538}@keyframes fade-in{0%{opacity:0}}@keyframes sheet-up{0%{opacity:0;transform:translateY(24px)}}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}}@media (width>=640px){.local-badge{display:flex}.main-content{padding-inline:24px}.welcome-card{flex-direction:row;align-items:end;padding:32px}.stats-grid{grid-template-columns:repeat(4,1fr)}.delivery-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))}.stat-card{min-height:110px}.field-grid{grid-template-columns:repeat(2,1fr)}.field-wide{grid-column:1/-1}.sheet{border-radius:27px 27px 0 0;padding-inline:28px}}@media (width>=900px){.app-shell{padding-bottom:38px}.main-content{padding-inline:28px}.bottom-nav{border:1px solid #d8dde7e6;border-radius:19px;width:650px;height:60px;padding:5px;inset:22px auto auto 50%;transform:translate(-50%);box-shadow:0 10px 30px #17203517}.nav-item{flex-direction:row;gap:7px;font-size:11px}.nav-item>svg{width:17px;height:17px}.nav-item.active{background:var(--blue-soft)}.topbar{padding-top:105px}.dialog-backdrop{align-items:center;padding:24px}.sheet{border-radius:27px;max-height:calc(100dvh - 48px)}.toast-region{bottom:28px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
