/* PRONTO FLUX | refinamentos não destrutivos de 23/10/2026
   Específico às telas existentes; não altera saldos, permissões ou movimentações. */
:root{--pf-refresh-red:#D71920}
.pf-refresh-switch{display:inline-flex;align-items:center;gap:3px;border:1px solid var(--border);background:var(--panel2);border-radius:11px;padding:4px;margin-left:auto;flex-shrink:0}
.pf-refresh-switch button{display:inline-flex;gap:6px;align-items:center;justify-content:center;background:transparent;border:1px solid transparent;color:var(--muted);border-radius:8px;padding:8px 11px;font-size:11px;font-weight:800;min-height:35px}
.pf-refresh-switch button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}
.pf-refresh-switch button[aria-pressed="true"]{background:color-mix(in srgb,var(--red) 14%,var(--panel));border-color:color-mix(in srgb,var(--red) 45%,transparent);color:var(--red)}
.pf-refresh-switch button:hover{color:var(--text)}
.pf-refresh-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pf-refresh-page .page-head,.pf-refresh-page .page-head-actions{gap:10px}
.pf-refresh-page .filter-panel,.pf-refresh-page .filters-panel,.pf-refresh-page .filter-card{border-radius:15px}
.pf-refresh-page input:not([type="checkbox"]),.pf-refresh-page select{border-radius:9px}
.pf-refresh-page .standard-card,.pf-refresh-page .module-card{transition:border-color .17s ease,box-shadow .17s ease}
.pf-refresh-page .standard-card:hover,.pf-refresh-page .module-card:hover{border-color:color-mix(in srgb,var(--red) 28%,var(--border));box-shadow:0 7px 18px rgba(0,0,0,.10)}
.pf-notifications-match{color:var(--text)!important}
.pf-notifications-match svg{color:inherit!important;stroke:currentColor!important}

.pf-refresh-page .pf-refresh-empty{min-height:110px;display:grid;place-content:center;gap:8px;text-align:center;color:var(--muted);border:1px dashed var(--border);border-radius:13px;padding:20px}
.pf-refresh-page .pf-refresh-empty svg{margin:auto;color:var(--red)}
/* Lista/grid de recibos: preserva elementos HTML, botões e menus reais. */
.finance-receipts-page .finance-receipt-toolbar{gap:10px;flex-wrap:wrap}
.finance-receipts-page[data-pf-mode="grid"] .table-wrap{overflow:visible}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table{display:block;min-width:0;width:100%;border-collapse:separate}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table thead{display:none}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table tbody{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;padding:10px}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table tr{display:flex;flex-direction:column;min-width:0;border:1px solid var(--border);border-radius:13px;background:var(--panel);padding:12px}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table td{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0;padding:7px 2px!important;border:0;font-size:11px}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table td:before{flex:0 0 63px;color:var(--muted);font-size:9px;font-weight:800;line-height:1.5}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table td:nth-child(1):before{content:"CÓDIGO"}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table td:nth-child(2):before{content:"DATA"}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table td:nth-child(3):before{content:"CLIENTE"}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table td:nth-child(4):before{content:"DESCRIÇÃO"}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table td:nth-child(5):before{content:"VALOR"}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table td:nth-child(6):before{content:"STATUS"}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table td:nth-child(n+7):before{content:""}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table td>*{max-width:100%;overflow-wrap:anywhere}
.finance-receipts-page .finance-receipt-table td:first-child b{color:var(--text);letter-spacing:.015em}
/* Telas financeiras e administrativas */
.payables-page .payable-view-switch{margin-left:auto;border-radius:11px;padding:4px;box-shadow:0 1px 4px #00000012}
.payables-page .payable-view-switch button{min-height:34px;border-radius:8px;min-width:56px}
.payables-page .payable-view-switch button.active{background:color-mix(in srgb,var(--red) 17%,var(--panel));color:var(--red);border-color:color-mix(in srgb,var(--red) 36%,transparent)}
.pf-refresh-page .payable-metric,.pf-refresh-page .finance-receipt-kpis article{border-radius:13px}
.pf-refresh-page .payable-metric strong{font-variant-numeric:tabular-nums}
.pf-refresh-page .payable-workspace-filters{gap:10px}
.pf-refresh-page .payable-workspace-results{flex-wrap:wrap}
.pf-refresh-page .tag{font-weight:800}
.pf-refresh-page .inventory-dots,.pf-refresh-page button{transition:border-color .15s,background .15s}
.pf-refresh-page .table-wrap{border-radius:14px}
.pf-refresh-page table th{font-size:10px;letter-spacing:.035em}
.pf-refresh-page table td{vertical-align:middle}
.pf-refresh-page .field label{line-height:1.35}
.pf-refresh-page .filter-panel input[type="checkbox"],.pf-refresh-page .filter-card input[type="checkbox"]{accent-color:var(--red)}
.pf-reports-refresh .kpi-grid,.pf-reports-refresh .metrics-grid,.pf-reports-refresh .report-stats{gap:11px}
.pf-reports-refresh .kpi-card,.pf-reports-refresh .report-card,.pf-reports-refresh .stat-card{border-radius:15px;border:1px solid var(--border);background:linear-gradient(140deg,var(--panel),color-mix(in srgb,var(--red) 3%,var(--panel)));padding:17px}
.pf-reports-refresh .kpi-card strong,.pf-reports-refresh .report-card strong{font-variant-numeric:tabular-nums}
.pf-commission-refresh .table-wrap,.pf-commission-refresh table{border-radius:13px}
.pf-commission-refresh table tbody tr:hover{background:color-mix(in srgb,var(--red) 5%,var(--panel))}
.pf-commission-refresh table thead{background:var(--panel2)}
.pf-types-refresh .standard-card,.pf-payment-refresh .standard-card,.pf-voucher-refresh .standard-card{border-radius:13px}
.pf-types-refresh [class*="type"][class*="grid"],.pf-payment-refresh [class*="method"][class*="grid"]{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.pf-voucher-refresh [class*="voucher"][class*="filter"]{gap:10px}
.pf-visual-list{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
.pf-visual-list > article,.pf-visual-list > .standard-card{max-width:none!important;width:100%;min-height:unset}
.pf-device-filter{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 13px}
.pf-device-filter button{border:1px solid var(--border);background:var(--panel2);border-radius:999px;color:var(--text);min-height:32px;padding:6px 11px;font-size:11px;font-weight:750}
.pf-device-filter button[aria-pressed="true"]{background:color-mix(in srgb,var(--red) 15%,var(--panel));border-color:var(--red);color:var(--red)}
.pf-encomenda-scroll{overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
.pf-refresh-page .standard-card-thumb svg{width:23px;height:23px;color:var(--red)}
.pf-profile-avatar{display:grid;place-items:center;color:#8350bc!important;background:rgba(113,71,159,.15)!important;border-radius:50%}
.pf-profile-avatar svg{width:22px;height:22px;fill:#8350bc;stroke:#8350bc}
/* Preserva cores da empresa e da assinatura, sem interferir no checkout. */
@media(max-width:1150px){
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table tbody{grid-template-columns:repeat(3,minmax(0,1fr))}
.pf-types-refresh [class*="type"][class*="grid"],.pf-payment-refresh [class*="method"][class*="grid"]{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:850px){
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table tbody{grid-template-columns:repeat(2,minmax(0,1fr))}
.pf-types-refresh [class*="type"][class*="grid"],.pf-payment-refresh [class*="method"][class*="grid"]{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table tbody{grid-template-columns:1fr}
.pf-types-refresh [class*="type"][class*="grid"],.pf-payment-refresh [class*="method"][class*="grid"]{grid-template-columns:1fr}
.pf-refresh-switch{width:auto}
}
@media print{
.pf-refresh-switch,.pf-device-filter{display:none!important}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table{display:table!important}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table tbody{display:table-row-group!important}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table tr{display:table-row!important}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table td{display:table-cell!important}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table thead{display:table-header-group!important}
.finance-receipts-page[data-pf-mode="grid"] .finance-receipt-table td:before{content:none!important}
}
@media(prefers-reduced-motion:reduce){.pf-refresh-page .standard-card,.pf-refresh-page .module-card{transition:none}}


/* Acabamento da rodada funcional após atualização do app.js. */
.device-equipment-type-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:9px 0 13px}
.device-equipment-type-tabs button{border:1px solid var(--border);background:var(--panel);color:var(--muted);border-radius:999px;min-height:35px;padding:8px 14px;font-weight:800;font-size:11px}
.device-equipment-type-tabs button:hover{border-color:var(--red);color:var(--text)}
.device-equipment-type-tabs button.active{background:color-mix(in srgb,var(--red) 15%,var(--panel));border-color:var(--red);color:var(--red)}
.sale-list-avatar svg{display:block;width:20px;height:20px;color:var(--red);stroke-width:1.9}
.co-card-icon svg,.co-avatar svg,.co-order-icon svg{width:21px;height:21px;stroke:var(--red)}
.pf-reports-refresh .stat-grid{gap:13px}
.pf-reports-refresh .stat-grid .stat{border-radius:16px;padding:17px;background:linear-gradient(130deg,var(--panel),color-mix(in srgb,var(--red) 4%,var(--panel)));border:1px solid var(--border);min-height:110px}
.pf-reports-refresh .stat-grid .stat span{color:var(--muted);font-size:11px;font-weight:820;text-transform:uppercase}
.pf-reports-refresh .stat-grid .stat b{font-size:clamp(19px,2vw,27px);font-variant-numeric:tabular-nums}
.pf-reports-refresh .split .card{border-radius:16px;padding:19px}
.pf-commission-refresh .commission-kpis button{border-radius:14px;min-height:96px}
.pf-commission-refresh .commission-rules,.pf-commission-refresh .commission-help,.pf-commission-refresh .commission-rule{border-radius:13px;padding:14px}
.pf-commission-refresh .commission-table th{white-space:nowrap}
.pf-payment-refresh .payment-method-add-wrap{position:static!important;inset:auto!important;margin-top:14px;display:flex;justify-content:flex-end}
.pf-payment-refresh .payment-method-add-wrap .btn{min-height:39px}
.payment-methods-page .payment-method-card-grid.pf-visual-list>.payment-method-card{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:13px 16px;min-height:80px}
.payment-methods-page .pf-visual-list .payment-method-card-head{flex:1 1 260px;min-width:0;gap:12px}
.payment-methods-page .pf-visual-list .payment-method-card-flags{flex:1 1 260px;justify-content:flex-start;margin:0}
.payment-methods-page .pf-visual-list .payment-method-card-foot{flex:1 1 170px;border:0;margin:0;gap:10px}
.expense-types-page .expense-type-grid.pf-visual-list>.expense-type-card{width:100%;display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:68px;padding:11px 15px}
.pf-types-refresh .expense-type-note{border-radius:12px}
.pf-voucher-refresh .voucher-filters,.pf-voucher-refresh .voucher-filter-panel{border-radius:15px}
@media(max-width:690px){.device-equipment-type-tabs button{font-size:10px;padding:7px 10px}.payment-methods-page .payment-method-card-grid.pf-visual-list>.payment-method-card{display:block}}


/* Layout de lista explícito nas estruturas reais dos módulos */
.receivables-page #receivableCards.pf-visual-list{display:grid;grid-template-columns:1fr!important;gap:8px}
.receivables-page #receivableCards.pf-visual-list .payable-workspace-card{max-width:none;display:grid;grid-template-columns:minmax(190px,2fr) minmax(165px,1.2fr) minmax(120px,.85fr) auto;gap:10px;align-items:center;padding:12px 15px}
.receivables-page #receivableCards.pf-visual-list .payable-workspace-card .payable-card-top{min-width:0}
.receivables-page #receivableCards.pf-visual-list .payable-workspace-card .payable-workspace-amounts{margin:0}
.voucher-page #voucherGrid.pf-visual-list{display:grid;grid-template-columns:1fr!important;gap:8px}
.voucher-page #voucherGrid.pf-visual-list>.voucher-card{max-width:none;display:flex;gap:16px;align-items:center;justify-content:space-between;padding:12px 15px;min-height:84px}
.voucher-page #voucherGrid.pf-visual-list .voucher-card-head{flex:1 1 270px}
.voucher-page #voucherGrid.pf-visual-list .voucher-card-value{flex:1 1 120px}
.voucher-page #voucherGrid.pf-visual-list .voucher-card-lines{flex:1 1 200px}
@media(max-width:860px){
.receivables-page #receivableCards.pf-visual-list .payable-workspace-card{grid-template-columns:1fr 1fr}
.voucher-page #voucherGrid.pf-visual-list>.voucher-card{flex-wrap:wrap}
}
@media(max-width:590px){
.receivables-page #receivableCards.pf-visual-list .payable-workspace-card{display:grid;grid-template-columns:1fr}
.voucher-page #voucherGrid.pf-visual-list>.voucher-card{display:block}
}


/* Revisão pós-teste — acabamento solicitado nos módulos existentes */
.account-menu-row[data-account-page="subscription"]>span:first-child svg{
 width:19px;height:19px;display:block;color:var(--red);stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
}
#topNotices,#topNotifications{color:var(--text)!important}
#topNotices svg,#topNotifications svg{stroke:currentColor!important;color:inherit!important}
#topNotifications .notice-badge{color:#fff!important}
.modal.pf-encomenda-scroll{
 overflow-y:auto!important;
 overscroll-behavior-y:contain;
 scrollbar-gutter:stable;
 scroll-behavior:auto;
}
.pf-commission-refresh .commission-filter,.pf-commission-refresh .commission-rules,.pf-commission-refresh .commission-table-wrap{
 border:1px solid var(--border);border-radius:13px;
}
.pf-commission-refresh .commission-kpis{gap:10px}
.pf-commission-refresh .commission-kpis button{border:1px solid var(--border);transition:border-color .15s ease}
.pf-commission-refresh .commission-kpis button:hover{border-color:color-mix(in srgb,var(--red) 35%,var(--border))}

/* Identificação legível do perfil ativo, sem ampliar permissões. */
.account-popover-profile .pf-account-role{display:block;font-size:10px;font-weight:850;color:var(--red);line-height:1.4;margin:2px 0}
.side-company small{overflow-wrap:anywhere;line-height:1.4}
