:root{color-scheme:light;--ink:#112a31;--muted:#425a60;--accent:#00574f;--paper:#f3f7f6;--line:#b5c9c4;font:16px/1.5 system-ui,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}main{max-width:960px;margin:auto;padding:clamp(16px,4vw,40px)}main.login{max-width:570px}h1,h2,h3,p{margin:0 0 .65em}h1{font-size:clamp(1.75rem,5vw,2.6rem);line-height:1.12}h2{font-size:1.4rem}h3{font-size:1.08rem}.badge{color:var(--accent);font-size:.78rem;letter-spacing:.12em;font-weight:800}.banner{padding:12px;border-radius:8px;background:#e2f0e8}.muted{color:var(--muted)}header{display:flex;align-items:start;justify-content:space-between;gap:10px}nav,.modes,.actions{display:flex;flex-wrap:wrap;gap:8px}nav,.modes{margin:1rem 0}button,input,select{font:inherit;border:1px solid var(--line);border-radius:7px;padding:8px 12px;background:white;min-height:44px;color:var(--ink)}button{font-weight:650;cursor:pointer}button:hover{border-color:var(--accent)}button[aria-pressed=true],form button:not([type=button]){background:var(--accent);color:white;border-color:var(--accent)}button:disabled{opacity:.6;cursor:wait}:focus-visible{outline:3px solid #017674;outline-offset:2px}form,.card{border:1px solid var(--line);background:white;padding:14px;border-radius:10px;margin:12px 0}label{display:block;font-weight:600;margin-bottom:10px}label input,label select{display:block;width:100%;margin-top:4px;font-weight:400}main>section>label{max-width:420px}.card p:last-child,label:last-child{margin-bottom:0}section,output,p{overflow-wrap:anywhere}output{font:1rem/1.5 ui-monospace,monospace;display:block;border:1px solid var(--line);padding:12px;border-radius:7px;background:white;user-select:all}.grid,.status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px}.status-grid h3,.status-grid>.wide,.wide{grid-column:1/-1}.status-grid ul{padding-left:1.25rem;margin:0}.status-grid li+li{margin-top:.4rem}#notice:empty{display:none}#notice{padding:10px;border-left:3px solid var(--accent)}@media(max-width:540px){.grid,.status-grid{grid-template-columns:minmax(0,1fr)}header button{flex-shrink:0}nav{gap:5px}nav button{padding:8px}.card{margin:6px 0}}

/* Find Products · isolated Research workspace */
.research-intro{margin:1.15rem 0}.research-intro h2{font-size:clamp(1.55rem,5vw,2.1rem);margin-bottom:.25em}.research-intro>p:last-child{color:var(--muted);margin-bottom:0}
.research-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:.75rem;padding:1rem;background:white;border:1px solid var(--line);border-radius:.75rem;margin:.9rem 0}
.research-form .category-field{grid-column:span 2}.research-form label{margin:0;min-width:0}.research-form label>*{width:100%;min-width:0}.research-actions{display:flex;gap:.45rem;flex-wrap:wrap;grid-column:1/-1}
.research-actions button[type=submit]{color:white;background:var(--accent);border-color:var(--accent)}.research-muted{color:var(--muted);font-size:.89rem;margin:.6rem 0}
.research-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.research-card{display:flex;align-items:flex-start;flex-direction:column;min-width:0;overflow-wrap:anywhere}.research-card h3{margin:.6rem 0 .22rem;line-height:1.25}.research-card a{color:var(--accent);font-weight:650}.research-card .research-identity{margin:0 0 .6rem;color:var(--muted)}
.research-meta{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;font-size:.8rem}.research-tag,.research-code{display:inline-block;background:#e8f3ef;padding:.14rem .45rem;border-radius:.35rem;font-weight:650}.research-code{background:#eef1f3;font-variant-numeric:tabular-nums}.research-tag.research-caution,.research-safety{background:#fff2d9;color:#653b00}
.research-facts{display:grid;width:100%;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:.28rem .55rem;margin:.15rem 0;padding:.65rem 0;border-block:1px solid var(--line);font-size:.90rem}.research-facts dt{color:var(--muted)}.research-facts dd{margin:0;font-weight:650}
.research-supplier,.research-safety{width:100%;font-size:.89rem;padding:.55rem .65rem;border-radius:.4rem;margin:0 0 .55rem}.research-supplier{background:#f1f6f4;color:var(--ink)}.research-supplier p{margin:0}.research-save{margin-top:auto}.research-saved{margin-top:1rem;padding:.85rem;background:white;border:1px solid var(--line);border-radius:.75rem}.research-saved summary{cursor:pointer;color:var(--accent);font-weight:700;min-height:32px}.research-saved[open] summary{margin-bottom:.5rem}
@media(max-width:660px){.research-form{grid-template-columns:repeat(2,minmax(0,1fr));padding:.75rem}.research-results{grid-template-columns:minmax(0,1fr)}}

#invoice-search label{grid-column:1/-1}#invoice-detail a{display:inline-flex;align-items:center;min-height:44px;color:var(--accent);font-weight:650}#invoice-detail h3:not(:first-child){margin-top:.75rem}#invoice-detail li+li{margin-top:.35rem}

#vendor-workbench{padding-bottom:1rem}#vendor-workbench>label{display:grid;max-width:33rem;gap:.4rem}.vendor-copy{overflow-wrap:anywhere}.vendor-grid label{min-width:0}.vendor-warning{color:#9a4400}.vendor-details{margin:.6rem 0;padding:.7rem 1rem;border:1px solid #ccd6d9;border-radius:.55rem}.vendor-details summary,.vendor-product summary,.legacy-catalog summary{cursor:pointer;font-weight:650}.vendor-filter{display:flex;gap:.65rem;align-items:flex-end;flex-wrap:wrap}.vendor-filter label{display:grid;gap:.3rem;min-width:min(100%,16rem)}.vendor-product{margin:.55rem 0;overflow-wrap:anywhere}.vendor-product h4{margin:0}.vendor-candidate{padding:.5rem;border-top:1px solid #ccd6d9;margin:.4rem 0}.vendor-candidate button{margin:.25rem .4rem .25rem 0}.vendor-grid textarea{font:inherit;padding:.6rem;border:1px solid #b4c3cd;border-radius:.4rem;max-width:100%}.vendor-status:empty{display:none}.vendor-examples{max-height:10rem;overflow:auto}#vendor-workbench input[type=file]{max-width:100%}

.wh-heading{display:flex;gap:1rem;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}.wh-heading p{max-width:48ch}.wh-nav{gap:.45rem;margin:.7rem 0}.wh-summary{margin:.55rem 0;background:#fff6dc;color:#543412;border-color:#d2a862;text-align:left}.wh-quantity{font-size:1.05rem;color:#153b42;font-weight:700}.wh-item{margin:.65rem 0;overflow-wrap:anywhere}.wh-item p{margin:.35rem 0}.wh-expiry{border-left:.25rem solid #a7531c;padding:.25rem .55rem;color:#68370f;background:#fff4dc;font-weight:700}.wh-card{margin:.6rem 0;background:#f1f7fa;padding:.8rem;border:1px solid #c3d3db;border-radius:.65rem}.wh-confirm{display:flex;align-items:center;gap:.65rem}.wh-confirm input[type=checkbox]{min-width:1.15rem;width:1.15rem;min-height:1.15rem;padding:0;margin:0}.wh-calc{padding:.55rem;background:#e5f0f1;color:#1e4449;border-radius:.35rem}.wh-search{margin:0}.wh-search label{min-width:0}.wh-search input{max-width:100%}#wh-actions{flex-wrap:wrap;gap:.5rem;align-items:end}#wh-editor{margin:.7rem 0}#wh-message:empty{display:none}@media(max-width:560px){.wh-heading{gap:.35rem}.wh-search{max-width:100%;width:100%;align-items:end}.wh-search label{flex:1}.wh-nav button{flex:1 1 37%}}

.quick-go{align-items:end;gap:.65rem;margin:.55rem 0 .9rem}.quick-go input{width:min(100%,20rem)}.quick-go label{min-width:0}.quick-go p:empty{display:none}.work-tabs{flex-wrap:wrap;gap:.45rem}.work-row{margin:.55rem 0;overflow-wrap:anywhere}.work-row h3{margin:.15rem 0 .25rem}.work-row p{margin:.32rem 0}.work-qty{color:#173c42;font-weight:650}.work-warning{color:#68370f;border-left:.25rem solid #a7531c;padding:.3rem .55rem;background:#fff4dc}.work-row .muted{font-size:.9rem}@media(max-width:560px){.quick-go{max-width:100%;align-items:end;flex-wrap:wrap}.quick-go label{flex:1 1 12rem}.quick-go p{width:100%;margin:.3rem 0}.work-tabs button{flex:1 1 36%}}

.supplier-sheets{border-top:1px solid #cad9dc;margin-top:1.5rem;padding-top:.65rem;scroll-margin-top:1rem}.sheet-entry{border:1px solid #cad9dc;border-radius:.65rem;margin:.8rem 0;padding:.55rem .8rem;min-inline-size:0}.sheet-entry legend{font-weight:700;padding:0 .35rem;overflow-wrap:anywhere}.sheet-check{display:flex;align-items:flex-start;gap:.5rem;margin:.85rem 0}.sheet-check input{width:auto;flex:0 0 auto}.sheet-entry label input[type=checkbox]{width:auto}.supplier-sheets input[type=file]{width:100%;max-width:100%}.supplier-sheets #sheet-note{min-height:1.3em}.supplier-sheets li{margin:.3rem 0;overflow-wrap:anywhere}

.sheet-mail{display:grid;gap:.65rem;max-width:52rem}.sheet-mail input,.sheet-mail textarea{width:100%;max-width:100%}.sheet-mail textarea{box-sizing:border-box;white-space:pre-wrap;overflow-wrap:anywhere;resize:vertical;font:inherit;line-height:1.4;padding:.55rem .7rem}.sheet-mail button{justify-self:start}

/* Receiving keeps the saved file, count and review readable on their own. */
.rv-columns{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:1rem;align-items:start}
.rv-panel,.rv-line,.rv-review{border:1px solid var(--line,#d4dce0);border-radius:12px;padding:1rem;min-width:0;overflow-wrap:anywhere}
.rv-panel>h3,.rv-review>h4{margin-top:0}.rv-panel label,.rv-line label{margin-block:.45rem}
.rv-summary{display:flex;align-items:center;justify-content:space-between;gap:.65rem;border-top:1px solid var(--line,#d4dce0);padding:.55rem 0}.rv-summary p{margin:.22rem 0 0}
.rv-detail,.rv-lines,.rv-review{margin-top:1rem}.rv-line{margin:0 0 .65rem}.rv-line details{margin:.75rem 0}.rv-line legend{font-weight:700}
.rv-confirm{display:flex;gap:.4rem;align-items:start;margin-bottom:.8rem}.rv-confirm input{flex:0 0 auto;width:auto}.rv-review{background:var(--panel,#f5f7fa)}
.rv-fields input,.rv-fields select{min-width:0;max-width:100%}.rv-actions{margin-top:.75rem}
@media(max-width:650px){.rv-columns{grid-template-columns:minmax(0,1fr)}.rv-summary{align-items:start;flex-wrap:wrap}.rv-fields{grid-template-columns:minmax(0,1fr)}.rv-panel,.rv-line,.rv-review{padding:.75rem}}

.pk-controls{border-block:1px solid var(--line,#d4dce0);padding:.55rem 0}.pk-compact{margin:.65rem 0}.pk-lot{margin:.45rem 0}.pk-items li{margin:.55rem 0}.pk-items button{margin:.2rem .4rem}.pk-reset{margin-top:1rem}.pk-controls input,.pk-controls select,.pk-compact input{max-width:100%}@media(max-width:650px){.pk-controls,.pk-compact{gap:.45rem}.pk-compact label{width:100%}}

.ship-handoff{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.75rem 1.1rem;border:1px solid var(--line,#d4dce0);border-radius:12px;padding:.85rem 1rem;margin:0 0 1rem;background:#eef6f5;color:#163433}.ship-handoff h3{margin:0 0 .3rem}.ship-handoff p{margin:0;max-width:49ch;line-height:1.45}.ship-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.5rem .85rem;border:1px solid #214945;border-radius:8px;color:#153f3b;background:#fff;text-decoration:underline;text-underline-offset:.17em;font-weight:650}.ship-link:focus-visible{outline:3px solid #164d88;outline-offset:2px}

.login .modes a{display:inline-flex;align-items:center;padding:.55rem .7rem;border-radius:7px;text-underline-offset:.14em}
