/* Money layouts: explicit loading, compact native controls, unchanged data owners. */
#content.mw-page .mw-heading{margin-bottom:20px;gap:16px;align-items:center}
#content.mw-page .mw-heading .sub:empty{display:none}
#content.mw-page .money-loading{margin-top:20px}
#content.mw-page .money-loading>p{margin:0 0 16px;color:var(--stone)}
#content.mw-page .money-loading-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#content.mw-page .money-loading-kpis>div{padding:20px;border:1px solid var(--hairline);border-radius:12px;background:var(--card,var(--paper))}
#content.mw-page .money-loading :is(i,b,.money-loading-table span){display:block;border-radius:4px;background:var(--well);animation:money-loading-pulse 1.6s ease-in-out infinite}
#content.mw-page .money-loading i{width:65%;height:14px;margin-bottom:16px}
#content.mw-page .money-loading b{width:80%;height:28px}
#content.mw-page .money-loading-table{display:grid;gap:18px;padding:20px;margin-top:20px;border:1px solid var(--hairline);border-radius:12px;background:var(--card,var(--paper))}
#content.mw-page .money-loading-table span{height:24px}
#content.mw-page .money-read-error{max-width:640px;margin-top:20px;padding:20px;border:1px solid var(--hairline);border-radius:12px;background:var(--card,var(--paper))}
#content.mw-page .money-read-error h2{font-size:18px;margin:0 0 8px}
#content.mw-page .money-read-error p{color:var(--stone);line-height:1.5;margin:0 0 16px}
#content [data-nextgear-direct-import="cfo"]{padding:16px 20px;margin-block:16px 20px}
#content [data-nextgear-direct-import="cfo"] h2{font-size:16px;margin:0 0 8px}
#content [data-nextgear-direct-import="cfo"] .ngdi-description{font-size:14px;line-height:1.5;margin:0 0 12px;max-width:80ch}
#content [data-nextgear-direct-import="cfo"] .ngdi-status:empty{display:none}
#content [data-nextgear-direct-import="cfo"] .ngdi-saved{margin-block:8px 0}
#content [data-nextgear-direct-import="cfo"] .ngdi-saved>summary{min-height:44px;align-content:center}
#content .aw.cf .aw-head{margin-bottom:16px;gap:16px}
#content .aw.cf .aw-head p{margin:6px 0 0}
#content .aw.cf .aw-inboxes{margin-block:0 16px}
#content .aw.cf .al-summary{padding:12px 16px;gap:12px;margin-block:0 14px}
#content .aw.cf .al-summary>:is(strong,span){padding:6px 12px}
#content .aw.cf .aw-tools{gap:10px;margin-block:12px}
#content .aw.cf .aw-tools :is(input,select,button){min-height:44px}
#content .aw.cf .al-list.pr-payables{border:1px solid var(--hairline);border-radius:12px;overflow:clip;background:var(--card,var(--paper))}
#content .aw.cf .al-list.pr-payables>.aw-scroll{margin:0}
#content .aw.cf .al-list.pr-payables .cv-controls{padding:8px 12px}
#content .aw.cf #account-activity-table{--bleu-tables-padding-y:8px;--bleu-tables-padding-x:14px}
#content .aw.cf #account-activity-table:not([data-cv-view="card"]) :is(td,th){padding:8px 14px!important;vertical-align:middle!important}
#content .aw.cf #account-activity-table:not([data-cv-view="card"]) .al-description>strong{display:inline-block!important;max-width:calc(100% - 80px);vertical-align:middle}
#content .aw.cf #account-activity-table:not([data-cv-view="card"]) .al-description details:not([open]){display:inline-block;margin:0 0 0 10px;vertical-align:middle}
#content .aw.cf #account-activity-table .al-description summary{min-height:44px!important;min-width:44px!important;display:list-item;align-content:center;padding:0 4px!important;cursor:pointer}
#content .aw.cf #account-activity-table .al-description details[open]{display:block;margin:8px 0 0}
#content .aw.cf #account-activity-table .al-description details[open] dl{margin:8px 0;line-height:1.5}
#content .aw.cf #account-activity-table :is(.al-receipt,.al-description) .aw-link{display:inline-flex!important;align-items:center;justify-content:flex-start;min-height:44px!important;min-width:44px!important;padding:0 8px!important;margin:0}
#content .aw.cf #account-activity-table [hidden]{display:none!important}
@keyframes money-loading-pulse{0%,100%{opacity:.55}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){#content.mw-page .money-loading :is(i,b,span){animation:none}}
@media(max-width:700px){
 #content.mw-page .mw-heading{align-items:flex-start;margin-bottom:16px}
 #content.mw-page .money-loading-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #content.mw-page .money-loading-kpis>div{padding:16px}
 #content [data-nextgear-direct-import="cfo"]{padding:16px;margin-block:12px 16px}
 #content .aw.cf .aw-tools{display:flex;flex-wrap:wrap;gap:8px}
 #content .aw.cf .aw-tools>label{min-width:0;flex:1 1 140px}
 #content .aw.cf .aw-tools>label:first-child{flex-basis:100%}
 #content .aw.cf .al-summary{padding:10px;gap:8px}
 #content .aw.cf #account-activity-table[data-cv-view="card"] .al-description>strong{display:block!important;max-width:100%}
 #content .aw.cf #account-activity-table[data-cv-view="card"] .al-description details{margin:4px 0 0}
}
/* Use the existing mobile menu sheet above its own shade. The generic list
   popover's two-ID rule otherwise overrides the shared menu geometry. */
@media(max-width:760px){
 #content#content .aw.cf .bleu-mobile-menu[open]>.mc-panel{position:fixed!important;inset:auto 8px max(8px,env(safe-area-inset-bottom)) 8px!important;top:auto!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - max(24px,env(safe-area-inset-top)) - max(24px,env(safe-area-inset-bottom)))!important;overflow:auto!important;z-index:2147482001!important;border-radius:16px!important;transform:none!important}
}
