.cp-page{font-size:13px}.cp-page .cp-main>header{display:flex;align-items:center;gap:12px;margin:0 0 8px}.cp-page h2{font-size:21px;margin:0}.cp-page header span{color:#587585}.cp-filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px 8px;align-items:end}.cp-filters label{font-size:12px;margin:0;min-width:0}.cp-page input,.cp-page select,.cp-page button{font-size:12px;min-height:30px;height:30px;padding:4px 8px;margin:0;box-sizing:border-box}.cp-filters input,.cp-filters select{width:100%;min-width:0}.cp-filters .cp-check{display:flex;gap:5px;align-items:center}.cp-check input{width:14px;height:14px;min-height:14px}.cp-filters .nx-form-actions{grid-column:span 3;display:flex;gap:6px}.cp-totals{display:flex;gap:8px;margin:8px 0}.cp-totals>div{flex:1;border:1px solid #bedfd8;background:#eef8f5;border-radius:6px;padding:6px 10px}.cp-totals span,.cp-totals strong{display:block}.cp-totals strong{font-size:18px;color:#087d70}.cp-tools,.cp-page footer{display:flex;align-items:center;gap:8px;margin:6px 0}.cp-grid{overflow:auto;max-height:55vh;border:1px solid #d0dfe7;border-radius:6px}.cp-grid table{border-collapse:collapse;width:100%;font-size:12px}.cp-grid th{position:sticky;top:0;background:#183f50;color:white;z-index:1;text-align:left}.cp-grid th,.cp-grid td{padding:5px 8px;border-bottom:1px solid #d7e4eb;white-space:nowrap}.cp-grid tr:nth-child(even){background:#f1f7fa}.cp-grid .cp-money{text-align:right;font-variant-numeric:tabular-nums}.cp-page .cp-link{border:0;background:none;color:#087a88;text-decoration:underline;height:auto;min-height:0;padding:0;max-width:300px;overflow:hidden;text-overflow:ellipsis}.cp-page footer{justify-content:flex-end}.cp-notes{font-size:12px;margin-top:8px}.cp-dialog{width:min(1100px,94vw);max-height:90vh;border:1px solid #c3dae3;border-radius:12px;padding:14px;color:#183f50}.cp-dialog::backdrop{background:#153f5066}.cp-dialog header{display:flex;align-items:start;gap:12px;justify-content:space-between}.cp-dialog h3{margin:0;font-size:18px}.cp-dialog header button{flex-shrink:0}.cp-dialog .cp-grid{max-height:65vh}.cp-page [hidden]{display:none!important}@media(max-width:850px){.cp-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.cp-page .cp-main>header{display:block}}@media(max-width:520px){.cp-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.cp-filters .nx-form-actions{grid-column:span 2;flex-wrap:wrap}.cp-totals{flex-wrap:wrap}.cp-totals>div{min-width:100px}.cp-tools{flex-wrap:wrap}.cp-grid{max-height:60vh}}

.cp-page .cp-main>header #cp-config{margin-left:auto}.cp-config-dialog{width:min(680px,94vw)}.cp-config-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;margin-top:10px}.cp-config-form label{display:flex;flex-direction:column;gap:3px;font-size:12px;min-width:0;margin:0}.cp-config-form input,.cp-config-form select,.cp-config-dialog button{box-sizing:border-box;height:32px;min-height:32px;font-size:12px;padding:4px 8px;margin:0;min-width:0}.cp-config-form small{font-size:11px;color:#587585;overflow-wrap:anywhere}.cp-config-form>details,.cp-config-form>p,.cp-config-form>.nx-form-actions{grid-column:1/-1;margin:0;font-size:12px}.cp-config-form>.nx-form-actions{justify-content:flex-end}.cp-config-form>p.error{padding:6px}.cp-config-form [hidden]{display:none!important}@media(max-width:520px){.cp-config-form{grid-template-columns:minmax(0,1fr)}.cp-config-dialog{padding:12px}.cp-config-dialog header button{white-space:nowrap}}

.cp-page button:not(.cp-link),.cp-dialog button{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #087e6a;border-radius:6px;background:#087e6a;color:#fff;cursor:pointer;font-weight:600;white-space:nowrap}.cp-page button.secondary,.cp-dialog button.secondary{border-color:#c3d5df;background:#fff;color:#173f50}.cp-page button:disabled,.cp-dialog button:disabled{opacity:.55;cursor:default}.cp-page button:focus-visible,.cp-dialog button:focus-visible{outline:2px solid #09897b;outline-offset:2px}.cp-config-form>.nx-form-actions{display:flex;align-items:center}

/* Compact layout scoped to accounts payable. */
.workspace:has(.cp-page:not([hidden])){padding-top:10px;padding-bottom:10px}
.workspace:has(.cp-page:not([hidden])) .workspace-navigation{margin-bottom:6px}
.cp-page .cp-main>header{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;margin:0 0 5px}
.cp-page .cp-main>header h2{font-size:19px;line-height:1.2;margin:0}
.cp-page .cp-main>header span{font-size:11px;line-height:1.25}
.cp-page .cp-main>header #cp-config{align-self:flex-start;margin-left:auto}
.cp-page .cp-filters{gap:4px 8px}
.cp-page .cp-filters label{display:flex;flex-direction:column;gap:2px;line-height:1.2}
.cp-page .cp-filters label.cp-check{flex-direction:row;align-items:center}
.cp-page input,.cp-page select,.cp-page button{height:28px;min-height:28px;padding:3px 7px;line-height:1.2}
.cp-page input[type=checkbox]{height:14px;min-height:14px;width:14px;padding:0}
.cp-page .cp-totals{margin:5px 0;gap:6px}
.cp-page .cp-totals>div{padding:4px 8px}
.cp-page .cp-totals strong{font-size:16px;line-height:1.25}
.cp-page .cp-totals span{font-size:11px;line-height:1.2}
.cp-page .cp-tools,.cp-page footer{margin:4px 0;gap:6px}
.cp-page #cp-columns{margin-left:0}
.cp-page #cp-status{margin:4px 0;font-size:12px;line-height:1.2}
.cp-page .cp-grid{max-height:65vh}
.cp-page .cp-grid th,.cp-page .cp-grid td{padding:2px 6px;height:25px;line-height:1.2}
.cp-page .cp-grid input[type=checkbox]{vertical-align:middle}
.cp-page .cp-grid .cp-link{height:auto;min-height:0;line-height:1.2;padding:0}
.cp-page .cp-notes{margin-top:4px}
.cp-columns-dialog{width:min(460px,94vw);overflow:hidden;display:flex;flex-direction:column;gap:8px;max-height:88dvh}
.cp-columns-dialog:not([open]){display:none}
.cp-columns-dialog header,.cp-columns-dialog>button{flex-shrink:0}
.cp-columns-dialog>p{margin:0;font-size:12px;line-height:1.4}
.cp-columns-dialog button{height:28px;min-height:28px;font-size:12px;padding:3px 8px}
.cp-columns-dialog>button{align-self:flex-start}
.cp-column-list{overflow:auto;min-height:0}
.cp-column-option{display:flex;align-items:center;gap:5px;border-bottom:1px solid #d7e4eb;padding:3px 0}
.cp-column-option label{flex:1;display:flex;align-items:center;gap:7px;margin:0;font-size:12px;min-width:0}
.cp-column-option input{width:14px;height:14px;min-height:14px;margin:0;flex:none}
.cp-column-option button{width:30px;flex:none}
@media(max-width:600px){.cp-page .cp-main>header span{display:none}.cp-page .cp-tools{flex-wrap:wrap}.cp-page .cp-main>header #cp-config{font-size:11px}.cp-page .cp-totals>div{min-width:90px}}

.cp-page .cp-toolbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin:5px 0 2px}
.cp-page .cp-toolbar button{font-size:11px;height:28px;min-height:28px;padding:3px 6px}
.cp-toolbar-note{display:block;font-size:10px;color:#627a87;margin:0 0 3px}
.cp-page .cp-grid th.cp-draggable{cursor:grab;user-select:none}
.cp-page .cp-grid th.is-dragging{opacity:.45}
.cp-page .cp-grid th.is-drop-target{background:#087e6a;box-shadow:inset 3px 0 #75dfc5}
.cp-page .cp-grid tfoot{position:sticky;bottom:0;z-index:2;background:#e6f3ef;color:#075d50;font-weight:700}
.cp-page .cp-grid tfoot td{border-top:2px solid #acd6cd}
@media(max-width:600px){.cp-page .cp-toolbar{flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px}.cp-page .cp-toolbar button{flex:none}}

/* Compact totals beside the title selection. */
.cp-page .cp-tools{flex-wrap:wrap}
.cp-page #cp-selection{font-size:11px;white-space:nowrap}
.cp-page .cp-tools .cp-totals{margin:0;gap:5px;flex-wrap:wrap}
.cp-page .cp-tools .cp-totals>div{flex:0 1 auto;min-width:0;padding:3px 7px;background:#fff}
.cp-page .cp-tools .cp-totals span{font-size:10px;line-height:1.1;white-space:nowrap}
.cp-page .cp-tools .cp-totals strong{font-size:13px;line-height:1.2;white-space:nowrap}
.cp-page .cp-totals [data-total=principal]{color:#111;border-color:#d4dce0}
.cp-page .cp-totals [data-total=pago]{color:#087e3e;border-color:#b9ddc7}
.cp-page .cp-totals [data-total=saldo]{color:#b42318;border-color:#efc5c1}
.cp-page .cp-totals [data-total] strong{color:inherit}

.cp-page .cp-tools .cp-totals{margin-left:auto}
.cp-page .cp-tools .cp-totals>div{padding:5px 10px;border-width:2px}
.cp-page .cp-tools .cp-totals strong{font-size:16px;font-weight:800}
.cp-page .cp-tools .cp-totals span{font-size:11px;font-weight:600}
.cp-page .cp-grid td.cp-active-cell{outline:2px solid #2585ce;outline-offset:-2px;background:#e7f2ff}

/* Keep tools available while reading long lists. */
.cp-tool-dock{position:sticky;top:0;z-index:5;background:#f3f6fa;padding:3px 0;box-shadow:0 2px 0 #d7e4eb}
.cp-page>.cp-grid{max-height:none;min-height:400px;height:calc(100dvh - 352px)}
.cp-page .cp-tools .cp-totals{flex-wrap:wrap;justify-content:flex-end;max-width:100%;min-width:0}
.cp-page .cp-tools .cp-totals>div{flex:0 0 auto;min-width:170px;width:max-content;box-sizing:border-box}
.cp-page .cp-tools .cp-totals strong{overflow:visible;text-overflow:clip;max-width:none;font-variant-numeric:tabular-nums}
.cp-page button.cp-selection-icon{width:34px;height:32px;min-height:32px;padding:5px;flex:none}
.cp-page .cp-selection-icon svg{width:22px;height:22px;display:block;flex:none}
@media(max-width:600px){.cp-page .cp-tools .cp-totals{width:100%}.cp-page .cp-tools .cp-totals>div{min-width:155px;flex:1 0 155px}.cp-page #cp-selection{white-space:normal}}

.cp-movements{margin-top:6px;border:1px solid #c3d5df;border-radius:6px;background:#fff;overflow:hidden}
.cp-movements summary{cursor:pointer;padding:5px 8px;font-weight:700;background:#eaf3f7}
.cp-movements summary span{font-weight:500}
.cp-page .cp-movements>.cp-grid{height:180px;min-height:0;max-height:180px;border:0;border-radius:0}
.cp-movements .cp-grid>p{margin:8px}
.cp-page:has(#cp-movements[open])>.cp-grid{min-height:240px}

.cp-date-group{display:grid;gap:4px;min-width:0}.cp-filter-checks{grid-column:span 2;display:flex;flex-wrap:wrap;gap:8px 14px;margin:0;padding:6px 8px;border:1px solid #c3d5df;border-radius:6px;min-width:0;background:#fff}.cp-filter-checks legend{font-size:11px;padding:0 4px}.cp-autocomplete{position:relative}.cp-suggestions{position:absolute;top:100%;left:0;right:0;z-index:15;max-height:220px;overflow:auto;background:#fff;border:1px solid #b8cfdc;box-shadow:0 3px 10px #173f5020}.cp-page .cp-suggestions button{display:block;width:100%;height:auto;min-height:28px;text-align:left;white-space:normal;border:0;border-radius:0;background:#fff;color:#173f50;font-weight:400}.cp-page .cp-suggestions button[aria-selected=true],.cp-page .cp-suggestions button:hover{background:#e4f2fb}.cp-suggestions>span{padding:6px;display:block}

/* Toda a barra visível, inclusive no celular. */
.cp-page .cp-tool-dock{top:var(--cp-sticky-top,0px);z-index:20}.cp-page .cp-toolbar{flex-wrap:wrap;overflow:visible}.cp-page input[type=checkbox]{width:15px;height:15px;min-height:15px;padding:0;accent-color:#087e6a}.cp-flow-dialog .cp-grid{max-height:55dvh}.cp-flow-dialog>p{margin:8px 0}

.cp-page #cp-table tbody tr.cp-selected-row>td,.cp-page #cp-table tbody tr.cp-current-row>td{background:#e2efff}.cp-page #cp-table tbody tr.cp-current-row>td:first-child{box-shadow:inset 3px 0 #2681c5}.cp-flow-total{padding:10px 12px;background:#e8f6ef;border:1px solid #a6d8c3;border-radius:6px;color:#086749;font-size:18px;font-weight:800;position:sticky;top:0;z-index:2}.cp-flow-dialog .cp-flow-total{margin:8px 0}

/* Conferência: valores e total compartilham a mesma coluna. */
.cp-flow-dialog .cp-flow-money{text-align:right;white-space:nowrap}
.cp-flow-dialog table{width:100%}
.cp-flow-dialog tfoot td{font-weight:800;background:#e6f5ee;padding:9px 8px}
.cp-flow-dialog .cp-flow-actions{display:flex;justify-content:flex-end;padding-top:12px;flex-shrink:0}
.cp-flow-dialog .cp-flow-actions button{margin:0;white-space:nowrap;display:inline-flex;align-items:center;gap:6px;min-height:32px}
.cp-flow-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.cp-flow-dialog .cp-grid{max-height:50dvh}

.cp-flow-dialog tfoot td{position:sticky;bottom:0;z-index:3;box-shadow:0 -1px 0 #bddbd2}

/* Contraste das linhas, mantendo o destaque azul da seleção. */
.cp-page #cp-table tbody tr:not(.cp-selected-row):not(.cp-current-row)[data-parity=odd]>td{background:#fff}
.cp-page #cp-table tbody tr:not(.cp-selected-row):not(.cp-current-row)[data-parity=even]>td{background:#e2edf3}

.cp-page #cp-table td.cp-editable{cursor:text}
.cp-page #cp-table td.cp-editing{padding:0 2px;min-width:100px}
.cp-page #cp-table .cp-cell-editor{box-sizing:border-box;width:100%;min-width:90px;height:26px;min-height:26px;margin:0;padding:2px 5px;border:1px solid #2585ce;font-size:12px;background:white}
.cp-cell-suggestions{position:fixed;z-index:100;max-height:210px;overflow:auto;background:white;border:1px solid #b8cfdc;box-shadow:0 3px 8px #173f5033}
.cp-cell-suggestions button{display:block;width:100%;border:0;border-radius:0;text-align:left;background:white;color:#173f50;padding:6px;font-size:12px}
.cp-cell-suggestions button[aria-selected=true],.cp-cell-suggestions button:hover{background:#e2efff}

/* Larguras estáveis: editar ou mover o foco não recalcula todas as colunas. */
.cp-page #cp-table{table-layout:fixed}
.cp-page #cp-table td{overflow:hidden;text-overflow:ellipsis}
.cp-page #cp-tool-edit[aria-pressed=true]{background:#e5f4ec;color:#07694f;border-color:#16836b}

/* Janela virtual: altura estável, inclusive durante a edição. */
.cp-page .cp-grid:has(#cp-table){overflow-anchor:none}
.cp-page #cp-table tbody tr[data-row-index],.cp-page #cp-table tbody tr[data-row-index]>td{height:30px;box-sizing:border-box}
.cp-page #cp-table tbody tr.cp-virtual-spacer>td{padding:0;border:0;line-height:0;background:transparent}

.cp-flow-options{display:flex;gap:10px;align-items:end;margin:8px 0;flex-wrap:wrap}.cp-flow-options label{display:flex;flex-direction:column;gap:3px;font-size:12px;min-width:150px}.cp-flow-options input,.cp-flow-options select,.cp-flow-options button{height:32px;min-height:32px;margin:0;padding:4px 8px;font-size:12px}.cp-flow-dialog .cp-grid{overflow:auto}.cp-flow-dialog .cp-money{text-align:right}

.cp-flow-dialog .cp-flow-options{align-items:flex-end}.cp-flow-dialog .cp-flow-options>label{margin:0;padding:0}.cp-flow-dialog .cp-flow-options>button{align-self:flex-end;margin:0!important;height:32px;min-height:32px}.cp-flow-dialog th[aria-sort="ascending"]::after{content:" ▴"}.cp-flow-dialog th[aria-sort="descending"]::after{content:" ▾"}

.cp-flow-dialog .cp-flow-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.cp-flow-dialog .cp-grid table{min-width:950px}

/* Ações acompanham toda a altura do cartão de opções da consulta. */
#cp-form>.nx-form-actions{align-self:stretch;align-items:stretch;margin:0;padding:0}#cp-form>.nx-form-actions>button{height:auto!important;min-height:32px!important;align-self:stretch;margin:0!important}

/* A legenda não deve aumentar a altura externa do cartão em relação às ações. */
#cp-form>.cp-filter-checks{position:relative;margin-top:7px;align-self:stretch;padding-top:12px}
#cp-form>.cp-filter-checks>legend{position:absolute;top:-7px;left:8px;background:#fff;line-height:14px}
#cp-form>.nx-form-actions{margin-top:7px!important}
.cp-flow-print{font:12px Arial,sans-serif;color:#183f50;background:white;margin:24px}
.cp-flow-print h1{font-size:20px;margin:0 0 12px;border-bottom:2px solid #183f50;padding-bottom:10px}
.cp-flow-print p{font-size:12px;margin:10px 0 18px}
.cp-flow-print table{width:100%;border-collapse:collapse;table-layout:fixed}
.cp-flow-print th,.cp-flow-print td{border:1px solid #8198a3;padding:7px 6px;text-align:left;overflow-wrap:anywhere;vertical-align:top}
.cp-flow-print th{background:#e8f1f4;font-weight:bold}
.cp-flow-print th:nth-child(1){width:7%}.cp-flow-print th:nth-child(2){width:27%}.cp-flow-print th:nth-child(3){width:11%}.cp-flow-print th:nth-child(4){width:9%}.cp-flow-print th:nth-child(5){width:19%}.cp-flow-print th:nth-child(6){width:10%}.cp-flow-print th:nth-child(7){width:17%}
.cp-flow-print td:last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.cp-flow-print tbody tr:nth-child(even){background:#f4f7f8}.cp-flow-print thead{display:table-header-group}.cp-flow-print tfoot{font-weight:bold;background:#e8f4ef}.cp-flow-print tr{break-inside:avoid}
.cp-flow-print button{padding:8px 14px;margin:0 0 14px;cursor:pointer}
@media print{@page cpflow{size:A4 landscape;margin:12mm}.cp-flow-print{page:cpflow;margin:0;font-size:10px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.cp-flow-print button{display:none}.cp-flow-print th,.cp-flow-print td{padding:5px}.cp-flow-print tfoot{display:table-row-group}}

/* Rodapé padrão dos relatórios impressos do app. */
@media print{@page{margin-bottom:14mm;@bottom-center{content:"www.newoxxy.com";font:8pt Arial,sans-serif;color:#526773;text-align:center}}}

/* Listas de sugestões acima da barra fixa e dos demais campos. */
#cp-form:has(.cp-suggestions:not([hidden])){position:relative;z-index:30;overflow:visible}
#cp-form .cp-autocomplete:has(.cp-suggestions:not([hidden])){z-index:31}
#cp-form .cp-suggestions{z-index:32}
#cp-table th[aria-sort]{cursor:pointer}
#cp-table th[aria-sort=ascending]::after{content:" ↑"}
#cp-table th[aria-sort=descending]::after{content:" ↓"}
#cp-table th:focus-visible{outline:2px solid #65d9bf;outline-offset:-2px}

/* Totais fora da rolagem vertical, alinhados às colunas visíveis. */
.cp-page .cp-grid-totals{box-sizing:border-box;max-width:100%;overflow:hidden;border:1px solid #acd6cd;border-top:0;border-radius:0 0 5px 5px;background:#e6f3ef;color:#075d50;font-weight:700}
.cp-page .cp-grid-totals table{table-layout:fixed;border-collapse:collapse;font-size:12px;margin:0}
.cp-page .cp-grid-totals td{box-sizing:border-box;height:29px;padding:2px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cp-page .cp-grid-totals .cp-money{text-align:right;font-variant-numeric:tabular-nums}
.cp-page .cp-grid:has(#cp-table){border-radius:6px 6px 0 0;min-height:0}

#cp-table th{padding-right:12px}.cp-column-resize{position:absolute;right:0;top:0;bottom:0;width:7px;cursor:col-resize;touch-action:none;z-index:3}.cp-column-resize:hover{background:#65d9bf80}

/* A rolagem da lista não é transferida para a página ao chegar aos limites. */
.cp-page .cp-grid:has(#cp-table){overscroll-behavior:contain}

/* Ferramentas laterais recolhíveis, sem ocupar linhas acima dos títulos. */
.cp-page{display:grid;grid-template-columns:140px minmax(0,1fr);gap:10px;align-items:start}
.cp-page .cp-main{min-width:0}
.cp-page.cp-rail-collapsed{grid-template-columns:30px minmax(0,1fr)}
.cp-page .cp-tool-rail{position:sticky;top:calc(var(--cp-sticky-top,0px) + 6px);max-height:calc(100dvh - var(--cp-sticky-top,0px) - 48px);min-height:0;display:flex;flex-direction:column;gap:5px;padding:4px;background:#edf5f6;border:1px solid #cbdde2;border-radius:7px;box-sizing:border-box;z-index:21}
.cp-page #cp-toolbar-toggle{width:100%;flex-shrink:0;height:26px;min-height:26px;font-size:21px;padding:0}
.cp-page .cp-tool-rail .cp-toolbar{display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;overflow:auto;overscroll-behavior:contain;min-height:0;margin:0;gap:4px}
.cp-page .cp-tool-rail .cp-toolbar button{width:100%;flex:none;justify-content:flex-start;min-height:30px;height:30px;font-size:11px;padding:4px 6px}
.cp-page .cp-tool-rail .cp-toolbar-note{font-size:9px;line-height:1.2;margin:0;flex-shrink:0}
@media(max-width:600px){.cp-page{grid-template-columns:112px minmax(0,1fr);gap:5px}.cp-page .cp-tool-rail .cp-toolbar button{font-size:10px;gap:3px;padding:3px}.cp-page .cp-tool-rail .nx-button-icon{width:16px;height:16px}.cp-page .cp-main>header{align-items:start}.cp-page .cp-totals>div{min-width:0}}

/* Reserva somente a altura real da faixa fixa, inclusive quando quebra no celular. */
#home-view:has(.cp-page:not([hidden])){padding-bottom:calc(var(--cp-footer-height,24px) + 4px)}
.workspace:has(.cp-page:not([hidden])){padding-bottom:4px}

/* Aproxima as ferramentas do menu sem alterar as outras telas. */
.app-layout>.workspace:has(.cp-page:not([hidden])){padding-left:6px}

/* Compact expense entry, scoped to this dialog. */
.cp-dialog.cp-entry{width:min(1180px,96vw);max-height:94dvh;padding:12px;box-sizing:border-box;overflow:auto;font-size:12px}
.cp-entry>header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}.cp-entry h3{margin:0;font-size:17px}
.cp-entry form{margin:0;display:block}.cp-entry .cp-entry-fields{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px 8px}
.cp-entry .cp-entry-fields>label{display:flex;flex-direction:column;gap:3px;margin:0;min-width:0;font-size:12px}
.cp-entry .cp-entry-span-2{grid-column:span 2}.cp-entry .cp-entry-span-3{grid-column:span 3}.cp-entry .cp-entry-span-4{grid-column:span 4}
.cp-entry input:not([type=checkbox]),.cp-entry select,.cp-entry button{min-height:30px;height:30px;padding:4px 7px;font-size:12px;box-sizing:border-box;margin:0;min-width:0}
.cp-entry input:not([type=checkbox]),.cp-entry select{width:100%;border:1px solid #c6d8e2;border-radius:5px;background:white;color:#183e50}
.cp-entry .cp-entry-check{flex-direction:row!important;align-items:center;align-self:end;height:30px}.cp-entry input[type=checkbox]{width:15px;height:15px;margin:0}
.cp-entry .cp-entry-actions{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:8px 0}.cp-entry .cp-entry-actions label{margin:0;flex:1;min-width:220px}
.cp-entry .cp-entry-grid{height:auto!important;max-height:180px;min-height:85px;overflow:auto;margin:0;border:1px solid #c6d8e2}
.cp-entry-grid table{width:100%;table-layout:fixed;border-collapse:collapse;min-width:950px}.cp-entry-grid th,.cp-entry-grid td{padding:3px;border-bottom:1px solid #d6e4ec}
.cp-entry-grid th{position:sticky;top:0;background:#183e50;color:white;z-index:1;text-align:left}
.cp-entry-grid th:first-child{width:30px}.cp-entry-grid th:nth-child(2){width:125px}.cp-entry-grid th:nth-child(3){width:100px}.cp-entry-grid th:nth-child(5){width:75px}
.cp-entry-grid tbody tr:nth-child(even){background:#edf5f8}.cp-entry-grid input{height:27px!important;min-height:27px!important}
.cp-entry .cp-entry-attachments{margin:8px 0}.cp-entry summary{cursor:pointer;color:#087d70}.cp-entry footer{display:flex;align-items:center;gap:8px;margin:8px 0 0}.cp-entry-sum{margin-right:auto;color:#087d70}
.cp-entry .cp-autocomplete{position:relative}.cp-entry .cp-suggestions{position:absolute;top:100%;left:0;right:0;max-height:180px;overflow:auto;background:white;z-index:20;box-shadow:0 4px 15px #183e5033}.cp-entry .cp-suggestions button{display:block;text-align:left;width:100%;height:auto;white-space:normal;background:white;color:#183e50;border:0;border-radius:0}.cp-entry .cp-suggestions [aria-selected=true]{background:#dceefb}
@media(max-width:700px){.cp-entry .cp-entry-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.cp-entry .cp-entry-span-3,.cp-entry .cp-entry-span-4{grid-column:span 2}.cp-entry footer{flex-wrap:wrap}.cp-entry-sum{flex-basis:100%}.cp-dialog.cp-entry{max-height:94dvh}.cp-entry .cp-entry-grid{max-height:230px}}

/* Valores preenchidos destacados no lançamento. */
.cp-entry input:not([type=checkbox]):not([type=file]),.cp-entry select{font-weight:700}
.cp-entry input::placeholder{font-weight:400}
.cp-entry input[name=valor]{text-align:right;font-variant-numeric:tabular-nums}
.cp-entry .cp-camera-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;margin-right:5px;color:#087d70}

.cp-restructure{width:min(960px,96vw);max-height:92dvh;overflow:auto}.cp-restructure form{display:grid;gap:8px}.cp-restructure p{margin:2px 0}.cp-restructure-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 8px;align-items:end}.cp-restructure-wide{grid-column:span 2}.cp-restructure label{display:grid;gap:2px;font-size:12px}.cp-restructure input,.cp-restructure button{min-height:30px;height:30px;margin:0;padding:4px 8px;font-size:12px}.cp-restructure input{width:100%;min-width:0;font-weight:700}.cp-restructure-grid{max-height:32dvh;overflow:auto}.cp-restructure-grid table{width:100%}.cp-restructure-grid td{padding:3px 6px}.cp-restructure footer{display:flex;gap:8px;justify-content:flex-end;position:sticky;bottom:0;background:white;padding:8px 0}.cp-restructure-note{font-size:12px;color:#536c7b}.cp-restructure-result{background:#edf8f3;border:1px solid #acdaca;padding:8px;font-size:13px}@media(max-width:600px){.cp-restructure-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.cp-restructure header h3{font-size:17px}.cp-restructure-grid{max-height:28dvh}}
.cp-dialog.cp-restructure{box-sizing:border-box;font-size:13px;padding:12px}.cp-restructure form,.cp-restructure label{margin:0}.cp-restructure input,.cp-restructure button{box-sizing:border-box}.cp-restructure .cp-grid{max-height:32dvh}.cp-restructure .cp-suggestions button{display:block;width:100%;text-align:left;height:auto;white-space:normal;background:white;color:#183e50;border:0;border-radius:0}.cp-restructure .cp-suggestions [aria-selected=true]{background:#dceefb}.cp-restructure-grid th:first-child{width:60px}.cp-restructure-grid td:last-child input{text-align:right}
.cp-origin-eye{display:inline-flex!important;align-items:center;justify-content:center;margin:0 0 0 5px!important;padding:2px!important;width:25px;height:25px;min-height:0!important;vertical-align:middle}
.cp-origin{box-sizing:border-box;width:min(1150px,96vw);max-height:90vh;padding:12px;font-size:13px}
.cp-origin header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.cp-origin header h3,.cp-origin p{margin:6px 0}
.cp-origin .cp-grid{max-height:60vh;overflow:auto}
.cp-origin table{width:100%;min-width:900px;border-collapse:collapse}
.cp-origin th,.cp-origin td{padding:6px;white-space:nowrap}
.cp-origin th{position:sticky;top:0;background:#173f50;color:white}
.cp-origin tbody tr:nth-child(even){background:#e8f2f6}

.cp-origin tfoot td{position:sticky;bottom:0;z-index:2;background:#e5f4ee;border-top:2px solid #82bfb0;padding:10px 6px;font-weight:800;font-size:14px}.cp-origin-total-principal{color:#172d38}.cp-origin-total-pago{color:#07815a}.cp-origin-total-saldo{color:#bb3226}.cp-origin-eye:not(:disabled){color:#087f75!important;background:#effaf7!important;border-color:#a5d7cb!important;border-radius:7px}.cp-origin-eye{box-sizing:border-box;gap:0!important;line-height:1}.cp-origin-eye[data-nx-icon]::before{margin:0!important;width:18px;height:18px;flex:0 0 18px;vertical-align:middle}
.cp-dialog.cp-payment{box-sizing:border-box;width:min(1120px,96vw);max-height:92dvh;overflow:auto;padding:12px;font-size:13px}.cp-payment header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.cp-payment h3,.cp-payment p{margin:4px 0}.cp-payment form{display:grid;gap:8px;margin:0}.cp-payment-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 8px;align-items:end}.cp-payment label{display:grid;gap:2px;margin:0;font-size:12px;min-width:0}.cp-payment input,.cp-payment select,.cp-payment button{box-sizing:border-box;height:32px;min-height:32px;margin:0;padding:4px 8px;font-size:12px}.cp-payment input,.cp-payment select{width:100%;min-width:0;font-weight:700}.cp-payment-wide{grid-column:span 2}.cp-payment-total{display:block;background:#e7f5ee;border:1px solid #a7d9c6;padding:8px;border-radius:5px;color:#08765e}.cp-payment details{border:1px solid #d1e0e8;border-radius:5px;padding:6px}.cp-payment summary{cursor:pointer;font-size:12px}.cp-payment details[open] summary{margin-bottom:6px}.cp-payment footer{display:flex;gap:8px;justify-content:flex-end;position:sticky;bottom:0;background:white;padding:8px 0;z-index:3}.cp-payment .cp-grid{max-height:30dvh;overflow:auto}.cp-payment table{width:100%;border-collapse:collapse;min-width:680px}.cp-payment th,.cp-payment td{padding:4px 6px;white-space:nowrap}.cp-payment th{position:sticky;top:0;background:#173f50;color:white;z-index:1}.cp-payment tbody tr:nth-child(even){background:#e8f2f6}.cp-payment .cp-money{text-align:right}.cp-payment-cheque-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:5px}.cp-payment section input,.cp-payment section select{min-width:100px}.cp-payment section td:nth-child(4) input,.cp-payment section td:nth-child(5) input{min-width:150px}@media(max-width:600px){.cp-payment-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.cp-payment h3{font-size:17px}.cp-payment footer{flex-wrap:wrap}.cp-payment section .cp-grid{max-height:25dvh}}
.cp-payment-options{position:fixed;z-index:100;overflow:auto;background:white;border:1px solid #9bbfc8;border-radius:5px;box-shadow:0 5px 16px #173f5033;padding:3px}.cp-payment-options[hidden]{display:none}.cp-payment .cp-payment-options button{display:block;text-align:left;width:100%;height:auto;min-height:30px;white-space:normal;border:0;background:white;color:#173f50}.cp-payment .cp-payment-options button[aria-selected=true],.cp-payment .cp-payment-options button:hover{background:#dceefb}.cp-payment-options span{display:block;padding:5px}.cp-payment-lookup{min-width:0}.cp-payment section{border:1px solid #d1e0e8;border-radius:5px;padding:6px}.cp-payment section>p{font-size:12px;color:#527080}
.cp-payment form{grid-template-columns:minmax(0,1fr)}.cp-payment form>*{min-width:0}.cp-payment .cp-grid{min-width:0;max-width:100%}.cp-payment-options{box-sizing:border-box}
.cp-payment-cheque-layout{display:grid;grid-template-columns:85px minmax(0,1fr);gap:8px}.cp-payment-talons{display:flex;flex-direction:column;gap:3px;max-height:30dvh;overflow:auto}.cp-payment-talons button[aria-pressed=true]{background:#dceefb;border-color:#488bc2;color:#173f50}.cp-payment .cp-payment-all-talons{display:flex;align-items:center;gap:5px}.cp-payment .cp-payment-all-talons input{width:14px;height:14px;min-height:14px}.cp-payment .cp-cheque-filled{background:#e5f4ed}.cp-payment section td:nth-child(6) input{min-width:180px}@media(max-width:600px){.cp-payment-cheque-layout{grid-template-columns:60px minmax(0,1fr)}}
.cp-payment-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cp-payment-totals strong{font-size:14px}.cp-payment-totals .error{color:#b42318;background:#fff1ef}.cp-payment-totals+ .cp-payment-fields{grid-template-columns:minmax(0,1fr)}

/* Linha compacta do pagamento; resumo fora da rolagem das folhas. */
.cp-payment .cp-payment-main-fields{grid-template-columns:140px minmax(180px,1fr) 165px minmax(220px,1.4fr)}
.cp-payment-cheque-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:6px;padding:7px 9px;background:#e7f5ee;border:1px solid #a7d9c6;border-radius:5px;color:#08765e;font-variant-numeric:tabular-nums}
@media(max-width:800px){.cp-payment .cp-payment-main-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
