.financial-history { min-width:0; overflow-wrap:anywhere; }
.financial-history-change { display:grid; grid-template-columns:minmax(100px,1fr) minmax(0,3fr); gap:12px; }
.financial-reason-dialog { z-index:100000; width:min(520px,calc(100% - 32px)); max-height:85dvh; overflow:auto; padding:24px; border:1px solid hsl(var(--border,214 32% 91%)); border-radius:12px; background:hsl(var(--background,0 0% 100%)); color:hsl(var(--foreground,222 47% 11%)); box-shadow:0 20px 70px #0004; }
.financial-reason-dialog::backdrop { background:#0008; }
.financial-reason-dialog h2 { font-size:20px; font-weight:600; margin-bottom:8px; }
.financial-reason-dialog p { font-size:14px; margin-bottom:16px; }
.financial-reason-dialog label { display:block; font-size:14px; font-weight:600; margin-bottom:8px; }
.financial-reason-dialog textarea { display:block; width:100%; min-height:112px; resize:vertical; padding:12px; border:1px solid #94a3b8; border-radius:6px; background:inherit; color:inherit; }
.financial-reason-error { color:#b91c1c; min-height:20px; margin:6px 0!important; }
.financial-reason-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.financial-reason-actions button { border:1px solid #94a3b8; border-radius:6px; padding:8px 12px; font-size:14px; }
.financial-reason-actions button[type=submit] { background:#0f766e; color:white; border-color:#0f766e; }
@media(max-width:480px) { .financial-history-change { grid-template-columns:1fr; gap:2px; } .financial-reason-actions button { width:100%; } }
.financial-history-group { border:1px solid hsl(var(--border)); border-radius:10px; overflow:hidden; }
.financial-history-group > details > summary { display:block; cursor:pointer; padding:16px; list-style:none; }
.financial-history-group > details > summary::-webkit-details-marker { display:none; }
.financial-history-group > details > summary:focus-visible { outline:2px solid hsl(var(--ring)); outline-offset:-3px; }
.financial-history-group-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.financial-history-group-title { display:block; font-weight:600; }
.financial-history-group-contact,.financial-history-group-meta { display:block; font-size:12px; color:hsl(var(--muted-foreground)); margin-top:4px; }
.financial-history-group-count { flex-shrink:0; border-radius:6px; padding:4px 8px; font-size:12px; background:hsl(var(--muted)); }
.financial-history-group-action { font-size:14px; margin-top:12px; font-weight:500; }
.financial-history-group-reason { font-size:14px; margin-top:8px; white-space:pre-wrap; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.financial-history-group-expand { display:block; margin-top:12px; font-size:13px; font-weight:500; color:hsl(var(--primary)); }
.financial-history-group > details[open] > summary .financial-history-group-expand::after { content:' · aberto'; }
.financial-history-group-content { padding:0 12px 12px; }
@media(max-width:480px) { .financial-history-group-heading { flex-wrap:wrap; } }
