/* PRONTO FLUX — resumo visual do fechamento; sem alterações em lançamentos. */
.modal:has(> .modal-body .cash-closing-modal){
 width:min(1060px,calc(100vw - 24px))!important;max-height:min(94dvh,980px)!important;
 display:flex;flex-direction:column;overflow:hidden;border-radius:18px;border-color:var(--border)
}
.modal:has(> .modal-body .cash-closing-modal)>.modal-head{
 flex:0 0 auto;padding:16px 22px;background:var(--panel)
}
.modal:has(> .modal-body .cash-closing-modal)>.modal-head h2{font-size:19px;letter-spacing:-.025em}
.modal:has(> .modal-body .cash-closing-modal)>.modal-body{
 flex:1;min-height:0;overflow:auto;padding:17px 20px!important
}
.modal:has(> .modal-body .cash-closing-modal)>.modal-foot{
 flex:0 0 auto;padding:13px 20px;gap:9px;flex-wrap:wrap;background:var(--panel)
}
.modal:has(> .modal-body .cash-closing-modal)>.modal-foot .btn{
 min-height:42px;padding:10px 16px;font-size:12px
}
.cash-closing-screen.cash-closing-modal{max-height:none;overflow:visible;padding:0;gap:14px}
.cash-closing-screen .pf-cash-overview{display:flex;flex-direction:column;gap:12px}
.pf-cash-overview-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.pf-cash-overview-head h3{
 font-size:22px;letter-spacing:-.03em;margin:3px 0 4px;line-height:1.25;color:var(--text)
}
.pf-cash-overview-head p{font-size:12px;color:var(--muted);line-height:1.5;margin:0}
.pf-cash-eyebrow{font-size:10px;font-weight:850;color:var(--red);letter-spacing:.12em}
.pf-cash-status{
 color:var(--red);background:color-mix(in srgb,var(--red) 9%,var(--panel));
 border:1px solid color-mix(in srgb,var(--red) 30%,var(--border));border-radius:30px;
 padding:8px 12px;font-size:10px;font-weight:850;white-space:nowrap;letter-spacing:.05em
}
.pf-cash-total-hero{
 position:relative;overflow:hidden;min-width:0;display:flex;justify-content:space-between;align-items:center;
 gap:12px;border:1px solid #9f292b;border-radius:15px;padding:21px 24px;color:#fff;
 background:linear-gradient(115deg,#4b1119 0%,#2b1219 49%,#161417 100%)
}
.pf-cash-total-hero small{display:block;font-size:10px;font-weight:850;color:#ffbfc2;letter-spacing:.1em}
.pf-cash-total-hero strong{
 display:block;font-size:clamp(26px,4vw,37px);font-weight:900;letter-spacing:-.045em;line-height:1.2;
 margin:5px 0 7px;font-variant-numeric:tabular-nums
}
.pf-cash-total-hero p{font-size:11.5px;line-height:1.6;max-width:720px;color:#f1d7dc;margin:0}
.pf-cash-total-hero b{color:#fff}
.pf-cash-total-mark{font-size:75px;line-height:1;color:#ffffff1b;font-weight:800;margin-right:6px;pointer-events:none}
.pf-cash-equation{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.pf-cash-figure{
 border:1px solid var(--border);background:var(--panel2);border-radius:12px;padding:14px;
 min-width:0;display:flex;flex-direction:column;gap:5px
}
.pf-cash-figure small{font-size:9px;line-height:1.45;letter-spacing:.075em;font-weight:850;color:var(--muted)}
.pf-cash-figure b{
 font-size:clamp(16px,1.6vw,21px);letter-spacing:-.035em;font-weight:850;line-height:1.25;
 color:var(--text);overflow-wrap:anywhere;font-variant-numeric:tabular-nums
}
.pf-cash-figure em{font-size:10px;font-style:normal;color:var(--muted);line-height:1.45}
.pf-cash-figure-in{border-color:color-mix(in srgb,var(--success) 30%,var(--border))}
.pf-cash-figure-in small{color:var(--success)}
.pf-cash-figure-out{border-color:color-mix(in srgb,var(--warning) 24%,var(--border))}
.pf-cash-figure-out small{color:var(--warning)}
.pf-cash-excluded{
 border:1px solid var(--border);background:var(--panel);border-radius:12px;padding:14px 16px;
 display:grid;grid-template-columns:minmax(0,1.55fr) minmax(210px,1fr);gap:16px;align-items:center
}
.pf-cash-excluded-head b{font-size:12px;color:var(--text)}
.pf-cash-excluded-head p{margin:5px 0 0;font-size:11px;color:var(--muted);line-height:1.55}
.pf-cash-excluded-list{display:grid;gap:7px;min-width:0}
.pf-cash-excluded-item{
 display:flex;justify-content:space-between;align-items:center;gap:10px;
 padding:7px 10px;background:var(--panel2);border:1px solid var(--border);border-radius:8px
}
.pf-cash-excluded-item span,.pf-cash-excluded-empty{font-size:11px;color:var(--muted);line-height:1.4}
.pf-cash-excluded-item b{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.pf-cash-excluded-empty{margin:0}
.pf-cash-footnote{
 display:flex;gap:8px;align-items:flex-start;padding:10px 12px;
 background:color-mix(in srgb,var(--info) 7%,var(--panel));
 border:1px solid color-mix(in srgb,var(--info) 22%,var(--border));
 border-radius:10px;color:var(--muted);font-size:11px;line-height:1.55;margin:0
}
.pf-cash-footnote span{font-size:15px;line-height:1.2;color:var(--info)}
.cash-closing-screen:has(.pf-cash-overview){gap:14px}
.cash-closing-screen:has(.pf-cash-overview) .cash-closing-header-grid{
 grid-template-columns:repeat(3,minmax(0,1fr));gap:9px
}
.cash-closing-screen:has(.pf-cash-overview) .cash-closing-header-grid>div:nth-child(n+4){display:none}
.cash-closing-screen:has(.pf-cash-overview) .cash-closing-header-grid>div{
 padding:11px 13px;background:var(--panel2)
}
.cash-closing-screen:has(.pf-cash-overview) .cash-closing-header-grid b{font-size:12px;line-height:1.45}
.cash-closing-screen:has(.pf-cash-overview) .cash-closing-block{padding:16px;border-radius:13px}
.cash-closing-screen:has(.pf-cash-overview) .cash-closing-block h3{
 font-size:15px;letter-spacing:-.018em;margin-bottom:3px
}
.cash-closing-screen:has(.pf-cash-overview) .cash-closing-block>small{line-height:1.5;font-size:11px}
.cash-closing-screen:has(.pf-cash-overview) .cash-closing-block .table{min-width:690px}
.cash-closing-screen:has(.pf-cash-overview) .cash-closing-block .table th{
 font-size:10px;padding:11px 12px;white-space:nowrap
}
.cash-closing-screen:has(.pf-cash-overview) .cash-closing-block .table td{
 font-size:12px;padding:11px 12px;font-variant-numeric:tabular-nums
}
.cash-closing-screen:has(.pf-cash-overview) .cash-closing-block .table th:last-child,
.cash-closing-screen:has(.pf-cash-overview) .cash-closing-block .table td:last-child{font-weight:800}
.cash-closing-screen:has(.pf-cash-overview) .cash-closing-auth{padding:17px 18px;border-radius:13px}
.cash-closing-screen:has(.pf-cash-overview) .cash-closing-auth h3{font-size:16px}
.cash-closing-screen:has(.pf-cash-overview) .cash-closing-auth p{line-height:1.5}
@media(max-width:800px){
 .pf-cash-equation{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pf-cash-excluded{grid-template-columns:1fr;gap:10px}
}
@media(max-width:540px){
 .modal:has(> .modal-body .cash-closing-modal){
  width:calc(100vw - 10px)!important;max-height:97dvh!important;border-radius:13px
 }
 .modal:has(> .modal-body .cash-closing-modal)>.modal-head{padding:11px 13px}
 .modal:has(> .modal-body .cash-closing-modal)>.modal-head h2{font-size:15px}
 .modal:has(> .modal-body .cash-closing-modal)>.modal-body{padding:12px!important}
 .modal:has(> .modal-body .cash-closing-modal)>.modal-foot{padding:10px 12px}
 .modal:has(> .modal-body .cash-closing-modal)>.modal-foot .btn{
  flex:1 1 auto;padding:10px 8px;font-size:11px
 }
 .pf-cash-overview-head{align-items:flex-start;flex-direction:column;gap:9px}
 .pf-cash-overview-head h3{font-size:19px}
 .pf-cash-total-hero{padding:15px 16px}
 .pf-cash-total-hero strong{font-size:29px}
 .pf-cash-total-mark{display:none}
 .pf-cash-equation{gap:7px}
 .pf-cash-figure{padding:11px}
 .pf-cash-figure b{font-size:16px}
 .cash-closing-screen:has(.pf-cash-overview) .cash-closing-header-grid{grid-template-columns:1fr}
 .cash-closing-screen:has(.pf-cash-overview) .cash-closing-block{padding:12px}
 .cash-closing-screen:has(.pf-cash-overview) .cash-closing-auth .form-grid{grid-template-columns:1fr}
}
