/* Shared neon surfaces: crisp type, static light and scalable CSS geometry. */
:root{--bia-neon:#19bfae;--bia-neon-soft:#19bfae26;--bia-neon-line:#16a99b;--bia-readable-ink:#15364a;--bia-readable-muted:#435d70}
body{font-variant-numeric:lining-nums tabular-nums}
body :is(.tcmb-fx-strip,.finance-priority-board,.data-entry-hub,.liquidity-ladder,.bia-unified-section,.bia-section-dashboard,.bia-unified-metrics>article,.bia-section-metrics>article,[class$="-card"],[class*="-card "],.panel,.kpi,.hero,.module-title,.module-content,.module-totals>div,.receivable-summary>div,.activity-period-summary>div,.customer-overview-grid>article,.financial-analysis-card,.financial-analysis-grid>article,.revenue-comparison-grid>article,.company-tax-grid>article,.service-cost-summary>article,.service-fixed-cost-grid>article,.v103-panel,.v103-kpis>article,.v103-close-grid>article,.v103-health-summary>article,.dp09-project-detail,.dp09-project-manager,.bia-fi-report-card,.bia-fi-kpis>article,.bia-fmc-kpis>article,.bia-history-source-card,.bia-pos-card,.bia-enforcement-card,.bia-enforcement-tier-card,.entry-modal,.modal-card,[role="dialog"]){border:1px solid var(--bia-neon-line)!important;box-shadow:0 0 0 1px var(--bia-neon-soft),0 0 16px var(--bia-neon-soft),0 8px 24px #15364a0a!important}
body :is(.activity-filter-row,.daily-cash-columns,.chart-area,.finance-priority-board button,.secondary-entry,.module-table,.data-table,.report-export-details,.company-filter-bar,main.card,.consents){border:1px solid var(--bia-neon-line)!important;box-shadow:0 0 12px var(--bia-neon-soft)!important}
body :is(.panel>header,.panel-heading,.module-head,.table-head,thead th,.v103-panel>header){border-bottom:2px solid var(--bia-neon-line)!important}
body :is(.module-row,.table-row,tbody td){font-variant-numeric:lining-nums tabular-nums;line-height:1.45!important}
body :is(.module-row,.table-row,tbody td,.module-head,.table-head,thead th){font-size:13px!important}
body :is(.module-table,.data-table){overflow-x:auto}
body :is(.module-row,.table-row,.module-head,.table-head){min-width:850px}
body :is(.module-row,.table-row)>:is(b,strong,[class*="amount"]){white-space:nowrap;overflow-wrap:normal;word-break:normal}
body :is(.panel,.module-page,.v103-panel,.bia-fi-report-card,.bia-history-source-card,.bia-pos-card,.bia-enforcement-card) :is(p,label,small){font-size:12px!important;line-height:1.45!important}
body :is(.kpi,.module-totals>div,.bia-fi-kpis>article,.bia-fmc-kpis>article) :is(small,label){font-size:12px!important;line-height:1.4!important}
body :is(.kpi,.module-totals>div,.bia-fi-kpis>article,.bia-fmc-kpis>article) :is(b,strong){font-size:clamp(20px,1.3vw,30px)!important;line-height:1.25!important;font-variant-numeric:lining-nums tabular-nums;overflow-wrap:normal;word-break:normal}
body :is(input,select,textarea){font-size:14px!important;font-variant-numeric:lining-nums tabular-nums}
body :is(input,select,textarea,button,a,summary):focus-visible{outline:3px solid #087f76!important;outline-offset:3px!important}
body :is(.sidebar,aside.sidebar){border-right:2px solid #32d9c8;box-shadow:4px 0 18px #19bfae26}
body main.card :is(p,label,small,.hint,.note,footer){font-size:13px;line-height:1.5;color:var(--bia-readable-muted)}
body main.card :is(.error,.error small,.required){color:#9e1830}
body main.card .logo{box-shadow:0 0 18px #19bfae60;border:1px solid #68f0dd}
/* Preserve alert and company semantics while sharing the same luminous geometry. */
body :is(.kpi-tone-blue){--bia-neon-line:#398fdf;--bia-neon-soft:#398fdf26}
body :is(.kpi-tone-orange){--bia-neon-line:#bd741f;--bia-neon-soft:#ed9e3126}
body :is(.kpi-tone-violet){--bia-neon-line:#8a69d5;--bia-neon-soft:#8a69d526}
body :is(.kpi-tone-alert,.shortfall){--bia-neon-line:#cc3656;--bia-neon-soft:#cc365626}
body :is(.segmented,.activity-filter-row,.finance-priority-board,.data-entry-hub,.bia-unified-section,.bia-section-dashboard,.bia-fi-report-card,.bia-pos-card,.bia-history-source-card) :is(button,small,label,summary){font-size:12px!important;line-height:1.4!important}
body :is(.daily-cash-columns article small,.daily-cash-columns article em,.activity-filter-row label span,.source-status-text,.finance-source-status,.tcmb-fx-strip){font-size:12px!important;line-height:1.4!important}
body .daily-cash-columns article>span:first-child b{font-size:14px!important}
body .daily-cash-columns article>span:last-child>strong{font-size:15px!important}
body :is(.daily-cash-actions button,.period-segmented button){font-size:12px!important;min-height:36px!important}
body :is(.period-segmented,.finance-priority-board>div){flex-wrap:wrap}
body .activity-filter-row label span{white-space:normal!important}
body :is(.bia-fmc-table,.bia-fi-report-card table,.bia-pos-card table,.bia-history-source-card table){font-size:13px!important}
@media(min-width:2560px){body .app-shell>main{padding-inline:32px}body :is(.module-row,.table-row,tbody td,.module-head,.table-head,thead th){font-size:16px!important}body :is(.panel,.module-page,.v103-panel) :is(p,label,small){font-size:15px!important}body :is(input,select,textarea){font-size:16px!important}}
@media(max-width:700px){body :is(.module-row,.table-row,tbody td,.module-head,.table-head,thead th){font-size:13px!important}body :is(input,select,textarea){font-size:16px!important}}
@media(prefers-contrast:more){:root{--bia-neon-line:#087f76;--bia-neon-soft:transparent}body :is(.panel,.module-content,.kpi){border-width:2px!important}}
@media print{body :is(.panel,.kpi,.hero,.module-title,.module-content,.module-totals>div,.module-table,.data-table,main.card,[role="dialog"]){box-shadow:none!important;border-color:#506474!important}body :is(.module-row,.table-row,.module-head,.table-head){min-width:0}}

/* Match compact-dashboard specificity; never leave its 10px amounts behind. */
body .app-shell>main[data-finance-page] .kpi .kpi-copy>b{font-size:clamp(20px,1.3vw,30px)!important;line-height:1.3!important;white-space:normal!important}
body .app-shell>main[data-finance-page] .kpi .kpi-copy>:is(span,small){font-size:12px!important;line-height:1.4!important}
body .app-shell>main[data-finance-page] .kpi .kpi-breakdown :is(small,strong){font-size:13px!important;line-height:1.45!important}
body .app-shell>main[data-finance-page] .kpi .kpi-debt-total strong{font-size:20px!important}
@media(min-width:2560px){body .app-shell>main[data-finance-page] .kpi .kpi-copy>:is(span,small){font-size:15px!important}body .app-shell>main[data-finance-page] .kpi .kpi-breakdown :is(small,strong){font-size:16px!important}}
@media(max-width:700px){body .app-shell>main[data-finance-page] .kpi .kpi-copy>b{font-size:18px!important}body .app-shell>main[data-finance-page] .kpi .kpi-breakdown small{flex-wrap:wrap}body .app-shell>main[data-finance-page] .kpi .kpi-debt-total strong{font-size:18px!important}}
body .app-shell>main .activity-period-summary>span{border:1px solid var(--bia-neon-line);box-shadow:0 0 10px var(--bia-neon-soft);padding:10px;border-radius:10px}
body .app-shell>main .activity-period-summary>span>b{font-size:18px!important;line-height:1.4!important;overflow-wrap:normal!important;white-space:normal!important}
body .app-shell>main :is(.finance-source-status small,.finance-source-status em,.tcmb-fx-strip small,.tcmb-fx-strip em,.tcmb-fx-strip span,.mini-stat small,.kpi-trend,.axis span,.cash-flow-tooltip span,.cash-flow-tooltip b){font-size:12px!important;line-height:1.4!important}
body .app-shell>main :is(.bank-account-line,.bank-account-line>b,.bank-account-subtotal){font-size:14px!important;line-height:1.4!important}
body .app-shell>main .cash-flow-tooltip{min-width:160px}
@media(min-width:2560px){body .app-shell>main :is(.finance-source-status small,.finance-source-status em,.tcmb-fx-strip small,.tcmb-fx-strip em,.tcmb-fx-strip span,.mini-stat small,.axis span,.cash-flow-tooltip span,.cash-flow-tooltip b,.bank-account-line,.bank-account-line>b,.bank-account-subtotal){font-size:15px!important}}
/* Portfolio uses named surfaces rather than the shared panel/card classes. */
body :is(.dp09-titlebar,.dp09-project-registry,.dp09-completed-trade-analysis,.dp09-vehicle-history,.dp09-vehicle-history-detail,.dp09-contracts,.dp09-source-strip,.dp09-portfolio-form,.dp09-market-feed,.dp09-panel,.dp09-historical-evidence,.dp09-registry-workbench,.dp09-registry-detail,.dp09-case-index,.dp09-kpis>div,.dp09-kpis>article){border-color:var(--bia-neon-line)!important;box-shadow:0 0 0 1px var(--bia-neon-soft),0 0 14px var(--bia-neon-soft)!important}
body :is(.dp09-project-registry,.dp09-completed-trade-analysis,.dp09-kpis,.dp09-vehicle-history) :is(small,label){font-size:12px!important;line-height:1.45!important}

/* Header controls are identified by purpose; injected greetings must not inherit icon widths. */
body .app-shell>main[data-finance-page]>header>div.header-actions.header-actions.header-actions{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;max-width:100%!important;min-width:0!important}
body .app-shell>main[data-finance-page]>header>div.header-actions.header-actions.header-actions>.header-alert-button{display:inline-grid!important;place-items:center!important;flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;padding:0!important;order:1}
body .app-shell>main[data-finance-page]>header>div.header-actions.header-actions.header-actions>:is(.role-management-button,.role-status,.secure-logout-button,.ledger-home-return,.header-new-entry-button){display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:auto!important;min-width:44px!important;max-width:none!important;height:44px!important;min-height:44px!important;padding:0 12px!important;font-size:13px!important;line-height:1.4!important;white-space:nowrap!important;overflow:visible!important}
body .app-shell>main[data-finance-page]>header>div.header-actions.header-actions.header-actions>:is(.role-management-button,.role-status){order:2}
body .app-shell>main[data-finance-page]>header>div.header-actions.header-actions.header-actions>.header-new-entry-button{order:3}
body .app-shell>main[data-finance-page]>header>div.header-actions.header-actions.header-actions>.secure-logout-button{order:4;gap:7px}
@media(max-width:1000px){body .app-shell>main[data-finance-page]>header{height:auto!important;min-height:94px!important;grid-template-columns:minmax(0,1fr)!important;padding-block:12px!important;gap:10px!important}body .app-shell>main[data-finance-page]>header>div.header-actions.header-actions.header-actions{grid-column:1!important;grid-row:2!important;width:100%!important;justify-content:flex-start!important}}

/* Shared no-horizontal-scroll workspace: retain every cell and action. */
body [data-fit-table]{min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box;position:relative;overflow:visible!important}
body [data-fit-table][data-fit-layout="cards"]{display:block!important;border-collapse:separate}
body [data-fit-layout="cards"] :is(tbody,tfoot){display:block!important;width:100%!important}
body [data-fit-layout="cards"] [data-fit-row],body [data-fit-layout="cards"] [data-fit-heading="controls"]{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))!important;width:100%!important;min-width:0!important;max-width:100%!important;gap:12px!important;padding:14px!important;margin:0 0 12px!important;box-sizing:border-box;border:1px solid var(--bia-neon-line)!important;border-radius:10px;background:#f7fcfb;align-items:start!important}
body [data-fit-layout="cards"] [data-fit-row="summary"]{grid-template-columns:minmax(0,1fr)!important}
body [data-fit-layout="cards"] [data-fit-cell],body [data-fit-layout="cards"] [data-fit-heading="controls"]>*{display:block!important;position:static!important;grid-column:auto!important;grid-row:auto!important;width:auto!important;min-width:0!important;max-width:100%!important;height:auto!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;word-break:normal;text-align:left!important}
body [data-fit-layout="cards"] [data-fit-cell]>:is(b,strong,small){white-space:normal!important;overflow-wrap:anywhere;max-width:100%}
body [data-fit-layout="cards"] [data-fit-cell][data-fit-label]:not([data-fit-label=""]):before{content:attr(data-fit-label);display:block;margin-bottom:5px;color:#526a78;font-size:12px;font-weight:750;line-height:1.4;white-space:normal}
body [data-fit-layout="cards"] [data-fit-heading="labels"],body [data-fit-layout="cards"] [data-fit-heading="duplicate"]{position:absolute!important;clip-path:inset(50%)!important;width:1px!important;min-width:0!important;height:1px!important;overflow:hidden!important;white-space:nowrap!important;padding:0!important;border:0!important}
body [data-fit-layout="table"] [data-fit-row]{min-width:0!important;max-width:100%!important}
body [data-fit-layout="cards"] :is(input,select,textarea){width:100%;max-width:100%!important;min-width:0!important;box-sizing:border-box}
body :is(.entry-buttons,.module-actions,.excel-actions,.report-share-actions,.service-location-strip,.bia-fmc-layout>nav){display:flex;flex-wrap:wrap;gap:8px;min-width:0;max-width:100%}
body .live-source{display:inline-flex;max-width:100%;box-sizing:border-box;white-space:normal;line-height:1.45;overflow-wrap:anywhere}
body :is(.panel-head,.module-title,.dp09-panel-head,.service-cost-heading){flex-wrap:wrap;gap:12px;min-width:0;max-width:100%}
body :is(.panel-head,.module-title,.dp09-panel-head,.service-cost-heading)>*{min-width:0;max-width:100%}
body .linked-fund-amount-field{display:grid;gap:5px;min-width:0}
body .linked-fund-amount-field>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
body .linked-fund-full-balance{border:1px solid #21af9d;border-radius:6px;padding:4px 8px;background:#fff;color:#12645d;font:inherit;font-size:12px!important;font-weight:750;cursor:pointer;white-space:nowrap}
body .linked-fund-full-balance:disabled{opacity:.5;cursor:default}
body .linked-fund-amount-field input{font-variant-numeric:tabular-nums}

body .bia-fmc-layout>nav{display:grid!important;grid-template-columns:minmax(0,1fr)!important;overflow:visible!important}
body .bia-fmc-layout>nav>button{width:100%!important;min-width:0!important;max-width:100%!important;grid-template-columns:24px minmax(0,1fr) 12px!important;white-space:normal!important}
body .bia-fmc-layout>nav>button :is(span,b,small){min-width:0!important;white-space:normal!important;overflow-wrap:anywhere}
body :is(.service-story,.v103-monitor-grid){display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))!important;overflow:visible!important;min-width:0;max-width:100%}
body .site-cost-entry-site>div{flex-wrap:wrap!important;overflow:visible!important}
body .site-cost-entry-site button{flex:1 1 145px!important;max-width:100%}
body .site-cost-entry-site button span{white-space:normal!important}

body [data-fit-layout="cards"] .limit-utilization-cell[data-fit-cell]{display:grid!important;grid-template-columns:minmax(58px,1fr) max-content!important;gap:10px!important;align-items:center!important}
body [data-fit-layout="cards"] .limit-utilization-cell[data-fit-cell]:before{grid-column:1/-1;margin-bottom:0}

body [data-fit-layout="cards"] :is(button,input:not([type="checkbox"]):not([type="radio"]),select){min-height:36px!important}
body [data-fit-layout="cards"] :is(input[type="checkbox"],input[type="radio"]){width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important}

/* Layout never overrides explicit hidden state or permission controls. */
body [data-fit-table] [hidden]{display:none!important}
