/* v0.42 — daily inventory work first; spatial tools belong to management. */
.lab-workspace-shell .content{padding-top:20px;background:#f5f8f6}
.lab-workspace-shell .content::before,.lab-workspace-shell .content::after{display:none!important}
.lab-workspace-shell .workspace-tabs{gap:6px;padding:10px 28px;border-bottom:1px solid #dce6df;background:#fff}
.lab-workspace-shell .workspace-tabs .nav-button{padding:10px 18px;font-size:calc(14px * var(--text-scale,1));white-space:nowrap;border-radius:9px}
.lab-workspace-shell .workspace-tabs .nav-button.active{background:#e4f1e9;color:#195b42;border-bottom-color:#287454}
.lab-workspace-shell .crumb{color:#526b5f;font-size:calc(13px * var(--text-scale,1))}
.lab-workspace-shell .content>.page-head{margin:0 0 16px;padding:0;min-height:0;background:none}
.lab-workspace-shell .page-head h1{font-size:calc(24px * var(--text-scale,1))}.lab-workspace-shell .page-head .eyebrow{display:none}
.lab-workspace-shell .page-head .sub{color:#536b60;margin-top:6px}
.lab-workspace-shell .panel-workspace:not(.layout-editing) .panel-layout-tools,
.lab-workspace-shell .panel-workspace:not(.layout-editing) .panel-width-grip,
.lab-workspace-shell .panel-workspace:not(.layout-editing) .panel-resize,
.lab-workspace-shell .panel-workspace:not(.layout-editing) .panel-generated-head{display:none!important}
.lab-workspace-shell .panel-workspace:not(.layout-editing) .panel-drag-heading{cursor:default;touch-action:auto;user-select:auto}
.lab-workspace-shell #stock-ledger{padding:20px;background:#fff;border:1px solid #dce6df;border-radius:16px;box-shadow:0 3px 14px #1a4a2a05;container-type:inline-size}
.lab-workspace-shell .stock-workspace-head{padding:0 0 14px;margin:0;min-height:0;background:none;border:0}
.lab-workspace-shell .stock-workspace-head h2{font-size:calc(24px * var(--text-scale,1));line-height:1.3;color:#203e30}
.lab-workspace-shell .stock-workspace-head .sub{font-size:calc(13px * var(--text-scale,1));color:#536b60}
.lab-workspace-shell .stock-workspace-toolbar{padding:12px 0 16px;margin:0 0 14px;gap:12px}
.lab-workspace-shell .stock-mobile-switch{display:flex;gap:4px;padding:3px;background:#f0f5f2;border-radius:9px}
.lab-workspace-shell .stock-mobile-switch button{min-width:60px;margin:0;border:0;min-height:36px}
.lab-workspace-shell .stock-workspace-toolbar>.search{height:44px;border:1px solid #c9d9cf;font-size:calc(14px * var(--text-scale,1));background:#fff}
.lab-workspace-shell .stock-workspace-columns{gap:14px}
.lab-workspace-shell .stock-group{border:1px solid #d6e3da;border-radius:11px;background:#fff;margin-bottom:10px}
.lab-workspace-shell .stock-group.is-focused{border-color:#6c9d82;box-shadow:0 0 0 1px #9fc3ac}
.lab-workspace-shell .stock-group-heading>strong{font-size:calc(16px * var(--text-scale,1));color:#213f31}
.lab-workspace-shell .stock-group-heading>span,.lab-workspace-shell .stock-batch-meta{color:#556d60}
.lab-workspace-shell .stock-group-total b{font-size:calc(19px * var(--text-scale,1));color:#215c42}
.lab-workspace-shell .stock-batch{background:#f5f9f6}
.lab-workspace-shell .stock-primary-actions button{min-height:36px}
.lab-workspace-shell .stock-position-tools{padding:10px 12px;background:#f3f7f4;border-radius:10px;margin-bottom:10px}
.lab-workspace-shell .stock-mini-map{max-height:300px;overflow:hidden;border:1px solid #e0e8e2;border-radius:10px}
.lab-workspace-shell .stock-mini-map svg{max-height:300px}
.lab-workspace-shell .stock-preview-room{margin-bottom:8px}
.lab-workspace-shell .stock-layout-note{font-size:calc(11px * var(--text-scale,1));color:#64786b;margin-bottom:0}
.lab-workspace-shell .stock-workspace.stock-list-collapsed .stock-workspace-columns{display:block!important}
.lab-workspace-shell .stock-workspace.stock-list-collapsed [data-stock-list]{display:none!important}
.lab-workspace-shell .stock-workspace.stock-list-collapsed [data-stock-preview]{display:block!important;max-width:none}
.lab-workspace-shell .stock-workspace.stock-list-collapsed .stock-mini-map,.lab-workspace-shell .stock-workspace.stock-list-collapsed .stock-mini-map svg{max-height:460px}
.lab-workspace-shell .stock-workspace.stock-workspace-narrow[data-stock-pane=list] [data-stock-preview]{display:none!important}
.lab-workspace-shell .stock-workspace.stock-workspace-narrow[data-stock-pane=list] .stock-workspace-columns{display:block!important}
.lab-workspace-shell .stock-workspace.stock-workspace-narrow [data-stock-list]{max-height:none!important;overflow:visible!important}
.facility-code{display:block;color:#617669;font-size:calc(11px * var(--text-scale,1));letter-spacing:.03em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.facility-capabilities{display:grid;gap:12px;border:1px solid #cdded2;border-radius:10px;margin:0 0 18px;padding:16px;background:#f5faf6}
.facility-capabilities legend{font-weight:600;color:#285c40;padding:0 6px}
.facility-capabilities label{display:flex!important;align-items:center;gap:9px;margin:0!important}
.facility-capabilities input[type=checkbox]{width:18px;height:18px;margin:0;flex:none}
.facility-capabilities p{font-size:calc(12px * var(--text-scale,1));color:#5e7265;line-height:1.6;margin:0}
.stock-continue{margin:14px 0;color:#536c5c;font-size:calc(13px * var(--text-scale,1));display:flex;align-items:center;gap:8px}
.stock-continue input{width:18px;height:18px;flex:none}
#stock-change-form .dialog-foot [hidden]{display:none!important}
.putaway-dialog[data-putaway-mode=manual] .putaway-work{display:block!important}
.putaway-dialog [hidden]{display:none!important}
.putaway-dialog [data-putaway-entry-top]{padding:16px;background:#f5faf6;border:1px solid #d5e5d9;border-radius:12px;margin-bottom:18px}
.putaway-dialog .putaway-current h3{margin:0 0 6px;font-size:calc(18px * var(--text-scale,1))}
.putaway-dialog .putaway-current p{margin:4px 0 12px}
.putaway-dialog .putaway-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px}
.putaway-dialog .putaway-fields label{margin:0;font-size:calc(13px * var(--text-scale,1));color:#3e5848}
.putaway-dialog .putaway-fields input,.putaway-dialog .putaway-fields select{min-height:40px;margin:5px 0 0;background:white}
.putaway-dialog .putaway-target{font-weight:600;color:#245c3c;margin:12px 0 8px}
.putaway-dialog .putaway-layout{display:none}
.putaway-dialog .receipt-map-pane{position:static}
.putaway-dialog .receipt-plan-frame svg{max-height:330px}
.putaway-dialog .receipt-front{max-width:300px}
.putaway-dialog .receipt-picker>.sub{color:#536a5c}
.putaway-dialog .putaway-history{margin-top:14px}
body[data-lab-section=space] .studio-modebar .map-purpose{display:none}
body[data-lab-section=space] .studio-heading h2{font-size:calc(22px * var(--text-scale,1))}
body[data-lab-section=space] .section-kicker{display:none}
@media(max-width:760px){
 .lab-workspace-shell .sidebar{padding:6px 8px;min-height:0}
 .lab-workspace-shell .sidebar nav{gap:4px;padding:0}
 .lab-workspace-shell .sidebar nav button{min-height:38px;padding:8px 12px;font-size:calc(12px * var(--text-scale,1))}
 .lab-workspace-shell .topbar{padding:8px 12px;min-height:0;gap:0}
 .lab-workspace-shell .topbar .crumb{display:none}
 .lab-workspace-shell .top-actions{display:flex;flex-wrap:nowrap;gap:6px;width:100%}
 .lab-workspace-shell .topbar-shortcuts{flex-wrap:nowrap}
 .lab-workspace-shell .topbar-shortcuts button:not([data-action=refresh]){display:none}
 .lab-workspace-shell .top-actions>.action-menu{margin-left:auto;max-width:170px}
 .lab-workspace-shell .top-actions>.action-menu>summary{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:170px;min-height:36px}
 .lab-workspace-shell .workspace-tabs{padding:8px 10px;gap:2px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible}
 .lab-workspace-shell .workspace-tabs .nav-button{min-width:0;padding:9px 4px;font-size:calc(12px * var(--text-scale,1));text-align:center;justify-content:center}
 .lab-workspace-shell .content{padding:12px 10px 28px;gap:12px!important}
 .lab-workspace-shell #stock-ledger{padding:14px 12px;border-radius:12px}
 .lab-workspace-shell .stock-workspace-head{gap:12px;padding:0 0 10px}
 .lab-workspace-shell .stock-workspace-head h2{font-size:calc(21px * var(--text-scale,1))}
 .lab-workspace-shell .stock-workspace-head .sub{font-size:calc(11px * var(--text-scale,1))}
 .lab-workspace-shell .stock-workspace-head .actions{gap:5px;justify-content:flex-start}
 .lab-workspace-shell .stock-workspace-head .actions>button{min-height:36px;padding:7px 9px;font-size:calc(12px * var(--text-scale,1))}
 .lab-workspace-shell .stock-workspace-toolbar{gap:8px;padding:0 0 10px;margin-bottom:8px}
 .lab-workspace-shell .stock-workspace-toolbar>.search{flex-basis:100%;order:-1;min-height:42px}
 .lab-workspace-shell .stock-workspace-toolbar>.inline-choice{font-size:calc(11px * var(--text-scale,1));margin:0 auto 0 0}
 .lab-workspace-shell .stock-mobile-switch{margin-left:auto}
 .lab-workspace-shell .stock-mobile-switch button{min-width:50px;min-height:34px;font-size:calc(12px * var(--text-scale,1))}
 .lab-workspace-shell .stock-selection-line{padding:6px 0;font-size:calc(11px * var(--text-scale,1))}
 .lab-workspace-shell .stock-group-heading>strong{font-size:calc(15px * var(--text-scale,1))}
 .lab-workspace-shell .stock-group-heading>span{font-size:calc(11px * var(--text-scale,1))}
 .lab-workspace-shell .stock-group-total b{font-size:calc(17px * var(--text-scale,1))}
 .lab-workspace-shell .stock-primary-actions{gap:4px}
 .lab-workspace-shell .stock-primary-actions button{padding:7px 5px;font-size:calc(12px * var(--text-scale,1))}
 .lab-workspace-shell .stock-layout-note{display:none}
 .lab-workspace-shell .stock-position-tools{gap:4px;flex-wrap:wrap}
 .lab-workspace-shell .stock-workspace [data-stock-preview]{max-height:none!important;overflow:visible!important}
 #modal.putaway-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}
 .putaway-dialog .dialog-head,.putaway-dialog .dialog-foot{padding:12px}
 .putaway-dialog .dialog-body{padding:12px}
 .putaway-dialog .putaway-toolbar{margin-bottom:10px;gap:4px}
 .putaway-dialog .putaway-toolbar>label{width:100%}
 .putaway-dialog [data-putaway-entry-top]{padding:12px;margin-bottom:12px}
 .putaway-dialog .putaway-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .putaway-dialog .putaway-fields label:first-child{grid-column:1/-1}
 .putaway-dialog .putaway-current h3{font-size:calc(16px * var(--text-scale,1))}
 .putaway-dialog .putaway-current .sub{font-size:calc(12px * var(--text-scale,1));line-height:1.5}
 .putaway-dialog .receipt-plan-frame svg{max-height:230px}
 .putaway-dialog .receipt-map-pane .receipt-plan-frame{min-height:150px}
}

.stock-scope-notice{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;padding:10px;background:#edf5ef;border-radius:8px;color:#315a43}
