/* Stock screen extends the existing semantic palette and native controls. */
.stock-status{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;border:1px solid var(--line);border-radius:12px;padding:12px 16px;background:var(--surface);color:var(--muted);font-size:.85rem;margin-bottom:24px}
.stock-status .btn{margin-left:auto}.stock-scope{display:flex;justify-content:space-between;gap:12px;font-size:.8rem;color:var(--muted);margin-bottom:12px}.stock-stats .stat .value{font-variant-numeric:tabular-nums}.stock-stats .meta{line-height:1.6}
.stock-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}.stock-register{min-width:0}.stock-insights{display:grid;gap:20px}.stock-insights h2{font-size:1rem}.stock-insights .panel{padding:20px}.stock-insights .section-head{margin-bottom:8px}
.stock-filters{display:grid;grid-template-columns:minmax(170px,1.3fr) minmax(130px,1fr) minmax(120px,.8fr) auto;gap:12px;align-items:end;margin-bottom:18px}.stock-filters select,.stock-filters input{width:100%;min-width:0}.stock-filters .field{font-size:.8rem}.stock-filters .btn{min-height:48px;white-space:nowrap}
.stock-table table{min-width:960px}.stock-table th{font-size:.72rem;white-space:nowrap}.stock-table td{padding-block:18px;font-size:.8rem}.stock-table td strong{font-weight:600}.stock-table .secondary{font-size:.72rem;line-height:1.6}.stock-gross-gsm{color:var(--warning)}.stock-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px}.stock-pagination .actions{align-items:center}
.stock-item-row{padding-block:16px;border-bottom:1px solid var(--line)}.stock-item-row:last-child{border:0;padding-bottom:0}.stock-item-row>div:first-child{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:.8rem}.stock-item-row strong{font-weight:550;overflow-wrap:anywhere}.stock-item-row>div>span{white-space:nowrap;font-variant-numeric:tabular-nums}.stock-item-row p{font-size:.75rem;color:var(--muted);margin:7px 0 0}.stock-weight-track{height:5px;background:var(--subtle);border-radius:4px;margin-top:10px;overflow:hidden}.stock-weight-track span{display:block;height:100%;background:var(--green);border-radius:4px}
.stock-gsm-guide .eyebrow{font-size:.65rem;color:var(--muted)}.stock-formula{font-size:.8rem;line-height:1.8;background:var(--subtle);padding:14px;border-radius:10px;margin:16px 0}.stock-measure-totals{margin:18px 0}.stock-measure-totals>div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:12px 0;font-size:.75rem}.stock-measure-totals dt{color:var(--muted)}.stock-measure-totals dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.stock-empty{text-align:center;padding:48px 20px}.stock-empty svg{width:44px;height:44px;color:var(--green);margin-bottom:14px}.stock-empty h3{font-size:1.1rem}.stock-empty p{font-size:.9rem;line-height:1.8;color:var(--muted)}.stock-empty .btn{margin-top:10px}
.stock-live-measure{padding:16px;background:var(--subtle);border-radius:10px;font-size:.85rem;line-height:1.8;margin-top:20px;font-variant-numeric:tabular-nums}.stock-entry-fields .field{font-size:.85rem}.stock-entry-fields .field small{line-height:1.6}.stock-entry-fields textarea{min-height:80px}.stock-detail{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:0}.stock-detail dt{font-size:.75rem;color:var(--muted);margin-bottom:6px}.stock-detail dd{margin:0;font-size:.9rem;overflow-wrap:anywhere}.stock-visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.stock-mobile-list{display:none}
@media(max-width:1450px){.stock-layout{grid-template-columns:minmax(0,1fr)}.stock-insights{grid-template-columns:1fr 1fr}.stock-filters{grid-template-columns:minmax(170px,1.3fr) minmax(130px,1fr) minmax(120px,.8fr) auto}}
@media(max-width:760px){.stock-status{padding:12px;line-height:1.6;margin-bottom:20px}.stock-status .btn{margin-left:0;padding-inline:0}.stock-scope{flex-wrap:wrap;font-size:.75rem}.stock-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stock-stats .stat{padding:16px;min-width:0}.stock-stats .stat .value{font-size:1.6rem;overflow-wrap:anywhere}.stock-stats .stat .unit{font-size:.8rem;margin-left:4px}.stock-stats .stat .meta{font-size:.7rem}.stock-stats .stat .label{font-size:.75rem}.stock-layout{gap:20px}.stock-filters{grid-template-columns:1fr 1fr}.stock-search{grid-column:1/-1}.stock-filters>#stock-reset{grid-column:1/-1}.stock-insights{grid-template-columns:1fr}.stock-table{display:none}.stock-mobile-list{display:grid;gap:12px}.stock-bundle-card .section-head{margin-bottom:14px;align-items:center}.stock-bundle-card h3{margin:0;font-size:1rem}.stock-bundle-card>p{margin:4px 0 16px}.stock-bundle-card dl{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:20px}.stock-bundle-card dt{font-size:.7rem;color:var(--muted)}.stock-bundle-card dd{margin:3px 0 0;font-size:.9rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stock-bundle-card .btn{width:100%}.stock-pagination{flex-wrap:wrap}.stock-pagination .actions{gap:8px}.stock-detail{gap:18px}.stock-entry-fields{grid-template-columns:1fr}.stock-empty{padding:32px 18px}}
.stock-entry-actions{flex-wrap:wrap}
.stock-catalog{margin:0 0 28px}.stock-catalog .section-head p{margin:6px 0 0}.stock-catalog-controls{display:flex;align-items:end;gap:18px;margin-bottom:20px}.stock-catalog-controls .field{flex:1}.stock-catalog-controls [aria-pressed="true"]{background:var(--green);color:var(--surface)}.stock-item-picks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.stock-item-pick{border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);text-align:left;padding:16px;display:flex;flex-direction:column;gap:8px;min-width:0;min-height:142px}.stock-item-pick strong{font-size:.95rem;line-height:1.5;overflow-wrap:anywhere}.stock-item-pick>span{font-size:.85rem}.stock-item-pick .stock-pick-count,.stock-item-pick small{color:var(--muted);font-size:.75rem;line-height:1.5}.stock-item-pick .stock-pick-action{color:var(--green);font-weight:600;margin-top:auto}.stock-item-pick:hover,.stock-item-pick.selected{border-color:var(--green);background:var(--subtle)}.stock-master{margin-bottom:28px}.stock-quick-context{background:var(--subtle);border-radius:10px;padding:14px;margin-bottom:20px;display:grid;gap:6px}.stock-quick-context strong{font-size:1rem}.stock-quick-context span,.stock-quick-context small{color:var(--muted);font-size:.8rem;line-height:1.6}.stock-quick-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.stock-quick-fields input{font-size:1.35rem;min-height:56px;font-variant-numeric:tabular-nums}.stock-quick-options{margin-top:18px}.stock-quick-options summary{font-size:.85rem;color:var(--muted);cursor:pointer;padding:8px 0;line-height:1.5}.stock-quick-options .entry-fields{margin-top:12px}.stock-quick-limit{font-size:.75rem;line-height:1.5;margin:12px 0 0}.stock-roll-check{background:var(--subtle);padding:14px;margin-top:14px;border-radius:10px}.stock-check-label{display:flex;align-items:center;gap:12px;font-size:.85rem;margin-top:12px}.stock-check-label input{width:22px;height:22px;flex-shrink:0}.stock-quick-form .dialog-actions{display:flex;flex-direction:row;gap:10px}.stock-quick-form .dialog-actions [data-close]{order:2;flex:0 0 auto}.stock-quick-form .dialog-actions .primary{order:1;flex:1}
@media(max-width:1100px){.stock-item-picks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.stock-catalog{padding:16px}.stock-catalog-controls{flex-direction:column;align-items:stretch;gap:12px}.stock-catalog-controls .actions{display:flex;flex-wrap:wrap}.stock-catalog-controls .btn{flex:1;padding-inline:10px}.stock-item-picks{grid-template-columns:1fr}.stock-item-pick{min-height:0;padding:14px;gap:6px}.stock-quick-fields{grid-template-columns:1fr;gap:16px}.stock-quick-form .dialog-head{margin-bottom:12px}.stock-quick-form .dialog-head h2{font-size:1.15rem;line-height:1.4}.stock-quick-context{padding:12px;margin-bottom:16px}.stock-quick-form .stock-live-measure{margin-top:12px;padding:12px;line-height:1.5}.stock-quick-form .dialog-actions{position:sticky;bottom:-18px;padding-bottom:calc(12px + env(safe-area-inset-bottom));background:var(--surface)}.stock-quick-form .dialog-actions .btn{min-height:52px}.stock-quick-form .field>input,.stock-quick-options input,.stock-quick-options textarea{font-size:16px}.stock-quick-form .stock-quick-fields input{font-size:1.4rem}}
@media(max-width:550px){.stock-entry-actions .btn{flex:1 1 40%;white-space:nowrap}.stock-entry-actions [data-close]{flex-basis:100%;order:1}}
@media(max-width:360px){.stock-stats .stat{padding:12px}.stock-stats .stat .value{font-size:1.4rem}.stock-detail{grid-template-columns:1fr}}
/* The temporary stock-only shell has no sidebar or mobile module navigation. */
body[data-module="stock"] .workspace{margin-left:0}
body[data-module="stock"] .mobile-brand{display:block}
body[data-module="stock"] main{max-width:1440px;margin-inline:auto;padding-bottom:28px}
body[data-module="stock"] #toast{left:50%;bottom:24px}
.stock-bale-options,.stock-review-filters{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.stock-bale-options .field{min-width:0}.stock-bale-options input,.stock-bale-options select{width:100%}
.stock-review{margin-bottom:28px;scroll-margin-top:16px}.stock-review .section-head p{margin:6px 0 0}
.stock-review-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}
.stock-review-card{border:1px solid var(--line);border-radius:10px;padding:16px;min-width:0}
.stock-review-card p{font-size:.85rem;color:var(--muted);overflow-wrap:anywhere}.stock-review-card .section-head{flex-wrap:wrap;gap:8px}.stock-review-card h3{overflow-wrap:anywhere}
.stock-review-card .btn{width:100%}.stock-correction-reason{margin-top:18px}
@media(max-width:1100px){.stock-review-list{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.stock-review{padding:16px}.stock-review-list,.stock-review-filters{grid-template-columns:1fr}.stock-bale-options{grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr)}.stock-bale-options .field{font-size:.8rem}.stock-bale-options small{font-size:.7rem;line-height:1.5}.stock-bale-options input,.stock-bale-options select{padding-inline:8px}.stock-bale-options select{font-size:16px}}
@media(max-width:420px){.stock-bale-options{grid-template-columns:1fr}.stock-bale-options>.field:first-child{display:grid;grid-template-columns:minmax(0,1fr) 80px;align-items:center}.stock-bale-options>.field:first-child input{grid-column:2;grid-row:1/3}.stock-bale-options>.field:first-child small{grid-column:1}.stock-quick-form .stock-quick-context{padding:10px;margin-bottom:12px}.stock-quick-form .stock-quick-context span,.stock-quick-form .stock-quick-context small{display:none}.stock-quick-form .stock-quick-fields{gap:12px}}
