/* factory-unified-peter-v1: approved compact layout, exact Peter + active factory scope only. */
body.gc-factory-unified-enabled .sidebar-nav [data-toptab="factory-management"] {display:none!important}
html body.gc-factory-unified-pilot main#main .fs-three-tabs-pilot.fs-compact-filters .finance-filters.fs-compact-toolbar {
 display:grid;grid-template-columns:max-content minmax(240px,430px) 144px max-content;justify-content:start;align-items:center;gap:12px;
}
html body.gc-factory-unified-pilot main#main .fs-three-tabs-pilot.fs-compact-filters .fs-compact-toolbar>.prod-qc-searchbar {
 width:100%;max-width:430px;min-width:0;margin:0!important;grid-column:auto;
}
html body.gc-factory-unified-pilot main#main .fs-three-tabs-pilot.fs-compact-filters .fs-compact-toolbar>[data-fs-select=factoryFilter] {margin:0!important;width:144px}
html body.gc-factory-unified-pilot main#main .fs-three-tabs-pilot.fs-compact-filters .fs-compact-segments {margin:0!important;grid-column:auto}
html body.gc-factory-unified-pilot main#main .fs-three-tabs-pilot.fs-compact-filters .fs-pilot-controls {margin-bottom:16px}
html body.gc-factory-unified-pilot main#main .gc-unified-arrival-head {margin:0 0 16px}
html body.gc-factory-unified-pilot main#main .gc-unified-arrival-head .fs-pilot-tabs {margin-bottom:0}
html body.gc-factory-unified-pilot.factory-tab-active main#main {padding:16px 36px!important;overflow:auto!important}
html body.gc-factory-unified-pilot main#main .gc-factory-page,
html body.gc-factory-unified-pilot main#main .gc-factory-content {padding:0!important;margin:0!important;width:100%;max-width:none}
html body.gc-factory-unified-pilot main#main .gc-factory-content {container-type:inline-size}
html body.gc-admin-shell-pilot.peter-topbar-trial.peter-factory-workspace-pilot.gc-factory-unified-pilot.factory-tab-active main#main .gc-factory-page.erp-workspace-shell>.gc-factory-content.erp-workspace-section-content {padding:0!important}
html body.gc-factory-unified-pilot main#main .gc-unified-arrival-toolbar {
 display:grid!important;grid-template-columns:max-content minmax(240px,430px) 160px;justify-content:start;align-items:center;gap:12px!important;height:auto!important;min-height:36px;margin:0!important;padding:0!important;overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important;
}
html body.gc-factory-unified-pilot main#main .gc-unified-arrival-toolbar .gc-factory-queue-switch {display:inline-flex;align-items:center;box-sizing:border-box;height:36px;min-height:36px;padding:3px;gap:2px!important;border:1px solid rgba(60,60,67,.08)!important;border-radius:10px;background:rgba(118,118,128,.12);box-shadow:none}
html body.gc-factory-unified-pilot main#main .gc-unified-arrival-toolbar .gc-factory-queue-tab {display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;min-width:90px;height:30px;padding:0 12px!important;border:0!important;border-radius:7px!important;color:var(--gc-wb-text-secondary,#424248);background:transparent;font:inherit;font-size:12.5px;font-weight:600;line-height:1;white-space:nowrap;cursor:pointer}
html body.gc-factory-unified-pilot main#main .gc-unified-arrival-toolbar .gc-factory-queue-tab.active {color:#fff;background:var(--gc-wb-primary,#007aff);box-shadow:0 1px 3px rgba(0,80,180,.18)}
/* factory-management-drawer-speed-peter-v1: the three management drawers only. */
html body.gc-factory-unified-pilot #fsFactoryDetailRoot.fs-detail-root .drawer-backdrop {transition:opacity 130ms ease}
html body.gc-factory-unified-pilot #fsFactoryDetailRoot.fs-detail-root.fs-detail-compact.fs-detail-shared .fs-detail-drawer {transition:transform 180ms cubic-bezier(.32,.72,0,1),opacity 120ms ease!important}
/* factory-drawer-shipboard-parity-v1: Peter's three management drawers follow the existing style drawer path. */
html body.gc-factory-unified-pilot #fsFactoryDetailRoot.fs-detail-root.fs-detail-compact.fs-detail-shared .fs-detail-drawer {transform:translateX(100%);opacity:1;transition:transform .32s cubic-bezier(.32,.72,0,1)!important}
html body.gc-factory-unified-pilot #fsFactoryDetailRoot.fs-detail-root.is-visible.fs-detail-compact.fs-detail-shared .fs-detail-drawer {transform:translateX(0)}
html body.gc-factory-unified-pilot #fsFactoryDetailRoot.fs-detail-root .drawer-backdrop {transition:opacity .25s ease}
@media(prefers-reduced-motion:reduce){
 html body.gc-factory-unified-pilot #fsFactoryDetailRoot.fs-detail-root .drawer-backdrop,
 html body.gc-factory-unified-pilot #fsFactoryDetailRoot.fs-detail-root.fs-detail-compact.fs-detail-shared .fs-detail-drawer {transition:none!important}
}
html body.gc-factory-unified-pilot main#main .gc-unified-arrival-toolbar>.prod-qc-searchbar {width:100%!important;max-width:430px!important;min-width:0!important;margin:0!important}
html body.gc-factory-unified-pilot main#main .gc-unified-arrival-toolbar .gc-unified-picker {width:160px;position:relative}
html body.gc-factory-unified-pilot main#main .gc-unified-arrival-toolbar select[hidden] {display:none!important}
html body.gc-factory-unified-pilot main#main .gc-unified-picker .erp-workspace-select-trigger {width:100%}
html body.gc-factory-unified-pilot main#main .gc-unified-picker .erp-workspace-select-menu {z-index:100;max-height:280px;overflow:auto}
html body.gc-factory-unified-pilot main#main .gc-factory-surface {margin-top:16px!important}
@container(max-width:1050px){
 html body.gc-factory-unified-pilot main#main .fs-three-tabs-pilot.fs-compact-filters .finance-filters.fs-compact-toolbar {grid-template-columns:minmax(240px,430px) 144px max-content}
 html body.gc-factory-unified-pilot main#main .fs-three-tabs-pilot.fs-compact-filters .fs-compact-segments {grid-column:1/-1}
 html body.gc-factory-unified-pilot main#main .gc-unified-arrival-toolbar {grid-template-columns:minmax(240px,430px) 160px}
 html body.gc-factory-unified-pilot main#main .gc-unified-arrival-toolbar>.gc-factory-queue-switch {grid-column:1/-1;width:max-content}
}
@container(max-width:680px){
 html body.gc-factory-unified-pilot main#main .fs-three-tabs-pilot.fs-compact-filters .finance-filters.fs-compact-toolbar {grid-template-columns:144px max-content}
 html body.gc-factory-unified-pilot main#main .fs-three-tabs-pilot.fs-compact-filters .fs-compact-toolbar>.prod-qc-searchbar {grid-column:1/-1}
 html body.gc-factory-unified-pilot main#main .gc-unified-arrival-toolbar {grid-template-columns:minmax(0,1fr)}
 html body.gc-factory-unified-pilot main#main .gc-unified-arrival-toolbar>.prod-qc-searchbar {grid-column:1/-1}
}
@media(max-width:900px){html body.gc-factory-unified-pilot.factory-tab-active main#main {padding:16px 18px!important}}
/* Keep the same seven-column ledger on narrow screens; only its container scrolls. */
@media(max-width:900px){
 html body.gc-factory-unified-pilot.factory-tab-active main#main .gc-factory-page.gc-factory-arrival-menu-pilot :is(.gc-factory-table-head,.gc-factory-row.pq2-po) {display:grid!important;grid-template-columns:minmax(250px,1.6fr) minmax(100px,.55fr) minmax(150px,.85fr) minmax(150px,.85fr) minmax(92px,.5fr) minmax(92px,.5fr) 100px!important;grid-template-rows:auto!important;gap:0 10px!important;min-width:1080px!important;padding-inline:14px!important}
 html body.gc-factory-unified-pilot.factory-tab-active main#main .gc-factory-row.pq2-po>div {grid-area:auto!important}
}
@media(max-width:720px){
 html body.gc-factory-unified-pilot.factory-tab-active main#main {padding:12px!important}
 html body.gc-factory-unified-pilot main#main .gc-unified-picker :is(.erp-workspace-select-trigger,.erp-workspace-select-option),html body.gc-factory-unified-pilot main#main .gc-unified-arrival-toolbar .gc-factory-queue-tab.pattern-segment {min-height:44px!important}
 html body.gc-factory-unified-pilot main#main .gc-unified-arrival-toolbar .gc-factory-queue-switch.pattern-segmented {height:auto!important;min-height:50px!important}
 html body.gc-factory-unified-pilot main#main [data-gc-unified-tabs] {gap:4px}
 html body.gc-factory-unified-pilot main#main [data-gc-unified-tabs]>button {padding-inline:10px}
}
