:root{--navy:#172b27;--navy2:#25453b;--green:#236b4a;--accent:#bdf1c5;--mint:#e6f6e9;--bg:#f6f8f6;--card:#fff;--text:#263632;--muted:#768781;--line:#e5ebe6;--shadow:0 9px 24px rgba(18,40,27,.035);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--text);font-size:14px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}input,select,textarea{outline:none}input:focus,select:focus,textarea:focus{border-color:#379f6c!important;box-shadow:0 0 0 3px #3fbb7930!important}::selection{background:#bceaca}.shell{display:flex;min-height:100vh}.sidebar{width:242px;flex-shrink:0;background:var(--navy);color:#e8f4ec;padding:28px 16px 20px;display:flex;flex-direction:column;gap:14px;position:sticky;height:100vh;top:0}.brand{display:flex;align-items:center;gap:10px;padding:0 8px 28px;border-bottom:1px solid #3d574c}.brand-mark{display:grid;place-items:center;background:#c0efd0;color:var(--navy);width:46px;height:46px;border-radius:13px;font-size:18px;letter-spacing:-2px;font-weight:900}.brand-mark span{color:#4da26a}.brand b{font-size:20px;font-weight:750;letter-spacing:-.8px;display:block}.brand small{font-size:8px;color:#bbd0c3;letter-spacing:1.1px;white-space:nowrap}.sidebar-label{padding:22px 10px 6px;color:#9fbaab;font-size:10px;letter-spacing:2px;font-weight:700}.main-nav{display:flex;flex-direction:column;gap:4px}.nav-button{border:0;border-radius:10px;background:transparent;color:#ccdfd2;padding:13px 11px;text-align:left;display:flex;align-items:center;gap:12px;font-weight:550}.nav-button:hover{background:#274239}.nav-button.active{background:#356d50;color:#fff}.nav-icon{font-weight:800;font-size:20px;width:21px;text-align:center}.sidebar-foot{margin-top:auto;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:6px 8px;padding:16px 9px 0;border-top:1px solid #3d574c;font-size:12px;color:#d0e2d4}.sidebar-foot small{grid-column:2;color:#829e90;font-size:10px}.status-dot{width:8px;height:8px;border-radius:50%;background:#9feeb1}.workspace{flex:1;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border-bottom:1px solid var(--line);padding:20px clamp(22px,3vw,44px)}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:800;color:#488765;margin-bottom:3px}.topbar h1{font-size:24px;letter-spacing:-.75px;margin:0;font-weight:750}.topbar-actions{display:flex;align-items:center;gap:16px}.current-visit{font-size:12px;color:#567164;max-width:285px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.main-content{padding:28px clamp(22px,3vw,44px) 75px;max-width:1500px;margin:auto}.page{display:none}.page.active{display:block}.btn{border:1px solid transparent;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 17px;font-weight:700;min-height:43px;white-space:nowrap}.btn-primary{background:#216445;color:white}.btn-primary:hover{background:#184e35}.btn-secondary{background:#e7f1e9;color:#235b3d}.btn-secondary:hover{background:#d7e9dc}.btn-ghost{background:#fff;color:#567066;border-color:#dbe4dd}.btn-ghost:hover{background:#f5faf7}.btn-white{background:#f4fff3;color:#214833}.btn-outline-light{border-color:#648b73;color:#e9f9ed;background:transparent}.btn-short{min-height:40px}.i{font-size:20px;line-height:1}.hero{border-radius:18px;background:linear-gradient(114deg,#1a3c30,#215e40 67%,#2a7953);padding:40px 45px;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:36px;min-height:275px;overflow:hidden}.hero-kicker{color:#bfecc7;font-size:11px;letter-spacing:2.3px;font-weight:800;margin-bottom:16px}.hero h2{font-size:clamp(26px,3vw,40px);line-height:1.18;letter-spacing:-1.15px;margin:0}.hero h2 em{font-style:normal;color:#b0e9b5}.hero p{color:#c4dfcb;line-height:1.7;max-width:620px;margin:16px 0 22px}.hero-actions{display:flex;gap:11px;flex-wrap:wrap}.hero-graphic{width:234px;min-width:234px;height:169px;background:rgba(181,238,185,.07);position:relative;border-radius:16px;display:grid;place-items:center}.barcode-art{font-size:37px;letter-spacing:2px;color:#cfffd1;transform:scaleX(.92);white-space:nowrap;overflow:hidden;max-width:195px}.hero-graphic>span{position:absolute;bottom:24px;letter-spacing:2px;font-size:10px;color:#b5d4bb}.scanner-corner{position:absolute;width:23px;height:23px;border-color:#a9ffbb;border-style:solid}.c1{top:17px;left:17px;border-width:3px 0 0 3px}.c2{top:17px;right:17px;border-width:3px 3px 0 0}.c3{bottom:17px;left:17px;border-width:0 0 3px 3px}.c4{bottom:17px;right:17px;border-width:0 3px 3px 0}.scan-line{height:2px;width:82%;position:absolute;top:60%;background:#98ffa0;box-shadow:0 0 18px #9affb1}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:22px 0}.stat-card{background:#fff;padding:22px;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:10px}.stat-card span{color:#648174;font-size:13px;font-weight:600}.stat-card strong{font-size:35px;letter-spacing:-1px;line-height:1;color:#193c2c}.stat-card small{font-size:11px;color:#829288}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:18px}.two-cols.unequal{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px;box-shadow:var(--shadow);min-width:0}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.panel h3,.section-head h2,.capture-top h2{margin:0;color:#243d31;letter-spacing:-.35px}.panel h3{font-size:17px}.muted{font-size:11px;color:var(--muted)}.panel p,.section-head p,.capture-top p{color:#7e8d83;line-height:1.55;font-size:13px}.text-button{border:0;background:transparent;color:#287b4d;font-weight:700;padding:5px}.empty-state{border:1px dashed #d5e2d8;border-radius:10px;padding:37px 20px;text-align:center;color:#96a79d;font-size:13px}.empty-state.small{padding:22px}.category-row{display:grid;grid-template-columns:130px 1fr 35px;gap:9px;align-items:center;margin:14px 0;font-size:12px}.progress{height:9px;background:#edf3ed;border-radius:10px;overflow:hidden}.progress>div{height:100%;background:#4ba573;border-radius:10px}.section-head,.capture-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.section-head h2,.capture-top h2{font-size:22px}.section-head p,.capture-top p{margin:7px 0 0}.stack-form{display:flex;flex-direction:column;gap:16px}.stack-form label,.product-form label{font-size:12px;font-weight:700;color:#4b6457;display:flex;flex-direction:column;gap:8px}.stack-form input,.stack-form textarea,.product-form input:not([type="file"]),.product-form select,.product-form textarea,.scan-manual input,.filterbar input,.filterbar select{border:1px solid #dce7df;border-radius:9px;background:#fff;padding:11px 12px;min-height:41px;width:100%;color:#1e392a;font-weight:500}.stack-form textarea,.product-form textarea{resize:vertical}.product-form input::placeholder,.stack-form input::placeholder{color:#a6b3aa}.req{color:#bd5d48}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0 0 16px}.form-grid.three{grid-template-columns:1fr 1fr 1fr}.product-form>.panel{margin-bottom:16px}.form-panel{padding:25px}.form-section-title{display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:23px}.form-section-title h3{font-size:18px}.form-section-title p{margin:3px 0 0}.step-number{background:#e8f5eb;color:#28794b;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-weight:850;font-size:15px}.pill{background:#eff5f0;padding:6px 10px;color:#59876a;border-radius:30px;font-size:11px;font-weight:750;white-space:nowrap;margin-left:auto}.product-form>.panel>label{margin-bottom:16px}.product-form label small{font-size:10px;color:#99a69d;font-weight:500;line-height:1.4}.input-action{display:flex;gap:6px}.scan-small{width:47px;background:#e2f4e7;color:#276c43;border:0;border-radius:9px;font-size:24px;flex-shrink:0}.details{border:1px solid #dfe8e1;border-radius:10px;background:#f9fbfa;margin-top:15px}.details summary{cursor:pointer;padding:16px;color:#315d42;font-weight:750}.details-body{padding:0 16px 17px}.calculation-bar{display:flex;gap:30px;flex-wrap:wrap;background:#f0f8f2;border:1px solid #e0eee3;border-radius:10px;padding:15px 16px;margin:-1px 0 19px}.calculation-bar>div{color:#6e8875;font-size:12px}.calculation-bar strong{color:#26744b;font-size:16px;margin-left:10px}.hint{font-weight:500;color:#9aac9f}.photo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.photo-tile{border:2px dashed #d7e6da;border-radius:12px;min-height:150px;background:#fbfdfa;position:relative;align-items:center;justify-content:center;text-align:center;cursor:pointer;overflow:hidden;padding:15px}.photo-tile input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.photo-tile strong{font-size:12px;color:#355740;z-index:2}.photo-tile small{font-size:11px;z-index:2}.photo-symbol{font-size:29px;color:#72a785}.photo-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.76;pointer-events:none}.photo-tile:has(img:not(.hidden)) strong,.photo-tile:has(img:not(.hidden)) small,.photo-tile:has(img:not(.hidden)) .photo-symbol{background:#fff;padding:2px 5px;border-radius:4px;z-index:2;position:relative}.sticky-actions{background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px 22px;display:flex;justify-content:space-between;align-items:center;gap:20px;position:sticky;bottom:12px;box-shadow:0 12px 40px rgba(20,57,35,.12);z-index:5}.sticky-actions strong{display:block;font-size:13px}.sticky-actions small{display:block;color:#81978a;margin-top:3px;font-size:11px}.action-buttons{display:flex;gap:10px}.visit-card{border:1px solid #e2eee6;padding:14px;border-radius:10px;margin-bottom:10px;display:flex;justify-content:space-between;gap:10px;align-items:center}.visit-card.active-visit{border-color:#72b78c;background:#f2faf3}.visit-card strong{font-size:13px}.visit-card small{display:block;color:#809287;font-size:11px;margin-top:5px}.visit-actions{display:flex;gap:6px;align-items:center}.mini-btn{border:1px solid #ddebe1;color:#267347;background:#fff;border-radius:7px;padding:7px 9px;font-weight:750;font-size:11px;white-space:nowrap}.mini-btn.danger{color:#ae5d54;border-color:#f0ddd9}.filterbar{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:10px}.result-count{color:#91a298;margin:15px 0;font-size:12px}.table-wrap{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;min-width:950px}.data-table th{text-align:left;padding:11px 10px;color:#7d8b83;font-size:11px;font-weight:800;background:#f7faf8;white-space:nowrap}.data-table td{border-top:1px solid #edf1ed;padding:14px 10px;font-size:12px;vertical-align:middle}.data-table td strong{font-size:13px;display:block}.data-table td small{color:#95a79b;font-size:10px;display:block;margin-top:4px}.empty-row{text-align:center;color:#9aaa9d;padding:38px!important}.badge-outline{display:inline-block;color:#277248;border:1px solid #d9ebe0;padding:4px 8px;border-radius:20px;font-size:10px;font-weight:700}.export-panel{min-height:240px}.export-icon{background:#e1f4e6;color:#307846;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-size:21px;font-weight:850;margin-bottom:18px}.export-panel p{min-height:60px}.import-panel{display:flex;gap:18px;justify-content:space-between;align-items:center;margin-top:18px}.import-panel h3,.note-panel h3{margin-bottom:7px}.note-panel{margin-top:18px;background:#f5f9f5}.alert{padding:14px 16px;border-radius:10px;margin-bottom:16px}.warning{background:#fff8eb;color:#905b24;border:1px solid #f6e0ba}.banner{background:#f0f8ed;border:1px solid #cce5d1;border-radius:9px;padding:11px 15px;margin-bottom:16px;color:#316a47}.hidden{display:none!important}.modal-backdrop{position:fixed;inset:0;background:rgba(5,19,13,.65);display:grid;place-items:center;padding:16px;z-index:40;overflow:auto}.modal{background:#fff;width:min(530px,100%);border-radius:17px;padding:20px;max-height:96vh;overflow-y:auto}.modal-head{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:16px}.modal-head strong{font-size:19px}.modal-head p{font-size:12px;color:#839388;margin:5px 0 0}.icon-button{width:32px;height:32px;border-radius:50%;border:0;background:#f1f5f1;font-size:23px;color:#4c5f52}.scanner-screen{min-height:260px;border:1px dashed #bdd5c5;background:#11251e;border-radius:10px;overflow:hidden;position:relative}.scanner-screen video{width:100%;object-fit:cover}.scanner-info{padding:11px 0;text-align:center;font-size:12px;color:#6a8876}.scanner-controls{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.scanner-controls .btn{font-size:12px}.scan-manual{border-top:1px solid #ebefea;margin-top:20px;padding-top:15px}.scan-manual label{display:block;margin-bottom:8px;font-weight:700;font-size:12px}.toast{position:fixed;bottom:26px;right:26px;z-index:80;background:#183a2b;color:#fff;padding:13px 20px;border-radius:10px;max-width:min(90vw,390px);box-shadow:0 10px 24px #102e2244}.visit-row-info{flex:1;min-width:0}.visit-row-info strong{display:block;overflow-wrap:anywhere}.product-thumb{width:37px;height:37px;object-fit:cover;border-radius:7px;background:#eaf4ed;float:left;margin-right:9px}.file-exporting{opacity:.6;pointer-events:none}@media(max-width:1100px){.sidebar{width:205px}.hero{padding:31px}.hero-graphic{width:175px;min-width:175px}.barcode-art{font-size:27px}.photo-grid{grid-template-columns:repeat(2,1fr)}.form-grid.three{grid-template-columns:1fr 1fr}}@media(max-width:770px){.shell{display:block}.sidebar{width:100%;height:auto;position:sticky;top:0;z-index:12;padding:8px 8px 4px;gap:0;box-shadow:0 4px 20px #192f2111}.brand{padding:3px 10px 7px;border:0}.brand-mark{width:33px;height:33px;font-size:14px;border-radius:8px}.brand b{font-size:16px}.brand small{font-size:7px}.sidebar-label,.sidebar-foot{display:none}.main-nav{flex-direction:row;overflow-x:auto;gap:2px;scrollbar-width:none}.nav-button{padding:8px 9px;font-size:11px;white-space:nowrap;gap:5px;flex-shrink:0;border-radius:8px}.nav-icon{font-size:16px;width:18px}.topbar{padding:15px 16px}.topbar h1{font-size:19px}.current-visit{max-width:135px;font-size:10px}.topbar-actions{gap:7px}.btn-short{padding:9px;font-size:11px}.main-content{padding:17px 13px 80px}.hero{padding:26px 23px;min-height:0}.hero-graphic{display:none}.hero h2{font-size:29px}.hero p{font-size:12px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0}.stat-card{padding:16px;gap:7px}.stat-card strong{font-size:29px}.stat-card small{font-size:10px}.two-cols,.two-cols.unequal{grid-template-columns:1fr;gap:12px}.panel{padding:17px}.capture-top,.section-head{align-items:flex-start;flex-direction:column;gap:12px}.form-panel{padding:17px}.form-section-title{gap:10px}.form-section-title h3{font-size:16px}.form-section-title p{font-size:11px}.form-grid,.form-grid.three{grid-template-columns:1fr;gap:13px}.form-section-title .pill{font-size:9px}.sticky-actions{bottom:0;margin:0 -7px -4px;border-radius:11px 11px 0 0;padding:12px;flex-wrap:wrap;gap:8px}.sticky-actions>div:first-child{display:none}.action-buttons{width:100%}.action-buttons .btn{flex:1;padding:10px 8px;font-size:12px}.photo-grid{gap:8px}.photo-tile{min-height:124px}.filterbar{grid-template-columns:1fr 1fr}.filterbar input{grid-column:span 2}.import-panel{align-items:stretch;flex-direction:column}.calculation-bar{gap:10px}.category-row{grid-template-columns:105px 1fr 22px}.topbar .eyebrow{font-size:8px}.visit-actions{flex-wrap:wrap;justify-content:flex-end}.visit-card{padding:11px}.modal{padding:15px}.modal-backdrop{padding:8px}}@media(max-width:370px){.nav-button{font-size:10px;padding:8px 6px}.topbar h1{font-size:17px}.current-visit{display:none}.hero h2{font-size:26px}}
.shelf-insight{margin-top:18px}.shelf-insight .panel-heading p{margin:5px 0 0}.share-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:35px}.share-row{display:grid;grid-template-columns:130px 1fr 110px;gap:11px;align-items:center;margin:10px 0}.share-row b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#466652;font-size:12px}.share-row span{color:#648474;text-align:right;font-size:11px}.share-footnote{color:#91a098;font-size:11px;display:block;margin-top:12px}@media(max-width:900px){.share-summary{grid-template-columns:1fr}}@media(max-width:420px){.share-row{grid-template-columns:95px 1fr 100px;gap:6px}}
[hidden]{display:none!important}.cloud-login{min-height:100vh;display:grid;place-items:center;padding:24px;background:#edf3ee}.cloud-login-card{width:min(440px,100%);padding:32px}.cloud-brand{background:#172b27;color:white;border-radius:12px;padding:14px;margin-bottom:22px}.cloud-login-card h2{margin:12px 0}.cloud-login-card p{color:#52645d;line-height:1.5}.cloud-login-card .cloud-error{color:#a22d2d;overflow-wrap:anywhere}.cloud-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px;padding:12px 16px}.cloud-bar small{display:block;color:#61736a;margin-top:3px}.off-suggestion{padding:12px;background:#edf5ef;border:1px solid #c0d8c7;border-radius:10px;margin:12px 0}.off-suggestion p{margin:6px 0;overflow-wrap:anywhere}.off-suggestion small{display:block;margin-top:5px}.off-suggestion a{color:#215e40;text-decoration:underline}.cloud-bar .action-buttons{flex-wrap:wrap}.shell[inert]{pointer-events:none}

#reader video{display:block;width:100%;height:auto;object-fit:contain}#scanCamera{width:100%;margin:8px 0;padding:8px;border:1px solid #bdd5c5;border-radius:6px}#scanCamera[hidden]{display:none!important}#scannerModal .modal{max-height:94dvh;overflow-y:auto}
/* Fast scan */
.fast-check{display:flex!important;align-items:center;gap:8px;font-size:13px;line-height:1.4;margin:8px 0}.fast-check input{width:18px!important;height:18px;flex:none}.modal-backdrop.scan-docked{inset:auto 10px 100px auto;width:132px;padding:0;background:transparent;overflow:visible;display:block;z-index:35}.scan-docked .modal{padding:6px;width:132px;box-shadow:0 3px 18px #0003;overflow:hidden}.scan-docked .modal-head{margin:0 0 4px;align-items:center;gap:2px}.scan-docked .modal-head strong{font-size:10px}.scan-docked .modal-head p,.scan-docked .scanner-controls,.scan-docked .scan-manual,.scan-docked .turbo-toggle,.scan-docked #scanCamera{display:none!important}.scan-docked .scanner-screen{min-height:0;height:65px}.scan-docked video{height:65px;object-fit:cover}.scan-docked .scanner-info{font-size:10px;padding:4px 0}.scan-docked .icon-button{width:25px;height:25px;min-width:25px}.cloud-error{overflow-wrap:anywhere}
