/* Local to owned catalog content and role controls. No global layout override. */
#catalogSection[data-catalog-ownership="v2"] .catalog-copy-card.is-production-content-hidden {
  grid-template-columns: 176px minmax(0,1.5fr) minmax(0,1fr) !important;
}
#catalogSection[data-catalog-ownership="v2"] .catalog-copy-card.is-production-content-hidden .catalog-copy-main { grid-column:2 !important; }
#catalogSection[data-catalog-ownership="v2"] .catalog-copy-card.is-production-content-hidden .catalog-copy-side { grid-column:3 !important; }
#catalogSection[data-catalog-ownership="v2"] .catalog-compact-table { table-layout:auto !important; width:100% !important; min-width:0 !important; }
#catalogSection[data-catalog-ownership="v2"] .catalog-compact-table col[hidden] { display:none !important; width:0 !important; }
@media (min-width:769px) {
 html body:not(.is-mobile-viewport)[data-main-view="catalog"] #catalogSection[data-catalog-ownership="v2"].is-catalog-compact-table-layout .catalog-compact-table {
  table-layout:auto !important; width:calc(100% - 16px) !important; min-width:0 !important;
 }
}
#settingsSection [data-settings-role-editor] .business-role-content-field { display:flex; grid-column:span 2; flex-wrap:wrap; align-items:center; gap:12px; min-height:32px; }
#settingsSection [data-settings-role-editor] .business-role-content-field > span { flex:1; min-width:100px; }
#settingsSection [data-settings-role-editor] .business-role-content-field label { display:inline-flex; align-items:center; gap:6px; }
@media (max-width:768px) {
 #settingsSection [data-settings-role-editor] .business-role-content-field { grid-column:1 / -1; }
 #catalogSection[data-catalog-ownership="v2"] .catalog-copy-card.is-production-content-hidden { grid-template-columns:minmax(0,1fr) !important; }
 #catalogSection[data-catalog-ownership="v2"] .catalog-copy-card.is-production-content-hidden .catalog-copy-main,
 #catalogSection[data-catalog-ownership="v2"] .catalog-copy-card.is-production-content-hidden .catalog-copy-side { grid-column:1 !important; }
}
/* Protected funds blocks occupy only the slots they actually render. */
#fundsSection .funds-overview-grid,
#fundsSection .funds-metric-grid,
.funds-detail-summary {grid-template-columns:repeat(auto-fit,minmax(180px,1fr));}
#fundsSection td[hidden],#fundsSection th[hidden],
.funds-detail-table td[hidden],.funds-detail-table th[hidden] {display:none!important;}
#inventorySection table[data-content-collapsed="true"] {width:100%!important;min-width:0!important;}
#inventoryMetricGrid {grid-template-columns:repeat(auto-fit,minmax(170px,1fr));}
#inventoryMetricGrid .inventory-metric-card[hidden] {display:none!important;}
.material-usage-table[data-content-collapsed="true"] {width:100%!important;min-width:0!important;}
.material-usage-table [data-material-usage-column][hidden] {display:none!important;}
body[data-main-view="materialUsage"] #materialAddButton,
body[data-main-view="materialUsage"] #materialAssignButton,
body[data-main-view="materialUsage"] #materialImportButton,
body[data-main-view="materialUsage"] #inventorySection .inventory-header-actions,
body[data-main-view="materialUsage"] #inventorySection#inventorySection#inventorySection .finished-inventory-controls,
body[data-main-view="materialUsage"] #inventorySearchGroup,
body[data-main-view="materialUsage"] #inventorySection#inventorySection #inventoryLocationTabs#inventoryLocationTabs {display:none!important;}

#companyOverviewPanel #companyChannelDashboard [data-content-hidden="true"] { display: none !important; }
#shippingOrdersPanel #shippingTableView .shipping-fulfillment-row[data-content-hidden="true"] { display: none !important; }
#companyOverviewPanel #companyChannelDashboard[data-content-layout="restricted"] .channel-dashboard-main,
#companyOverviewPanel #companyChannelDashboard[data-content-layout="restricted"] .channel-dashboard-bottom { grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)) !important; }
