/* Aligned period controls and deliberate table proportions. */
.monthly-finance-content{padding:20px}
.monthly-finance-period{display:grid;grid-template-columns:minmax(250px,1fr) minmax(250px,1fr) auto;align-items:end;gap:16px;margin-bottom:20px}
.monthly-finance-period label{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;width:auto;font-size:14px;font-weight:600}
.monthly-finance-period input{width:100%;min-width:0;max-width:none;height:48px;margin:0;font-size:16px;box-sizing:border-box;padding:10px 14px}
.monthly-finance-period button{height:48px;margin:0;white-space:nowrap}
.monthly-finance-table{min-width:calc(260px + var(--finance-columns,1)*180px);width:100%;table-layout:auto}
.monthly-finance-table thead th:first-child{width:32%;min-width:260px}
.monthly-finance-table thead th:not(:first-child){min-width:180px;text-align:right;white-space:normal}
.monthly-finance-table th,.monthly-finance-table td{padding:14px 18px;line-height:1.5}
.monthly-finance-table tbody th{white-space:normal}
#report-form>h3{margin-bottom:8px}
#report-form>.muted{margin-bottom:20px}
#report-form .report-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#report-form .report-filter-grid>label{display:flex;flex-direction:column;gap:8px;padding:16px;margin:0;min-width:0;font-weight:600}
#report-form .report-filter-grid>label[hidden]{display:none}
#report-form .report-filter-grid>label:first-child{background:#eaf2fb;border-color:#c5d2dd}
#report-form[data-period=range] .report-filter-grid>label:first-child{grid-column:1/-1}
#report-form .report-filter-grid>label:last-child{grid-column:1/-1;background:#e9f3f5;border-color:#b9d2d7}
#report-form .report-filter-grid input,#report-form .report-filter-grid select{width:100%;min-width:0;height:48px;margin:0;box-sizing:border-box;font-size:16px}
#report-form>button{display:block;margin-left:auto}
@media(max-width:1000px){.monthly-finance-period{grid-template-columns:repeat(2,minmax(0,1fr))}.monthly-finance-period button{grid-column:1/-1;justify-self:end;width:auto}}
@media(max-width:600px){.monthly-finance-period,#report-form .report-filter-grid{grid-template-columns:1fr}.monthly-finance-period label{width:100%}.monthly-finance-period button,#report-form>button{width:100%;justify-self:stretch}.monthly-finance-table thead th:first-child{min-width:220px}.monthly-finance-content{padding:14px}}
