:root{--brand:#e52222;--ink:#202833;--muted:#74808d;--line:#e5e9ed;--bg:#f4f6f8}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);padding:8px 14px;min-height:40px}button:hover{border-color:var(--brand);color:var(--brand)}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus,textarea:focus,select:focus{outline:2px solid #e5222266;outline-offset:2px}.primary{background:var(--brand);color:white;border-color:var(--brand)}.primary:hover{color:white;background:#bf2020}.quiet{background:transparent;border-color:transparent}.muted,small{color:var(--muted)}aside{width:236px;position:fixed;inset:0 auto 0 0;background:#17232e;color:white;padding:32px 22px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font-size:17px;font-weight:700;letter-spacing:.3px}.brand small{display:block;font-size:11px;font-weight:400;margin-top:2px;color:#9caab7}.brand-mark{width:42px;height:42px;border-radius:12px;background:var(--brand);display:grid;place-items:center;font-size:23px}nav{display:flex;flex-direction:column;gap:7px;margin-top:50px}nav button{text-align:left;color:#b4c1ce;background:transparent;border:none;padding:12px 16px}nav button.active{background:#ffffff12;color:white;border-left:3px solid #ef5454;border-radius:6px}nav button:hover{background:#ffffff0c;color:white}.aside-foot{margin-top:auto;font-size:12px;color:#7b8e9f;line-height:2}main{margin-left:236px;padding:34px 44px;max-width:1800px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px;gap:20px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted);font-weight:700}h1{font-size:26px;letter-spacing:-.5px;margin:6px 0}h2{font-size:24px;margin:0 0 18px}h3{font-size:18px;margin:0 0 20px}.account{display:flex;align-items:center;gap:12px;font-size:13px}.account select{max-width:120px}.notice{padding:12px 18px;border:1px solid #f0d6a4;border-radius:10px;background:#fff8e9;color:#815e24;font-size:13px;margin-bottom:24px}#status{min-height:24px;color:#ba2323;margin-bottom:8px}.login-panel{display:grid;grid-template-columns:1.2fr 1fr;gap:60px;padding:60px 30px;align-items:center}.login-panel h2{font-size:38px;line-height:1.45;margin-top:20px}.login-panel p{color:var(--muted)}.login-card,.panel{background:white;border:1px solid var(--line);border-radius:16px;padding:26px}.login-card{max-width:420px}.login-card form{display:grid;gap:14px}label{display:block;font-size:12px;font-weight:600;color:#586575;margin-bottom:12px}input,select,textarea{display:block;width:100%;border:1px solid #dfe4e8;border-radius:8px;background:white;padding:10px 12px;color:var(--ink);margin-top:6px}textarea{min-height:90px;resize:vertical}.demo-users{display:flex;gap:8px;flex-wrap:wrap}.demo-users button{font-size:12px;padding:6px 10px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.toolbar input{max-width:320px;margin:0}.toolbar .actions,.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:24px}.stat{padding:24px;background:white;border:1px solid var(--line);border-radius:14px}.stat .value{display:block;font-size:32px;font-weight:700;margin-top:10px}.stat .label{font-size:12px;color:var(--muted)}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;font-size:11px;font-weight:600;letter-spacing:.5px;color:#83909b;background:#fafbfc}th,td{padding:14px 16px;border-bottom:1px solid var(--line);vertical-align:middle}td button{font-size:12px;padding:5px 10px;min-height:32px}td .actions{min-width:130px}.table-wrap{overflow-x:auto;background:white;border:1px solid var(--line);border-radius:13px}.pill{display:inline-block;border-radius:20px;padding:3px 10px;font-size:11px;background:#eef1f4;color:#556573}.pill.good{background:#e8f5ef;color:#24865e}.pill.pending{background:#fff2d9;color:#96701e}.pill.bad{background:#fde9e9;color:#b84545}.empty{text-align:center;padding:64px 20px;color:var(--muted)}footer{padding-top:44px;color:#a7b0b9;font-size:11px}dialog{border:1px solid var(--line);border-radius:18px;width:min(920px,94vw);max-height:90vh;padding:26px;box-shadow:0 30px 80px #0003}dialog::backdrop{background:#14243377;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:24px}.modal-head h2{margin:0;font-size:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 20px}.full{grid-column:1/-1}.line-row{display:grid;grid-template-columns:1fr 150px 70px;gap:10px;align-items:center;margin-bottom:10px}.line-row input,.line-row select{margin:0}.section-label{font-size:14px;font-weight:700;padding:20px 0 12px}.cost-summary{padding:18px;background:#fff4f2;border:1px solid #f6d8d3;border-radius:10px;margin:18px 0;color:#ad3027}.detail-copy{white-space:pre-wrap}.detail-meta{font-size:12px;color:var(--muted);margin-bottom:20px}.kv{display:grid;grid-template-columns:180px 1fr;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.sensitive-note{color:#bc362d;font-size:12px;margin-bottom:16px}.checklist{display:flex;gap:16px;flex-wrap:wrap}.checklist label{display:flex;align-items:center;gap:8px;font-weight:400}.checklist input{width:auto;margin:0}.integration-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.integration-grid h3{margin-bottom:10px}[hidden]{display:none!important}@media(max-width:1000px){aside{width:190px;padding:24px 14px}main{margin-left:190px;padding:24px}.login-panel{gap:24px;padding:26px 0}.login-panel h2{font-size:28px}.account{flex-wrap:wrap;justify-content:flex-end}}@media(max-width:700px){aside{position:static;width:100%;padding:14px}.brand small,.aside-foot{display:none}nav{margin-top:14px;flex-direction:row;overflow-x:auto}nav button{white-space:nowrap;padding:8px 12px}main{margin:0;padding:18px}header{align-items:flex-start}h1{font-size:20px}.login-panel{grid-template-columns:1fr}.login-panel>div:first-child{display:none}.stats{gap:8px}.stat{padding:14px}.stat .value{font-size:22px}.form-grid,.integration-grid{grid-template-columns:1fr}.line-row{grid-template-columns:1fr 100px 50px}.kv{grid-template-columns:100px 1fr}}
.account select{width:120px;flex:0 0 120px}.account #account-label,.account button{white-space:nowrap;flex-shrink:0}.toolbar{flex-wrap:wrap}.toolbar h3{margin:0}.promotion-search{max-width:440px;margin:0 0 20px}#modal-status{color:#b42318}#excel-preview{max-height:45vh;overflow:auto;margin:18px 0}aside{overflow-y:auto}nav{margin-top:30px}@media(min-width:1001px){.account{flex-shrink:0}}
.listing-fields{border:1px solid #e5e9ed;border-radius:12px;padding:20px;margin:20px 0}.listing-fields legend{font-weight:700}.listing-fields input[type=number]{max-width:160px}.listing-fields .checklist label{background:#f5f6f8;border-radius:8px;padding:10px 14px}.listing-fields [hidden]{display:none!important}.listing-customer-name{max-width:760px;margin-top:20px}.listing-customer-name input{margin-top:8px}.taxonomy-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.taxonomy-nav .selected{background:#e52222;color:#fff;border-color:#e52222}
.listing-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"condition condition" "sections sort";gap:20px 28px;align-items:start}.listing-bottom>*{min-width:0}.listing-bottom .listing-sort{grid-area:sort;max-width:360px;padding-top:20px}.listing-bottom .listing-sort input{margin-top:14px}.listing-bottom .listing-condition{grid-area:condition;max-width:760px}.listing-bottom .listing-sections{grid-area:sections}.listing-bottom .checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(116px,max-content));gap:8px;max-width:100%}.listing-bottom .checklist label{min-width:0;white-space:nowrap}.listing-bottom .section-label{line-height:1.5}.listing-rule-note{margin:16px 0 0}.listing-fields input:disabled,.listing-fields select:disabled{cursor:not-allowed;opacity:.45}@media(max-width:1100px){.listing-bottom{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"condition condition" "sections sort";gap:16px;align-items:start}.listing-bottom .listing-sort{max-width:100%;padding-top:20px}.listing-bottom .listing-condition{max-width:100%}}@media(max-width:700px){.listing-bottom{grid-template-columns:minmax(0,1fr);grid-template-areas:"condition" "sections" "sort";gap:12px}.listing-bottom .listing-sort,.listing-bottom .listing-condition{max-width:none}.listing-bottom .listing-sort{padding-top:0}.listing-bottom .listing-sort input{margin-top:6px}}
.employee-role-help{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px;margin:14px 0;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:#fafbfc}.employee-role-help div{display:grid;gap:2px}.employee-role-help strong{font-size:12px;color:var(--ink)}.employee-role-help span{font-size:12px;color:var(--muted)}@media(max-width:700px){.employee-role-help{grid-template-columns:1fr}}
.approval-route-card{display:grid;grid-template-columns:minmax(120px,.6fr) 1fr;gap:8px 18px;margin:16px 0;padding:16px;border:1px solid #d9e4f3;border-radius:10px;background:#f6f9fd}.approval-route-card span{color:var(--muted)}.approval-route-card strong{color:var(--ink)}.approval-group-form h3{margin-bottom:8px}.group-save-status{margin-left:12px;color:#24865e;font-size:12px}
.banner-settings-row{display:grid;grid-template-columns:1fr 1fr;gap:4px 20px}.banner-settings-row>.full{grid-column:1/-1}.banner-master-preview{position:relative;width:min(100%,1120px);aspect-ratio:2240/768;margin-top:14px;border:1px solid var(--line);border-radius:10px;background:#eef1f4;overflow:hidden}.banner-master-preview[hidden]{display:none}.banner-image-preview{display:block;width:100%;height:100%;object-fit:cover;object-position:center}.banner-safe-frame{position:absolute;left:33.2589%;top:25%;width:33.4822%;height:50%;border:2px dashed #ff251c;display:flex;align-items:flex-start;justify-content:center;pointer-events:none}.banner-safe-frame b{margin-top:6px;padding:3px 7px;border-radius:5px;background:rgba(0,0,0,.72);color:#fff;font-size:12px;line-height:1.4;white-space:nowrap}.banner-media small{max-width:960px}@media(max-width:700px){.banner-settings-row{grid-template-columns:1fr}.banner-settings-row>.full{grid-column:auto}.banner-safe-frame b{font-size:10px}}
.material-import-panel{padding:24px;background:#fff;border:1px solid #e5e9ed;border-top:3px solid #e52222;border-radius:14px;margin-bottom:28px}.material-import-panel h3{margin:0 0 12px}.material-import-panel p{line-height:1.8}.material-import-panel .actions{margin:20px 0 12px}.material-import-panel button:disabled{cursor:not-allowed;opacity:.55}.material-import-permission{padding:12px 16px;background:#fff8e9;color:#815e24;border-radius:8px;font-size:13px}
.material-import-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.material-import-footer>p{flex:1;margin:0}.source-price-upload{flex:0 0 auto;min-width:128px}@media(max-width:700px){.material-import-footer{align-items:stretch;flex-direction:column}.source-price-upload{align-self:flex-end}}
.food-definition-panel{margin:0 0 28px;padding:24px;background:#fff;border:1px solid var(--line);border-top:3px solid var(--brand);border-radius:14px}.food-definition-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:18px}.food-definition-head h3{margin:4px 0 0}.food-definition-head p{max-width:520px;margin:0;color:var(--muted);font-size:13px}.food-definition-grid{display:grid;grid-template-columns:repeat(5,minmax(180px,1fr));gap:12px}.food-definition-item{min-width:0;padding:16px;border:1px solid var(--line);border-radius:11px;background:#fafbfc}.food-definition-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.food-definition-title strong{font-size:15px;color:var(--ink)}.food-definition-title code{padding:3px 7px;border-radius:6px;background:#eef2f5;color:#52606c;font-size:11px;white-space:nowrap}.food-definition-item dl,.food-definition-item dd{margin:0}.food-definition-item dl{display:grid;gap:10px}.food-definition-item dt{margin-bottom:2px;color:#7b8794;font-size:11px;font-weight:700}.food-definition-item dd{color:#34404c;font-size:12px;line-height:1.55}.food-definition-item dl>div:last-child dd{color:#b42318;font-weight:650}@media(max-width:1280px){.food-definition-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}.food-definition-item:last-child{grid-column:1/-1}}@media(max-width:700px){.food-definition-head{align-items:flex-start;flex-direction:column;gap:8px}.food-definition-grid{grid-template-columns:1fr}.food-definition-item:last-child{grid-column:auto}}

.workflow-tabs{display:flex;gap:8px;margin:16px 0;border-bottom:1px solid #ddd;padding-bottom:12px;flex-wrap:wrap}.workflow-tabs button{flex:1;min-width:100px}.workflow-tabs .selected{background:#ef3429;color:white}.wizard-section[hidden]{display:none}.workflow-path{background:#fff1ed;padding:12px;border-radius:8px;line-height:1.8}.wizard-controls{margin-top:16px;justify-content:space-between}.wizard-section .cost-summary{grid-column:1/-1;overflow:auto}.wizard-section .line-row{grid-template-columns:minmax(160px,1fr) 110px auto}.wizard-section .line-row select{max-width:100%}.wizard-section{padding:8px 0 20px}.wizard-section h3{margin:8px 0}
.media-upload{padding:14px;border:1px dashed #d8dee4;border-radius:10px;background:#fafbfc}.media-upload input[type=file]{background:#fff}.media-upload span,.media-upload small{display:block;margin-top:8px}.step-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:start;gap:12px;margin:12px 0}.step-number{padding-top:12px;font-weight:700;color:#586575}.step-row textarea{margin:0;min-height:76px}.step-row button{margin-top:0}
.product-cover-preview{width:min(100%,560px);aspect-ratio:16/9;margin-top:12px;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#f4f6f8}.product-cover-preview img{display:block;width:100%;height:100%;object-fit:cover}
.product-sop-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0;padding:16px;border:1px solid #f0d6d3;border-radius:10px;background:#fff8f6}.product-sop-entry strong{color:var(--ink)}.product-sop-entry p{margin:4px 0 0}.product-sop-entry button{flex:0 0 auto;min-height:44px}@media(max-width:600px){.product-sop-entry{align-items:stretch;flex-direction:column}}

.cost-card-guide{margin:0 0 22px;line-height:1.8}.usage-panel{margin:0 0 26px}.usage-panel h4{font-size:16px;margin:0 0 12px}.usage-table-head,.usage-row{display:grid;gap:10px;align-items:center}.product-usage .usage-table-head,.product-usage .usage-row{grid-template-columns:120px minmax(170px,2fr) minmax(145px,1.4fr) 100px 105px 66px}.food-usage .usage-table-head,.food-usage .usage-row{grid-template-columns:120px minmax(210px,2fr) 100px 105px 66px}.usage-table-head{padding:0 12px 8px;color:#7b8794;font-size:12px;text-align:center}.usage-row{margin:8px 0}.usage-cell{min-width:0;min-height:42px;display:flex;align-items:center;justify-content:center;padding:8px 10px;border:1px solid #dfe4e8;border-radius:9px;background:#fff;overflow-wrap:anywhere;text-align:center;font-variant-numeric:tabular-nums}.usage-name{padding:0}.usage-name input{height:40px;margin:0;border:0}.usage-name input:focus{outline-offset:1px}.usage-grams{gap:4px;padding:0 9px}.usage-grams input{min-width:0;height:40px;margin:0;padding:8px 2px;border:0;text-align:right}.usage-grams input:focus{outline-offset:1px}.usage-grams span{color:#697586}.usage-amount{font-size:14px;font-weight:650}.usage-remove{min-height:42px;padding:7px 10px;background:#ef3429;border-color:#ef3429;color:#fff}.usage-remove:hover{background:#c92720;color:#fff}.usage-add{margin-top:10px}.cost-card-status{padding:15px 18px;background:#fff2ef;border:1px solid #f3cac4;border-radius:10px;color:#c72d25;margin:12px 0}.cost-card-totals{margin-top:20px;border:1px solid #dfe4e8;border-radius:11px;overflow:hidden}.cost-total-row,.cost-sale-row{display:grid;grid-template-columns:1fr 140px 90px;align-items:center;min-height:52px;padding:0 18px;text-align:center}.cost-total-row output{color:#ef3429;font-size:16px;font-weight:750;font-variant-numeric:tabular-nums}.cost-total-row span,.cost-sale-row span{color:#697586}.cost-sale-row{margin:0;background:#ef3429;color:#fff}.cost-sale-row strong{color:#fff}.cost-sale-row input{height:44px;margin:0;padding:6px 10px;border-color:transparent;background:transparent;color:#fff;text-align:center;font-size:16px;font-weight:750;font-variant-numeric:tabular-nums}.cost-sale-row input::placeholder{color:#ffe1df}.cost-sale-row input:focus{outline:2px solid #fff;outline-offset:-3px}.cost-sale-row span{color:#fff}.wizard-section>.cost-card-totals{grid-column:1/-1}
.usage-name{position:relative;overflow:visible}.usage-suggestions{position:absolute;z-index:30;top:calc(100% + 6px);left:0;right:0;max-height:270px;padding:6px;overflow-y:auto;border:1px solid #d8dee6;border-radius:10px;background:#fff;box-shadow:0 14px 34px rgba(22,35,48,.18)}.usage-suggestions[hidden]{display:none}.usage-suggestion{display:block;width:100%;min-height:40px;padding:9px 11px;border:0;border-radius:7px;background:#fff;color:#17212b;text-align:left;font:inherit;line-height:1.4;cursor:pointer}.usage-suggestion:hover,.usage-suggestion.active{background:#f0f5fa;color:#17212b}.usage-suggestion:focus-visible{outline:2px solid #1677ff;outline-offset:-2px}
@media(max-width:760px){.usage-table-head{display:none}.product-usage .usage-row,.food-usage .usage-row{grid-template-columns:1fr 1fr;padding:12px;border:1px solid #e1e6eb;border-radius:12px}.usage-cell{display:grid;grid-template-columns:92px minmax(0,1fr);text-align:left}.usage-cell:before{content:attr(data-label);color:#7b8794;font-size:12px}.usage-name,.usage-grams{display:grid}.usage-name input{grid-column:2}.usage-suggestions{top:100%;grid-column:1/-1}.usage-remove{grid-column:2;justify-self:end}.cost-total-row,.cost-sale-row{grid-template-columns:1fr 100px 68px;padding:0 12px}.cost-sale-row input{font-size:15px}}
@media(max-width:700px){.step-row{grid-template-columns:1fr auto}.step-number{grid-column:1/-1;padding:0}.step-row textarea{grid-column:1/2}}
.filterable-table{position:relative}.filterable-table table{min-width:820px}.table-filter-row th{padding:8px 8px 10px;background:#f7f9fb}.table-filter-control{min-width:92px;height:36px;margin:0;padding:7px 9px;border-radius:7px;font-size:12px;font-weight:400;letter-spacing:0;color:var(--ink)}.table-filter-control::placeholder{color:#929da7}.table-filter-clear{width:100%;min-width:82px;min-height:36px;padding:6px 9px;font-size:12px;white-space:nowrap}.table-filter-result{position:sticky;left:0;width:max-content;margin:0;padding:8px 16px;color:var(--muted);font-size:12px}.table-filter-result.is-filtered{color:#b42318;font-weight:600}@media(max-width:700px){.table-filter-control{min-height:44px}.table-filter-clear{min-height:44px}}
.material-form-grid{grid-template-columns:1.05fr 1fr;column-gap:22px}.material-replacement{grid-column:1/-1;margin:18px 0 20px;padding:18px 16px 6px;border:1px solid #dfe4e8;border-radius:12px;background:#fafbfc}.material-replacement legend{padding:0 8px;font-size:14px;font-weight:700;color:var(--ink)}.material-replacement-note{margin:0 0 14px;padding:10px 12px;border-left:3px solid var(--brand);border-radius:6px;background:#fff3f1;color:#8f2f27;font-size:12px}.material-save{margin-top:4px}.required-hint{color:#b42318;font-weight:500}input[readonly]{background:#f5f7f9;color:#65717d}@media(max-width:700px){.material-form-grid{grid-template-columns:1fr}.material-replacement{padding:16px 12px 4px}}
.material-import-action{border:1px solid var(--line);color:var(--ink);font-weight:400;background:#fff;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.material-import-action:hover,.material-import-action:focus-visible{border-color:var(--brand);color:#fff;background:var(--brand)}.material-import-action:active{border-color:#bf2020;color:#fff;background:#bf2020}.material-import-action:disabled,.material-import-action:disabled:hover,.material-import-action:disabled:focus-visible{border-color:var(--line);color:#7f8993;background:#f5f7f9}
.food-usage .usage-table-head,.food-usage .usage-row{grid-template-columns:105px 125px minmax(190px,2fr) 100px 105px 66px}

/* Responsive workbench: phone, tablet, HD, 2K and 4K. */
html{min-width:320px;-webkit-text-size-adjust:100%}body{min-height:100vh;min-height:100dvh;overflow-x:hidden}aside{padding-top:max(32px,env(safe-area-inset-top));padding-bottom:max(32px,env(safe-area-inset-bottom))}main{width:calc(100% - 236px);max-width:none;padding-right:max(44px,env(safe-area-inset-right))}#content,.login-panel,.login-card,.panel,.notice,.table-wrap,dialog{min-width:0;max-width:100%}.table-wrap{max-width:100%;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}.table-wrap table{min-width:max-content}img,video,canvas,svg{max-width:100%}.toolbar>*{min-width:0}.toolbar>div:first-child{flex:1 1 240px}.toolbar .actions{justify-content:flex-end}.account{min-width:0}.account #account-label{max-width:240px;overflow:hidden;text-overflow:ellipsis}.login-card form,.login-card label,.login-card input{min-width:0;max-width:100%}dialog{max-width:calc(100vw - 32px);overflow:auto;overscroll-behavior:contain}
@media(min-width:1440px){main{padding-left:clamp(36px,3vw,72px);padding-right:clamp(36px,3vw,72px)}main>header,main>#environment,main>#status,main>#content,main>footer{width:min(100%,1680px);margin-left:auto;margin-right:auto}}
@media(min-width:1920px){body{font-size:15px}aside{width:260px;padding-left:28px;padding-right:28px}.brand{font-size:18px}.brand-mark{width:46px;height:46px}main{width:calc(100% - 260px);margin-left:260px;padding:42px clamp(48px,4vw,92px)}main>header,main>#environment,main>#status,main>#content,main>footer{width:min(100%,2200px);margin-left:auto;margin-right:auto}.login-panel{min-height:560px}.panel{padding:30px}table{font-size:14px}th{font-size:12px}th,td{padding:16px 18px}}
@media(min-width:3000px){body{font-size:18px}aside{width:300px}.brand{font-size:21px}.brand-mark{width:52px;height:52px;font-size:26px}nav button{min-height:48px;font-size:16px}main{width:calc(100% - 300px);margin-left:300px;padding-top:58px}main>header,main>#environment,main>#status,main>#content,main>footer{width:min(100%,2800px)}h1{font-size:34px}h2{font-size:30px}.login-card{max-width:520px}.panel{border-radius:18px}.stats{grid-template-columns:repeat(4,minmax(0,1fr))}button,input,select,textarea{font-size:16px}}
@media(max-width:1100px){main{padding:24px 22px}.food-definition-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}.integration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){aside{position:sticky;z-index:40;inset:0 0 auto;width:100%;height:auto;padding:12px max(18px,env(safe-area-inset-right)) 10px max(18px,env(safe-area-inset-left));overflow:hidden;box-shadow:0 4px 18px #12202c22}.brand{font-size:15px}.brand-mark{width:36px;height:36px;border-radius:10px;font-size:19px}.brand small,.aside-foot{display:none}nav{margin-top:9px;flex-direction:row;gap:5px;overflow-x:auto;scrollbar-width:thin;scroll-snap-type:x proximity;padding-bottom:2px}nav button{flex:0 0 auto;min-height:40px;padding:8px 12px;white-space:nowrap;scroll-snap-align:start}nav button.active{border-left:0;border-bottom:3px solid #ef5454}main{width:100%;margin:0;padding:22px max(22px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left))}header{margin-bottom:18px}.account{justify-content:flex-end}.login-panel{padding-top:24px}.integration-grid{grid-template-columns:1fr}.food-definition-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.food-definition-item:last-child{grid-column:auto}}
@media(max-width:600px){body{font-size:14px}main{padding:16px max(12px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}header{align-items:flex-start;flex-direction:column;gap:10px}header>div:first-child{width:100%}.account{width:100%;justify-content:flex-start;gap:8px;overflow-x:auto}.account #account-label{max-width:45vw}h1{font-size:21px;line-height:1.35}.notice{padding:11px 13px}.panel,.login-card,.material-import-panel,.food-definition-panel{padding:16px;border-radius:13px}.login-panel{width:100%;padding:20px 0}.demo-users{max-width:100%}.toolbar{align-items:stretch;flex-direction:column}.toolbar input{max-width:none}.toolbar .actions{width:100%;justify-content:flex-start}.toolbar .actions button,.actions button{min-height:44px}.stats{grid-template-columns:1fr 1fr;gap:9px}.stat{min-width:0;padding:14px}.stat .value{font-size:24px}.form-grid,.banner-settings-row,.material-form-grid,.food-definition-grid{grid-template-columns:1fr}.full,.banner-settings-row>.full{grid-column:auto}.listing-fields{padding:15px}.listing-fields .checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.listing-fields .checklist label{min-width:0;padding:10px}.listing-bottom{grid-template-columns:1fr}.material-import-footer,.food-definition-head{align-items:stretch;flex-direction:column}.source-price-upload{align-self:stretch}.login-card{width:100%;max-width:none}dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:16px;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom))}.modal-head{position:sticky;z-index:2;top:calc(-1 * max(16px,env(safe-area-inset-top)));margin:-16px -16px 18px;padding:16px;background:#fff}.kv{grid-template-columns:1fr;gap:3px}.line-row,.wizard-section .line-row{grid-template-columns:minmax(0,1fr) auto}.line-row>*:first-child,.wizard-section .line-row>*:first-child{grid-column:1/-1}.cost-total-row,.cost-sale-row{grid-template-columns:minmax(0,1fr) 92px 60px;padding:0 8px}.product-usage .usage-row,.food-usage .usage-row{grid-template-columns:1fr}.usage-cell{grid-template-columns:82px minmax(0,1fr)}.usage-name input{grid-column:2}.usage-remove{grid-column:1/-1;width:100%}.step-row{grid-template-columns:1fr}.step-number,.step-row textarea{grid-column:auto}.step-row button{justify-self:stretch}.table-filter-control,.table-filter-clear{min-height:44px}.empty{padding:40px 12px}}
@media(max-width:380px){.stats{grid-template-columns:1fr}.listing-fields .checklist{grid-template-columns:1fr}.account select{width:104px;flex-basis:104px}.brand{gap:9px}}
@media(hover:none) and (pointer:coarse){button,input,select{min-height:44px}td button{min-height:40px}button:hover{border-color:var(--line);color:var(--ink)}.primary:hover{color:#fff;background:var(--brand)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
 .sop-qr-card{display:flex;flex-direction:column;align-items:center;gap:12px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:14px;margin:16px 0}.sop-qr-card canvas{width:280px;max-width:100%;height:auto}.sop-qr-card a{overflow-wrap:anywhere;text-align:center;font-size:12px}.sop-qr-card small{text-align:center}

.sop-qr-card{display:flex;flex-direction:column;align-items:center;gap:12px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:14px;margin:16px 0}.sop-qr-card canvas{width:280px;max-width:100%;height:auto}.sop-qr-card a{overflow-wrap:anywhere;text-align:center;font-size:12px}.sop-qr-card small{text-align:center}
@media print{body>*{visibility:hidden}dialog[open],dialog[open] *{visibility:visible}.modal-head,#modal-body>p,#modal-body>.actions,#modal-close{display:none!important}dialog[open]{position:fixed;inset:0;width:100%;max-width:none;border:0;box-shadow:none}.sop-qr-card{border:0}.sop-qr-card a{color:#000;text-decoration:none}}

.sop-qr-card img.sop-qr-image{width:280px;height:auto;max-width:100%;image-rendering:auto}

