/* AIOTOR V12.7.12 — final viewport, navigation and data-visibility contract.
   Loaded last.  The browser owns vertical scrolling on normal ERP pages.
   Business tables fit the viewport and wrap complete values; no standard page
   requires horizontal panning to reach data or actions. */

:root{
  --v12712-bg:#f5f7fb;
  --v12712-surface:#fff;
  --v12712-soft:#f8fafc;
  --v12712-line:#dfe5ee;
  --v12712-line-strong:#cfd8e6;
  --v12712-ink:#172033;
  --v12712-muted:#667085;
  --v12712-accent:#245ea8;
  --v12712-accent-soft:#edf4ff;
  --v12712-danger:#b42318;
  --v12712-radius:8px;
  --v12712-header:48px;
}

html{min-height:100%;height:auto!important;overflow-x:hidden!important;overflow-y:auto!important;background:var(--v12712-bg)}
body{min-height:100%;height:auto!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;background:var(--v12712-bg);color:var(--v12712-ink)}
*{box-sizing:border-box}

/* -------------------- One canonical ERP header -------------------- */
.rt-topbar.ai-universal-header,
.ai-universal-header.rt-topbar{
  position:relative!important;top:auto!important;left:auto!important;right:auto!important;
  z-index:1000!important;display:grid!important;grid-template-columns:142px minmax(0,1fr) auto!important;
  grid-template-areas:"brand menu tools"!important;align-items:center!important;gap:8px!important;
  width:100%!important;max-width:100%!important;min-height:var(--v12712-header)!important;height:auto!important;
  margin:0!important;padding:4px 8px!important;border:0!important;border-bottom:1px solid var(--v12712-line)!important;
  border-radius:0!important;background:#fff!important;box-shadow:none!important;overflow:visible!important;
}
.rt-topbar.ai-universal-header .rt-brand{grid-area:brand!important;display:flex!important;align-items:center!important;width:138px!important;min-width:138px!important;height:38px!important;margin:0!important;padding:2px 6px!important;border:1px solid var(--v12712-line)!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important;overflow:visible!important}
.rt-topbar.ai-universal-header .rt-brand-mark{display:flex!important;align-items:center!important;width:122px!important;min-width:122px!important;height:30px!important;background:transparent!important;border:0!important;border-radius:0!important;overflow:visible!important}
.rt-topbar.ai-universal-header .rt-brand-mark img{display:block!important;width:122px!important;max-width:122px!important;height:28px!important;object-fit:contain!important;object-position:left center!important}
.rt-topbar.ai-universal-header .rt-header-menu{grid-area:menu!important;display:flex!important;align-items:center!important;align-content:center!important;gap:2px!important;flex-wrap:wrap!important;min-width:0!important;width:100%!important;max-width:100%!important;height:auto!important;margin:0!important;padding:0!important;overflow:visible!important;scrollbar-width:none!important}
.rt-topbar.ai-universal-header .rt-header-menu>.rt-menu,.rt-topbar.ai-universal-header .rt-header-menu>.rt-direct-link{flex:0 0 auto!important;position:relative!important}
.rt-topbar.ai-universal-header .rt-menu-btn,.rt-topbar.ai-universal-header .rt-direct-link{min-height:30px!important;height:30px!important;padding:0 8px!important;border:1px solid transparent!important;border-radius:7px!important;background:transparent!important;color:#26364d!important;box-shadow:none!important;font-size:10.5px!important;font-weight:800!important;white-space:nowrap!important}
.rt-topbar.ai-universal-header .rt-menu-btn:hover,.rt-topbar.ai-universal-header .rt-direct-link:hover,.rt-topbar.ai-universal-header .rt-menu.active>.rt-menu-btn{background:#eef4fb!important;border-color:#d5e1ef!important;color:#163e70!important}
.rt-topbar.ai-universal-header .rt-menu-panel{position:absolute!important;top:calc(100% + 4px)!important;left:0!important;right:auto!important;z-index:5000!important;min-width:210px!important;max-width:min(360px,calc(100vw - 16px))!important;max-height:min(72vh,620px)!important;overflow-y:auto!important;overflow-x:hidden!important;background:#fff!important;border:1px solid var(--v12712-line)!important;border-radius:9px!important;box-shadow:0 12px 30px rgba(15,23,42,.13)!important}
.rt-topbar.ai-universal-header .rt-toolbar{grid-area:tools!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:4px!important;flex-wrap:wrap!important;min-width:0!important;max-width:560px!important;width:auto!important;margin:0!important;overflow:visible!important}
.rt-topbar.ai-universal-header .rt-toolbar .rt-search{display:flex!important;align-items:center!important;gap:4px!important;flex:1 1 170px!important;width:min(230px,18vw)!important;min-width:145px!important;max-width:230px!important;height:30px!important;padding:0 8px!important;border:1px solid var(--v12712-line)!important;border-radius:7px!important;background:#fff!important;box-shadow:none!important}
.rt-topbar.ai-universal-header .rt-toolbar .rt-search input{width:100%!important;min-width:0!important;border:0!important;outline:0!important;background:transparent!important;font:inherit!important;font-size:10.5px!important;color:var(--v12712-ink)!important}
.rt-topbar.ai-universal-header .rt-btn,.rt-topbar.ai-universal-header .rt-user-chip{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:30px!important;height:30px!important;padding:0 8px!important;border:1px solid var(--v12712-line)!important;border-radius:7px!important;background:#fff!important;color:#344054!important;box-shadow:none!important;font-size:10.5px!important;font-weight:800!important;white-space:nowrap!important;text-decoration:none!important}
.rt-topbar.ai-universal-header .rt-btn.primary{background:var(--v12712-accent)!important;border-color:var(--v12712-accent)!important;color:#fff!important}
.rt-topbar.ai-universal-header .rt-btn.logout{background:#fff7f6!important;border-color:#f4cbc7!important;color:#a63d34!important}
.rt-topbar.ai-universal-header .rt-user-chip{max-width:120px!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* Never show developer/build badges to ERP users. */
.rt-app::after,[class*="runtime"]::after[data-build],.rt-chrome-version,.runtime-build-badge{display:none!important;content:none!important}

@media(max-width:1260px){
  .rt-topbar.ai-universal-header{grid-template-columns:138px minmax(0,1fr)!important;grid-template-areas:"brand tools" "menu menu"!important}
  .rt-topbar.ai-universal-header .rt-toolbar{max-width:none!important;width:100%!important}
  .rt-topbar.ai-universal-header .rt-header-menu{padding-top:2px!important;border-top:1px solid #f0f3f7!important}
}
@media(max-width:760px){
  .rt-topbar.ai-universal-header{grid-template-columns:1fr!important;grid-template-areas:"brand" "menu" "tools"!important;padding:5px!important}
  .rt-topbar.ai-universal-header .rt-brand{width:130px!important;min-width:130px!important}
  .rt-topbar.ai-universal-header .rt-toolbar{justify-content:flex-start!important}
  .rt-topbar.ai-universal-header .rt-toolbar .rt-search{width:100%!important;max-width:none!important;flex:1 1 100%!important}
  .rt-topbar.ai-universal-header .rt-menu-panel{position:fixed!important;left:6px!important;right:6px!important;top:86px!important;max-width:none!important}
}

/* -------------------- Page owns vertical scrolling -------------------- */
body.aiotor-runtime-shell.rt-natural-page :is(.rt-app,.rt-platinum-shell,.rt-dashboard,.rt-content,.rt-main,.rt-table-card,.rt-table-wrap),
body.page-finance-ultimate :is(.rt-app,.rt-platinum-shell,.rt-dashboard,.rt-content,.rt-main,.finance-app-shell,.finance-runtime-content,.finance-main,.fu-shell,.fu-content,.fu-view.active,.fu-panel,.fu-table-wrap),
body.admin-tw:not(.page-settings.page-cat-printstudio) :is(.app-shell,.main.main-full,.shared-shell-content,.shared-shell-body,.tabs.active,.panel,.card,.table-wrap,.data-table-wrap,.list-wrap),
body.page-crm-ultimate :is(.crm-app-shell,.crm-main,.crm-shell,.crm-content,.ai-v12-shell,.ai-v12-table-wrap),
body.page-control-center :is(.control-app-shell,.control-main,.control-shell,.control-content,.ai-v12-shell,.ai-v12-table-wrap){
  height:auto!important;max-height:none!important;min-height:0!important;overflow-y:visible!important;
}
body.aiotor-runtime-shell.rt-natural-page :is(.rt-content,.rt-main,.rt-table-card,.rt-table-wrap),
body.page-finance-ultimate :is(.rt-content,.rt-main,.finance-main,.fu-shell,.fu-content,.fu-view.active,.fu-panel,.fu-table-wrap),
body.admin-tw:not(.page-settings.page-cat-printstudio) :is(.shared-shell-content,.shared-shell-body,.tabs.active),
body.page-crm-ultimate :is(.ai-v12-shell,.ai-v12-table-wrap),
body.page-control-center :is(.ai-v12-shell,.ai-v12-table-wrap){overflow-x:hidden!important}

body.aiotor-runtime-shell.rt-natural-page .rt-app,
body.page-finance-ultimate .rt-app{display:block!important;min-height:100dvh!important;padding:0!important;background:var(--v12712-bg)!important}
body.aiotor-runtime-shell.rt-natural-page .rt-platinum-shell,
body.page-finance-ultimate .rt-platinum-shell{display:block!important;min-height:100dvh!important;padding:0!important;border:0!important;border-radius:0!important;background:var(--v12712-bg)!important;box-shadow:none!important}
body.aiotor-runtime-shell.rt-natural-page .rt-dashboard,
body.page-finance-ultimate .rt-dashboard{display:block!important;min-height:100dvh!important;padding:0!important;border:0!important;border-radius:0!important;background:var(--v12712-bg)!important;box-shadow:none!important}
body.aiotor-runtime-shell.rt-natural-page .rt-content,
body.page-finance-ultimate .rt-content{display:block!important;width:100%!important;max-width:100%!important;padding:6px 8px 24px!important}
body.aiotor-runtime-shell.rt-natural-page .rt-main,
body.page-finance-ultimate .rt-main{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;min-height:calc(100dvh - 64px)!important}
body.aiotor-runtime-shell.rt-natural-page .rt-titlebar{min-height:34px!important;margin:0 0 5px!important;padding:3px 5px!important}
body.aiotor-runtime-shell.rt-natural-page .rt-eyebrow{display:none!important}
body.aiotor-runtime-shell.rt-natural-page .rt-titlebar h1{font-size:14px!important;line-height:1.15!important;margin:0!important}
body.aiotor-runtime-shell.rt-natural-page [data-rt-subtitle]{margin:1px 0 0!important;font-size:9.5px!important;line-height:1.25!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
body.aiotor-runtime-shell.rt-natural-page .rt-screen-toolbar{margin:0 0 5px!important;padding:4px 5px!important;min-height:36px!important;border:1px solid var(--v12712-line)!important;border-radius:7px!important;background:#fff!important;box-shadow:none!important}
body.aiotor-runtime-shell.rt-natural-page .rt-table-card{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;border:1px solid var(--v12712-line)!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important}
body.aiotor-runtime-shell.rt-natural-page .rt-table-head{display:none!important}
body.aiotor-runtime-shell.rt-natural-page .rt-table-wrap{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}

/* -------------------- No horizontal scrolling, no hidden business data -------------------- */
body.aiotor-runtime-shell.rt-natural-page .rt-table,
body.page-finance-ultimate .fu-table,
body.admin-tw:not(.page-settings.page-cat-printstudio) table,
body.page-crm-ultimate .ai-v12-table,
body.page-control-center .ai-v12-table,
body.b2b-desk-page table{
  width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important;
}
body.aiotor-runtime-shell.rt-natural-page .rt-table col,
body.page-finance-ultimate .fu-table col{min-width:0!important;max-width:none!important}
body.aiotor-runtime-shell.rt-natural-page .rt-table th,
body.aiotor-runtime-shell.rt-natural-page .rt-table td,
body.page-finance-ultimate .fu-table th,
body.page-finance-ultimate .fu-table td,
body.admin-tw:not(.page-settings.page-cat-printstudio) table th,
body.admin-tw:not(.page-settings.page-cat-printstudio) table td,
body.page-crm-ultimate .ai-v12-table th,
body.page-crm-ultimate .ai-v12-table td,
body.page-control-center .ai-v12-table th,
body.page-control-center .ai-v12-table td,
body.b2b-desk-page table th,
body.b2b-desk-page table td{
  min-width:0!important;max-width:none!important;height:auto!important;max-height:none!important;
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
  overflow-wrap:anywhere!important;word-break:normal!important;vertical-align:top!important;
}
body.aiotor-runtime-shell.rt-natural-page .rt-table th,
body.page-finance-ultimate .fu-table th,
body.admin-tw:not(.page-settings.page-cat-printstudio) table th{padding:6px!important;font-size:9.5px!important;line-height:1.15!important;background:var(--v12712-soft)!important;color:#475467!important;text-transform:uppercase!important;letter-spacing:.04em!important}
body.aiotor-runtime-shell.rt-natural-page .rt-table td,
body.page-finance-ultimate .fu-table td,
body.admin-tw:not(.page-settings.page-cat-printstudio) table td{padding:6px!important;font-size:10.5px!important;line-height:1.28!important;color:#26364d!important}
body.aiotor-runtime-shell.rt-natural-page .rt-cell,
body.page-finance-ultimate .fu-table :is(a,span,b,small),
body.admin-tw:not(.page-settings.page-cat-printstudio) table :is(a,span,b,small){max-width:100%!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important}
body.aiotor-runtime-shell.rt-natural-page :is(.rt-actions,.rt-row-actions,.rt-action-cell),
body.page-finance-ultimate :is(.fu-actions,.fu-actions-row,.fu-docs),
body.admin-tw:not(.page-settings.page-cat-printstudio) :is(.actions,.inline-actions,.table-actions){display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:3px!important;min-width:0!important;white-space:normal!important}
body.aiotor-runtime-shell.rt-natural-page .rt-mini,
body.page-finance-ultimate .fu-table .fu-btn{min-width:0!important;max-width:100%!important;height:auto!important;min-height:25px!important;padding:3px 6px!important;white-space:normal!important;line-height:1.15!important}

/* Inputs/selects inside wide tables must shrink inside the cell. */
body.aiotor-runtime-shell.rt-natural-page .rt-table :is(input,select,textarea,button),
body.page-finance-ultimate .fu-table :is(input,select,textarea,button),
body.admin-tw:not(.page-settings.page-cat-printstudio) table :is(input,select,textarea,button){max-width:100%!important;min-width:0!important}

/* -------------------- Pagination must always be reachable -------------------- */
body.aiotor-runtime-shell.rt-natural-page .rt-pager,
body.aiotor-runtime-shell.rt-natural-page .rt-inline-pager,
body.page-finance-ultimate .fu-pager,
body.admin-tw:not(.page-settings.page-cat-printstudio) :is(.pagination,.pager,.table-pagination,[class*="pager"]){
  position:static!important;inset:auto!important;display:flex!important;visibility:visible!important;opacity:1!important;
  width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;min-height:36px!important;
  margin:0!important;padding:5px 6px!important;align-items:center!important;gap:4px!important;flex-wrap:wrap!important;
  overflow:visible!important;background:#fff!important;border-top:1px solid var(--v12712-line)!important;z-index:auto!important;
}
body.aiotor-runtime-shell.rt-natural-page .rt-pager-controls,
body.page-finance-ultimate .fu-pager-controls{display:flex!important;flex-wrap:wrap!important;gap:3px!important}
body.aiotor-runtime-shell.rt-natural-page .rt-page-tail,
body.page-finance-ultimate .fu-page-tail{margin-left:auto!important}

/* -------------------- Finance uses the same core shell/theme -------------------- */
body.page-finance-ultimate{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;background:var(--v12712-bg)!important;color:var(--v12712-ink)!important}
body.page-finance-ultimate .finance-runtime-content{padding:0 0 24px!important}
body.page-finance-ultimate .finance-main{padding:0!important}
body.page-finance-ultimate .finance-command-row{position:static!important;display:flex!important;align-items:center!important;gap:4px!important;flex-wrap:wrap!important;min-height:38px!important;margin:0!important;padding:3px 6px!important;background:#fff!important;border-bottom:1px solid var(--v12712-line)!important;box-shadow:none!important}
body.page-finance-ultimate .finance-subnav{display:flex!important;align-items:center!important;gap:2px!important;flex-wrap:wrap!important;min-width:0!important;overflow:visible!important}
body.page-finance-ultimate .finance-subnav .shell-workbench-subtab{display:inline-flex!important;align-items:center!important;min-height:29px!important;height:29px!important;padding:0 8px!important;border:1px solid transparent!important;border-radius:7px!important;background:transparent!important;color:#344054!important;font-size:10.5px!important;font-weight:800!important;text-decoration:none!important}
body.page-finance-ultimate .finance-subnav .shell-workbench-subtab.active{background:var(--v12712-accent-soft)!important;border-color:#c8dbf5!important;color:var(--v12712-accent)!important}
body.page-finance-ultimate .finance-command-filters{display:flex!important;align-items:center!important;gap:4px!important;flex:1 1 420px!important;justify-content:flex-end!important;min-width:0!important;margin:0 0 0 auto!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.page-finance-ultimate .finance-command-filters .fu-search{display:flex!important;align-items:center!important;flex:1 1 260px!important;min-width:170px!important;max-width:560px!important;height:30px!important;margin:0!important;padding:0 7px!important;border:1px solid var(--v12712-line)!important;border-radius:7px!important;background:#fff!important}
body.page-finance-ultimate .finance-command-filters :is(input,select,.fu-btn){height:30px!important;min-height:30px!important;border:1px solid var(--v12712-line)!important;border-radius:7px!important;background:#fff!important;box-shadow:none!important;font-size:10.5px!important}
body.page-finance-ultimate .finance-command-filters>input{width:116px!important;flex:0 1 116px!important}
body.page-finance-ultimate .finance-command-filters>select{width:64px!important;flex:0 0 64px!important}
body.page-finance-ultimate .fu-shell{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;padding:5px 7px 24px!important;background:var(--v12712-bg)!important;color:var(--v12712-ink)!important;font-size:11px!important;line-height:1.3!important}
body.page-finance-ultimate .fu-bootstrap{margin:0!important}
body.page-finance-ultimate .fu-panel{border:1px solid var(--v12712-line)!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important}
body.page-finance-ultimate .fu-panel-head{min-height:34px!important;padding:4px 6px!important;background:#fff!important;border-bottom:1px solid var(--v12712-line)!important}
body.page-finance-ultimate .fu-panel-head h3{font-size:13px!important;color:var(--v12712-ink)!important}
body.page-finance-ultimate .fu-panel-head p{display:none!important}
body.page-finance-ultimate .fu-btn{min-height:28px!important;height:auto!important;padding:4px 7px!important;border:1px solid var(--v12712-line)!important;border-radius:7px!important;background:#fff!important;color:#344054!important;box-shadow:none!important;font-size:10.5px!important;font-weight:800!important}
body.page-finance-ultimate .fu-btn.primary{background:var(--v12712-accent)!important;border-color:var(--v12712-accent)!important;color:#fff!important}
body.page-finance-ultimate .fu-table-wrap{border:0!important;background:#fff!important}
body.page-finance-ultimate .fu-table tr:hover td{background:#f8fbff!important}
body.page-finance-ultimate .fu-status{white-space:normal!important;line-height:1.15!important}

/* Reports: compact selector only. */
body.page-finance-ultimate .fu-report-launcher,body.page-finance-ultimate .fu-report-group{display:none!important}
body.page-finance-ultimate .fu-report-toolbar{display:flex!important;align-items:center!important;gap:4px!important;flex-wrap:wrap!important;min-height:34px!important;margin:0!important;padding:3px 5px!important;background:#fff!important;border-bottom:1px solid var(--v12712-line)!important}
body.page-finance-ultimate .fu-report-segments{display:flex!important;align-items:center!important;gap:2px!important;flex-wrap:wrap!important}
body.page-finance-ultimate .fu-report-segments button{min-height:27px!important;padding:3px 7px!important;border:1px solid transparent!important;border-radius:6px!important;background:transparent!important;color:#475467!important;font-size:10px!important;font-weight:800!important}
body.page-finance-ultimate .fu-report-segments button.active{background:var(--v12712-accent-soft)!important;border-color:#c8dbf5!important;color:var(--v12712-accent)!important}
body.page-finance-ultimate .fu-report-select{display:flex!important;align-items:center!important;gap:4px!important;margin-left:auto!important;color:#667085!important;font-size:10px!important;font-weight:750!important}
body.page-finance-ultimate .fu-report-select select{height:28px!important;min-width:220px!important;max-width:310px!important;border:1px solid var(--v12712-line)!important;border-radius:6px!important;background:#fff!important;color:var(--v12712-ink)!important}

/* -------------------- Shared Go-template screens -------------------- */
body.admin-tw:not(.page-settings.page-cat-printstudio) .app-shell{min-height:100dvh!important;padding:0!important;background:var(--v12712-bg)!important}
body.admin-tw:not(.page-settings.page-cat-printstudio) .main.main-full{width:100%!important;max-width:100%!important;padding:0!important}
body.admin-tw:not(.page-settings.page-cat-printstudio) .shared-shell-content{display:block!important;min-height:100dvh!important;width:100%!important;max-width:100%!important;background:var(--v12712-bg)!important}
body.admin-tw:not(.page-settings.page-cat-printstudio) .ai-universal-context{min-height:34px!important;height:auto!important;margin:0!important;padding:2px 6px!important;border-bottom:1px solid var(--v12712-line)!important;background:#fff!important}
body.admin-tw:not(.page-settings.page-cat-printstudio) .shell-workbench-subnav{display:flex!important;align-items:center!important;gap:2px!important;flex-wrap:wrap!important;overflow:visible!important}
body.admin-tw:not(.page-settings.page-cat-printstudio) .shared-shell-body{display:block!important;width:100%!important;max-width:100%!important;padding:5px 7px 24px!important;background:var(--v12712-bg)!important}
body.admin-tw:not(.page-settings.page-cat-printstudio) :is(.panel,.card,.table-card){border-radius:8px!important;box-shadow:none!important}

/* -------------------- CRM / Control Center / B2B -------------------- */
body.page-crm-ultimate,body.page-control-center{min-height:100dvh!important;overflow-x:hidden!important;overflow-y:auto!important;background:var(--v12712-bg)!important}
body.page-crm-ultimate>.rt-topbar,body.page-control-center>.rt-topbar{margin:0!important}
body.page-crm-ultimate .crm-compact-nav{position:static!important;display:flex!important;flex-wrap:wrap!important;gap:2px!important;min-height:34px!important;margin:0!important;padding:2px 6px!important;border-bottom:1px solid var(--v12712-line)!important;background:#fff!important}
body.page-crm-ultimate .ai-v12-shell,body.page-control-center .ai-v12-shell{width:100%!important;max-width:100%!important;margin:0!important;padding:5px 7px 24px!important}
body.page-crm-ultimate .crm-command-row{margin:0 0 5px!important;padding:3px 5px!important;min-height:36px!important}
body.b2b-desk-page{overflow-x:hidden!important;overflow-y:auto!important}
body.b2b-desk-page :is(.table-wrap,.tablewrap,[class*="table-wrap"],[class*="tablewrap"]){max-width:100%!important;overflow-x:hidden!important;overflow-y:visible!important}

@media(max-width:980px){
  body.page-finance-ultimate .finance-command-row{align-items:stretch!important}
  body.page-finance-ultimate .finance-subnav{flex:1 1 100%!important}
  body.page-finance-ultimate .finance-command-filters{flex:1 1 100%!important;margin-left:0!important;justify-content:flex-start!important}
  body.page-finance-ultimate .finance-command-filters .fu-search{max-width:none!important}
  body.page-finance-ultimate .fu-report-select{margin-left:0!important}
}

/* Header sort controls inherit the cell width instead of creating a new minimum. */
body.aiotor-runtime-shell.rt-natural-page .rt-sort-head{
  display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
  padding:0!important;border:0!important;background:transparent!important;color:inherit!important;
  white-space:normal!important;overflow-wrap:anywhere!important;text-align:inherit!important;font:inherit!important;
}

/* Standalone operational screens use the same viewport/data-visibility rules. */
body.v12712-fit-page{min-height:100dvh!important;height:auto!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;background:var(--v12712-bg)!important}
body.v12712-fit-page :is(main,section,.shell,.page,.content,.panel,.card,.table-wrap,.tablewrap,.factory-shell,.factory-table-wrap,.grid-table-wrap){max-width:100%!important;height:auto!important;max-height:none!important;overflow-y:visible!important}
body.v12712-fit-page :is(.table-wrap,.tablewrap,.factory-table-wrap,.grid-table-wrap){overflow-x:hidden!important}
body.v12712-fit-page table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important}
body.v12712-fit-page table :is(th,td){height:auto!important;max-height:none!important;min-width:0!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:normal!important;vertical-align:top!important}
body.v12712-fit-page table :is(input,select,textarea,button){max-width:100%!important;min-width:0!important}
body.v12712-fit-page :is(.actions,.row-actions,.receive-form,.factory-receive-form){display:flex!important;flex-wrap:wrap!important;gap:3px!important;white-space:normal!important}
body.v12712-fit-page :is(.pager,.pagination,[class*="pager"]){position:static!important;display:flex!important;visibility:visible!important;opacity:1!important;width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;flex-wrap:wrap!important}
body.v12712-fit-page.factory-low-stock-root .factory-shell #factoryDashboardV56{height:auto!important;max-height:none!important;overflow:visible!important}
body.v12712-fit-page.factory-low-stock-root .factory-shell table{min-width:0!important;width:100%!important;table-layout:fixed!important}
body.v12712-fit-page.factory-low-stock-root .factory-shell :is(th,td){height:auto!important;max-height:none!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;line-height:1.2!important}

/* Catalogue and other legacy workspaces must not reserve a fixed viewport or
   hide their lower controls/pagers. */
body.admin-tw:not(.page-settings.page-cat-printstudio) :is(.catalogue-workspace,.catalogue-main,.catalogue-results,.erp-module-shell,.module-products-shell,.module-inventory-shell){
  height:auto!important;max-height:none!important;min-height:0!important;overflow-x:hidden!important;overflow-y:visible!important;max-width:100%!important;
}
