@media screen {
html body #transferBusinessOptions[hidden],html body [data-business-submenu][hidden]{display:none!important}
html body .business-sidebar-group>div{padding:4px 0 4px 12px;margin:3px 8px;border-left:2px solid #edd5dd}
html body .business-sidebar-group>div>button{font-size:12px!important}
html body[data-active-page] #inventoryTransfersTab.transfer-business-active>:not(#transferBusinessWorkspace){display:none!important}
html body[data-active-page] #inventoryServiceModal:has(#transferBusinessWorkspace) .inventory-service-head{display:none!important}
html body[data-active-page] #inventoryPage #inventoryServiceModal:has(#transferBusinessWorkspace){position:static!important;inset:auto!important;padding:0!important;background:transparent!important;backdrop-filter:none!important;width:100%!important;height:auto!important}
html body[data-active-page] #inventoryServiceModal:has(#transferBusinessWorkspace)>.inventory-service-card{width:100%!important;max-width:none!important;margin:0!important;height:calc(100dvh - 64px)!important;max-height:calc(100dvh - 64px)!important}
}
.business-workspace-header,.business-document-card{background:#fff;border:1px solid #e3e8ef;border-radius:12px;padding:18px;margin-bottom:16px}
.business-workspace-header h2{margin:5px 0}.business-workspace-header p{margin:0;color:#64748b}
.business-toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:end;background:#fff;border:1px solid #e3e8ef;border-radius:12px;padding:16px;margin-bottom:16px}
.business-toolbar label{display:grid;gap:6px;flex:1;min-width:180px}.business-document-line{display:flex;gap:16px;align-items:center;padding:10px;border-bottom:1px solid #edf0f4}.business-document-line strong{flex:1}
.business-document-card h3{margin:0}.business-editor{margin-bottom:18px}
/* A filtered row must stay hidden even when register grid rules are stronger. */
html body .record-register .record-register-row.is-hidden{display:none!important}

.business-category-hidden{display:none!important}
.report-category-label{display:block;font-size:11px;color:#64748b;font-weight:400}
@media screen {
 html body[data-active-page] #reportsWorkspace #reportSummaryCards {display:none!important}
 html body[data-active-page] #inventoryProductionTab #productionWorkspaceActions{display:none!important}
 html body[data-active-page] #inventoryServiceModal:has(#inventoryProductionTab) .inventory-service-head{display:none!important}
 html body[data-active-page] #inventoryPage #inventoryServiceModal:has(#inventoryProductionTab){position:static!important;inset:auto!important;padding:0!important;background:transparent!important;backdrop-filter:none!important;width:100%!important;height:auto!important}
 html body[data-active-page] #inventoryServiceModal:has(#inventoryProductionTab)>.inventory-service-card{width:100%!important;max-width:none!important;margin:0!important;height:calc(100dvh - 64px)!important;max-height:calc(100dvh - 64px)!important}
 html body[data-active-page] #productionWorkspaceModal:not(.is-hidden){position:static!important;inset:auto!important;padding:0!important;background:transparent!important;backdrop-filter:none!important;width:100%!important}
 html body[data-active-page] #productionWorkspaceModal>.production-workspace-modal-card{width:100%!important;max-width:none!important;margin:0!important;max-height:none!important;box-shadow:none!important}
 html body[data-active-page] #closeProductionWorkspaceModal{display:none!important}
 html body #reportsWorkspace.business-report-workspace>header,html body #reportsWorkspace.business-report-workspace>.section-title-row{background:#fff!important;border:1px solid #e3e8ef;border-radius:12px;padding:16px}
 html body #reportsWorkspace.business-report-workspace .report-section-hidden{display:none!important}
 html body .page .panel-card,html body .shell-option-workspace .panel-card{border-radius:12px;box-shadow:none}
}
@media screen {
html body[data-active-page="reportsPage"] #reportsPage #reportsWorkspace.business-report-workspace #reportSummaryCards.report-summary-cards{display:none!important}
html body[data-active-page="reportsPage"] #reportsPage #reportsWorkspace.business-report-workspace .record-register-scroll .record-register>.table-row.record-register-row{overflow:visible!important}
html body[data-active-page="reportsPage"] #reportsPage #reportsWorkspace.business-report-workspace .section-title-row{background:#fff!important;color:#172033!important;border:1px solid #e3e8ef!important;border-radius:12px!important}
html body[data-active-page="reportsPage"] #reportsPage #reportsWorkspace.business-report-workspace .section-title-row h2{color:#172033!important}
html body .record-register-scroll .record-register>.table-row.record-register-row.business-category-hidden{display:none!important}

}
html body[data-active-page="settingsPage"] #settingsPage.category-business-active>:not(#categoryBusinessWorkspace){display:none!important}
html body[data-active-page="settingsPage"] #settingsPage.category-business-active>#categoryBusinessWorkspace{display:block!important;width:100%;padding:20px;box-sizing:border-box}

html body[data-active-page] .record-register-scroll .record-register>.table-row.record-register-row.is-hidden{display:none!important}

html body[data-active-page] :is(#salesPage,#purchasesPage,#inventoryPage,#reportsPage,#usersPage,#settingsPage) .record-register-scroll .record-register>.table-row.record-register-row.is-hidden{display:none!important}

/* Core QA targeted isolation and exhausted pagination */
#accountingPage:has(> dialog.accounting-inline-workspace[open]) > #accountingWorkspace,
#accountingPage:has(> dialog.accounting-inline-workspace[open]) > #accountingHub,
#accountingPage:has(> dialog.accounting-inline-workspace[open]) > .dashboard-header,
#accountingPage:has(> dialog.accounting-inline-workspace[open]) > .erp-app-ribbon { display:none!important; }
#moreInventoryMovements[hidden] { display:none!important; }
