@layer lab-legacy {
body .workspace .info-panel.event-command-center,body .workspace.collapsed .info-panel.event-command-center{box-sizing:border-box;flex:0 0 100%;align-self:stretch;width:100%;min-width:0;max-width:none;margin-inline:0}body .event-command-center .economic-identity{border-bottom:1px solid var(--line-soft);align-items:center;gap:14px;padding:16px 24px 12px;display:flex}.economic-date{border:1px solid var(--line);border-radius:var(--radius-button);background:var(--bg-subtle);flex:0 0 56px;justify-items:center;gap:2px;padding:8px 4px;display:grid}.economic-date>strong{font-variant-numeric:tabular-nums;font-size:23px;line-height:1}.economic-date>small{text-transform:uppercase;letter-spacing:.04em;font-size:9px}.economic-identity>div:nth-child(2){flex:1;min-width:0}.economic-identity>div>small{color:var(--text-muted);letter-spacing:.05em;text-transform:uppercase;flex-wrap:wrap;align-items:center;gap:8px;font-size:10px;display:flex}.economic-identity>div>small>span{border:1px solid var(--line);letter-spacing:0;text-transform:none;border-radius:4px;padding:2px 6px}body .event-command-center .economic-identity h2{letter-spacing:-.025em;color:var(--brand-primary);margin:4px 0 6px;font-size:21px;line-height:1.25}.economic-identity p{color:var(--text-muted);margin:0;font-size:11px}.economic-header{padding:12px 24px 8px}.economic-results{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(180px,.55fr);align-items:stretch;gap:12px;display:grid}.economic-result{border:1px solid var(--line);border-radius:var(--radius-card);min-width:0;padding:14px 18px}.economic-result>div{justify-content:space-between;align-items:center;gap:8px;display:flex}.economic-result>div>span:first-child{letter-spacing:.06em;text-transform:uppercase;font-size:11px;font-weight:700}.economic-result-status{font-size:10px;line-height:1.4}.economic-result>strong{letter-spacing:-.025em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:7px 0 4px;font-size:30px;font-weight:700;line-height:1.1;display:block}.economic-result>small{font-size:11px}.economic-result.is-forecast{background:var(--brand-primary);color:var(--paper);border-color:var(--brand-primary)}.economic-result.is-forecast>strong,.economic-result.is-forecast>div{color:var(--paper)}.economic-result.is-forecast>small,.economic-result.is-forecast .economic-result-status{color:var(--paper);opacity:.85}.economic-result.is-real{background:color-mix(in srgb,var(--brand-accent) 16%,var(--paper));border-color:color-mix(in srgb,var(--brand-primary) 45%,var(--line));color:var(--brand-primary)}.economic-result-action{flex-direction:column;justify-content:center;align-items:flex-end;gap:10px;display:flex}.economic-overall-state{color:var(--text-muted);text-align:right;font-size:11px;font-weight:600}body .event-command-center .economic-result-action button{min-height:36px;padding:8px 12px;font-size:12px}.economic-strip{align-items:stretch;gap:0;margin-top:12px;padding:10px 0 2px;display:flex}.economic-strip-category{border-left:1px solid var(--line);flex:1;min-width:0;padding:0 16px}.economic-strip-category:first-child{border-left:0;padding-left:0}.economic-strip-category>span{color:var(--brand-primary);margin-bottom:7px;font-size:11px;font-weight:700;display:block}.economic-strip-category>div:not(.economic-food-split){grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:4px 8px;display:grid}.economic-strip-category small{color:var(--text-muted);font-size:10px}.economic-strip-category strong{font-variant-numeric:tabular-nums;font-size:13px}.economic-strip-category>div:not(.economic-food-split)>strong{text-align:right}.economic-strip-category.is-food{flex:1.6}.economic-food-split{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.economic-food-split>div{grid-template-columns:auto 1fr;align-items:baseline;gap:4px 8px;display:grid}.economic-food-split span{color:var(--text-muted);font-size:11px}.economic-food-split strong{text-align:right}.economic-food-split small{grid-column:1/-1}body .event-command-body[data-event-tab=closure]{padding-top:0}body .event-command-body[data-event-tab=closure]>.event-operational-context{display:none}body .event-command-body[data-event-tab=closure]>.event-attention{background:0 0;border:0;margin:10px 0;padding:0;font-size:11px}body .event-command-body[data-event-tab=closure]>.event-attention>summary{min-height:0;padding:6px 0;font-size:11px}.economic-close-workspace{min-width:0;padding-bottom:16px}.economic-navigation{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;display:flex}.economic-navigation nav{gap:20px;display:flex}body .event-command-center .economic-navigation nav button{min-height:48px;color:var(--text-muted);background:0 0;border:0;border-bottom:3px solid #0000;border-radius:0;margin:0;padding:10px 0;font-size:13px}body .event-command-center .economic-navigation nav button[aria-current=page]{border-bottom-color:var(--brand-primary);color:var(--brand-primary);font-weight:700}body .event-command-center .economic-navigation>[data-economic-refresh]{background:0 0;min-height:32px;padding:5px 9px;font-size:11px}.economic-loading{text-align:center;color:var(--text-muted);padding:40px 20px;font-size:14px}.economic-view[aria-busy=true]{opacity:.6;pointer-events:none}.economic-view-heading{justify-content:space-between;align-items:center;gap:16px;margin:0 0 20px;display:flex}.economic-view-heading>div>span{color:var(--text-muted);letter-spacing:.08em;font-size:10px;font-weight:700}body .event-command-center .economic-view-heading h3{letter-spacing:-.025em;color:var(--brand-primary);margin:6px 0 0;font-size:24px;line-height:1.2}.economic-state{background:var(--bg-soft);border:1px solid var(--line);max-width:100%;color:var(--brand-primary);white-space:nowrap;border-radius:4px;justify-content:center;align-items:center;padding:5px 9px;font-size:11px;font-weight:600;display:inline-flex}.economic-state.is-confirmed{background:color-mix(in srgb,var(--brand-accent) 24%,var(--paper));border-color:var(--brand-accent)}.economic-state:is(.is-pending,.is-incident){background:color-mix(in srgb,var(--warning) 12%,var(--paper));border-color:color-mix(in srgb,var(--warning) 45%,var(--line));color:color-mix(in srgb,var(--warning) 65%,var(--brand-primary))}.economic-progress{color:var(--text-muted);font-size:12px;font-weight:600}.economic-forecast-table{border-block:1px solid var(--line)}.economic-forecast-row{border-bottom:1px solid var(--line-soft);grid-template-columns:minmax(180px,1.4fr) minmax(150px,1fr) minmax(200px,1.2fr);align-items:start;gap:20px;padding:18px 0;display:grid}.economic-forecast-table.has-reference .economic-forecast-row{grid-template-columns:minmax(180px,1.4fr) minmax(150px,1fr) minmax(150px,1fr) minmax(200px,1.2fr)}.economic-forecast-row:last-child{border-bottom:0}.economic-forecast-row>[role=cell]{min-width:0}.economic-forecast-row>[role=cell]>strong{color:var(--brand-primary);font-variant-numeric:tabular-nums;font-size:17px;display:block}.economic-forecast-row>[role=cell]:first-child>strong{font-size:14px}.economic-forecast-row small{color:var(--text-muted);margin:4px 0 0;font-size:11px;display:block}.economic-forecast-row>[role=cell]>small:first-child{margin:0 0 5px}.economic-forecast-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.economic-forecast-actions>details[open]{flex:1 0 100%}body .event-command-center .economic-forecast-actions>button,.economic-forecast-actions>details>summary{border:1px solid var(--line);border-radius:var(--radius-button);background:var(--paper);cursor:pointer;min-height:34px;padding:7px 10px;font-size:11px;list-style:none}.economic-forecast-validation{max-width:720px;margin-top:18px}.economic-inline-alert{border-left:3px solid var(--warning);background:color-mix(in srgb,var(--warning) 8%,var(--paper));color:var(--text);margin:12px 0;padding:10px 12px;font-size:12px;line-height:1.5}.economic-history{border-top:1px solid var(--line);margin-top:22px;padding-top:14px}.economic-history>summary{cursor:pointer;font-size:12px;font-weight:600}.economic-history>div{border-bottom:1px solid var(--line-soft);padding:12px 0}.economic-history strong,.economic-history span{margin:3px 0;font-size:12px;display:block}.economic-history p{color:var(--text-muted);font-size:12px}.economic-actual-list{border-top:1px solid var(--line)}.economic-actual-category{border-bottom:1px solid var(--line)}.economic-actual-category>summary{cursor:pointer;grid-template-columns:minmax(180px,1.3fr) minmax(110px,.65fr) minmax(110px,.65fr) minmax(135px,.8fr) 110px 90px;align-items:center;gap:16px;padding:18px 0;list-style:none;display:grid}.economic-actual-category>summary::-webkit-details-marker{display:none}.economic-actual-category>summary>span{min-width:0}.economic-actual-category>summary strong{color:var(--brand-primary);font-variant-numeric:tabular-nums;font-size:16px;display:block}.economic-actual-category>summary small{color:var(--text-muted);margin-top:4px;font-size:10px;line-height:1.4;display:block}.economic-review-action{text-align:right;font-size:11px;font-weight:600}.economic-review-action>span{margin-left:8px}.economic-delta{flex-direction:column;gap:3px;display:inline-flex}.economic-delta>strong{font-size:13px!important}.economic-delta>small{color:var(--text-muted);font-size:10px}.economic-delta.is-unfavorable>strong,.economic-delta.is-unfavorable>small{color:var(--danger,#8e3c39)}.economic-delta.is-favorable>strong,.economic-delta.is-favorable>small{color:var(--brand-primary)}.economic-actual-category[open]{background:var(--bg-subtle);border-inline:1px solid var(--line);margin-inline:-18px;padding-inline:18px}.economic-actual-category[open]>.economic-category-body{padding:0 0 20px}.economic-category-body{min-width:0}.economic-source-heading{justify-content:space-between;align-items:baseline;gap:12px;margin:6px 0 14px;display:flex}.economic-source-heading strong{font-size:14px}.economic-source-heading span{color:var(--text-muted);font-size:11px}.economic-table-scroll{border:1px solid var(--line);border-radius:var(--radius-button);background:var(--paper);max-width:100%;overflow:auto}.economic-detail-table,.economic-comparison-table{border-collapse:collapse;width:100%;min-width:780px}.economic-detail-table :is(th,td),.economic-comparison-table :is(th,td){border-bottom:1px solid var(--line-soft);text-align:right;vertical-align:top;font-variant-numeric:tabular-nums;padding:12px 14px;font-size:12px}.economic-detail-table th:first-child,.economic-comparison-table th:first-child{text-align:left}.economic-detail-table thead th,.economic-comparison-table thead th{background:var(--bg-soft);color:var(--text-muted);white-space:nowrap;font-size:10px;font-weight:600}.economic-detail-table tbody th{max-width:220px;font-weight:600}.economic-detail-table small{color:var(--text-muted);margin-top:5px;font-size:10px;display:block}.economic-detail-table details>summary{cursor:pointer;white-space:nowrap;font-weight:600}.economic-detail-table details[open]{text-align:left;min-width:380px}.economic-detail-table details[open] .event-workspace-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.economic-detail-table .economic-note{margin-top:12px}.economic-staff-summary{flex-wrap:wrap;gap:12px 24px;padding:12px 0 18px;font-size:12px;display:flex}.economic-staff-actions{flex-wrap:wrap;align-items:center;gap:14px;padding:12px 0;display:flex}.economic-staff-actions>a{color:var(--brand-primary);font-size:12px;font-weight:600}.economic-manual,.economic-advanced{padding:12px 0}.economic-manual>summary,.economic-advanced>summary{cursor:pointer;font-size:12px;font-weight:600}.economic-cost-entry{border-bottom:1px solid var(--line);padding:12px 0}.economic-cost-entry>summary{cursor:pointer;font-size:12px}.economic-cost-entry>summary>small{color:var(--text-muted);margin-left:10px}.economic-empty{border:1px dashed var(--line);color:var(--text-muted);padding:20px;font-size:12px}.economic-import-total{align-items:center;gap:12px;font-size:12px;display:inline-flex}.economic-import-total strong{font-size:20px}.economic-confirmed-note{background:color-mix(in srgb,var(--brand-accent) 20%,var(--paper));border-left:3px solid var(--brand-primary);margin:12px 0;padding:10px 12px;font-size:12px}body .event-command-center .economic-close-workspace .event-operation-form{border:1px solid var(--line);border-radius:var(--radius-button);background:var(--paper);margin:12px 0 0;padding:14px}body .event-command-center .economic-close-workspace .event-operation-form fieldset{min-width:0}.economic-close-workspace .event-operation-form fieldset>label,.economic-staff-edit label{gap:6px;margin:10px 0;font-size:12px;display:grid}.economic-close-workspace .event-operation-form fieldset>.event-workspace-check{align-items:center;gap:8px;display:flex}.economic-close-workspace .event-workspace-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.economic-close-workspace .event-workspace-fields>label{min-width:0;font-size:12px}.economic-close-workspace :is(input,select,textarea){min-width:0;max-width:100%}.economic-close-workspace .event-operation-form fieldset>small{color:var(--text-muted);margin-bottom:12px;font-size:11px;line-height:1.5;display:block}.economic-close-workspace .event-operation-form fieldset>button:disabled:not([type=submit]){display:none}.economic-close-workspace .event-operation-form [data-operation-error]:not([hidden]){background:color-mix(in srgb,var(--danger,#8e3c39) 8%,var(--paper));color:var(--danger,#8e3c39);padding:10px;font-size:12px}.economic-comparison-table{min-width:650px}.economic-comparison-table tbody th{font-size:13px}.economic-comparison-table td{vertical-align:middle}.economic-comparison-result{background:var(--brand-primary);color:var(--paper)}.economic-comparison-result>th,.economic-comparison-result>td{padding-block:18px}.economic-comparison-result .economic-delta>strong,.economic-comparison-result .economic-delta>small{color:var(--paper)}.economic-close-checklist{padding:20px 0}.economic-close-checklist>h4{margin:0 0 14px;font-size:17px}.economic-close-checklist>ul{border-top:1px solid var(--line);margin:0;padding:0;list-style:none}.economic-close-checklist li{border-bottom:1px solid var(--line-soft);justify-content:space-between;align-items:center;gap:14px;padding:10px 0;font-size:12px;display:flex}body .event-command-center .economic-close-checklist li button{min-height:30px;padding:5px 9px;font-size:11px}.economic-export{background:var(--brand-primary);min-height:36px;color:var(--paper);border-radius:var(--radius-button);white-space:nowrap;align-items:center;padding:8px 12px;font-size:12px;font-weight:600;text-decoration:none;display:inline-flex}.economic-close-workspace :is(button,a,summary,input,select,textarea):focus-visible{outline:2px solid var(--brand-primary);outline-offset:3px}@media (max-width:1250px){.economic-results{grid-template-columns:repeat(2,minmax(0,1fr))}.economic-result-action{flex-direction:row;grid-column:1/-1;justify-content:space-between;align-items:center;gap:10px}.economic-overall-state{text-align:left}.economic-actual-category>summary{grid-template-columns:minmax(160px,1.2fr) repeat(2,minmax(90px,.6fr)) minmax(100px,.7fr) 100px;gap:12px}.economic-review-action{display:none}.economic-forecast-table.has-reference .economic-forecast-row{grid-template-columns:minmax(150px,1.2fr) repeat(2,minmax(110px,.75fr)) minmax(150px,1fr);gap:12px}}@media (max-width:1000px){body .event-command-center .event-command-sticky{position:static}.economic-forecast-row,.economic-forecast-table.has-reference .economic-forecast-row{grid-template-columns:minmax(0,1.3fr) minmax(100px,1fr)}.economic-forecast-actions{grid-column:1/-1;justify-content:flex-start}.economic-strip{flex-wrap:wrap;row-gap:14px}.economic-strip-category{flex:35%}.economic-strip-category.is-food{flex:1.6 50%}.economic-strip-category:nth-child(3){border-left:0;padding-left:0}.economic-actual-category>summary{grid-template-columns:minmax(0,1fr) repeat(2,minmax(90px,.6fr))}.economic-actual-category>summary>.economic-delta{grid-column:2}.economic-actual-category>summary>.economic-state{grid-column:3;justify-self:end}}@media (max-width:600px){body .event-command-center .economic-identity{gap:10px;padding:12px}body .event-command-center .economic-identity h2{font-size:18px}.economic-date{flex-basis:44px}.economic-date>strong{font-size:20px}.economic-identity>div>small{font-size:9px}.economic-identity>.event-command-menu{align-self:flex-start}.economic-identity>.event-command-menu>summary{min-width:0;padding:6px;font-size:10px}.economic-header{padding:10px 12px}.economic-results{gap:8px}.economic-result{padding:12px}.economic-result>div{flex-direction:column;align-items:flex-start;gap:4px}.economic-result>div>span:first-child{letter-spacing:.03em;font-size:9px}.economic-result>strong{font-size:23px}.economic-result>small{font-size:10px}.economic-strip{gap:14px 0}.economic-strip-category,.economic-strip-category.is-food{border:0;flex:1 0 100%;padding:0}.economic-strip-category>div:not(.economic-food-split){grid-template-columns:auto 1fr auto 1fr}.economic-strip-category>div:not(.economic-food-split)>strong{text-align:left}.economic-navigation{flex-wrap:wrap;gap:4px;margin-bottom:20px;padding-bottom:7px}.economic-navigation nav{gap:14px;width:100%}body .event-command-center .economic-navigation nav button{min-height:44px;font-size:11px}.economic-view-heading{flex-wrap:wrap;gap:10px}body .event-command-center .economic-view-heading h3{font-size:21px}.economic-actual-category>summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-block:16px}.economic-actual-category>summary>span:first-child{grid-column:1/-1}.economic-actual-category>summary>.economic-delta{grid-column:1}.economic-actual-category>summary>.economic-state{grid-column:2}.economic-actual-category[open]{margin-inline:-10px;padding-inline:10px}.economic-close-workspace .event-workspace-fields{grid-template-columns:minmax(0,1fr)}.economic-source-heading{flex-wrap:wrap}.economic-close-workspace .event-operation-form fieldset>button{white-space:normal;max-width:100%}.economic-close-workspace .event-operation-form{padding:10px}.economic-progress{font-size:11px}}.economic-comparison-table tbody .economic-comparison-result>th,.economic-comparison-table tbody .economic-comparison-result>td{color:var(--paper)}body .event-command-center:has(.economic-close-workspace) .economic-identity{gap:10px;padding:10px 20px}body .event-command-center:has(.economic-close-workspace) .economic-identity h2{margin:2px 0 4px;font-size:19px}body .event-command-center:has(.economic-close-workspace) .economic-date{flex-basis:44px;padding:5px 3px}body .event-command-center:has(.economic-close-workspace) .economic-date>strong{font-size:21px}body .event-command-center:has(.economic-close-workspace) .economic-header{padding:8px 20px 4px}body .event-command-center:has(.economic-close-workspace) .economic-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body .event-command-center:has(.economic-close-workspace) .economic-result{padding:8px 12px}body .event-command-center:has(.economic-close-workspace) .economic-result>strong{margin:3px 0 2px;font-size:25px}body .event-command-center:has(.economic-close-workspace) .economic-result-action{display:none}body .event-command-center:has(.economic-close-workspace) .economic-strip{margin-top:6px;padding-top:4px}body .event-command-center:has(.economic-close-workspace) .economic-strip-category>span{margin-bottom:3px}body .event-command-center:has(.economic-close-workspace) .economic-strip-category>div:not(.economic-food-split){grid-template-columns:auto 1fr auto 1fr;gap:3px 6px}body .event-command-center:has(.economic-close-workspace) .economic-strip-category strong{font-size:12px}body .event-command-center:has(.economic-close-workspace) .event-command-tabs{padding-top:0}body .event-command-center:has(.economic-close-workspace) .event-command-tabs button{min-height:36px;padding:8px 10px}body .event-command-body[data-event-tab=closure]>.event-attention{margin:4px 0}.economic-close-workspace .economic-navigation{gap:10px;margin-bottom:10px}body .event-command-center .economic-navigation nav button{min-height:36px;padding:7px 0;font-size:12px}.economic-close-workspace .economic-view-heading{gap:10px;margin-bottom:10px}.economic-close-workspace .economic-view-heading>div>span{display:none}body .event-command-center .economic-view-heading h3{margin:0;font-size:19px}.economic-close-workspace .economic-forecast-row{align-items:center;gap:12px;padding:9px 0}.economic-close-workspace .economic-forecast-row>[role=cell]>strong{font-size:15px}.economic-close-workspace .economic-forecast-row>[role=cell]:first-child>strong{font-size:13px}.economic-close-workspace .economic-forecast-row small{margin-top:2px;font-size:10px}.economic-close-workspace .economic-forecast-row>[role=cell]>small:first-child{margin-bottom:2px}.economic-close-workspace .economic-forecast-validation{max-width:none;margin-top:10px}body .event-command-center .economic-forecast-validation .event-operation-form fieldset{flex-wrap:wrap;align-items:end;gap:12px;display:flex}body .event-command-center .economic-forecast-validation .event-operation-form fieldset>label{flex:280px;gap:4px;margin:0}.economic-close-workspace .economic-history{margin-top:12px;padding-top:8px}.economic-actual-row{border-bottom:1px solid var(--line);position:relative}.economic-actual-row>.economic-actual-category{border-bottom:0}.economic-actual-row>.economic-actual-category>summary{box-sizing:border-box;grid-template-columns:minmax(150px,1.3fr) minmax(90px,.7fr) minmax(90px,.7fr) 104px 76px;gap:12px;min-height:62px;padding:8px 120px 8px 0}.economic-actual-row>.economic-actual-category>summary>span:first-child>small{display:none}.economic-actual-row>.economic-actual-category>summary strong{font-size:14px}.economic-actual-row>.economic-actual-category>summary>.economic-delta{display:none}.economic-actual-row>.economic-actual-category>summary>.economic-state{grid-column:auto;justify-self:start;padding:4px 7px;font-size:10px}.economic-actual-row>.economic-actual-category>summary>.economic-review-action{border:1px solid var(--line);border-radius:var(--radius-button);background:var(--paper);justify-content:center;align-items:center;gap:4px;min-height:32px;font-size:11px;display:flex}.economic-review-action>span{margin:0}.economic-category-actions{text-align:center;width:108px;position:absolute;top:8px;right:0}body .event-command-center .economic-category-actions .event-operation-form{background:0 0;border:0;margin:0;padding:0}body .event-command-center .economic-category-actions .event-operation-form fieldset{border:0;min-width:0;margin:0;padding:0}body .event-command-center .economic-category-actions .event-operation-form button[type=submit]{width:100%;min-height:32px;padding:5px 8px;font-size:11px}.economic-confirm-help{color:var(--text-muted);margin-top:3px;font-size:9px;line-height:1.25;display:block}.economic-category-actions [data-operation-error]:not([hidden]){z-index:2;text-align:left;background:var(--paper);min-width:160px;position:relative}.economic-actual-row>.economic-actual-category[open]{margin-inline:0;padding-inline:10px}.economic-actual-row>.economic-actual-category[open]>.economic-category-body{padding-bottom:12px}body .event-command-center .economic-close-workspace .event-operation-form{margin-top:8px;padding:10px}.economic-close-workspace .economic-detail-table :is(th,td),.economic-close-workspace .economic-comparison-table :is(th,td){padding:8px 10px}.economic-close-workspace .economic-comparison-result>th,.economic-close-workspace .economic-comparison-result>td{padding-block:10px}.economic-close-workspace .economic-close-checklist{padding:12px 0}.economic-close-workspace .economic-close-checklist>h4{margin-bottom:8px;font-size:15px}.economic-close-workspace .economic-close-checklist li{padding:5px 0}@media (min-width:1001px){.economic-close-workspace .economic-close-checklist>ul{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;display:grid}}@media (max-width:1000px){.economic-actual-row>.economic-actual-category>summary{grid-template-columns:minmax(130px,1fr) repeat(2,minmax(80px,.7fr)) 76px;gap:8px}.economic-actual-row>.economic-actual-category>summary>.economic-state{display:none}.economic-close-workspace .economic-forecast-row,.economic-close-workspace .economic-forecast-table.has-reference .economic-forecast-row{grid-template-columns:minmax(120px,1fr) minmax(100px,.7fr) minmax(160px,1fr);gap:10px}.economic-close-workspace .economic-forecast-actions{grid-column:auto}.economic-close-workspace .economic-forecast-table.has-reference .economic-forecast-row{grid-template-columns:repeat(2,minmax(0,1fr))}.economic-close-workspace .economic-forecast-table.has-reference .economic-forecast-actions{grid-column:1/-1}}@media (max-width:600px){body .event-command-center:has(.economic-close-workspace) .economic-identity{padding:8px 12px}body .event-command-center:has(.economic-close-workspace) .economic-identity h2{font-size:16px}body .event-command-center:has(.economic-close-workspace) .economic-header{padding:6px 12px}body .event-command-center:has(.economic-close-workspace) .economic-result{padding:8px 10px}body .event-command-center:has(.economic-close-workspace) .economic-result>strong{font-size:22px}body .event-command-center:has(.economic-close-workspace) .economic-result>small{font-size:9px}body .event-command-center:has(.economic-close-workspace) .economic-strip{display:none}.economic-close-workspace .economic-navigation{margin-bottom:10px}.economic-close-workspace .economic-navigation nav{gap:12px}body .event-command-center .economic-navigation nav button{min-height:38px;font-size:11px}body .event-command-center .economic-view-heading h3{font-size:17px}.economic-actual-row>.economic-actual-category>summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 76px;gap:6px 10px;min-height:88px;padding-right:0}.economic-actual-row>.economic-actual-category>summary>span:first-child{grid-column:1/-1;padding-right:116px}.economic-actual-row>.economic-actual-category>summary>span:nth-child(2),.economic-actual-row>.economic-actual-category>summary>span:nth-child(3){grid-column:auto}.economic-actual-row>.economic-actual-category>summary>.economic-review-action{grid-column:3}.economic-actual-row>.economic-actual-category>summary strong{font-size:13px}.economic-category-actions{top:7px}.economic-close-workspace .economic-forecast-row,.economic-close-workspace .economic-forecast-table.has-reference .economic-forecast-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.economic-close-workspace .economic-forecast-actions{grid-column:1/-1}.economic-close-workspace .economic-forecast-validation .event-operation-form fieldset{align-items:stretch}.economic-close-workspace .economic-forecast-validation .event-operation-form fieldset>label{flex-basis:100%}}body .event-command-center .economic-close-workspace .economic-category-actions .event-operation-form{background:0 0;border:0;margin:0;padding:0}body .event-command-center .economic-category-actions .event-operation-form button[type=submit]{margin:0}
}

@layer lab-legacy {
.production-supply{min-width:0;color:var(--text)}.supply-heading{justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px;display:flex}body .production-supply .supply-heading h3{color:var(--brand-primary);letter-spacing:-.02em;margin:5px 0;font-size:21px;line-height:1.25}.supply-heading h3>span{font-weight:500}.supply-heading p{color:var(--text-muted);margin:0;font-size:12px}.supply-heading>label{color:var(--text-muted);flex:0 0 220px;gap:5px;font-size:11px;font-weight:600;display:grid}.supply-heading select,.supply-filters input,.supply-filters select,.supply-dialog :is(input,select){border:1px solid var(--line);border-radius:var(--radius-button);background:var(--paper);width:100%;min-width:0;min-height:38px;color:var(--text);font:inherit;box-sizing:border-box;padding:7px 10px}.supply-kpis{border:1px solid var(--line);border-radius:var(--radius-card);background:var(--bg-subtle);grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 16px;display:grid}.supply-kpis>div{border-left:1px solid var(--line);min-width:0;padding:12px 16px}.supply-kpis>div:first-child{border-left:0}.supply-kpis dt{color:var(--text-muted);font-size:11px;font-weight:600}.supply-kpis dd{color:var(--brand-primary);font-variant-numeric:tabular-nums;margin:5px 0;font-size:23px;font-weight:700;line-height:1.1}.supply-kpis small{color:var(--text-muted);font-size:10px}.supply-toolbar{flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0;display:flex}body .production-supply :is(button,.supply-more>summary){min-height:34px;padding:7px 10px;font-size:12px}.supply-verification{color:var(--text-muted);margin-left:auto;font-size:11px}.supply-more{position:relative}.supply-more>summary{cursor:pointer;border:1px solid var(--line);border-radius:var(--radius-button);background:var(--paper);list-style:none}.supply-more>div{z-index:25;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--paper);min-width:240px;box-shadow:var(--shadow-sm);gap:4px;padding:8px;display:grid;position:absolute;top:calc(100% + 5px);left:0}.supply-more a{color:var(--brand-primary);padding:9px;font-size:12px;text-decoration:none}.supply-more button{text-align:left}.supply-filters{border-top:1px solid var(--line-soft);flex-wrap:wrap;align-items:center;gap:12px;padding:12px 0;display:flex}.supply-filters nav{flex-wrap:wrap;gap:4px;display:flex}body .production-supply .supply-filters nav button{background:0 0;border:1px solid #0000;padding:6px 8px;font-size:11px}body .production-supply .supply-filters nav button[aria-pressed=true]{color:var(--paper);background:var(--brand-primary);border-color:var(--brand-primary)}.supply-search{flex:160px;max-width:280px;margin-left:auto}.supply-filters>label:last-child{color:var(--text-muted);align-items:center;gap:6px;font-size:11px;display:flex}.supply-filters>label:last-child select{width:auto;font-size:12px}.supply-table-wrap{border:1px solid var(--line);border-radius:var(--radius-button);max-width:100%;overflow:auto}.supply-table{border-collapse:collapse;background:var(--paper);width:100%}.supply-table thead th{background:var(--bg-soft);letter-spacing:.025em;color:var(--text-muted);text-align:right;white-space:nowrap;padding:10px 12px;font-size:10px}.supply-table th:first-child{text-align:left}.supply-table tbody :is(th,td){border-top:1px solid var(--line-soft);text-align:right;font-variant-numeric:tabular-nums;padding:8px 12px;font-size:12px}.supply-table tbody th{text-align:left;width:40%;min-width:200px;font-weight:600}body .production-supply .supply-table tbody th button{text-align:left;width:100%;color:var(--brand-primary);white-space:normal;background:0 0;border:0;padding:2px 0;line-height:1.45}.supply-table tbody th button>span{color:var(--text-muted)}.supply-table td small{color:var(--text-muted);margin-top:3px;font-size:10px;display:block}.supply-state{border:1px solid var(--line);white-space:nowrap;max-width:100%;color:var(--text-muted);background:var(--bg-subtle);border-radius:4px;align-items:center;padding:4px 7px;font-size:10px;font-weight:600;display:inline-flex}.supply-state:is(.is-covered,.is-internal){color:var(--brand-primary);background:color-mix(in srgb,var(--brand-accent) 20%,var(--paper))}.supply-state:is(.is-missing,.is-incident){color:var(--danger,#8e3c39);border-color:color-mix(in srgb,var(--danger,#8e3c39) 30%,var(--line));background:color-mix(in srgb,var(--danger,#8e3c39) 5%,var(--paper))}.supply-state.is-unverified{color:var(--text-muted);border-style:dashed}.supply-state:is(.is-ordered,.is-draft){color:var(--brand-primary);border-color:var(--brand-accent)}.supply-purchases{background:var(--bg-subtle);border:1px solid var(--line);border-radius:var(--radius-card);justify-content:space-between;align-items:center;gap:18px;margin-top:16px;padding:16px;display:flex}.supply-purchases h4{color:var(--brand-primary);margin:0 0 7px;font-size:16px}.supply-purchases p{margin:0 0 5px;font-size:13px}.supply-purchases small,.supply-hint{color:var(--text-muted);font-size:11px;line-height:1.5}.supply-purchases>div:last-child{flex-wrap:wrap;flex-shrink:0;gap:8px;display:flex}.supply-economic{border-top:1px solid var(--line-soft);margin-top:14px;padding-top:12px;font-size:12px}.supply-economic summary{cursor:pointer;font-weight:600}.supply-economic dl{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-block:16px;display:grid}.supply-economic dt{color:var(--text-muted);font-size:11px}.supply-economic dd{font-variant-numeric:tabular-nums;margin:6px 0;font-size:17px;font-weight:600}.supply-economic p{color:var(--text-muted);font-size:11px}.supply-dialog{box-sizing:border-box;border:0;border-left:1px solid var(--line);background:var(--paper);width:min(510px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;color:var(--text);box-shadow:var(--shadow-sm);margin:0;padding:0;position:fixed;inset:0 0 0 auto}.supply-dialog::backdrop{background:#18272c52}.supply-dialog>header{border-bottom:1px solid var(--line);background:var(--paper);z-index:2;justify-content:space-between;align-items:center;gap:16px;padding:14px 20px;display:flex;position:sticky;top:0}.supply-dialog>header>strong{font-size:13px}.supply-dialog button{min-height:36px;font:inherit;cursor:pointer;border:1px solid var(--line);border-radius:var(--radius-button);background:var(--paper);color:var(--brand-primary);padding:7px 10px;font-size:12px}.supply-dialog button.primary{background:var(--brand-primary);color:var(--paper)}.supply-dialog-body{overflow-wrap:anywhere;padding:20px;font-size:12px;line-height:1.5}.supply-dialog h3{color:var(--brand-primary);margin:7px 0 14px;font-size:21px;line-height:1.25}.supply-dialog h4{color:var(--brand-primary);margin-top:22px}.supply-dialog label{gap:5px;margin:12px 0;font-size:12px;display:grid}.supply-dialog label small{color:var(--text-muted)}.supply-detail-values{margin:20px 0}.supply-detail-values>div{border-bottom:1px solid var(--line-soft);grid-template-columns:1fr 1fr;gap:12px;padding:9px 0;display:grid}.supply-detail-values dt{color:var(--text-muted)}.supply-detail-values dd{text-align:right;font-variant-numeric:tabular-nums;margin:0;font-weight:600}.supply-lot{border:1px solid var(--line);border-radius:var(--radius-button);gap:5px;margin:8px 0;padding:12px;display:grid}.supply-lot small{color:var(--text-muted)}.supply-lot :is(input,select){font-size:12px}.supply-dialog [role=alert]:not([hidden]){border-left:3px solid var(--danger,#8e3c39);color:var(--danger,#8e3c39);background:var(--bg-soft);padding:10px}.supply-empty{color:var(--text-muted);padding:16px;font-size:12px}.production-supply :is(button,a,summary,input,select):focus-visible,.supply-dialog :is(button,a,summary,input,select):focus-visible{outline:2px solid var(--brand-primary);outline-offset:3px}@media (max-width:1000px){.supply-heading{flex-wrap:wrap}.supply-heading>label{flex:200px;max-width:300px}.supply-purchases{flex-wrap:wrap;align-items:flex-start}.supply-verification{flex:1 0 100%}.supply-table tbody th{min-width:150px}.supply-table tbody :is(th,td){padding:8px;font-size:11px}.supply-kpis>div{padding:10px}.supply-kpis dd{font-size:21px}}@media (max-width:600px){.supply-heading{gap:12px}.supply-heading>label{max-width:none}.supply-heading h3>span{margin-top:5px;font-size:17px;display:block}.supply-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.supply-kpis>div:nth-child(3){border-left:0;border-top:1px solid var(--line)}.supply-kpis>div:nth-child(4){border-top:1px solid var(--line)}.supply-search{flex-basis:100%;max-width:none;margin:0}.supply-filters nav{width:100%}.supply-table,.supply-table tbody{display:block}.supply-table thead{display:none}.supply-table tr:not([hidden]){border-top:1px solid var(--line);grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px;display:grid}.supply-table tr:first-child{border-top:0}.supply-table tbody :is(th,td){text-align:left;border:0;width:auto;min-width:0;padding:0;display:block}.supply-table tbody th{grid-column:1/-1}.supply-table td[data-label]:before{content:attr(data-label);color:var(--text-muted);margin-bottom:4px;font-size:10px;display:block}.supply-table td:nth-last-child(2){grid-column:1/3}.supply-table td:nth-last-child(2):before{display:none}.supply-table td:last-child{justify-self:end}.supply-purchases{padding:12px}.supply-purchases>div:last-child{flex-direction:column;width:100%}.supply-economic dl{grid-template-columns:repeat(2,minmax(0,1fr))}.supply-dialog-body{padding:16px}.supply-more>div{min-width:210px;max-width:calc(100vw - 40px);left:auto;right:0}}
}

@layer lab-legacy {
.pe-workspace{color:var(--text);gap:16px;min-width:0;display:grid}.pe-workspace :is(h3,h4,p){margin:0}.pe-heading,.pe-workspace section>header,.pe-checklist>header,.pe-finish{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.pe-heading h3{letter-spacing:-.35px;margin:5px 0;font-size:20px}.pe-heading p,.pe-workspace small,.pe-workspace dt,.pe-meta,.pe-result header p,.pe-finish p{color:var(--text-muted);font-size:12px;line-height:1.5}.pe-heading p span{padding:0 6px}.pe-workspace h4{font-size:15px}.pe-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.pe-workspace button{border:1px solid var(--line);border-radius:var(--radius-button);background:var(--paper);min-height:40px;color:var(--brand-primary);font:inherit;cursor:pointer;padding:8px 12px;font-size:12px;font-weight:650}.pe-workspace button.primary{background:var(--brand-primary);color:var(--paper);border-color:var(--brand-primary)}.pe-workspace button:disabled{opacity:.45;cursor:not-allowed}.pe-workspace :is(button,input,select,summary):focus-visible{outline:2px solid var(--brand-primary);outline-offset:3px}.pe-checklist,.pe-controls,.pe-result,.pe-incidents,.pe-close{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-card);overflow:hidden}.pe-workspace section>header{padding:14px 18px}.pe-checklist>header>span{color:var(--text-muted);font-size:12px}.pe-checklist progress{appearance:none;background:var(--line);width:100%;height:3px;accent-color:var(--brand-primary);border:0;display:block}.pe-checklist progress::-webkit-progress-bar{background:var(--line)}.pe-checklist progress::-webkit-progress-value{background:var(--brand-primary)}.pe-task+.pe-task{border-top:1px solid var(--line)}.pe-task-row{box-sizing:border-box;grid-template-columns:54px minmax(0,1fr) auto auto;align-items:center;gap:12px;min-height:62px;padding:9px 18px;display:grid}.pe-check{cursor:pointer;align-items:center;gap:7px;min-height:44px;display:flex}.pe-check span{color:var(--text-muted);font-size:10px}.pe-workspace input[type=checkbox]{appearance:none;border:1.5px solid var(--line);background:var(--paper);cursor:pointer;border-radius:5px;flex-shrink:0;place-content:center;width:22px;height:22px;min-height:22px;margin:0;display:inline-grid}.pe-workspace input[type=checkbox]:checked{background:var(--brand-primary);border-color:var(--brand-primary)}.pe-workspace input[type=checkbox]:checked:after{content:"✓";color:var(--paper);font-size:16px;font-weight:800}.pe-workspace input[type=checkbox]:disabled{opacity:.5;cursor:not-allowed}.pe-task-name{overflow-wrap:anywhere;gap:3px;display:grid}.pe-task-name>strong{font-size:14px;line-height:1.4}.pe-task.is-complete .pe-task-name>strong{color:var(--text-muted)}.pe-status{background:var(--bg-subtle);border-radius:var(--radius-button);white-space:nowrap;padding:4px 8px;font-size:11px;font-weight:650}.pe-status.is-done{background:var(--green-badge);color:var(--brand-primary)}.pe-status.is-active{border:1px solid var(--line)}.pe-status.is-pending,.pe-warning{color:var(--warning-text,#826239);background:var(--warning-bg,#f5efe4)}.pe-detail-content{border-top:1px solid var(--line);gap:12px;padding:12px 18px 18px;display:grid}.pe-instructions{white-space:pre-line;max-width:960px;font-size:13px;line-height:1.7}.pe-detail-content p{overflow-wrap:anywhere;font-size:13px;line-height:1.6}.pe-controls>details,.pe-incidents>details{border-top:1px solid var(--line)}.pe-workspace summary{cursor:pointer;box-sizing:border-box;justify-content:space-between;align-items:center;gap:12px;min-height:44px;padding:12px 18px;font-size:13px;display:flex}.pe-workspace summary>span:first-child{overflow-wrap:anywhere;gap:3px;display:grid}.pe-workspace details[open]>summary{background:var(--bg-subtle)}.pe-empty{padding:12px 18px;font-size:13px;line-height:1.6}.pe-empty p{margin:5px 0 10px}.pe-result dl{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0;padding:0 18px 16px;display:grid}.pe-result dd{margin:5px 0 0;font-size:17px;font-weight:700}.pe-result>p{padding:0 18px 12px;font-size:13px}.pe-workspace fieldset{border:0;min-width:0;margin:0;padding:16px 18px}.pe-detail-content fieldset{padding:0}.pe-workspace .event-workspace-fields{gap:12px;margin-bottom:12px}.pe-workspace label{min-width:0;font-size:12px}.pe-workspace :is(input:not([type=checkbox]),select,textarea){border:1px solid var(--line);border-radius:var(--radius-button);background:var(--paper);color:var(--text);box-sizing:border-box;width:100%;min-height:40px;font:inherit;padding:8px}.pe-inline-check{align-items:center;gap:8px;display:flex!important}.pe-finish{border:1px solid var(--line);border-radius:var(--radius-card);background:var(--bg-subtle);padding:16px 18px}.pe-finish ul{flex-wrap:wrap;gap:4px 12px;margin:8px 0 0;padding:0;list-style:none;display:flex}.pe-finish li button{text-underline-offset:3px;background:0 0;border:0;min-height:32px;padding:2px 0;text-decoration:underline}.pe-finish>button{flex-shrink:0}.pe-tranche{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:8px 0;font-size:12px;display:flex}.pe-close>h4,.pe-close>p{margin:16px 18px}.pe-close .production-consumption{grid-column:1/-1}.pe-save-status{color:var(--text-muted);font-size:11px}.pe-incidents h4 small{margin-left:6px;font-weight:400}.pe-closed{padding:12px;font-size:13px}@media (max-width:800px){.pe-task-row{grid-template-columns:46px minmax(0,1fr) auto;gap:8px;padding:8px 12px}.pe-task-row>.pe-status{grid-area:2/2;justify-self:start}.pe-task-row>button{grid-area:1/3/3}.pe-check{grid-row:1/3}.pe-task-row{min-height:70px}.pe-result dl{grid-template-columns:repeat(2,minmax(0,1fr))}.pe-finish>button{width:100%}.pe-heading h3{font-size:18px}.pe-workspace .event-workspace-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.pe-workspace{gap:12px}}@media (max-width:480px){.pe-workspace .event-workspace-fields{grid-template-columns:1fr}.pe-workspace section>header{padding:12px}.pe-workspace summary{align-items:start;padding:12px}.pe-workspace .pe-task-name>strong{font-size:13px}.pe-detail-content{padding:12px}.pe-tranche{flex-wrap:wrap;align-items:start}.pe-workspace fieldset{padding:12px}.pe-result dd{font-size:15px}.pe-finish{padding:12px}.pe-task-row>button{padding:8px;font-size:11px}.pe-workspace summary .pe-status{white-space:normal}.pe-workspace{overflow-wrap:anywhere}}
}

@layer lab-legacy {
:is(body:has(.reference-production) .content-inner>.app-header,body:has(.reference-production) .content-inner>.document-toolbar){display:none}body:has(.reference-production) .content-inner{padding:0 10px 24px}body .reference-production.info-panel{box-shadow:none;color:var(--text);background:#fff;border:0;border-radius:0;min-width:0;margin:0;padding:0}.reference-production :is(h2,h3,p){margin:0}.ref-header{z-index:3;background:#fff;justify-content:space-between;align-items:center;gap:12px;min-height:66px;padding:10px 12px;display:flex;position:sticky;top:0;box-shadow:0 6px 20px #25393d08}.ref-header h2{letter-spacing:-.35px;align-items:center;gap:8px;font-size:20px;line-height:1.3;display:flex}.ref-header h2 button{color:#b76060;border:0;padding:0;font-size:14px}.reference-production button{font:inherit;color:inherit;border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:4px;min-height:32px;padding:6px 10px;font-size:12px}.ref-header-actions{align-items:center;gap:5px;display:flex}.ref-header-actions>button{text-transform:uppercase;color:#fff;border:0;min-height:30px;padding:8px 13px;font-size:10px;font-weight:700}.ref-header-actions .ref-start{background:#e8a843}.ref-header-actions .ref-finish{background:#4fa75b}.ref-header-actions .ref-labels{background:#347eac}.reference-production button:disabled{opacity:.45;cursor:not-allowed}.reference-production :is(button,input,select,summary,textarea):focus-visible{outline:2px solid var(--brand-primary);outline-offset:3px}.ref-more{position:relative}.ref-more>summary{cursor:pointer;color:#737b7b;padding:0 12px;font-size:25px;list-style:none}.ref-more>summary::-webkit-details-marker{display:none}.ref-more>div{border:1px solid var(--line);z-index:8;background:#fff;border-radius:8px;width:245px;padding:8px 0;position:absolute;top:35px;right:0;box-shadow:0 6px 22px #0002}.ref-more button{text-align:left;border:0;width:100%;padding:7px 20px;font-size:13px;line-height:1.4;display:block}.ref-more button:hover{background:var(--bg-subtle)}.ref-more hr{border:0;border-top:1px solid var(--line);margin:7px 0}.ref-body{padding:18px 8px 24px}.ref-top{grid-template-columns:minmax(0,1fr) 342px;align-items:center;gap:10px;min-height:104px;margin-bottom:18px;display:grid}.ref-output{align-content:center;gap:10px;font-size:13px;font-weight:600;display:grid}.ref-output>div{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.ref-output input{text-align:right;width:76px}.ref-family{color:#fff;text-transform:uppercase;background:#58af62;border-radius:12px;justify-self:start;max-width:100%;padding:4px 8px;font-size:10px;font-weight:400;display:inline-block}.ref-production-meta{justify-content:end;gap:5px;font-size:12px;display:grid}.ref-production-meta>p{text-align:right;margin:0 0 15px}.ref-production-meta label{justify-content:end;align-items:center;gap:8px;line-height:1.4;display:flex}.ref-production-meta input{width:126px;min-height:34px}.ref-columns{grid-template-columns:minmax(0,1fr) 342px;align-items:start;gap:8px;display:grid}.ref-columns>.ref-main,.ref-columns>aside{gap:20px;min-width:0;display:grid}.ref-card{background:#fff;border:1px solid #d9dddd;border-radius:12px;min-width:0;overflow:hidden}.ref-card>summary{box-sizing:border-box;cursor:pointer;color:#464c4c;background:#f5f5f4;justify-content:space-between;align-items:center;gap:12px;min-height:56px;padding:14px 28px;font-size:14px;list-style:none;display:flex}.ref-card>summary::-webkit-details-marker{display:none}.ref-card>summary>span{color:var(--brand-primary);font-size:19px;line-height:1;transform:rotate(-90deg)}.ref-card[open]>summary{border-bottom:1px solid #d9dddd}.ref-card[open]>summary>span{transform:none}.ref-card-body{overflow-wrap:anywhere;padding:20px 24px;font-size:13px;line-height:1.6}:is(.ref-card-body:has(>.ref-table-wrap),.ref-card-body:has(>.ref-yield)){padding:0}.ref-card-body>p+p{margin-top:14px}.ref-card-body p{white-space:pre-line}.ref-table-wrap{overflow:auto}.ref-composition{border-collapse:collapse;table-layout:auto;width:100%;margin:0;font-size:13px}.ref-composition :is(th,td){box-sizing:border-box;border-bottom:1px solid #e9eded;height:auto;padding:11px 9px}.ref-composition thead th{text-transform:uppercase;color:#697171;text-align:left;white-space:nowrap;border-bottom:1px solid #ccd2d2;padding-top:9px;padding-bottom:9px;font-size:10px;font-weight:400}.ref-composition thead th:first-child,.ref-composition td.ref-quantity{text-align:right}.ref-composition tbody tr:last-child td{border-bottom:0;padding-bottom:24px}.ref-composition td.ref-check-cell{width:28px;padding:9px 7px}.ref-composition .ref-quantity{white-space:nowrap;font-variant-numeric:tabular-nums;width:155px}.ref-quantity input{text-align:right;width:76px;margin:0 5px;padding:6px 8px;display:inline-block}.ref-product-name{min-width:150px}.ref-product-name>div{vertical-align:middle;max-width:calc(100% - 20px);display:inline-block}.ref-product-dot{vertical-align:middle;background:#bfe8ef;border-radius:50%;width:10px;height:10px;margin-right:12px;display:inline-block}.ref-composition tr:nth-child(3n) .ref-product-dot{background:#ad91db}.ref-composition tr:nth-child(3n+1) .ref-product-dot{background:#dec7b7}.ref-lots{width:45%;min-width:160px}.ref-lots>button{vertical-align:middle;min-height:24px;margin-right:5px;padding:1px 6px;font-size:14px}.ref-lot-box{box-sizing:border-box;vertical-align:middle;border:1px solid #ddd;border-radius:4px;flex-wrap:wrap;align-items:center;gap:4px;width:calc(100% - 34px);min-height:32px;padding:4px;display:inline-flex}.reference-production[data-reference-mode=consultation] .ref-lot-box{border:0}.ref-lot-chip{color:#fff;background:#b85454;border-radius:4px;align-items:center;gap:5px;padding:2px 5px;font-size:11px;font-weight:650;line-height:1.5;display:inline-flex}.ref-lot-chip button{color:#fff;background:0 0;border:0;min-height:18px;padding:0;font-size:15px}.ref-lot-placeholder{color:#979d9d;font-size:11px}.ref-allergens{flex-wrap:wrap;gap:4px;margin-top:4px;display:flex}.ref-allergens span{color:#fff;background:#b85151;border-radius:10px;padding:2px 6px;font-size:10px;line-height:1.5}.ref-yield{border-collapse:collapse;width:100%;margin:0;font-size:12px}.ref-yield :is(th,td){white-space:nowrap;border:0;height:auto;padding:10px 8px}.ref-yield th{text-transform:uppercase;color:#737d7d;border-bottom:1px solid #ccd3d3;font-size:9px;font-weight:400}.ref-yield td:last-child{color:#55745a}.reference-production input:not([type=checkbox]),.reference-production :is(select,textarea){min-height:34px;font:inherit;color:inherit;box-sizing:border-box;background:#fff;border:1px solid #d9dddd;border-radius:5px;max-width:100%;padding:6px 8px}.reference-production textarea{resize:vertical;width:100%;min-height:120px}.reference-production input[type=checkbox]{appearance:none;vertical-align:middle;background:#fff;border:1px solid #d3dada;border-radius:2px;flex-shrink:0;place-content:center;width:20px;height:20px;margin:0;display:inline-grid}.reference-production input[type=checkbox]:checked{background:var(--brand-primary);border-color:var(--brand-primary)}.reference-production input[type=checkbox]:checked:after{content:"✓";color:#fff;font-size:14px}.reference-production input:disabled{opacity:.65;background:#f5f5f4}.ref-inline{align-items:center;gap:8px;margin:12px 0;display:flex}.ref-control{border-bottom:1px solid var(--line);margin-bottom:12px;padding-bottom:10px}.ref-control summary{cursor:pointer;justify-content:space-between;gap:8px;display:flex}.ref-control form{margin-top:12px}.ref-control fieldset{border:0;min-width:0;padding:0}.ref-control .event-workspace-fields{gap:10px;margin-bottom:10px;display:grid}.ref-control label{gap:4px;display:grid}.ref-card-body img{max-width:100%;height:auto;display:block}.ref-error{background:#fcf2ee;border-left:3px solid #b85454;margin:10px 8px;padding:10px 12px;font-size:13px}.ref-error[hidden]{display:none}.ref-error button{margin-left:12px}.ref-dialog[open]{z-index:30;border:1px solid var(--line);box-sizing:border-box;width:calc(100% - 32px);max-width:640px;max-height:80vh;color:var(--text);background:#fff;border-radius:10px;padding:22px;position:fixed;inset:50% auto auto 50%;overflow:auto;transform:translate(-50%,-50%);box-shadow:0 0 0 100vmax #17292b55,0 12px 40px #0003}.ref-dialog>h3,.ref-dialog h3{margin:0 0 18px;font-size:18px}.ref-dialog form{gap:12px;display:grid}.ref-dialog label{gap:5px;font-size:13px;display:grid}.ref-dialog input:not([type=checkbox]),.ref-dialog select{border:1px solid var(--line);width:100%;min-height:36px;font:inherit;box-sizing:border-box;border-radius:5px;padding:7px}.ref-dialog footer{justify-content:flex-end;gap:8px;margin-top:16px;display:flex}.ref-dialog .ref-lot-option{grid-template-columns:20px minmax(0,1fr) 92px 24px;align-items:center;gap:10px;margin-bottom:12px;display:grid}.ref-lot-option small{color:var(--text-muted);font-size:11px;display:block}.ref-finished{color:var(--brand-primary);font-size:12px}@media (min-width:1600px){.ref-columns,.ref-top{grid-template-columns:minmax(0,1fr) 342px}.ref-body{max-width:1220px}}@media (max-width:1100px){.ref-columns,.ref-top{grid-template-columns:minmax(0,1fr) 285px}.ref-card>summary{padding:14px 18px}.ref-card-body{padding:16px}.ref-composition :is(td,th){padding:9px 6px}.ref-lots,.ref-product-name{min-width:125px}.ref-quantity input{width:65px}.ref-production-meta{font-size:11px}.ref-yield :is(th,td){padding:9px 5px;font-size:10px}}@media (max-width:800px){.ref-columns{grid-template-columns:minmax(0,1fr) 250px}.ref-top{grid-template-columns:minmax(0,1fr) 250px;min-height:100px}.ref-header h2{font-size:18px}.ref-composition{min-width:510px}.ref-header{padding:10px 8px}.ref-more>div{width:230px}.ref-body{padding:12px 4px}.ref-card>summary{padding:13px 15px}}@media (max-width:650px){.ref-columns{grid-template-columns:1fr}.ref-top{grid-template-columns:1fr;gap:20px;margin:6px 0 20px}.ref-production-meta{justify-content:stretch}.ref-production-meta label{justify-content:space-between}.ref-production-meta input{width:145px}.ref-production-meta>p{text-align:left;margin-bottom:7px}.ref-header{flex-wrap:wrap;gap:8px;position:relative}.ref-header h2{flex:100%;font-size:18px}.ref-header-actions{margin-left:auto}.ref-top{min-height:60px}.ref-columns>.ref-main,.ref-columns>aside{gap:14px}.ref-columns>aside{margin-top:6px}.ref-composition{min-width:510px}.ref-card-body{padding:16px}.ref-quantity input{min-height:40px}.ref-lots>button{min-width:28px;min-height:32px}.reference-production button{min-height:36px}.ref-lot-chip button{min-height:22px}.ref-more>summary{min-height:36px}.ref-dialog[open]{padding:18px}.ref-dialog .ref-lot-option{grid-template-columns:20px minmax(0,1fr) 72px 20px;font-size:12px}.reference-production .ref-output input{min-height:40px}}@media (min-width:651px){.ref-columns>aside{margin-top:-32px}}.reference-production[data-reference-mode=consultation] .ref-composition td:last-child button{color:#b76060;border:0;min-height:18px;padding:0}.ref-composition,.ref-yield{line-height:1.4}@media (min-width:651px){.reference-production[data-reference-mode=execution] .ref-top{margin-bottom:50px}}@media (min-width:651px) and (max-width:900px){.ref-columns{grid-template-columns:1fr}.ref-columns>aside{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:0}.ref-composition{min-width:600px}.ref-product-name{min-width:200px}.ref-lots{width:38%;min-width:150px}.reference-production[data-reference-mode=execution] .ref-top{margin-bottom:18px}}.reference-production .ref-composition :is(th,td){padding:5px 8px;line-height:1.35}.reference-production .ref-composition thead th{padding-top:7px;padding-bottom:7px}.reference-production .ref-composition tbody tr:last-child td{padding-bottom:5px}.reference-production .ref-composition td.ref-check-cell{width:28px;padding:5px 6px}.reference-production .ref-composition .ref-quantity{width:160px}.reference-production .ref-composition .ref-quantity input{width:68px;height:30px;min-height:30px;margin:0 4px;padding:3px 6px}.reference-production .ref-composition .ref-product-name{min-width:180px;padding-left:23px;position:relative}.reference-production .ref-product-name>div{max-width:none;display:block}.reference-production .ref-product-dot{width:7px;height:7px;margin:0;position:absolute;top:50%;left:8px;transform:translateY(-50%)}.reference-production .ref-product-name .ref-allergens{vertical-align:middle;gap:3px;margin:0 0 0 5px;display:inline-flex}.reference-production .ref-product-name .ref-allergens span{padding:1px 5px}.reference-production .ref-composition .ref-lots{width:32%;min-width:170px}.reference-production .ref-lot-box{gap:3px;min-height:28px;padding:2px}.reference-production .ref-lot-chip{padding:1px 4px;line-height:1.4}.reference-production .ref-lot-chip button{min-height:18px}.reference-production[data-reference-mode=consultation] .ref-composition td{padding-top:5px;padding-bottom:5px}@media (max-width:650px){.reference-production .ref-composition{min-width:600px}.reference-production .ref-composition td{padding-top:5px;padding-bottom:5px}.reference-production .ref-composition .ref-quantity input{height:36px;min-height:36px}.reference-production .ref-lot-box,.reference-production .ref-lots>button{min-height:32px}.reference-production .ref-lot-chip button{min-width:20px;min-height:24px}}.ref-plan-heading{flex-wrap:wrap;justify-content:space-between;align-items:start;gap:12px;display:flex}.ref-plan-heading p{color:var(--muted);flex:240px;font-size:12px}.ref-plan-heading>div{flex-wrap:wrap;gap:8px;display:flex}.ref-plan-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:8px;margin:12px 0 0;padding:0;list-style:none;display:grid}.ref-plan-list li{border:1px solid var(--line);overflow-wrap:anywhere;border-radius:4px;flex-direction:column;gap:4px;min-width:0;padding:10px;display:flex}.ref-plan-list :is(span,small){color:var(--muted);font-size:12px}.reference-production .ref-appcc-decision{border:1px solid var(--line,#ccd8d2);background:var(--paper,#fff);border-radius:8px;margin-top:16px;padding:12px}.reference-production .ref-appcc-decision summary{cursor:pointer;font-weight:600;line-height:1.5}.reference-production [data-ref-appcc]{gap:12px;margin-top:12px;display:grid}.reference-production [data-ref-appcc] label{gap:6px;display:grid}.reference-production [data-ref-appcc] textarea{box-sizing:border-box;resize:vertical;width:100%;min-height:88px}.reference-production [data-ref-appcc] button{white-space:normal;justify-self:start;min-height:42px}[data-appcc-controls]{border:0;min-width:0;margin:0;padding:0}[data-appcc-controls][hidden]{display:none!important}.production-label-packaging{grid-column:1/-1;gap:12px;min-width:0;display:grid}.production-label-packaging+.event-workspace-fields{grid-column:1/-1}.production-label-packaging .event-workspace-fields,[data-ref-labels]>.event-workspace-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.production-label-packaging label{min-width:0}.production-label-packaging [data-label-calibration][hidden]{display:none!important}.production-label-packaging [data-label-summary]{border:1px solid var(--line);background:var(--surface-soft,#eef4f1);overflow-wrap:anywhere;border-radius:6px;padding:10px 12px;font-size:13px;line-height:1.5}.production-label-packaging small{color:var(--muted);font-size:12px;line-height:1.5}.ref-dialog:has([data-ref-labels]) footer{border-top:1px solid var(--line);z-index:1;background:#fff;padding:12px 0 0;position:sticky;bottom:0}.production-label-packaging input[readonly]{background:var(--surface-soft,#eef4f1)}.ref-pasteurization{gap:16px;display:grid}.ref-pasteurization p{margin:4px 0}.ref-process-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.ref-pasteurization fieldset{border:0;min-width:0;margin:0;padding:0}.ref-process-fields label,.ref-pasteurization form>fieldset>label:not(.ref-inline){gap:6px;min-width:0;display:grid}.ref-process-fields input,.ref-process-fields select{width:100%;min-width:0}.ref-process-result{border:1px solid var(--line);border-left:3px solid var(--brand-primary);background:var(--bg-subtle,#f5f8f6);border-radius:6px;padding:12px 14px}.ref-process-result[data-status=limits_not_met],.ref-process-result[data-status=expired]{border-left-color:var(--danger,#a33131);background:#fcf2ee}.ref-process-result[data-status=validation_required]{background:#fbf7ef;border-left-color:#9c7536}.ref-process-summary{flex-wrap:wrap;gap:24px;margin:0;display:flex}.ref-process-summary dt{color:var(--muted);font-size:11px}.ref-process-summary dd{margin:3px 0;font-weight:600}.ref-process-issues{margin:0;padding-left:20px;font-size:12px}.ref-pasteurization textarea{min-height:72px;margin-bottom:12px}.ref-pasteurization input[type=datetime-local]{min-height:40px}.ref-process-help{border-top:1px solid var(--line);padding-top:12px;font-size:12px}.ref-process-help summary{cursor:pointer;font-weight:600}.ref-process-help a{color:var(--brand-primary);text-decoration:underline}.ref-pasteurization fieldset:disabled{opacity:.7}.ref-process-shortcut{white-space:nowrap}@media (max-width:650px){.ref-process-fields{grid-template-columns:minmax(0,1fr)}.ref-pasteurization .ref-inline{align-items:start}.ref-pasteurization button[type=submit]{width:100%;min-height:44px}}.ref-production-meta>.ref-expiry,.ref-production-meta>.ref-thermal-milestone{box-sizing:border-box;grid-column:1/-1;width:100%;min-width:0;max-width:380px}.ref-expiry{border-top:1px solid var(--line);gap:7px;margin-top:4px;padding-top:10px;display:grid}.ref-expiry>label{display:grid;justify-content:stretch!important;gap:5px!important}.ref-expiry input[type=date]{width:100%!important}.ref-expiry-presets{gap:6px;display:flex}.ref-expiry-presets button{flex:1;min-height:32px;padding:5px 8px;font-size:12px}.ref-expiry-duration{grid-template-columns:64px minmax(0,1fr) auto;gap:6px;display:grid}.ref-expiry-duration input,.ref-expiry-duration select{min-width:0;width:100%!important}.ref-expiry small,.ref-thermal-milestone small{color:var(--muted,#607272);font-size:11px;line-height:1.5}.ref-thermal-milestone{border:1px solid var(--line);background:#fff;border-radius:8px;margin:0 0 10px;padding:12px}.ref-thermal-milestone header{justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.ref-thermal-status{color:#755722;white-space:nowrap;background:#f4eee2;border-radius:5px;padding:3px 6px;font-size:10px}.ref-thermal-status[data-checked=true]{background:var(--green-badge,#e8f0ea);color:var(--brand-primary,#264b40)}.ref-thermal-reference{background:var(--bg-subtle,#f5f8f6);border-radius:5px;margin-bottom:10px;padding:8px}.ref-thermal-reference p{margin:3px 0;font-size:12px}.ref-thermal-milestone fieldset{border:0;min-width:0;margin:0;padding:0}.ref-thermal-milestone form label:not(.ref-inline){justify-content:stretch;gap:5px;display:grid}.ref-thermal-milestone form input:not([type=checkbox]),.ref-thermal-milestone select{min-width:0;width:100%!important}.ref-thermal-values{grid-template-columns:1fr 1fr;gap:8px;margin-top:10px;display:grid}.ref-thermal-milestone .ref-inline{justify-content:start;align-items:start;margin:10px 0;font-size:12px}.ref-thermal-milestone button[type=submit]{width:100%}.ref-thermal-milestone>small{margin-top:8px;display:block}@media (max-width:650px){.ref-production-meta>.ref-expiry,.ref-production-meta>.ref-thermal-milestone{max-width:none}.ref-expiry button,.ref-thermal-milestone button,.ref-thermal-milestone input,.ref-expiry-duration input,.ref-expiry-duration select{min-height:40px}.ref-thermal-milestone input[type=checkbox]{min-height:20px}.ref-expiry-duration{grid-template-columns:64px minmax(0,1fr) auto}}.reference-production .ref-output{align-content:start;gap:10px}.reference-production .ref-output>.ref-thermal-milestone{box-sizing:border-box;text-align:left;width:100%;max-width:420px;margin-top:12px;font-size:12px;font-weight:400}.reference-production .ref-thermal-milestone label.ref-inline{gap:8px;justify-content:flex-start!important;align-items:center!important;display:flex!important}.reference-production .ref-thermal-milestone input[type=checkbox]{flex:0 0 20px;width:20px!important;height:20px!important;min-height:20px!important}.reference-production .ref-thermal-milestone header strong{font-size:13px}.ref-thermal-reference-actions{flex-wrap:wrap;gap:6px;margin-top:6px;display:flex}.ref-thermal-reference-actions button{min-height:30px;padding:4px 6px;font-size:11px}.ref-critical-controls{gap:16px;display:grid}.ref-critical-point{border:1px solid var(--line);background:var(--surface,#fff);border-radius:8px;min-width:0;padding:16px}.ref-critical-point header{justify-content:space-between;align-items:center;gap:12px;display:flex}.ref-critical-point h3{margin:0;font-size:14px}.ref-critical-point p{font-size:12px;line-height:1.5}.ref-critical-status{color:#66522d;background:#f1eee6;border-radius:5px;flex:none;padding:4px 8px;font-size:11px}.ref-critical-status[data-status=conforming]{color:#234d3b;background:#e6f0e9}.ref-critical-status[data-status=nonconforming]{color:#9a3333;background:#fbe9e7}.ref-critical-point fieldset{border:0;gap:12px;min-width:0;padding:0;display:grid}.ref-critical-point .ref-process-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.ref-critical-point label{gap:6px;min-width:0;font-size:12px;display:grid}.ref-critical-point input{box-sizing:border-box;border:1px solid var(--line);width:100%;min-width:0;min-height:40px;font:inherit;border-radius:5px;padding:8px}.ref-critical-point button{margin:4px 6px 4px 0}.ref-critical-limit{flex-wrap:wrap;gap:6px 16px;display:flex}.production-thermal-editor{border:1px solid var(--line);border-radius:8px;margin-bottom:20px;padding:16px}.production-thermal-editor .final-check input{flex:none;width:20px}.production-thermal-editor>p{font-size:13px}@media (max-width:650px){.ref-critical-point{padding:12px}.ref-critical-point .ref-process-fields{grid-template-columns:1fr}.ref-critical-point header{align-items:flex-start}.ref-critical-point h3{font-size:13px}.ref-critical-point input{max-width:100%}}.reference-production .ref-thermal-simple{font-size:12px}.ref-thermal-simple fieldset{border:0;gap:14px;min-width:0;margin:0;padding:0;display:grid}.ref-thermal-simple .ref-confirm-check{cursor:pointer;align-items:flex-start;gap:10px;line-height:1.5;display:flex!important}.reference-production .ref-thermal-simple .ref-confirm-check input[type=checkbox]{flex:0 0 20px;margin:1px 0 0;padding:0;width:20px!important;min-width:20px!important;height:20px!important;min-height:20px!important}.ref-confirm-check span{min-width:0}.ref-thermal-simple .ref-thermal-reference{line-height:1.5}.ref-critical-summary{gap:8px}.ref-critical-summary>p{justify-content:space-between;align-items:center;gap:10px;margin:0;font-size:13px;display:flex}.ref-critical-summary button{justify-self:start;margin-top:4px}.ref-thermal-simple .detail-note{margin:14px 0 0;font-size:11px}.ref-thermal-simple .ref-thermal-reference small{margin-bottom:5px;display:block}.reference-production .ref-thermal-simple input[type=checkbox]:checked:disabled{opacity:1;background:var(--brand-primary)!important;border-color:var(--brand-primary)!important}.ref-thermal-simple fieldset:disabled .ref-confirm-check{cursor:default}.production-costing{border:1px solid var(--line);background:var(--surface,#fff);border-radius:12px;min-width:0;margin:0 0 24px;padding:22px 24px}.production-costing>header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;display:flex}.production-costing>header small{letter-spacing:.09em;text-transform:uppercase;color:var(--text-muted);font-size:10px}.production-costing h3{color:var(--brand-primary);margin:4px 0 0;font-size:18px}.production-cost-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}.production-cost-metrics>div{align-content:start;gap:6px;min-width:0;display:grid}.production-cost-metrics small{color:var(--text-muted);font-size:11px;line-height:1.45}.production-cost-metrics strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-size:20px;line-height:1.3}.production-cost-metrics>div:first-child strong{color:var(--brand-primary);font-size:25px}.production-cost-notice{background:var(--bg-subtle,#f5f5f4);border-left:3px solid #b79b64;margin:16px 0 8px;padding:10px 12px;font-size:12px;line-height:1.5}.production-costing>.detail-note{margin-top:12px;font-size:11px;line-height:1.55}.production-cost-breakdown{border-top:1px solid var(--line);margin-top:16px;padding-top:12px}.production-cost-breakdown>summary{cursor:pointer;font-size:12px;font-weight:600}.production-cost-row{border-top:1px solid var(--line);min-width:0;padding:14px 0}.production-cost-row-head{justify-content:space-between;align-items:center;gap:16px;font-size:13px;display:flex}.production-cost-row-head strong{font-weight:600}.production-cost-row-head small{color:var(--text-muted);margin-top:4px;font-size:11px;line-height:1.4;display:block}.production-cost-mode{flex-shrink:0;width:200px}.production-cost-mode select{width:100%}.production-cost-entry{margin-top:14px}.production-cost-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.production-costing label{gap:6px;min-width:0;font-size:12px;display:grid}.production-costing label input,.production-costing label select{width:100%}.production-cost-entry>label{margin-top:12px}.production-cost-entry>small{color:var(--text-muted);margin-top:10px;font-size:11px;line-height:1.5;display:block}.production-cost-entry>p{color:var(--brand-primary);margin:10px 0 0;font-size:13px;font-weight:600}.production-costing fieldset{border:0;min-width:0;padding:0}.production-costing form{margin-top:20px}.production-costing .production-cost-notes textarea{min-height:64px}.production-costing .production-cost-remember{align-items:start;gap:9px;margin:18px 0;font-size:12px;line-height:1.5;display:flex}.production-costing .production-cost-remember input{flex-shrink:0;width:20px}.production-costing footer{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding-top:16px;display:flex}.production-costing footer p{color:var(--text-muted);max-width:65%;margin:0;font-size:11px;line-height:1.5}.production-costing footer button{flex-shrink:0}.production-cost-error{color:#973d3d;background:#fcf2ee;border-radius:6px;padding:12px;font-size:12px}.production-cost-row-head>span{font-variant-numeric:tabular-nums}.production-cost-breakdown .production-cost-row:first-of-type{border-top:0}@media (max-width:900px){.production-cost-metrics,.production-cost-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:650px){.production-costing{margin-bottom:16px;padding:16px}.production-costing>header{flex-wrap:wrap;align-items:start}.production-costing h3{font-size:17px}.production-costing>header button{min-height:40px}.production-cost-metrics{gap:18px 12px}.production-cost-metrics strong{font-size:19px}.production-cost-metrics>div:first-child strong{font-size:23px}.production-cost-row-head{flex-wrap:wrap;align-items:start;gap:10px}.production-cost-mode{width:100%}.production-cost-fields{grid-template-columns:1fr}.production-costing input:not([type=checkbox]),.production-costing select{min-height:42px}.production-costing footer{flex-direction:column;align-items:stretch}.production-costing footer p{max-width:100%}.production-costing footer button{min-height:44px}}.production-cost-entry>summary{cursor:pointer;color:var(--brand-primary);justify-content:space-between;gap:12px;padding:5px 0;font-size:12px;display:flex}.production-cost-entry[open]>summary{margin-bottom:12px}.production-cost-entry>summary span{font-variant-numeric:tabular-nums;font-weight:600}.ref-economics>summary{cursor:pointer;color:var(--brand-primary);font-size:13px;font-weight:600}.ref-economics[open]>summary{margin-bottom:18px}
}

@layer lab-legacy {
.purchase-workflow-summary,.purchase-workflow-document,.purchase-workflow-line,.purchase-workflow-upload{border:1px solid var(--line);border-radius:var(--radius-card);background:var(--paper);padding:var(--space-4);margin:var(--space-4) 0;min-width:0}.purchase-workflow-summary p,.purchase-workflow-line header span{color:var(--text-muted);line-height:1.5}.purchase-workflow-history{border-top:1px solid var(--line);margin-top:var(--space-3)}.purchase-workflow-actions{gap:var(--space-2);margin-top:var(--space-3);flex-wrap:wrap;display:flex}.purchase-workflow-form{padding:var(--space-5);min-height:0;overflow-y:auto}.purchase-workflow-grid{gap:var(--space-3);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.purchase-workflow-form label{gap:var(--space-2);min-width:0;margin:var(--space-2) 0;font-weight:600;font-size:var(--font-meta);display:grid}.purchase-workflow-form :is(input:not([type=checkbox]),select,textarea){width:100%;min-width:0;min-height:var(--control-height);box-sizing:border-box;border:1px solid var(--line);border-radius:var(--radius-button);background:var(--paper);color:var(--text);font:inherit;padding:10px}.purchase-workflow-form button{min-height:var(--touch-target);white-space:normal;padding:10px 16px}.purchase-workflow-line h3{margin:0 0 var(--space-2);font-size:var(--font-body)}.purchase-workflow-line header span{font-size:var(--font-meta);display:block}.purchase-workflow-incidents{border:1px solid var(--line);border-left:4px solid var(--danger);border-radius:var(--radius-card);padding:var(--space-3);margin:var(--space-3) 0;background:var(--paper)}.purchase-workflow-check{align-items:flex-start;display:flex!important}.purchase-workflow-check input{flex:none;margin-top:3px}.purchase-workflow-ok{color:var(--brand-primary);padding:var(--space-3)}.purchase-workflow-modal{flex-direction:column;width:min(960px,100vw - 32px);max-height:calc(100dvh - 32px);display:flex}.purchase-workflow-upload{gap:var(--space-2);grid-template-columns:repeat(2,minmax(0,1fr));display:block}.purchase-workflow-upload>:is(summary,strong,p,button){grid-column:1/-1}@media (max-width:620px){.purchase-workflow-grid,.purchase-workflow-upload{grid-template-columns:minmax(0,1fr)}.purchase-workflow-form{padding:var(--space-3)}.purchase-workflow-modal{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.purchase-workflow-actions button{flex:180px}}.purchase-workflow-upload summary{cursor:pointer;padding:var(--space-2) 0}.purchase-workflow-form button,.purchase-workflow-summary button{min-height:var(--touch-target);border:1px solid var(--line);border-radius:var(--radius-button);background:var(--paper);color:var(--brand-primary);padding:10px 16px;font-weight:600}.purchase-workflow-form button[type=submit],.purchase-workflow-form [data-action=purchase-invoice-inbox-sync]{background:var(--brand-primary);color:#fff}.purchase-workflow-form button:disabled{opacity:.45;cursor:not-allowed}.purchase-workflow-form :is(button,input,select,summary):focus-visible{outline:2px solid var(--brand-primary);outline-offset:3px}.purchase-workflow-form :is(h3,p,strong,summary),.purchase-workflow-summary :is(p,strong){overflow-wrap:anywhere}.purchase-workflow-modal:has(.purchase-reception-form){width:min(1200px,100vw - 32px)}.purchase-reception-form{flex-direction:column;flex:1;padding:0;display:flex;overflow:hidden}.purchase-reception-scroll{min-height:0;padding:var(--space-5);flex:1;overflow-y:auto}.purchase-reception-scroll>.detail-note{margin:0 0 var(--space-3)}.purchase-reception-metadata{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,.8fr) minmax(0,.65fr)}.purchase-reception-form .purchase-workflow-upload{margin:var(--space-3) 0;padding:var(--space-2) var(--space-3);background:var(--surface-soft,var(--paper))}.purchase-reception-list-heading{justify-content:space-between;gap:var(--space-3);margin:var(--space-4) 0 var(--space-2);font-size:var(--font-meta);align-items:center;display:flex}.purchase-reception-list-heading>span{color:var(--text-muted)}.purchase-reception-lines{border:1px solid var(--line);border-radius:var(--radius-card);background:var(--paper);overflow:hidden}.purchase-reception-line{border:0;border-bottom:1px solid var(--line);padding:var(--space-3) var(--space-4);border-radius:0;margin:0;position:relative}.purchase-reception-line:last-child{border-bottom:0}.purchase-reception-line:focus-within{background:var(--surface-soft,#f6f8f7)}.purchase-reception-row{gap:var(--space-3);grid-template-columns:minmax(180px,1fr) 110px 120px 140px;align-items:center;padding-right:90px;display:grid}.purchase-reception-row header h3{font-size:var(--font-body);margin:0 0 4px;line-height:1.4}.purchase-reception-line header span{font-size:11px;line-height:1.5}.purchase-reception-line header span strong{color:var(--brand-primary)}.purchase-reception-row>label{gap:6px;margin:0}.purchase-reception-form button.purchase-reception-fill{text-underline-offset:3px;min-height:28px;font-size:var(--font-meta);background:0 0;border:0;margin-top:2px;padding:3px 0;text-decoration:underline;display:inline-flex}.purchase-reception-details>summary{top:36px;right:var(--space-4);cursor:pointer;color:var(--brand-primary);min-height:36px;font-size:var(--font-meta);padding:8px 0;font-weight:600;position:absolute}.purchase-reception-details[open]>summary{text-underline-offset:3px;text-decoration:underline}.purchase-reception-extra{border-top:1px dashed var(--line);margin-top:var(--space-3);padding-top:var(--space-2);grid-template-columns:repeat(3,minmax(0,1fr))}.purchase-reception-footer{border-top:1px solid var(--line);padding:var(--space-3) var(--space-5);background:var(--paper);flex:none;box-shadow:0 -4px 14px #1d322d0a}.purchase-reception-footer .purchase-workflow-actions{justify-content:flex-end;margin:0}.purchase-reception-footer .detail-note{margin:var(--space-2) 0 0;text-align:right;font-size:11px}.purchase-reception-empty{color:var(--text-muted);padding:var(--space-4);margin:0}@media (max-width:900px){.purchase-reception-row{gap:var(--space-2);grid-template-columns:minmax(160px,1fr) 92px 100px 112px;padding-right:76px}.purchase-reception-line{padding:var(--space-3)}.purchase-reception-details>summary{right:var(--space-3)}}@media (max-width:620px){.purchase-workflow-modal:has(.purchase-reception-form){width:calc(100vw - 16px)}.purchase-reception-scroll{padding:var(--space-3)}.purchase-reception-metadata{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-reception-metadata>label:first-child{grid-column:1/-1}.purchase-reception-row{gap:var(--space-3);grid-template-columns:repeat(2,minmax(0,1fr));padding-right:0}.purchase-reception-row header,.purchase-reception-row>label:last-child{grid-column:1/-1}.purchase-reception-details>summary{margin-top:var(--space-2);min-height:44px;padding:12px 0;display:list-item;position:static}.purchase-reception-extra{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:0}.purchase-reception-extra>label:last-child{grid-column:1/-1}.purchase-reception-list-heading{flex-direction:column;align-items:flex-start;gap:4px}.purchase-reception-footer{padding:var(--space-3)}.purchase-reception-footer .purchase-workflow-actions{gap:var(--space-2)}.purchase-reception-footer .purchase-workflow-actions button{font-size:var(--font-meta);flex:1 1 0;padding:8px}.purchase-reception-footer .detail-note{text-align:left}}.purchase-operational-page{padding:var(--space-5);max-width:1600px;margin:auto}.purchase-operational-page .purchase-detail-head{align-items:center;gap:var(--space-4);padding:var(--space-3) 0 var(--space-5);border:0;margin:0}.purchase-order-identity{align-items:center;gap:var(--space-4);flex:1;min-width:0;display:flex}.purchase-order-identity>div{min-width:0}.purchase-order-symbol{width:52px;height:52px;color:var(--paper);background:var(--brand-primary);border-radius:var(--radius-card);flex:none;place-items:center;display:grid}.purchase-order-symbol svg{width:24px;height:24px}.purchase-order-eyebrow,.purchase-workflow-eyebrow{color:var(--text-muted);letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px;font-size:10px;font-weight:650;display:block}.purchase-operational-page .purchase-detail-head h2{overflow-wrap:anywhere;color:var(--brand-primary-dark);margin:0 0 6px;font-size:28px;line-height:1.2}.purchase-order-overview{gap:var(--space-5);align-items:center;display:flex}.purchase-order-overview>div{border-left:1px solid var(--line);padding-left:var(--space-5);text-align:right;gap:5px;display:grid}.purchase-order-overview>div>span{font-size:var(--font-meta);color:var(--text-muted)}.purchase-order-overview>div>strong{font-variant-numeric:tabular-nums;color:var(--brand-primary);font-size:24px}.purchase-order-state{background:var(--bg-soft);color:var(--brand-primary);border-radius:var(--radius-button);font-size:var(--font-meta);padding:7px 11px;font-weight:650}.purchase-operational-page .purchase-workflow-summary{align-items:center;gap:var(--space-4);margin:0 0 var(--space-5);padding:var(--space-4) var(--space-5);box-shadow:var(--shadow-card);border-left:3px solid var(--brand-primary);grid-template-columns:minmax(0,1fr) auto;display:grid}.purchase-operational-page .purchase-workflow-summary>div:first-child>strong{color:var(--brand-primary);font-size:16px}.purchase-operational-page .purchase-workflow-summary p{font-size:var(--font-meta);margin:6px 0 0}.purchase-operational-page .purchase-workflow-actions{margin:0}.purchase-operational-page .purchase-workflow-summary [data-stage=reception]{background:var(--brand-primary);color:var(--paper)}.purchase-operational-page .purchase-workflow-history{padding-top:var(--space-3);grid-column:1/-1;margin:0}.purchase-operational-page .purchase-order-card{background:var(--paper);border-radius:var(--radius-card);box-shadow:var(--shadow-card)}.purchase-operational-page .purchase-order-card>header{min-height:60px;padding:var(--space-3) var(--space-5)}.purchase-operational-page .purchase-order-card>header strong{color:var(--brand-primary);font-size:16px}.purchase-operational-page .round-count{background:var(--bg-soft);width:28px;height:28px;color:var(--brand-primary);font-size:var(--font-meta)}.purchase-operational-page .purchase-order-filters{gap:var(--space-3);padding:var(--space-4) var(--space-5);background:var(--bg-subtle);grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto auto}.purchase-operational-page .purchase-order-filters :is(input,select){height:var(--touch-target);border-radius:var(--radius-button);padding:0 var(--space-3);background:var(--paper);font-size:var(--font-meta)}.purchase-operational-page .purchase-add-product{align-items:center;gap:var(--space-2);padding:0 var(--space-4);min-height:var(--touch-target);border-radius:var(--radius-button);color:var(--brand-primary);font-size:var(--font-meta);white-space:nowrap;font-weight:650;display:flex}.purchase-operational-page .purchase-order-total{display:none}.purchase-operational-page .purchase-supplier-block{margin:var(--space-5);background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-card);box-shadow:var(--shadow-card)}.purchase-operational-page .purchase-supplier-block+.purchase-supplier-block{margin-top:var(--space-6)}.purchase-operational-page .purchase-supplier-block>header{min-height:88px;padding:var(--space-4) var(--space-5);background:var(--brand-primary);color:var(--paper);border-radius:calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0}.purchase-operational-page .purchase-supplier-title{gap:var(--space-3);min-width:0;color:inherit;flex-wrap:nowrap}.purchase-supplier-symbol{border:1px solid color-mix(in srgb,var(--paper) 25%,transparent);background:color-mix(in srgb,var(--paper) 10%,transparent);border-radius:var(--radius-button);flex:none;place-items:center;width:42px;height:42px;display:grid}.purchase-supplier-symbol svg{width:22px;height:22px}.purchase-supplier-identity{min-width:0}.purchase-supplier-eyebrow{color:color-mix(in srgb,var(--paper) 80%,transparent);letter-spacing:.09em;text-transform:uppercase;margin-bottom:5px;font-size:10px;font-weight:600;display:block}.purchase-supplier-identity h3{color:inherit;overflow-wrap:anywhere;margin:0;font-size:18px;font-weight:650;line-height:1.3}.purchase-operational-page .purchase-supplier-meta{gap:var(--space-3);flex:none}.purchase-supplier-amount{text-align:right;min-width:100px;padding:0 var(--space-3);border-left:1px solid color-mix(in srgb,var(--paper) 25%,transparent);gap:4px;display:grid}.purchase-supplier-amount>span{color:color-mix(in srgb,var(--paper) 80%,transparent);font-size:10px}.purchase-supplier-amount>strong{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:20px;line-height:1.2}.purchase-operational-page .purchase-supplier-meta>.icon-button{color:var(--paper);border:1px solid color-mix(in srgb,var(--paper) 25%,transparent);border-radius:var(--radius-button);background:0 0;min-width:36px;min-height:36px}.purchase-operational-page .purchase-supplier-meta>.icon-button:hover{background:color-mix(in srgb,var(--paper) 12%,transparent)}.purchase-operational-page .purchase-supplier-meta .purchase-detail-menu{top:calc(100% + var(--space-2))}.purchase-supplier-collapse[aria-expanded=false] svg{transform:rotate(-90deg)}.purchase-operational-page .purchase-supplier-state{background:var(--bg-subtle);padding:var(--space-3) var(--space-5);gap:var(--space-3);border-bottom:1px solid var(--line-soft);color:var(--text-muted);align-items:center}.purchase-operational-page .purchase-supplier-state>strong{background:var(--paper);border:1px solid var(--line-soft);border-radius:var(--radius-button);padding:4px 8px;font-weight:500;display:inline-block}.purchase-supplier-line-count{font-size:var(--font-meta);margin-left:auto}.purchase-operational-page .purchase-lines-scroll{border-radius:0 0 var(--radius-card) var(--radius-card);overflow-x:auto}.purchase-operational-page .purchase-lines-table{background:var(--paper);table-layout:fixed;min-width:850px}.purchase-operational-page .purchase-lines-table th{text-align:left;height:38px;padding:var(--space-2);background:var(--paper);color:var(--text-muted);font-size:10px;font-weight:600}.purchase-operational-page .purchase-lines-table th:first-child{width:32px}.purchase-operational-page .purchase-lines-table th:nth-child(2){width:90px}.purchase-operational-page .purchase-lines-table th:nth-child(4){width:100px}.purchase-operational-page .purchase-lines-table th:nth-child(5){width:150px}.purchase-operational-page .purchase-lines-table th:nth-child(6){width:70px}.purchase-operational-page .purchase-lines-table th:nth-child(7){width:64px}.purchase-operational-page .purchase-lines-table th:nth-child(8){width:110px}.purchase-operational-page .purchase-lines-table th:nth-child(9){width:48px}.purchase-operational-page .purchase-lines-table td{overflow-wrap:anywhere;padding:var(--space-4) var(--space-2);border-color:var(--line-soft);vertical-align:middle}.purchase-operational-page .purchase-lines-table tr:last-child td{border-bottom:0}.purchase-operational-page .purchase-lines-table tbody tr:hover{background:var(--bg-subtle)}.purchase-operational-page .purchase-lines-table :is(td,th):nth-child(8){text-align:right;font-variant-numeric:tabular-nums}.purchase-operational-page .purchase-line-product{color:var(--brand-primary-dark);line-height:1.5;font-size:var(--font-meta)}.purchase-operational-page .purchase-lines-table small{color:var(--text-muted);font-size:11px;line-height:1.5}.purchase-operational-page .purchase-lines-table .purchase-line-reference{color:var(--brand-primary);margin-top:5px}.purchase-line-reference strong{font-weight:650}.purchase-operational-page .purchase-empty-lines{padding:var(--space-6);background:var(--paper);font-size:var(--font-body);color:var(--text-muted);text-align:center}.purchase-operational-page :is(button,input,.purchase-lines-scroll):focus-visible{outline:2px solid var(--brand-primary);outline-offset:3px}.purchase-operational-page .purchase-detail-menu{max-width:calc(100vw - 48px)}@media (max-width:1100px){.purchase-order-overview{gap:var(--space-3)}.purchase-order-overview>div{padding-left:var(--space-3)}.purchase-operational-page .purchase-workflow-summary{grid-template-columns:1fr}}@media (max-width:700px){.purchase-operational-page{padding:var(--space-3)}.purchase-operational-page .purchase-detail-head{padding:var(--space-3) 0 var(--space-4);flex-wrap:wrap;align-items:flex-start}.purchase-order-identity{flex:calc(100% - 60px)}.purchase-order-symbol{width:44px;height:44px}.purchase-order-overview{order:3;justify-content:space-between;width:100%}.purchase-order-overview>div{border:0}.purchase-operational-page .purchase-workflow-summary{padding:var(--space-4);gap:var(--space-3)}.purchase-operational-page .purchase-workflow-actions button{flex:130px}.purchase-operational-page .purchase-order-card>header{padding:var(--space-3) var(--space-4)}.purchase-operational-page .purchase-order-filters{padding:var(--space-3) var(--space-4);grid-template-columns:1fr}.purchase-operational-page .purchase-add-product{justify-content:center}.purchase-operational-page .purchase-supplier-block{margin:var(--space-3)}.purchase-operational-page .purchase-supplier-block+.purchase-supplier-block{margin-top:var(--space-5)}.purchase-operational-page .purchase-supplier-block>header{gap:var(--space-4);padding:var(--space-4);flex-wrap:wrap;align-items:flex-start}.purchase-operational-page .purchase-supplier-title{flex-basis:100%;align-items:flex-start;padding-right:48px}.purchase-supplier-identity h3{font-size:17px}.purchase-operational-page .purchase-supplier-meta .purchase-detail-menu{right:var(--space-4);max-width:calc(100% - 32px)}.purchase-operational-page .purchase-supplier-meta{justify-content:flex-start;gap:var(--space-2);flex-wrap:nowrap;width:100%;max-width:none;position:static}.purchase-supplier-amount{min-width:0;padding:0 var(--space-2);margin-left:auto}.purchase-supplier-amount>strong{font-size:18px}.purchase-operational-page .purchase-supplier-meta>.icon-button{min-width:44px;min-height:44px}.purchase-operational-page .purchase-supplier-collapse{top:var(--space-4);right:var(--space-4);position:absolute}.purchase-supplier-amount>span{white-space:nowrap}.purchase-operational-page .purchase-supplier-add{min-height:36px;padding:8px;font-size:11px}.purchase-operational-page .purchase-supplier-title{flex:1;min-width:0}.purchase-operational-page .purchase-supplier-title strong{overflow-wrap:anywhere}.purchase-operational-page .purchase-supplier-state{padding:var(--space-3) var(--space-4)}.purchase-operational-page .purchase-lines-table{min-width:0;display:block}.purchase-operational-page .purchase-lines-table thead{display:none}.purchase-operational-page .purchase-lines-table tbody{display:block}.purchase-operational-page .purchase-lines-table tr{padding:var(--space-4);gap:var(--space-3);border-bottom:1px solid var(--line-soft);grid-template-columns:1fr 1fr;display:grid;position:relative}.purchase-operational-page .purchase-lines-table tr:last-child{border:0}.purchase-operational-page .purchase-lines-table td{min-width:0;height:auto;min-height:0;font-size:var(--font-meta);overflow-wrap:anywhere;border:0;padding:0;display:block}.purchase-operational-page .purchase-lines-table td[data-label]:before{content:attr(data-label);color:var(--text-muted);margin-bottom:4px;font-size:10px;display:block}.purchase-operational-page .purchase-lines-table td:nth-child(3){grid-area:1/1/auto/-1;padding-right:26px}.purchase-operational-page .purchase-lines-table td:nth-child(3):before{display:none}.purchase-operational-page .purchase-lines-table td:first-child{top:var(--space-4);right:var(--space-4);position:absolute}.purchase-operational-page .purchase-lines-table td:last-child{justify-self:end}.purchase-operational-page .purchase-lines-table td:nth-child(8){text-align:left}.purchase-operational-page .purchase-lines-table td.purchase-empty-cell{text-align:center;width:auto;padding:var(--space-4);grid-column:1/-1;position:static}}.purchase-operational-page .purchase-lines-table td.purchase-empty-cell{color:var(--text-muted);background:var(--paper);line-height:1.6}.purchase-supplier-add{border:1px solid var(--line);border-radius:var(--radius-button);font-size:var(--font-meta);background:var(--paper);color:var(--brand-primary);align-items:center;gap:6px;padding:7px 10px;display:inline-flex}.purchase-supplier-add svg{width:14px;height:14px}@media (max-width:700px){.purchase-supplier-add span{white-space:normal}}.purchase-operational-page .purchase-order-filters label{min-width:0}.purchase-operational-page .purchase-order-filters select{width:100%;min-width:0}@media (min-width:701px) and (max-width:1200px){.purchase-operational-page .purchase-order-filters{grid-template-columns:1fr 1fr}}.purchase-delivery-schedule{margin:var(--space-4) 0;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface-soft,var(--paper));padding:var(--space-4)}.purchase-delivery-schedule h3{margin:0 0 var(--space-2)}.purchase-delivery-row{justify-content:space-between;align-items:center;gap:var(--space-3);padding:var(--space-3) 0;border-top:1px solid var(--line);display:flex}.purchase-delivery-row>div{min-width:0}.purchase-delivery-row>div:last-child{text-align:right;flex-shrink:0}.purchase-delivery-row strong,.purchase-delivery-row span{overflow-wrap:anywhere;display:block}.purchase-delivery-row strong{font-size:var(--font-body);color:var(--brand-primary)}.purchase-delivery-row span{font-size:var(--font-meta);color:var(--text-muted);margin-top:4px}@media (max-width:620px){.purchase-delivery-schedule{padding:var(--space-3)}.purchase-delivery-row{align-items:flex-start;gap:var(--space-2);flex-direction:column}.purchase-delivery-row>div:last-child{text-align:left}}.purchase-reception-intro{justify-content:space-between;align-items:center;gap:var(--space-4);padding:var(--space-4);margin-bottom:var(--space-4);border-radius:var(--radius-card);background:var(--brand-primary);color:var(--paper);display:flex}.purchase-reception-intro h3{margin:0;font-size:20px;line-height:1.3}.purchase-reception-intro p{font-size:var(--font-meta);margin:6px 0 0;line-height:1.5}.purchase-reception-intro .purchase-workflow-eyebrow{color:inherit;opacity:.8}.purchase-reception-count{border-radius:var(--radius-button);font-size:var(--font-meta);border:1px solid #ffffff40;flex:none;padding:8px 12px}.purchase-reception-metadata{margin-bottom:var(--space-4)}.purchase-reception-attachment{border:1px solid var(--line);border-radius:var(--radius-card);padding:var(--space-4);background:var(--bg-soft,var(--paper))}.purchase-reception-attachment-head{justify-content:space-between;align-items:center;gap:var(--space-3);display:flex}.purchase-reception-attachment-head h3{font-size:var(--font-body);margin:0}.purchase-reception-attachment-head h3 span{color:var(--text-muted);margin-left:8px;font-size:11px;font-weight:400}.purchase-reception-attachment-head p{font-size:var(--font-meta);color:var(--text-muted);margin:6px 0 0}.purchase-reception-attachment-actions{align-items:center;gap:var(--space-2);margin-top:var(--space-3);flex-wrap:wrap;display:flex}.purchase-reception-attachment-actions button{justify-content:center;align-items:center;gap:8px;display:inline-flex}.purchase-reception-attachment-actions svg{width:18px;height:18px}.purchase-reception-file-status{font-size:var(--font-meta);color:var(--text-muted);overflow-wrap:anywhere;margin-left:var(--space-2);flex:220px}.purchase-reception-form input[hidden],.purchase-receipt-camera[hidden],.purchase-receipt-camera button[hidden]{display:none}.purchase-receipt-camera{margin-top:var(--space-4);border-top:1px solid var(--line);padding-top:var(--space-3)}.purchase-receipt-camera-controls{justify-content:space-between;align-items:center;gap:var(--space-3);display:flex}.purchase-receipt-camera-controls label{flex:1;max-width:400px}.purchase-receipt-camera video{background:var(--brand-primary);border-radius:var(--radius-card);object-fit:contain;width:100%;max-height:340px;display:block}.purchase-receipt-camera p{font-size:var(--font-meta);color:var(--text-muted);line-height:1.5}.purchase-reception-form [data-receipt-camera-capture]{background:var(--brand-primary);color:var(--paper)}.purchase-reception-list-heading strong{font-size:var(--font-body)}.purchase-reception-line:has(option[value=accept]:checked){border-left:3px solid var(--brand-primary)}.purchase-reception-line:has(option[value=reject]:checked){border-left:3px solid var(--danger)}.purchase-reception-footer button[type=submit]{min-width:210px}@media (max-width:620px){.purchase-reception-intro{padding:var(--space-3);align-items:flex-start}.purchase-reception-intro h3{font-size:18px}.purchase-reception-count{padding:6px;font-size:11px}.purchase-reception-attachment{padding:var(--space-3)}.purchase-reception-attachment-head{flex-direction:column;align-items:flex-start}.purchase-reception-attachment-head>button{order:2;width:100%}.purchase-reception-attachment-actions button{flex:100%}.purchase-reception-file-status{margin:4px 0 0}.purchase-receipt-camera-controls{flex-wrap:wrap}.purchase-receipt-camera-controls label{flex-basis:100%}.purchase-reception-footer button[type=submit]{min-width:0}}.purchase-reception-row{grid-template-columns:minmax(180px,1fr) 85px 115px 75px 125px 115px}.purchase-reception-final output{min-height:var(--control-height);box-sizing:border-box;border:1px solid var(--line);border-radius:var(--radius-button);background:var(--bg-soft);color:var(--brand-primary);font-variant-numeric:tabular-nums;align-items:center;padding:8px 10px;font-weight:700;display:flex}.purchase-reception-final small{color:var(--text-muted);font-size:10px;font-weight:400}.purchase-reception-final small:empty{display:none}@media (min-width:621px) and (max-width:1050px){.purchase-reception-row{grid-template-columns:repeat(5,minmax(0,1fr));padding-right:0}.purchase-reception-row header{grid-column:1/-1;padding-right:80px}.purchase-reception-details>summary{top:20px}}@media (max-width:620px){.purchase-reception-row{grid-template-columns:repeat(2,minmax(0,1fr))}}.purchase-reception-row>label{grid-template-rows:minmax(30px,auto) auto;align-self:start}@media (max-width:620px){.purchase-reception-metadata>label:nth-child(2){grid-column:1/-1}}.purchase-inbox-status{border:1px solid var(--line);border-radius:var(--radius-card);background:var(--paper);padding:var(--space-4);margin-bottom:var(--space-4);align-items:center;gap:var(--space-4);flex-wrap:wrap;display:flex}.purchase-inbox-heading{flex:180px;min-width:0}.purchase-inbox-heading strong,.purchase-inbox-heading span{overflow-wrap:anywhere;display:block}.purchase-inbox-heading strong{color:var(--brand-primary);font-size:var(--font-body)}.purchase-inbox-heading span,.purchase-inbox-metrics span,.purchase-inbox-metrics small{color:var(--text-muted);font-size:var(--font-meta);line-height:1.5}.purchase-inbox-metrics{gap:var(--space-4);flex:2 360px;display:flex}.purchase-inbox-metrics>div{flex:1;min-width:0}.purchase-inbox-metrics span,.purchase-inbox-metrics strong,.purchase-inbox-metrics small{overflow-wrap:anywhere;display:block}.purchase-inbox-metrics strong{font-size:var(--font-body);margin:4px 0}.purchase-inbox-actions{gap:var(--space-2);flex-wrap:wrap;display:flex}.purchase-inbox-actions button{border:1px solid var(--line);border-radius:var(--radius-button);background:var(--paper);min-height:44px;color:var(--brand-primary);padding:8px 12px}.purchase-inbox-actions [data-action=purchase-invoice-inbox-sync]{background:var(--brand-primary);color:var(--paper)}.purchase-inbox-actions button:disabled{opacity:.55;cursor:wait}.purchase-inbox-status button:focus-visible,.purchase-inbox-schedule summary:focus-visible{outline:2px solid var(--brand-primary);outline-offset:3px}.purchase-inbox-notice,.purchase-inbox-schedule{font-size:var(--font-meta);flex-basis:100%;margin:0;line-height:1.6}.purchase-inbox-notice{color:var(--danger)}.purchase-inbox-schedule{border-top:1px solid var(--line);padding-top:var(--space-2);color:var(--text-muted)}.purchase-inbox-schedule summary{cursor:pointer;color:var(--brand-primary)}.purchase-inbox-schedule p{margin:8px 0 0}@media (max-width:620px){.purchase-inbox-status{padding:var(--space-3);gap:var(--space-3)}.purchase-inbox-metrics{flex-wrap:wrap;flex-basis:100%}.purchase-inbox-metrics>div{flex-basis:140px}.purchase-inbox-actions{width:100%}.purchase-inbox-actions button{flex:140px}}.purchase-document-badge.expense{background:var(--bg-soft);color:var(--brand-primary);border:1px solid var(--line)}.purchase-photo-entry{justify-content:space-between;align-items:center;gap:var(--space-4);padding-bottom:var(--space-4);border-bottom:1px solid var(--line);flex-basis:100%;display:flex}.purchase-photo-entry strong{color:var(--brand-primary);letter-spacing:-.02em;font-size:20px;display:block}.purchase-photo-entry p{color:var(--text-muted);font-size:var(--font-meta);margin:6px 0 0}.purchase-photo-entry button{border-radius:var(--radius-button);min-height:48px;color:var(--paper);background:var(--brand-primary);border:0;flex-shrink:0;justify-content:center;align-items:center;gap:8px;padding:12px 20px;font-weight:650;display:inline-flex}.purchase-photo-entry svg{width:20px;height:20px}.purchase-photo-intake{flex-direction:column;flex:1;min-height:0;padding:0;display:flex;overflow:hidden}.purchase-photo-scroll{padding:var(--space-5);overscroll-behavior:contain;flex:1;min-height:0;overflow-y:auto}.purchase-photo-intro h3{letter-spacing:-.035em;color:var(--brand-primary);margin:8px 0;font-size:28px}.purchase-photo-intro p{color:var(--text-muted);font-size:var(--font-body);margin:0;line-height:1.6}.purchase-photo-intro ol{gap:8px;margin:20px 0;padding:0;list-style:none;display:flex}.purchase-photo-intro li{border-bottom:2px solid var(--line);color:var(--text-muted);font-size:var(--font-meta);flex:1;padding:10px 0}.purchase-photo-intro li.current,.purchase-photo-intro li.done{border-color:var(--brand-primary);color:var(--brand-primary);font-weight:650}.purchase-photo-upload{border:1px dashed var(--line-strong,var(--line));background:var(--bg-soft);border-radius:var(--radius-card);padding:var(--space-4);margin:var(--space-4) 0}.purchase-photo-upload-actions{gap:var(--space-3);display:flex}.purchase-photo-upload-actions button{flex:1;justify-content:center;align-items:center;gap:8px;display:flex}.purchase-photo-upload-actions button:first-child{background:var(--brand-primary);color:var(--paper)}.purchase-photo-upload-actions svg{width:20px;height:20px}.purchase-photo-upload p,.purchase-photo-upload a{font-size:var(--font-meta);overflow-wrap:anywhere;line-height:1.5}.purchase-photo-upload input[hidden]{display:none}.purchase-photo-progress{background:var(--paper);border-radius:var(--radius-button);color:var(--brand-primary);padding:12px}.purchase-photo-progress small{color:var(--text-muted);margin-top:6px;display:block}.purchase-photo-error{color:var(--danger);background:var(--bg-soft);border-left:3px solid var(--danger);border-radius:var(--radius-button);padding:16px;line-height:1.5}.purchase-photo-intake fieldset{border:0;min-width:0;margin:20px 0 0;padding:0}.purchase-photo-intake legend{color:var(--brand-primary);margin-bottom:12px;font-size:18px;font-weight:650}.purchase-photo-products-heading{margin:28px 0 14px}.purchase-photo-products-heading h3{margin:0 0 6px;font-size:18px}.purchase-photo-products-heading span{color:var(--text-muted);font-size:var(--font-meta)}.purchase-photo-line{padding:var(--space-4);border:1px solid var(--line);border-radius:var(--radius-card);background:var(--paper);min-width:0;margin:12px 0}.purchase-photo-line header{align-items:flex-start;gap:12px;margin-bottom:12px;display:flex}.purchase-photo-line header>span{background:var(--bg-soft);width:30px;height:30px;color:var(--brand-primary);border-radius:50%;flex-shrink:0;place-items:center;font-weight:650;display:grid}.purchase-photo-line header>div{flex:1;min-width:0}.purchase-photo-line h4{font-size:var(--font-body);overflow-wrap:anywhere;margin:3px 0 6px;line-height:1.4}.purchase-photo-line header small{color:var(--text-muted);line-height:1.5}.purchase-photo-line header button{min-height:36px;font-size:var(--font-meta);padding:5px 9px}.purchase-photo-line summary{cursor:pointer;font-size:var(--font-meta);color:var(--brand-primary);min-height:30px;margin:12px 0}.purchase-photo-line-amounts{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.purchase-photo-line-amounts input,.purchase-photo-totals input{font-variant-numeric:tabular-nums}.purchase-photo-totals{border-radius:var(--radius-card);background:var(--bg-soft);grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0;padding:16px;display:grid}.purchase-photo-footer{padding:14px var(--space-5) max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper);flex-shrink:0}.purchase-photo-footer p{font-size:var(--font-meta);color:var(--text-muted);margin:0}.purchase-photo-footer .purchase-workflow-actions{justify-content:flex-end;margin-top:10px}.purchase-photo-complete{padding:var(--space-5)}.purchase-photo-intake>.purchase-workflow-actions{padding:0 var(--space-5) var(--space-5)}.purchase-copy-comparison{border:1px solid var(--line);border-left:3px solid var(--brand-primary);background:var(--bg-soft);border-radius:var(--radius-card);flex-basis:100%;min-width:0;margin:14px 0;padding:16px}.purchase-copy-comparison.changed,.purchase-copy-comparison.unverified{border-left-color:var(--danger)}.purchase-copy-comparison>strong{font-size:var(--font-body)}.purchase-copy-comparison>p,.purchase-copy-comparison>a{font-size:var(--font-meta);line-height:1.6}.purchase-copy-changes{gap:10px;max-height:320px;display:grid;overflow:auto}.purchase-copy-changes article{border:1px solid var(--line);border-radius:var(--radius-button);background:var(--paper);padding:12px}.purchase-copy-changes article>div>span{color:var(--text-muted);margin-top:4px;display:block}.purchase-copy-changes strong,.purchase-copy-changes span{overflow-wrap:anywhere;font-size:var(--font-meta)}.purchase-copy-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px;display:grid}.purchase-copy-values strong{color:var(--text);margin-top:4px;display:block}@media (max-width:620px){.purchase-photo-entry{flex-direction:column;align-items:stretch;gap:14px}.purchase-photo-entry strong{font-size:21px}.purchase-workflow-modal:has(.purchase-photo-intake){border-radius:0;width:100%;height:100dvh;max-height:100dvh}.modal-backdrop:has(.purchase-photo-intake){padding:0}.purchase-photo-scroll{padding:16px}.purchase-photo-intro h3{font-size:25px}.purchase-photo-upload{padding:12px}.purchase-photo-upload-actions{flex-direction:column;gap:10px}.purchase-photo-line{padding:14px}.purchase-photo-line-amounts,.purchase-photo-totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.purchase-photo-totals>label:last-child{grid-column:1/-1}.purchase-photo-intake :is(input:not([type=checkbox]),select){min-height:48px;font-size:16px}.purchase-photo-footer{padding:12px 16px max(12px,env(safe-area-inset-bottom))}.purchase-photo-footer .purchase-workflow-actions{grid-template-columns:1fr 1.35fr;display:grid}.purchase-photo-footer button{padding:10px}}.purchase-photo-original{border:1px solid var(--line);border-radius:var(--radius-button);background:var(--bg-soft);margin:16px 0}.purchase-photo-original>summary{cursor:pointer;box-sizing:border-box;min-height:44px;font-size:var(--font-meta);color:var(--brand-primary);padding:12px}.purchase-photo-original .purchase-photo-upload{border:0;margin:0}.purchase-photo-supplier-name{color:var(--text-muted);overflow-wrap:anywhere;font-weight:400;line-height:1.5}@media (max-width:620px){.purchase-photo-metadata{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-photo-metadata>label:first-child,.purchase-photo-metadata>label:last-child{grid-column:1/-1}}
}

