:root{color:#17251f;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#fbfcf8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{-webkit-tap-highlight-color:transparent}html{scroll-behavior:smooth}body{min-width:320px;min-height:100vh;margin:0}button,a{touch-action:manipulation}button{font-family:inherit}:root{--ink:#17251f;--muted:#68766f;--green:#173f32;--lime:#d9ff78;--line:#dfe5dc;--soft:#f2f5ef;--white:#fff}.app{background:#f8faf6;min-height:100vh}.sidebar{box-sizing:border-box;color:#fff;z-index:20;background:#132f27;flex-direction:column;width:244px;padding:24px 16px;display:flex;position:fixed;inset:0 auto 0 0}.brand{align-items:center;gap:10px;font-size:1.05rem;font-weight:800;display:flex}.brand-mark{box-sizing:border-box;background:var(--lime);border-radius:9px;justify-content:center;align-items:end;gap:2px;width:30px;height:30px;padding:7px;display:flex}.brand-mark i{background:var(--green);border-radius:2px;width:3px;display:block}.brand-mark i:first-child{height:7px}.brand-mark i:nth-child(2){height:14px}.brand-mark i:last-child{height:10px}.location{background:#ffffff0a;border:1px solid #ffffff1f;border-radius:12px;margin:27px 0 17px;padding:14px}.location small{color:#a8beb5;letter-spacing:.13em;font-size:.61rem;display:block}.location b,.location span{display:block}.location b{margin:5px 0 2px;font-size:.88rem}.location span{color:#9fb3ab;font-size:.73rem}.sidebar nav{flex-direction:column;gap:2px;display:flex}.sidebar nav button{color:#b9cbc4;text-align:left;min-height:38px;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px;padding:0 11px;font-size:.8rem}.sidebar nav button span{width:26px;font-size:1rem;display:inline-block}.sidebar nav button:hover,.sidebar nav button.active{color:#fff;background:#ffffff12}.sidebar nav button.active{box-shadow:inset 3px 0 var(--lime)}.scan-side{background:var(--lime);color:#173f32;cursor:pointer;border:0;border-radius:10px;min-height:43px;margin-top:14px;font-weight:800}.user{border-top:1px solid #ffffff16;align-items:center;gap:9px;margin-top:auto;padding:15px 5px 0;display:flex}.user>span{background:#36594d;border-radius:50%;place-items:center;width:32px;height:32px;font-size:.68rem;display:grid}.user b,.user small{display:block}.user b{font-size:.75rem}.user small{color:#91a69d;font-size:.65rem}.main{box-sizing:border-box;max-width:1450px;min-height:100vh;margin-left:244px;padding:44px clamp(28px,4vw,64px) 80px}.mobile-head,.mobile-nav{display:none}.page-head{justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:30px;display:flex}.page-head h1{letter-spacing:-.045em;margin:3px 0 7px;font-family:Georgia,serif;font-size:clamp(2.4rem,4.2vw,3.7rem);font-weight:500}.page-head p{color:var(--muted);margin:0}.overline{letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#4f7869!important;font-size:.68rem!important}.primary,.secondary{min-height:44px;font:inherit;cursor:pointer;border-radius:10px;padding:0 17px;font-weight:750}.primary{background:var(--green);color:#fff;border:0;box-shadow:0 7px 18px #173f3220}.secondary{color:#29463b;background:#fff;border:1px solid #ccd6cf}.wide{width:100%;margin-top:18px}.actions{gap:9px;display:flex}.metrics{grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px;display:grid}.metrics>div{box-sizing:border-box;border:1px solid var(--line);background:#fff;border-radius:15px;min-height:122px;padding:20px}.metrics span,.metrics b,.metrics small{display:block}.metrics span{color:var(--muted);font-size:.75rem}.metrics b{margin:14px 0 7px;font-family:Georgia,serif;font-size:1.55rem;font-weight:500}.metrics small{color:#7a8781;font-size:.68rem}.panel{border:1px solid var(--line);background:#fff;border-radius:16px;margin-top:20px;padding:25px}.panel h2{margin:0 0 4px;font-family:Georgia,serif;font-size:1.45rem;font-weight:500}.panel-title{justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px;display:flex}.panel-title p{color:var(--muted);margin:0;font-size:.82rem}.quick-grid{grid-template-columns:repeat(4,1fr);gap:10px;display:grid}.quick-grid button{border:1px solid var(--line);text-align:left;cursor:pointer;background:#fbfcfa;border-radius:13px;gap:12px;min-height:118px;padding:16px;display:flex;position:relative}.quick-grid button>span{color:#284c3d;background:#e6f2c2;border-radius:9px;flex:none;place-items:center;width:34px;height:34px;display:grid}.quick-grid b,.quick-grid small{display:block}.quick-grid b{margin:3px 20px 6px 0;font-size:.85rem}.quick-grid small{color:var(--muted);font-size:.68rem;line-height:1.35}.quick-grid i{color:#71827a;position:absolute;top:18px;right:14px}.toolbar{gap:10px;margin-bottom:16px;display:flex}.toolbar input{flex:1}.toolbar input,.toolbar select,.form-grid input,.form-grid select{box-sizing:border-box;min-height:43px;color:var(--ink);font:inherit;background:#fff;border:1px solid #d4ddd6;border-radius:9px;padding:0 12px}.table-card{border:1px solid var(--line);background:#fff;border-radius:15px;overflow:hidden}.table-card.flat{border:0;border-radius:0}.table-card table{border-collapse:collapse;width:100%}.table-card th{color:#718078;letter-spacing:.06em;text-transform:uppercase;text-align:left;background:#f2f5f1;padding:13px 17px;font-size:.65rem}.table-card td{color:#394940;border-top:1px solid #e7ebe6;padding:15px 17px;font-size:.78rem}.table-card tbody tr{cursor:pointer}.table-card tbody tr:hover{background:#f8faf7}.table-card td b,.table-card td small{display:block}.table-card td small{color:#7c8882;margin-top:4px;font-size:.68rem}.status{color:#52625a;background:#edf1ee;border-radius:20px;width:max-content;padding:4px 8px;font-weight:800;font-size:.64rem!important;display:inline-block!important}.s-active,.s-approved,.s-posted,.s-completed{color:#32623f;background:#e0f2da}.s-review,.s-needs-review,.s-draft{color:#785b12;background:#fff0c9}.notice{background:#edf5d7;border-left:4px solid #92b83b;border-radius:9px;align-items:center;gap:12px;margin-bottom:16px;padding:15px 18px;font-size:.78rem;display:flex}.notice span{color:#52635b}.cards{gap:14px;display:grid}.cards.three{grid-template-columns:repeat(3,1fr)}.cards.two{grid-template-columns:repeat(2,1fr)}.entity-card,.recipe-card{border:1px solid var(--line);text-align:left;min-height:175px;color:var(--ink);cursor:pointer;background:#fff;border-radius:15px;padding:22px}.entity-card h3{margin:18px 0 6px}.entity-card p{color:var(--muted);margin:0 0 13px;font-size:.78rem}.entity-card small{color:#738078}.avatar{color:#325244;background:#e4efc7;border-radius:11px;place-items:center;width:42px;height:42px;font-size:.68rem;font-weight:800;display:grid}.recipe-card{justify-content:space-between;align-items:flex-end;display:flex}.recipe-card h3{margin:12px 0 6px;font-family:Georgia,serif;font-size:1.35rem}.recipe-card p{color:var(--muted);margin:0;font-size:.74rem}.tag{color:#4c6a5d;text-transform:uppercase;background:#edf3e4;border-radius:5px;padding:4px 7px;font-size:.59rem;font-weight:800;display:inline-block}.cost{text-align:right}.cost small,.cost b{display:block}.cost small{color:var(--muted);font-size:.62rem}.cost b{margin-top:5px;font-size:1.15rem}.compact{margin-top:10px}.mini{box-sizing:border-box;border:1px solid var(--line);background:#fbfcfa;border-radius:12px;min-height:115px;padding:18px}.mini b,.mini strong,.mini small{display:block}.mini b{margin:12px 0 5px}.mini strong{font-family:Georgia,serif;font-size:1.15rem}.mini small{color:var(--muted);margin-top:5px;font-size:.67rem}.empty{text-align:center;color:#596a62;padding:45px 20px}.empty p{color:#819087;margin:7px 0 0;font-size:.8rem}.settings-grid{grid-template-columns:1fr 2fr;gap:16px;display:grid}.settings-grid .panel{margin-top:0}.unit-list{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.unit-list span{background:var(--soft);border-radius:8px;padding:11px}.unit-list b,.unit-list small{display:block}.unit-list small{color:var(--muted);font-size:.6rem}.conversion-grid{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.conversion-grid>div{border:1px solid var(--line);border-radius:10px;padding:15px}.conversion-grid b,.conversion-grid small{display:block}.conversion-grid b{margin:9px 0 5px;font-size:.8rem}.conversion-grid small{color:var(--muted);font-size:.65rem}.proof{border-top:1px solid var(--line);flex-wrap:wrap;gap:8px;margin-top:18px;padding-top:18px;display:flex}.proof>*{background:var(--soft);border-radius:7px;padding:7px 10px;font-size:.7rem}.muted{color:var(--muted);font-size:.75rem}.overlay{z-index:50;background:#0b2119a6;justify-content:flex-end;display:flex;position:fixed;inset:0}.drawer{box-sizing:border-box;background:#fff;width:min(450px,100%);height:100%;padding:35px;overflow:auto;box-shadow:-20px 0 50px #0002}.drawer h2,.modal h2{margin:0 35px 26px 0;font-family:Georgia,serif;font-size:1.8rem;font-weight:500}.drawer h3{margin:26px 0 10px;font-size:.9rem}.close{cursor:pointer;background:#eef2ee;border:0;border-radius:50%;width:35px;height:35px;font-size:1.2rem;position:absolute;top:23px;right:24px}.detail{border-bottom:1px solid #e8ece8;padding:13px 0}.detail span,.detail b{display:block}.detail span{color:var(--muted);font-size:.67rem}.detail b{margin-top:5px;font-size:.82rem}.line,.total{border-bottom:1px solid var(--line);justify-content:space-between;gap:15px;padding:12px 0;font-size:.78rem;display:flex}.line small{color:var(--muted);margin-top:3px;display:block}.total{font-size:.86rem}.modal{box-sizing:border-box;background:#fff;border-radius:18px;align-self:center;width:min(560px,100% - 32px);max-height:calc(100vh - 50px);margin:auto;padding:30px;position:relative;overflow:auto}.form-grid{grid-template-columns:repeat(2,1fr);gap:15px;display:grid}.form-grid label{color:#526158;flex-direction:column;gap:6px;font-size:.7rem;display:flex}.form-grid .wide{grid-column:1/-1}@media (width<=1050px){.metrics,.quick-grid,.conversion-grid{grid-template-columns:repeat(2,1fr)}.unit-list{grid-template-columns:repeat(3,1fr)}}@media (width<=760px){.sidebar{transition:left .2s;left:-260px}.sidebar.open{left:0}.scrim{z-index:15;background:#06150e80;border:0;position:fixed;inset:0}.mobile-head{z-index:12;color:#fff;background:#173f32;justify-content:space-between;align-items:center;height:64px;padding:0 16px;display:flex;position:sticky;top:0}.mobile-head button{color:#fff;background:0 0;border:0;width:40px;height:40px;font-size:1.2rem}.mobile-head .brand-mark{width:27px;height:27px}.main{margin-left:0;padding:30px 16px 90px}.page-head{flex-direction:column;align-items:flex-start}.page-head .primary,.page-head .actions{width:100%}.actions>*{flex:1}.page-head h1{font-size:2.5rem}.metrics{grid-template-columns:repeat(2,1fr)}.metrics>div{min-height:110px;padding:16px}.quick-grid,.cards.three,.cards.two,.settings-grid,.conversion-grid{grid-template-columns:1fr}.table-card{overflow-x:auto}.table-card table{min-width:700px}.toolbar{flex-direction:column}.toolbar select{min-height:43px}.unit-list{grid-template-columns:repeat(2,1fr)}.mobile-nav{z-index:14;height:66px;padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid #dce3dd;grid-template-columns:repeat(5,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.mobile-nav button{color:#6d7b74;background:0 0;border:0;font-size:.58rem}.mobile-nav button span{margin-bottom:4px;font-size:1rem;display:block}.mobile-nav button.active{color:#173f32;font-weight:800}.panel{padding:18px}.panel-title{flex-direction:column;align-items:flex-start}.form-grid{grid-template-columns:1fr}.recipe-card{min-height:160px}.notice{flex-direction:column;align-items:flex-start}.drawer{padding:28px 22px}.cost b{font-size:1rem}}@media (width<=420px){.metrics{grid-template-columns:1fr}.metrics>div{min-height:96px}.form-grid,.unit-list{grid-template-columns:1fr}.recipe-card{flex-direction:column;align-items:flex-start;gap:20px}.cost{text-align:left}}@media (prefers-reduced-motion:reduce){*{transition:none!important}}.auth-screen{box-sizing:border-box;background:linear-gradient(145deg,#edf5d7,#f8faf6 55%,#dbe9df);place-items:center;min-height:100vh;padding:20px;display:grid}.auth-card{box-sizing:border-box;border:1px solid var(--line);background:#fff;border-radius:20px;width:min(410px,100%);padding:36px;box-shadow:0 25px 60px #173f3220}.auth-brand{align-items:center;gap:10px;margin-bottom:32px;display:flex}.auth-card h1{margin:6px 0 10px;font-size:2.4rem}.auth-card>p:not(.overline){color:var(--muted);line-height:1.5}.auth-card label{color:#4d5d55;flex-direction:column;gap:7px;margin-top:16px;font-size:.75rem;font-weight:700;display:flex}.auth-card input{min-height:46px;font:inherit;border:1px solid #ccd7cf;border-radius:9px;padding:0 12px}.auth-card .primary{width:100%;margin-top:20px}.auth-link{color:#356552;cursor:pointer;background:0 0;border:0;width:100%;margin-top:13px}.auth-message{color:#496054;background:#f1f5ed;border-radius:8px;margin-top:15px;padding:10px;font-size:.75rem}.user-button{color:#fff;text-align:left;cursor:pointer;background:0 0;border:0;width:100%}.primary,.secondary,.scan-side{justify-content:center;align-items:center;gap:8px;display:inline-flex}.separator{vertical-align:middle;background:currentColor;border-radius:50%;width:3px;height:3px;margin:0 5px;display:inline-block}.location-switcher{color:var(--muted);flex-direction:column;gap:6px;margin-top:18px;font-size:.7rem;display:flex}.location-switcher select{border:1px solid var(--line);background:#fff;border-radius:8px;min-height:42px;padding:0 10px}.icon{box-sizing:border-box;flex:none;width:18px;height:18px;display:inline-block;position:relative}.icon:before,.icon:after{content:"";box-sizing:border-box;position:absolute}.icon-dashboard,.icon-stock,.icon-report,.icon-document,.icon-scan{border:2px solid;border-radius:3px}.icon-dashboard:before{border-top:2px solid;inset:6px -2px auto}.icon-dashboard:after{border-left:2px solid;inset:-2px 6px}.icon-stock:before{border-top:2px solid;top:4px;left:4px;right:4px;box-shadow:0 4px}.icon-purchase:before{border-left:2px solid;height:11px;top:1px;left:8px}.icon-purchase:after{border-bottom:2px solid;border-left:2px solid;width:8px;height:8px;top:7px;left:4px;transform:rotate(-45deg)}.icon-count,.icon-recipe{border:2px solid;border-radius:50%}.icon-count:after{border-bottom:2px solid;border-left:2px solid;width:8px;height:5px;top:4px;left:4px;transform:rotate(-45deg)}.icon-recipe:before{border:1px solid;border-radius:50%;inset:3px}.icon-sales:before{border-bottom:2px solid;border-left:2px solid;width:13px;height:10px;bottom:2px;left:2px}.icon-sales:after{border-top:2px solid;border-right:2px solid;width:9px;height:9px;top:1px;right:1px}.icon-supplier:before{border:2px solid;border-radius:50%;width:8px;height:8px;top:1px;left:5px}.icon-supplier:after{border:2px solid;border-radius:8px;width:14px;height:7px;bottom:0;left:2px}.icon-report:after{background:currentColor;width:2px;height:5px;bottom:3px;left:4px;box-shadow:4px -3px,8px -6px}.icon-document:after{border-top:2px solid;top:4px;left:3px;right:3px;box-shadow:0 4px}.icon-settings{border:2px solid;border-radius:50%;box-shadow:0 -4px 0 -2px,0 4px 0 -2px,4px 0 0 -2px,-4px 0 0 -2px}.icon-scan:after{border-top:2px solid;top:7px;left:-5px;right:-5px}.icon-plus:before{border-left:2px solid;height:14px;top:2px;left:8px}.icon-plus:after{border-top:2px solid;width:14px;top:8px;left:2px}.icon-menu:after{border-top:2px solid;top:3px;left:1px;right:1px;box-shadow:0 5px,0 10px}.icon-arrow:before{border-top:2px solid;width:13px;top:8px;right:2px}.icon-arrow:after{border-top:2px solid;border-right:2px solid;width:8px;height:8px;top:4px;right:2px;transform:rotate(45deg)}.icon-close:before,.icon-close:after{border-left:2px solid;height:14px;top:2px;left:8px}.icon-close:before{transform:rotate(45deg)}.icon-close:after{transform:rotate(-45deg)}.capture-actions{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.capture-button{box-sizing:border-box;cursor:pointer;text-align:center;background:#f8fbf3;border:1px dashed #9daf9f;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-height:130px;padding:20px;display:flex}.capture-button input{opacity:0;width:1px;height:1px;position:absolute}.capture-button small,.file-previews small{color:var(--muted)}.file-previews{gap:10px;margin-top:18px;display:grid}.file-previews article{border:1px solid var(--line);border-radius:10px;grid-template-columns:70px 1fr auto;align-items:center;gap:12px;padding:10px;display:grid}.file-previews img,.pdf-preview{object-fit:cover;background:var(--soft);border-radius:8px;width:70px;height:70px}.pdf-preview{place-items:center;font-weight:800;display:grid}.file-previews b,.file-previews small{display:block}.file-previews button{color:#81433b;cursor:pointer;background:0 0;border:0}.drop-hint{text-align:center;color:var(--muted);padding:30px}.document-cards{gap:10px;display:grid}.document-cards>button{border:1px solid var(--line);text-align:left;cursor:pointer;background:#fff;border-radius:12px;justify-content:space-between;align-items:center;min-height:76px;padding:15px 18px;display:flex}.document-cards b,.document-cards small{display:block}.document-cards small{color:var(--muted);margin-top:7px}.review-layout{grid-template-columns:minmax(300px,1fr) minmax(500px,1.2fr);align-items:start;gap:18px;display:grid}.document-viewer{background:#27332e;border-radius:15px;max-height:calc(100vh - 40px);padding:12px;position:sticky;top:20px;overflow:auto}.document-viewer img,.document-viewer iframe{object-fit:contain;background:#fff;border:0;width:100%;min-height:650px;margin-bottom:10px;display:block}.page-tabs{gap:6px;margin-bottom:10px;display:flex}.page-tabs span{color:#fff;background:#ffffff18;border-radius:6px;padding:6px 9px;font-size:.7rem}.review-form{margin:0}.confidence{align-items:center;gap:12px;margin-bottom:15px;display:flex}.confidence span,.confidence small{color:var(--muted);font-size:.72rem}.confidence b{font-size:1.3rem}.warning,.field-warning,.confirmation-note{color:#6b5417;background:#fff1c9;border-radius:9px;margin-bottom:15px;padding:13px 16px}.warning,.confirmation-note{gap:10px;display:flex}.warning span,.confirmation-note span{font-size:.76rem}.field-warning{font-size:.72rem}.review-line{border:1px solid var(--line);border-radius:12px;margin:12px 0;padding:16px}.review-line.low-confidence{background:#fffdf6;border-color:#e7bd56}.review-line header{justify-content:space-between;gap:10px;margin-bottom:15px;display:flex}.confirm-check{align-items:center;margin-top:22px;flex-direction:row!important}.confirm-check input{width:20px;height:20px;min-height:auto!important}.review-form>.actions{justify-content:flex-end;margin-top:18px}@media (width<=900px){.review-layout{grid-template-columns:1fr}.document-viewer{max-height:60vh;position:relative;top:auto}.document-viewer img,.document-viewer iframe{min-height:420px}}@media (width<=760px){.capture-actions{grid-template-columns:1fr}.capture-button{min-height:105px}.document-cards>button{align-items:flex-start;gap:12px}.warning,.confirmation-note{flex-direction:column}.review-form>.actions{background:#fff;padding:10px;position:sticky;bottom:65px}.review-form>.actions>*{flex:1}}.usage-bar{background:#e8ede8;border-radius:20px;height:12px;overflow:hidden}.usage-bar i{border-radius:inherit;background:var(--green);height:100%;display:block}.usage-breakdown{margin-top:20px}.usage-breakdown>div{border-bottom:1px solid var(--line);justify-content:space-between;gap:15px;padding:13px 0;font-size:.76rem;display:flex}.usage-breakdown>div span{color:var(--muted);text-align:right}.sidebar nav{min-height:0;overflow-y:auto}.intake-choice{grid-template-columns:repeat(2,1fr);gap:14px;display:grid}.intake-choice button{text-align:left;cursor:pointer;align-items:center;gap:14px;display:flex}.intake-choice small{color:var(--muted);margin-top:5px;display:block}.invoice-review-layout{grid-template-columns:minmax(300px,1fr) minmax(520px,1.2fr);align-items:start;gap:18px;display:grid}.review-lines{gap:12px;display:grid}.review-line.needs-review{background:#fffdf6;border-color:#e7bd56}.review-line>div:first-child{justify-content:space-between;gap:10px;display:flex}.review-line label{flex-direction:column;gap:5px;margin-top:10px;font-size:.7rem;display:flex}.review-line input,.review-line select{border:1px solid var(--line);background:#fff;border-radius:8px;min-height:42px;padding:0 10px}.review-actions{justify-content:flex-end;gap:10px;margin-top:18px;display:flex}.line-warning{color:#795b12;margin-top:6px;display:block}.period-grid{gap:14px;display:grid}.period-metrics{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.period-metrics span{background:var(--soft);border-radius:9px;flex-direction:column;gap:5px;padding:12px;font-size:.7rem;display:flex}@media (width<=900px){.intake-choice{grid-template-columns:repeat(2,1fr);gap:14px;display:grid}.intake-choice button{text-align:left;cursor:pointer;align-items:center;gap:14px;display:flex}.intake-choice small{color:var(--muted);margin-top:5px;display:block}.invoice-review-layout{grid-template-columns:1fr}.period-metrics{grid-template-columns:repeat(2,1fr)}}@media (width<=500px){.period-metrics{grid-template-columns:1fr}}.orientation-actions{color:#fff;align-items:center;gap:8px;margin-bottom:8px;display:flex}.orientation-actions span{margin-right:auto}.orientation-actions button{color:#fff;background:#ffffff18;border:1px solid #fff5;border-radius:8px;min-height:38px;padding:7px 11px}.oriented-page{margin-bottom:14px;overflow:hidden}.oriented-page img{transform-origin:50%;transition:transform .2s}.supplier-proposal,.new-item-box{background:#f5fbf4;border:1px solid #b7ccb9;border-radius:12px;margin-bottom:16px;padding:16px}.supplier-proposal h3,.new-item-box h3{margin:9px 0}.supplier-proposal p{color:var(--muted)}.viewer-toolbar{flex-wrap:wrap;gap:6px;margin-bottom:9px;display:flex}.viewer-toolbar button,.page-tabs button{color:#fff;cursor:pointer;background:#ffffff12;border:1px solid #ffffff4a;border-radius:8px;min-height:42px;padding:7px 10px}.page-tabs button.active{color:#27332e;background:#fff}.viewer-canvas{cursor:grab;touch-action:pan-x pan-y pinch-zoom;background:#15201b;place-items:center;min-height:620px;display:grid;overflow:hidden}.viewer-canvas:active{cursor:grabbing}.viewer-canvas img{-webkit-user-select:none;user-select:none;max-width:none;transition:transform .12s;min-height:0!important;margin:0!important}.viewer-canvas.fit-page img{max-width:100%;max-height:70vh}.viewer-canvas.fit-width img{width:100%;height:auto}.viewer-canvas iframe{min-height:70vh!important;margin:0!important}.viewer-hint{color:#d8e0db;margin-top:8px;display:block}.combine-pages{border:1px solid var(--line);border-radius:10px;align-items:flex-start;gap:12px;margin-top:16px;padding:14px;display:flex}.combine-pages input{width:22px;height:22px}.combine-pages b,.combine-pages small{display:block}.combine-pages small{color:var(--muted);margin-top:4px}.enhanced-viewer:fullscreen{border-radius:0;width:100vw;height:100vh;max-height:none}.enhanced-viewer:fullscreen .viewer-canvas{height:calc(100vh - 120px)}.location select{color:#fff;width:100%;font:inherit;background:#23463b;border:1px solid #ffffff2b;border-radius:7px;margin:7px 0;padding:8px;font-size:.72rem}.operator-launch{grid-template-columns:repeat(8,1fr);gap:9px;margin-bottom:18px;display:grid}.operator-launch button{border:1px solid var(--line);min-height:86px;color:var(--ink);cursor:pointer;text-align:left;background:#fff;border-radius:12px;flex-direction:column;justify-content:space-between;align-items:flex-start;padding:12px;display:flex}.operator-launch .icon{color:var(--green)}.check-grid{flex-wrap:wrap;gap:9px;margin:10px 0 20px;display:flex}.check-grid label{border:1px solid var(--line);border-radius:8px;align-items:center;gap:7px;padding:9px 12px;font-size:.75rem;display:flex}.smart-sheet-print{box-sizing:border-box;color:#000;background:#fff;max-width:210mm;margin:0 auto;padding:14mm}.smart-sheet-print>header{border-bottom:3px solid #000;justify-content:space-between;align-items:flex-start;padding-bottom:8mm;display:flex}.smart-sheet-print header strong{letter-spacing:.16em}.smart-sheet-print h1{margin:5px 0 0;font-size:2rem}.smart-sheet-print h2{margin:2px 0;font-size:1.2rem}.smart-sheet-print header p{font-weight:800}.smart-sheet-print header img{width:32mm;height:32mm}.template-meta{justify-content:space-between;gap:10px;padding:4mm 0;font-size:.72rem;display:flex}.smart-sheet-group{break-inside:avoid;margin-top:5mm}.smart-sheet-group h3{color:#fff;letter-spacing:.08em;background:#111;margin:0;padding:2mm 3mm;font-size:.85rem}.smart-sheet-group table{border-collapse:collapse;width:100%}.smart-sheet-group th,.smart-sheet-group td{text-align:left;border:1px solid #111;height:12mm;padding:2mm 3mm;font-size:.8rem}.smart-sheet-group th:last-child{width:35mm}.count-box{background:#fff}.smart-sheet-print footer{text-align:center;border-top:1px solid #000;margin-top:8mm;padding-top:3mm;font-size:.65rem}@media (width<=1100px){.operator-launch{grid-template-columns:repeat(4,1fr)}}@media (width<=760px){.operator-launch{grid-template-columns:repeat(2,1fr)}.operator-launch button{min-height:92px;font-size:.78rem}}@media print{.sidebar,.mobile-head,.mobile-nav,.page-head,.no-print,.scrim{display:none!important}.main{max-width:none;margin:0;padding:0}.app{background:#fff}.smart-sheet-print{padding:10mm}.smart-sheet-group{break-inside:avoid}@page{size:A4;margin:8mm}}.operation-list{gap:10px;display:grid}.operation-row{border:1px solid var(--line);background:#fff;border-radius:13px;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:16px;padding:17px 19px;display:grid}.operation-row b,.operation-row small{display:block}.operation-row small{color:var(--muted);margin-top:5px;font-size:.7rem}.operation-row .secondary{min-height:36px}.operation-message{color:#345044;background:#edf5d7;border-radius:9px;padding:12px 15px;font-size:.78rem}.modal select,.modal input{box-sizing:border-box;min-height:43px;color:var(--ink);font:inherit;background:#fff;border:1px solid #d4ddd6;border-radius:9px;padding:0 12px}@media (width<=600px){.operation-row{grid-template-columns:1fr auto}.operation-row .secondary{grid-column:1/-1;width:100%}}.recipe-modal{width:min(1000px,100vw - 32px);max-height:calc(100vh - 32px);overflow:auto}.recipe-lines-head{justify-content:space-between;align-items:center;gap:16px;margin:24px 0 10px;display:flex}.recipe-lines-head h3,.recipe-lines-head p{margin:0}.recipe-lines-head p{color:var(--muted);margin-top:4px;font-size:.75rem}.recipe-lines{gap:10px;margin-bottom:20px;display:grid}.recipe-line{border:1px solid var(--line);background:#f7faf8;border-radius:12px;grid-template-columns:120px minmax(170px,2fr) 100px 90px 85px auto;align-items:end;gap:8px;padding:12px;display:grid}.recipe-line label{color:var(--muted);font-size:.7rem}.recipe-line select,.recipe-line input{width:100%;margin-top:5px}.remove-line{color:#9b3b3b;background:0 0;border:0;min-height:43px}.remove-line:disabled{opacity:.35}.recipe-card.inactive{opacity:.65}.recipe-card .status{display:inline-flex}.toggle-line{color:var(--muted);align-items:center;gap:8px;margin-bottom:16px;font-size:.78rem;display:flex}.toggle-line input{width:18px;height:18px}.recipe-drawer{width:min(520px,100vw);overflow:auto}.recipe-summary{grid-template-columns:repeat(2,1fr);gap:10px;margin:18px 0 24px;display:grid}.recipe-summary div{background:#f4f7f5;border-radius:10px;padding:12px}.recipe-summary small,.recipe-summary b{display:block}.recipe-summary small{color:var(--muted);margin-bottom:4px;font-size:.68rem}.detail-lines{gap:8px;margin:10px 0 22px;display:grid}.detail-lines>div{border-bottom:1px solid var(--line);justify-content:space-between;gap:18px;padding:10px 0;display:flex}.detail-lines span,.detail-lines small{display:block}.detail-lines small{color:var(--muted);margin-top:3px;font-size:.67rem}.drawer-actions{gap:10px;display:flex}.operation-message.error{color:#7f2925;background:#fdebea}@media (width<=760px){.recipe-line{grid-template-columns:1fr 1fr}.recipe-line label:nth-child(2),.remove-line{grid-column:1/-1}.recipe-modal{width:calc(100vw - 16px);max-height:calc(100vh - 16px)}.recipe-summary{grid-template-columns:1fr 1fr}}.supplier-intelligence-layout{grid-template-columns:minmax(260px,.75fr) minmax(0,1.5fr);gap:1rem;margin:1rem 0;display:grid}.supplier-list{flex-direction:column;gap:.55rem;display:flex}.supplier-list>button{text-align:left;border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:12px;justify-content:space-between;align-items:center;padding:.85rem;display:flex}.supplier-list>button.active{border-color:var(--green);background:#f3faf7}.supplier-list span{flex-direction:column;display:flex}.supplier-list small,.mapping-list small{color:var(--muted);margin-top:.25rem}.proposal-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.75rem;display:grid}.proposal-grid .actions{margin-top:1rem}.section-title{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.section-title h2{margin-top:0}.section-title p{color:var(--muted);margin:.25rem 0}.metrics.compact{grid-template-columns:repeat(3,1fr)}.trend-bars{gap:.6rem;margin:1rem 0;display:grid}.trend-bars>div{grid-template-columns:70px minmax(50px,1fr) 100px;align-items:center;gap:.65rem;display:grid}.trend-bars i{background:var(--green);border-radius:20px;min-width:4px;height:8px}.trend-bars b{text-align:right}.mapping-list{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.5rem;margin:.65rem 0 1.25rem;display:grid}.mapping-list>span,.permission-grid>span{border:1px solid var(--line);border-radius:10px;flex-direction:column;padding:.7rem;display:flex}.permission-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.5rem;display:grid}.permission-grid .denied{opacity:.62;background:#f7f7f7}.permission-grid .allowed{background:#f5fbf8;border-color:#b8dfcf}.permission-grid small{color:var(--muted);margin-top:.25rem}@media (width<=800px){.supplier-intelligence-layout,.metrics.compact{grid-template-columns:1fr}.trend-bars>div{grid-template-columns:60px minmax(40px,1fr) 90px}.section-title{align-items:center}}.printable-stock-sheet table{border-collapse:collapse;width:100%}.printable-stock-sheet th,.printable-stock-sheet td{text-align:left;border:1px solid #cfd8d1;height:34px;padding:8px;font-size:.72rem}.printable-stock-sheet td:nth-child(5){min-width:130px}.printable-stock-sheet small{color:#718078;font-size:.52rem}.period-history{background:#f4f8ea;border-left:3px solid #92b83b;gap:10px;margin-top:14px;padding:12px;font-size:.72rem;display:flex}.period-history span{color:var(--muted)}@media (width<=760px){.intake-choice{grid-template-columns:1fr}.page-head .actions{flex-wrap:wrap}.period-metrics{grid-template-columns:1fr}.printable-stock-sheet{overflow-x:auto}.printable-stock-sheet table{min-width:760px}}@media print{.sidebar,.mobile-head,.mobile-nav,.page-head,.notice{display:none!important}.main{margin:0;padding:0}.printable-stock-sheet{border:0;margin:0;padding:0}.printable-stock-sheet table{font-size:10pt}.printable-stock-sheet th,.printable-stock-sheet td{height:28px}.app{background:#fff}}.diagnostic-output{color:#e5e7eb;white-space:pre-wrap;background:#111827;border-radius:.75rem;max-height:22rem;padding:1rem;font-size:.75rem;overflow:auto}.subtabs{gap:8px;margin:0 0 18px;display:flex;overflow:auto}.subtabs button{border:1px solid var(--line);white-space:nowrap;background:#fff;border-radius:10px;min-height:44px;padding:0 16px}.subtabs button.active{background:var(--ink);color:#fff}.sales-review-lines{gap:10px;margin:18px 0;display:grid}.sales-review-lines article{border:1px solid var(--line);border-radius:10px;padding:14px}.sales-review-lines article.needs-review{background:#fffaf0;border-color:#d99b42}.confirm-line{align-items:center;gap:8px;display:flex!important}.confirm-line input{width:auto!important}.filters{flex-wrap:wrap;gap:12px;display:flex}.filters label{gap:6px;display:grid}.review-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}@media (width<=720px){.review-grid{grid-template-columns:1fr!important}.sales-review-lines .form-grid{grid-template-columns:1fr}.subtabs{margin-inline:-4px}.review-actions button{width:100%}}
