/* Phone cards share two equal columns, with a last odd card filling its row. */
@layer erpColorMode.overrides {
 @media(max-width:767px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #finance #financeOverviewRoot :is(.fin-period-kpis.fin-profit-summary,.fin-fee-grid,.fin-pending-grid) {
   box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
   align-items:stretch!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important;
   overflow:visible!important;scroll-snap-type:none!important;
  }
  /* Promote the original calculation cards into the same grid as profit. */
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #finance #financeOverviewRoot .fin-period-kpis.fin-profit-summary>.fin-calculation,
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #finance #financeOverviewRoot .fin-period-kpis.fin-profit-summary>.fin-calculation>.fin-calculation-grid {display:contents!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #finance #financeOverviewRoot :is(.fin-period-kpis .fin-profit-hero,.fin-period-kpis .fin-calc-card,.fin-fee-grid>.fin-fee-card,.fin-pending-grid>.fin-pending-card) {
   box-sizing:border-box!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;
   grid-column:auto!important;grid-row:auto!important;gap:7px!important;width:100%!important;min-width:0!important;max-width:100%!important;
   height:auto!important;min-height:92px!important;margin:0!important;padding:12px!important;text-align:left!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #finance #financeOverviewRoot :is(.fin-period-kpis,.fin-fee-grid,.fin-pending-grid) :is(.fin-kpi-label,.fin-fee-label,.fin-pending-label) {
   display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;max-width:100%!important;
   font-size:12px!important;line-height:1.5!important;white-space:normal!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #finance #financeOverviewRoot :is(.fin-period-kpis,.fin-fee-grid,.fin-pending-grid) :is(.fin-kpi-label,.fin-fee-label,.fin-pending-label)>.fin-icon {
   width:24px!important;height:24px!important;flex:0 0 24px!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #finance #financeOverviewRoot :is(.fin-period-kpis,.fin-fee-grid) strong,
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #finance #financeOverviewRoot .fin-pending-grid b {
   display:block!important;grid-column:auto!important;grid-row:auto!important;align-self:auto!important;
   min-width:0!important;max-width:100%!important;margin:0!important;text-align:left!important;
   font-size:clamp(16px,4.6vw,21px)!important;line-height:1.4!important;letter-spacing:-.3px!important;overflow-wrap:anywhere!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #finance #financeOverviewRoot .fin-summary-value-row {width:100%!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #finance #financeOverviewRoot .fin-fee-grid>.fin-fee-card[data-fin-detail="period:advertising"],
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #finance #financeOverviewRoot .fin-pending-grid>.fin-pending-card:has(>[data-fin-pending-profit]) {grid-column:1/-1!important}
 }
}

@layer erpColorMode.overrides {
 html body.erp-system-ui #financeOverviewRoot .fin-profit-summary.fin-profit-summary-compact :is(.fin-profit-hero,.fin-calc-card) {
  display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
  min-height:104px!important;padding:14px 16px!important;gap:8px!important;
 }
 html body.erp-system-ui #financeOverviewRoot .fin-profit-summary.fin-profit-summary-compact .fin-summary-value-row {
  display:flex!important;align-items:baseline!important;justify-content:space-between!important;
  flex-wrap:wrap!important;gap:6px 10px!important;min-width:0!important;width:100%!important;
 }
 html body.erp-system-ui #financeOverviewRoot .fin-profit-summary.fin-profit-summary-compact .fin-summary-value-row>strong {
  flex:0 1 auto!important;min-width:0!important;max-width:100%!important;margin:0!important;
  grid-column:auto!important;grid-row:auto!important;text-align:left!important;
 }
 html body.erp-system-ui #financeOverviewRoot .fin-profit-summary.fin-profit-summary-compact .fin-profit-hero strong {font-size:32px!important}
 html body.erp-system-ui #financeOverviewRoot .fin-profit-summary.fin-profit-summary-compact :is(.fin-summary-more,.fin-hero-link) {
  display:inline-flex!important;align-items:center!important;gap:4px!important;flex:0 0 auto!important;
  margin:0!important;color:var(--ui-accent-hover)!important;font-size:12px!important;line-height:1.5!important;white-space:nowrap!important;
 }
 html body.erp-system-ui #financeOverviewRoot .fin-profit-summary.fin-profit-summary-compact :is(.fin-summary-more,.fin-hero-link) .fin-icon {
  width:14px!important;height:14px!important;flex-basis:14px!important;
 }
 html body.erp-system-ui #financeOverviewRoot .fin-profit-summary.fin-profit-summary-compact :is(.fin-summary-more,.fin-hero-link) .fin-icon svg {width:14px!important;height:14px!important}
 html body.erp-system-ui #financeOverviewRoot .fin-profit-summary>.fin-calculation {
  display:grid!important;min-width:0!important;padding:0!important;border:0!important;
  border-radius:0!important;background:transparent!important;box-shadow:none!important;
 }
 html body.erp-system-ui #financeOverviewRoot .fin-profit-summary .fin-calculation-grid {gap:14px!important;align-items:stretch!important}
 html body.erp-system-ui #financeOverviewRoot .fin-profit-summary .fin-calc-card {padding:16px!important;gap:8px!important;border-radius:12px!important;min-height:148px!important}
 @media(max-width:680px) {
  html body.erp-system-ui #financeOverviewRoot .fin-profit-summary .fin-calculation-grid {gap:10px!important}
  html body.erp-system-ui #financeOverviewRoot .fin-profit-summary .fin-calc-card {min-height:112px!important;padding:14px!important}
 }
 html body.erp-system-ui :is(#financeBusinessMask,#capitalFundMask){zoom:calc(1 / var(--erp-page-zoom,1.05))!important;z-index:1100!important}
 html body.erp-system-ui :is(#finance,#finance-report,#capital-fund)>.mg-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px 16px!important;margin:0 0 14px!important;padding:0!important}
 html body.erp-system-ui :is(#finance,#finance-report,#capital-fund)>.mg-heading h2{display:flex!important;align-items:center!important;gap:10px!important;margin:0!important;font-size:20px!important;line-height:1.5!important}
 html body.erp-system-ui :is(#finance,#finance-report,#capital-fund)>.mg-heading .fin-page-icon{--fin-page-accent:#3777ce;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 40px!important;width:40px!important;height:40px!important;border:1px solid color-mix(in srgb,var(--fin-page-accent) 18%,var(--ui-border))!important;border-radius:11px!important;background:color-mix(in srgb,var(--fin-page-accent) 7%,var(--ui-surface))!important;color:var(--fin-page-accent)!important}
 html body.erp-system-ui :is(#finance,#finance-report,#capital-fund)>.mg-heading .fin-page-icon-profit{--fin-page-accent:var(--dm-positive,#24875c)}
 html[data-erp-mode="dark"] body.erp-system-ui :is(#finance,#capital-fund)>.mg-heading .fin-page-icon-analysis{--fin-page-accent:#8ab8fa}
 html body.erp-system-ui :is(#finance,#finance-report,#capital-fund)>.mg-heading .fin-page-icon svg{display:block!important;width:21px!important;height:21px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}
 html body.erp-system-ui :is(#finance,#finance-report,#capital-fund)>.mg-heading .mg-scope{font-size:12px!important;line-height:1.5!important;color:var(--dm-muted,#758397)!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot,.fb-dialog,#capitalFundMask){--fin-green:#24875c;--fin-blue:#3777ce;--fin-amber:#ac720d;--fin-purple:#8257c8;--fin-red:#c84e65;--fin-teal:#168898;--fin-indigo:#6167b8;--fin-muted:var(--dm-muted,#758397);color:var(--ui-text)!important}
 html[data-erp-mode="dark"] body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot,.fb-dialog,#capitalFundMask){--fin-green:#78d7a9;--fin-blue:#8ab8fa;--fin-amber:#efbd72;--fin-purple:#c2a1f2;--fin-red:#f69dac;--fin-teal:#7bd0da;--fin-indigo:#aab0f8}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot,.fb-dialog,#capitalFundMask) .fin-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:20px!important;height:20px!important;flex:0 0 20px!important;color:var(--fin-icon-color,var(--ui-accent-hover))!important;vertical-align:middle!important;border-radius:8px!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot,.fb-dialog,#capitalFundMask) .fin-icon svg{display:block!important;width:19px!important;height:19px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot,.fb-dialog,#capitalFundMask) :is(.fin-icon-profit,.fin-icon-check){--fin-icon-color:var(--fin-green)}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot,.fb-dialog,#capitalFundMask) :is(.fin-icon-wallet,.fin-icon-download){--fin-icon-color:var(--fin-blue)}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot,.fb-dialog,#capitalFundMask) :is(.fin-icon-package,.fin-icon-return,.fin-icon-info){--fin-icon-color:var(--fin-amber)}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot,.fb-dialog,#capitalFundMask) :is(.fin-icon-ads,.fin-icon-clock){--fin-icon-color:var(--fin-purple)}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot,.fb-dialog,#capitalFundMask) :is(.fin-icon-fine,.fin-icon-refund,.fin-icon-close){--fin-icon-color:var(--fin-red)}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot,.fb-dialog,#capitalFundMask) .fin-icon-truck{--fin-icon-color:var(--fin-teal)}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot,.fb-dialog,#capitalFundMask) :is(.fin-icon-receipt,.fin-icon-coins,.fin-icon-edit){--fin-icon-color:var(--fin-indigo)}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot,.fb-dialog,#capitalFundMask) .fin-icon-arrow{--fin-icon-color:currentColor;width:16px!important;height:16px!important;flex-basis:16px!important;background:none!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot,.fb-dialog,#capitalFundMask) :is(.fin-kpi-label,.fin-fee-label,.fin-section-head>div,.fb-heading-icon)>.fin-icon:not(.fin-icon-arrow){width:32px!important;height:32px!important;flex-basis:32px!important;background:color-mix(in srgb,var(--fin-icon-color,var(--ui-accent)) 10%,transparent)!important}
 html body.erp-system-ui :is(#financeBusinessRoot,.fb-dialog,#capitalFundMask) .erp-primary .fin-icon{color:inherit!important;background:none!important}
 html body.erp-system-ui #financeOverviewRoot{margin:14px 0 20px!important;font-size:13px!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-section-head{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:8px 14px!important;margin:0 0 14px!important}
 html body.erp-system-ui #financeOverviewRoot .fin-section-head>div{display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:wrap!important}
 html body.erp-system-ui #financeOverviewRoot .fin-section-head b{font-size:15px!important;font-weight:600!important;color:var(--ui-text)!important}
 html body.erp-system-ui #financeOverviewRoot .fin-muted{color:var(--fin-muted)!important;font-size:12px!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-profit-summary{display:grid!important;grid-template-columns:minmax(240px,.88fr) minmax(0,2fr)!important;gap:14px!important;margin-bottom:18px!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) :is(.fin-kpi,.fin-calc-card){appearance:none!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;min-width:0!important;text-align:left!important;background:var(--ui-surface)!important;border:1px solid var(--ui-border)!important;border-radius:12px!important;color:var(--ui-text)!important;cursor:pointer!important;font:inherit!important;box-shadow:none!important;white-space:normal!important;height:auto!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-kpi{padding:16px!important;gap:8px!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-kpi-label{display:flex!important;align-items:center!important;gap:9px!important;color:var(--ui-text)!important;font-size:13px!important;line-height:1.5!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) :is(.fin-kpi,.fin-calc-card) strong{display:block!important;margin:0!important;font-size:24px!important;line-height:1.45!important;font-weight:650!important;letter-spacing:-.4px!important;font-variant-numeric:tabular-nums!important;color:var(--ui-text)!important;overflow-wrap:anywhere!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) :is(.fin-kpi,.fin-calc-card) small{display:block!important;margin:0!important;color:var(--fin-muted)!important;font-size:12px!important;line-height:1.6!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-profit-hero{padding:20px 22px!important;gap:8px!important;background:color-mix(in srgb,var(--ui-accent) 6%,var(--ui-surface))!important;border-color:color-mix(in srgb,var(--ui-accent) 25%,var(--ui-border))!important;justify-content:center!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-profit-hero strong{font-size:34px!important;line-height:1.35!important;margin-top:2px!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-hero-link{display:inline-flex!important;align-items:center!important;gap:5px!important;margin-top:7px!important;color:var(--ui-accent-hover)!important;font-size:12px!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-calculation{min-width:0!important;border:1px solid var(--ui-border)!important;border-radius:12px!important;background:var(--ui-surface)!important;padding:18px!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-calculation-head{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:6px 12px!important;margin-bottom:12px!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-calculation-head b{font-size:13px!important;color:var(--ui-text)!important;font-weight:600!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-calculation-head span{font-size:12px!important;color:var(--fin-muted)!important;line-height:1.6!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-calculation-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-calc-card{padding:12px!important;gap:6px!important;background:var(--ui-field-surface)!important;border-color:transparent!important;border-radius:9px!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-calc-card .fin-icon{width:27px!important;height:27px!important;flex-basis:27px!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-calc-card strong{font-size:23px!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-calculation-note{font-size:12px!important;line-height:1.6!important;color:var(--fin-muted)!important;margin:11px 0 0!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) :is(.fin-kpi,.fin-calc-card,.fin-fee-card):hover{border-color:var(--ui-accent)!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) :is(.fin-kpi,.fin-calc-card,.fin-fee-card,.fin-text-link):focus-visible{outline:2px solid var(--ui-accent)!important;outline-offset:3px!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot,.fb-dialog,#capitalFundMask) :is(strong.fin-loss,b.fin-loss,.fb-profit-result .fin-loss){color:var(--dm-negative,#c64855)!important}
 html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot,.fb-dialog,#capitalFundMask) :is(strong.fin-positive,b.fin-positive,.fb-profit-result .fin-positive){color:var(--dm-positive,#238552)!important}
 html body.erp-system-ui #financeOverviewRoot .fin-panel{padding:18px!important;margin:16px 0!important;background:var(--ui-surface)!important;border:1px solid var(--ui-border)!important;border-radius:12px!important;min-width:0!important}
 html body.erp-system-ui #financeOverviewRoot .fin-panel:is(.fin-operating-panel,.fin-account-panel){width:100%!important;max-width:none!important;box-sizing:border-box!important;padding:14px 12px!important}
 html body.erp-system-ui #financeOverviewRoot .fin-operating-panel>.fin-profit-summary{margin-bottom:0!important}
 html body.erp-system-ui #financeOverviewRoot .fin-operating-panel>.fin-attention{margin-top:14px!important}
 html body.erp-system-ui #financeOverviewRoot .fin-fees-section{min-width:0!important;margin-top:18px!important;padding-top:18px!important;border-top:0!important}
 html body.erp-system-ui #financeOverviewRoot .fin-account-panel>.fin-secondary-grid{margin:0!important}
 html body.erp-system-ui #financeOverviewRoot .fin-order-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
 html body.erp-system-ui #financeOverviewRoot .fin-order-metrics .fin-kpi{background:var(--ui-field-surface)!important;padding:14px!important;border-color:transparent!important;border-radius:9px!important;gap:7px!important}
 html body.erp-system-ui #financeOverviewRoot .fin-order-metrics .fin-kpi-primary{border-color:color-mix(in srgb,var(--ui-accent) 25%,var(--ui-border))!important;background:color-mix(in srgb,var(--ui-accent) 4%,var(--ui-surface))!important}
 html body.erp-system-ui #financeOverviewRoot .fin-order-metrics strong{font-size:22px!important}
 html body.erp-system-ui #financeOverviewRoot .fin-formula{margin:12px 0 0!important;font-size:12px!important;line-height:1.7!important;color:var(--fin-muted)!important}
 html body.erp-system-ui #financeOverviewRoot .fin-counts{display:flex!important;gap:7px!important;align-items:center!important;flex-wrap:wrap!important}
 html body.erp-system-ui #financeOverviewRoot .fin-counts>span{font-size:12px!important;line-height:1.6!important;padding:4px 8px!important;border-radius:5px!important;background:var(--ui-field-surface)!important;color:var(--ui-label)!important}
 html body.erp-system-ui #financeOverviewRoot .fin-counts b{font-size:13px!important;margin-left:4px!important}
 html body.erp-system-ui #financeOverviewRoot .fin-fee-grid{display:grid!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;grid-template-columns:repeat(7,minmax(140px,1fr))!important;gap:10px!important;overflow-x:auto!important;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:2px 1px 6px!important}
 html body.erp-system-ui #financeOverviewRoot .fin-fee-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;padding:13px 14px!important;text-align:left!important;background:var(--ui-surface)!important;border:1px solid var(--ui-border-soft,var(--ui-border))!important;border-radius:9px!important;font:inherit!important;white-space:normal!important;height:auto!important;min-width:0!important;cursor:pointer!important;box-shadow:none!important;color:var(--ui-text)!important}
 html body.erp-system-ui #financeOverviewRoot .fin-fee-label{display:flex!important;align-items:center!important;gap:6px!important;font-size:13px!important;white-space:nowrap!important;color:var(--ui-label)!important}
 html body.erp-system-ui #financeOverviewRoot .fin-fee-label>.fin-icon:not(.fin-icon-arrow){width:24px!important;height:24px!important;flex-basis:24px!important}
 html body.erp-system-ui #financeOverviewRoot .fin-fee-card{padding:12px!important;scroll-snap-align:start}
 html body.erp-system-ui #financeOverviewRoot .fin-fee-label>.fin-icon-arrow{margin-left:auto!important;width:15px!important;height:15px!important;flex-basis:15px!important;background:none!important;color:var(--fin-muted)!important}
 html body.erp-system-ui #financeOverviewRoot .fin-fee-card strong{font-size:21px!important;line-height:1.4!important;font-weight:600!important;font-variant-numeric:tabular-nums!important;overflow-wrap:anywhere!important;color:var(--ui-text)!important}
 html body.erp-system-ui #financeOverviewRoot .fin-fee-card strong.fin-loss{color:var(--dm-negative,#c64855)!important}
 html body.erp-system-ui #financeOverviewRoot .fin-fee-card strong.fin-positive{color:var(--dm-positive,#238552)!important}
 html body.erp-system-ui #financeOverviewRoot .fin-fee-card small{font-size:12px!important;line-height:1.6!important;color:var(--fin-muted)!important}
 html body.erp-system-ui :is(#financeOverviewRoot,.fb-dialog,#capitalFundMask) .fin-state{display:inline-flex!important;align-items:center!important;font-size:12px!important;padding:4px 8px!important;border-radius:5px!important;line-height:1.5!important;background:var(--ui-field-surface)!important;color:var(--ui-label)!important}
 html body.erp-system-ui #financeOverviewRoot .fin-text-link{display:inline-flex!important;align-items:center!important;gap:5px!important;border:0!important;background:transparent!important;color:var(--ui-accent-hover)!important;cursor:pointer!important;padding:6px 0!important;font-size:12px!important;box-shadow:none!important}
 html body.erp-system-ui #financeOverviewRoot .fin-attention{display:flex!important;align-items:center!important;gap:9px!important;width:100%!important;text-align:left!important;padding:10px 14px!important;border:0!important;border-radius:8px!important;background:color-mix(in srgb,var(--fin-amber) 8%,var(--ui-surface))!important;color:var(--ui-text)!important;font-size:12px!important;line-height:1.7!important;cursor:pointer!important;white-space:normal!important;box-shadow:none!important}
 html body.erp-system-ui #financeOverviewRoot .fin-attention>span:last-child{margin-left:auto!important;display:flex!important;align-items:center!important;gap:4px!important;white-space:nowrap!important}
 html body.erp-system-ui #financeOverviewRoot .fin-secondary-grid{display:grid!important;grid-template-columns:minmax(250px,1fr) minmax(0,2fr)!important;gap:14px!important;margin:16px 0!important}
 html body.erp-system-ui #financeOverviewRoot .fin-secondary-grid>.fin-panel{margin:0!important}
 html body.erp-system-ui #financeOverviewRoot .fin-pending-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important}
 html body.erp-system-ui #financeOverviewRoot .fin-pending-grid>div{display:flex!important;flex-direction:column!important;gap:8px!important;min-width:0!important;padding:12px!important;border:1px solid var(--ui-border)!important;border-radius:10px!important;background:var(--ui-surface)!important;box-sizing:border-box!important}
 html body.erp-system-ui #financeOverviewRoot .fin-pending-grid span{color:var(--fin-muted)!important;font-size:13px!important}
 html body.erp-system-ui #financeOverviewRoot .fin-pending-grid .fin-pending-label{display:flex!important;align-items:center!important;gap:7px!important;min-height:28px!important}
 html body.erp-system-ui #financeOverviewRoot .fin-pending-grid .fin-pending-label>span:not(.fin-icon){color:var(--ui-label)!important;min-width:0!important;line-height:1.5!important}
 html body.erp-system-ui #financeOverviewRoot .fin-pending-grid .fin-pending-label>.fin-icon{width:28px!important;height:28px!important;flex-basis:28px!important;color:var(--fin-icon-color,var(--fin-card-accent))!important}
 html body.erp-system-ui #financeOverviewRoot .fin-pending-grid b{font-family:inherit!important;font-size:23px!important;font-weight:650!important;letter-spacing:-.4px!important;color:var(--ui-text)!important;line-height:1.45!important;font-variant-numeric:tabular-nums!important;overflow-wrap:anywhere!important}
 html body.erp-system-ui #financeOverviewRoot .fin-pending-grid b.fin-loss{color:var(--dm-negative,#c64855)!important}
 html body.erp-system-ui #financeOverviewRoot .fin-pending-grid b.fin-positive{color:var(--dm-positive,#238552)!important}
 html body.erp-system-ui #financeOverviewRoot .fin-pending-grid small{font-size:12px!important;color:var(--fin-muted)!important}
 html body.erp-system-ui #financeOverviewRoot .fin-pending-grid small.fin-pending-missing{color:var(--fin-amber)!important;line-height:1.6!important}
 html body.erp-system-ui #financeOverviewRoot .fin-purchase-missing{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:2px 8px!important}
 html body.erp-system-ui #financeOverviewRoot .fin-purchase-missing>span{font-size:11px!important}
 html body.erp-system-ui #financeOverviewRoot .fin-purchase-missing .fin-text-link{padding:3px 0!important;font-weight:600!important;font-size:12px!important;min-height:28px!important}
 html body.erp-system-ui #financeOverviewRoot .fin-purchase-missing .fin-text-link:hover{text-decoration:underline!important;text-underline-offset:3px!important}
 html body.erp-system-ui #financeOverviewRoot .fin-balance-panel>strong{display:block!important;font-family:inherit!important;font-size:23px!important;font-weight:650!important;letter-spacing:-.4px!important;font-variant-numeric:tabular-nums!important;color:var(--ui-text)!important;line-height:1.45!important;overflow-wrap:anywhere!important}
 html body.erp-system-ui #financeOverviewRoot .fin-balance-panel>small{display:block!important;color:var(--fin-muted)!important;font-size:12px!important;margin-top:7px!important}
 html body.erp-system-ui #financeOverviewRoot .fin-balance-panel>p{color:var(--fin-muted)!important;font-size:12px!important;margin:8px 0 0!important;line-height:1.6!important}
 html body.erp-system-ui .fb-dialog .fin-detail-summary{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:7px 12px!important;margin-bottom:10px!important;color:var(--ui-label)!important;font-size:12px!important}
 html body.erp-system-ui .fb-dialog .fin-detail-summary>b{font-size:22px!important;color:var(--ui-text)!important;font-variant-numeric:tabular-nums!important}
 html body.erp-system-ui .fb-dialog .fb-table .fb-wrap{white-space:normal!important;min-width:105px!important;max-width:280px!important;overflow-wrap:anywhere!important}
 html body.erp-system-ui #financeBusinessMask>.fb-dialog[data-fb-size]{width:min(1040px,calc(100vw - 40px))!important;max-width:calc(100vw - 40px)!important;height:auto!important;min-height:0!important;max-height:min(760px,calc(100dvh - 56px))!important;--dlg-pad:20px!important}
 html body.erp-system-ui #financeBusinessMask>.fb-dialog[data-fb-size="wide"]{width:min(1120px,calc(100vw - 40px))!important}
 html body.erp-system-ui #financeBusinessMask>.fb-dialog[data-fb-size="compact"]{width:min(600px,calc(100vw - 40px))!important}
 html body.erp-system-ui #financeBusinessMask>.fb-dialog[data-fb-size="form"]{width:min(640px,calc(100vw - 40px))!important}
 html body.erp-system-ui #financeBusinessMask .modal-head[data-erp-custom-heading]{display:flex!important;align-items:center!important;gap:12px!important;min-height:66px!important;height:auto!important;padding:14px 18px!important}
 html body.erp-system-ui #financeBusinessMask .modal-head[data-erp-custom-heading]>b{flex:1!important;font-size:16px!important;line-height:1.5!important}
 html body.erp-system-ui #financeBusinessMask .fb-heading-icon{display:inline-flex!important;flex:none!important}
 html body.erp-system-ui #financeBusinessMask .fb-heading-icon>.fin-icon{width:34px!important;height:34px!important;flex-basis:34px!important;border-radius:9px!important}
 html body.erp-system-ui #financeBusinessMask .fb-dialog-body{padding:16px 18px!important}
 html body.erp-system-ui #financeBusinessMask .fb-table{min-width:780px!important}
 html body.erp-system-ui #financeBusinessMask [data-fb-size="wide"] .fb-table{min-width:860px!important}
 html body.erp-system-ui #financeBusinessMask [data-fb-size="compact"] .fb-table{min-width:0!important;white-space:normal!important}
 html body.erp-system-ui #financeBusinessMask [data-fb-size="compact"] .fb-table :is(th,td){min-width:0!important}
 html body.erp-system-ui #financeBusinessMask .fb-table :is(th,td){padding:9px 10px!important}
 html body.erp-system-ui #financeBusinessMask .fb-dialog-actions:not(:empty){display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:10px!important;padding:11px 16px!important;border-top:1px solid var(--ui-border)!important;background:var(--ui-surface)!important}
 html body.erp-system-ui #financeBusinessMask .fb-pagination{width:100%!important;margin:0!important;padding:0!important;border:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px 12px!important;flex-wrap:wrap!important;min-height:34px!important}
 html body.erp-system-ui #financeBusinessMask .fb-pagination .erp-pagination-controls{gap:8px!important;flex-wrap:wrap!important;min-width:0!important;max-width:100%!important}
 html body.erp-system-ui #financeBusinessMask .fb-pagination .erp-pagination-total{font-size:12px!important;color:var(--fin-muted)!important;white-space:nowrap!important}
 html body.erp-system-ui #financeBusinessMask .fb-pagination .erp-pagination-arrow{width:auto!important;min-width:32px!important;padding:0 8px!important;gap:3px!important}
 html body.erp-system-ui #financeBusinessMask .fb-pagination .erp-pagination-arrow::after{content:attr(aria-label)!important;font-size:12px!important;font-family:inherit!important}
 html body.erp-system-ui #financeBusinessMask .fb-pagination[data-fixed-size] .erp-pagination-size,html body.erp-system-ui #financeBusinessMask [data-fb-size="compact"] .erp-pagination-jump{display:none!important}
 html body.erp-system-ui #financeBusinessMask .fb-empty-state{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:10px!important;padding:20px 10px!important;min-height:0!important;text-align:center!important}
 html body.erp-system-ui #financeBusinessMask .fb-empty-state>.fin-icon{width:38px!important;height:38px!important;flex-basis:38px!important;background:color-mix(in srgb,var(--fin-indigo) 9%,transparent)!important}
 html body.erp-system-ui #financeBusinessMask .fb-empty-state p{margin:0!important;color:var(--fin-muted)!important;font-size:13px!important;line-height:1.7!important}
 html body.erp-system-ui #financeBusinessMask .fb-profit-breakdown{margin:10px 0 14px!important}
 html body.erp-system-ui #financeBusinessMask .fb-profit-breakdown>div{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;padding:12px 0!important;color:var(--ui-text)!important;font-size:13px!important}
 html body.erp-system-ui #financeBusinessMask .fb-profit-breakdown b{font-size:18px!important;line-height:1.5!important;font-variant-numeric:tabular-nums!important;overflow-wrap:anywhere!important;text-align:right!important}
 html body.erp-system-ui #financeBusinessMask .fb-profit-breakdown .fb-profit-result{border-top:1px solid var(--ui-border)!important;margin-top:5px!important;padding-top:15px!important;font-weight:600!important}
 html body.erp-system-ui #financeBusinessMask .fb-profit-result b{font-size:25px!important}
 @media(max-width:1150px){
  html body.erp-system-ui #financeOverviewRoot .fin-fee-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr))!important;overflow:visible!important;scroll-snap-type:none;padding-bottom:2px!important}
  html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-profit-summary{grid-template-columns:1fr!important}
  html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-profit-hero{min-height:0!important}
  html body.erp-system-ui #financeOverviewRoot .fin-order-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body.erp-system-ui #financeOverviewRoot .fin-pending-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 }
 @media(max-width:800px){html body.erp-system-ui #financeOverviewRoot .fin-secondary-grid{grid-template-columns:1fr!important}}
 @media(max-width:800px),(max-width:900px) and (max-height:500px){
  html body.erp-system-ui #financeOverviewRoot .fin-fee-grid{grid-template-columns:minmax(0,1fr)!important}
 }
 @media(max-width:600px){
  html body.erp-system-ui #financeOverviewRoot .fin-panel{padding:14px!important;margin:14px 0!important}
  html body.erp-system-ui #financeOverviewRoot .fin-fees-section{margin-top:14px!important;padding-top:14px!important}
  html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-profit-summary{gap:10px!important}
  html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-profit-hero{padding:16px 18px!important}
  html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-profit-hero strong{font-size:30px!important}
  html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-calculation{padding:14px!important}
  html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-calculation-grid{grid-template-columns:1fr!important;gap:8px!important}
  html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-calc-card{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,.85fr)!important;column-gap:8px!important;padding:10px!important}
  html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-calc-card strong{grid-column:2!important;grid-row:1 / 3!important;align-self:center!important;text-align:right!important;font-size:21px!important}
  html body.erp-system-ui #financeOverviewRoot :is(.fin-balance-panel>strong,.fin-pending-grid b){font-size:21px!important}
  html body.erp-system-ui #financeOverviewRoot .fin-pending-grid span{font-size:12px!important}
  html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-calc-card small{grid-column:1!important}
  html body.erp-system-ui :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .fin-calc-card .fin-kpi-label{font-size:12px!important;gap:6px!important}
  html body.erp-system-ui #financeOverviewRoot .fin-fee-grid{gap:8px!important}
  html body.erp-system-ui #financeOverviewRoot .fin-fee-card{padding:11px!important}
  html body.erp-system-ui #financeOverviewRoot .fin-fee-card strong{font-size:20px!important}
  html body.erp-system-ui #financeOverviewRoot .fin-fee-label>.fin-icon-arrow{display:none!important}
  html body.erp-system-ui #financeOverviewRoot :is(.fin-order-metrics,.fin-fee-grid) .fin-icon{width:26px!important;height:26px!important;flex-basis:26px!important}
  html body.erp-system-ui #financeOverviewRoot .fin-order-metrics .fin-kpi{padding:11px!important}
  html body.erp-system-ui #financeOverviewRoot .fin-order-metrics strong{font-size:20px!important}
  html body.erp-system-ui #financeOverviewRoot .fin-order-metrics .fin-kpi-label{font-size:12px!important;gap:6px!important}
  html body.erp-system-ui #financeBusinessMask>.fb-dialog[data-fb-size]{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 32px)!important}
  html body.erp-system-ui #financeBusinessMask .modal-head[data-erp-custom-heading]{padding:12px!important;gap:9px!important;min-height:60px!important}
  html body.erp-system-ui #financeBusinessMask .modal-head[data-erp-custom-heading]>b{font-size:15px!important}
  html body.erp-system-ui #financeBusinessMask .fb-dialog-body{padding:14px 12px!important}
  html body.erp-system-ui #financeBusinessMask .fb-dialog-actions:not(:empty){padding:10px 12px!important}
  html body.erp-system-ui #financeBusinessMask .fb-pagination .erp-pagination-controls{justify-content:space-between!important;width:100%!important}
  html body.erp-system-ui #financeBusinessMask .fb-pagination .erp-pagination-jump,html body.erp-system-ui #financeBusinessMask .fb-pagination .erp-pagination-arrow::after{display:none!important}
  html body.erp-system-ui #financeBusinessMask .fb-pagination .erp-pagination-pages{gap:6px!important}
  html body.erp-system-ui #financeBusinessMask .fb-pagination .erp-pagination-size{margin:0!important}
 }
 @media(max-width:370px){
  html body.erp-system-ui #financeOverviewRoot .fin-order-metrics{grid-template-columns:1fr!important}
  html body.erp-system-ui #financeOverviewRoot .fin-fee-label{font-size:12px!important;gap:5px!important}
 }
}

/* Keep settlement and keyword controls together, including after clear-input
 * enhancement. The entire group may move below the title on a narrow page. */
@media screen {
 @layer erpColorMode.overrides {
  html body.erp-system-ui #finance .finance-easy-orders-card .finance-easy-table-head {
   display:flex!important;flex-direction:row!important;align-items:center!important;
   flex-wrap:wrap!important;justify-content:space-between!important;gap:12px 16px!important;
  }
  html body.erp-system-ui #finance .finance-easy-orders-card .finance-easy-table-head>div:first-child {flex:1 1 360px!important;min-width:0!important;}
  html body.erp-system-ui #finance .finance-easy-orders-card .finance-easy-filterbar-v3280 {
   display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;
   justify-content:flex-end!important;gap:8px!important;flex:0 1 508px!important;
   width:508px!important;min-width:0!important;max-width:100%!important;margin-left:auto!important;
  }
  html body.erp-system-ui #finance .finance-easy-orders-card .finance-easy-filterbar-v3280>.finance-settlement-dropdown-v3283 {
   flex:0 0 160px!important;width:160px!important;min-width:160px!important;max-width:160px!important;
  }
  html body.erp-system-ui #finance .finance-easy-orders-card .finance-easy-filterbar-v3280>.finance-search-wrap {
   flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;margin:0!important;
  }
  html body.erp-system-ui #finance .finance-easy-orders-card .finance-easy-filterbar-v3280 .finance-search-wrap>.erp-clear-field {
   flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;
  }
  html body.erp-system-ui #finance .finance-easy-orders-card .finance-easy-filterbar-v3280 #financeSearch {width:100%!important;min-width:0!important;max-width:none!important;}
  html body.erp-system-ui #finance .finance-easy-orders-card .finance-settlement-trigger-v3283 {white-space:nowrap!important;}
  @media(max-width:900px) {
   html body.erp-system-ui #finance .finance-easy-orders-card .finance-settlement-trigger-v3283 {height:40px!important;min-height:40px!important;}
  }
  @media(max-width:600px) {
   html body.erp-system-ui #finance .finance-easy-orders-card .finance-easy-filterbar-v3280>.finance-settlement-dropdown-v3283 {
    flex-basis:136px!important;width:136px!important;min-width:136px!important;max-width:136px!important;
   }
  }
 }
}

/* 6.2.8: Give the finance page clear section rhythm and card grouping. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #finance.finance-page,
 html body.erp-system-ui #finance-report.finance-page{background:var(--ui-bg,#f6f8fb)!important}
 html body.erp-system-ui #financeOverviewRoot{margin:18px 0 26px!important}
 html body.erp-system-ui #financeOverviewRoot>.fin-section-head{margin-top:0!important;margin-bottom:14px!important}
 html body.erp-system-ui #financeOverviewRoot>.fin-profit-summary{margin-bottom:20px!important}
 html body.erp-system-ui #financeOverviewRoot>.fin-attention{margin:0 0 20px!important}
 html body.erp-system-ui #financeOverviewRoot>.fin-panel{margin:20px 0!important;box-shadow:0 6px 22px color-mix(in srgb,var(--ui-text) 5%,transparent)!important}
 html body.erp-system-ui #financeOverviewRoot>.fin-secondary-grid{margin:20px 0 0!important;gap:18px!important}
 html body.erp-system-ui #financeOverviewRoot>.fin-secondary-grid>.fin-panel{box-shadow:0 6px 22px color-mix(in srgb,var(--ui-text) 5%,transparent)!important}
 html body.erp-system-ui #financeAdvancedPanel{gap:20px!important;margin-top:0!important}
 html body.erp-system-ui #financeAdvancedPanel>.finance-erp-card,
 html body.erp-system-ui #financeAdvancedPanel>.finance-table-card{border-radius:14px!important;box-shadow:0 6px 22px color-mix(in srgb,var(--ui-text) 5%,transparent)!important}
 html body.erp-system-ui #financeAdvancedPanel .finance-card-head{padding:14px 18px!important}
 @media(max-width:600px){
  html body.erp-system-ui #financeOverviewRoot{margin:14px 0 20px!important}
  html body.erp-system-ui #financeOverviewRoot>.fin-panel{margin:14px 0!important}
  html body.erp-system-ui #financeOverviewRoot>.fin-secondary-grid{margin-top:14px!important;gap:12px!important}
  html body.erp-system-ui #financeAdvancedPanel{gap:14px!important}
 }
}

/* Share the advertising metric-card treatment: an original surface through
 * 42% of a 125-degree gradient, then a 65% mix of the ERP tone wash. Only
 * individual metric tiles and balance/pending panels receive it. */
@media screen {
 @layer erpColorMode.overrides {
  html body.erp-system-ui :is(#finance,#finance-report,#capital-fund) :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .erp-metric-card {
   --fin-card-accent:var(--fin-blue);--fin-card-wash:#eef4ff;
   background:linear-gradient(125deg,var(--ui-surface) 42%,color-mix(in srgb,var(--erp-icon-wash,var(--fin-card-wash)) 65%,var(--ui-surface)))!important;
   border-color:var(--ui-border)!important;
  }
  html body.erp-system-ui :is(#finance,#finance-report,#capital-fund) :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .erp-tone-green {--fin-card-accent:var(--fin-green);--fin-card-wash:#ebf9f1;}
  html body.erp-system-ui :is(#finance,#finance-report,#capital-fund) :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .erp-tone-blue {--fin-card-accent:var(--fin-blue);--fin-card-wash:#e8f1ff;}
  html body.erp-system-ui :is(#finance,#finance-report,#capital-fund) :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .erp-tone-amber {--fin-card-accent:var(--fin-amber);--fin-card-wash:#fff7e8;}
  html body.erp-system-ui :is(#finance,#finance-report,#capital-fund) :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .erp-tone-violet {--fin-card-accent:var(--fin-purple);--fin-card-wash:#f4edfd;}
  html body.erp-system-ui :is(#finance,#finance-report,#capital-fund) :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .erp-tone-rose {--fin-card-accent:var(--fin-red);--fin-card-wash:#fceef2;}
  html body.erp-system-ui :is(#finance,#finance-report,#capital-fund) :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .erp-tone-cyan {--fin-card-accent:var(--fin-teal);--fin-card-wash:#eaf8fb;}
  html[data-erp-mode="dark"] body.erp-system-ui :is(#finance,#finance-report,#capital-fund) :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .erp-metric-card {--fin-card-wash:var(--ui-field-surface);}
  html body.erp-system-ui :is(#finance,#finance-report,#capital-fund) :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .erp-metric-card .fin-icon:not(.fin-icon-arrow) {
   --fin-icon-color:var(--erp-icon-ink,var(--fin-card-accent));
   background:var(--erp-icon-wash,var(--fin-card-wash))!important;
  }
  html body.erp-system-ui :is(#finance,#finance-report,#capital-fund) :is(#financeOverviewRoot,#financeBusinessRoot,#capitalFundRoot) .erp-metric-card:hover {border-color:var(--ui-accent)!important;}
 }
}

/* Shared order detail notes remain available in financial drilldowns. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #financeBusinessMask .fb-order-detail-note{display:block!important;margin-top:5px!important;font-size:11px!important;line-height:1.65!important;color:var(--ui-label)!important;white-space:normal!important}
}

/* Finance follows the same heading and collapsible filter layout as ERP pages. */
@media(max-width:640px){
 @layer erpColorMode.overrides {
  html body.erp-system-ui :is(#finance,#finance-report,#capital-fund)>.mg-heading{flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;text-align:left!important;margin:0 0 12px!important;gap:8px!important}
  html body.erp-system-ui :is(#finance,#finance-report,#capital-fund)>.mg-heading h2{justify-content:flex-start!important;flex-direction:row!important;gap:8px!important;font-size:17px!important;text-align:left!important}
  html body.erp-system-ui :is(#finance,#finance-report,#capital-fund)>.mg-heading .fin-page-icon{width:32px!important;height:32px!important;flex-basis:32px!important;border-radius:9px!important}
  html body.erp-system-ui :is(#finance,#finance-report) [data-fin-mobile-filters]{margin:0 0 14px!important}
  html body.erp-system-ui :is(#finance,#finance-report) [data-fin-mobile-filters]>.finance-toolbar{display:block!important;margin:0!important;padding:12px!important;border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important}
  html body.erp-system-ui :is(#finance,#finance-report) [data-fin-mobile-filters] .finance-toolbar-left{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:center!important;gap:10px!important;width:100%!important}
  html body.erp-system-ui :is(#finance,#finance-report) [data-fin-mobile-filters] :is(.finance-field,.finance-quick){grid-column:1/-1!important;width:100%!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui :is(#finance,#finance-report) [data-fin-mobile-filters] .finance-field{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important}
  html body.erp-system-ui :is(#finance,#finance-report) [data-fin-mobile-filters] .finance-field>label{flex:0 0 28px!important;width:28px!important;margin:0!important;font-size:12px!important;white-space:nowrap!important}
  html body.erp-system-ui :is(#finance,#finance-report) [data-fin-mobile-filters] .finance-field>:not(label){flex:1 1 0!important;min-width:0!important;max-width:none!important;width:0!important}
  html body.erp-system-ui :is(#finance,#finance-report) [data-fin-mobile-filters] .finance-quick{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;padding:0!important;background:none!important;border:0!important}
  html body.erp-system-ui :is(#finance,#finance-report) [data-fin-mobile-filters] .finance-quick button{width:100%!important;min-width:0!important;padding:6px 4px!important;font-size:12px!important}
  html body.erp-system-ui :is(#finance,#finance-report) [data-fin-mobile-filters] .finance-toolbar-left>button{width:100%!important;min-width:0!important;padding:8px 6px!important;white-space:normal!important;font-size:12px!important}
  html body.erp-system-ui :is(#finance,#finance-report) [data-fin-mobile-filters] :is(.finance-quick button,.finance-toolbar-left>button){min-height:42px!important;height:auto!important}
  html body.erp-system-ui :is(#finance,#finance-report) [data-fin-mobile-filters] .finance-source-wrap-v3262{margin-top:10px!important;padding-top:8px!important;border-top:1px solid var(--ui-border-soft)!important}
  html body.erp-system-ui :is(#finance,#finance-report) [data-fin-mobile-filters] .finance-source:empty{display:none!important}
  html body.erp-system-ui :is(#finance,#finance-report) [data-fin-mobile-filters]:has(.finance-source:empty) .finance-source-wrap-v3262{display:none!important}
 }
}

/* Shared ERP dropdown and actionable missing-estimate count. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #finance .finance-settlement-shared {flex:0 0 184px!important;width:184px!important;min-width:0!important;max-width:100%!important;}
 html body.erp-system-ui #finance .finance-settlement-shared>.erp-choice {width:100%!important;}
 html body.erp-system-ui #finance .finance-settlement-shared .erp-choice-trigger {height:38px!important;min-height:38px!important;gap:12px!important;white-space:nowrap!important;}
 html body.erp-system-ui #financeOverviewRoot .fin-pending-missing .fin-text-link {display:inline-flex;align-items:center;min-height:28px;padding:2px 0!important;color:var(--fin-amber)!important;font:inherit;font-weight:600;cursor:pointer;}
 html body.erp-system-ui #financeOverviewRoot .fin-pending-missing .fin-text-link:hover {text-decoration:underline;text-underline-offset:3px;}
 html body.erp-system-ui #financeBusinessRoot[data-finance-detail-host] {display:none!important;}
 @media(max-width:600px){
  html body.erp-system-ui #finance .finance-settlement-shared {flex-basis:158px!important;width:158px!important;}
  html body.erp-system-ui #finance .finance-settlement-shared .erp-choice-trigger {height:40px!important;min-height:40px!important;}
 }
}

@layer erpColorMode.overrides {
 html body.erp-system-ui #financeOverviewRoot .fin-account-side{display:flex!important;flex-direction:column!important;gap:14px!important;min-width:0!important}
 html body.erp-system-ui #financeOverviewRoot .fin-account-side>.fin-panel{margin:0!important}
 @media(min-width:801px){
  html body.erp-system-ui #financeOverviewRoot .fin-account-side>.fin-balance-panel{flex:1 1 auto!important}
 }
 html body.erp-system-ui #financeOverviewRoot .fin-pending-interactive{position:relative!important;transition:border-color .15s ease,box-shadow .15s ease!important}
 html body.erp-system-ui #financeOverviewRoot .fin-pending-interactive:hover{border-color:var(--ui-accent)!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--ui-accent) 15%,transparent)!important}
 html body.erp-system-ui #financeOverviewRoot button.fin-pending-trigger{position:absolute!important;inset:0!important;z-index:1!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:inherit!important;background:transparent!important;box-shadow:none!important;cursor:pointer!important}
 html body.erp-system-ui #financeOverviewRoot button.fin-pending-trigger:focus-visible{outline:2px solid var(--ui-accent)!important;outline-offset:2px!important}
 html body.erp-system-ui #financeOverviewRoot button.fin-pending-trigger:disabled{cursor:progress!important}
 html body.erp-system-ui #financeOverviewRoot .fin-pending-interactive .fin-text-link{position:relative!important;z-index:2!important}
}

/* Keep one gap between finance sections instead of stacking panel margins. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v3 #finance #financeToolbarMount .finance-toolbar{margin-bottom:0!important}
 html body.erp-system-ui.erp-beauty-v3 #finance #financeOverviewRoot{display:grid!important;gap:14px!important;margin:0!important}
 html body.erp-system-ui.erp-beauty-v3 #finance #financeOverviewRoot .fin-panel{margin:0!important}
 html body.erp-system-ui.erp-beauty-v3 #finance #financeOverviewRoot .fin-secondary-grid{margin:0!important}
 @media(min-width:1151px){
  html body.erp-system-ui #financeOverviewRoot .fin-secondary-grid{grid-template-columns:minmax(220px,.8fr) minmax(0,3fr)!important}
 }
 @media(max-width:600px){
  html body.erp-system-ui #financeOverviewRoot .fin-pending-grid{grid-template-columns:minmax(0,1fr)!important}
 }
}
