/* The mode and metrics share a single overview surface below the page tools. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #capital-fund #capitalFundRoot .cf-page-tools {
  box-sizing:border-box!important;min-width:0!important;max-width:100%!important;margin-top:0!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #capital-fund #capitalFundRoot .cf-summary-panel {
  box-sizing:border-box!important;min-width:0!important;max-width:100%!important;margin:0 0 16px!important;padding:14px!important;
  border:1px solid var(--ui-border,#e3e9f1)!important;border-radius:10px!important;background:var(--ui-surface,#fff)!important;box-shadow:none!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #capital-fund #capitalFundRoot .cf-summary-panel>.cf-mode-bar {
  min-width:0!important;max-width:100%!important;margin:0 0 12px!important;padding:0 0 12px!important;
  border:0!important;border-bottom:1px solid var(--ui-border-soft,#edf1f6)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #capital-fund #capitalFundRoot .cf-summary-panel>.cf-overview {margin:0!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #capital-fund #capitalFundRoot .cf-summary-panel>.cf-summary-note {margin:12px 0 0!important}
 @media(max-width:767px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #capital-fund #capitalFundRoot .cf-summary-panel {padding:12px!important;margin-bottom:12px!important}
 }
}

/* Both modes keep the same ledger alignment and ERP controls. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #capitalFundMask .cf-field>span {align-items:center!important;}
 html body.erp-system-ui #capitalFundMask :is(.cf-field>span,.cf-opening-label-wrap,.cf-mode-picker>legend)>.fin-icon {display:inline-flex!important;flex:0 0 18px!important;width:18px!important;height:18px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:var(--fin-blue)!important;}
 html body.erp-system-ui #capitalFundMask .cf-field[data-cf-money="purchaseUsed"]>span>.fin-icon {color:var(--fin-amber)!important;}
 html body.erp-system-ui #capitalFundMask .cf-field[data-cf-money="otherExpenses"]>span>.fin-icon {color:var(--fin-purple)!important;}
 html body.erp-system-ui #capitalFundMask .cf-mode-picker>legend {display:flex!important;align-items:center!important;gap:7px!important;}
 html body.erp-system-ui #capitalFundMask .cf-mode-choice b {display:flex!important;align-items:center!important;gap:7px!important;}
 html body.erp-system-ui #capitalFundMask .cf-mode-choice b>.fin-icon {display:inline-flex!important;flex:0 0 25px!important;width:25px!important;height:25px!important;padding:4px!important;border-radius:6px!important;background:var(--ui-accent-soft)!important;color:var(--fin-blue)!important;}
 html body.erp-system-ui #capitalFundMask .cf-mode-choice:has(input[value="expenses"]) b>.fin-icon {color:var(--fin-purple)!important;background:color-mix(in srgb,var(--fin-purple) 9%,var(--ui-surface))!important;}
 html body.erp-system-ui #capitalFundMask .cf-field>.cf-amount-control {display:block!important;position:relative!important;}
 html body.erp-system-ui #capitalFundMask .cf-amount-control>i {position:absolute!important;left:12px!important;top:50%!important;transform:translateY(-50%)!important;color:var(--ui-text-muted,#667085)!important;font-size:14px!important;font-style:normal!important;pointer-events:none!important;}
 html body.erp-system-ui #capitalFundMask .cf-amount-control>input {padding-left:32px!important;font-variant-numeric:tabular-nums!important;}
 html body.erp-system-ui #capitalFundMask [data-cf-mode="initialize"] .cf-form {gap:16px!important;}
 html body.erp-system-ui #capitalFundMask [data-cf-mode="initialize"] .cf-opening-preview {padding:14px!important;border-color:color-mix(in srgb,var(--fin-green) 22%,var(--ui-border))!important;background:color-mix(in srgb,var(--fin-green) 5%,var(--ui-surface))!important;}
 html body.erp-system-ui #capitalFundMask .cf-opening-label-wrap {display:inline-flex!important;align-items:center!important;gap:7px!important;min-width:0!important;}
 html body.erp-system-ui #capitalFundMask [data-cf-mode="initialize"] .cf-opening-preview output {font-size:25px!important;color:var(--fin-green)!important;}
 html body.erp-system-ui #capitalFundMask [data-cf-mode="initialize"] .cf-opening-preview output.cf-negative {color:var(--dm-negative,#c74855)!important;}
}
@layer erpTableSpacing {
 @media screen {
  html body.erp-system-ui #capitalFundRoot .cf-table :is(th,td):nth-child(3),
  html body.erp-system-ui #capitalFundRoot .cf-table .cf-posting-cell .cf-copy{text-align:center!important}
  html body.erp-system-ui #capitalFundRoot .cf-table .cf-posting-cell .cf-copy{margin-inline:auto!important}
  /* The four highlighted ledger columns share a centered header and value. */
  html body.erp-system-ui #capitalFundRoot .cf-table :is(th,td):nth-child(n+5):nth-child(-n+8),
  html body.erp-system-ui #capitalFundRoot .cf-table :is(.cf-money strong,.cf-money small,.cf-note>span,.cf-note>small,.cf-note>.cf-void-action){text-align:center!important}
  html body.erp-system-ui #capitalFundRoot .cf-table .cf-note>.cf-void-action{margin-inline:auto!important}
 }
}
@layer erpColorMode.overrides {
 @media(max-width:480px){
  html body.erp-system-ui #capitalFundMask .cf-dialog[data-cf-mode="opening-purchase"] .cf-opening-preview{flex-direction:column;align-items:stretch;gap:6px}
  html body.erp-system-ui #capitalFundMask .cf-dialog[data-cf-mode="opening-purchase"] .cf-opening-preview output{text-align:right}
 }
 /* Clear ledger colors; keep the shared finance pages' palette unchanged. */
 html body.erp-system-ui :is(#capitalFundRoot,#capitalFundMask){--fin-green:#16a34a!important;--fin-blue:#1677ff!important;--fin-amber:#faad14!important;--fin-purple:#722ed1!important;--cf-product-price:#f59e0b}
 html[data-erp-mode="dark"] body.erp-system-ui :is(#capitalFundRoot,#capitalFundMask){--fin-green:#22c55e!important;--fin-blue:#4096ff!important;--fin-amber:#ffc53d!important;--fin-purple:#a855f7!important;--cf-product-price:#ffc53d}
 html body.erp-system-ui #capital-fund>.mg-heading .fin-page-icon{--fin-page-accent:#1677ff!important}
 html[data-erp-mode="dark"] body.erp-system-ui #capital-fund>.mg-heading .fin-page-icon{--fin-page-accent:#4096ff!important}
 html body.erp-system-ui #capitalFundRoot .cf-overview-card.erp-tone-green{--erp-icon-ink:var(--fin-green)!important}
 html body.erp-system-ui #capitalFundRoot .cf-overview-card.erp-tone-blue{--erp-icon-ink:var(--fin-blue)!important}
 html body.erp-system-ui #capitalFundRoot .cf-overview-card.erp-tone-amber{--erp-icon-ink:var(--fin-amber)!important}
 html body.erp-system-ui #capitalFundRoot .cf-overview-card.erp-tone-violet{--erp-icon-ink:var(--fin-purple)!important}
 html body.erp-system-ui #capitalFundRoot .cf-ledger-title>.fin-icon{color:var(--fin-purple)!important}
 html body.erp-system-ui [data-capital-admin][hidden],html body.erp-system-ui #capitalFundWarning[hidden]{display:none!important}
 html body.erp-system-ui #capital-fund{padding:16px!important}
 html body.erp-system-ui #capitalFundRoot{color:var(--ui-text);min-width:0}
 html body.erp-system-ui :is(#capitalFundRoot,#capitalFundMask,#capitalFundWarning) .fin-icon{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;flex:none;vertical-align:middle}
 html body.erp-system-ui :is(#capitalFundRoot,#capitalFundMask,#capitalFundWarning) .fin-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 html body.erp-system-ui :is(#capitalFundRoot,#capitalFundMask) .erp-primary .fin-icon{color:inherit!important;background:transparent!important}
 html body.erp-system-ui #capitalFundRoot :is(.cf-risk,.cf-negative),html body.erp-system-ui #capitalFundRoot .cf-risk strong{color:var(--dm-negative,#c74855)!important}
 html body.erp-system-ui #capitalFundRoot .cf-positive{color:var(--fin-green)!important;-webkit-text-fill-color:currentColor!important}
 html body.erp-system-ui #capitalFundRoot .cf-muted{color:var(--ui-muted)}
 html body.erp-system-ui #capitalFundRoot .cf-summary-note{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0 18px;font-size:12px;color:var(--ui-muted)}
 html body.erp-system-ui #capitalFundRoot .cf-summary-note b{font-weight:500}
 html body.erp-system-ui #capitalFundRoot .cf-overview{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px!important;margin:0 0 16px!important}
 html body.erp-system-ui #capitalFundRoot .cf-overview-card{box-sizing:border-box!important;min-width:0!important;min-height:112px!important;margin:0!important;padding:13px 14px!important;gap:7px!important;align-items:flex-start!important;justify-content:flex-start!important;text-align:left!important;border-radius:10px!important}
 html body.erp-system-ui #capitalFundRoot .cf-overview-card .fin-kpi-label{display:flex!important;align-items:center!important;gap:7px!important;min-width:0;margin:0!important;padding:0!important;font-size:12px!important;line-height:1.5!important}
 html body.erp-system-ui #capitalFundRoot .cf-overview-card .fin-icon{width:24px!important;height:24px!important;flex:0 0 24px!important;border-radius:6px!important}
 html body.erp-system-ui #capitalFundRoot .cf-overview-card .fin-icon svg{width:16px!important;height:16px!important}
 html body.erp-system-ui #capitalFundRoot .cf-overview-card strong{display:block!important;max-width:100%;margin:0!important;font-size:24px!important;line-height:1.3!important;font-weight:600!important;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.4px}
 html body.erp-system-ui #capitalFundRoot .cf-balance-status{margin:0!important;color:var(--ui-muted)!important;font-size:11px!important;line-height:1.4!important}
 html body.erp-system-ui #capitalFundRoot .cf-balance:has(.fin-loss) .cf-balance-status{color:var(--dm-negative,#c74855)!important}
 @media(max-width:1200px) and (min-width:901px){html body.erp-system-ui #capitalFundRoot .cf-overview-card{padding:13px 10px!important}html body.erp-system-ui #capitalFundRoot .cf-overview-card strong{font-size:20px!important}}
 @media(max-width:900px){html body.erp-system-ui #capitalFundRoot .cf-overview{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
 @media(max-width:600px){html body.erp-system-ui #capitalFundRoot .cf-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}html body.erp-system-ui #capitalFundRoot .cf-overview-card{padding:12px!important;min-height:100px!important}html body.erp-system-ui #capitalFundRoot .cf-overview-card strong{font-size:20px!important}}
 html body.erp-system-ui #capitalFundRoot .fin-calc-card{display:flex!important;flex-direction:column!important}
 html body.erp-system-ui #capitalFundRoot .fin-calc-card strong{align-self:auto!important;text-align:left!important}

 html body.erp-system-ui #capitalFundRoot .cf-ledger{border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);min-width:0;overflow:hidden}
 html body.erp-system-ui #capitalFundRoot .cf-ledger-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px}
 html body.erp-system-ui #capitalFundRoot .cf-ledger-title{display:flex;align-items:center;gap:9px;min-width:0}
 html body.erp-system-ui #capitalFundRoot .cf-ledger-title>.fin-icon{width:30px;height:30px;border-radius:8px;background:color-mix(in srgb,var(--fin-purple) 10%,var(--ui-surface))}
 html body.erp-system-ui #capitalFundRoot .cf-ledger-title h3{margin:0;font-size:15px;font-weight:600;line-height:1.5;color:var(--ui-text)}
 html body.erp-system-ui #capitalFundRoot .cf-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:23px;box-sizing:border-box;padding:0 7px;background:var(--ui-field-surface);border:1px solid var(--ui-border);border-radius:6px;font-size:12px;font-variant-numeric:tabular-nums;color:var(--ui-muted)}
 html body.erp-system-ui #capitalFundRoot .cf-count[hidden]{display:none}
 html body.erp-system-ui #capitalFundRoot .cf-actions{display:flex;gap:8px;flex-wrap:wrap}
 html body.erp-system-ui #capitalFundRoot .cf-toolbar{padding:0 16px 16px;border-bottom:1px solid var(--ui-border)}
 html body.erp-system-ui #capitalFundRoot .cf-toolbar form{display:flex;align-items:end;gap:16px;flex-wrap:wrap;min-width:0;max-width:100%}
 html body.erp-system-ui #capitalFundRoot .cf-toolbar :is(label,.cf-date-control,.cf-quick-control){display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--ui-label);min-width:0;max-width:100%}
 html body.erp-system-ui #capitalFundRoot .cf-toolbar select{min-width:135px}
 html body.erp-system-ui #capitalFundRoot .cf-search{flex:1 1 220px;width:240px;min-width:160px}
 html body.erp-system-ui #capitalFundRoot .cf-quick-control{gap:9px}
 html body.erp-system-ui #capitalFundRoot .cf-range-buttons{display:grid!important;grid-template-columns:repeat(3,max-content)!important;align-items:center!important;gap:10px!important;box-sizing:border-box!important;width:max-content!important;max-width:100%!important;height:auto!important;min-height:36px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
 html body.erp-system-ui #capitalFundRoot .cf-range-buttons>button{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:64px!important;width:auto!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0 16px!important;line-height:1.4!important;font-size:12px!important;font-weight:500!important;white-space:nowrap!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;-webkit-text-fill-color:currentColor!important;box-shadow:none!important}
 html body.erp-system-ui #capitalFundRoot .cf-range-buttons>button:hover:not(:disabled){border-color:var(--ui-accent)!important;background:var(--ui-accent-soft)!important}
 html body.erp-system-ui #capitalFundRoot .cf-range-buttons>button.active{border-color:var(--ui-accent)!important;background:var(--ui-accent)!important;color:var(--ui-button-text,#fff)!important}
 html body.erp-system-ui #capitalFundRoot .cf-range-buttons>button.active:hover:not(:disabled){border-color:var(--ui-accent-hover)!important;background:var(--ui-accent-hover)!important}
 html body.erp-system-ui #capitalFundRoot .cf-range-buttons>button:focus-visible{outline:2px solid var(--ui-accent)!important;outline-offset:2px!important}
 html body.erp-system-ui #capitalFundRoot .cf-table-scroll{overflow:auto;background:var(--ui-surface);border:0;border-radius:0;scrollbar-width:thin}
 html body.erp-system-ui #capitalFundRoot .cf-table{width:100%;min-width:1280px;border-collapse:collapse;table-layout:fixed;font-size:12px;white-space:nowrap;line-height:1.6}
 html body.erp-system-ui #capitalFundRoot .cf-table :is(th,td){padding:12px 16px;text-align:left;border-bottom:1px solid var(--ui-border);vertical-align:middle}
 html body.erp-system-ui #capitalFundRoot .cf-table th{background:var(--ui-table-head-bg,var(--ui-field-surface));font-weight:500;color:var(--ui-label)}
 html body.erp-system-ui #capitalFundRoot .cf-table tbody tr{transition:background-color var(--ui-motion,150ms)}
 html body.erp-system-ui #capitalFundRoot .cf-table tbody tr:hover{background:color-mix(in srgb,var(--ui-accent) 3%,var(--ui-surface))}
 html body.erp-system-ui #capitalFundRoot .cf-table small{display:block;color:var(--ui-muted);margin-top:4px;font-size:11px;white-space:normal;line-height:1.6}
 html body.erp-system-ui #capitalFundRoot .cf-table tr:last-child td{border-bottom:0}
 html body.erp-system-ui #capitalFundRoot .cf-table .cf-money{text-align:right;font-variant-numeric:tabular-nums}
 html body.erp-system-ui #capitalFundRoot .cf-table :is(th,td):nth-child(5){padding-inline:8px}
 html body.erp-system-ui #capitalFundRoot .cf-table .cf-money{padding-right:24px}
 html body.erp-system-ui #capitalFundRoot .cf-table :is(th,td):is(:nth-child(7),:nth-child(8)){padding-left:24px;border-left:1px solid var(--ui-border-soft,var(--ui-border))}
 html body.erp-system-ui #capitalFundRoot .cf-table .cf-money strong{color:inherit!important;-webkit-text-fill-color:currentColor!important;font-size:17px!important;line-height:1.4!important;font-weight:600!important;white-space:nowrap}
 html body.erp-system-ui #capitalFundRoot .cf-date-text{font-size:12px;font-weight:500}
 html body.erp-system-ui #capitalFundRoot{--cf-order-link:#1677ff;--cf-order-link-hover:#0958d9}
 html[data-erp-mode="dark"] body.erp-system-ui #capitalFundRoot{--cf-order-link:rgb(104 162 243);--cf-order-link-hover:rgb(104 157 243)}
 html body.erp-system-ui #capitalFundRoot .cf-shop-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ui-text)}
 html body.erp-system-ui #capitalFundRoot .cf-shop-name[title]:not([title=""]){color:var(--cf-order-link)!important;-webkit-text-fill-color:currentColor!important}
 html body.erp-system-ui #capitalFundRoot .cf-posting-cell{font-variant-numeric:tabular-nums}
 html body.erp-system-ui #capitalFundRoot .cf-type{display:inline-flex;align-items:center;gap:5px;border:1px solid color-mix(in srgb,var(--cf-tone) 42%,var(--ui-surface));border-radius:5px;background:color-mix(in srgb,var(--cf-tone) 10%,var(--ui-surface));padding:2px 7px;color:var(--cf-tone)!important;-webkit-text-fill-color:currentColor!important;font-size:11px;font-weight:600;line-height:1.6;white-space:nowrap}
 html body.erp-system-ui #capitalFundRoot [data-tone=green]{--cf-tone:var(--fin-green)}
 html body.erp-system-ui #capitalFundRoot [data-tone=amber]{--cf-tone:var(--fin-amber)}
 html body.erp-system-ui #capitalFundRoot [data-tone=violet]{--cf-tone:var(--fin-purple)}
 html body.erp-system-ui #capitalFundRoot [data-tone=blue]{--cf-tone:var(--fin-blue)}
 html body.erp-system-ui #capitalFundRoot [data-tone=muted]{--cf-tone:var(--ui-muted)}
 html body.erp-system-ui #capitalFundRoot :is(.cf-ledger-subject,.cf-product){display:flex;gap:10px;align-items:center;min-width:0}
 html body.erp-system-ui #capitalFundRoot :is(.cf-ledger-subject,.cf-product)>div{min-width:0}
 html body.erp-system-ui #capitalFundRoot :is(.cf-ledger-subject,.cf-product) b{font-size:12px;font-weight:500;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
 html body.erp-system-ui #capitalFundRoot .cf-products{display:flex;flex-direction:column;gap:10px;min-width:0}
 html body.erp-system-ui #capitalFundRoot .cf-products .cf-product+.cf-product{border-top:1px solid var(--ui-border);padding-top:10px}
 html body.erp-system-ui #capitalFundRoot .cf-product>.cf-thumb{width:48px;height:64px;border-radius:6px;background:var(--ui-field-surface)}
 html body.erp-system-ui #capitalFundRoot .cf-product-info{flex:1;min-width:0;font-size:12px!important;line-height:1.6!important;color:var(--ui-text)!important}
 html body.erp-system-ui #capitalFundRoot .cf-product-info>div{display:flex;align-items:baseline;min-width:0;margin:0!important;line-height:1.6!important}
 html body.erp-system-ui #capitalFundRoot .cf-product-info>div>span:first-child{flex:none;color:var(--ui-text)!important;font-weight:400!important}
 html body.erp-system-ui #capitalFundRoot .cf-product-info .cf-product-amount{color:var(--cf-product-price)!important;-webkit-text-fill-color:currentColor!important;font-variant-numeric:tabular-nums;font-weight:500!important}
 html body.erp-system-ui #capitalFundRoot :is(.cf-copy,.cf-product-name,.cf-product-info .legacy-prod-title){display:block!important;min-width:0;max-width:100%;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-family:inherit!important;font-size:12px!important;font-weight:400!important;line-height:1.6!important;letter-spacing:0!important;color:var(--cf-order-link)!important;-webkit-text-fill-color:currentColor!important;text-align:left!important;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html body.erp-system-ui #capitalFundRoot :is(.cf-copy,.cf-product-info .legacy-prod-title){cursor:pointer}
 html body.erp-system-ui #capitalFundRoot :is(.cf-copy,.cf-product-info .legacy-prod-title):hover{color:var(--cf-order-link-hover)!important;text-decoration:underline!important}
 html body.erp-system-ui #capitalFundRoot :is(.cf-copy,.cf-product-info .legacy-prod-title):focus-visible{outline:2px solid var(--ui-accent)!important;outline-offset:2px!important}
 html body.erp-system-ui #capitalFundRoot .cf-product-info :is(.legacy-prod-title,.cf-product-name){flex:1}
 html body.erp-system-ui #capitalFundRoot .cf-record-symbol{display:flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;border-radius:7px;background:color-mix(in srgb,var(--cf-tone) 8%,var(--ui-surface))}
 html body.erp-system-ui #capitalFundRoot .cf-record-symbol .fin-icon{color:var(--cf-tone)!important}
 html body.erp-system-ui #capitalFundRoot .cf-proof-thumbs{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}
 html body.erp-system-ui #capitalFundRoot .cf-thumb{display:flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:38px;height:38px;padding:0;border:1px solid var(--ui-border);border-radius:6px;background:var(--ui-field-surface);overflow:hidden}
 html body.erp-system-ui #capitalFundRoot button.cf-thumb{cursor:zoom-in}
 html body.erp-system-ui #capitalFundRoot .cf-thumb img{width:100%;height:100%;object-fit:contain}
 html body.erp-system-ui #capitalFundRoot :is(.cf-order,.cf-link){border:0;background:transparent;padding:2px 0;color:var(--ui-accent-hover);font:inherit;cursor:pointer}
 html body.erp-system-ui #capitalFundRoot .cf-order{display:block;margin-top:5px;font-weight:400;max-width:100%;overflow:hidden;text-overflow:ellipsis}
 html body.erp-system-ui #capitalFundRoot .cf-void-action{color:var(--fin-red);display:block;margin-top:5px}
 html body.erp-system-ui #capitalFundRoot .cf-note>span,html body.erp-system-ui #capitalFundRoot .cf-note small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html body.erp-system-ui #capitalFundRoot .cf-message{color:var(--ui-muted);font-size:12px;line-height:1.8;padding:0 16px}
 html body.erp-system-ui #capitalFundRoot .cf-message:empty{display:none}
 html body.erp-system-ui #capitalFundRoot .cf-start{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:10px;text-align:center;padding:30px 18px;color:var(--ui-label)}
 html body.erp-system-ui #capitalFundRoot .cf-start h3{font-size:18px;font-weight:500;margin:12px 0}
 html body.erp-system-ui #capitalFundRoot .cf-start p{font-size:13px;line-height:1.8}
 html body.erp-system-ui #capitalFundRoot .cf-start small{display:block;color:var(--ui-muted);margin-top:12px;font-size:12px}
 html body.erp-system-ui #capitalFundRoot .cf-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:140px;padding:24px 16px;color:var(--ui-muted);font-size:12px}
 html body.erp-system-ui #capitalFundRoot .cf-empty>.fin-icon{width:36px;height:36px;background:var(--ui-field-surface);border-radius:9px}
 html body.erp-system-ui #capitalFundRoot .cf-large-icon{display:inline-flex;padding:12px;background:var(--ui-accent-soft);border-radius:12px;color:var(--ui-accent-hover)}
 html body.erp-system-ui #capitalFundRoot .cf-ledger>.erp-pagination{border:0!important;border-top:1px solid var(--ui-border)!important;border-radius:0!important;margin:0!important;padding:12px 16px!important;background:var(--ui-surface)!important;gap:10px!important}
 html body.erp-system-ui #capitalFundRoot .cf-ledger .erp-pagination-arrow{width:auto!important;min-width:32px!important;padding:0 8px!important;gap:3px!important}
 html body.erp-system-ui #capitalFundRoot .cf-ledger .erp-pagination-arrow:after{content:attr(aria-label)!important;font-size:12px!important;font-family:inherit!important}

 html body.erp-system-ui #capitalFundWarning{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;box-sizing:border-box;padding:12px 16px;margin:12px 16px;line-height:20px;border:1px solid color-mix(in srgb,#c74855 30%,var(--ui-border));border-radius:8px;background:var(--ui-surface);color:var(--dm-negative,#c74855);font-size:12px;flex-wrap:wrap}
 html body.erp-system-ui #capitalFundWarning button{border:0;background:transparent;color:var(--ui-accent-hover);font:inherit;cursor:pointer}
 html body.erp-system-ui .nav .cf-nav-warning:after{content:none!important;display:none!important}
 html body.erp-system-ui .nav [data-capital-nav-label]{display:inline-flex!important;align-items:center!important;gap:6px;white-space:nowrap;min-width:0}
 html body.erp-system-ui .nav .cf-nav-badge{display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;flex:none;min-width:17px;height:17px;padding:0 4px;border:0;border-radius:10px;font:600 10px/17px Arial;vertical-align:middle;-webkit-text-fill-color:currentColor!important}
 html body.erp-system-ui .nav .cf-nav-badge[hidden]{display:none!important}
 html body.erp-system-ui #capitalFundMask{z-index:1090}
 html body.erp-system-ui #capitalFundMask>.cf-dialog{width:min(520px,calc(100vw - 32px))!important;min-width:0!important;padding:0!important;max-height:calc(100dvh - 32px)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
 html body.erp-system-ui #capitalFundMask>.cf-dialog[data-cf-mode=expense]{width:min(500px,calc(100vw - 32px))!important}
 html body.erp-system-ui #capitalFundMask>.cf-dialog:focus{outline:none!important}
 html body.erp-system-ui #capitalFundMask .modal-head{flex:none!important;min-height:60px!important;padding:12px 16px!important}
 html body.erp-system-ui #capitalFundMask .modal-head b{display:flex;align-items:center;gap:9px;font-size:15px!important}
 html body.erp-system-ui #capitalFundMask .cf-dialog-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:none;background:var(--ui-accent-soft);border-radius:8px}
 html body.erp-system-ui #capitalFundMask [data-cf-mode=expense] .cf-dialog-icon{background:color-mix(in srgb,var(--fin-purple) 10%,var(--ui-surface))}
 html body.erp-system-ui #capitalFundMask .modal-body{padding:16px!important;min-height:0!important;overflow:auto!important}
 html body.erp-system-ui #capitalFundMask .cf-form{display:grid;gap:13px}
 html body.erp-system-ui #capitalFundMask .cf-field{display:flex;flex-direction:column;gap:7px;color:var(--ui-label);font-size:12px;min-width:0}
 html body.erp-system-ui #capitalFundMask .cf-field>span{display:flex;align-items:baseline;gap:7px}
 html body.erp-system-ui #capitalFundMask :is(.cf-field>span,.cf-upload-head) small{font-size:11px;font-weight:400;color:var(--ui-muted)}
 html body.erp-system-ui #capitalFundMask .cf-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0}
 html body.erp-system-ui #capitalFundMask .cf-form :is(input,select,textarea){box-sizing:border-box;width:100%;min-width:0}
 html body.erp-system-ui #capitalFundMask .cf-form-help{font-size:11px;line-height:1.7;color:var(--ui-muted);margin:0}
 html body.erp-system-ui #capitalFundMask footer{display:flex;justify-content:flex-end;gap:8px;flex:none!important;padding:12px 16px!important;margin:0!important;border-top:1px solid var(--ui-border);background:var(--ui-surface)}
 html body.erp-system-ui #capitalFundMask .cf-error{color:var(--dm-negative,#c74855);font-size:12px;line-height:1.6;margin:0}
 html body.erp-system-ui #capitalFundMask .cf-error:empty{display:none}
 html body.erp-system-ui #capitalFundMask .cf-opening-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-field-surface);color:var(--ui-label);font-size:12px}
 html body.erp-system-ui #capitalFundMask .cf-opening-preview output{font-size:21px;font-weight:600;color:var(--ui-text);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0}
 html body.erp-system-ui #capitalFundMask .cf-opening-preview output.cf-negative{color:var(--dm-negative,#c74855)}
 html body.erp-system-ui #capitalFundMask .cf-upload{min-width:0;display:grid;gap:8px}
 html body.erp-system-ui #capitalFundMask .cf-upload-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--ui-label);font-size:12px}
 html body.erp-system-ui #capitalFundMask .cf-upload-head>span:first-child{display:flex;align-items:baseline;gap:7px}
 html body.erp-system-ui #capitalFundMask [data-cf-proof-count]{font-size:11px;color:var(--ui-muted);font-variant-numeric:tabular-nums}
 html body.erp-system-ui #capitalFundMask .cf-upload input[type=file][hidden]{display:none!important}
 html body.erp-system-ui #capitalFundMask .cf-upload-pick{display:flex;align-items:center;justify-content:center;gap:10px;box-sizing:border-box;width:100%;min-width:0;height:auto!important;min-height:76px;padding:12px;border:1px dashed var(--ui-border)!important;border-radius:8px!important;background:var(--ui-field-surface)!important;color:var(--ui-label)!important;cursor:pointer;font:inherit;transition:background-color var(--ui-motion,150ms),border-color var(--ui-motion,150ms)}
 html body.erp-system-ui #capitalFundMask .cf-upload-pick>.fin-icon{width:30px;height:30px;flex-basis:30px;border-radius:8px;background:var(--ui-accent-soft);color:var(--ui-accent)!important}
 html body.erp-system-ui #capitalFundMask .cf-upload-pick>span:last-child{display:flex;flex-direction:column;gap:4px;text-align:left;white-space:normal}
 html body.erp-system-ui #capitalFundMask .cf-upload-pick b{font-size:12px;font-weight:500;color:var(--ui-label)}
 html body.erp-system-ui #capitalFundMask .cf-upload-pick small{font-size:11px;color:var(--ui-muted);line-height:1.5}
 html body.erp-system-ui #capitalFundMask .cf-upload-pick:hover:not(:disabled),html body.erp-system-ui #capitalFundMask .is-dragover .cf-upload-pick{border-color:var(--ui-accent);background:var(--ui-accent-soft)!important}
 html body.erp-system-ui #capitalFundMask .cf-upload-pick:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
 html body.erp-system-ui #capitalFundMask .cf-upload-pick:disabled{opacity:.55;cursor:default}
 html body.erp-system-ui #capitalFundMask .cf-upload-previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-width:0}
 html body.erp-system-ui #capitalFundMask .cf-upload-previews:empty{display:none}
 html body.erp-system-ui #capitalFundMask .cf-upload-previews>div{position:relative;min-width:0}
 html body.erp-system-ui #capitalFundMask .cf-upload-previews img{display:block;box-sizing:border-box;width:100%;height:72px;object-fit:contain;border:1px solid var(--ui-border);border-radius:6px;background:var(--ui-field-surface)}
 html body.erp-system-ui #capitalFundMask .cf-upload-previews button{position:absolute;top:3px;right:3px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;border:1px solid var(--ui-border);background:var(--ui-surface);color:var(--ui-text);padding:0;font-size:16px;cursor:pointer}
 html body.erp-system-ui #capitalFundMask .cf-upload-previews small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ui-muted);font-size:11px;margin-top:4px}
 @media(max-width:700px){html body.erp-system-ui #capital-fund{padding:12px!important}}
 @media(max-width:640px){
  html body.erp-system-ui #capitalFundRoot .cf-ledger-head{padding:12px}
  html body.erp-system-ui #capitalFundRoot .cf-actions{width:100%;gap:6px}
  html body.erp-system-ui #capitalFundRoot .cf-actions>button{flex:1;justify-content:center;padding-left:7px!important;padding-right:7px!important}
  html body.erp-system-ui #capitalFundRoot .cf-toolbar{padding:0 12px 12px}
  html body.erp-system-ui #capitalFundRoot .cf-toolbar form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 10px;width:100%}
  html body.erp-system-ui #capitalFundRoot .cf-toolbar form>:is(.cf-date-control,.cf-quick-control,label:not(.cf-search)){grid-column:1 / -1}
  html body.erp-system-ui #capitalFundRoot .cf-search{width:100%;min-width:0}
  html body.erp-system-ui #capitalFundRoot .cf-range-buttons{grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important}
  html body.erp-system-ui #capitalFundRoot .cf-range-buttons>button{min-width:0!important;width:100%!important;height:38px!important;min-height:38px!important;padding:0 8px!important}
  html body.erp-system-ui #capitalFundRoot .cf-date-control .erp-date-range{width:100%}
  html body.erp-system-ui #capitalFundRoot .cf-ledger>.erp-pagination{padding:12px!important;flex-wrap:wrap!important}
  html body.erp-system-ui #capitalFundRoot .cf-ledger .erp-pagination-controls{justify-content:space-between!important;gap:6px!important;width:100%!important}
  html body.erp-system-ui #capitalFundRoot .cf-ledger .erp-pagination-jump,html body.erp-system-ui #capitalFundRoot .cf-ledger .erp-pagination-arrow:after{display:none!important}
 }
 @media(max-width:600px){html body.erp-system-ui #capitalFundRoot .cf-overview>.cf-balance{grid-column:1 / -1!important;min-height:112px!important}html body.erp-system-ui #capitalFundRoot .cf-overview>.cf-balance strong{font-size:28px!important}}
 @media(max-width:400px){
  html body.erp-system-ui #capitalFundRoot .fin-calc-card strong{font-size:18px!important}
  html body.erp-system-ui #capitalFundMask .cf-form-row{grid-template-columns:1fr;gap:13px}
 }
}

@layer erpColorMode.overrides {
 html body.erp-system-ui #capitalFundRoot .cf-withdraw-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
 html body.erp-system-ui #capitalFundRoot .cf-type[data-tone="rose"]{color:var(--dm-negative,#c74855);background:color-mix(in srgb,var(--dm-negative,#c74855) 9%,var(--ui-surface))}
}

@layer erpColorMode.overrides {
 @media(max-width:1450px) and (min-width:901px){html body.erp-system-ui #capitalFundRoot .cf-overview-card strong{font-size:20px!important}}
 @media(max-width:1200px) and (min-width:601px){html body.erp-system-ui #capitalFundRoot .cf-overview{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
}
@layer erpColorMode.overrides {
 @media(max-width:640px){html body.erp-system-ui #capitalFundRoot .cf-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}}
 @media(max-width:370px){html body.erp-system-ui #capitalFundRoot .cf-overview-card:not(.cf-balance) strong{font-size:18px!important;white-space:normal!important;overflow-wrap:anywhere!important}}
}

@layer erpColorMode.overrides {
 html body.erp-system-ui #capitalFundRoot .cf-mode-bar{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 16px!important;padding:12px 14px!important;border:1px solid var(--ui-border,#e3e9f1)!important;border-radius:10px!important;background:var(--ui-surface,#fff)!important;box-shadow:none!important}
 html body.erp-system-ui #capitalFundRoot .cf-mode-bar>span{display:flex!important;align-items:center!important;gap:7px!important;color:var(--ui-label)!important;font-size:13px!important}
 html body.erp-system-ui #capitalFundRoot .cf-mode-bar b{font-weight:600!important}
 html body.erp-system-ui #capitalFundRoot .cf-overview.cf-expenses-overview{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 html body.erp-system-ui #capitalFundRoot .cf-table.cf-expenses-table{min-width:1000px!important}
 html body.erp-system-ui #capitalFundRoot .cf-actions>button[hidden],html body.erp-system-ui #capitalFundMask [data-cf-opening-investment][hidden]{display:none!important}
 html body.erp-system-ui #capitalFundMask .cf-mode-picker{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;min-width:0!important;padding:0!important;margin:0 0 16px!important;border:0!important}
 html body.erp-system-ui #capitalFundMask .cf-mode-picker>legend{padding:0!important;margin:0 0 9px!important;color:var(--ui-label)!important;font-size:13px!important;font-weight:600!important}
 html body.erp-system-ui #capitalFundMask .cf-mode-choice{display:flex!important;align-items:flex-start!important;gap:9px!important;min-width:0!important;padding:13px 12px!important;border:1px solid var(--ui-border)!important;border-radius:10px!important;background:var(--ui-field-surface,var(--ui-surface))!important;cursor:pointer!important}
 html body.erp-system-ui #capitalFundMask .cf-mode-choice:has(input:checked){border-color:var(--ui-accent)!important;background:color-mix(in srgb,var(--ui-accent) 7%,var(--ui-surface))!important}
 html body.erp-system-ui #capitalFundMask .cf-mode-choice:focus-within{outline:2px solid var(--ui-accent)!important;outline-offset:2px!important}
 html body.erp-system-ui #capitalFundMask .cf-mode-choice input[type="radio"]{appearance:auto!important;width:16px!important;height:16px!important;min-width:16px!important;flex:0 0 16px!important;margin:2px 0 0!important;padding:0!important;accent-color:var(--ui-accent)!important;box-shadow:none!important}
 html body.erp-system-ui #capitalFundMask .cf-mode-choice>span{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important}
 html body.erp-system-ui #capitalFundMask .cf-mode-choice b{font-size:13px!important;font-weight:600!important;line-height:1.5!important;color:var(--ui-text)!important}
 html body.erp-system-ui #capitalFundMask .cf-mode-choice small{font-size:12px!important;line-height:1.6!important;color:var(--ui-label)!important}
 @media(max-width:1200px){html body.erp-system-ui #capitalFundRoot .cf-overview.cf-expenses-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
 @media(max-width:480px){html body.erp-system-ui #capitalFundMask .cf-mode-picker{grid-template-columns:minmax(0,1fr)!important}}
}

/* Phone ledger filters share one spacing rhythm and a compact action row. */
@layer erpColorMode.overrides {
 @media(max-width:767px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #capital-fund #capitalFundRoot .cf-page-tools.erp-tool-row.erp-tools-combined {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;padding:12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #capital-fund #capitalFundRoot .cf-page-tools.erp-tool-row.erp-tools-combined>[data-cf-filters] {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important;margin:0!important;padding:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #capital-fund #capitalFundRoot .cf-page-tools.erp-tool-row.erp-tools-combined>[data-cf-filters]>:is(label,.cf-quick-control,.cf-date-control) {display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0!important;width:100%!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #capital-fund #capitalFundRoot .cf-page-tools.erp-tool-row.erp-tools-combined .cf-range-buttons {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #capital-fund #capitalFundRoot .cf-page-tools.erp-tool-row.erp-tools-combined .cf-range-buttons>button {flex:initial!important;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;padding:0 6px!important;font-size:13px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #capital-fund #capitalFundRoot .cf-page-tools.erp-tool-row.erp-tools-combined .cf-date-control .erp-date-range {width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #capital-fund #capitalFundRoot .cf-page-tools.erp-tool-row.erp-tools-combined .cf-actions {display:grid!important;grid-template-columns:1.3fr .9fr 1.2fr!important;align-items:stretch!important;gap:8px!important;width:100%!important;min-width:0!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #capital-fund #capitalFundRoot .cf-page-tools.erp-tool-row.erp-tools-combined .cf-actions>button:not([hidden]) {flex:initial!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0 6px!important;font-size:13px!important;line-height:1.5!important;white-space:normal!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #capital-fund #capitalFundRoot .cf-page-tools.erp-tool-row.erp-tools-combined .cf-actions>.erp-tools-more {position:relative!important;flex:initial!important;width:100%!important;min-width:0!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #capital-fund #capitalFundRoot .cf-page-tools.erp-tool-row.erp-tools-combined .cf-actions>.erp-tools-more>summary {box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0 6px!important;font-size:12px!important;white-space:nowrap!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #capital-fund #capitalFundRoot .cf-page-tools.erp-tool-row.erp-tools-combined .cf-actions>.erp-tools-more>summary>svg {width:13px!important;height:13px!important;flex:0 0 13px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #capital-fund #capitalFundRoot .cf-page-tools.erp-tool-row.erp-tools-combined .cf-actions>.erp-tools-more[open] {grid-column:1/-1!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #capital-fund #capitalFundRoot .cf-page-tools.erp-tool-row.erp-tools-combined .cf-actions>.erp-tools-more[open]>.erp-tools-popover {position:static!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important;margin-top:8px!important;padding:10px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #capital-fund #capitalFundRoot .cf-page-tools.erp-tool-row.erp-tools-combined .erp-tools-popover>button:not([hidden]) {box-sizing:border-box!important;width:100%!important;min-width:0!important;height:auto!important;min-height:44px!important;justify-content:center!important;white-space:normal!important;font-size:12px!important}
 }
 @media(max-width:360px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #capital-fund #capitalFundRoot .cf-page-tools.erp-tool-row.erp-tools-combined .cf-actions {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #capital-fund #capitalFundRoot .cf-page-tools.erp-tool-row.erp-tools-combined .cf-actions>.erp-tools-more {grid-column:1/-1!important}
 }
}
