.budget-trends{min-width:0;margin-top:12px;grid-template-columns:minmax(0,1fr)}
.budget-trends .trend-table{width:max-content;min-width:100%;table-layout:fixed;font-size:.8rem}.budget-trends .trend-table th,.budget-trends .trend-table td{padding:8px 7px}.budget-trends .trend-table th:first-child{width:88px;min-width:88px;max-width:88px}.trend-month-control{display:flex;align-items:center;gap:8px;margin:0;flex-wrap:wrap}.trend-month-control input{width:72px;padding:8px}.trend-month-control span{font-size:.75rem}
.budget-trends .trend-chart-scroll svg{min-width:0;font-size:19px}
#trendFilter{overflow:hidden}#trendFilter form{padding:0}#trendFilter .trend-option{margin-top:2px;color:var(--ink)}
.trend-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.trend-toolbar h3{flex:1;margin:0;font-size:1.1rem}.trend-toolbar button{padding:9px 12px;font-size:.9rem}
.trend-table-scroll{overflow-x:auto;isolation:isolate;border:1px solid #bdcddd;border-radius:12px}.trend-table{width:100%;min-width:670px;border-collapse:separate;border-spacing:0;font-size:.85rem}.trend-table th,.trend-table td{padding:12px;text-align:right;border-bottom:1px solid #c7d6e5;white-space:nowrap}.trend-table th:first-child{position:sticky;left:0;z-index:2;background:#eaf1f8;text-align:left;min-width:116px;max-width:155px;white-space:normal;overflow-wrap:anywhere;box-shadow:3px 0 4px #40536b15}.trend-table th small{display:block;font-size:.7rem;font-weight:normal;color:#566879;margin-top:4px}.trend-table thead th{background:#dce8f3;color:#395b7e}.trend-table thead th:first-child{background:#dce8f3;z-index:3}
.trend-chart-scroll{overflow-x:auto}.trend-chart-scroll svg{display:block;width:100%;min-width:540px;font-size:12px;fill:#42586d}.trend-legend{display:flex;gap:10px 16px;flex-wrap:wrap;font-size:.8rem}.trend-legend span{overflow-wrap:anywhere}.trend-legend i{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:5px}
#trendFilter{width:min(520px,calc(100vw - 24px));max-height:85dvh;padding:20px;box-sizing:border-box}#trendFilter form{display:flex;flex-direction:column;max-height:calc(85dvh - 40px)}#trendFilter h2{font-size:1.2rem}#trendFilter .trend-options{overflow-y:auto;min-height:0;flex:1}#trendFilter fieldset{border:0;padding:8px 0;margin:0}#trendFilter legend{font-weight:bold}#trendFilter .trend-option{display:flex;align-items:center;gap:10px;min-height:44px;overflow-wrap:anywhere}#trendFilter .trend-option[hidden]{display:none}#trendFilter input[type=checkbox]{width:20px;height:20px;flex-shrink:0}#trendFilter .dialog-actions{display:flex;gap:8px;flex-shrink:0}#trendFilter .dialog-actions button{flex:1;padding:12px 8px}
