/* Ações do detalhe financeiro: uma ação principal e grupos com alinhamento estável. */
dialog.modal.financial-entry-dialog{width:min(46rem,calc(100vw - 2rem));}
.financial-entry-dialog .modal-head{align-items:flex-start;gap:1rem;}
.financial-entry-dialog .modal-head h2{min-width:0;overflow-wrap:anywhere;line-height:1.35;}
.financial-entry-dialog .modal-head>[data-close]{flex-shrink:0;}
.financial-entry-dialog .modal-foot{display:block;max-height:48dvh;overflow-y:auto;background:#f5f8fd;padding:18px 24px;}
.fin-entry-actions{display:grid;gap:16px;min-width:0;}
.fin-action-group{min-width:0;}
.fin-action-group h3{font-size:.7rem;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:#526783;margin:0 0 8px;line-height:1.3;}
.fin-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.fin-actions-quick .fin-action-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
.fin-action-grid>.btn{width:100%;min-width:0;min-height:44px;margin:0;justify-content:center;white-space:normal;line-height:1.3;padding:10px 12px;box-shadow:none;gap:8px;text-align:center;}
.fin-action-grid>.btn:only-child{grid-column:1/-1;}
.fin-action-grid .action-label{min-width:0;overflow-wrap:anywhere;}
.fin-action-grid .icon{flex:0 0 18px;width:18px;height:18px;}
.fin-action-grid .btn-primary{background:#255fbb;border-color:#255fbb;color:#fff;box-shadow:0 2px 4px rgb(25 64 120 / 12%);}
.fin-action-grid .btn-primary:hover{background:#1b4f9e;border-color:#1b4f9e;}
.fin-actions-manage{border-top:1px solid #dce5f0;padding-top:14px;}
.fin-actions-manage .btn-danger{color:#ac2e35;background:#fff;border-color:#e7bcc0;}
.fin-actions-manage .btn-danger:hover{background:#fff2f3;border-color:#cf8b94;}
.financial-entry-dialog .modal-body .callout{margin-bottom:18px;}
@media(max-width:480px){
 dialog.modal.financial-entry-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);}
 .financial-entry-dialog .modal-foot{padding:14px 16px;max-height:48dvh;}
 .fin-entry-actions{gap:14px;}
 .fin-action-grid,.fin-actions-quick .fin-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
 .fin-action-grid>.btn:last-child:nth-child(odd){grid-column:1/-1;}
 .fin-action-grid>.btn{font-size:.78rem;padding:10px 8px;min-height:46px;}
}
@media(max-height:650px){.financial-entry-dialog .modal-foot{max-height:42dvh;}}
