/* Shared Finance Center visual rhythm; never targets global navigation or Funds Center. */
#page-finance{--fcu-ink:#172b4d;--fcu-muted:#74839b;--fcu-blue:#246bfa;--fcu-line:#e7edf5;--fcu-surface:#f7f9fc}
#finance-tab-content.fcu-workspace{color:var(--fcu-ink);line-height:1.55;min-width:0}
#finance-tab-content.fcu-workspace :is(.bv-filter,.fpv2-filters,.rv-filters,.sv-filterbar,.pv-filterbar,.fr-toolbar,.rx-toolbar){border:1px solid #e7edf5!important;border-radius:12px!important;box-shadow:0 2px 8px #17395f03!important}
#finance-tab-content.fcu-workspace :is(.bv-list,.fpv2-panel,.rv-panel,.sv-panel,.pv-panel,.fr-panel,.rx-panel,.rc-panel){border:1px solid #e7edf5!important;border-radius:12px!important;box-shadow:0 3px 12px #17395f04!important}
#finance-tab-content.fcu-workspace .fcu-stat{border:1px solid #e7edf5!important;border-radius:12px!important;background:#fff!important;box-shadow:0 3px 12px #17395f04!important;min-width:0;position:relative}
#finance-tab-content.fcu-workspace .fcu-stat :is(b,strong){font-variant-numeric:tabular-nums;letter-spacing:-.35px}
#finance-tab-content.fcu-workspace :is(th,thead td){background:#f7f9fd!important;color:#667992!important;font-size:12px!important;font-weight:600!important;border-bottom:1px solid #e7edf5!important;line-height:1.6!important}
#finance-tab-content.fcu-workspace :is(td){border-bottom-color:#edf1f7!important;line-height:1.65!important}
#finance-tab-content.fcu-workspace :is(.fpv2-location,.pv-address,.bv-address,.rv-resource,.rx-object){white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;line-height:1.65}
/* The bill's location column is deliberately readable in the list, without a tooltip. */
#finance-container.bills-reference-pc #tbody tr td:nth-child(4){min-width:240px!important;max-width:340px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important}
#finance-tab-content.fcu-workspace :is(button,input,select,textarea):focus-visible,.fcu-dialog :is(button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #a8c8ff!important;outline-offset:2px!important}
.fcu-dialog{--fcu-ink:#172b4d;--fcu-muted:#74839b;--fcu-blue:#246bfa;--fcu-line:#e7edf5;color:var(--fcu-ink)!important;background:#fff!important;border:1px solid #e2e9f3!important;border-radius:13px!important;box-shadow:0 24px 80px #142c522b!important;width:min(880px,calc(100vw - 40px))!important;max-width:880px!important;max-height:85vh!important;max-height:85dvh!important;overflow:auto!important;overscroll-behavior:contain;box-sizing:border-box!important;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif!important}
.fcu-dialog :is(h2,h3,p){overflow-wrap:anywhere}
.fcu-dialog-head{display:flex!important;align-items:center!important;gap:12px!important;padding:18px 22px!important;margin:0!important;border-bottom:1px solid var(--fcu-line)!important;background:#fff!important;position:sticky!important;top:0;z-index:3;flex-shrink:0!important;border-radius:12px 12px 0 0!important}
.fcu-dialog-head :is(h2,h3,strong,b,[class$="title"]){font-size:17px!important;font-weight:650!important;color:var(--fcu-ink)!important;margin:0!important;line-height:1.5!important}
.fcu-dialog-icon{display:inline-flex!important;align-items:center;justify-content:center;flex:none;width:36px;height:36px;border-radius:10px;background:#edf4ff;color:var(--fcu-blue)}
.fcu-dialog-icon svg{width:23px;height:23px}
.fcu-icon-check,.fcu-icon-cash{background:#e9faf2;color:#13a477}.fcu-icon-chart,.fcu-icon-calculator{background:#f0edff;color:#7260d5}.fcu-icon-archive{background:#eef2f7;color:#718399}
.fcu-dialog-body{padding:20px 22px!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;flex:1!important;box-sizing:border-box!important}
.fcu-dialog-foot{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;padding:14px 22px!important;margin:0!important;border-top:1px solid var(--fcu-line)!important;background:#fff!important;position:sticky;bottom:0;z-index:3;flex-shrink:0!important;border-radius:0 0 12px 12px}
.fcu-dialog-close{margin-left:auto!important;flex:none!important;min-width:32px;min-height:32px;color:#7b8ba3!important;border:0!important;background:transparent!important;border-radius:7px!important;cursor:pointer}
.fcu-dialog :is(button,.fv2-sheet-btn){font:inherit;font-size:13px!important;min-height:35px;border-radius:7px!important;cursor:pointer}
.fcu-dialog button{border:1px solid #dfe7f3!important;background:#fff!important;color:#536e94!important;padding:7px 13px!important}
.fcu-dialog .fcu-dialog-close{border:0!important;background:transparent!important;color:#7b8ba3!important;padding:4px 8px!important}
.fcu-dialog :is(button:disabled,[aria-disabled=true]){cursor:default;opacity:.5}
.fcu-dialog :is(button.primary,.solid,.pri,.p8-adv-done,.fv2-sheet-btn.primary,.f4r-btn-primary){background:var(--fcu-blue)!important;color:white!important;border:1px solid var(--fcu-blue)!important;box-shadow:0 2px 4px #246bfa1a!important}
.fcu-dialog button.success{background:#11ad80!important;border-color:#11ad80!important;color:#fff!important}
.fcu-dialog button.danger{background:#fff2f2!important;border-color:#f6d5d5!important;color:#dc5967!important}
.fcu-dialog :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){box-sizing:border-box!important;border:1px solid #dee6f1!important;border-radius:7px!important;min-height:37px;padding:8px 10px!important;background:#fff!important;color:var(--fcu-ink)!important;font-size:13px!important;max-width:100%}
.fcu-dialog :is(input:disabled,select:disabled){background:#f6f8fb!important;color:#9aa7ba!important}
.fcu-dialog :is(label,.p8-modal-field,.p8-adv-field){color:#657792!important;font-size:12px!important;min-width:0!important;line-height:1.65!important}
.fcu-dialog :is(.p8-modal-grid,.p8-adv-grid,.sv-filter-grid,.rx-filter-grid){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 20px!important}
.fcu-dialog :is(.p8-note,.rc-inline-note,.sv-gap,.rx-notice){padding:11px 13px!important;border-radius:8px!important;background:#f4f8ff!important;color:#61799d!important;font-size:12px!important;line-height:1.7!important;margin:14px 0!important}
.fcu-dialog :is(table){width:100%;border-collapse:collapse;font-size:12px}
.fcu-dialog :is(th){background:#f5f8fd!important;color:#647a9a!important;padding:10px!important;font-weight:600;white-space:nowrap}
.fcu-dialog :is(td){padding:11px 10px!important;border-bottom:1px solid #edf1f7!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.65!important}
.fcu-dialog :is(.p8-native-body,.sv-dialog-body,.rc-modal-body,.rx-modal-body){background:#fff!important}
.fcu-dialog .fcu-facts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;margin:12px 0!important}
.fcu-dialog .fcu-facts[hidden]{display:none!important}
.fcu-dialog .fcu-facts>div{display:block!important;background:#f8fafd;border:1px solid #e8eef6;border-radius:8px;padding:11px 13px!important;min-width:0}
.fcu-dialog .fcu-facts dt{color:#8191a9!important;font-size:12px!important;margin:0 0 5px!important}
.fcu-dialog .fcu-facts dd{color:#2b4263!important;margin:0!important;line-height:1.7;white-space:pre-wrap!important;overflow-wrap:anywhere}
.fcu-source-details{margin:14px 0;border-top:1px solid #e7edf5;padding-top:12px;font-size:12px;color:#7486a2}
.fcu-source-details summary{cursor:pointer}
dialog:has(>.fcu-dialog){width:auto!important;max-width:none!important;padding:0!important;border:0!important;background:transparent!important;overflow:visible!important}
.fcu-dialog :is(.p6-dhd){background:#f7faff!important;color:var(--fcu-ink)!important}
.fcu-dialog :is(.p6-dhd h3,.p6-dhd h2,.p6-dhd p){color:var(--fcu-ink)!important}
.fcu-dialog:is(#drawer){position:fixed!important;inset:7.5vh auto auto 50%!important;transform:translateX(-50%)!important;height:auto!important;padding:0!important}
.fcu-dialog:is(#drawer){overflow:hidden!important}
.fcu-dialog #drawerBody{max-height:calc(85dvh - 142px)!important;overflow:auto!important}
.fcu-bill-foot>span{margin-right:auto;color:#8b9ab0;font-size:12px}
.fcu-secondary{padding:7px 24px;border:1px solid #dfe7f3;background:#fff;color:#506b93}
.fcu-dialog-head>.sv-icon{display:none!important}
.fcu-dialog-head>.mf-back{display:none!important}
.fcu-dialog :is(.fm-apply,.rv-primary){background:#246bfa!important;border-color:#246bfa!important;color:#fff!important}
.fcu-dialog:is(.p6-modal){padding:0 20px 18px!important}
.fcu-dialog:is(.p6-modal)>.fcu-dialog-head{margin:0 -20px 16px!important}
#p6-detail-modal .p6-modal.fcu-dialog{width:min(880px,calc(100vw - 40px))!important;max-width:880px!important;padding:0!important;overflow:hidden!important}
#p6-detail-modal .p6-dhd.fcu-dialog-head{display:grid!important;grid-template-columns:36px minmax(0,1fr) 32px!important;gap:3px 12px!important;margin:0!important;position:relative!important;padding:18px 22px!important}
#p6-detail-modal .p6-dhd .fcu-dialog-icon{grid-column:1;grid-row:1/4;align-self:start}
#p6-detail-modal #p6-dt-title{grid-column:2;grid-row:1;font-size:12px!important;background:none!important;color:#7b8da7!important;padding:0!important}
#p6-detail-modal #p6-dt-name{grid-column:2;grid-row:2;font-size:16px!important;font-weight:650!important;white-space:normal!important;line-height:1.6!important;color:#203b60!important;overflow-wrap:anywhere}
#p6-detail-modal #p6-dt-sub{grid-column:2;grid-row:3;color:#7b8da7!important;font-size:12px!important}
#p6-detail-modal #p6-dt-tags{grid-column:2;grid-row:4}
#p6-detail-modal .p6-dhd .fcu-dialog-close{grid-column:3;grid-row:1/4;position:static!important;align-self:start}
#p6-detail-modal #p6-dt-body{overflow:auto!important;max-height:calc(85dvh - 160px)!important}
#p6-detail-modal .p6-permission-detail-tabs{display:flex!important;gap:8px!important;flex-wrap:wrap!important;padding:0 0 12px!important;margin-bottom:12px!important;border-bottom:1px solid #e7edf5!important}
#p6-detail-modal .p6-permission-detail-tabs button{border:1px solid #e1e9f4!important;padding:7px 13px!important;background:#f8faff!important;color:#6680a3!important}
#p6-detail-modal .p6-permission-detail-tabs button.selected{background:#246bfa!important;border-color:#246bfa!important;color:#fff!important}
@media(min-width:769px){
 #finance-tab-content.fcu-workspace :is(.bv-kpis,.fr-kpis,.pv-kpis,.rv-kpis){gap:12px!important}
 #finance-tab-content.fcu-workspace .fcu-stat{padding:17px!important}
 .fcu-dialog:is(.p8-native-panel,.sv-dialog,.rc-modal,.rx-modal){display:flex!important;flex-direction:column!important;overflow:hidden!important}
 .fcu-dialog :is(.p8-adv-panel){margin-top:16px!important;padding:16px!important;background:#f8faff!important;border:1px solid #e7edf5!important;border-radius:9px!important}
}
@media(max-width:768px){
 #p6-detail-modal .p6-modal.fcu-dialog{width:100%!important;max-width:100%!important}
 .fcu-dialog{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;inset-inline:0!important;transform:none!important;margin:0!important;width:100%!important;max-width:100%!important;border-radius:16px 16px 0 0!important;max-height:85vh!important;max-height:85dvh!important;overflow:auto!important}
 .fcu-dialog-head{padding:16px!important;border-radius:16px 16px 0 0!important;gap:10px!important}
 .fcu-dialog-head :is(h2,h3,strong,b,[class$="title"]){font-size:16px!important}
 .fcu-dialog-icon{width:32px;height:32px;border-radius:9px}
 .fcu-dialog-body{padding:16px!important;overflow-x:hidden!important}
 .fcu-dialog-foot{padding:12px 16px max(14px,env(safe-area-inset-bottom))!important;gap:8px!important;border-radius:0}
 .fcu-dialog-foot button{min-height:40px!important;flex:1}
 .fcu-dialog :is(.p8-modal-grid,.p8-adv-grid,.sv-filter-grid,.rx-filter-grid){gap:12px!important}
 .fcu-dialog input[type=date]{min-width:0!important;width:100%!important;-webkit-appearance:none}
 .fcu-dialog .fcu-facts{grid-template-columns:minmax(0,1fr)}
 .fcu-dialog :is(.p8-modal-dates){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .fcu-dialog :is(.p8-modal-dates)>:first-child{grid-column:1/-1}
 .fcu-dialog:is(.p8-native-panel,.sv-dialog,.rc-modal,.rx-modal){display:flex!important;flex-direction:column!important;overflow:hidden!important}
 #finance-tab-content.fcu-workspace .fcu-stat{padding:12px!important;box-shadow:none!important;border-radius:10px!important}
 #finance-tab-content.fcu-workspace :is(.fpv2-location,.rv-resource,.rx-object){font-size:12px!important}
}
@media(prefers-reduced-motion:reduce){.fcu-dialog,.fcu-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

#finance-container.bills-reference-pc #tbody tr td:nth-child(4) .obj-name{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important}
.fcu-dialog #drawerBody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.fcu-dialog #drawerBody>.d-amt-hero{grid-column:1/-1;background:#f5f9ff!important;border:1px solid #e2edff;border-radius:10px;padding:18px!important}.fcu-dialog .d-section{margin:0!important;padding:16px!important;border:1px solid #e7edf5;border-radius:10px}.fcu-dialog .d-section h4{font-size:13px;color:#314c73;margin:0 0 12px}.fcu-dialog .d-field{display:grid;grid-template-columns:80px minmax(0,1fr);gap:10px;padding:7px 0!important;border-bottom:1px solid #f0f3f8}.fcu-dialog .d-val{text-align:left!important;white-space:normal;overflow-wrap:anywhere}.fcu-dialog .d-label{color:#7b8ca5!important;font-size:12px}.fcu-dialog .d-amt-main{font-size:30px!important;color:#1e63d7!important}.fcu-dialog .d-amt-sub{color:#7184a2!important}@media(max-width:768px){.fcu-dialog #drawerBody{grid-template-columns:minmax(0,1fr);gap:12px}.fcu-dialog #drawerBody>.d-amt-hero{grid-column:auto}.fcu-dialog .d-section{padding:14px!important}}

.fcu-metric-pending{margin:0 0 14px;padding:12px 16px;border:1px solid #f4e1bc;background:#fff9ed;color:#a67429;border-radius:9px;font-size:12px;line-height:1.7}
