.financial-controls { display:flex; align-items:end; flex-wrap:wrap; gap:12px; padding:16px 20px; border-bottom:1px solid var(--line); }
.financial-controls label { display:grid; gap:6px; font-size:11px; font-weight:700; }
.financial-controls select,.financial-controls input:not([type=checkbox]) { min-height:38px; border:1px solid var(--line); border-radius:5px; padding:8px; font:inherit; background:white; color:var(--ink); }
.financial-controls input[type=number] { width:110px; }
.financial-controls .check-field { display:flex; gap:8px; align-items:center; min-height:38px; }
.financial-defaults { padding:18px 20px; background:var(--soft); border-bottom:1px solid var(--line); }
.financial-defaults h3 { margin:0 0 8px; }.financial-defaults p { margin:0 0 16px; font-size:12px; color:var(--muted); }
.financial-month-percentages { display:grid; grid-template-columns:repeat(12,minmax(65px,1fr)); gap:8px; }
.financial-month-percentages label { display:grid; gap:6px; font-size:11px; font-weight:700; }
.financial-month-percentages input { min-width:0; width:100%; padding:9px 5px; border:1px solid var(--line); border-radius:5px; font:inherit; background:white; }
.financial-allocation-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:14px; }
.financial-notice { padding:0 20px; font-size:12px; overflow-wrap:anywhere; }.financial-notice:empty { display:none; }
.financial-budget .admin-summary { padding:12px 20px; }
.financial-table-wrap { max-width:100%; overflow:auto; max-height:65vh; }
.financial-budget-table { min-width:1720px; }.financial-budget-table td { text-align:right; font-variant-numeric:tabular-nums; }
.financial-budget-table th:first-child { min-width:240px; max-width:320px; text-align:left; }.financial-budget-table th small { display:block; color:var(--muted); font-weight:400; margin-top:4px; }
.financial-budget-table tbody th:first-child,.financial-pl-table tbody tr:not(.financial-section) > th:first-child { position:sticky; left:0; z-index:1; background:white; }
.financial-budget-table thead th:first-child,.financial-pl-table thead tr:first-child th:first-child { left:0; z-index:4; }
.financial-budget-table input { width:135px; min-height:34px; text-align:right; padding:7px; border:1px solid var(--line); border-radius:4px; font:inherit; }
.financial-budget-table thead th,.financial-pl-table thead th { position:sticky; top:0; z-index:2; background:var(--soft); white-space:nowrap; }
.financial-pl-table { min-width:100%; }.financial-pl-table th:first-child { min-width:240px; text-align:left; }
.financial-pl-table td { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.financial-pl-table thead tr:first-child th { height:28px; }.financial-pl-table thead tr:nth-child(2) th { top:28px; }
.financial-pl-table .financial-section th { background:var(--soft); padding-top:16px; font-size:12px; }
.financial-pl-table .financial-total { font-weight:800; border-top:1px solid var(--line); }.financial-pl-table .financial-total:last-child { background:#e9f4f1; border-top:2px solid var(--teal); }
.financial-display-controls { background:var(--soft); }
.financial-print-report { display:none; }
.financial-pl-table tbody .financial-total:last-child > th { background:#e9f4f1; }
@media(max-width:1100px) { .financial-month-percentages { grid-template-columns:repeat(6,minmax(65px,1fr)); } }
@media(max-width:600px) { .financial-month-percentages { grid-template-columns:repeat(3,minmax(65px,1fr)); }.financial-controls { padding:12px; }.financial-controls label { flex:1 1 130px; }.financial-controls input[type=number] { width:100%; }.financial-defaults { padding:14px 12px; }
 .financial-budget > .admin-panel-heading,.financial-report > .admin-panel-heading { flex-direction:column; align-items:stretch; gap:12px; }
 .financial-budget > .admin-panel-heading .admin-list-heading-actions,.financial-report > .admin-panel-heading .admin-list-heading-actions { justify-content:flex-end; }
 .financial-budget .admin-card strong { font-size:clamp(16px,5vw,24px); overflow-wrap:anywhere; }
}
@media print {
 .financial-report,.financial-report * { visibility:visible; }
 .financial-report { position:absolute; inset:0 auto auto 0; width:100%; max-width:none; margin:0; border:0; box-shadow:none; background:white; }
 .financial-report .financial-controls,.financial-report .admin-list-heading-actions,.financial-report [data-profit-loss-report] { display:none!important; }
 .financial-print-report { display:block; }.financial-print-block + .financial-print-block { break-before:page; }
 .financial-print-report .financial-pl-table { width:100%; min-width:0; font-size:9px; }
 .financial-print-report .financial-pl-table th:first-child { min-width:0; width:35%; }
 .financial-print-report .financial-pl-table th,.financial-print-report .financial-pl-table td { position:static!important; padding:6px; }
 .financial-print-report thead { display:table-header-group; }.financial-print-report tr { break-inside:avoid; }
}
