/* Shared budget, Bilan and RSE hierarchy. Calculations and form fields stay unchanged. */
html body #shell main #content :where(#crm-budget-rse,#crm-budget-report,.crm-soiree-budget-workspace){box-sizing:border-box!important;min-width:0!important;margin:0!important;padding:12px!important;font-family:Visby,Arial,sans-serif!important;color:#23364f!important;border:1px solid #dfe5ef!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}
html body #shell main #content :where(#crm-budget-rse,#crm-budget-report,.crm-soiree-budget-workspace) *{box-sizing:border-box;min-width:0}
html body #shell main #content :is(#crm-budget-rse-heading,#crm-budget-report-heading,#crm-evening-budget-heading){display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:10px!important;min-height:60px!important;margin:0 0 12px!important;padding:10px 12px!important;border:1px solid #e7dcea!important;border-left:4px solid var(--crm-accent,#eb008b)!important;border-radius:12px!important;background:linear-gradient(110deg,#fff1f8,#f7f8fc)!important;box-shadow:none!important}
html body #shell main #content :is(#crm-budget-rse-heading,#crm-budget-report-heading,#crm-evening-budget-heading) h2{display:flex!important;align-items:center!important;gap:10px!important;flex:0 0 auto!important;margin:0!important;padding:0!important;min-height:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font:600 20px/1.3 Visby,Arial,sans-serif!important;letter-spacing:0!important;color:#23364f!important;text-shadow:none!important}
html body #shell main #content :is(#crm-budget-rse-heading,#crm-budget-report-heading,#crm-evening-budget-heading) h2>svg{flex:0 0 36px!important;width:36px!important;height:36px!important;padding:8px!important;margin:0!important;border:1px solid #ead6ec!important;border-radius:10px!important;background:#fff!important;color:var(--crm-accent,#eb008b)!important}
html body #shell main #content .crm-budget-section-tools{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:6px!important;margin:0!important}
html body #shell main #content :where(#crm-budget-rse,#crm-budget-report,.crm-soiree-budget-workspace) :is(button,a.button,.report-upload-label){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:36px!important;height:auto!important;max-width:100%!important;margin:0!important;padding:7px 10px!important;border:1px solid #d9dfed!important;border-radius:8px!important;background:#fff!important;color:#405574!important;font:600 13px/1.3 Visby,Arial,sans-serif!important;text-decoration:none!important;box-shadow:none!important;white-space:normal!important}
html body #shell main #content :where(#crm-budget-rse,#crm-budget-report,.crm-soiree-budget-workspace) :is(button,a.button,.report-upload-label)>svg{width:17px!important;height:17px!important;flex:0 0 17px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important}
html body #shell main #content :is(#crm-budget-rse [type=submit],.crm-soiree-budget-workspace [data-soiree-action=new]){background:var(--crm-accent,#eb008b)!important;border-color:var(--crm-accent,#eb008b)!important;color:#fff!important}
html body #shell main #content :where(#crm-budget-rse,#crm-budget-report,.crm-soiree-budget-workspace) :is(h3,h4){font:600 15px/1.35 Visby,Arial,sans-serif!important;letter-spacing:0!important;color:#23364f!important;text-shadow:none!important}
html body #shell main #content :is(#crm-budget-rse,#crm-budget-report) h3{display:flex!important;align-items:center!important;gap:7px!important;min-height:0!important;margin:0 0 8px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html body #shell main #content :is(#crm-budget-rse,#crm-budget-report) h3>svg{width:18px!important;height:18px!important;flex:0 0 18px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--crm-accent,#eb008b)!important}
html body #shell main #content :where(#crm-budget-rse,#crm-budget-report,.crm-soiree-budget-workspace) :is(p,.small){font-family:Visby,Arial,sans-serif!important;font-size:12px!important;line-height:1.45!important}
html body #shell main #content :is(#crm-budget-rse,#crm-budget-report) :is(input:not([type=checkbox]),select,textarea){max-width:100%!important;min-height:36px!important;padding:8px 10px!important;border-radius:8px!important;font:400 13px/1.4 Visby,Arial,sans-serif!important}
/* Nine RSE destinations occupy equal cells without a trailing orphan tab. */
html body #shell main #content #crm-budget-rse .crm-impact-nav{display:grid!important;grid-template-columns:repeat(9,minmax(0,1fr))!important;align-items:stretch!important;gap:6px!important;overflow:visible!important;margin:0 0 12px!important;padding:0!important;border:0!important;background:transparent!important;white-space:normal!important}
html body #shell main #content #crm-budget-rse .crm-impact-nav>a{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-height:36px!important;padding:7px 6px!important;border:1px solid #d9dfed!important;border-radius:8px!important;background:#fff!important;color:#405574!important;font:500 12px/1.25 Visby,Arial,sans-serif!important;text-decoration:none!important;text-align:center!important;white-space:normal!important;box-shadow:none!important}
html body #shell main #content #crm-budget-rse .crm-impact-nav>a.active{border-color:#f1b9db!important;background:#fff1f8!important;color:var(--crm-accent,#eb008b)!important}
html body #shell main #content #crm-budget-rse .crm-impact-nav>a>svg{width:15px!important;height:15px!important;flex:0 0 15px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
html body #shell main #content #crm-budget-rse .crm-carbon-summary{grid-template-columns:110px minmax(0,1fr)!important;gap:14px!important;margin:0 0 12px!important;padding:12px!important;border:1px solid #e1e6ef!important;border-radius:12px!important;background:#fafbfe!important;box-shadow:none!important;overflow:visible!important}
html body #shell main #content #crm-budget-rse .crm-carbon-summary:before{content:none!important}
html body #shell main #content #crm-budget-rse .crm-carbon-summary h2{display:block!important;min-height:0!important;margin:0 0 5px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font:600 15px/1.35 Visby,Arial,sans-serif!important;letter-spacing:0!important;color:#23364f!important;text-shadow:none!important}
html body #shell main #content #crm-budget-rse .crm-carbon-summary h2>svg{display:none!important}
html body #shell main #content #crm-budget-rse .crm-carbon-summary .crm-carbon-ring{width:104px!important;height:104px!important;margin:0!important;filter:none!important}
html body #shell main #content #crm-budget-rse .crm-carbon-summary .crm-carbon-ring>div{inset:14px!important}
html body #shell main #content #crm-budget-rse .crm-carbon-summary .crm-carbon-ring strong{font-size:14px!important;letter-spacing:0!important;color:var(--crm-accent,#eb008b)!important}
html body #shell main #content #crm-budget-rse .crm-carbon-summary .crm-carbon-topline{margin-bottom:6px!important}
html body #shell main #content #crm-budget-rse .crm-carbon-summary .crm-carbon-eyebrow{display:none!important}
html body #shell main #content #crm-budget-rse .crm-carbon-summary .crm-carbon-legend{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
html body #shell main #content #crm-budget-rse .crm-carbon-summary .crm-carbon-post{padding:7px!important;border-radius:8px!important;font-size:11px!important;grid-template-columns:20px minmax(0,1fr)!important}
html body #shell main #content #crm-budget-rse .crm-carbon-summary .crm-carbon-post-icon{width:20px!important;height:24px!important}
html body #shell main #content #crm-budget-rse .crm-carbon-summary .crm-carbon-post-icon>svg{width:15px!important;height:15px!important}
html body #shell main #content #crm-budget-rse .crm-carbon-summary .crm-carbon-post:last-child{grid-column:auto!important}
html body #shell main #content #crm-budget-rse .crm-carbon-summary .crm-carbon-subtitle{margin-bottom:8px!important}
html body #shell main #content #crm-budget-rse .crm-carbon-summary .crm-carbon-footer{gap:8px!important;margin-top:8px!important}
html body #shell main #content #crm-budget-rse .crm-carbon-summary .crm-carbon-missing{padding:7px 9px!important;margin:8px 0 0!important;border-radius:8px!important}
html body #shell main #content #crm-budget-rse .crm-impact-stats{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important;margin:12px 0!important}
html body #shell main #content #crm-budget-rse .crm-impact-stats article{padding:10px!important;min-height:75px!important;border:1px solid #e1e6ef!important;border-radius:9px!important;background:#fff!important}
html body #shell main #content #crm-budget-rse .crm-impact-stats strong{font:600 18px/1.3 Visby,Arial,sans-serif!important;color:var(--crm-accent,#eb008b)!important;overflow-wrap:anywhere!important}
html body #shell main #content #crm-budget-rse .crm-impact-stats span{font:400 11px/1.4 Visby,Arial,sans-serif!important;color:#66748b!important}
html body #shell main #content #crm-budget-rse .crm-impact-list article{padding:10px 12px!important;gap:10px!important;border-radius:9px!important}
html body #shell main #content #crm-budget-rse .crm-impact-actions{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:6px!important;margin:8px 0!important}
html body #shell main #content #crm-budget-rse .crm-impact-table{max-width:100%!important;overflow:auto!important}
html body #shell main #content #crm-budget-rse table{font:400 13px/1.4 Visby,Arial,sans-serif!important}
html body #shell main #content #crm-budget-rse table :is(th,td){padding:9px!important;font-size:13px!important}
html body #shell main #content #crm-budget-rse .crm-impact-hint{margin:10px 0!important;padding:9px 11px!important;border-radius:8px!important}
html body #shell main #content #crm-budget-rse .crm-event-rse-choice{padding:8px 0!important;font-size:13px!important}
html body #shell main #content #crm-budget-rse input[type=checkbox]{width:17px!important;height:17px!important;min-height:17px!important;accent-color:var(--crm-accent,#eb008b)!important}
html body #shell main #content #crm-budget-rse .crm-rse-actions-summary{margin:6px 0!important;gap:10px!important}
/* The Bilan uses one page title; its three existing tools remain independent. */
html body #shell main #content #crm-budget-report .crm-event-surveys{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:0 0 12px!important}
html body #shell main #content #crm-budget-report .crm-event-surveys>.panel{display:flex!important;align-items:flex-start!important;flex-direction:column!important;gap:8px!important;margin:0!important;padding:12px!important;border:1px solid #e1e6ef!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important}
html body #shell main #content #crm-budget-report .crm-event-surveys p{margin:0!important}
html body #shell main #content #crm-budget-report .crm-event-surveys .crm-preserve-lines:empty{display:none!important}
html body #shell main #content #crm-budget-report .crm-event-surveys button{margin-top:auto!important}
html body #shell main #content #crm-budget-report .event-report-widget{margin:0!important;padding:12px!important;border:1px solid #e1e6ef!important;border-radius:10px!important;background:#fafbfe!important;box-shadow:none!important}
html body #shell main #content #crm-budget-report :is(.report-links,.report-controls){display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:6px!important;margin:8px 0!important}
html body #shell main #content #crm-budget-report .form-error:empty{display:none!important}
/* A single evening budget heading replaces the duplicated soirée headings. */
html body #shell main #content #crm-evening-budget-heading .crm-budget-section-title{flex:1 1 280px!important;min-width:0!important}
html body #shell main #content #crm-evening-budget-heading .crm-budget-section-title p{margin:5px 0 0 46px!important;color:#66748b!important}
html body #shell main #content #crm-evening-budget-heading .crm-budget-icon-button,html body #shell main #content #crm-evening-budget-heading :is([data-soiree-action=settings],[data-soiree-action=refresh]){width:36px!important;min-width:36px!important;padding:8px!important}
html body #shell main #content .crm-soiree-budget-workspace :is(.sb-budget,.sb-meta){margin:0!important}
html body #shell main #content .crm-soiree-budget-workspace .sb-totals{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;margin:0 0 8px!important}
html body #shell main #content .crm-soiree-budget-workspace .sb-totals article{display:flex!important;flex-direction:column!important;gap:4px!important;min-height:82px!important;padding:10px!important;border:1px solid #e1e6ef!important;border-top:2px solid #edb3d6!important;border-radius:9px!important;background:#fafbfe!important;box-shadow:none!important}
html body #shell main #content .crm-soiree-budget-workspace .sb-totals :is(span,small){font:400 11px/1.35 Visby,Arial,sans-serif!important;color:#66748b!important}
html body #shell main #content .crm-soiree-budget-workspace .sb-totals strong{font:600 19px/1.3 Visby,Arial,sans-serif!important;color:var(--crm-accent,#eb008b)!important;overflow-wrap:anywhere!important;letter-spacing:0!important}
html body #shell main #content .crm-soiree-budget-workspace .sb-mode{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;max-width:600px!important;margin:10px 0!important;padding:0!important;border:0!important;background:transparent!important}
html body #shell main #content .crm-soiree-budget-workspace .sb-mode>button{font:500 12px/1.3 Visby,Arial,sans-serif!important;padding:7px 9px!important}
html body #shell main #content .crm-soiree-budget-workspace .sb-mode>button>svg{width:15px!important;height:15px!important;flex-basis:15px!important}
html body #shell main #content .crm-soiree-budget-workspace .sb-mode>button.active{border-color:#f1b9db!important;background:#fff1f8!important;color:var(--crm-accent,#eb008b)!important}
html body #shell main #content .crm-soiree-budget-workspace table{font:400 13px/1.4 Visby,Arial,sans-serif!important}
html body #shell main #content .crm-soiree-budget-workspace table :is(th,td){font:400 13px/1.4 Visby,Arial,sans-serif!important;padding:9px 10px!important}
html body #shell main #content .crm-soiree-budget-workspace thead th{font-weight:600!important;background:#edf2f9!important;color:#405574!important}
html body #shell main #content .crm-soiree-budget-workspace .sb-row-action{width:32px!important;min-width:32px!important;min-height:32px!important;height:32px!important;padding:6px!important}
html body #shell main #content .crm-soiree-budget-workspace :is(.sb-row-trash,[data-soiree-action=remove-file]){color:var(--crm-accent,#eb008b)!important;border-color:#f1b9db!important}
html body #shell main #content .crm-soiree-budget-workspace .sb-provider-grid article{border-left-color:#edb3d6!important;background:#fafbfe!important}
html body #shell main #content .crm-soiree-budget-workspace .sb-providers h4{margin:12px 0 8px!important}
@media(max-width:1200px){html body #shell main #content #crm-budget-rse .crm-impact-nav{grid-template-columns:repeat(3,minmax(0,1fr))!important}html body #shell main #content #crm-budget-rse .crm-carbon-summary .crm-carbon-legend{grid-template-columns:repeat(3,minmax(0,1fr))!important}html body #shell main #content #crm-budget-rse .crm-impact-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:900px){html body #shell main #content .crm-soiree-budget-workspace .sb-totals{grid-template-columns:repeat(3,minmax(0,1fr))!important}html body #shell main #content :is(#crm-budget-rse-heading,#crm-budget-report-heading,#crm-evening-budget-heading){align-items:flex-start!important}html body #shell main #content .crm-budget-section-tools{flex:1 1 100%!important;justify-content:flex-start!important}}
@media(max-width:600px){html body #shell main #content :where(#crm-budget-rse,#crm-budget-report,.crm-soiree-budget-workspace){padding:9px!important}html body #shell main #content #crm-budget-rse .crm-carbon-summary{grid-template-columns:1fr!important;padding:10px!important;gap:10px!important}html body #shell main #content #crm-budget-rse .crm-carbon-summary .crm-carbon-orbit{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;gap:12px!important}.crm-carbon-summary .crm-carbon-orbit .crm-carbon-ring{width:80px!important;height:80px!important;flex:0 0 80px!important}html body #shell main #content #crm-budget-rse .crm-carbon-summary .crm-carbon-legend{grid-template-columns:repeat(2,minmax(0,1fr))!important}html body #shell main #content #crm-budget-rse .crm-impact-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}html body #shell main #content #crm-budget-report .crm-event-surveys{grid-template-columns:1fr!important}html body #shell main #content .crm-soiree-budget-workspace .sb-totals{grid-template-columns:repeat(2,minmax(0,1fr))!important}html body #shell main #content .crm-soiree-budget-workspace .sb-totals article:last-child{grid-column:1/-1!important}html body #shell main #content .crm-soiree-budget-workspace .sb-mode{grid-template-columns:1fr!important;max-width:none!important}html body #shell main #content #crm-evening-budget-heading .crm-budget-section-title p{margin-left:0!important}html body #shell main #content #crm-budget-rse .crm-impact-list article{flex-wrap:wrap!important}html body #shell main #content #crm-budget-rse .crm-impact-nav>a{font-size:11px!important}}

html body #shell main #content :where(#crm-budget-rse,#crm-budget-report,.crm-soiree-budget-workspace) :is(button,a.button,.report-upload-label)>span{font:inherit!important;color:inherit!important}

/* Keep the row grip in its own gutter, including wrapped budget labels. */
html body #shell main #content .crm-soiree-budget-workspace .sb-table tr[data-soiree-budget-row]>.crm-order-table-cell{position:relative!important;padding-left:54px!important}
html body #shell main #content .crm-soiree-budget-workspace .sb-table tr[data-soiree-budget-row]>.crm-order-table-cell>.crm-order-handle{position:absolute!important;left:10px!important;top:50%!important;transform:translateY(-50%)!important;align-items:center!important;justify-content:center!important;width:30px!important;min-width:30px!important;max-width:30px!important;height:36px!important;min-height:36px!important;padding:4px!important;margin:0!important}
