@layer erpColorMode.overrides {
 @media(min-width:681px){
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-center-table.fb-finance-grid[data-fb-columns="6"]:has(td[data-label="采购成本"]) :is(th,td):nth-child(1){width:10%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-center-table.fb-finance-grid[data-fb-columns="6"]:has(td[data-label="采购成本"]) :is(th,td):nth-child(2){width:12%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-center-table.fb-finance-grid[data-fb-columns="6"]:has(td[data-label="采购成本"]) :is(th,td):nth-child(3){width:20%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-center-table.fb-finance-grid[data-fb-columns="6"]:has(td[data-label="采购成本"]) :is(th,td):nth-child(4){width:34%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-center-table.fb-finance-grid[data-fb-columns="6"]:has(td[data-label="采购成本"]) :is(th,td):nth-child(5){width:12%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-center-table.fb-finance-grid[data-fb-columns="6"]:has(td[data-label="采购成本"]) :is(th,td):nth-child(6){width:12%!important}
 }
 html body.erp-system-ui #financeBusinessMask .fb-dialog[data-fb-size="packaging"]{width:min(1080px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important}
 html body.erp-system-ui #financeBusinessMask .fb-packaging-panel{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px;min-width:0!important;max-width:100%!important}
 html body.erp-system-ui #financeBusinessMask .fb-packaging-settings{display:flex;align-items:center;gap:10px 12px;flex-wrap:wrap;padding:14px;border:1px solid var(--ui-border-soft);border-radius:10px;background:var(--ui-surface-muted,var(--ui-field-surface))}
 html body.erp-system-ui #financeBusinessMask .fb-packaging-settings>label{font-size:14px;font-weight:600;color:var(--ui-text)}
 html body.erp-system-ui #financeBusinessMask .fb-packaging-unit{display:flex;align-items:center;gap:8px;min-width:0}
 html body.erp-system-ui #financeBusinessMask .fb-packaging-unit>span{white-space:nowrap;flex:none}
 html body.erp-system-ui #financeBusinessMask .fb-packaging-unit input{width:140px;min-width:0;height:36px;padding:6px 10px;border:1px solid var(--ui-input-border,var(--ui-border));border-radius:var(--ui-control-radius,7px);background:var(--ui-field-surface);color:var(--ui-text);font-size:16px;font-variant-numeric:tabular-nums}
 html body.erp-system-ui #financeBusinessMask .fb-packaging-settings small{color:var(--ui-label);font-size:12px}
 html body.erp-system-ui #financeBusinessMask .fb-packaging-setting-note{flex-basis:100%}
 html body.erp-system-ui #financeBusinessMask .fb-packaging-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
 html body.erp-system-ui #financeBusinessMask .fb-packaging-toolbar>label{display:flex;align-items:center;gap:8px}
 html body.erp-system-ui #financeBusinessMask .fb-packaging-toolbar select{height:34px;min-width:110px;border:1px solid var(--ui-border);border-radius:var(--ui-control-radius,7px);background:var(--ui-field-surface);color:var(--ui-text)}
 html body.erp-system-ui #financeBusinessMask .fb-packaging-clear{white-space:nowrap}
 html body.erp-system-ui #financeBusinessMask .fb-packaging-panel .fb-money-zero{color:var(--ui-label,var(--ui-text))!important}
 html body.erp-system-ui #financeBusinessMask .fb-packaging-dates{display:flex!important;align-items:center;gap:7px;width:288px!important;max-width:100%!important;min-width:0!important;padding:0 10px;height:36px;border:1px solid var(--ui-border);border-radius:var(--ui-control-radius,7px);background:var(--ui-field-surface)}
 html body.erp-system-ui #financeBusinessMask .fb-packaging-dates input{flex:1 1 100px!important;width:100px!important;min-width:80px!important;max-width:112px!important;padding:0;border:0;background:transparent;color:var(--ui-text);font-size:13px;cursor:pointer}
 html body.erp-system-ui #financeBusinessMask .fb-packaging-dates button{display:flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent;color:var(--ui-label);cursor:pointer}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-packaging-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-packaging-table :is(th,td){overflow-wrap:anywhere}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-packaging-table :is(th,td):nth-child(1){width:11%}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-packaging-table :is(th,td):nth-child(2){width:16%}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-packaging-table :is(th,td):nth-child(3){width:23%;}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-packaging-table :is(th,td):nth-child(4){width:32%;}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-packaging-table :is(th,td):last-child{width:18%;}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-packaging-table td:last-child b{display:block;font-size:19px!important;line-height:1.5;font-variant-numeric:tabular-nums}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-packaging-table td:last-child small{display:block;color:var(--ui-label);font-size:12px}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table.fb-finance-grid.fb-finance-ledger-table.fb-finance-advertising-table :is(th,td):nth-child(1){width:12%!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table.fb-finance-grid.fb-finance-ledger-table.fb-finance-advertising-table :is(th,td):nth-child(2){width:14%!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table.fb-finance-grid.fb-finance-ledger-table.fb-finance-advertising-table :is(th,td):nth-child(3){width:22%!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table.fb-finance-grid.fb-finance-ledger-table.fb-finance-advertising-table :is(th,td):nth-child(4){width:24%!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table.fb-finance-grid.fb-finance-ledger-table.fb-finance-advertising-table :is(th,td):nth-child(5){width:12%!important;}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table.fb-finance-grid.fb-finance-ledger-table.fb-finance-advertising-table :is(th,td):nth-child(6){width:16%!important;}
 html body.erp-system-ui .wh-packaging-cell{color:var(--dm-negative,#dc3545);font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}
 @media(max-width:680px){
  html body.erp-system-ui #financeBusinessMask .fb-packaging-toolbar>[data-pack-clear]{order:1;margin-left:auto}
  html body.erp-system-ui #financeBusinessMask .fb-packaging-toolbar>[data-pack-dates]{order:2;flex-basis:100%}
  html body.erp-system-ui #financeBusinessMask .fb-packaging-settings{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important}
  html body.erp-system-ui #financeBusinessMask .fb-packaging-settings>label{grid-column:1;grid-row:1}
  html body.erp-system-ui #financeBusinessMask .fb-packaging-settings>[data-pack-current]{grid-column:2;grid-row:1;text-align:right;white-space:nowrap}
  html body.erp-system-ui #financeBusinessMask .fb-packaging-settings>.fb-packaging-unit{grid-column:1;grid-row:2}
  html body.erp-system-ui #financeBusinessMask .fb-packaging-settings>[data-pack-save]{grid-column:2;grid-row:2}
  html body.erp-system-ui #financeBusinessMask .fb-packaging-settings>.fb-packaging-setting-note{grid-column:1/-1;grid-row:3}
  html body.erp-system-ui #financeBusinessMask .fb-packaging-unit input{flex:1 1 auto!important;min-width:0!important;padding:6px 8px!important}
  html body.erp-system-ui #financeBusinessMask .fb-packaging-settings{padding:12px;gap:10px}
  html body.erp-system-ui #financeBusinessMask .fb-packaging-settings>label{flex-basis:100%}
  html body.erp-system-ui #financeBusinessMask .fb-packaging-unit{flex:1}
  html body.erp-system-ui #financeBusinessMask .fb-packaging-unit input{width:110px;max-width:100%}
  html body.erp-system-ui #financeBusinessMask .fb-packaging-toolbar{align-items:stretch}
  html body.erp-system-ui #financeBusinessMask [data-pack-dates]{width:100%}
  html body.erp-system-ui #financeBusinessMask .fb-packaging-dates{justify-content:space-between}
  html body.erp-system-ui #financeBusinessMask .fb-packaging-dates input{width:100px}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-packaging-table :is(thead){display:none!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-packaging-table,html body.erp-system-ui #financeBusinessMask .fb-table.fb-packaging-table tbody{display:block!important;width:100%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-packaging-table tr{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 12px;padding:12px;border-bottom:1px solid var(--ui-border-soft)}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-packaging-table td:nth-child(n){display:block!important;min-width:0;width:auto!important;padding:0!important;border:0!important;}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-packaging-table td:nth-child(2){}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-packaging-table td:nth-child(n+3){grid-column:1/-1}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-packaging-table td:last-child{border-top:1px solid var(--ui-border-soft);padding-top:8px;}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-packaging-table .fb-finance-product-cell::before{display:none!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table.fb-finance-grid.fb-finance-ledger-table.fb-finance-advertising-table td:nth-child(n){width:auto!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table.fb-finance-grid.fb-finance-ledger-table.fb-finance-advertising-table td:nth-child(4){grid-column:1/-1!important;grid-row:3!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table.fb-finance-grid.fb-finance-ledger-table.fb-finance-advertising-table td:nth-child(5){grid-column:1!important;grid-row:4!important;}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table.fb-finance-grid.fb-finance-ledger-table.fb-finance-advertising-table td:nth-child(6){grid-column:2!important;grid-row:4!important;}
 }
 html body.erp-system-ui #financeRangeLabel.active{color:var(--ui-accent)!important;font-weight:600!important}
 html body.erp-system-ui #financeBusinessRoot{margin:16px 0!important;color:var(--ui-text)!important;font-size:13px!important}
 html body.erp-system-ui .fb-head,html body.erp-system-ui .fb-table-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important;margin-bottom:12px!important}
 html body.erp-system-ui .fb-head h3{font-size:18px!important;margin:0 0 5px!important;color:var(--ui-text)!important}
 html body.erp-system-ui :is(.fb-head p,.fb-note,.fb-footnote,.fb-rules p,.fb-table-head>span){color:var(--dm-muted,#758397)!important;font-size:12px!important;line-height:1.7!important;margin:0!important}
 html body.erp-system-ui .fb-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important}
 html body.erp-system-ui :is(#financeBusinessRoot,.fb-dialog) .erp-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;padding:8px 12px!important;min-height:36px!important;font-size:12px!important;line-height:1.5!important;cursor:pointer!important}
 html body.erp-system-ui .fb-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin-bottom:12px!important}
 html body.erp-system-ui .fb-kpis>div{padding:17px!important;min-width:0!important;border:1px solid var(--ui-border)!important;border-radius:12px!important;background:var(--ui-surface)!important}
 html body.erp-system-ui .fb-kpis .fb-profit{border-color:var(--ui-accent)!important;background:color-mix(in srgb,var(--ui-accent) 7%,var(--ui-surface))!important}
 html body.erp-system-ui .fb-kpis span{display:block!important;color:var(--ui-label)!important}
 html body.erp-system-ui .fb-kpis strong{display:block!important;font-size:25px!important;line-height:1.6!important;font-weight:600!important;overflow-wrap:anywhere!important;margin:5px 0!important;color:var(--ui-text)!important}
 html body.erp-system-ui :is(.fb-kpis,.fb-funds,.fb-table) small{display:block!important;color:var(--dm-muted,#7c8797)!important;font-size:11px!important;font-weight:400!important;line-height:1.7!important}
 html body.erp-system-ui .fb-funds{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;background:var(--ui-surface)!important;border:1px solid var(--ui-border)!important;border-radius:12px!important;padding:14px 17px!important;margin-bottom:16px!important}
 html body.erp-system-ui .fb-funds span{display:block!important;font-size:12px!important;color:var(--ui-label)!important}
 html body.erp-system-ui .fb-funds b{display:block!important;font-size:17px!important;margin:5px 0!important;overflow-wrap:anywhere!important;color:var(--ui-text)!important}
 html body.erp-system-ui .fb-scroll{overflow-x:auto!important;border:1px solid var(--ui-border)!important;border-radius:10px!important;background:var(--ui-surface)!important;max-width:100%!important}
 html body.erp-system-ui .fb-table{border-collapse:collapse!important;width:100%!important;min-width:900px!important;font-size:12px!important;table-layout:auto!important;white-space:nowrap!important;background:var(--ui-surface)!important}
 html body.erp-system-ui .fb-table :is(th,td){padding:12px 10px!important;border:0!important;border-bottom:1px solid var(--ui-border-soft)!important;text-align:center!important;height:auto!important;vertical-align:middle!important;color:var(--ui-text)!important;background:transparent!important;line-height:1.65!important}
 html body.erp-system-ui .fb-table th{font-weight:500!important;color:var(--ui-label)!important;background:var(--ui-field-surface)!important;position:static!important}
 html body.erp-system-ui .fb-table :is(th,td):first-child{text-align:left!important;min-width:130px!important}
 html body.erp-system-ui .fb-table tfoot td{border-bottom:0!important;background:var(--ui-field-surface)!important;font-weight:600!important}
 html body.erp-system-ui :is(.fb-table,.fb-kpis) .fb-loss,html body.erp-system-ui .fb-table .fb-loss :is(b,.fb-number){color:var(--dm-negative,#c64855)!important}
 html body.erp-system-ui .fb-table .fb-positive :is(b,.fb-number){color:var(--dm-positive,#238552)!important}
 html body.erp-system-ui .fb-number{padding:0!important;min-height:28px!important;font:inherit!important;border:0!important;background:transparent!important;color:var(--ui-accent-hover)!important;cursor:pointer!important;text-decoration:underline!important;text-underline-offset:3px!important}
 html body.erp-system-ui .fb-footnote{padding:10px 2px!important}
 html body.erp-system-ui :is(.fb-history,.fb-rules){border:1px solid var(--ui-border)!important;border-radius:10px!important;padding:12px 15px!important;background:var(--ui-surface)!important;margin:12px 0!important;color:var(--ui-text)!important}
 html body.erp-system-ui :is(.fb-history,.fb-rules)>summary{font-size:13px!important;cursor:pointer!important;line-height:1.6!important;color:var(--ui-label)!important}
 html body.erp-system-ui :is(.fb-history,.fb-rules):not([open])>:not(summary){display:none!important}
 html body.erp-system-ui .fb-rules p{margin-top:10px!important}
 html body.erp-system-ui :is(.fb-legacy-ledger,.fb-legacy-shops){display:none!important}
 html body.erp-system-ui .fb-error{font-size:12px!important;line-height:1.7!important;color:var(--ui-danger-hover)!important;white-space:pre-wrap!important}
 html body.erp-system-ui .fb-error:empty{display:none!important}
 html body.erp-system-ui .fb-dialog-body{padding:20px 22px!important;overflow-y:auto!important;min-height:0!important}
 html body.erp-system-ui .fb-dialog-body>.fb-note{margin-bottom:12px!important}
 html body.erp-system-ui .fb-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
 html body.erp-system-ui .fb-form>label,html body.erp-system-ui .fb-void-reason{display:flex!important;flex-direction:column!important;gap:7px!important;font-size:13px!important;color:var(--ui-label)!important;min-width:0!important}
 html body.erp-system-ui :is(.fb-form,.fb-void-reason) :is(input:not([type=checkbox]),select,textarea){width:100%!important;min-width:0!important;max-width:100%!important;padding:10px 12px!important;min-height:40px!important;border:1px solid var(--ui-border)!important;border-radius:8px!important;color:var(--ui-field-text)!important;background:var(--ui-field-surface)!important;font:inherit!important;box-sizing:border-box!important}
 html body.erp-system-ui .fb-form .fb-wide{grid-column:1/-1!important}
 html body.erp-system-ui .fb-form .fb-check{flex-direction:row!important;align-items:flex-start!important;gap:9px!important;font-size:12px!important;line-height:1.8!important}
 html body.erp-system-ui .fb-check input{flex:none!important;accent-color:var(--ui-accent)!important;margin-top:4px!important;width:16px!important;height:16px!important}
 html body.erp-system-ui .fb-wrap{white-space:normal!important;overflow-wrap:anywhere!important;max-width:250px!important}
 html body.erp-system-ui .fb-void{opacity:.6!important}
 html body.erp-system-ui .fb-issues>div{border-bottom:1px solid var(--ui-border-soft)!important;padding:10px 0!important}
 html body.erp-system-ui .fb-issues p{margin:6px 0!important;font-size:13px!important;line-height:1.7!important;color:var(--dm-muted,#758397)!important}
 @media(max-width:900px){html body.erp-system-ui .fb-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
 @media(max-width:600px){
  html body.erp-system-ui #finance :is(.finance-toolbar-left,.finance-quick,.finance-date-field,.finance-search-wrap){min-width:0!important;max-width:100%!important;width:100%!important}
  html body.erp-system-ui #finance :is(.finance-toolbar-left,.finance-quick,.finance-card-head,.finance-table-tools){flex-wrap:wrap!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui #finance .finance-quick{gap:6px!important}
  html body.erp-system-ui #finance .finance-quick button{flex:1 1 auto!important}
  html body.erp-system-ui #finance .finance-date-range{width:100%!important;min-width:0!important;max-width:100%!important;display:flex!important}
  html body.erp-system-ui #finance .finance-date-range input{flex:1 1 0!important;width:0!important;min-width:0!important;padding-left:4px!important;padding-right:4px!important}
  html body.erp-system-ui #finance #financeDateRange input{font-size:12px!important;padding-left:2px!important;padding-right:2px!important}
  html body.erp-system-ui #finance #financeDateRange .finance-range-arrow{flex:0 0 12px!important;width:12px!important;margin:0!important}
  html body.erp-system-ui #finance #financeDateRange button{flex:0 0 20px!important;width:20px!important;min-width:20px!important;padding:0!important}
  html body.erp-system-ui #finance .finance-search-wrap input{width:100%!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui .fb-head{align-items:flex-start!important}
  html body.erp-system-ui .fb-actions{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important}
  html body.erp-system-ui .fb-kpis{gap:8px!important}
  html body.erp-system-ui .fb-kpis>div{padding:12px!important}
  html body.erp-system-ui .fb-kpis strong{font-size:20px!important}
  html body.erp-system-ui .fb-funds{grid-template-columns:1fr!important;gap:12px!important}
  html body.erp-system-ui .fb-funds>div+div{border-top:1px solid var(--ui-border-soft)!important;padding-top:12px!important}
  html body.erp-system-ui .fb-form{grid-template-columns:1fr!important;gap:12px!important}
 }
}


@layer erpColorMode.overrides {
 html body.erp-system-ui #finance-report{min-width:0!important;max-width:100%!important}
 html body.erp-system-ui #finance-report :is(.finance-toolbar,.finance-toolbar-left){flex-wrap:wrap!important;min-width:0!important;max-width:100%!important}
 html body.erp-system-ui #finance-report .finance-source-wrap-v3262{min-width:0!important}
 html body.erp-system-ui #financeBusinessRoot{margin:0!important}
 html body.erp-system-ui .fb-period{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important;color:var(--ui-text)!important}
 html body.erp-system-ui .fb-period span{font-size:12px!important;color:var(--ui-label)!important}
 html body.erp-system-ui .fb-report-table{min-width:760px!important;font-size:12px!important;font-variant-numeric:tabular-nums!important}
 html body.erp-system-ui .fb-report-table :is(th,td){padding:9px 12px!important;border-right:1px solid var(--ui-border-soft)!important;line-height:1.8!important}
 html body.erp-system-ui .fb-report-table th{color:var(--ui-text)!important;font-weight:600!important}
 html body.erp-system-ui .fb-report-table th button{border:0!important;background:transparent!important;color:inherit!important;font:inherit!important;cursor:pointer!important;padding:0!important;min-height:26px!important;white-space:nowrap!important}
 html body.erp-system-ui .fb-report-table th button span{color:var(--ui-label)!important;font-size:10px!important}
 html body.erp-system-ui .fb-report-table tbody tr:hover td{background:var(--ui-field-surface)!important}
 html body.erp-system-ui .fb-report-table :is(th,td):first-child{position:sticky!important;left:0!important;z-index:1!important;background:var(--ui-surface)!important;min-width:140px!important;max-width:200px!important;overflow:hidden!important;text-overflow:ellipsis!important;box-shadow:1px 0 0 var(--ui-border)!important}
 html body.erp-system-ui .fb-report-table :is(thead,tfoot) tr>:first-child{background:var(--ui-field-surface)!important}
 html body.erp-system-ui .fb-report-table .fb-risk,html body.erp-system-ui .fb-report-table .fb-risk .fb-number,html body.erp-system-ui .fb-report-table .fb-loss,html body.erp-system-ui .fb-report-table .fb-loss .fb-number{color:var(--dm-negative,#c64855)!important}
 html body.erp-system-ui .fb-report-table .fb-positive{color:var(--dm-positive,#238552)!important}
 html body.erp-system-ui .fb-report-scroll:focus-visible,html body.erp-system-ui .fb-report-table button:focus-visible{outline:2px solid var(--ui-accent)!important;outline-offset:2px!important}
 @media(max-width:600px){
  html body.erp-system-ui #finance-report :is(.finance-quick,.finance-date-field,.finance-field){min-width:0!important;max-width:100%!important;width:100%!important}
  html body.erp-system-ui #finance-report .finance-quick{flex-wrap:wrap!important;height:auto!important;gap:6px!important}
  html body.erp-system-ui #finance-report .finance-quick button{flex:1 1 auto!important}
  html body.erp-system-ui #finance-report .finance-date-range{display:flex!important;width:100%!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui #finance-report #financeDateRange input{flex:1 1 0!important;width:0!important;min-width:0!important;padding:2px!important;font-size:12px!important}
  html body.erp-system-ui #finance-report #financeDateRange button{flex:0 0 20px!important;width:20px!important;min-width:20px!important;padding:0!important}
  html body.erp-system-ui .fb-report-table :is(th,td):first-child{min-width:104px!important;max-width:130px!important}
 }
}

/* Keep the period result separate from order reconciliation. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessRoot .fb-report-section{min-width:0!important;margin:18px 0!important}
 html body.erp-system-ui #financeBusinessRoot .fb-table-head{margin-bottom:9px!important;gap:6px 12px!important}
 html body.erp-system-ui #financeBusinessRoot .fb-table-head h3{display:flex!important;align-items:center!important;gap:7px!important;margin:0!important;font-size:14px!important;line-height:1.6!important;font-weight:600!important;color:var(--ui-text)!important}
 html body.erp-system-ui #financeBusinessRoot .fb-table-head h3 svg{width:18px!important;height:18px!important;color:var(--ui-accent)!important}
 html body.erp-system-ui .fb-combined-table{min-width:1280px!important}
 html body.erp-system-ui .fb-report-table .fb-number{font-variant-numeric:tabular-nums!important}
 html body.erp-system-ui #financeBusinessMask>.modal.fb-dialog[data-fb-size="orders"]{width:min(640px,calc(100vw - 40px))!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table{min-width:0!important;table-layout:fixed!important;white-space:normal!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table :is(th,td){min-width:0!important;max-width:none!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table :is(th,td):first-child{width:65%!important;}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table :is(th,td):last-child{overflow-wrap:anywhere!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table .fb-order-identity{height:auto!important;min-height:46px!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table .fb-order-identity>span{white-space:normal!important;overflow-wrap:anywhere!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table .fb-order-amount{font-size:17px!important;font-weight:600!important;font-variant-numeric:tabular-nums!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-summary{justify-content:space-between!important;margin-bottom:14px!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table .fb-order-status{display:inline-block!important;align-self:flex-start!important;font-size:11px!important;line-height:1.5!important;margin-top:4px!important;color:var(--ui-label)!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table .fb-order-status[data-state="signed"]{color:var(--dm-positive,#16a34a)!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table .fb-order-status:is([data-state="refused"],[data-state="returned"]){color:var(--dm-negative,#dc3545)!important}
 @media(max-width:600px){
  html body.erp-system-ui #financeBusinessRoot .fb-report-section{margin:14px 0!important}
  html body.erp-system-ui #financeBusinessMask>.modal.fb-dialog[data-fb-size="orders"]{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;--dlg-pad:12px!important}
  html body.erp-system-ui #financeBusinessMask [data-fb-size="orders"] .fb-dialog-body{padding:14px 12px!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table :is(th,td){padding:9px 7px!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table :is(th,td):first-child{width:62%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table .fb-order-amount{font-size:16px!important}
  html body.erp-system-ui #financeBusinessMask [data-fb-size="orders"] .erp-pagination-jump{display:none!important}
 }
}
@layer erpColorMode.overrides {
 html body.erp-system-ui #financeAdvancedPanel{display:flex!important;flex-direction:column!important;gap:12px!important}
 html body.erp-system-ui #finance-report .finance-toolbar{padding:14px 16px!important;border:1px solid var(--ui-border)!important;border-radius:var(--ui-card-radius,10px)!important;background:var(--ui-surface)!important;box-shadow:none!important}
 html body.erp-system-ui #finance-report .finance-toolbar-left{display:flex!important;align-items:center!important;gap:12px!important}
 html body.erp-system-ui #finance-report .finance-field{display:flex!important;align-items:center!important;gap:8px!important}
 html body.erp-system-ui #finance-report .finance-field>label{font-size:13px!important;color:var(--ui-label)!important;white-space:nowrap!important}
 html body.erp-system-ui #finance-report .finance-quick{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:6px!important;height:auto!important;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important}
 html body.erp-system-ui #finance-report .finance-quick button{height:34px!important;min-height:34px!important;padding:6px 12px!important;border:1px solid var(--ui-border)!important;border-radius:var(--ui-control-radius)!important;background:var(--ui-surface)!important;color:var(--ui-label)!important;font-size:13px!important;font-weight:400!important;-webkit-text-fill-color:currentColor!important;box-shadow:none!important}
 html body.erp-system-ui #finance-report .finance-quick button.active{border-color:var(--ui-accent)!important;background:var(--ui-accent)!important;color:var(--ui-on-accent,#fff)!important}
 html body.erp-system-ui #finance-report .finance-quick button:not(.active):hover{border-color:var(--ui-accent)!important;color:var(--ui-accent)!important;background:var(--ui-accent-soft)!important}
 html body.erp-system-ui #finance-report .finance-date-range{width:284px!important;max-width:100%!important;min-width:0!important;height:34px!important;border-radius:var(--ui-control-radius)!important}
 html body.erp-system-ui #finance-report .finance-source{font-size:12px!important;color:var(--ui-label)!important}
 html body.erp-system-ui #financeBusinessRoot .erp-btn{height:34px!important;min-height:34px!important;padding:6px 13px!important;font-size:13px!important;border-radius:var(--ui-control-radius)!important}
 html body.erp-system-ui .fb-report-table{font-size:12px!important}
 html body.erp-system-ui .fb-report-table th{font-weight:600!important;background:var(--ui-field-surface)!important}
 html body.erp-system-ui .fb-report-table :is(th,td){height:42px!important;padding:7px 10px!important;border-color:var(--ui-border-soft)!important}
 html body.erp-system-ui .fb-report-table .fb-number{text-decoration:none!important;font-weight:400!important}
 html body.erp-system-ui .fb-report-table .fb-number:hover{text-decoration:underline!important}
 @media(max-width:600px){html body.erp-system-ui #finance-report .finance-date-range{width:100%!important}html body.erp-system-ui #finance-report .finance-toolbar{padding:12px!important}html body.erp-system-ui #finance-report .finance-toolbar-left{gap:10px!important}}
}

@layer erpColorMode.overrides {
 html body.erp-system-ui #finance-report .finance-quick button.active,
 html body.erp-system-ui #finance-report .finance-quick .finance-all-btn.active {background:var(--ui-accent)!important;color:#fff!important;border-color:var(--ui-accent)!important}
 html body.erp-system-ui #finance-report .finance-quick button:not(.active){background:transparent!important;color:var(--ui-text)!important;border-color:transparent!important;box-shadow:none!important}
}

/* 6.2.3: Use the ERP mask/modal lifecycle and shared header/footer styling. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask > .fb-dialog {
  display:flex!important;flex-direction:column!important;box-sizing:border-box!important;
  width:min(1040px,calc(100vw - 32px))!important;min-width:0!important;
  max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 40px)!important;
  overflow:hidden!important;transform:none!important;scale:none!important;animation:none!important;transition:none!important;
 }
 html body.erp-system-ui #financeBusinessMask > .fb-dialog:has(.fb-form){width:min(630px,calc(100vw - 32px))!important}
 html body.erp-system-ui #financeBusinessMask .modal-head,
 html body.erp-system-ui #financeBusinessMask .fb-dialog-actions {flex:none!important}
 html body.erp-system-ui #financeBusinessMask .fb-dialog-body {flex:1 1 auto!important;min-height:0!important;min-width:0!important;overflow:auto!important}
 @media(max-width:600px){
  html body.erp-system-ui #financeBusinessMask > .fb-dialog{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important}
 }
}

/* 6.2.4: Financial tables own their scrolling; never feed their height back
   through the shared ResizeObserver table fitter. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask > .fb-dialog:has(.fb-table) {
  height:auto!important;max-height:min(780px,calc(100dvh - 64px))!important;
 }
 html body.erp-system-ui #financeBusinessMask .fb-scroll {
  max-height:none!important;overflow:visible!important;flex:none!important;
 }
 html body.erp-system-ui #financeBusinessMask .fb-dialog-body {
  overflow:auto!important;overscroll-behavior:contain!important;
 }
 @media(max-width:600px){
  html body.erp-system-ui #financeBusinessMask > .fb-dialog:has(.fb-table){height:auto!important;max-height:calc(100dvh - 48px)!important}
 }
}

@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask .fb-dialog-actions:empty{display:none!important}
}
@layer erpColorMode.overrides {
 html body.erp-system-ui .fb-order-identity{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important;max-width:100%!important;min-height:48px!important;height:48px!important;text-align:left!important;vertical-align:middle!important}
 html body.erp-system-ui .fb-order-identity>span{display:inline-flex!important;flex-direction:column!important;justify-content:center!important;min-width:0!important;white-space:nowrap!important;line-height:1.45!important}
 html body.erp-system-ui .fb-order-identity>span>small{display:block!important;white-space:normal!important}
 html body.erp-system-ui #financeBusinessMask button.fb-order-copy{display:inline!important;width:auto!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#155eef!important;font:inherit!important;font-family:inherit!important;font-size:inherit!important;font-weight:400!important;line-height:1.55!important;letter-spacing:0!important;text-align:left!important;vertical-align:baseline!important;white-space:inherit!important;cursor:pointer!important}
 html body.erp-system-ui #financeBusinessMask button.fb-order-copy:hover{color:#0b4dcc!important;text-decoration:underline!important}
 html body.erp-system-ui #financeBusinessMask button.fb-order-copy:focus-visible{outline:2px solid var(--ui-accent,#155eef)!important;outline-offset:3px!important}
 html body.erp-system-ui .fb-thumb-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 46px!important;width:46px!important;height:46px!important;padding:0!important;border:0!important;border-radius:7px!important;background:transparent!important;cursor:zoom-in!important}
 html body.erp-system-ui .fb-thumb-button:focus-visible{outline:2px solid var(--ui-accent)!important;outline-offset:2px!important}
 html body.erp-system-ui .fb-order-thumb{display:block!important;flex:none!important;width:46px!important;height:46px!important;border-radius:7px!important;object-fit:cover!important;border:1px solid var(--ui-border-soft,var(--ui-border))!important;background:var(--ui-field-surface)!important;color:var(--fin-muted)!important;text-align:center!important;line-height:44px!important;font-size:11px!important}
 html body.erp-system-ui .fb-order-thumb-empty{display:inline-flex!important;align-items:center!important;justify-content:center!important}
 html body.erp-system-ui #financeBusinessMask>.fb-dialog{position:relative!important}
 html body.erp-system-ui #financeBusinessMask .fb-image-preview{position:absolute!important;inset:8px!important;z-index:30!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;padding:24px!important;background:rgba(15,23,42,.48)!important;border:0!important;border-radius:10px!important;cursor:zoom-out!important;backdrop-filter:blur(1px)!important}
 html body.erp-system-ui #financeBusinessMask .fb-image-preview[hidden]{display:none!important}
 html body.erp-system-ui #financeBusinessMask .fb-image-preview-card{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;max-width:100%!important;max-height:100%!important;line-height:0!important}
 html body.erp-system-ui #financeBusinessMask .fb-image-preview img{display:block!important;max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important;border-radius:9px!important;background:#fff!important;box-shadow:0 28px 80px rgba(0,0,0,.35)!important}
 html body.erp-system-ui #financeBusinessMask .fb-image-preview-close{position:absolute!important;top:-14px!important;right:-14px!important;z-index:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:32px!important;height:32px!important;padding:0!important;border:0!important;border-radius:9px!important;background:#fff!important;color:#475467!important;font-size:18px!important;line-height:1!important;cursor:pointer!important;box-shadow:0 4px 18px rgba(15,23,42,.18)!important}
 html body.erp-system-ui #financeBusinessMask .fb-image-preview-close:focus-visible{outline:2px solid var(--ui-accent)!important;outline-offset:2px!important}
 @media(max-width:600px){html body.erp-system-ui .fb-order-identity{gap:7px!important;min-height:44px!important;height:44px!important}html body.erp-system-ui .fb-thumb-button,html body.erp-system-ui .fb-order-thumb{flex-basis:42px!important;width:42px!important;height:42px!important}html body.erp-system-ui .fb-order-thumb{line-height:40px!important}html body.erp-system-ui #financeBusinessMask .fb-image-preview{inset:6px!important;padding:20px 24px!important}html body.erp-system-ui #financeBusinessMask .fb-image-preview-close{top:-10px!important;right:-10px!important}}
}

/* Financial drilldowns share the ERP palette and fit their actual content. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask>.modal.fb-dialog[data-fb-size="table"]{width:min(920px,calc(100vw - 40px))!important}
 html body.erp-system-ui #financeBusinessMask>.modal.fb-dialog[data-fb-size="wide"]{width:min(980px,calc(100vw - 40px))!important}
 html body.erp-system-ui #financeBusinessMask>.modal.fb-dialog[data-fb-size]{border:1px solid var(--ui-border)!important;border-radius:14px!important;box-shadow:0 24px 70px rgb(15 23 42 / .18)!important;max-height:min(760px,calc(100dvh - 48px))!important}
 html body.erp-system-ui #financeBusinessMask>.modal.fb-dialog:focus{outline:none!important}
 html body.erp-system-ui #financeBusinessMask .modal-head[data-erp-custom-heading]{padding:12px 18px!important;gap:10px!important;min-height:58px!important;border-bottom:1px solid var(--ui-border-soft)!important;background:var(--ui-surface)!important}
 html body.erp-system-ui #financeBusinessMask .modal-head[data-erp-custom-heading]>b{min-width:0!important;font-size:15px!important;overflow-wrap:anywhere!important}
 html body.erp-system-ui #financeBusinessMask .fb-heading-icon>.fin-icon{width:30px!important;height:30px!important;flex-basis:30px!important;border-radius:8px!important}
 html body.erp-system-ui #financeBusinessMask .fb-dialog-body{padding:18px!important;scrollbar-gutter:stable!important}
 html body.erp-system-ui #financeBusinessMask .fin-detail-summary{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px 16px!important;padding:16px!important;margin-bottom:14px!important;border:1px solid var(--ui-border-soft)!important;border-radius:10px!important;background:color-mix(in srgb,var(--ui-accent) 5%,var(--ui-surface))!important}
 html body.erp-system-ui #financeBusinessMask .fin-detail-summary>span:first-child{font-size:12px!important;line-height:1.7!important;overflow-wrap:anywhere!important}
 html body.erp-system-ui #financeBusinessMask .fin-detail-summary>b{font-size:25px!important;line-height:1.35!important;text-align:right!important;overflow-wrap:anywhere!important}
 html body.erp-system-ui #financeBusinessMask .fin-detail-summary>.fin-state{grid-column:1/-1!important;justify-self:start!important;font-size:11px!important;padding:0!important;background:transparent!important}
 html body.erp-system-ui #financeBusinessMask .fb-dialog-body>.fb-note{padding:10px 12px!important;border-radius:8px!important;background:var(--ui-field-surface)!important;font-size:12px!important;line-height:1.8!important;overflow-wrap:anywhere!important}
 html body.erp-system-ui #financeBusinessMask .fb-table :is(th,td){padding:12px!important}
 html body.erp-system-ui #financeBusinessMask .fb-table th{font-size:11px!important;letter-spacing:.1px!important}
 html body.erp-system-ui #financeBusinessMask .fb-table tbody tr:last-child td{border-bottom:0!important}
 html body.erp-system-ui #financeBusinessMask .fb-table tbody tr:hover{background:color-mix(in srgb,var(--ui-accent) 3%,var(--ui-surface))!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-identity{height:auto!important;min-height:42px!important;gap:9px!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-identity>span{white-space:normal!important;overflow-wrap:anywhere!important}
 html body.erp-system-ui #financeBusinessMask :is(.fb-thumb-button,.fb-order-thumb){width:40px!important;height:40px!important;flex-basis:40px!important;border-radius:7px!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-thumb{object-fit:contain!important;line-height:38px!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table .fb-order-status{padding:2px 6px!important;border-radius:4px!important;background:var(--ui-field-surface)!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-status[data-state="signed"]{background:color-mix(in srgb,var(--fin-green) 10%,transparent)!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-status:is([data-state="refused"],[data-state="returned"]){background:color-mix(in srgb,var(--fin-red) 10%,transparent)!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table{min-width:0!important;table-layout:fixed!important;white-space:normal!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table :is(th,td){min-width:0!important;max-width:none!important;overflow-wrap:anywhere!important}
 html body.erp-system-ui #financeBusinessMask .fb-ledger-table th:nth-child(1){width:17%!important}
 html body.erp-system-ui #financeBusinessMask .fb-ledger-table th:nth-child(2){width:31%!important}
 html body.erp-system-ui #financeBusinessMask .fb-ledger-table th:nth-child(3){width:27%!important}
 html body.erp-system-ui #financeBusinessMask .fb-ledger-table :is(th,td):last-child{width:25%!important;}
 html body.erp-system-ui #financeBusinessMask .fb-ledger-date time{font-size:12px!important;font-variant-numeric:tabular-nums!important;white-space:nowrap!important}
 html body.erp-system-ui #financeBusinessMask .fb-shop-name{color:#155eef!important;margin-top:4px!important;font-size:11px!important}
 html body.erp-system-ui #financeBusinessMask .fb-project-name{display:block!important;font-size:12px!important;line-height:1.7!important}
 html body.erp-system-ui :is([data-fin-project-translation],[data-erp-dialog-source])[data-erp-translation-state="failed"]{color:var(--ui-accent)!important;cursor:pointer!important;text-decoration:underline!important;text-underline-offset:3px!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-flow-tag{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;margin:0!important;padding:3px 8px!important;border-radius:5px!important;font-size:12px!important;font-weight:500!important;line-height:1.5!important;white-space:nowrap!important;color:var(--ui-label)!important;-webkit-text-fill-color:currentColor!important;background:var(--ui-field-surface)!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-flow-tag[data-flow="debit"]{color:var(--fin-red,var(--dm-negative,#c64855))!important;background:color-mix(in srgb,var(--fin-red,var(--dm-negative,#c64855)) 9%,transparent)!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-flow-tag[data-flow="credit"]{color:var(--fin-green,var(--dm-positive,#238552))!important;background:color-mix(in srgb,var(--fin-green,var(--dm-positive,#238552)) 9%,transparent)!important}
 html body.erp-system-ui #financeBusinessMask .fb-money-debit{color:var(--dm-negative,#dc3545)!important}
 html body.erp-system-ui #financeBusinessMask .fb-money-credit{color:var(--dm-positive,#16a34a)!important}
 html body.erp-system-ui #financeBusinessMask .fb-table td.fb-positive{color:var(--dm-positive,#16a34a)!important}
 html body.erp-system-ui #financeBusinessMask .fin-detail-summary>b.fb-loss{color:var(--dm-negative,#dc3545)!important}
 html body.erp-system-ui #financeBusinessMask .fin-detail-summary>b.fb-positive{color:var(--dm-positive,#16a34a)!important}
 html body.erp-system-ui #financeBusinessMask .fb-ledger-money>b{display:block!important;font-size:18px!important;line-height:1.5!important;font-variant-numeric:tabular-nums!important}
 html body.erp-system-ui #financeBusinessMask .fb-ledger-money>small{font-size:10px!important;margin-top:3px!important;font-variant-numeric:tabular-nums!important}
 html body.erp-system-ui #financeBusinessMask .fb-store-entry>.fin-icon{width:40px!important;height:40px!important;flex-basis:40px!important;border:1px solid var(--ui-border-soft)!important;background:var(--ui-field-surface)!important;border-radius:7px!important}
 html body.erp-system-ui #financeBusinessMask .fb-store-entry>span{font-size:12px!important}
 html body.erp-system-ui #financeBusinessMask .fb-inspect-table .fb-inspect-money{font-size:16px!important;font-weight:600!important;font-variant-numeric:tabular-nums!important;white-space:nowrap!important}
 html body.erp-system-ui #financeBusinessMask .fb-profit-breakdown{padding:0 14px!important;border:1px solid var(--ui-border-soft)!important;border-radius:10px!important;background:var(--ui-surface)!important}
 html body.erp-system-ui #financeBusinessMask .fb-profit-breakdown>div:not(:last-child){border-bottom:1px solid var(--ui-border-soft)!important}
 html body.erp-system-ui #financeBusinessMask .fb-profit-breakdown .fb-profit-result{padding:16px 0!important;margin:0!important;border-top:0!important}
 html body.erp-system-ui #financeBusinessMask .fb-profit-result>b{font-size:23px!important}
 html body.erp-system-ui #financeBusinessMask .fb-issues{display:grid!important;gap:10px!important}
 html body.erp-system-ui #financeBusinessMask .fb-issues>div{padding:12px 14px!important;border:1px solid var(--ui-border-soft)!important;border-left:3px solid var(--fin-amber)!important;border-radius:8px!important;background:var(--ui-surface)!important}
 html body.erp-system-ui #financeBusinessMask .fb-dialog-actions:not(:empty){padding:12px 18px!important;background:var(--ui-field-surface)!important;border-top:1px solid var(--ui-border-soft)!important}
 html body.erp-system-ui #financeBusinessMask .fb-pagination .erp-pagination-controls{gap:10px!important}
 html body.erp-system-ui #financeBusinessMask .fb-pagination .erp-pagination-jump{display:none!important}
 html body.erp-system-ui #financeBusinessMask .fb-pagination button{min-height:32px!important;border-radius:6px!important}
 @media(max-width:680px){
  html body.erp-system-ui #financeBusinessMask>.modal.fb-dialog[data-fb-size]{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 32px)!important;border-radius:12px!important}
  html body.erp-system-ui #financeBusinessMask .modal-head[data-erp-custom-heading]{padding:12px!important;gap:8px!important}
  html body.erp-system-ui #financeBusinessMask .modal-head[data-erp-custom-heading]>b{font-size:14px!important}
  html body.erp-system-ui #financeBusinessMask .fb-dialog-body{padding:12px!important;scrollbar-gutter:auto!important}
  html body.erp-system-ui #financeBusinessMask .fin-detail-summary{grid-template-columns:minmax(0,1fr)!important;gap:6px!important;padding:12px!important}
  html body.erp-system-ui #financeBusinessMask .fin-detail-summary>b{font-size:26px!important;text-align:left!important}
  html body.erp-system-ui #financeBusinessMask .fb-dialog-actions:not(:empty){padding:10px 12px!important}
  html body.erp-system-ui #financeBusinessMask :is(.fb-ledger-table,.fb-inspect-table){display:block!important;min-width:0!important;width:100%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-inspect-table[data-fb-columns]{min-width:0!important;width:100%!important;table-layout:fixed!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-inspect-table[data-fb-columns] td.fb-wrap{min-width:0!important;max-width:none!important;width:auto!important;white-space:normal!important}
  html body.erp-system-ui #financeBusinessMask :is(.fb-ledger-table,.fb-inspect-table) thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
  html body.erp-system-ui #financeBusinessMask :is(.fb-ledger-table,.fb-inspect-table) tbody{display:block!important;width:100%!important}
  html body.erp-system-ui #financeBusinessMask :is(.fb-ledger-table,.fb-inspect-table) tr{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px 12px!important;padding:12px!important;border-bottom:1px solid var(--ui-border-soft)!important}
  html body.erp-system-ui #financeBusinessMask :is(.fb-ledger-table,.fb-inspect-table) tr:last-child{border-bottom:0!important}
  html body.erp-system-ui #financeBusinessMask :is(.fb-ledger-table,.fb-inspect-table) td{display:block!important;padding:0!important;width:auto!important;min-width:0!important;max-width:none!important;border:0!important;}
  html body.erp-system-ui #financeBusinessMask .fb-ledger-table td.fb-ledger-date{grid-column:1!important;grid-row:1!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table tr{grid-template-columns:minmax(0,1fr) auto!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table td.fb-ledger-money{grid-column:2!important;grid-row:1!important;width:auto!important;}
  html body.erp-system-ui #financeBusinessMask .fb-ledger-table td.fb-ledger-order{grid-column:1/-1!important;grid-row:2!important}
  html body.erp-system-ui #financeBusinessMask .fb-ledger-table td.fb-ledger-project{grid-column:1/-1!important;grid-row:3!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding-top:8px!important;border-top:1px dashed var(--ui-border-soft)!important}
  html body.erp-system-ui #financeBusinessMask .fb-ledger-project .fb-flow-tag{flex:none!important;margin:0!important}
  html body.erp-system-ui #financeBusinessMask .fb-ledger-money>b{font-size:19px!important;white-space:nowrap!important}
  html body.erp-system-ui #financeBusinessMask .fb-inspect-table .fb-wrap{min-width:0!important;max-width:none!important;white-space:normal!important}
  html body.erp-system-ui #financeBusinessMask .fb-inspect-table td::before{content:attr(data-label)!important;display:block!important;margin-bottom:3px!important;color:var(--ui-label)!important;font-family:inherit!important;font-size:10px!important;font-weight:400!important}
  html body.erp-system-ui #financeBusinessMask .fb-inspect-table td.fb-inspect-order{grid-column:1/-1!important}
  html body.erp-system-ui #financeBusinessMask .fb-inspect-table[data-fb-columns="3"] td:last-child{grid-column:1/-1!important}
  html body.erp-system-ui #financeBusinessMask .fb-pagination .erp-pagination-controls{justify-content:space-between!important;gap:8px!important;width:100%!important}
 }
}

/* Date/shop context is shared by financial order and ledger drilldowns. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask>.modal.fb-dialog[data-fb-size="orders"]{width:min(760px,calc(100vw - 40px))!important}
 html body.erp-system-ui #financeBusinessMask .fb-date-context{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important;min-width:0!important;font-size:12px!important;line-height:1.6!important}
 html body.erp-system-ui #financeBusinessMask .fb-date-context time{font-variant-numeric:tabular-nums!important;white-space:nowrap!important;color:var(--ui-text)!important}
 html body.erp-system-ui #financeBusinessMask .fb-date-context .fb-date-label{font-size:10px!important;color:var(--ui-label)!important;margin:0!important;line-height:1.5!important}
 html body.erp-system-ui #financeBusinessMask .fb-date-context .fb-shop-name{display:block!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere!important;color:#155eef!important;font-size:11px!important}
 html body.erp-system-ui #financeBusinessMask .fb-date-pending{color:var(--ui-label)!important;font-size:12px!important}
 html body.erp-system-ui #financeBusinessMask .fb-dialog-scope{display:flex!important;gap:16px!important;align-items:flex-start!important;padding:12px!important;margin-bottom:14px!important;border:1px solid var(--ui-border-soft)!important;border-radius:8px!important;background:var(--ui-field-surface)!important}
 html body.erp-system-ui #financeBusinessMask .fb-dialog-scope>span{flex:none!important;color:var(--ui-label)!important;font-size:11px!important;line-height:1.8!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table :is(th,td):first-child{width:24%!important;}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table :is(th,td):nth-child(2){width:49%!important;}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table :is(th,td):last-child{width:27%!important;}
 @media(max-width:680px){
  html body.erp-system-ui #financeBusinessMask>.modal.fb-dialog[data-fb-size="orders"]{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table{display:block!important;min-width:0!important;width:100%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table tbody{display:block!important;width:100%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;padding:12px 4px!important;border-bottom:1px solid var(--ui-border-soft)!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table tr:last-child{border-bottom:0!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table td{display:block!important;padding:0!important;border:0!important;width:auto!important;min-width:0!important;max-width:none!important;white-space:normal!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table td:first-child{grid-column:1/-1!important;grid-row:1!important;width:auto!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table td:nth-child(2){grid-column:1!important;grid-row:2!important;width:auto!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table td:last-child{grid-column:2!important;grid-row:2!important;width:auto!important;align-self:center!important;font-size:16px!important;white-space:nowrap!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-context-table td.fb-date-shop::before{content:attr(data-label)!important;display:block!important;font-family:inherit!important;font-size:10px!important;line-height:1.7!important;color:var(--ui-label)!important;margin-bottom:3px!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-context-table .fb-date-context{flex-direction:row!important;align-items:center!important;flex-wrap:wrap!important;gap:3px 7px!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-context-table .fb-date-context .fb-shop-name{margin-left:auto!important;text-align:right!important;max-width:60%!important}
 }
}

/* Finance dialogs: separate shop/date columns and reuse the order-center type styles. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask .fb-dialog-scope{align-items:flex-start!important;gap:14px 24px!important;flex-wrap:wrap!important}
 html body.erp-system-ui #financeBusinessMask .fb-dialog-scope>div{display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0!important}
 html body.erp-system-ui #financeBusinessMask .fb-dialog-scope>div>span:first-child{font-size:11px!important;color:var(--ui-label)!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-date-split-table .fb-shop-cell{vertical-align:middle!important;overflow-wrap:anywhere!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-date-split-table .fb-shop-cell .fb-shop-name{display:block!important;margin:0!important;font-size:12px!important;line-height:1.6!important;color:#155eef!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-date-split-table .fb-date-context{align-items:flex-start!important;gap:3px!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table :is(th,td):nth-child(1){width:14%!important;}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table :is(th,td):nth-child(2){width:20%!important;}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table :is(th,td):nth-child(3){width:50%!important;}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table :is(th,td):nth-child(4){width:16%!important;}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table :is(th,td):nth-child(1){width:14%!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table :is(th,td):nth-child(2){width:17%!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table :is(th,td):nth-child(3){width:25%!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table :is(th,td):nth-child(4){width:24%!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table :is(th,td):nth-child(5){width:20%!important}
 html body.erp-system-ui #financeBusinessMask .legacy-order-table.fb-order-center{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;overflow:visible!important;white-space:normal!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-center .posting-cell{width:auto!important;min-width:0!important;padding:0!important;margin:0 0 7px!important;text-align:left!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-center .center-wrap{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;min-height:0!important;height:auto!important;gap:2px!important;margin:0!important;text-align:left!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-center .fb-order-center-copy{display:inline!important;min-width:0!important;min-height:0!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-family:inherit!important;font-size:inherit!important;font-weight:inherit!important;line-height:1.55!important;letter-spacing:0!important;text-align:left!important;cursor:pointer!important;overflow-wrap:anywhere!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-center .fb-order-center-copy:focus-visible{outline:2px solid var(--ui-accent)!important;outline-offset:2px!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-center .fb-order-center-products{display:flex!important;flex-direction:column!important;gap:8px!important;min-width:0!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-center .fb-order-center-product{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-center .fb-order-center-product+.fb-order-center-product{padding-top:8px!important;border-top:1px solid var(--ui-border-soft)!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-center .legacy-cell-lines{flex:1!important;min-width:0!important;max-width:100%!important;width:auto!important;margin:0!important;padding:0!important;text-align:left!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-center .product-name-line{min-width:0!important;max-width:100%!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-center .product-name-line .legacy-prod-title{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;max-width:100%!important}
 @media(max-width:680px){
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-date-split-table{display:block!important;width:100%!important;min-width:0!important;table-layout:auto!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-date-split-table thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-date-split-table tbody{display:block!important;width:100%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-date-split-table tr{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px 12px!important;padding:12px 4px!important;border-bottom:1px solid var(--ui-border-soft)!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-date-split-table td{display:block!important;min-width:0!important;max-width:none!important;width:auto!important;margin:0!important;padding:0!important;border:0!important;white-space:normal!important;grid-column:1/-1!important;grid-row:auto!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-date-split-table tr:last-child{border-bottom:0!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-date-split-table td.fb-shop-cell{grid-column:1!important;grid-row:1!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-date-split-table :is(td.fb-date-shop,td.fb-ledger-date){grid-column:2!important;grid-row:1!important;}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-date-split-table :is(td.fb-date-shop,td.fb-ledger-date) .fb-date-context{align-items:flex-end!important;flex-direction:column!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-date-split-table :is(td.fb-shop-cell,td.fb-date-shop,td.fb-ledger-date)::before{content:attr(data-label)!important;display:block!important;font-family:inherit!important;font-size:10px!important;line-height:1.7!important;color:var(--ui-label)!important;margin:0 0 3px!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table tr{grid-template-columns:minmax(0,1fr) auto!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table td:nth-child(1){grid-column:1!important;grid-row:1!important;width:auto!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table td:nth-child(2){grid-column:2!important;grid-row:1!important;width:auto!important;}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table td:nth-child(3){grid-column:1!important;grid-row:2!important;width:auto!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table td:nth-child(4){grid-column:2!important;grid-row:2!important;width:auto!important;align-self:center!important;}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table .fb-ledger-order{grid-column:1/-1!important;grid-row:2!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table .fb-ledger-project{grid-column:1!important;grid-row:3!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table .fb-ledger-money{grid-column:2!important;grid-row:3!important;width:auto!important;text-align:right!important}
 }
}

@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask .fb-order-center .status-main,html body.erp-system-ui #financeBusinessMask .fb-order-center .status-main span{line-height:1.55!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-center .small-orange.key-number-price{line-height:1.45!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-center .product-name-label{line-height:1.45!important}
}

@layer erpColorMode.overrides {
 @media(max-width:680px){
  html body.erp-system-ui #financeBusinessMask .fb-order-center .small-orange.key-number-price{line-height:1.48!important}
  html body.erp-system-ui #financeBusinessMask .fb-order-center .product-name-label{line-height:1.55!important}
 }
}

@layer erpColorMode.overrides {
 @media(max-width:680px){
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table td:nth-child(n){width:auto!important;min-width:0!important;max-width:none!important}
 }
}

/* Unpriced orders keep the posting/status separate from their original product details. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask>.modal.fb-dialog[data-fb-size="products"]{width:min(960px,calc(100vw - 40px))!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-order-center-table :is(th,td):nth-child(1){width:11%!important;}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-order-center-table :is(th,td):nth-child(2){width:14%!important;}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-order-center-table :is(th,td):nth-child(3){width:23%!important;}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-order-center-table :is(th,td):nth-child(4){width:calc(52% - 90px)!important;}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-order-center-table :is(th,td):nth-child(5){width:90px!important;}
 html body.erp-system-ui #financeBusinessMask .fb-order-center-table .posting-cell{margin-bottom:0!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-center-table .fb-order-center-product{align-items:center!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-center-table :is(.fb-thumb-button,.fb-order-thumb){box-sizing:border-box!important;flex:0 0 64px!important;width:64px!important;min-width:64px!important;max-width:64px!important;height:calc(64px * 4 / 3)!important;min-height:calc(64px * 4 / 3)!important;max-height:calc(64px * 4 / 3)!important;aspect-ratio:3 / 4!important;align-self:center!important;object-fit:contain!important;object-position:center!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-center-table .product-name-line{display:flex!important;align-items:baseline!important;flex-wrap:nowrap!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-center-table .product-name-label{flex:0 0 auto!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-center-table .product-name-line .legacy-prod-title{display:block!important;flex:1!important;min-width:0!important;-webkit-box-orient:initial!important;-webkit-line-clamp:unset!important;white-space:nowrap!important;line-height:1.6!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important;max-height:none!important}
 html body.erp-system-ui #financeBusinessMask .fb-order-center-table .fb-purchase-edit{box-sizing:border-box!important;min-height:28px!important;height:28px!important;min-width:0!important;padding:3px 8px!important;gap:4px!important;font-size:12px!important;line-height:20px!important;white-space:nowrap!important}
 html body.erp-system-ui #financeBusinessMask .fb-purchase-edit .fin-icon{width:13px!important;height:13px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important}
 /* Keep the offer prefix visible; CSS clips only the presentation, never copy data. */
 html body.erp-system-ui :is(.modal-mask,#financeBusinessMask,#financeFeeDetailMaskV3307) .legacy-order-table .offer-single-line{display:flex!important;align-items:baseline!important;width:100%!important;min-width:0!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;word-break:normal!important;overflow-wrap:normal!important}
 html body.erp-system-ui :is(.modal-mask,#financeBusinessMask,#financeFeeDetailMaskV3307) .legacy-order-table .offer-single-line .copy-value{display:block!important;flex:1 1 0%!important;width:0!important;min-width:0!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;word-break:normal!important;overflow-wrap:normal!important;text-align:left!important;vertical-align:baseline!important}
 @media(max-width:680px){
  html body.erp-system-ui #financeBusinessMask>.modal.fb-dialog[data-fb-size="products"]{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-order-center-table td:nth-child(n){width:auto!important;min-width:0!important;max-width:none!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-order-center-table td:nth-child(3){grid-column:1/-1!important;grid-row:2!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-order-center-table td:nth-child(4){grid-column:1/-1!important;grid-row:3!important;}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-order-center-table td:nth-child(5){grid-column:1/-1!important;grid-row:4!important;}
  html body.erp-system-ui #financeBusinessMask .fb-order-center-table .fb-inspect-order::before{content:attr(data-label)!important;display:block!important;margin-bottom:4px!important;font-size:10px!important;line-height:1.7!important;color:var(--ui-label)!important}
 }
}

/* One product layout for finance and the period report; each table keeps its own metrics. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask>.modal.fb-dialog:is([data-fb-size="orders"],[data-fb-size="issues"],[data-fb-size="records"]){width:min(960px,calc(100vw - 40px))!important}
 html body.erp-system-ui #financeBusinessMask>.modal.fb-dialog[data-fb-size="ledger"]{width:min(1040px,calc(100vw - 40px))!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid{width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important;white-space:normal!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid :is(th,td){min-width:0!important;max-width:none!important;vertical-align:middle!important;padding:10px!important;font-size:12px!important;font-weight:400!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid th{font-weight:500!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid .legacy-order-table.fb-order-center{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid .fb-order-center-products{display:flex!important;flex-direction:column!important;gap:8px!important;min-width:0!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid .fb-order-center-product{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid .fb-order-center-product+.fb-order-center-product{padding-top:8px!important;border-top:1px solid var(--ui-border-soft)!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid :is(.fb-thumb-button,.fb-order-thumb){box-sizing:border-box!important;flex:0 0 64px!important;width:64px!important;min-width:64px!important;max-width:64px!important;height:calc(64px * 4 / 3)!important;min-height:calc(64px * 4 / 3)!important;max-height:calc(64px * 4 / 3)!important;aspect-ratio:3 / 4!important;object-fit:contain!important;object-position:center!important;align-self:center!important;border-radius:7px!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid .legacy-cell-lines{flex:1!important;min-width:0!important;max-width:100%!important;width:auto!important;padding:0!important;margin:0!important;font-size:12px!important;line-height:1.65!important;text-align:left!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid .product-name-line{display:flex!important;align-items:baseline!important;min-width:0!important;width:100%!important;flex-wrap:nowrap!important;white-space:nowrap!important;overflow:hidden!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid .product-name-label{flex:0 0 auto!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid .product-name-line .legacy-prod-title{display:block!important;flex:1!important;min-width:0!important;max-height:none!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;-webkit-line-clamp:unset!important;-webkit-box-orient:initial!important;font:inherit!important;color:#1677ff!important;text-decoration:none!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid .fb-order-center-copy{display:inline!important;min-width:0!important;min-height:0!important;height:auto!important;max-width:100%!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font:inherit!important;color:#1677ff!important;line-height:inherit!important;cursor:pointer!important;text-decoration:none!important;overflow-wrap:anywhere!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid .fb-order-center-copy:hover{color:#0958d9!important;text-decoration:underline!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid .fb-finance-identity{display:block!important;min-height:0!important;height:auto!important;text-align:center!important;font-size:12px!important;line-height:1.65!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid .fb-finance-identity>span{display:flex!important;align-items:center!important;flex-direction:column!important;gap:4px!important;white-space:normal!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid .fb-finance-identity .fb-order-status{display:block!important;align-self:center!important;text-align:center!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;font-size:12px!important;font-weight:400!important;line-height:1.6!important;color:var(--ui-accent)!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid [data-order-tone="amber"] .fb-order-status{color:#ff8a00!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid [data-order-tone="green"] .fb-order-status{color:var(--dm-positive,#238552)!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid [data-order-tone="red"] .fb-order-status{color:var(--dm-negative,#c64855)!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid [data-order-tone="muted"] .fb-order-status{color:var(--ui-label)!important}
 html body.erp-system-ui #financeFeeDetailMaskV3307 button.fb-order-copy{display:inline!important;min-width:0!important;min-height:0!important;height:auto!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font:inherit!important;color:#155eef!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important;cursor:pointer!important;text-decoration:none!important}
 html body.erp-system-ui #financeFeeDetailMaskV3307 button.fb-order-copy:hover{text-decoration:underline!important}
 html body.erp-system-ui #financeFeeDetailMaskV3307 .fb-date-context{display:flex!important;flex-direction:column!important;gap:3px!important;font-size:12px!important;line-height:1.6!important}
 html body.erp-system-ui #financeFeeDetailMaskV3307 .fb-date-context time{white-space:nowrap!important;font-variant-numeric:tabular-nums!important}
 html body.erp-system-ui #financeFeeDetailMaskV3307 .fb-shop-name{display:block!important;color:#155eef!important;font-size:12px!important;overflow-wrap:anywhere!important}
 html body.erp-system-ui #financeFeeDetailMaskV3307 .fb-scroll{margin-bottom:16px!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table :is(th,td):nth-child(n){width:auto!important;}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table :is(th,td):nth-child(1){width:11%!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table :is(th,td):nth-child(2){width:14%!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table :is(th,td):nth-child(3){width:23%!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table :is(th,td):nth-child(4){width:38%!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table :is(th,td):nth-child(5){width:14%!important;font-size:14px!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table.fb-finance-ledger-table :is(th,td):nth-child(n){width:auto!important;}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table.fb-finance-ledger-table :is(th,td):nth-child(1){width:10%!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table.fb-finance-ledger-table :is(th,td):nth-child(2){width:11%!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table.fb-finance-ledger-table :is(th,td):nth-child(3){width:17%!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table.fb-finance-ledger-table :is(th,td):nth-child(4){width:24%!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table.fb-finance-ledger-table :is(th,td):nth-child(5){width:14%!important}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table.fb-finance-ledger-table :is(th,td):nth-child(6){width:11%!important;}
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-ledger-table.fb-date-split-table.fb-finance-ledger-table :is(th,td):nth-child(7){width:13%!important;}
 html body.erp-system-ui #financeBusinessMask .fb-finance-ledger-table .fb-ledger-money>b{font-size:14px!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) :is(.fb-finance-issues-table,.fb-single-order-table) :is(th,td):nth-child(1){width:11%!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) :is(.fb-finance-issues-table,.fb-single-order-table) :is(th,td):nth-child(2){width:14%!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) :is(.fb-finance-issues-table,.fb-single-order-table) :is(th,td):nth-child(3){width:23%!important}
 html body.erp-system-ui #financeBusinessMask .fb-finance-issues-table :is(th,td):nth-child(4){width:32%!important}
 html body.erp-system-ui #financeBusinessMask .fb-finance-issues-table :is(th,td):nth-child(5){width:20%!important}
 html body.erp-system-ui #financeFeeDetailMaskV3307 .fb-single-order-table :is(th,td):nth-child(4){width:52%!important}
 html body.erp-system-ui #financeBusinessMask .fb-finance-records-table :is(th,td):nth-child(1){width:11%!important}
 html body.erp-system-ui #financeBusinessMask .fb-finance-records-table :is(th,td):nth-child(2){width:14%!important}
 html body.erp-system-ui #financeBusinessMask .fb-finance-records-table :is(th,td):nth-child(3){width:14%!important}
 html body.erp-system-ui #financeBusinessMask .fb-finance-records-table :is(th,td):nth-child(4){width:14%!important;}
 html body.erp-system-ui #financeBusinessMask .fb-finance-records-table :is(th,td):nth-child(5){width:calc(47% - 148px)!important}
 html body.erp-system-ui #financeBusinessMask .fb-finance-records-table :is(th,td):nth-child(6){width:148px!important}
 html body.erp-system-ui #financeBusinessMask .fb-finance-records-table td:last-child .erp-btn{min-height:28px!important;height:28px!important;padding:3px 6px!important;gap:4px!important;font-size:12px!important;line-height:20px!important}
 html body.erp-system-ui #financeBusinessMask .fb-finance-records-table :is(th,td):last-child{}
 @media(max-width:680px){
  html body.erp-system-ui #financeBusinessMask>.modal.fb-dialog:is([data-fb-size="orders"],[data-fb-size="issues"],[data-fb-size="records"],[data-fb-size="ledger"]){width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid{display:block!important;table-layout:auto!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid tbody{display:block!important;width:100%!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid tr{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px 12px!important;padding:12px 4px!important;border-bottom:1px solid var(--ui-border-soft)!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) :is(.fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-grid,.fb-table.fb-ledger-table.fb-date-split-table.fb-finance-grid,.fb-table.fb-finance-records-table,.fb-table.fb-single-order-table,.fb-table.fb-finance-issues-table) td:nth-child(n){display:block!important;width:auto!important;min-width:0!important;max-width:none!important;padding:0!important;border:0!important;grid-column:1/-1!important;grid-row:auto!important;font-size:12px!important;white-space:normal!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) :is(.fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-grid,.fb-table.fb-ledger-table.fb-date-split-table.fb-finance-grid,.fb-table.fb-finance-records-table,.fb-table.fb-single-order-table,.fb-table.fb-finance-issues-table) td:nth-child(1){grid-column:1!important;grid-row:1!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) :is(.fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-grid,.fb-table.fb-ledger-table.fb-date-split-table.fb-finance-grid,.fb-table.fb-finance-records-table,.fb-table.fb-single-order-table,.fb-table.fb-finance-issues-table) td:nth-child(2){grid-column:2!important;grid-row:1!important;}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) :is(.fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-grid,.fb-table.fb-ledger-table.fb-date-split-table.fb-finance-grid,.fb-table.fb-finance-records-table,.fb-table.fb-single-order-table,.fb-table.fb-finance-issues-table) td:nth-child(3){grid-row:2!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) :is(.fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-grid,.fb-table.fb-ledger-table.fb-date-split-table.fb-finance-grid,.fb-table.fb-single-order-table,.fb-table.fb-finance-issues-table) td:nth-child(4){grid-row:3!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid .fb-date-context{align-items:flex-end!important;flex-direction:column!important;gap:3px!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid td[data-label]::before{content:attr(data-label)!important;display:block!important;margin-bottom:4px!important;font-size:10px!important;line-height:1.6!important;color:var(--ui-label)!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-finance-grid .fb-finance-product-cell::before{display:none!important}
 }
}

/* Financial order numbers use the exact color of their status, including hover. */
@layer erpColorMode.overrides {
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) [data-order-tone]{--fb-order-status-color:var(--ui-accent,#155eef)}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) [data-order-tone="amber"]{--fb-order-status-color:#ff8a00}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) [data-order-tone="green"]{--fb-order-status-color:var(--dm-positive,#238552)}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) [data-order-tone="red"]{--fb-order-status-color:var(--dm-negative,#c64855)}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) [data-order-tone="muted"]{--fb-order-status-color:var(--ui-label)}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-table [data-order-tone] :is(button[data-fb-copy-order],.fb-order-status,.status-main .small-blue){color:var(--fb-order-status-color)!important;-webkit-text-fill-color:currentColor!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-table [data-order-tone] button[data-fb-copy-order]:hover{color:var(--fb-order-status-color)!important;-webkit-text-fill-color:currentColor!important;text-decoration:underline!important}
}

/* Per-store native balance comparison shares the financial dialog layout. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-balance-table{width:100%!important;min-width:0!important;max-width:100%!important}
 html body.erp-system-ui #financeBusinessMask .fb-balance-note{margin:0 0 12px!important}
 html body.erp-system-ui #financeBusinessMask .fb-balance-table :is(th,td){overflow-wrap:anywhere!important;white-space:normal!important}
 html body.erp-system-ui #financeBusinessMask .fb-balance-table td>b{font-size:15px!important;font-weight:600!important;line-height:1.6!important;font-variant-numeric:tabular-nums!important}
 @media(min-width:681px){
  html body.erp-system-ui #financeBusinessMask .fb-balance-table :is(th,td):nth-child(1){width:12%!important}
  html body.erp-system-ui #financeBusinessMask .fb-balance-table :is(th,td):nth-child(2){width:17%!important}
  html body.erp-system-ui #financeBusinessMask .fb-balance-table :is(th,td):nth-child(3),html body.erp-system-ui #financeBusinessMask .fb-balance-table :is(th,td):nth-child(4){width:17%!important}
  html body.erp-system-ui #financeBusinessMask .fb-balance-table :is(th,td):nth-child(5){width:15%!important}
  html body.erp-system-ui #financeBusinessMask .fb-balance-table :is(th,td):nth-child(6){width:22%!important}
 }
 @media(max-width:680px){
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-balance-table td:nth-child(n){display:block!important;width:auto!important;min-width:0!important;max-width:none!important;padding:0!important;border:0!important;grid-column:auto!important;grid-row:auto!important;}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-balance-table td:nth-child(2){}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-balance-table td:nth-child(6){grid-column:1/-1!important}
 }
}

/* Undated sales and refusal procurement have independent aligned columns. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask .fb-finance-undated-table :is(.fb-undated-sales,.fb-undated-procurement){text-align:right!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
 html body.erp-system-ui #financeBusinessMask .fb-finance-undated-table :is(.fb-undated-sales,.fb-undated-procurement)>b{font-size:14px!important;line-height:1.5!important;font-weight:500!important;font-variant-numeric:tabular-nums!important;white-space:nowrap!important}
 html body.erp-system-ui #financeBusinessMask .fb-finance-undated-table .fb-date-pending{font-size:11px!important;line-height:1.6!important;color:var(--ui-label)!important}
 @media(min-width:681px){
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table.fb-finance-undated-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table.fb-finance-undated-table :is(th,td){padding-inline:10px!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table.fb-finance-undated-table :is(th,td):nth-child(1){width:10%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table.fb-finance-undated-table :is(th,td):nth-child(2){width:15%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table.fb-finance-undated-table :is(th,td):nth-child(3){width:20%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table.fb-finance-undated-table :is(th,td):nth-child(4){width:29%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table.fb-finance-undated-table :is(th,td):nth-child(5){width:13%!important;}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table.fb-finance-undated-table :is(th,td):nth-child(6){width:13%!important;white-space:nowrap!important}
 }
 @media(min-width:681px) and (max-width:820px){
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table.fb-finance-undated-table :is(th,td){padding-inline:6px!important}
 }
}

/* Platform costs are shown as signed components of the existing net settlement. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessRoot .fb-platform-table{min-width:1160px!important}
 html body.erp-system-ui #financeBusinessRoot .fb-platform-table th .fin-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:13px!important;height:13px!important;min-width:13px!important;margin-right:5px!important;vertical-align:-2px!important;color:var(--ui-accent)!important}
 html body.erp-system-ui #financeBusinessRoot .fb-platform-table th .fin-icon svg{width:13px!important;height:13px!important}
 html body.erp-system-ui #financeBusinessRoot .fb-platform-table :is(th,td):not(:first-child){min-width:112px!important;white-space:nowrap!important}
 html body.erp-system-ui #financeBusinessRoot .fb-platform-table .fb-number{white-space:nowrap!important}
}

@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask .fb-ledger-project-info{display:inline-flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important;max-width:100%!important;vertical-align:middle!important}
}

/* Give procurement headings their own space and separate flow labels from projects. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table.fb-finance-purchase-table thead th:last-child{font-size:12px!important;white-space:nowrap!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-table.fb-finance-ledger-table .fb-ledger-flow{white-space:nowrap!important;text-align:center!important;vertical-align:middle!important}
 @media(min-width:681px){
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table.fb-finance-purchase-table :is(th,td):nth-child(4){width:36%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table.fb-finance-purchase-table :is(th,td):nth-child(5){width:16%!important}
 }
 @media(min-width:681px) and (max-width:820px){
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-finance-purchase-table :is(th,td){padding-inline:6px!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table.fb-finance-purchase-table :is(th,td):nth-child(4){width:33%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-finance-orders-table.fb-finance-purchase-table :is(th,td):nth-child(5){width:19%!important}
 }
 @media(min-width:901px){
  html body.erp-system-ui #financeBusinessMask>.modal.fb-dialog:has(.fb-finance-ledger-table){width:min(1140px,calc(100vw - 40px))!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-inspect-table.fb-date-split-table.fb-finance-grid.fb-finance-issues-table :is(th,td):nth-child(1){width:10%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-inspect-table.fb-date-split-table.fb-finance-grid.fb-finance-issues-table :is(th,td):nth-child(2){width:12%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-inspect-table.fb-date-split-table.fb-finance-grid.fb-finance-issues-table :is(th,td):nth-child(3){width:19%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-inspect-table.fb-date-split-table.fb-finance-grid.fb-finance-issues-table :is(th,td):nth-child(4){width:31%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-inspect-table.fb-date-split-table.fb-finance-grid.fb-finance-issues-table :is(th,td):nth-child(5){width:28%!important}
 }
 html body.erp-system-ui #financeBusinessMask .fb-finance-issues-table .fb-issue-order-total{display:block!important;margin-top:4px!important;font-size:12px!important;line-height:1.7!important;font-weight:600!important;color:var(--ui-text)!important;-webkit-text-fill-color:currentColor!important;white-space:normal!important}
 @media(min-width:901px) and (max-width:1100px){
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-table.fb-finance-ledger-table :is(th,td){padding-inline:6px!important}
 }
 @media(max-width:900px){
  html body.erp-system-ui #financeBusinessMask>.modal.fb-dialog:has(:is(.fb-finance-ledger-table,.fb-finance-issues-table)){width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-table:is(.fb-ledger-table,.fb-inspect-table).fb-date-split-table.fb-finance-grid:is(.fb-finance-ledger-table,.fb-finance-issues-table){display:block!important;width:100%!important;min-width:0!important;table-layout:auto!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) :is(.fb-finance-ledger-table,.fb-finance-issues-table) thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) :is(.fb-finance-ledger-table,.fb-finance-issues-table) tbody{display:block!important;width:100%!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) :is(.fb-finance-ledger-table,.fb-finance-issues-table) tr{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px 12px!important;padding:12px 4px!important;border-bottom:1px solid var(--ui-border-soft)!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-table:is(.fb-ledger-table,.fb-inspect-table).fb-date-split-table.fb-finance-grid:is(.fb-finance-ledger-table,.fb-finance-issues-table) td:nth-child(n){display:block!important;width:auto!important;min-width:0!important;max-width:none!important;padding:0!important;border:0!important;grid-column:1/-1!important;grid-row:auto!important;white-space:normal!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-table:is(.fb-ledger-table,.fb-inspect-table).fb-date-split-table.fb-finance-grid:is(.fb-finance-ledger-table,.fb-finance-issues-table) td:nth-child(1){grid-column:1!important;grid-row:1!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-table:is(.fb-ledger-table,.fb-inspect-table).fb-date-split-table.fb-finance-grid:is(.fb-finance-ledger-table,.fb-finance-issues-table) td:nth-child(2){grid-column:2!important;grid-row:1!important;}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-table:is(.fb-ledger-table,.fb-inspect-table).fb-date-split-table.fb-finance-grid:is(.fb-finance-ledger-table,.fb-finance-issues-table) td:nth-child(3){grid-row:2!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-table:is(.fb-ledger-table,.fb-inspect-table).fb-date-split-table.fb-finance-grid:is(.fb-finance-ledger-table,.fb-finance-issues-table) td:nth-child(4){grid-row:3!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-table:is(.fb-ledger-table,.fb-inspect-table).fb-date-split-table.fb-finance-grid:is(.fb-finance-ledger-table,.fb-finance-issues-table) td:nth-child(5){grid-column:1!important;grid-row:4!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-table:is(.fb-ledger-table,.fb-inspect-table).fb-date-split-table.fb-finance-grid:is(.fb-finance-ledger-table,.fb-finance-issues-table) td:nth-child(6){grid-column:2!important;grid-row:4!important;align-self:start!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-table:is(.fb-ledger-table,.fb-inspect-table).fb-date-split-table.fb-finance-grid:is(.fb-finance-ledger-table,.fb-finance-issues-table) td:nth-child(7){grid-column:1/-1!important;grid-row:5!important;}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) :is(.fb-finance-ledger-table,.fb-finance-issues-table) td[data-label]::before{content:attr(data-label)!important;display:block!important;margin-bottom:4px!important;font-size:10px!important;line-height:1.6!important;color:var(--ui-label)!important}
  html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) :is(.fb-finance-ledger-table,.fb-finance-issues-table) .fb-finance-product-cell::before{display:none!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-inspect-table.fb-date-split-table.fb-finance-grid.fb-finance-issues-table td:nth-child(5){grid-column:1/-1!important;grid-row:4!important}
 }
}

@layer erpColorMode.overrides {
 @media(max-width:360px){
  html body.erp-system-ui #financeBusinessMask .fb-packaging-settings>.fb-packaging-unit{grid-column:1/-1;grid-row:2}
  html body.erp-system-ui #financeBusinessMask .fb-packaging-settings>[data-pack-save]{grid-column:2;grid-row:3}
  html body.erp-system-ui #financeBusinessMask .fb-packaging-settings>.fb-packaging-setting-note{grid-column:1/-1;grid-row:4}
 }
}

/* Financial dialogs: all columns centered except the product information. */
@layer erpColorMode.overrides {
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-table :is(th,td){text-align:center!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-table :is(th,td).fb-finance-product-cell{text-align:left!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-table td:not(.fb-finance-product-cell) :is(.fb-order-identity,.fb-date-context,.fb-ledger-project-info,.center-wrap){justify-content:center!important;align-items:center!important;text-align:center!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-table td:not(.fb-finance-product-cell) :is(.posting-cell,.fb-order-copy,.fb-order-center-copy,.fb-finance-identity){text-align:center!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-table.fb-finance-grid td:not(.fb-finance-product-cell) .fb-date-context{align-items:center!important;justify-content:center!important;text-align:center!important}
 html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-table.fb-finance-grid td:not(.fb-finance-product-cell) .fb-finance-identity>span{align-items:center!important;justify-content:center!important;text-align:center!important}

}

/* Price selection and clearing both use independent ERP confirmation dialogs. */
@layer erpColorMode.overrides {
 html body.erp-system-ui dialog.fb-packaging-action-dialog{width:min(460px,calc(100vw - 28px))!important;max-width:calc(100vw - 28px)!important;max-height:calc(100dvh - 28px)!important}
 html body.erp-system-ui .fb-packaging-action-dialog .erp-message-close{font-size:23px;line-height:1}
 html body.erp-system-ui .fb-packaging-action-dialog .fb-packaging-action-body{display:grid;gap:14px}
 html body.erp-system-ui .fb-packaging-action-dialog .fb-packaging-action-description{margin:0;text-align:center;color:var(--ui-text)}
 html body.erp-system-ui .fb-packaging-action-dialog .fb-packaging-new-price{display:flex;align-items:baseline;justify-content:center;gap:8px;font-variant-numeric:tabular-nums}
 html body.erp-system-ui .fb-packaging-action-dialog .fb-packaging-new-price b{font-size:30px!important;line-height:1.2!important;font-weight:700!important;color:var(--ui-accent)}
 html body.erp-system-ui .fb-packaging-action-dialog .fb-packaging-new-price span{font-size:12px;color:var(--ui-label)}
 html body.erp-system-ui .fb-packaging-action-dialog .fb-packaging-price-choices{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 html body.erp-system-ui .fb-packaging-action-dialog .fb-packaging-price-choice{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;white-space:normal!important;height:auto!important;min-height:70px!important;padding:12px!important}
 html body.erp-system-ui .fb-packaging-action-dialog .fb-packaging-price-choice b{font-size:14px}
 html body.erp-system-ui .fb-packaging-action-dialog .fb-packaging-price-choice small{display:block;font-size:12px;line-height:1.5;color:inherit!important}
 html body.erp-system-ui .fb-packaging-action-dialog .fb-packaging-action-note{font-size:12px;color:var(--ui-label);line-height:1.6}
 html body.erp-system-ui .fb-packaging-action-dialog .fb-packaging-action-scope{display:grid;gap:4px;padding:10px 12px;background:var(--ui-surface-muted,var(--ui-field-surface));border:1px solid var(--ui-border-soft);border-radius:8px;text-align:center;overflow-wrap:anywhere}
 html body.erp-system-ui .fb-packaging-action-dialog .fb-packaging-action-scope>span{font-size:12px;color:var(--ui-label)}
 html body.erp-system-ui .fb-packaging-action-dialog .fb-packaging-clear-total{display:flex;align-items:center;justify-content:space-between;gap:10px;font-variant-numeric:tabular-nums}
 html body.erp-system-ui .fb-packaging-action-dialog .fb-packaging-clear-total b{font-size:23px!important;font-weight:700!important;color:var(--dm-negative,#dc4655)}
 html body.erp-system-ui .fb-packaging-action-dialog .fb-error{margin:0;color:var(--dm-negative,#dc4655);font-size:12px;overflow-wrap:anywhere}
 html body.erp-system-ui .fb-packaging-action-dialog .fb-error:empty{display:none}
}

/* Keep the period preset beside its dates; the clear action stays at the end. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask .fb-packaging-toolbar{justify-content:flex-start!important;gap:10px 12px!important}
 html body.erp-system-ui #financeBusinessMask .fb-packaging-toolbar>[data-pack-dates]{margin-left:0!important}
 html body.erp-system-ui #financeBusinessMask .fb-packaging-toolbar>[data-pack-clear]{margin-left:auto!important}
 html body.erp-system-ui #financeFeeDetailMaskV3307 .fb-order-detail-pagination{padding:12px 18px!important;border-top:1px solid var(--ui-border-soft);background:var(--ui-field-surface)}
 html body.erp-system-ui #financeFeeDetailMaskV3307 .fb-order-detail-pagination .erp-pagination-jump{display:none!important}
}
/* Match ERP's red print action without changing other danger buttons. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask button.btn.erp-btn.danger.fb-packaging-clear,
 html body.erp-system-ui dialog.fb-packaging-action-dialog button.btn.erp-btn.danger[data-pack-clear-submit]{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;background:#ef4444!important;border-color:#ef4444!important;color:#fff!important;-webkit-text-fill-color:currentColor!important}
 html body.erp-system-ui #financeBusinessMask button.btn.erp-btn.danger.fb-packaging-clear:hover:not(:disabled),
 html body.erp-system-ui dialog.fb-packaging-action-dialog button.btn.erp-btn.danger[data-pack-clear-submit]:hover:not(:disabled){background:#dc2626!important;border-color:#dc2626!important}
 html body.erp-system-ui #financeBusinessMask button.btn.erp-btn.danger.fb-packaging-clear svg{stroke:currentColor!important;fill:none!important}
}

/* Both price scopes are equal choices; highlight only hover and keyboard focus. */
@layer erpColorMode.overrides {
 html body.erp-system-ui dialog.fb-packaging-action-dialog button.btn.erp-btn.fb-packaging-price-choice{background:var(--ui-field-surface)!important;border-color:var(--ui-border)!important;color:var(--ui-text)!important;-webkit-text-fill-color:currentColor!important;box-shadow:none!important}
 html body.erp-system-ui dialog.fb-packaging-action-dialog button.btn.erp-btn.fb-packaging-price-choice:is(:hover,:focus-visible):not(:disabled){background:var(--ui-accent-soft)!important;border-color:var(--ui-accent)!important;color:var(--ui-accent)!important}
 html body.erp-system-ui dialog.fb-packaging-action-dialog button.btn.erp-btn.fb-packaging-price-choice :is(b,small){color:inherit!important;-webkit-text-fill-color:currentColor!important}
}
/* Profit drilldown actions use the same theme text buttons as finance cards. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask .fb-profit-breakdown button.fin-text-link{display:inline-flex!important;align-items:center!important;gap:5px!important;min-height:28px!important;padding:4px 0!important;border:0!important;border-radius:4px!important;background:transparent!important;color:var(--ui-accent-hover)!important;-webkit-text-fill-color:currentColor!important;font:inherit!important;line-height:1.5!important;cursor:pointer!important;box-shadow:none!important}
 html body.erp-system-ui #financeBusinessMask .fb-profit-breakdown button.fin-text-link:hover:not(:disabled){color:var(--ui-accent)!important;text-decoration:underline!important;text-underline-offset:3px!important}
 html body.erp-system-ui #financeBusinessMask .fb-profit-breakdown button.fin-text-link:focus-visible{outline:2px solid var(--ui-accent)!important;outline-offset:3px!important}
}

/* Outcome clocks share the order center's platform time display, with entry days labelled separately. */
html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-date-context :is(.fb-event-day,.fb-event-clock){display:block!important;line-height:1.5!important;font-variant-numeric:tabular-nums!important}
html body.erp-system-ui :is(#financeBusinessMask,#financeFeeDetailMaskV3307) .fb-date-context .fb-related-outcome{display:block!important;margin-top:3px!important}

@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask .fb-order-whd-label{display:inline-flex!important;align-items:center;justify-content:center;max-width:100%;margin:0 0 5px;padding:2px 7px;border-radius:5px;background:color-mix(in srgb,var(--dm-positive,#219653) 9%,var(--ui-surface,#fff));color:var(--dm-positive,#219653)!important;font-size:11px!important;line-height:1.6!important;font-weight:600;white-space:nowrap}
 html body.erp-system-ui #financeBusinessMask .fb-finance-settlement-table .fb-settlement-money b{display:block;font-size:20px!important;font-variant-numeric:tabular-nums;line-height:1.5!important;white-space:nowrap}
 html body.erp-system-ui #financeBusinessMask .fb-finance-settlement-table .fb-settlement-money small{font-size:12px!important;white-space:nowrap}
}

@layer erpColorMode.overrides {
 @media(min-width:681px){
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-center-table[data-fb-columns="6"] :is(th,td):nth-child(1){width:10%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-center-table[data-fb-columns="6"] :is(th,td):nth-child(2){width:14%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-center-table[data-fb-columns="6"] :is(th,td):nth-child(3){width:23%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-center-table[data-fb-columns="6"] :is(th,td):nth-child(4){width:33%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-center-table[data-fb-columns="6"] :is(th,td):nth-child(5){width:10%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-order-center-table[data-fb-columns="6"] :is(th,td):nth-child(6){width:10%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-finance-settlement-table :is(th,td):nth-child(4){width:33%!important}
  html body.erp-system-ui #financeBusinessMask .fb-table.fb-finance-settlement-table :is(th,td):nth-child(5){width:19%!important}
 }
}

/* Keep the visible financial window inside the viewport even when the ERP
   page is zoomed. The list scrolls without moving the title or pagination. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask.modal-mask{
  box-sizing:border-box!important;padding:24px!important;align-items:center!important;justify-content:center!important;
  zoom:calc(1 / var(--erp-page-zoom,1.05))!important;overflow:hidden!important;
 }
 html body.erp-system-ui #financeBusinessMask.modal-mask>.modal.fb-dialog[data-fb-size]{
  box-sizing:border-box!important;max-width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;
  max-height:min(740px,calc(var(--erp-visible-height,100dvh) - 48px))!important;margin:0!important;padding:0!important;overflow:hidden!important;
 }
 html body.erp-system-ui #financeBusinessMask.modal-mask>.modal.fb-dialog .modal-head,
 html body.erp-system-ui #financeBusinessMask.modal-mask>.modal.fb-dialog .fb-dialog-actions{flex:0 0 auto!important;min-width:0!important}
 html body.erp-system-ui #financeBusinessMask.modal-mask>.modal.fb-dialog>.fb-dialog-body:has(>.fb-scroll){
  display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-width:0!important;min-height:0!important;
  padding:14px 16px!important;overflow:hidden!important;scrollbar-gutter:auto!important;
 }
 html body.erp-system-ui #financeBusinessMask.modal-mask>.modal.fb-dialog>.fb-dialog-body>.fb-scroll{
  flex:1 1 auto!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:none!important;
  overflow:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important;border-radius:10px!important;
 }
 html body.erp-system-ui #financeBusinessMask.modal-mask .fb-dialog-body>.fb-scroll:focus-visible{outline:2px solid var(--ui-accent)!important;outline-offset:2px!important}
 html body.erp-system-ui #financeBusinessMask.modal-mask .fb-dialog-body>.fb-scroll>.fb-table>thead>tr>th{
  position:sticky!important;top:0!important;z-index:3!important;background:var(--ui-field-surface)!important;box-shadow:inset 0 -1px 0 var(--ui-border)!important;
 }
 html body.erp-system-ui #financeBusinessMask.modal-mask .fb-dialog-body>.fin-detail-summary,
 html body.erp-system-ui #financeBusinessMask.modal-mask .fb-dialog-body>.fb-note{flex:0 0 auto!important}
 html body.erp-system-ui #financeBusinessMask.modal-mask .fb-order-center-table :is(th,td){padding:8px!important}
 html body.erp-system-ui #financeBusinessMask.modal-mask .fb-order-center-table tbody>tr:nth-child(even)>td{background:color-mix(in srgb,var(--ui-accent) 2%,var(--ui-surface))!important}
 html body.erp-system-ui #financeBusinessMask.modal-mask .fb-order-center-table tbody>tr:hover>td{background:color-mix(in srgb,var(--ui-accent) 5%,var(--ui-surface))!important}
 html body.erp-system-ui #financeBusinessMask.modal-mask .fb-order-center-table .fb-purchase-edit{max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
 @media(min-width:681px){
  html body.erp-system-ui #financeBusinessMask.modal-mask .fb-order-center-table :is(.fb-thumb-button,.fb-order-thumb){flex-basis:54px!important;width:54px!important;min-width:54px!important;max-width:54px!important;height:72px!important;min-height:72px!important;max-height:72px!important}
  html body.erp-system-ui #financeBusinessMask.modal-mask .fb-order-center-table[data-fb-columns="6"] :is(th,td):nth-child(1){width:10%!important}
  html body.erp-system-ui #financeBusinessMask.modal-mask .fb-order-center-table[data-fb-columns="6"] :is(th,td):nth-child(2){width:12%!important}
  html body.erp-system-ui #financeBusinessMask.modal-mask .fb-order-center-table[data-fb-columns="6"] :is(th,td):nth-child(3){width:20%!important}
  html body.erp-system-ui #financeBusinessMask.modal-mask .fb-order-center-table[data-fb-columns="6"] :is(th,td):nth-child(4){width:34%!important}
  html body.erp-system-ui #financeBusinessMask.modal-mask .fb-order-center-table[data-fb-columns="6"] :is(th,td):nth-child(5){width:12%!important}
  html body.erp-system-ui #financeBusinessMask.modal-mask .fb-order-center-table[data-fb-columns="6"] :is(th,td):nth-child(6){width:12%!important}
 }
 @media(min-width:681px) and (max-width:900px){
  html body.erp-system-ui #financeBusinessMask.modal-mask .fb-order-center-table .fb-purchase-edit{height:auto!important;min-height:30px!important;padding:4px!important;white-space:normal!important;line-height:1.3!important}
  html body.erp-system-ui #financeBusinessMask.modal-mask .fb-order-center-table .fb-purchase-edit .erp-button-label{min-width:0!important;white-space:normal!important}
 }
 @media(max-width:680px),(max-width:900px) and (max-height:500px){
  html body.erp-system-ui #financeBusinessMask.modal-mask{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important}
  html body.erp-system-ui #financeBusinessMask.modal-mask>.modal.fb-dialog[data-fb-size]{max-height:calc(var(--erp-visible-height,100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}
  html body.erp-system-ui #financeBusinessMask.modal-mask>.modal.fb-dialog>.fb-dialog-body:has(>.fb-scroll){padding:12px!important}
  html body.erp-system-ui #financeBusinessMask.modal-mask>.modal.fb-dialog>.fb-dialog-body>.fb-scroll{border:0!important;border-radius:0!important;scrollbar-gutter:auto!important}
 }
}

@layer erpColorMode.overrides {
 @media(min-width:681px){
  html body.erp-system-ui #financeBusinessMask.modal-mask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-order-center-table:has(td:is([data-label="预计销售额"],[data-label="采购成本"])) :is(th,td):nth-child(1){width:10%!important}
  html body.erp-system-ui #financeBusinessMask.modal-mask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-order-center-table:has(td:is([data-label="预计销售额"],[data-label="采购成本"])) :is(th,td):nth-child(2){width:12%!important}
  html body.erp-system-ui #financeBusinessMask.modal-mask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-order-center-table:has(td:is([data-label="预计销售额"],[data-label="采购成本"])) :is(th,td):nth-child(3){width:20%!important}
  html body.erp-system-ui #financeBusinessMask.modal-mask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-order-center-table:has(td:is([data-label="预计销售额"],[data-label="采购成本"])) :is(th,td):nth-child(4){width:38%!important}
  html body.erp-system-ui #financeBusinessMask.modal-mask .fb-table.fb-order-detail-table.fb-order-context-table.fb-date-split-table.fb-order-center-table:has(td:is([data-label="预计销售额"],[data-label="采购成本"])) :is(th,td):nth-child(5){width:20%!important;white-space:nowrap!important}
 }
}
@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask.modal-mask .fb-order-center-table td.fb-inspect-money:is([data-label="预计销售额"],[data-label="采购成本"]){font-size:20px!important;font-weight:600!important;font-variant-numeric:tabular-nums!important;line-height:1.5!important}
}

/* Pending data dialogs give the action caption room without widening the product column. */
@layer erpColorMode.overrides {
 @media(min-width:901px) {
  html body.erp-system-ui #financeBusinessMask.modal-mask .fb-table.fb-order-center-table.fb-pending-data-table[data-fb-columns="6"] :is(th,td):nth-child(3){width:16%!important}
  html body.erp-system-ui #financeBusinessMask.modal-mask .fb-table.fb-order-center-table.fb-pending-data-table[data-fb-columns="6"] :is(th,td):nth-child(6){width:16%!important}
 }
 html body.erp-system-ui #financeBusinessMask .fb-pending-data-table .fb-purchase-edit>.erp-button-label {white-space:nowrap!important;overflow-wrap:normal!important;}
}
