/* Inventory layout only. Colors inherit the shared light agritech system. */
.inventory-workspace{min-width:0;color:var(--color-text);font-size:14px}
.inventory-workspace [hidden]{display:none!important}
.inventory-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.stock-panel{padding:24px;min-width:0;overflow:visible}
#stock-table{padding:0;max-height:none}
#stock-table .stock-table :is(th,td):first-child{width:44px;min-width:44px;max-width:44px;padding-left:12px;padding-right:8px}
#stock-table .stock-table .stock-col-name{width:280px;min-width:280px;max-width:280px}
.stock-panel .panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.stock-panel h2{font-size:19px;margin:0 0 6px;line-height:1.4}
.stock-panel .panel-head p{font-size:13px;color:var(--color-text-secondary);margin:0}
.stock-tools{display:flex;gap:8px;align-items:flex-start}
.stock-tools button{display:flex;gap:8px;align-items:center}
.stock-filters{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(130px,1fr));gap:12px;align-items:end;margin:0 0 16px}
.stock-filters label,.stock-viewbar label,.stock-save-view label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--color-text-secondary);font-weight:500}
.stock-filters :is(input,select),.stock-viewbar select,.stock-save-view input{width:100%;min-width:0;min-height:38px;margin:0;font:inherit;font-size:14px;color:var(--color-text)}
.stock-filters>button{justify-self:start;min-height:38px}
.stock-viewbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:16px 0;border-top:1px solid var(--color-border)}
.stock-viewbar>label{min-width:210px}.stock-viewbar>p{margin:0 0 8px auto;font-size:13px;color:var(--color-text-secondary)}
.stock-save-view{position:relative}.stock-save-view summary{cursor:pointer;padding:10px 12px;border:1px solid var(--color-border);border-radius:8px;font-size:13px;list-style:none}
.stock-save-view form{position:absolute;z-index:8;top:calc(100% + 8px);left:0;width:280px;padding:16px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px}
.stock-save-view form button{margin-top:12px}.stock-save-view form p{font-size:12px;line-height:1.5;margin:10px 0 0}
.stock-data-note{background:var(--color-info-bg);color:var(--color-info-text);padding:12px 14px;border-radius:8px;font-size:13px;line-height:1.5}
.stock-bulk{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 16px;background:var(--color-light-green);border:1px solid var(--color-border);border-radius:8px;margin-bottom:12px;font-size:13px}
.stock-table-wrap{max-height:650px;overflow:auto;border:1px solid var(--color-border);border-radius:10px;scrollbar-gutter:stable;scroll-padding-top:60px;overscroll-behavior:contain}
.stock-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;background:var(--color-surface)}
.stock-table th{position:sticky;top:0;z-index:2;background:var(--color-surface-secondary);color:var(--color-text-secondary);font-size:12px;font-weight:500;text-align:left;white-space:nowrap;padding:12px;border-bottom:1px solid var(--color-border)}
.stock-table th button{display:flex;align-items:center;gap:6px;background:none;border:0;box-shadow:none;padding:0;min-height:24px;color:inherit;font:inherit;text-align:left}
.stock-table th button span{color:var(--color-text-secondary)}
.stock-table td{padding:10px 12px;vertical-align:middle;border-bottom:1px solid var(--color-border);font-variant-numeric:tabular-nums}
.stock-table tbody tr:last-child td{border-bottom:0}.stock-table tbody tr:hover{background:var(--color-surface-secondary)}
.stock-table :is(th,td):first-child{width:34px;padding-right:0}.stock-table input[type=checkbox]{accent-color:var(--color-green);width:16px;height:16px;cursor:pointer}
.stock-table .stock-col-name{min-width:250px;width:32%;max-width:420px}.stock-product-button{display:block;background:none!important;border:0!important;box-shadow:none!important;width:100%;padding:0!important;text-align:left;color:inherit;cursor:pointer}
.stock-product-button .ui-product-cell{min-width:220px}.stock-product-button .ui-product-cell strong{font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.stock-product-button .ui-product-cell small{font-size:12px;line-height:1.45}.stock-product-button:hover .ui-product-cell strong{color:var(--color-green)}
.stock-table .stock-col-actions{white-space:nowrap}.stock-detail-button{font-size:12px!important;padding:6px 10px!important;min-height:32px!important}
.stock-col-available{font-weight:600}.stock-unit{display:block;font-size:12px;color:var(--color-text-secondary);font-weight:400;margin-top:3px}
.stock-negative{color:var(--color-danger-text);font-weight:600}.stock-unknown{font-size:12px;color:var(--color-warning-text)}
.stock-table .stock-col-signal{min-width:130px}.stock-table .stock-col-suggested{min-width:130px}.stock-table .stock-col-category,.stock-table .stock-col-suppliers{min-width:150px;max-width:230px}
#stock-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;flex-wrap:wrap}#stock-pagination>label{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--color-text-secondary)}#stock-pagination select{min-height:34px;padding:4px 24px 4px 10px;width:auto}#stock-pagination .pager{margin:0;flex:1;justify-content:flex-end;gap:16px}
.stock-data-details{margin-top:20px;border-top:1px solid var(--color-border);padding-top:16px;color:var(--color-text-secondary);font-size:12px;line-height:1.6}.stock-data-details summary{cursor:pointer}.stock-data-details p{margin:10px 0}
.stock-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.stock-detail-heading .ui-product-cell{min-width:0}.stock-detail-heading .ui-product-cell strong{font-size:18px}.stock-detail-heading img{width:56px;height:56px}
.stock-detail-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.stock-detail-kpis>div{background:var(--color-surface-secondary);border:1px solid var(--color-border);border-radius:8px;padding:12px}.stock-detail-kpis span{display:block;color:var(--color-text-secondary);font-size:12px;line-height:1.4}.stock-detail-kpis strong{display:block;font-size:21px;margin-top:7px;font-variant-numeric:tabular-nums}.stock-detail-kpis small{font-size:12px;color:var(--color-text-secondary);font-weight:400}
.stock-detail-warning{background:var(--color-warning-bg);color:var(--color-warning-text);padding:14px 16px;border-radius:8px;margin:16px 0;font-size:13px;line-height:1.6}.stock-detail-warning ul{margin:8px 0 0;padding-left:20px}
.stock-planning{margin:20px 0}.stock-planning-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;border:0;padding:0;margin:16px 0}.stock-planning-fields label{display:flex;flex-direction:column;gap:6px;font-size:13px}.stock-planning-fields input{min-width:0;width:100%}.stock-planning-fields .stock-unit-confirm{grid-column:1/-1;display:flex;flex-direction:row;align-items:flex-start;font-size:13px;line-height:1.5}.stock-unit-confirm input{width:auto;margin:3px 0 0}.stock-planning-fields button{justify-self:start}
#stock-product-history details{margin:18px 0}#stock-product-history summary{cursor:pointer;font-size:14px;font-weight:600}#stock-product-history table{font-size:13px}#stock-product-history p{font-size:13px;color:var(--color-text-secondary)}
.inventory-workspace :is(button,a,input,select,summary):focus-visible,.stock-planning :is(input,button):focus-visible{outline:2px solid var(--color-green);outline-offset:3px}
@media(max-width:1199px){.inventory-kpis{gap:12px}.stock-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.stock-search{grid-column:span 2}.stock-panel{padding:20px}.stock-table .stock-col-name{min-width:230px}}
@media(max-width:767px){.inventory-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}.stock-panel{padding:14px}.stock-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stock-tools{width:100%;justify-content:space-between}.stock-viewbar>p{width:100%;margin:0}.stock-viewbar>label{min-width:0;flex:1}.stock-viewbar select{max-width:100%}.stock-table-wrap{max-height:600px}.stock-save-view form{left:auto;right:0;width:min(280px,calc(100vw - 64px))}.stock-detail-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.stock-detail-heading{flex-wrap:wrap}.stock-detail-heading .ui-product-cell strong{font-size:16px}.stock-planning-fields{grid-template-columns:1fr}#stock-pagination .pager{width:100%;justify-content:space-between;flex:auto}.stock-bulk button{font-size:12px}}
@media(prefers-reduced-motion:reduce){.inventory-workspace *{scroll-behavior:auto;transition:none!important}}
