
:root{--v47-bg:#0a0a0c;--v47-side:#090910;--v47-surface:#111116;--v47-card:#161619;--v47-text:#e0e0e8;--v47-dim:#8a8a9a;--v47-muted:#4a4a5a;--v47-faint:#2a2a3a;--v47-line:rgba(255,255,255,.07);--v47-line2:rgba(255,255,255,.12);--v47-hover:rgba(255,255,255,.03);--v47-active:rgba(255,255,255,.06)}
html.v47-reference-active,html.v47-reference-active body,html.v47-reference-active #root{background:var(--v47-bg)!important;color:var(--v47-text)!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;font-size:13px!important}
html.v47-reference-active .app-frame{display:flex!important;background:var(--v47-bg)!important;color:var(--v47-text)!important}
/* Legacy React shell remains mounted only as an event/data source. */
html.v47-reference-active .workbench-nav.v47-legacy-source{position:fixed!important;left:-6000px!important;top:0!important;width:220px!important;min-width:220px!important;height:100vh!important;visibility:hidden!important;pointer-events:none!important;overflow:hidden!important;z-index:-1!important}
html.v47-reference-active .workspace-topbar.v47-legacy-source{position:fixed!important;left:-6000px!important;top:0!important;width:900px!important;height:auto!important;visibility:hidden!important;pointer-events:none!important;overflow:visible!important;z-index:-1!important}
/* Exact reference shell geometry */
.v47-reference-sidebar{width:220px;min-width:220px;height:100%;display:flex;flex-direction:column;overflow:hidden;border-right:1px solid var(--v47-line);background:var(--v47-side);color:var(--v47-text);flex-shrink:0}
.v47-brand{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 14px;border-bottom:1px solid var(--v47-line)}
.v47-brand-home{display:flex;align-items:center;gap:10px;border:0;background:transparent;color:inherit;padding:0;cursor:pointer}.v47-brand-mark{display:grid;width:28px;height:28px;place-items:center;border-radius:8px;background:var(--v47-text);color:var(--v47-side);font-size:13px;font-weight:900;letter-spacing:-.05em}.v47-brand-copy{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.v47-brand-copy strong{font-size:12px;line-height:1;font-weight:600}.v47-brand-copy small{font-size:8px;line-height:1;color:var(--v47-muted);font-weight:400}.v47-brand-tools button{width:24px;height:24px;display:grid;place-items:center;border:0;background:transparent;color:var(--v47-muted)}
.v47-nav-scroll{flex:1;overflow-y:auto;padding:8px 0 10px;scrollbar-width:thin}.v47-nav-group{margin:0 0 3px}.v47-nav-group-title{display:flex;align-items:center;justify-content:space-between;padding:7px 16px 4px;color:var(--v47-muted);font-size:9px;font-weight:600;letter-spacing:.12em;text-transform:uppercase}.v47-nav-group-title span:last-child{font-size:10px;letter-spacing:0}.v47-nav-item{position:relative;width:100%;height:28px;display:flex;align-items:center;gap:10px;padding:0 16px 0 14px;border:0;border-left:2px solid transparent;background:transparent;color:#6a6a7a;text-align:left;font-size:11px;font-weight:400;cursor:pointer;transition:background .1s,color .1s,border-color .1s}.v47-nav-item:hover{background:var(--v47-hover);color:#fff}.v47-nav-item.is-active{border-left-color:var(--v47-text);background:var(--v47-active);color:var(--v47-text)}.v47-nav-icon{display:grid;width:14px;height:14px;place-items:center;flex:0 0 14px}.v47-nav-icon svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.v47-side-bottom{height:54px;display:flex;align-items:center;gap:6px;padding:6px 8px 6px 12px;border-top:1px solid var(--v47-line)}.v47-user-card{min-width:0;flex:1;height:40px;display:flex;align-items:center;gap:9px;border:0;background:transparent;color:var(--v47-text);padding:0;text-align:left}.v47-user-avatar{display:grid;width:27px;height:27px;place-items:center;border:1px solid var(--v47-line2);border-radius:50%;background:#34415d;color:var(--v47-text);font-size:8px;font-weight:700}.v47-user-card>span:last-child{min-width:0;display:flex;flex-direction:column;gap:2px}.v47-user-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:500}.v47-user-card small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--v47-muted);font-size:8px}.v47-side-icon{width:28px;height:28px;display:grid;place-items:center;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--v47-muted)}.v47-side-icon:hover{border-color:var(--v47-line);background:var(--v47-hover);color:#fff}.v47-side-icon svg{width:13px;height:13px;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.v47-reference-content{display:flex!important;min-width:0!important;flex:1!important;flex-direction:column!important;overflow:hidden!important;background:var(--v47-bg)!important}
.v47-reference-header{height:108px;min-height:108px;display:flex;flex-direction:column;border-bottom:1px solid var(--v47-line);background:var(--v47-bg);color:var(--v47-text);flex-shrink:0}
.v47-top-primary{height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--v47-line)}.v47-top-links{display:flex;align-items:center;gap:20px}.v47-top-links button,.v47-secondary-links button{border:0;background:transparent;color:var(--v47-muted);font-size:10px;font-weight:500;padding:0;cursor:pointer}.v47-top-links button:hover,.v47-top-links button.is-active,.v47-secondary-links button:hover{color:var(--v47-text)}.v47-top-actions{display:flex;align-items:center;gap:9px}.v47-icon-btn{position:relative;width:22px;height:22px;display:grid;place-items:center;border:0;background:transparent;color:var(--v47-muted)}.v47-icon-btn:hover{color:#fff}.v47-icon-btn svg{width:13px;height:13px;stroke:currentColor;stroke-width:1.2}.v47-icon-btn i{position:absolute;right:3px;top:3px;width:3px;height:3px;border-radius:50%;background:#f57681}.v47-user-pill{height:25px;display:flex;align-items:center;gap:6px;padding:0 9px 0 3px;border:1px solid var(--v47-line2);border-radius:100px;background:transparent;color:var(--v47-text);font-size:9px}.v47-user-pill span{display:grid;width:19px;height:19px;place-items:center;border-radius:50%;background:#34415d;font-size:7px;font-weight:700}
.v47-top-secondary{height:34px;display:flex;align-items:center;gap:17px;padding:4px 20px;border-bottom:1px solid var(--v47-line)}.v47-global-search{width:min(360px,38vw);height:26px;display:flex;align-items:center;gap:7px;padding:0 8px;border:1px solid var(--v47-line);border-radius:4px;background:var(--v47-surface);color:var(--v47-muted)}.v47-global-search svg{width:12px;height:12px;stroke:currentColor;stroke-width:1.2}.v47-global-search input{min-width:0;flex:1;border:0!important;outline:0!important;background:transparent!important;color:var(--v47-dim)!important;font-size:9px!important;padding:0!important;height:auto!important;box-shadow:none!important}.v47-global-search kbd{padding:1px 4px;border:1px solid var(--v47-line);border-radius:3px;color:var(--v47-muted);font:7px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace}.v47-secondary-links{display:flex;align-items:center;gap:16px}
.v47-context-row{height:36px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 20px}.v47-breadcrumb{display:flex;align-items:center;gap:5px;min-width:0;color:var(--v47-muted);font-size:9px}.v47-breadcrumb button{border:0;background:transparent;color:var(--v47-muted);padding:0;font-size:9px}.v47-breadcrumb svg{width:9px;height:9px;stroke:currentColor;stroke-width:1.2}.v47-breadcrumb b{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--v47-text);font-weight:400}.v47-controls-slot{margin-left:auto;display:flex;align-items:center;min-width:0}.v47-live-controls{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;min-width:0!important;padding:0!important;background:transparent!important;visibility:visible!important;pointer-events:auto!important}.v47-live-controls .period-controls{display:flex!important;align-items:center!important;gap:6px!important}.v47-live-controls .date-control{height:27px!important;display:flex!important;align-items:center!important;gap:5px!important;padding:0 8px!important;border:1px solid var(--v47-line)!important;border-radius:4px!important;background:var(--v47-surface)!important;color:var(--v47-dim)!important;font-size:9px!important}.v47-live-controls .date-control .text-sm{font-size:9px!important}.v47-live-controls .period-switcher{height:27px!important;display:flex!important;gap:2px!important;padding:0!important;border:0!important;background:transparent!important}.v47-live-controls .period-switcher button,.v47-live-controls .filter-trigger{height:27px!important;min-height:27px!important;padding:0 9px!important;border:1px solid var(--v47-line)!important;border-radius:4px!important;background:transparent!important;color:var(--v47-muted)!important;font-size:8px!important;box-shadow:none!important}.v47-live-controls .period-switcher button.is-active{border-color:transparent!important;background:var(--v47-text)!important;color:var(--v47-bg)!important}.v47-live-controls .filter-trigger{display:flex!important;align-items:center!important;gap:5px!important}.v47-live-controls .icon-action{display:none!important}.v47-live-controls .filter-popover{right:0!important;top:34px!important;z-index:1000!important;background:var(--v47-card)!important;border:1px solid var(--v47-line2)!important;color:var(--v47-text)!important;box-shadow:0 18px 50px rgba(0,0,0,.45)!important}
.v47-reference-right-rail{width:36px;min-width:36px;height:100%;display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px 4px;border-left:1px solid var(--v47-line);background:var(--v47-side);flex-shrink:0}.v47-rail-avatar{width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:50%;background:#34415d;color:var(--v47-text);font-size:8px;font-weight:700}.v47-rail-btn{width:26px;height:26px;display:grid;place-items:center;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--v47-muted)}.v47-rail-btn:hover{border-color:var(--v47-line);background:var(--v47-hover);color:#fff}.v47-rail-btn svg{width:13px;height:13px;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}.v47-rail-spacer{flex:1}
.v47-reference-footer{height:30px;min-height:30px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 20px;border-top:1px solid var(--v47-line);background:var(--v47-bg);color:var(--v47-faint);font:8px ui-monospace,SFMono-Regular,Menlo,monospace;flex-shrink:0}.v47-build-mark{padding:3px 7px;border:1px solid var(--v47-line);border-radius:100px;color:#3f3f4a;letter-spacing:.04em}
/* Content rebuild: flatten legacy card language into the Constructor reference vocabulary. */
html.v47-reference-active .workspace-main.v47-reference-main{flex:1!important;min-height:0!important;overflow:auto!important;padding:18px 20px!important;background:var(--v47-bg)!important;color:var(--v47-text)!important;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.1) transparent}
html.v47-reference-active .v47-reference-main *{box-sizing:border-box}
html.v47-reference-active .v47-reference-main :is(h1,h2,h3,h4){color:var(--v47-text)!important;letter-spacing:-.015em!important}
html.v47-reference-active .v47-reference-main .v47-page-title{font-size:15px!important;line-height:1.25!important;font-weight:600!important;margin-bottom:3px!important}
html.v47-reference-active .v47-reference-main :is(.text-2xl,.text-xl){font-size:15px!important}.v47-reference-main .text-lg{font-size:12px!important}.v47-reference-main .text-base{font-size:11px!important}.v47-reference-main .text-sm{font-size:10px!important}.v47-reference-main .text-xs{font-size:9px!important}
html.v47-reference-active .v47-reference-main :is(.bg-white,.bg-gray-50,.bg-slate-50,.bg-zinc-50){background:var(--v47-surface)!important;color:var(--v47-text)!important}
html.v47-reference-active .v47-reference-main :is(.rounded-xl,.rounded-2xl,.rounded-lg,.v47-surface){border-radius:7px!important;box-shadow:none!important}
html.v47-reference-active .v47-reference-main :is(.border-gray-100,.border-gray-200,.border-slate-100,.border-slate-200){border-color:var(--v47-line)!important}
html.v47-reference-active .v47-reference-main :is(.text-gray-900,.text-gray-800,.text-gray-700,.text-slate-900,.text-slate-800){color:var(--v47-text)!important}html.v47-reference-active .v47-reference-main :is(.text-gray-600,.text-gray-500,.text-gray-400,.text-slate-600,.text-slate-500,.text-slate-400){color:var(--v47-muted)!important}
html.v47-reference-active .v47-reference-main :is(button,input,select,textarea){box-shadow:none!important}html.v47-reference-active .v47-reference-main button{font-size:9px!important}html.v47-reference-active .v47-reference-main :is(input,select,textarea,.v47-control){border-color:var(--v47-line)!important;background:var(--v47-bg)!important;color:var(--v47-dim)!important;border-radius:5px!important;font-size:9px!important}
html.v47-reference-active .v47-reference-main input:not([type=checkbox]):not([type=radio]),html.v47-reference-active .v47-reference-main select{min-height:29px!important;padding-top:5px!important;padding-bottom:5px!important}
html.v47-reference-active .v47-reference-main table{width:100%;border-collapse:collapse!important;border-spacing:0!important;background:transparent!important}html.v47-reference-active .v47-reference-main table thead{background:transparent!important}html.v47-reference-active .v47-reference-main table th{height:30px!important;padding:6px 10px!important;border-bottom:1px solid var(--v47-line2)!important;color:var(--v47-muted)!important;background:transparent!important;font-size:8px!important;font-weight:500!important;letter-spacing:.05em!important;text-transform:uppercase!important}html.v47-reference-active .v47-reference-main table td{height:34px!important;padding:6px 10px!important;border-bottom:1px solid var(--v47-line)!important;color:var(--v47-dim)!important;background:transparent!important;font-size:9px!important}html.v47-reference-active .v47-reference-main table tbody tr:hover td{background:rgba(255,255,255,.018)!important}html.v47-reference-active .v47-reference-main table tbody tr:last-child td{border-bottom:0!important}
/* Make KPI collections read as one compact stats strip rather than floating dashboard cards. */
html.v47-reference-active .v47-reference-main :is(.grid.grid-cols-2,.grid.grid-cols-4,.grid.md\\:grid-cols-4)>:is(.v47-surface,.rounded-xl,.rounded-2xl){box-shadow:none!important}
html.v47-reference-active .v47-reference-main .v47-kpi-card{min-height:70px!important;padding:11px 13px!important;border-radius:7px!important;background:var(--v47-surface)!important;border-color:var(--v47-line)!important}
html.v47-reference-active .v47-reference-main .v47-kpi-card :is(.text-2xl,.text-xl){font-family:ui-monospace,SFMono-Regular,Menlo,monospace!important;font-size:16px!important;font-weight:500!important}
/* Strip saturated legacy panels while preserving semantic status text. */
html.v47-reference-active .v47-reference-main [class*="bg-blue-50"],html.v47-reference-active .v47-reference-main [class*="bg-indigo-50"],html.v47-reference-active .v47-reference-main [class*="bg-purple-50"],html.v47-reference-active .v47-reference-main [class*="bg-violet-50"]{background:rgba(114,179,255,.05)!important;border-color:rgba(114,179,255,.15)!important}
html.v47-reference-active .v47-reference-main [class*="bg-green-50"],html.v47-reference-active .v47-reference-main [class*="bg-emerald-50"]{background:rgba(102,211,154,.06)!important;border-color:rgba(102,211,154,.16)!important}
html.v47-reference-active .v47-reference-main [class*="bg-amber-50"],html.v47-reference-active .v47-reference-main [class*="bg-orange-50"]{background:rgba(232,183,93,.06)!important;border-color:rgba(232,183,93,.16)!important}
html.v47-reference-active .v47-reference-main [class*="bg-red-50"]{background:rgba(245,118,129,.06)!important;border-color:rgba(245,118,129,.16)!important}
/* Silos: visible structural change, compact status strip + denser cards. */
html.v47-reference-active .v47-reference-main[data-v47-page="silos"]>.v47-page-root>.grid:first-of-type{gap:0!important;border:1px solid var(--v47-line)!important;border-radius:7px!important;overflow:hidden!important;background:var(--v47-surface)!important}html.v47-reference-active .v47-reference-main[data-v47-page="silos"]>.v47-page-root>.grid:first-of-type>div{border:0!important;border-right:1px solid var(--v47-line)!important;border-radius:0!important;background:transparent!important}html.v47-reference-active .v47-reference-main[data-v47-page="silos"]>.v47-page-root>.grid:first-of-type>div:last-child{border-right:0!important}
html.v47-reference-active .v47-reference-main[data-v47-page="silos"] .grid[class*="xl:grid-cols-4"]{gap:8px!important}html.v47-reference-active .v47-reference-main[data-v47-page="silos"] .grid[class*="xl:grid-cols-4"]>div{min-height:190px!important;padding:11px!important}
/* Setup and purchasing tables become full reference panels. */
html.v47-reference-active .v47-reference-main :is(.v42112-panel,.lgx-panel,.c41-panel,.bg-white.rounded-xl.border){border:1px solid var(--v47-line)!important;background:var(--v47-surface)!important;border-radius:7px!important;box-shadow:none!important}
@media(max-width:1050px){.v47-reference-sidebar{width:188px;min-width:188px}.v47-top-links{gap:10px}.v47-secondary-links{display:none}.v47-global-search{width:min(320px,45vw)}}
@media(max-width:820px){.v47-reference-sidebar{width:48px;min-width:48px}.v47-brand{padding:0 10px}.v47-brand-copy,.v47-brand-tools,.v47-nav-group-title,.v47-nav-item>span:last-child,.v47-user-card>span:last-child{display:none}.v47-nav-item{justify-content:center;padding:0;border-left-width:2px}.v47-side-bottom{padding:6px 10px}.v47-side-icon{display:none}.v47-top-links button:nth-child(n+3){display:none}.v47-reference-right-rail{display:none}.v47-context-row{padding:0 12px}.v47-top-primary,.v47-top-secondary{padding-left:12px;padding-right:12px}.v47-reference-main{padding:14px 12px!important}}

/* PLANERCS V46 — Functional audit & compact UX */
html.v47-functional-active .v428-date-icon{width:14px;height:14px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 14px;color:#8b95a5}
html.v47-functional-active .v428-date-icon svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
html.v47-functional-active .v428-date-trigger,html.v47-functional-active .v428-select-trigger{min-height:36px!important;height:36px!important;background:#0b0b0e!important;border-color:rgba(255,255,255,.09)!important;border-radius:7px!important;color:#d9dce4!important;padding:0 11px!important}
html.v47-functional-active .v428-popup{z-index:99999!important}
html.v47-functional-active .v47-stock-entry{padding:14px!important;border-radius:10px!important}
html.v47-functional-active .v47-stock-entry>div:first-child h2{font-size:14px!important;line-height:1.2!important}
html.v47-functional-active .v47-stock-entry>div:first-child p{font-size:10px!important;margin-top:3px!important}
html.v47-functional-active .v47-stock-entry>.mt-4.grid{margin-top:12px!important;gap:8px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
html.v47-functional-active .v47-stock-entry label{font-size:11px!important}
html.v47-functional-active .v47-stock-entry .field{margin-top:4px!important;min-height:34px!important;height:34px!important;padding:0 10px!important;font-size:11px!important;border-radius:7px!important}
html.v47-functional-active .v47-stock-entry textarea.field{height:54px!important;min-height:54px!important;padding-top:8px!important;resize:vertical}
html.v47-functional-active .v47-stock-entry .v47-stock-advanced{grid-column:1/-1;border-top:1px solid rgba(255,255,255,.07);margin-top:2px;padding-top:6px}
html.v47-functional-active .v47-stock-entry .v47-stock-advanced>summary{cursor:pointer;list-style:none;color:#8f96a3;font-size:10px;font-weight:600;letter-spacing:.03em;padding:5px 0;user-select:none}
html.v47-functional-active .v47-stock-entry .v47-stock-advanced>summary::-webkit-details-marker{display:none}
html.v47-functional-active .v47-stock-entry .v47-stock-advanced>summary:after{content:'›';display:inline-block;margin-left:7px;transition:transform .15s}
html.v47-functional-active .v47-stock-entry .v47-stock-advanced[open]>summary:after{transform:rotate(90deg)}
html.v47-functional-active .v47-stock-entry .v47-stock-advanced-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding-top:6px}
html.v47-functional-active .v47-stock-entry>div:last-child{margin-top:10px!important;padding-top:10px!important}
html.v47-functional-active .v47-stock-entry>div:last-child button{min-height:34px!important;padding:0 14px!important;border-radius:7px!important;font-size:11px!important}
html.v47-functional-active .v47-manual-btn{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 12px;border:1px solid rgba(255,255,255,.1);border-radius:7px;background:#e7e7ed;color:#111217;font-size:11px;font-weight:650;cursor:pointer}
html.v47-functional-active .v47-manual-btn:hover{background:#fff}
html.v47-functional-active .v47-runtime-backdrop{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.68);display:flex;align-items:center;justify-content:center;padding:18px}
html.v47-functional-active .v47-runtime-modal{width:min(760px,calc(100vw - 36px));max-height:min(82vh,720px);overflow:auto;background:#101014;border:1px solid rgba(255,255,255,.1);border-radius:12px;box-shadow:0 24px 80px rgba(0,0,0,.55);color:#e7e9ee}
html.v47-functional-active .v47-runtime-head{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;align-items:flex-start;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.07);background:#101014}
html.v47-functional-active .v47-runtime-head h3{margin:0;font-size:15px}.v47-runtime-head p{margin:4px 0 0;color:#737b8b;font-size:10px}
html.v47-functional-active .v47-runtime-head button{width:30px;height:30px;border:1px solid rgba(255,255,255,.08);border-radius:7px;background:#141419;color:#9da4b2;cursor:pointer}
html.v47-functional-active .v47-runtime-body{padding:14px 16px}.v47-runtime-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.v47-runtime-grid .wide{grid-column:span 2}.v47-runtime-grid .full{grid-column:1/-1}
html.v47-functional-active .v47-runtime-grid label{font-size:10px;font-weight:600;color:#bdc2cc}.v47-runtime-grid input,.v47-runtime-grid select,.v47-runtime-grid textarea{display:block;box-sizing:border-box;width:100%;height:34px;margin-top:5px;padding:0 10px;border:1px solid rgba(255,255,255,.09);border-radius:7px;background:#09090c;color:#e5e7eb;font:inherit;outline:none}.v47-runtime-grid textarea{height:56px;padding-top:8px;resize:vertical}.v47-runtime-grid input:focus,.v47-runtime-grid select:focus,.v47-runtime-grid textarea:focus{border-color:#555c69;box-shadow:0 0 0 2px rgba(255,255,255,.04)}
html.v47-functional-active .v47-runtime-error{margin:0 16px 10px;padding:9px 10px;border:1px solid rgba(239,68,68,.25);border-radius:7px;background:rgba(127,29,29,.12);color:#fca5a5;font-size:10px}
html.v47-functional-active .v47-runtime-footer{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:8px;padding:11px 16px;border-top:1px solid rgba(255,255,255,.07);background:#101014}.v47-runtime-footer button{height:34px;padding:0 13px;border:1px solid rgba(255,255,255,.1);border-radius:7px;background:#141419;color:#cbd0d9;font-size:11px;cursor:pointer}.v47-runtime-footer button.primary{background:#e7e7ed;color:#111217;font-weight:650}.v47-runtime-footer button:disabled{opacity:.45;cursor:not-allowed}
html.v47-functional-active .production-entry-modal{max-height:86vh!important}
html.v47-functional-active .pelletizer-dialog{max-height:86vh!important}
html.v47-functional-active .v47-native-turn-ok [data-planercs-turno-mistura]{display:none!important}
@media(max-width:1100px){html.v47-functional-active .v47-stock-entry>.mt-4.grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}html.v47-functional-active .v47-stock-entry .v47-stock-advanced-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v47-runtime-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* V47: one interactive system. Native inputs remain the single source of interaction. */
html.v47-loading #root{visibility:hidden!important}
html.v47-ready #root{visibility:visible!important}
html.v47-reference-active .v428-date-trigger,
html.v47-reference-active .v428-select-trigger,
html.v47-reference-active .v428-calendar,
html.v47-reference-active .v428-select-pop{display:none!important}
html.v47-reference-active input.v428-native-date,
html.v47-reference-active input[data-v428-date],
html.v47-reference-active select.v428-native-select,
html.v47-reference-active select[data-v428-select]{position:static!important;inset:auto!important;width:100%!important;min-width:0!important;height:30px!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;clip:auto!important;clip-path:none!important;transform:none!important;margin:0!important}
html.v47-reference-active input[type="date"]{appearance:auto!important;-webkit-appearance:auto!important;color-scheme:dark!important;padding:0 10px!important;line-height:30px!important;background:#0a0a0c!important;border:1px solid rgba(255,255,255,.09)!important;border-radius:6px!important;color:#d8d8e2!important}
html.v47-reference-active input[type="date"]::-webkit-calendar-picker-indicator{display:block!important;opacity:.72!important;filter:invert(1) brightness(.78)!important;cursor:pointer!important;width:14px!important;height:14px!important;margin:0!important;padding:0!important;background-color:transparent!important}
html.v47-reference-active input[type="time"]{color-scheme:dark!important}
html.v47-reference-active :is(input,select,textarea){outline:none!important}
html.v47-reference-active :is(input,select,textarea):focus{border-color:rgba(224,224,232,.34)!important;box-shadow:0 0 0 2px rgba(224,224,232,.055)!important}
html.v47-reference-active select{color-scheme:dark!important;background-color:#0a0a0c!important}
html.v47-reference-active option{background:#111116!important;color:#e0e0e8!important}
html.v47-reference-active .fixed.inset-0{z-index:1200!important}
html.v47-reference-active .fixed.inset-0>div[class*="rounded"]{max-height:calc(100vh - 32px)!important;overflow:auto!important;border:1px solid rgba(255,255,255,.1)!important;background:#111116!important;box-shadow:0 24px 80px rgba(0,0,0,.55)!important}
html.v47-reference-active .v47-reference-main label{color:#b8b8c5!important;font-size:9px!important;font-weight:500!important}
html.v47-reference-active .v47-reference-main textarea{min-height:64px!important;resize:vertical!important}
html.v47-reference-active .v47-reference-main button:focus-visible,
html.v47-reference-active .v47-reference-header button:focus-visible,
html.v47-reference-active .v47-reference-sidebar button:focus-visible{outline:2px solid rgba(224,224,232,.55)!important;outline-offset:2px!important}
html.v47-reference-active .v47-reference-main button:disabled{opacity:.42!important;cursor:not-allowed!important}
/* Normalize later functional overlays under the current design system. */
html.v47-reference-active :is(.v393-panel,.v42112-panel,.lgx-panel,.c41-panel,.files-panel,.expedition-panel){background:#111116!important;border:1px solid rgba(255,255,255,.07)!important;border-radius:8px!important;box-shadow:none!important;color:#e0e0e8!important}
html.v47-reference-active :is(.v393-modal,.lgx-modal,.v42112-modal){background:#111116!important;border:1px solid rgba(255,255,255,.11)!important;color:#e0e0e8!important;box-shadow:0 24px 80px rgba(0,0,0,.58)!important}
/* Remove accidental black helper rectangles from historical UI patches. */
html.v47-reference-active [aria-hidden="true"].v428-date-icon:empty,
html.v47-reference-active .v428-date-icon{display:none!important}
html.v47-reference-active .date-control{overflow:visible!important}
html.v47-reference-active .date-control input[type="date"]{width:112px!important;min-width:112px!important;border:0!important;background:transparent!important;padding:0 2px!important;height:25px!important;line-height:25px!important}
/* Programming modal: concise and aligned. */
html.v47-reference-active .fixed.inset-0 form:has(h2){scrollbar-width:thin}
@media(max-width:900px){html.v47-reference-active .fixed.inset-0>div[class*="rounded"]{max-width:calc(100vw - 24px)!important}}



/* V47 final — production execution bridge */
html.v47-reference-active .v47-production-turn{display:flex!important;flex-direction:column;gap:5px;color:#bfc4ce!important;font-size:11px!important;font-weight:600!important}
html.v47-reference-active .v47-production-turn select{width:100%!important;height:34px!important;border:1px solid rgba(255,255,255,.09)!important;border-radius:7px!important;background:#09090c!important;color:#e5e7eb!important;padding:0 10px!important;font-size:11px!important}
html.v47-reference-active .v47-production-turn span{color:#676e7b!important;font-size:9px!important;font-weight:400!important}
html.v47-reference-active .v47-production-error{margin:0 0 12px;padding:9px 10px;border:1px solid rgba(239,68,68,.25);border-radius:7px;background:rgba(127,29,29,.12);color:#fca5a5;font-size:10px}
#v47-toast{position:fixed;right:18px;bottom:18px;z-index:2147483600;max-width:420px;padding:10px 13px;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:#161619;color:#e7e7ed;font:600 11px/1.4 Inter,Arial,sans-serif;box-shadow:0 18px 50px rgba(0,0,0,.35)}#v47-toast.is-error{border-color:rgba(239,68,68,.28);color:#fca5a5}
