@layer crm-admin-ui {
/* Finance dashboard only: preserve the legacy workspace and all its controls. */
html body.crm-admin-ui[data-crm-route="finance.html"] header.finance-hero.finance-hero-mounted { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip-path:inset(50%) !important; border:0 !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .crm-page-hero-actions :is(button,a) { min-height:38px !important; padding:9px 13px !important; border-radius:5px !important; font-size:12px !important; font-weight:600 !important; text-decoration:none !important; background:#fff !important; color:#242629 !important; border:1px solid #fff !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .crm-page-hero-actions button { background:#c9a44c !important; border-color:#c9a44c !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] main { width:auto !important; max-width:none !important; margin:0 !important; padding:0 24px 24px !important; min-width:0 !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] #accountingOverviewSection { padding:20px !important; min-width:0 !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] #accountingOverviewSection > .stats-block-head { align-items:flex-start !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] #accountingOverviewSection .stats-block-title { color:var(--ui-text) !important; font-size:17px !important; letter-spacing:0 !important; text-transform:none !important; margin-bottom:5px !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] #accountingOverviewSection .accounting-toolbar { display:flex !important; align-items:end !important; flex-wrap:wrap !important; gap:8px !important; padding:10px 12px !important; margin:12px 0 !important; border:1px solid var(--ui-line) !important; border-radius:8px !important; background:transparent !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .fo-control { display:grid !important; gap:5px !important; color:var(--ui-muted) !important; font-size:11px !important; min-width:0 !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-toolbar :is(select,input,button),html body.crm-admin-ui[data-crm-route="finance.html"] #accountingOverviewSection :is(select,button) { min-height:36px !important; border-radius:6px !important; font-size:12px !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-toolbar #accountingPeriodLabel { flex:0 1 auto !important; align-self:center !important; margin-left:auto !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-summary-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; align-items:start !important; gap:12px !important; margin-top:0 !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-summary-card { min-height:0 !important; max-height:none !important; overflow:visible !important; padding:16px !important; gap:12px !important; border-radius:10px !important; box-shadow:none !important; background:var(--ui-panel) !important; border:1px solid var(--ui-line) !important; color:var(--ui-text) !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-summary-card::before { width:3px !important; border-radius:10px 0 0 10px !important; background:#c9a44c !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-summary-scroll,html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-summary-scroll.fade { overflow:visible !important; max-height:none !important; mask-image:none !important; padding:0 !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-card-title { font-size:16px !important; line-height:1.3 !important; font-weight:650 !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-card-eyebrow { font-size:10px !important; margin-bottom:4px !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-summary-value { font-size:27px !important; line-height:1.2 !important; font-weight:650 !important; overflow-wrap:anywhere !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] #accountingOverviewSection :is(.accounting-pill,.accounting-attention-card,.accounting-quick-link,.accounting-action-item,.accounting-empty,.trend-canvas-wrap,.balance-chart-wrap,.balance-table,.balance-table th,.balance-table tr.group td) { background:var(--ui-soft) !important; background-image:none !important; border-color:var(--ui-line) !important; color:var(--ui-text) !important; box-shadow:none !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] #accountingOverviewSection :is(.accounting-link-btn,.accounting-card-toolbar select,.balance-toolbar select,.trend-toolbar select) { background:var(--ui-panel) !important; border:1px solid var(--ui-input-line) !important; color:var(--ui-text) !important; border-radius:6px !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-attention-grid { grid-template-columns:repeat(auto-fit,minmax(105px,1fr)) !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-attention-card { padding:10px !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-attention-value { font-size:22px !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-dashboard-grid { grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) !important; gap:12px !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-panel { min-width:0 !important; padding:16px !important; border-radius:10px !important; box-shadow:none !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .balance-chart-wrap,html body.crm-admin-ui[data-crm-route="finance.html"] .balance-table-wrap { min-width:0 !important; border-color:var(--ui-line) !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .balance-table :is(th,td) { border-color:var(--ui-line) !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .tabs { overflow-x:auto !important; max-width:100% !important; white-space:nowrap !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .tabs .tab { flex:none !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] main > .card { min-width:0 !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] main > .card .table-wrap { max-width:100% !important; overflow-x:auto !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] :focus-visible { outline:2px solid var(--ui-focus) !important; outline-offset:2px !important; }
@media(max-width:900px) { html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-dashboard-grid,html body.crm-admin-ui[data-crm-route="finance.html"] .balance-grid { grid-template-columns:minmax(0,1fr) !important; } }
@media(max-width:600px) { html body.crm-admin-ui[data-crm-route="finance.html"] main { padding:0 12px 20px !important; } html body.crm-admin-ui[data-crm-route="finance.html"] #accountingOverviewSection { padding:15px !important; } html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-toolbar .fo-control { flex:1 1 135px !important; } html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-toolbar :is(input,select) { width:100% !important; min-width:0 !important; } html body.crm-admin-ui[data-crm-route="finance.html"] .trend-canvas-wrap { min-height:260px !important; } }
html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-summary-card.bookings[hidden] { display:none !important; }
@media(max-width:900px) { html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; } }
@media(max-width:600px) { html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-summary-grid { grid-template-columns:minmax(0,1fr) !important; } html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-toolbar #accountingPeriodLabel { margin-left:0 !important; } }
/* Preserve overview controls even when a shared stylesheet hides them. */
html body.crm-admin-ui[data-crm-route="finance.html"] #accountingOverviewSection .accounting-summary-card.links { display:flex !important; grid-column:1 / -1 !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] #accountingOverviewSection #accountingPeriodLabel { display:block !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] #accountingOverviewSection .accounting-bookings-actions { display:flex !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-summary-card.links .accounting-quick-links { display:grid !important; grid-template-columns:repeat(5,minmax(0,1fr)) !important; gap:8px !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-summary-card.links .accounting-quick-link { min-width:0 !important; padding:10px !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .finance-workspace { min-width:0 !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .finance-workspace > summary { cursor:pointer !important; color:var(--ui-text) !important; font-weight:650 !important; padding:8px 0 !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .finance-workspace > summary span { color:var(--ui-muted) !important; font-size:12px !important; font-weight:400 !important; margin-left:8px !important; }
html body.crm-admin-ui[data-crm-route="finance.html"] .finance-workspace[open] > summary { margin-bottom:12px !important; }
@media(max-width:900px) { html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-summary-card.links .accounting-quick-links { grid-template-columns:repeat(2,minmax(0,1fr)) !important; } }
@media(max-width:600px) { html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-summary-card.links .accounting-quick-links { grid-template-columns:minmax(0,1fr) !important; } html body.crm-admin-ui[data-crm-route="finance.html"] .finance-workspace > summary span { display:block !important; margin:4px 0 0 18px !important; } }

}
