/* Shared controls and feedback, kept separate from printable documents. */
.btn,button,input,select,textarea{font:inherit}
.btn{min-height:38px;border-radius:8px;line-height:1.35;align-items:center;justify-content:center;box-shadow:none}
.btn:disabled,button:disabled{cursor:wait;opacity:.65}
button:disabled:not([data-busy]){cursor:not-allowed}
[data-busy]::before{content:'';width:14px;height:14px;flex:0 0 14px;display:inline-block;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:busy-spin .8s linear infinite;margin-right:7px}
@keyframes busy-spin{to{transform:rotate(360deg)}}
.toast-stack{top:auto;bottom:22px;right:22px;width:min(380px,calc(100vw - 24px));max-height:calc(100dvh - 40px);overflow-y:auto}
.toast{padding:14px 12px 14px 16px;border-radius:10px;box-shadow:0 4px 20px #10203014;align-items:flex-start}
.toast-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;min-width:36px;min-height:36px;border-radius:6px;margin-top:-6px;margin-right:-4px}
.toast-close:hover{background:var(--surface-alt);color:var(--ink)}
.toast-success{border-left-color:#278268}.toast-error{border-left-color:#b84b4b}
.dialog-errors,.errors{border:1px solid #c66b6b;border-left-width:3px;border-radius:8px;padding:14px;background:var(--surface-alt);color:var(--ink);overflow-wrap:anywhere}
.dialog-errors[hidden]{display:none}.dialog-errors p,.errors p{margin:4px 0}.dialog-errors a,.errors a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.field-error{display:block;margin-top:5px;font-size:12px;font-weight:400;line-height:1.5;color:#a72c36}
input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true]{border-color:#b84b4b;outline:1px solid #b84b4b;outline-offset:0}
[data-theme=dark] .field-error{color:#ffb4b4}
.workspace-dialog{border-radius:12px;box-shadow:0 12px 48px #10203024}.dialog-heading{align-items:center}.dialog-heading .btn{flex:none}
.skip-link{position:fixed;left:16px;top:-100px;z-index:200;padding:12px 18px;background:var(--surface);color:var(--ink);border:2px solid var(--focus);border-radius:8px}.skip-link:focus{top:12px}
.panel>h1{font-size:24px;letter-spacing:-.5px}.panel>h2{font-size:18px}.actions{row-gap:8px}
.panel.grid>.btn{justify-self:start}.errors:focus,.dialog-errors:focus{outline:2px solid #c66b6b;outline-offset:3px}
.live-search-status:empty{position:absolute;width:1px;height:1px;min-height:0;margin:0;overflow:hidden;clip-path:inset(50%)}
.loan-table td:nth-child(n+2):nth-child(-n+6){font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:760px){.btn,.toast-close{min-height:44px}.toast-stack{bottom:12px;right:12px}.toast-close{min-width:44px;flex-basis:44px}.panel>h1{font-size:22px}.workspace-dialog .grid.three,.workspace-dialog .grid.two{grid-template-columns:1fr}input,select,textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){[data-busy]::before{animation:none}}
