/* AD341: only the base product workspace; no global grid or form changes. */
.fruit-catalog-native.fruit-master-fixed{height:var(--fruit-master-height);min-height:0;display:flex;flex-direction:column;overflow:hidden}
.fruit-master-fixed>.fruit-catalog-tabs{flex:none}
.fruit-master-fixed>div,.fruit-master-fixed .fruit-product-workspace,.fruit-master-fixed .fruit-product-workspace>div,.fruit-master-fixed .fruit-catalog-tree-layout{height:100%;min-height:0;flex:1}
.fruit-master-fixed .fruit-catalog-tree-layout{align-items:stretch;overflow:hidden}
.fruit-master-fixed .fruit-catalog-tree-pane{display:flex;flex-direction:column;min-height:0;max-height:none}
.fruit-master-fixed .fruit-catalog-scope-selector{flex:none;padding-bottom:8px}
.fruit-master-fixed .fruit-catalog-tree-frame{flex:1;height:0!important;min-height:0!important}
.fruit-master-fixed .fruit-catalog-list-pane,.fruit-master-fixed .fruit-goods-list{height:100%;min-height:0;overflow:hidden}
.fruit-master-fixed .fruit-list-crud{height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto minmax(0,1fr) auto auto;gap:0}
.fruit-master-fixed .fruit-goods-filters{grid-row:1;grid-column:1/-1;margin:0 0 8px;flex:none}
.fruit-master-fixed .fruit-list-crud>.page-head{grid-row:2;grid-column:1;min-width:0;margin:0;padding:0 0 8px;align-items:center}
.fruit-master-fixed .fruit-list-crud>.page-head>div:first-child,.fruit-master-fixed .page-head .btn-ghost{display:none}
.fruit-master-fixed .page-head .toolbar{justify-content:flex-start;gap:8px;flex-wrap:wrap}
.fruit-master-fixed .page-head .btn-primary{height:32px;min-height:32px}
/* Keep native column selection, without the removed duplicate search/AI/export toolbar. */
.fruit-master-fixed .fruit-goods-list .smart-grid,.fruit-master-fixed .fruit-goods-list .grid-workspace{display:contents}
.fruit-master-fixed .fruit-goods-list .grid-toolbar{grid-row:2;grid-column:2;display:flex;align-items:center;justify-content:flex-end;gap:0;padding:0 0 8px 8px;border:0;background:transparent}
.fruit-master-fixed .fruit-goods-list .tool-primary,.fruit-master-fixed .fruit-goods-list .tool-actions>button:not([title="列、密度与视图"]){display:none!important}
.fruit-master-fixed .fruit-goods-list .tool-actions{display:flex;padding:0;overflow:visible}
.fruit-master-fixed .fruit-goods-list .grid-toolbar button{height:32px;min-height:32px}
.fruit-master-fixed .fruit-goods-list .batch-bar{grid-row:3;grid-column:1/-1;max-height:72px;overflow:auto;margin:0}
.fruit-master-fixed .fruit-goods-list .grid-scroll,.fruit-master-fixed .fruit-goods-list .grid-loading,.fruit-master-fixed .fruit-goods-list .empty{grid-row:4;grid-column:1/-1;min-height:0;max-height:none;height:auto;overflow:auto;overscroll-behavior:contain;isolation:isolate;background:#fff;border:1px solid var(--ros-color-border,#d9dfe8)}
.fruit-master-fixed .fruit-goods-list .grid-footer{grid-row:5;grid-column:1/-1;position:static;flex:none;background:#fff}
.fruit-master-fixed .fruit-goods-list .grid-stats{min-width:0;overflow:auto;white-space:nowrap;max-height:36px}
.fruit-master-fixed .fruit-goods-list .grid-stats>span{flex-shrink:0}
.fruit-master-fixed .fruit-goods-list .pager{flex:none;white-space:nowrap}
.fruit-master-fixed .fruit-goods-list .pager label{display:flex;align-items:center;gap:4px;white-space:nowrap}
.fruit-master-fixed .fruit-goods-list .fruit-catalog-counts{grid-row:6;grid-column:1/-1;margin:0;padding:4px 0}
.fruit-master-fixed .fruit-goods-list .smart-table{border-collapse:separate;border-spacing:0}
.fruit-master-fixed .fruit-goods-list .group-head{display:none}
.fruit-master-fixed .fruit-goods-list .smart-table thead th{position:sticky;top:0!important;z-index:20!important;background:#f4f6f9!important;box-shadow:0 1px 0 #d9dfe8;white-space:nowrap}
.fruit-master-fixed .fruit-goods-list .smart-table thead th.sticky-select,.fruit-master-fixed .fruit-goods-list .smart-table thead th.frozen,.fruit-master-fixed .fruit-goods-list .smart-table thead th.sticky-action{z-index:24!important}
.fruit-master-fixed .fruit-goods-list .smart-table tbody td{border-left:0!important;box-shadow:none!important}
.fruit-master-fixed .fruit-goods-list .smart-table tbody tr.risk-low-stock>td:first-child{box-shadow:inset 3px 0 var(--ros-color-error,#d92d20)!important}
.fruit-master-fixed .fruit-goods-list .smart-table tbody tr.risk-negative>td:first-child{box-shadow:inset 3px 0 var(--ros-color-warning,#dc6803)!important}
@media(max-width:760px){
 .fruit-master-fixed .fruit-catalog-tree-layout{grid-template-rows:100px minmax(0,1fr);gap:8px}
 .fruit-master-fixed .fruit-catalog-tree-pane{height:100px}
 .fruit-master-fixed .fruit-catalog-list-pane{min-height:0}
 .fruit-master-fixed .fruit-list-crud{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto minmax(0,1fr) auto auto}
 .fruit-master-fixed .fruit-goods-filters{grid-row:1;padding:8px;margin-bottom:6px}
 .fruit-master-fixed .fruit-list-crud>.page-head{grid-row:2;grid-column:1;padding-bottom:6px}
 .fruit-master-fixed .page-head .toolbar{gap:4px;flex-wrap:nowrap}
 .fruit-master-fixed .page-head .btn-primary{padding:0 7px;font-size:12px;gap:3px}
 .fruit-master-fixed .fruit-goods-list .grid-toolbar{grid-row:2;grid-column:2;padding:0 0 6px 4px;justify-content:flex-end}
 .fruit-master-fixed .fruit-goods-list .batch-bar{grid-row:3}
 .fruit-master-fixed .fruit-goods-list .grid-scroll,.fruit-master-fixed .fruit-goods-list .empty,.fruit-master-fixed .fruit-goods-list .grid-loading{grid-row:4}
 .fruit-master-fixed .fruit-goods-list .grid-footer{grid-row:5;padding:6px;display:flex;gap:6px;flex-wrap:wrap;justify-content:space-between}
 .fruit-master-fixed .fruit-goods-list .grid-stats>span:not(:first-child){display:none}
 .fruit-master-fixed .fruit-goods-list .fruit-catalog-counts{grid-row:6}
 .fruit-master-fixed .fruit-goods-filters{position:relative}
 .fruit-master-fixed .fruit-goods-advanced{position:absolute;left:0;right:0;top:100%;z-index:40;max-height:160px;overflow:auto;padding:10px;background:#fff;border:1px solid #d9dfe8;box-shadow:0 6px 18px #17243b22}
}
@media(max-width:760px) and (max-height:740px){.fruit-master-fixed .fruit-catalog-tree-layout{grid-template-rows:80px minmax(0,1fr)}.fruit-master-fixed .fruit-catalog-tree-pane{height:80px}}
