.warehouse-manual-receiving,.warehouse-category-manager{min-width:0;overflow-wrap:anywhere}
.warehouse-manual-receiving [hidden]{display:none!important}
.warehouse-manual-receiving label:has(input[type="checkbox"]),.warehouse-category-manager label:has(input[type="checkbox"]){display:flex;flex-direction:row;align-items:center;gap:8px}
.warehouse-manual-receiving input[type="checkbox"],.warehouse-category-manager input[type="checkbox"]{width:auto;margin:0}
.warehouse-manual-receiving ul,.warehouse-category-manager ul{padding-left:20px}
.warehouse-manual-receiving li button,.warehouse-category-manager li button{max-width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere}
.warehouse-inbound-operations:has([data-manual-subpage="true"])>nav,.warehouse-inbound-operations:has([data-manual-subpage="true"])>details{display:none}
@media(max-width:700px){.warehouse-manual-receiving button[data-mobile-back],.warehouse-category-manager button[data-mobile-back]{display:none!important}}
@media(min-width:701px){.warehouse-inbound-operations .warehouse-manual-receiving[data-manual-subpage] button[data-mobile-back],html body .warehouse-category-manager button[data-mobile-back]{display:inline-flex!important}}
@media(max-width:700px){.warehouse-manual-receiving [data-mobile-page-caption],.warehouse-category-manager [data-mobile-page-caption]{display:none!important}}
@media(min-width:701px){html body .warehouse-category-manager h2[data-mobile-page-caption],html body .warehouse-manual-receiving h3[data-mobile-page-caption]{display:block!important}}

.warehouse-manual-receiving .warehouse-product-editor{padding:20px}
.warehouse-product-editor .warehouse-editor-intro{margin:0 0 16px;color:#58677a}
.warehouse-manual-receiving .warehouse-product-editor>.warehouse-form>fieldset{padding:0;margin:0;border:0;background:transparent;min-width:0}
.warehouse-product-editor .warehouse-editor-sections{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.warehouse-product-editor .warehouse-editor-section{min-width:0;border:1px solid #dde3ea;border-radius:10px;padding:18px;background:#fff}
.warehouse-product-editor .warehouse-editor-section h3{margin:0 0 16px;font-size:17px;font-weight:600;color:#172e49}
.warehouse-product-editor .warehouse-editor-section label{display:flex;flex-direction:column;gap:8px;margin:0 0 12px}
.warehouse-product-editor .warehouse-editor-section input,.warehouse-product-editor .warehouse-editor-section select,.warehouse-product-editor .warehouse-editor-section textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%;font:inherit;border:1px solid #bac6d4;border-radius:6px;padding:10px;background:#fff;color:#172e49}
.warehouse-product-editor .warehouse-editor-section textarea{min-height:120px;resize:vertical}
.warehouse-product-editor .warehouse-editor-section input[type="file"]{font-size:14px}
.warehouse-product-editor .warehouse-editor-section button,.warehouse-product-editor .warehouse-editor-save button{min-height:40px;border:1px solid #b9c7d6;background:#f6f8fb;border-radius:6px;padding:8px 12px;margin:4px 6px 4px 0;color:#173a60;font:inherit;white-space:normal}
.warehouse-product-editor button:disabled{opacity:.55;cursor:default}
.warehouse-product-editor .warehouse-field-suggestion{border-left:3px solid #9bb5cf;padding:8px 12px;margin:12px 0;background:#f5f8fc;color:#45586f}
.warehouse-product-editor .warehouse-field-suggestion p{margin:4px 0 8px;white-space:pre-wrap}
.warehouse-product-editor .warehouse-editor-images{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:12px;margin:12px 0}
.warehouse-product-editor .warehouse-editor-images figure{min-width:0;margin:0;border:1px solid #e0e6ed;border-radius:6px;padding:8px;text-align:center}
.warehouse-product-editor .warehouse-editor-images img{width:100%;height:120px;object-fit:contain}
.warehouse-product-editor .warehouse-editor-images figcaption{margin:6px 0}
.warehouse-product-editor .warehouse-editor-images button{font-size:13px;padding:6px;min-height:34px}
.warehouse-product-editor .warehouse-editor-section .warehouse-form-grid{grid-template-columns:minmax(0,1fr)}
.warehouse-product-editor .warehouse-editor-save{padding-top:16px}
.warehouse-product-editor .warehouse-editor-save>button{background:#173a60;color:#fff;border-color:#173a60;padding:12px 20px}
@media(max-width:700px){.warehouse-manual-receiving .warehouse-product-editor{padding:12px}.warehouse-product-editor .warehouse-editor-sections{grid-template-columns:minmax(0,1fr);gap:12px}.warehouse-product-editor .warehouse-editor-section{padding:14px}.warehouse-product-editor .warehouse-editor-section h3{font-size:16px}.warehouse-product-editor .warehouse-editor-images{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(min-width:701px){.warehouse-product-editor [data-product-field="title"],.warehouse-product-editor [data-product-field="applications"]{grid-column:1/-1}}

.warehouse-product-editor .warehouse-field-main{display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:10px;align-items:start}
.warehouse-product-editor .warehouse-field-input{min-width:0}
.warehouse-product-editor .warehouse-field-controls{display:flex;flex-direction:column;gap:8px;padding-top:22px;min-width:0}
.warehouse-product-editor .warehouse-field-controls button{margin:0;width:100%;min-height:40px}
.warehouse-product-editor .warehouse-field-controls small{font-size:12px;color:#58677a;overflow-wrap:anywhere}
@media(max-width:700px){.warehouse-product-editor .warehouse-field-main{grid-template-columns:minmax(0,1fr) 58px;gap:8px}.warehouse-product-editor .warehouse-field-controls button{padding:8px 4px;font-size:14px}}

/* Single-page intake: the user's sketch is a vertical form on both devices. */
.warehouse-single-page-intake .warehouse-product-editor{border:0;background:#fff;padding:12px;box-shadow:none}
.warehouse-single-page-intake .warehouse-editor-sections{display:flex;flex-direction:column;gap:0}
.warehouse-single-page-intake .warehouse-editor-section{box-sizing:border-box;width:100%;border:0;border-bottom:1px solid #e1e5ea;border-radius:0;padding:18px 0}
.warehouse-single-page-intake .warehouse-editor-section h3{font-size:16px;font-weight:400;margin:0 0 10px}
.warehouse-single-page-intake .warehouse-editor-section label{font-size:14px}
.warehouse-single-page-intake .warehouse-field-controls{padding-top:22px}
.warehouse-single-page-intake .warehouse-form-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px;align-items:end}
.warehouse-single-page-intake .warehouse-intake-stock-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0}
.warehouse-single-page-intake .warehouse-intake-stock-grid>details,.warehouse-single-page-intake .warehouse-intake-stock-grid>p{grid-column:1/-1}
.warehouse-single-page-intake .warehouse-intake-stock-grid select,.warehouse-single-page-intake .warehouse-intake-stock-grid input{width:100%;box-sizing:border-box;min-width:0}
.warehouse-single-page-intake summary,.warehouse-intake-legacy>summary{padding:12px 0;cursor:pointer}
.warehouse-single-page-intake .warehouse-editor-images{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px}
.warehouse-single-page-intake .warehouse-editor-images img{height:100px}
.warehouse-single-page-intake .warehouse-editor-save{display:flex;justify-content:flex-end;padding-top:16px}
.warehouse-single-page-intake .warehouse-editor-save button{min-width:150px;min-height:44px}
.warehouse-single-page-intake .warehouse-intake-complete{border:1px solid #b7d5be;padding:12px;margin:16px 0}
@media(max-width:700px){.warehouse-single-page-intake .warehouse-product-editor{padding:8px}.warehouse-single-page-intake .warehouse-form-grid{grid-template-columns:minmax(0,1fr)!important}.warehouse-single-page-intake .warehouse-intake-stock-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-single-page-intake .warehouse-intake-stock-grid label{min-width:0}.warehouse-single-page-intake .warehouse-editor-images{grid-template-columns:repeat(2,minmax(0,1fr))}}
.warehouse-single-page-intake .warehouse-form-grid.warehouse-parameter-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,.65fr)!important}
.warehouse-single-page-intake .warehouse-image-replace{display:block!important;position:relative;margin:4px 0!important;padding:6px;border:1px solid #b9c7d6;border-radius:6px;font-size:13px!important;cursor:pointer}
.warehouse-single-page-intake .warehouse-image-replace input{position:absolute;width:1px!important;height:1px;padding:0!important;clip-path:inset(50%)}
.warehouse-single-page-intake .warehouse-product-editor>.warehouse-form{display:block;padding:0;margin:0;background:transparent;border:0;max-width:none}
.warehouse-single-page-intake .warehouse-field-main{grid-template-columns:minmax(0,1fr) 120px}
.warehouse-single-page-intake .warehouse-field-controls{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.warehouse-single-page-intake .warehouse-field-controls small{grid-column:1/-1}
@media(max-width:700px){.warehouse-single-page-intake .warehouse-field-main{grid-template-columns:minmax(0,1fr) 84px}.warehouse-single-page-intake .warehouse-field-controls button{font-size:12px;padding:6px 2px;min-height:40px}}

/* Original photo-upload controls, scoped to the second field only. */
.warehouse-single-page-intake .warehouse-original-upload-reuse .warehouse-reused-photo-gallery button{max-width:100%;box-sizing:border-box;margin:0}
.warehouse-single-page-intake .warehouse-original-upload-reuse .warehouse-photo-desktop-upload-copy{display:none}
.warehouse-single-page-intake .warehouse-original-upload-reuse .warehouse-photo-upload-label{font-size:13px}
.warehouse-single-page-intake .warehouse-original-upload-reuse figure>button:first-child{border:0;background:transparent}
.warehouse-single-page-intake .warehouse-original-upload-reuse [data-delete-photo]{min-height:24px;width:24px;padding:0;line-height:20px;background:#fff}
.warehouse-reused-photo-picker{position:fixed;inset:auto 0 0;margin:0 auto;box-sizing:border-box;width:100%;max-width:520px;border:0;border-radius:16px 16px 0 0;padding:24px;background:#fff;color:#222}
.warehouse-reused-photo-picker::backdrop,.warehouse-reused-photo-zoom::backdrop{background:#0006}
.warehouse-reused-photo-picker button{display:block;width:100%;min-height:44px;margin:8px 0}
.warehouse-reused-photo-zoom{box-sizing:border-box;border:0;border-radius:10px;max-width:95vw;max-height:90dvh;padding:12px}
.warehouse-reused-photo-zoom img{display:block;max-width:100%;max-height:75dvh;object-fit:contain}
@media(min-width:701px){.warehouse-single-page-intake .warehouse-original-upload-reuse .warehouse-photo-desktop-upload-copy{display:flex;flex-direction:column;gap:6px}.warehouse-single-page-intake .warehouse-original-upload-reuse .warehouse-photo-upload-label{display:none}}
.warehouse-single-page-intake [data-product-field="images"] .warehouse-field-main{grid-template-columns:minmax(0,1fr)}
.warehouse-single-page-intake [data-product-field="images"] .warehouse-field-controls{width:120px;padding-top:0;justify-self:end}
.warehouse-single-page-intake .warehouse-original-upload-reuse{width:100%;max-width:640px}
.warehouse-single-page-intake .warehouse-original-upload-reuse .warehouse-reused-photo-gallery>button{min-height:110px}
.warehouse-single-page-intake .warehouse-original-upload-reuse .warehouse-reused-photo-gallery>button>img{flex-shrink:0}
@media(max-width:700px){.warehouse-single-page-intake .warehouse-original-upload-reuse .warehouse-photo-upload-label{font-size:12px;line-height:1.3}}
@media(max-width:700px){html body #root .warehouse-single-page-intake [data-product-field="images"] .warehouse-original-upload-reuse .warehouse-photo-upload-label{font-size:12px!important;line-height:1.3!important}html body #root .warehouse-single-page-intake .warehouse-reused-photo-gallery>button{gap:8px!important}}
@media(min-width:701px){.warehouse-single-page-intake .warehouse-original-upload-reuse .warehouse-reused-photo-gallery>button{min-height:200px}}

/* The original AI composer and tools, connected to the single intake sheet. */
.warehouse-single-page-intake .warehouse-product-editor{padding-bottom:100px}
.warehouse-manual-ai{min-width:0;margin-top:20px;padding-top:16px;border-top:1px solid #e1e5ea;overflow-wrap:anywhere}
.warehouse-manual-ai p{white-space:pre-wrap}
.warehouse-manual-ai [data-photo-assistant-dock]{min-width:0;padding-top:12px}
@media(min-width:701px){.warehouse-manual-ai [data-photo-assistant-dock] .warehouse-intake-composer{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;width:100%}}
@media(max-width:700px){.warehouse-manual-ai [data-photo-assistant-dock]{display:none}}
.warehouse-single-page-intake .warehouse-original-upload-reuse .warehouse-photo-retake-badge{position:static;display:block;pointer-events:none;max-width:100%;font-size:12px;line-height:1.4;white-space:normal}

/* Desktop category levels stay on one left-aligned, content-sized row. */
@media(min-width:701px){.warehouse-product-editor .warehouse-category-cascade{display:flex;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start;gap:12px;min-width:0}.warehouse-product-editor .warehouse-category-cascade>label{flex:0 1 auto;align-items:flex-start;min-width:0;max-width:100%}.warehouse-product-editor .warehouse-category-cascade select{field-sizing:content;width:auto;min-width:0;max-width:100%}}

/* Intake specifications read as editable parameter words, not form grids. */
.warehouse-single-page-intake .warehouse-parameter-words{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px 14px;min-width:0}
.warehouse-single-page-intake .warehouse-parameter-word{min-width:0;max-width:100%;padding:4px 0}
.warehouse-single-page-intake .warehouse-parameter-word-line{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:3px;min-width:0}
.warehouse-single-page-intake .warehouse-parameter-word-name{font-size:14px}
.warehouse-single-page-intake .warehouse-product-editor .warehouse-parameter-word-line>input,.warehouse-single-page-intake .warehouse-product-editor .warehouse-parameter-word-line>select{field-sizing:content;width:auto;min-width:3ch;max-width:min(24ch,100%);border:0;border-bottom:1px solid #bac6d4;border-radius:0;padding:4px 3px;background:transparent;font:inherit}
.warehouse-single-page-intake .warehouse-parameter-word-line>details{font-size:12px;min-width:0;max-width:100%}
.warehouse-single-page-intake .warehouse-parameter-word-line>details>summary{padding:3px;color:#58677a}
.warehouse-single-page-intake .warehouse-parameter-word-line>details[open]{flex-basis:100%;width:100%}
.warehouse-single-page-intake .warehouse-parameter-word-line>button{min-height:28px;padding:2px 6px;margin:0}

/* Reserve a right-side AI rail only inside the desktop intake editor. */
@media(min-width:701px){.warehouse-single-page-intake .warehouse-product-editor:has([data-side-dock]){padding-right:calc(var(--warehouse-ai-rail-width,56px) + 24px)}.warehouse-single-page-intake .warehouse-manual-ai [data-side-dock]{position:fixed!important;max-height:calc(100dvh - 96px);overflow:auto;box-shadow:0 6px 22px #172e4914}.warehouse-single-page-intake .warehouse-manual-ai [data-side-dock]>textarea{flex:none!important;border-radius:8px!important;min-height:110px!important}.warehouse-single-page-intake .warehouse-manual-ai [data-side-dock][data-side-collapsed="true"]>:not(.warehouse-ai-side-toggle){display:none}.warehouse-single-page-intake .warehouse-ai-side-toggle{min-width:40px;min-height:44px;margin:0;border:1px solid #bac6d4;border-radius:10px;background:#fff;color:#173a60}}

@media(min-width:701px){.warehouse-single-page-intake .warehouse-manual-ai [data-side-dock]{left:var(--warehouse-ai-left)!important;right:var(--warehouse-ai-right)!important;width:auto!important;bottom:auto!important;top:50%!important;transform:translateY(-50%)!important}}

/* Guided intake messages reuse the composer without inheriting icon-button sizing. */
.warehouse-single-page-intake .warehouse-ai-guidance button{position:static!important;width:auto!important;height:auto!important;min-width:0!important;min-height:36px;max-width:100%;padding:6px 10px!important;border:1px solid #bac6d4!important;border-radius:6px!important;background:#fff!important;white-space:normal;text-align:left;line-height:1.5}
.warehouse-single-page-intake .warehouse-ai-guidance p{margin:6px 0}.warehouse-single-page-intake .warehouse-ai-guidance{flex:0 0 auto;color:#173a60}.warehouse-single-page-intake .warehouse-ai-guidance .warehouse-photo-chat-message{overflow-wrap:anywhere}
@media(max-width:700px){.warehouse-single-page-intake .warehouse-product-editor:has(.warehouse-ai-guidance){padding-bottom:calc(30dvh + 110px)}}
