.order-search-results{display:grid;gap:8px;margin:12px 0;max-height:520px;overflow:auto}.order-result{display:flex;gap:10px;align-items:flex-start;border:1px solid #e5dbd1;border-radius:10px;padding:10px;background:#fff}.order-result input{width:auto;min-height:0;margin-top:4px}.order-result span{min-width:0}.order-result strong,.order-result small{display:block}.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:16px 0}.admin-card{display:flex;text-align:left;align-items:flex-start;gap:12px;background:#fff;color:#332e2b;border:1px solid #e5dbd1;padding:16px;min-height:112px}.admin-card:hover{filter:none;background:#f8f1eb}.admin-card strong,.admin-card small{display:block}.admin-card strong{font-size:1.05rem;margin-bottom:6px}.admin-card small{font-weight:500;color:#766b61;line-height:1.35}.admin-icon{font-size:1.5rem;color:#806149;flex:0 0 auto}@media(max-width:560px){.admin-grid{grid-template-columns:1fr}.order-search-results{max-height:none}}

/* Cleaner inventory workspace */
.inventory-workspace{padding:18px 20px!important}
.inventory-toolbar{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(180px,.55fr);gap:14px;align-items:end}
.inventory-toolbar .field{margin:0}
.inventory-select-hint{margin:10px 0 14px;font-size:.94rem}
.inventory-bulk-panel[hidden]{display:none!important}
.inventory-bulk-panel{grid-template-columns:auto minmax(260px,1fr) minmax(260px,1fr);gap:12px;align-items:end;padding:12px;margin:0 0 14px;border:1px solid #eadfd5;border-radius:14px;background:#fbf7f3}
.inventory-bulk-count{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.inventory-bulk-count strong{white-space:nowrap;margin-right:4px}
.inventory-bulk-group{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.inventory-bulk-group .field{margin:0;min-width:0}
.inventory-bulk-group button{min-height:46px}
#inlineInventoryToteForm{margin-top:10px}
#openInlineInventoryTote{margin-top:8px}
.inventory-table-wrap{margin-top:2px}
@media(max-width:900px){
  .inventory-bulk-panel{grid-template-columns:1fr}
}
@media(max-width:700px){
  .inventory-toolbar{grid-template-columns:1fr}
  .inventory-workspace{padding:14px!important}
}

/* Current intake batch: keep its 7-column summary independent from the main inventory table layout. */
.intake-current-batch{padding:20px 22px!important}
.intake-current-batch h2{margin:0 0 16px}
.current-batch-metrics{display:flex;gap:42px;align-items:flex-start;margin:0 0 14px}
.current-batch-metrics>div{display:flex;flex-direction:column;gap:2px;min-width:180px}
.current-batch-metrics strong{font-size:1.08rem}
.current-batch-table{width:100%;overflow-x:auto;margin-top:4px}
.current-batch-table table{width:100%;min-width:850px;table-layout:auto}
.current-batch-table th,.current-batch-table td{vertical-align:top;white-space:normal}
.current-batch-table th:first-child,.current-batch-table td:first-child{min-width:92px;width:92px;max-width:92px}
.current-batch-table th:nth-child(2),.current-batch-table td:nth-child(2){min-width:90px}
.current-batch-table th:nth-child(3),.current-batch-table td:nth-child(3){min-width:100px}
.current-batch-table th:nth-child(4),.current-batch-table td:nth-child(4),
.current-batch-table th:nth-child(5),.current-batch-table td:nth-child(5){min-width:110px}
.current-batch-table th:nth-child(6),.current-batch-table td:nth-child(6){min-width:90px}
.current-batch-table th:last-child,.current-batch-table td:last-child{min-width:90px}
.intake-current-batch>.actions{margin-top:14px}
@media(max-width:700px){
  .current-batch-metrics{gap:18px;flex-wrap:wrap}
  .current-batch-metrics>div{min-width:140px}
  .intake-current-batch{padding:16px!important}
}

/* Scan-first putaway workflow */
.putaway-scan-workflow{margin:16px 0 20px;padding:18px;border:1px solid #eadfd9;border-radius:16px;background:#fffdfb}
.putaway-scan-workflow .field{margin-bottom:12px}
#putawaySelectedItem{margin:10px 0 14px}
.putaway-or{display:flex;align-items:center;gap:10px;margin:8px 0;color:#8a7c76;font-size:.85rem}
.putaway-or:before,.putaway-or:after{content:"";height:1px;background:#eadfd9;flex:1}
.putaway-pending-list{margin-top:18px}
.putaway-pending-list h3{margin:0 0 10px}
.putaway-pending-list table{width:100%;min-width:720px}
.putaway-pending-list tr[data-putaway-pending] td{vertical-align:top}
@media(max-width:700px){
  .putaway-scan-workflow{padding:14px}
  .putaway-pending-list .scroll{overflow-x:auto}
}

.putaway-item-entry{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}
.putaway-item-entry input{min-width:0}
.putaway-keyboard-toggle{display:none;margin:0 0 12px}
@media(pointer:coarse){.putaway-keyboard-toggle{display:inline-flex;align-items:center;min-height:44px}}
.putaway-storage-correction{display:block;margin-top:10px}
.scan-clear-wrap{display:block;position:relative;width:100%}
.scan-clear-wrap>input{width:100%;padding-right:48px!important}
.scan-clear-button{position:absolute;right:4px;top:50%;transform:translateY(-50%);min-width:44px;min-height:44px;padding:0 8px!important;background:#eee3da!important;color:#30251e!important;border:1px solid #9d8574!important;border-radius:8px;font-size:1.4rem;line-height:1}
.scan-clear-button:focus-visible,.scan-keyboard-toggle:focus-visible{outline:3px solid #1769aa;outline-offset:2px}
.scan-keyboard-toggle{display:none;margin:10px 0}
@media(pointer:coarse),(max-width:700px){.scan-keyboard-toggle{display:inline-flex;align-items:center;min-height:44px}}
.inventory-change-location{margin:8px 0 0;display:block}
.inventory-location-editor{display:grid;gap:8px;max-width:420px;margin-top:10px;padding:10px;border:1px solid #8d7768;border-radius:10px;background:#fff}
.inventory-location-editor label{display:grid;gap:4px;font-weight:700}
.inventory-location-editor select,.inventory-location-editor button{min-height:44px}
.inventory-location-editor input{min-height:44px}
.inventory-location-editor .inventory-location-manual{display:grid;gap:8px}
.inventory-location-editor [hidden]{display:none!important}
.inventory-location-editor #inventoryLocationHint{margin:0;font-size:.85rem;line-height:1.4}
.scan-input-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.scan-input-actions .camera-scan-button,.scan-input-actions .scan-manual-keyboard{flex:1 1 150px;min-height:44px;margin:0}
.scan-manual-keyboard{display:none}
@media(pointer:coarse),(max-width:700px){.scan-manual-keyboard{display:inline-flex;align-items:center;justify-content:center}}
@media(max-width:700px){.putaway-item-entry{grid-template-columns:1fr}.putaway-item-entry>#putawayFindItem{width:100%}}

/* Rapid intake capture actions */
.intake-capture-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 12px}
.intake-action-card{min-height:58px;display:flex;align-items:center;justify-content:center;gap:9px;padding:12px 14px;border-radius:15px;border:1px solid #d8c9bd;font-weight:700;font-size:1rem;line-height:1.1;text-align:center;cursor:pointer;box-sizing:border-box;transition:transform .12s ease,box-shadow .12s ease,background .12s ease}
.intake-action-card:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(91,63,45,.08)}
.intake-action-card:active{transform:translateY(0)}
.intake-action-icon{font-size:1.15rem;line-height:1}
.intake-action-speak{background:#8a6547;color:#fff;border-color:#8a6547}
.intake-action-camera{background:#efe3d8;color:#3b2d24}
.intake-action-upload{background:#fff;color:#5b4638}
.intake-action-camera:hover{background:#e8d8ca}
.intake-action-upload:hover{background:#faf6f2}
@media(max-width:700px){
  .intake-capture-actions{grid-template-columns:1fr 1fr}
  .intake-action-speak{grid-column:1/-1}
}
@media(max-width:420px){
  .intake-capture-actions{grid-template-columns:1fr}
  .intake-action-speak{grid-column:auto}
  .intake-action-card{width:100%;min-height:54px}
}

/* Sorting: scanner first, app-directed bin assignment */
.sort-scan-top{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0 22px}
.sort-scan-top>.card{margin:0}
.sort-scan-primary,.sort-scan-destination{padding:18px!important}
.sort-scan-primary h3,.sort-scan-destination h3{margin-top:0}
.sort-destination-directive{font-size:1.08rem;line-height:1.45}
.sort-destination-directive strong{font-size:1.25rem}
.sort-bin-header{margin:8px 0 12px;align-items:flex-end}
.sort-bin-header h3{margin:0 0 4px}
.sort-bin-header p{margin:0}
@media(max-width:700px){
  .sort-scan-top{grid-template-columns:1fr}
  .sort-scan-primary,.sort-scan-destination{padding:15px!important}
  .sort-bin-header{align-items:flex-start}
}

/* Final fulfillment separation */
.pick-scan-first{margin:14px 0 16px;padding:16px!important}
.pick-scan-first h3{margin-top:0}
.final-picking-card .pick-next-location{margin:0 0 14px}
.final-sorting-card .sort-scan-top{margin-top:14px}
.final-fulfillment-tabs{margin-bottom:10px}
@media(max-width:700px){.pick-scan-first{padding:14px!important}}


/* Current intake batch: photo-first rows and clickable item details. */
.current-batch-table table{min-width:960px}
.current-batch-table th:first-child,.current-batch-table td:first-child{width:92px;min-width:92px;max-width:92px;padding-left:8px;padding-right:8px}
.current-batch-thumb{display:block;width:72px;height:72px;object-fit:cover;border-radius:10px}
.current-batch-photo-button{position:relative;display:inline-block;border:0;background:transparent;padding:0;cursor:pointer}
.current-batch-no-photo{width:72px;height:72px;border:1px dashed #d8c8be;border-radius:10px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:.72rem;color:#7e6d62;background:#fbf7f4}
.current-batch-item-link{display:flex;flex-direction:column;align-items:flex-start;gap:2px;border:0;background:transparent;padding:0;text-align:left;color:inherit;cursor:pointer}
.current-batch-item-link strong{text-decoration:underline;text-underline-offset:2px}
.current-batch-item-link span{font-weight:600}
.current-batch-item-link small{color:#7e6d62;font-size:.82rem}


/* Inventory sort/filter toolbar */
.inventory-toolbar{grid-template-columns:minmax(280px,2fr) repeat(3,minmax(150px,1fr));gap:12px!important}
.inventory-toolbar .inventory-search{grid-column:span 2}
.inventory-toolbar .inventory-intake-toggle{align-self:center;margin:0;padding:10px 0;white-space:nowrap}
.inventory-toolbar #inventoryClearFilters{align-self:end;justify-self:start;margin-bottom:2px}
@media(max-width:1100px){
  .inventory-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inventory-toolbar .inventory-search{grid-column:1/-1}
}
@media(max-width:700px){
  .inventory-toolbar{grid-template-columns:1fr}
  .inventory-toolbar .inventory-search{grid-column:auto}
}


/* Start inventory batch: balanced desktop/tablet layout. */
.batch-start-form{max-width:1380px}
.batch-start-fields{
  display:grid!important;
  grid-template-columns:minmax(220px,1.15fr) minmax(250px,1.35fr) minmax(190px,.9fr) minmax(210px,.95fr) minmax(240px,1.15fr);
  gap:16px!important;
  align-items:start;
}
.batch-start-fields .field{min-width:0;margin:0}
.batch-start-fields input,
.batch-start-fields select,
.batch-start-fields textarea{width:100%;box-sizing:border-box}
.batch-start-form>.actions{margin-top:18px}
@media(max-width:1200px){
  .batch-start-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .batch-start-fields{grid-template-columns:1fr}
}

/* Seller batch review summary spacing */
.batch-review-summary{align-items:flex-start!important;justify-content:flex-start!important;gap:48px!important;margin-bottom:18px}
.batch-review-party,.batch-review-total{display:flex;flex-direction:column;gap:6px;min-width:150px}
.batch-review-party .stat,.batch-review-total .stat{margin:2px 0 0}
.batch-review-contact{margin-top:2px}
@media(max-width:700px){
  .batch-review-summary{gap:24px!important;flex-wrap:wrap}
}

/* Review batch: explicit label/value separation */
.batch-review-summary{display:flex!important;align-items:flex-start!important;justify-content:flex-start!important;gap:56px!important;margin:4px 0 20px!important}
.batch-review-party,.batch-review-total{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:7px!important;min-width:160px}
.batch-review-kicker{display:block!important;font-size:.82rem!important;line-height:1.2!important;color:var(--muted,#7b6d64)!important;margin:0!important}
.batch-review-party .stat,.batch-review-total .stat{display:block!important;margin:0!important;line-height:1.15!important}
.batch-review-contact{display:block!important;margin:0!important;line-height:1.3!important}
@media(max-width:700px){
  .batch-review-summary{gap:28px!important;flex-wrap:wrap!important}
}
