body{margin:0;background:#f4f7f9;color:#142d3b;font-family:Arial,sans-serif;font-size:1rem;line-height:1.5}.desk-header{padding:1.2rem max(1.2rem,5vw);display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#fff;border-bottom:1px solid #d8e2e8}.desk-header .brand{font-weight:700;color:#142d3b;text-decoration:none}.desk-header nav{display:flex;gap:1rem;flex-wrap:wrap}.desk-header a{color:#164b67}.inventory-main{max-width:1500px;margin:auto;padding:2rem max(1.2rem,4vw) 4rem}.inventory-heading{max-width:52rem;margin-bottom:2rem}.inventory-heading h1{font-size:clamp(2rem,4vw,3.2rem);line-height:1.1;margin:.5rem 0 1rem}.inventory-layout{display:grid;grid-template-columns:minmax(18rem,1fr) minmax(0,2fr);gap:1.5rem;align-items:start}.inventory-panel{padding:1.6rem;border:1px solid #d8e2e8;border-radius:1rem;background:white}.inventory-panel h2{margin:.3rem 0 1rem;font-size:1.5rem}.inventory-panel label{display:block;font-weight:600;margin-top:1rem}.inventory-panel input,.inventory-panel select{display:block;box-sizing:border-box;width:100%;font:inherit;padding:.75rem;border:1px solid #aabfc9;border-radius:.4rem;margin-top:.4rem;background:white;color:#142d3b}.inventory-panel button{font:inherit;cursor:pointer}.inventory-panel .button{display:inline-block;background:#184c5c;color:#fff;border:1px solid #184c5c;border-radius:.5rem;padding:.7rem 1rem;text-decoration:none}.inventory-panel .secondary{background:white;color:#184c5c}.inventory-panel button:disabled{opacity:.6;cursor:wait}.inventory-panel form .button{width:100%;margin-top:1.5rem}.inventory-table-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.inventory-panel table{width:100%;border-collapse:collapse;min-width:30rem}.inventory-panel th,.inventory-panel td{padding:.9rem .55rem;border-bottom:1px solid #d8e2e8;text-align:right}.inventory-panel th:first-child,.inventory-panel td:first-child{text-align:left;min-width:12rem}.inventory-panel small{display:block;color:#516873}.inventory-panel .table-wrap{overflow:auto}.field-note,.inventory-message,#receive-message{font-size:.95rem;color:#516873}.error{color:#a23030!important}.eyebrow{font-size:.8rem;letter-spacing:.12em;font-weight:700;color:#35616d}.inventory-kit{font-size:.8rem;background:#e9f1f4;border-radius:.3rem;padding:.15rem .4rem;display:inline-block}input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #35aab7;outline-offset:3px}[hidden]{display:none!important}@media(max-width:900px){.inventory-layout{grid-template-columns:1fr}.desk-header{align-items:flex-start;flex-direction:column}}
.skip-link{position:absolute;left:12px;top:-60px;padding:10px 14px;background:#fff;color:#142d3b;z-index:100}.skip-link:focus{top:12px}.inventory-panel,.inventory-message,#receive-message{overflow-wrap:anywhere}#inventory-access .button{margin:8px 10px 0 0}#inventory-actor{font-weight:600}.inventory-panel button:disabled{cursor:not-allowed}

.receive-dates{min-width:0;border:1px solid #d8e2e8;border-radius:.5rem;padding:.85rem 1rem;margin:1.2rem 0 0}.receive-dates legend{font-weight:600;padding:0 .3rem}.receive-dates .field-note{margin:.6rem 0 0}.inventory-lot-row>td{padding:.3rem .55rem 1rem!important}.inventory-lots{font-size:.9375rem}.inventory-lots summary{cursor:pointer;color:#164b67;font-weight:600;padding:.5rem 0}.inventory-lots .table-wrap{max-width:100%;margin-top:.4rem;border:1px solid #d8e2e8;border-radius:.4rem}.inventory-panel .inventory-lots table{min-width:54rem;font-size:.875rem}.inventory-panel .inventory-lots th,.inventory-panel .inventory-lots td{text-align:left;min-width:6.5rem;padding:.7rem}.inventory-panel .inventory-lots th:first-child,.inventory-panel .inventory-lots td:first-child{min-width:10rem}.inventory-expiry{display:inline-block;padding:.2rem .4rem;border-radius:.3rem;background:#eef3f5;line-height:1.45}.inventory-expiry[data-expiry=expired],.inventory-expiry[data-expiry=expiring_soon],.inventory-expiry[data-expiry=unknown]{background:#fff2d6;color:#75500d}.inventory-lots summary:focus-visible{outline:3px solid #35aab7;outline-offset:3px}
.inventory-panel .inventory-batch-unavailable{color:#75500d;font-weight:600}.inventory-panel .inventory-internal-lot{max-width:19rem;margin-top:.35rem;font-size:.875rem;overflow-wrap:anywhere}.inventory-internal-lot span{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.inventory-panel input:disabled{background:#eef3f5;color:#536975}#receive-batch-note{margin:.6rem 0 0}

/* Receiving is the primary task; the stock list stays alongside it for reference. */
.inventory-heading{max-width:none;display:flex;align-items:center;justify-content:space-between;gap:2rem;margin-bottom:1.5rem}
.inventory-heading>div{max-width:49rem}.inventory-heading>.button{flex-shrink:0}
.inventory-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
.inventory-panel{min-width:0}.inventory-panel>p{margin:.6rem 0 1rem}.inventory-panel h2{margin:.3rem 0 .65rem}
.receive-step{border:0;border-top:1px solid #d8e2e8;min-width:0;margin:1.6rem 0 0;padding:.6rem 0 0}
.receive-step>legend{font-size:1.0625rem;font-weight:700;padding:0 .7rem 0 0;max-width:100%}
.receive-step>legend>span{display:inline-flex;align-items:center;justify-content:center;width:1.7rem;height:1.7rem;margin-right:.4rem;border-radius:50%;background:#e9f1f4;color:#184c5c;font-size:.875rem}
.receive-step label{font-size:.9375rem;margin-top:.8rem}.receive-step input,.receive-step select{font-size:1rem;min-height:48px}
.receive-step select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23245e80' stroke-width='1.8' fill='none'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:38px}
.receive-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.receive-quantity{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:1rem;align-items:end}
.receive-unit{margin:0;padding:.5rem 0;min-height:48px}.receive-context{display:flex;gap:1rem;align-items:flex-start;justify-content:space-between}
.receive-context .field-note{margin:.6rem 0 .1rem}.receive-context .text-button{flex-shrink:0;width:auto;margin:.4rem 0 0;padding:.25rem 0;min-height:44px;color:#164b67}
.receive-dates{padding:.75rem 1rem;margin:1.2rem 0 0;background:#f7fafb}.receive-dates legend{font-size:.9375rem}.receive-dates legend span{font-size:.875rem;font-weight:400;color:#516873}
.receive-dates .receive-fields{gap:.8rem}.receive-dates .field-note{font-size:.875rem}
.inventory-panel form #receive-submit{min-height:52px;font-size:1.0625rem;font-weight:700;margin-top:1.5rem}
#receive-match-count{margin:.5rem 0 0;font-size:.875rem}#receive-message:empty{display:none}#receive-message{margin:.8rem 0 0}
.receive-success{background:#edf7f1;border:1px solid #b6d6c4;border-radius:.65rem;padding:1.2rem;margin:1.4rem 0;color:#194f39}
.receive-success h3{font-size:1.15rem;line-height:1.4}.receive-success p{margin:.5rem 0 1rem;font-size:.9375rem}.receive-success .button{font-size:.9375rem;min-height:44px}
.inventory-explainer{margin:1rem 0;color:#516873;font-size:.9375rem}.inventory-explainer summary{color:#164b67;cursor:pointer;font-weight:600;padding:.4rem 0}.inventory-explainer p{margin:.7rem 0}
.inventory-panel th{font-size:.875rem}.inventory-table-heading .button{min-height:44px}.inventory-panel .table-wrap{max-width:100%}
@media(max-width:1100px){.inventory-layout{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}.receive-fields{grid-template-columns:1fr;gap:0}.receive-context{flex-wrap:wrap;gap:0}.receive-context .text-button{margin-top:0}}
@media(max-width:900px){.inventory-layout{grid-template-columns:1fr}.inventory-heading{align-items:flex-start;gap:1rem}.receive-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.receive-context{flex-wrap:nowrap;gap:1rem}}
@media(max-width:600px){.inventory-main{padding:1.6rem 1rem 3rem}.inventory-heading{flex-direction:column}.inventory-heading h1{font-size:2.5rem}.inventory-panel{padding:1.2rem}.receive-fields{grid-template-columns:1fr;gap:0}.receive-context{flex-wrap:wrap;gap:0}.receive-quantity{grid-template-columns:1fr}.receive-quantity .receive-unit{min-height:0;padding:0}.receive-dates{padding:.7rem .8rem}.inventory-table-heading{align-items:flex-start}}

/* AI prepares a separate, reviewable entry; the receiving form records it. */
.inventory-assistant{margin-bottom:1.5rem;border-top:4px solid #237580;background:#fbfdfd}
.assistant-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1.2rem}.assistant-heading .eyebrow{margin:0}.assistant-heading p:last-child{margin:.5rem 0 0;max-width:48rem}
.assistant-provider{flex-shrink:0;display:inline-block;border:1px solid #b8d5d8;border-radius:1rem;padding:.25rem .65rem;background:#edf6f5;color:#19545d;font-size:.8125rem;font-weight:600}
.assistant-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:1.5rem;align-items:start}
.inventory-assistant:not(.has-proposal) .assistant-layout{grid-template-columns:minmax(0,1fr)}.inventory-assistant:not(.has-proposal) #assistant-form{max-width:56rem}
.assistant-layout>div,.assistant-response{min-width:0}.assistant-layout>div:only-child{max-width:54rem}
.inventory-panel textarea{display:block;box-sizing:border-box;resize:vertical;width:100%;min-height:108px;border:1px solid #aabfc9;border-radius:.5rem;background:#fff;color:#142d3b;padding:.85rem;font:inherit;line-height:1.55;margin-top:.5rem}
.inventory-panel textarea:disabled{background:#eef3f5;color:#536975}.inventory-panel textarea:focus-visible{outline:3px solid #35aab7;outline-offset:3px}
.assistant-actions{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.inventory-panel #assistant-form .button{width:auto;margin-top:0;min-height:48px;font-weight:700}
.inventory-panel .assistant-actions .text-button,.inventory-panel #assistant-check{color:#164b67;min-height:44px;padding:.45rem 0;font-size:.9375rem;background:transparent;border:0;text-decoration:underline;text-underline-offset:3px}
#assistant-status{margin:.85rem 0 .4rem}#assistant-check{margin-bottom:.5rem}#assistant-help{margin:.6rem 0 1rem;font-size:.875rem}
.assistant-response{background:#fff;border:1px solid #c9dbdf;border-radius:.65rem;padding:1.1rem}.assistant-response h3{font-size:1.125rem;margin:0 0 .5rem}.assistant-response h4{font-size:.9375rem;margin:1rem 0 .4rem}.assistant-response p{margin:.5rem 0}.assistant-response ul{margin:.5rem 0;padding-left:1.2rem}.assistant-response li+li{margin-top:.5rem}.assistant-response #assistant-add{min-height:48px;margin-top:.7rem;font-weight:700}
.assistant-review{margin:1rem 0 0;font-size:.9375rem}.assistant-review>div{display:grid;grid-template-columns:minmax(8rem,.85fr) minmax(0,1.2fr);gap:.9rem;border-top:1px solid #e0e8eb;padding:.55rem 0}.assistant-review dt{color:#516873}.assistant-review dd{font-weight:600;margin:0;overflow-wrap:anywhere}
.assistant-warnings{background:#fff6e2;color:#725016;border-radius:.4rem;padding:.1rem .8rem .5rem;margin-top:.8rem;font-size:.875rem}.assistant-warnings h4{margin-top:.6rem}.assistant-history{margin-top:1rem;color:#516873;font-size:.875rem}.assistant-history summary{cursor:pointer;color:#164b67;padding:.4rem 0;font-weight:600}.assistant-history ol{padding-left:1.4rem;max-height:16rem;overflow:auto}.assistant-history li{white-space:pre-wrap;padding:.3rem 0;overflow-wrap:anywhere}
#receive-received-note{margin:.45rem 0 0;font-size:.875rem}
@media(max-width:900px){.assistant-layout{grid-template-columns:1fr;gap:1rem}.assistant-heading{gap:1rem}.assistant-response{max-width:none}}
@media(max-width:600px){.assistant-heading{flex-direction:column}.assistant-actions{align-items:stretch;gap:.5rem}.inventory-panel #assistant-form .button{flex:1 1 100%;width:100%}.assistant-actions .text-button{width:100%}.assistant-review>div{grid-template-columns:1fr;gap:.15rem}.assistant-response{padding:1rem}.assistant-response #assistant-add{width:100%}}

/* Scanning only fills the receiving location; labels are created on this device. */
.inventory-staff-tools{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:0 0 1rem}.inventory-staff-tools .field-note{margin:0}.inventory-staff-tools .button{font:inherit;min-height:44px;padding:.6rem .9rem;cursor:pointer}.inventory-staff-tools button:disabled{opacity:.6;cursor:not-allowed}
.inventory-panel form #receive-scan-location{margin:.55rem 0 0;width:auto;min-height:44px;font-size:.9375rem}.receive-location-field{min-width:0}.receive-location-field .field-note{margin:.45rem 0 0;font-size:.875rem}.location-scan-status:empty{display:none}
.assistant-location{display:flex;align-items:center;gap:.8rem;margin:.8rem 0 1rem}.assistant-location .field-note{margin:0;font-size:.875rem;overflow-wrap:anywhere}.inventory-panel #assistant-form #assistant-scan-location{flex:none;width:auto;font-size:.9375rem;font-weight:400;white-space:nowrap;min-height:44px}.assistant-location + .location-scan-status{margin:-.3rem 0 1rem;font-size:.875rem}
.inventory-location-label-dialog{box-sizing:border-box;width:min(62rem,calc(100% - 2rem));max-height:calc(100dvh - 2rem);padding:1.5rem;border:1px solid #c7d8df;border-radius:.8rem;background:#fff;color:#142d3b;overflow:auto;overscroll-behavior:contain}.inventory-location-label-dialog::backdrop{background:rgba(8,28,40,.65)}.location-label-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.location-label-heading h2{margin:0;font-size:1.5rem}.inventory-location-label-dialog p{overflow-wrap:anywhere}.inventory-location-label-dialog label{display:block;font-weight:600;margin-top:1rem}.inventory-location-label-dialog textarea{display:block;box-sizing:border-box;width:100%;font:inherit;font-size:1rem;line-height:1.5;resize:vertical;padding:.75rem;margin-top:.5rem;border:1px solid #aabfc9;border-radius:.4rem;color:#142d3b;background:#fff}.inventory-location-label-dialog textarea:focus-visible{outline:3px solid #35aab7;outline-offset:3px}.inventory-location-label-dialog .button{box-sizing:border-box;font:inherit;font-size:1rem;min-height:44px;padding:.65rem 1rem;border:1px solid #184c5c;border-radius:.5rem;background:#184c5c;color:#fff;cursor:pointer}.inventory-location-label-dialog .button.secondary{background:#fff;color:#184c5c}.inventory-location-label-dialog button:disabled{opacity:.6;cursor:not-allowed}.location-label-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1rem}.location-label-print-actions{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-top:1px solid #d8e2e8;padding-top:.5rem;margin-top:1rem}.location-label-print-actions .field-note{max-width:42rem}.location-label-print-actions .button{flex-shrink:0}.location-label-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:1rem}.inventory-location-label{box-sizing:border-box;break-inside:avoid;page-break-inside:avoid;text-align:center;background:#fff;color:#000;border:1px dashed #aabfc9;border-radius:0;padding:.2in;min-width:0}.location-label-caption{margin:0 0 .07in;font:700 9pt/1.25 Arial,sans-serif;letter-spacing:.04em}.inventory-location-label img{display:block;box-sizing:content-box;width:1.7in;max-width:100%;height:auto;aspect-ratio:1;margin:0 auto;image-rendering:pixelated}.location-label-code{margin:.06in 0 0;font:700 20pt/1.2 Arial,sans-serif;overflow-wrap:anywhere;white-space:pre-wrap}.inventory-location-print-sheet{display:none}
@media(max-width:600px){.inventory-staff-tools{align-items:flex-start}.assistant-location{align-items:flex-start;flex-direction:column;gap:.5rem}.inventory-location-label-dialog{padding:1rem;width:calc(100% - 1rem);max-height:calc(100dvh - 1rem)}.location-label-actions,.location-label-print-actions{align-items:stretch;flex-direction:column}.location-label-actions .button,.location-label-print-actions .button{width:100%}.location-label-grid{grid-template-columns:1fr}}
@media print{body.inventory-print-location-labels{margin:0!important;background:#fff!important}body.inventory-print-location-labels>*{display:none!important}body.inventory-print-location-labels dialog::backdrop{display:none!important;background:transparent!important}body.inventory-print-location-labels>#inventory-location-print-sheet{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:.15in;max-width:7.2in;margin:0 auto}body.inventory-print-location-labels .inventory-location-label{break-inside:avoid;page-break-inside:avoid;padding:.15in;color:#000!important;background:#fff!important;border-color:#aaa}body.inventory-print-location-labels .inventory-location-label img{width:1.7in;height:1.7in;max-width:none}body.inventory-print-location-labels .location-label-code{font-size:20pt}body.inventory-print-location-labels .location-label-caption{font-size:9pt}}
