.value-positive{color:#249477!important}.value-negative{color:#ec0000!important}
.statement-panel{margin:22px 0}.statement-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:18px}.statement-card{padding:19px;border:1px solid #e4eaf1;border-radius:20px;background:#fcfdff}.statement-heading{display:flex;align-items:center;gap:10px}.statement-heading>div{flex:1;min-width:0}.statement-heading h3{font-size:14px;font-weight:500;margin:0 0 4px}.statement-heading small{color:var(--text-muted);font-size:11px;line-height:1.6}.statement-heading .pill{white-space:nowrap;flex-shrink:0}.statement-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,112px),1fr));gap:12px;margin:21px 0}.statement-facts>div{display:grid;gap:8px}.statement-facts span,.statement-bottom>small{font-size:11px;color:var(--text-muted)}.statement-facts b{font-size:16px;font-weight:500}.statement-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px}.statement-bottom .secondary{min-height:40px;font-size:12px;padding:9px 12px}.statement-bottom .secondary:disabled{opacity:.55;cursor:default}.statement-history{margin-top:18px;color:var(--text-muted);font-size:12px}.statement-history>summary{cursor:pointer}.statement-history>div{display:flex;align-items:center;gap:10px;padding-top:12px}.statement-history>div>span{flex:1}.statement-history b{font-weight:400}.statement-history .delete{padding:3px}.statement-history svg{width:15px;height:15px}.payment-invoice-title{display:flex;align-items:center;gap:12px;margin-bottom:22px}.payment-invoice-title>div{display:grid;gap:6px}.payment-invoice-title b{font-size:15px;font-weight:500}.payment-invoice-title small{font-size:12px;color:var(--text-muted)}.invoice-payment-label{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--text-muted)}.payment-status-readonly{opacity:.7;pointer-events:none}.payment-status-readonly summary{cursor:default}.transaction-table .tx-amount.value-positive{color:#249477!important}.summary-value.value-positive{color:#249477}.summary-value.value-negative{color:#ec0000}
@media(max-width:600px){.statement-card{padding:15px}.statement-facts{gap:8px}.statement-facts b{font-size:14px}.statement-heading{flex-wrap:wrap}.statement-bottom{flex-wrap:wrap}.statement-history>div{flex-wrap:wrap}}

#form .invoice-debit-choice{display:flex;align-items:center;gap:10px;cursor:pointer;padding:13px 15px;border:1px solid var(--menu-selected-border,#d0deea);border-radius:var(--control-radius);background:var(--nexo-surface);font-size:13px;line-height:1.5}#form .invoice-debit-choice input{width:17px;height:17px;min-height:17px;margin:0;accent-color:#ec0000;flex:0 0 17px}#form [data-invoice-debit-account][hidden]{display:none}

.invoice-payment-error { color: #a52222; margin: 0; line-height: 1.45; }

.statement-heading > .statement-statuses { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 6px; }
.statement-cycle.is-closed { background: #e7eef4; color: var(--text-secondary); }
.statement-cycle.is-overdue { background: #ffe7e7; color: #a52020; }
.statement-cycle-note { margin: 12px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }

.statement-panel > .panel-heading { justify-content: center; }
.statement-period-control { display: flex; justify-content: center; margin: 14px auto; }
@media (min-width: 801px) {
 .statement-panel > .panel-heading { justify-content: flex-start; }
}

/* Botão Pagar fatura: vermelho sólido, limitado ao cartão de fatura. */
#app .statement-card .statement-bottom button[data-pay-invoice]:not(:disabled) {
 display:inline-flex;
 align-items:center;
 justify-content:center;
 gap:12px;
 border:1px solid #ec0000;
 border-radius:12px;
 background:#ec0000;
 color:#fff;
 box-shadow:none;
 text-align:center;
}
#app .statement-card .statement-bottom button[data-pay-invoice]:not(:disabled) :is(span,svg,.nexo-icon) {color:inherit;stroke:currentColor}
#app .statement-card .statement-bottom button[data-pay-invoice]:not(:disabled):hover {background:#d60000;border-color:#d60000;color:#fff}
#app .statement-card .statement-bottom button[data-pay-invoice]:not(:disabled):active {background:#c40000;border-color:#c40000}

/* Datas da fatura: fechamento imediatamente acima do vencimento. */
.statement-bottom .statement-dates{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
.statement-bottom .statement-dates>small{font-size:11px;color:var(--text-muted);line-height:1.5;white-space:nowrap}
