/* Shared payment workspace: inherit the app's light and dark surface tokens. */
.finance-workspace,.finance-modal,.finance-expense-details{min-width:0;overflow-wrap:anywhere}
.finance-mode{padding:12px 16px;border-left:3px solid #537da4;background:var(--workspace-soft);color:var(--workspace-ink);font-size:13px;line-height:1.7;border-radius:0 8px 8px 0}
.finance-request-fields,.finance-retirement-line,.finance-claim-files{grid-column:1/-1;min-width:0;border:1px solid var(--workspace-line);border-radius:10px;padding:18px;margin:12px 0}
.finance-request-fields legend,.finance-retirement-line legend,.finance-claim-files legend{font-weight:700;padding:0 7px}
.finance-request-fields p{margin-bottom:0;font-size:13px;line-height:1.7}
.finance-retirement-line>.secondary{margin-top:12px}
.finance-editor .field{margin:0}
.finance-review{border:1px solid var(--workspace-line);background:var(--workspace-soft);border-radius:10px;padding:16px;margin:16px 0}
.finance-review h3{margin:0}
.finance-message:not(:empty){margin:16px 0}
.finance-expense-details{padding:18px 0;border-top:1px solid var(--workspace-line);border-bottom:1px solid var(--workspace-line);margin:18px 0}
.finance-demo-code{padding:16px;background:var(--workspace-soft);border:2px dashed var(--workspace-ink);border-radius:8px;font-size:20px;font-weight:800;letter-spacing:2px}
.finance-empty{padding:24px;border:1px dashed var(--workspace-line);border-radius:10px;background:var(--workspace-surface)}
.finance-budget{padding:20px;border:1px solid var(--workspace-line);border-radius:12px;background:var(--workspace-surface);margin:16px 0}
.finance-budget h3{margin:0 0 8px}
.finance-budget-bar{display:flex;width:100%;height:16px;border-radius:8px;overflow:hidden;background:var(--workspace-soft);margin:15px 0}
.finance-budget-spent{background:#ba3e4a}.finance-budget-reserved{background:#b37a1c}.finance-budget-free{background:#26836d}
.finance-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}
.finance-chart{padding:20px;background:var(--workspace-surface);border:1px solid var(--workspace-line);border-radius:12px;min-width:0}
.finance-chart h2{font-size:18px!important;margin:0 0 18px;line-height:1.5}
.finance-chart-label{display:flex;justify-content:space-between;gap:12px;margin-top:16px;font-size:13px}
.finance-chart-label strong{white-space:nowrap}
.finance-chart-track{height:9px;background:var(--workspace-soft);border-radius:6px;overflow:hidden;margin:8px 0}
.finance-chart-fill{display:block;height:100%;background:#3973a6;border-radius:6px}
.finance-fill-cost{background:#ba3e4a}
.finance-project-label{display:block;margin:18px 0 5px;font-size:13px}
.finance-chart svg{width:100%;display:block;max-height:260px}
.finance-chart svg text{font-size:9px;fill:var(--workspace-muted)}
.finance-line-axis{fill:none;stroke:var(--workspace-line);stroke-width:1}
.finance-line{fill:none;stroke:#3973a6;stroke-width:3}
.finance-line-point{fill:#3973a6;stroke:var(--workspace-surface);stroke-width:2}
.finance-chart summary{cursor:pointer;padding:12px 0;font-size:13px}
.finance-table-scroll{max-width:100%;overflow:auto;border:1px solid var(--workspace-line);border-radius:10px;margin:20px 0;background:var(--workspace-surface)}
.finance-table{width:100%;border-collapse:collapse;font-size:13px;color:var(--workspace-ink)}
.finance-table :is(th,td){padding:14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--workspace-line);line-height:1.6}
.finance-table th{background:var(--workspace-soft);font-weight:700}
.finance-table tr:last-child td{border-bottom:0}
.finance-workspace :is(input,select){max-width:100%;min-width:0}
.finance-workspace :focus-visible,.finance-modal :focus-visible{outline:3px solid #a85421;outline-offset:3px}
html[data-theme=dark] .finance-chart-fill,html[data-theme=dark] .finance-line-point{background:#86b9e9;fill:#86b9e9}
html[data-theme=dark] .finance-fill-cost{background:#ef9b9f}
html[data-theme=dark] .finance-line{stroke:#86b9e9}
html[data-theme=dark] .finance-workspace :focus-visible,html[data-theme=dark] .finance-modal :focus-visible{outline-color:#ffc28e}
@media(max-width:800px){.finance-chart-grid{grid-template-columns:minmax(0,1fr)}.finance-request-fields,.finance-retirement-line,.finance-claim-files,.finance-chart,.finance-budget{padding:14px}.finance-table-scroll{border:0;background:transparent}.finance-table,.finance-table tbody{display:block;width:100%}.finance-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.finance-table tr{display:block;border:1px solid var(--workspace-line);border-radius:10px;margin-bottom:12px;background:var(--workspace-surface);padding:10px}.finance-table td{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:12px;overflow-wrap:anywhere;padding:10px 4px}.finance-table td::before{content:attr(data-label);font-weight:700;color:var(--workspace-muted)}.finance-table td:last-child{border:0}.finance-table td button{width:100%}.finance-workspace .page-head h1{font-size:26px}.finance-modal .actions>button{flex:1 1 140px}.finance-chart-label{flex-wrap:wrap}.finance-expense-details .pay-metrics{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.finance-workspace *,.finance-modal *{scroll-behavior:auto!important;transition:none!important}}
