/* Shelf product workspace: compact desktop layout without changing Warehouse tables. */
.shelf-workspace-nav{margin-bottom:10px;padding:5px 8px 0;border-radius:10px 10px 8px 8px;box-shadow:none}
.shelf-workspace-nav .module-workspace-tabs{gap:3px}
.shelf-workspace-nav .module-workspace-tabs button{min-height:34px;padding:6px 13px;border-radius:7px 7px 0 0;font-size:13px}

.shelf-product-page{display:grid;min-width:0;max-width:100%;gap:8px}
.shelf-product-page .warehouse-product-head{min-height:38px;gap:14px;padding:0 2px}
.shelf-product-page .warehouse-product-head h3{font-size:21px;line-height:1.25}
.shelf-product-page .warehouse-product-head p{margin-top:2px;font-size:12px;line-height:1.4}
.shelf-product-page .product-add-button{min-height:34px;padding:7px 13px;border-radius:7px;font-size:13px;white-space:nowrap}
.shelf-product-page .product-merchant-panel{min-width:0;border-radius:10px;box-shadow:0 2px 10px rgba(28,48,68,.035)}

.shelf-product-toolbar{grid-template-columns:minmax(260px,1fr) 172px auto!important;gap:7px;padding:8px 10px 5px}
.shelf-product-toolbar .product-search-field input,.shelf-product-toolbar select{height:34px;border-radius:7px;font-size:13px}
.shelf-product-toolbar .product-clear-filters{height:34px;padding:0 7px;font-size:12px}
.shelf-product-page .product-merchant-metrics{gap:5px;padding:0 10px 7px}
.shelf-product-page .product-merchant-metrics button{min-height:28px;padding:3px 9px;border-radius:6px;font-size:12px}
.shelf-product-page .product-merchant-metrics button b{font-size:12px}

.shelf-product-bulk-toolbar{min-height:38px;gap:10px;padding:4px 10px;font-size:12px}
.shelf-product-bulk-toolbar input,.shelf-product-check{width:15px;height:15px;accent-color:#098765}
.shelf-product-bulk-toolbar .product-bulk-menu>.secondary{height:30px;min-width:96px;padding:4px 10px;border-radius:6px;font-size:12px}

.shelf-product-table-wrap{width:100%;min-width:0;max-width:100%;overflow-x:auto;overflow-y:visible}
.shelf-product-table{width:100%;min-width:960px;table-layout:fixed}
.shelf-product-table th,.shelf-product-table td{padding:8px 9px}
.shelf-product-table th{font-size:12px}
.shelf-product-table td{height:68px;font-size:12px;line-height:1.3}
.shelf-product-table .product-check-column{width:44px;text-align:center}
.shelf-product-table .product-info-column{width:210px}
.shelf-product-table .product-code-column{width:130px}
.shelf-product-table .product-spec-column{width:240px}
.shelf-product-table .product-replenish-column{width:140px}
.shelf-product-table .product-actions-column{width:196px}

.shelf-product-table .product-merchant-info{min-width:0;gap:9px}
.shelf-product-image{position:relative;display:grid;width:44px;height:44px;flex:0 0 44px;place-items:center;overflow:hidden;border:1px solid #e0e9e6;border-radius:7px;background:#edf3f1}
.shelf-product-image img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;background:#edf3f1}
.shelf-product-image-fallback{color:#6a7f78;font-size:11px;font-weight:700}
.shelf-product-table .product-merchant-info b{max-width:145px;font-size:13px;line-height:1.3}
.shelf-product-table .product-merchant-info small{margin-top:2px;font-size:10px}

.shelf-product-table .product-code-column span{display:flex;min-width:0;gap:5px;overflow:hidden;color:#435952;text-overflow:ellipsis;white-space:nowrap}
.shelf-product-table .product-code-column span+span{margin-top:3px}
.shelf-product-table .product-code-column i{flex:0 0 auto;color:#899792;font-size:10px;font-style:normal}
.shelf-product-table .product-code-column small{margin-top:3px;color:#899792;font-size:10px}
.shelf-product-empty-value{color:#9aa6a2!important}

.shelf-product-table .product-spec-summary{gap:1px;padding:0}
.shelf-product-table .product-spec-summary+.product-spec-summary{margin-top:3px;padding-top:3px}
.shelf-product-table .product-spec-summary>span{font-size:12px}
.shelf-product-table .product-spec-summary>small{font-size:10px}
.shelf-spec-more{margin-top:3px!important;padding:0!important;font-size:10px!important}

.shelf-product-status-stack{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.shelf-product-table .product-status,.shelf-visibility-badge{display:inline-flex;max-width:100%;align-items:center;padding:3px 6px;border-radius:999px;font-size:10px;line-height:1.2;white-space:nowrap}
.shelf-visibility-badge{overflow:hidden;background:#f1f5f4;color:#5f726c;text-overflow:ellipsis}

.shelf-product-row-actions{display:flex;align-items:center;gap:9px;font-size:12px;white-space:nowrap}
.shelf-product-row-actions>.link-btn{padding:3px 0;font-size:12px}
.shelf-product-more{min-width:0;color:#087f5b}
.shelf-product-more summary{display:inline-flex;align-items:center;gap:3px;padding:3px 0;font-weight:650;list-style:none;cursor:pointer}
.shelf-product-more summary::-webkit-details-marker{display:none}
.shelf-product-more[open]{width:100%}
.shelf-product-more-menu{display:flex;align-items:center;gap:7px;margin-top:4px;padding-top:5px;border-top:1px dashed #dce6e2;white-space:normal}
.shelf-product-more-menu .link-btn{font-size:11px;white-space:nowrap}

.shelf-product-page .product-merchant-pagination{min-height:46px;gap:10px;padding:6px 10px}
.shelf-product-page .product-page-controls{gap:3px}
.shelf-product-page .product-page-controls button{height:28px;min-width:28px;padding:0 7px;font-size:12px}
.shelf-product-page .product-page-size select{height:30px;font-size:12px}
.shelf-product-page .empty{padding:32px 16px}

@media(max-width:1100px){
  .shelf-product-table-wrap{overflow-x:auto}
  .shelf-product-table{min-width:960px}
  .shelf-product-toolbar{grid-template-columns:minmax(240px,1fr) 160px auto!important}
}

@media(max-width:760px){
  .shelf-workspace-nav{margin-bottom:8px}
  .shelf-product-page .warehouse-product-head{align-items:flex-start}
  .shelf-product-toolbar{grid-template-columns:1fr 132px!important}
  .shelf-product-toolbar .product-search-field{grid-column:1/-1}
  .shelf-product-toolbar .product-clear-filters{justify-self:end}
  .shelf-product-table{min-width:920px}
  .shelf-product-page .product-merchant-pagination{align-items:flex-start}
}

/* Multi-page list density V1: shelf thumbnails match product-order imagery. */
.shelf-product-table{min-width:1080px}
.shelf-product-table td{height:148px}
.shelf-product-table .product-info-column{width:300px}
.shelf-product-table .product-code-column{width:126px}
.shelf-product-table .product-spec-column{width:224px}
.shelf-product-table .product-replenish-column{width:136px}
.shelf-product-table .product-actions-column{width:190px}
.shelf-product-table .product-merchant-info{gap:14px}
.shelf-product-image{width:128px;height:128px;flex:0 0 128px;border-radius:10px}
.shelf-product-image-fallback{padding:8px;color:#83938e;font-size:12px;font-weight:500;line-height:1.35;text-align:center}
.shelf-product-table .product-merchant-info b{max-width:140px;white-space:normal}
@media(max-width:760px){
  .shelf-product-table{min-width:1010px}
  .shelf-product-table td{height:116px}
  .shelf-product-table .product-info-column{width:260px}
  .shelf-product-image{width:96px;height:96px;flex-basis:96px}
}
