/* Estilos do módulo contas (prefixo ct-): formulários do Delphi (docs/delphi/dfm) desenhados com posição absoluta,
   no visual DevExpress do original (janela MDI, barra de botões, rótulos azuis, campos de 21 px, grupos com moldura). */

/* Área das janelas (MDI) e diálogos */
.ct-area { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: 14px 10px; overflow: auto; background: transparent; }
#content { position: relative; }
.ct-area.ct-modal { position: fixed; z-index: 1150; align-items: center; background: rgba(15, 27, 48, .18); }
.ct-janela { flex: 0 0 auto; background: #f0f3f8; border: 1px solid #6f8db4; border-radius: 4px; box-shadow: 0 8px 26px rgba(16, 32, 64, .28); overflow: hidden; }
.ct-janela-titulo { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 4px 0 7px; background: linear-gradient(#e9f0fa, #cfdcef); border-bottom: 1px solid #9fb4d3; font: 12px Tahoma, 'Segoe UI', Arial, sans-serif; color: #10294f; }
.ct-janela-ico .erp-ico { width: 14px; height: 14px; color: #2f6db5; }
.ct-janela-cap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-modo { font-size: 10.5px; color: #8a5a00; background: #fff4d6; border: 1px solid #f0d58f; border-radius: 3px; padding: 0 6px; white-space: nowrap; }
.ct-x { width: 22px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #b8463c; border-radius: 3px; background: linear-gradient(#e98a7f, #c9473b); color: #fff; cursor: pointer; }
.ct-x .erp-ico { width: 11px; height: 11px; }
.ct-janela-corpo { position: relative; }
.ct-form { position: relative; overflow: hidden; background: #f0f3f8; }

/* Componentes */
.ct-c { position: absolute; box-sizing: border-box; font: 11px/1.25 Tahoma, 'Segoe UI', -apple-system, Arial, sans-serif; color: #1c2b44; }
.ct-desab { opacity: .55; }
.ct-painel.ct-borda { border: 1px solid #c8d1de; }
.ct-painel.ct-cap { display: flex; align-items: center; justify-content: center; font-weight: 600; }
.ct-grupo, .ct-grupoRadio { border: 1px solid #b9c5d6; border-radius: 3px; }
.ct-grupo-tit { position: absolute; left: 7px; top: 1px; padding: 0 3px; color: #1f4f8f; font-size: 11px; white-space: nowrap; }
.ct-radios { position: absolute; left: 8px; right: 6px; top: 16px; bottom: 3px; display: grid; grid-auto-flow: row; align-content: space-evenly; gap: 1px 8px; }
.ct-separador { display: flex; align-items: center; gap: 6px; color: #1f4f8f; font-weight: 600; white-space: nowrap; }
.ct-separador i { flex: 1; height: 0; border-top: 1px solid #b9c5d6; }
.ct-bevel { border-left: 1px solid #c8d1de; }
.ct-divisor { background: #f39c3a; height: 3px; }
.ct-rotulo { white-space: nowrap; color: #1f3a68; padding-top: 2px; }
.ct-rotulo.ct-rotulo-fixo { display: flex; align-items: center; padding: 0 6px; overflow: hidden; white-space: normal; }
.ct-edit, .ct-data, .ct-combo { display: flex; }
.ct-input { flex: 1; min-width: 0; width: 100%; height: 100%; box-sizing: border-box; border: 1px solid #a9b6c8; border-radius: 2px; background: #fff; padding: 0 4px; font: 11px Tahoma, 'Segoe UI', -apple-system, Arial, sans-serif; color: #111; outline: none; }
.ct-input:focus { border-color: #4a7fc1; box-shadow: 0 0 0 1px #c7dbf3; }
.ct-input[readonly], select.ct-input:disabled { background: #fff; color: #222; }
.ct-desab .ct-input { background: #f1f3f6; color: #666; }
textarea.ct-input { padding: 3px 4px; resize: none; }
.ct-seta { flex: 0 0 18px; display: inline-flex; align-items: center; justify-content: center; margin-left: -1px; padding: 0; border: 1px solid #a9b6c8; border-radius: 0 2px 2px 0; background: linear-gradient(#fbfcfe, #e7ecf3); color: #44526a; cursor: pointer; }
.ct-seta .erp-ico { width: 11px; height: 11px; }
.ct-pesq { color: #2e8b3a; }
.ct-data .ct-input, .ct-edit:has(.ct-seta) .ct-input { border-radius: 2px 0 0 2px; }
.ct-data-nativo { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.ct-spin { flex: 0 0 15px; display: flex; flex-direction: column; margin-left: -1px; border: 1px solid #a9b6c8; background: #eef2f7; }
.ct-spin i { flex: 1; font-style: normal; font-size: 7px; line-height: 9px; text-align: center; color: #44526a; }
.ct-opcao { display: inline-flex; align-items: center; gap: 5px; height: 100%; white-space: nowrap; color: #1c2b44; }
.ct-opcao input { margin: 0; accent-color: #2f6db5; }
.ct-listbox { overflow: auto; }
.ct-imagem { display: flex; align-items: center; justify-content: center; }
.ct-info-img .erp-ico { width: 40px; height: 40px; color: #fff; }
.ct-painel:has(> .ct-imagem) { background: #1d5fa8; color: #fff; }
.ct-painel:has(> .ct-imagem) .ct-rotulo { color: #fff; font-size: 14px; font-weight: 600; }

/* Botões */
.ct-botao { white-space: nowrap; overflow: hidden; width: 100%; height: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid #a9b6c8; border-radius: 3px; background: linear-gradient(#fdfefe, #e4eaf2); font: 11px Tahoma, 'Segoe UI', -apple-system, Arial, sans-serif; color: #1c2b44; cursor: pointer; padding: 0 3px; }
.ct-botao:hover:not(:disabled) { border-color: #6f97c9; background: linear-gradient(#fff, #dde8f6); }
.ct-botao:disabled { color: #9aa1ac; cursor: default; }
.ct-botao:disabled .erp-ico { filter: grayscale(1); opacity: .45; }
.ct-botao-ico { border-color: transparent; background: transparent; }
.ct-botao .erp-ico { width: 14px; height: 14px; flex: 0 0 auto; }
.ct-edit:has(.ct-pesq) .ct-input { text-align: right; }

/* Barra de botões (dxBarManager), barra Digite.... e status */
.ct-barra.erp-barra { display: flex; align-items: center; padding: 0 4px; border-bottom: 1px solid #d3dbe6; background: #fbfcfe; flex-wrap: nowrap; overflow: hidden; }
.ct-barra .erp-barra-btn { font-weight: 700; }
.ct-digite { display: flex; align-items: center; gap: 10px; padding: 0 8px; background: #0b5aa2; color: #fff; font-weight: 700; }
.ct-digite input { flex: 1; height: 18px; border: 0; border-radius: 2px; background: rgba(255,255,255,.14); color: #fff; padding: 0 6px; font: 600 12px Tahoma, 'Segoe UI', Arial, sans-serif; outline: none; }
.ct-status { display: flex; align-items: center; gap: 10px; padding: 0 6px; border-top: 1px solid #d3dbe6; background: linear-gradient(#f6f8fb, #e8edf4); color: #0b3c7a; font-weight: 700; }
.ct-status .erp-ico { width: 13px; height: 13px; }
.ct-status-calc { display: inline-flex; align-items: center; gap: 6px; padding-right: 14px; border-right: 1px solid #c8d1de; }
.ct-status-calc .erp-ico { color: #2e7d32; }
.ct-status-info .erp-ico { color: #2f6db5; }

/* Abas (TcxPageControl) */
.ct-abas { position: absolute; left: 0; right: 0; top: 0; height: 24px; display: flex; gap: 2px; align-items: flex-end; border-bottom: 1px solid #b9c5d6; padding-left: 2px; overflow: hidden; }
.ct-aba-btn { height: 22px; padding: 0 12px; border: 1px solid #b9c5d6; border-bottom: 0; border-radius: 3px 3px 0 0; background: linear-gradient(#f7f9fc, #e3e9f1); font: 11px Tahoma, 'Segoe UI', Arial, sans-serif; color: #1c2b44; cursor: pointer; white-space: nowrap; }
.ct-aba-btn.ativa { height: 24px; background: #fff; font-weight: 700; color: #0f2350; margin-bottom: -1px; }
.ct-paginas-corpo { position: absolute; left: 0; right: 0; top: 24px; bottom: 0; }
.ct-paginas-corpo.sem-abas { top: 0; }
.ct-aba { background: #f0f3f8; }

/* Grades */
.ct-grade { display: flex; flex-direction: column; }
.ct-grade > .erp-grade { flex: 1; min-height: 0; height: 100%; }
.ct-grade > .erp-grade > .erp-grade-rolagem { flex: 1; min-height: 0; }
.ct-grade .erp-tab { font-size: 11.5px; }
.erp-tab tr.ct-l-marcada td { background: #cfe3fb !important; }
.erp-tab tr.sel.ct-l-marcada td { background: #9cc6f4 !important; }
.erp-tab tr.ct-l-excluido td { color: #9a9a9a; }
.ct-chk { display: inline-block; width: 12px; height: 12px; border: 1px solid #7a8aa0; background: #fff; border-radius: 2px; vertical-align: middle; position: relative; }
.ct-chk.on::after { content: ''; position: absolute; left: 3px; top: 0; width: 4px; height: 8px; border: solid #1d5fa8; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ct-lixeira .erp-ico { width: 13px; height: 13px; color: #c0392b; }
.erp-bola.ct-bola-off { background: radial-gradient(circle at 35% 35%, #ff9a8a, #d62f1c); box-shadow: 0 0 0 1px #a52313; }
.ct-relacionados { padding: 6px; }
select.ct-input { text-transform: uppercase; }

/* Relatórios FastReport do original */
.erp-pagina.ct-fr-pagina { padding: 0; display: block; font-family: Arial, Helvetica, sans-serif; color: #000; }
.ct-fr-banda { position: absolute; }
.ct-fr-o { position: absolute; box-sizing: border-box; overflow: hidden; }
.ct-fr-memo { display: flex; flex-direction: column; padding: 0 2px; line-height: 1.2; font-family: Arial, Helvetica, sans-serif; }
.ct-fr-memo > span { display: block; }
.ct-fr-img img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
/* Texto branco ilegível: "Credor/Devedor" e "Data" da baixa (lblNomFor/lblDataPag, fonte branca no TPanel azul do
   Delphi, cor 9659136) e a instrução do boleto desabilitada na Manutenção do Contas a Receber (cxLabel9). */
.ct-painel:has(> [data-n="lblNomFor"]) { background: rgb(0, 99, 147); }
.ct-painel:has(> [data-n="lblNomFor"]) .ct-rotulo { color: #fff; white-space: nowrap; width: auto !important; display: flex; align-items: center; font-size: 13px; }
.ct-painel:has(> [data-n="lblNomFor"]) [data-n="lblDataPag"] { left: auto !important; right: 8px; }
.ct-rotulo.ct-desab[data-n="cxLabel9"] { opacity: 1; color: #1f3a68; }
/* financeiro-propria.js (telas da pasta própria) */
.erp-grade tr.fpr-vencido td { color: #c0201a; }
.erp-grade tr.fpr-marcado td { background: #fff1b8 !important; font-weight: 600; }
.fpr-baixa-cab { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 8px; background: rgb(0, 99, 147); color: #fff; margin-bottom: 6px; }
.fpr-baixa-cab span { font-size: 11px; opacity: .9; }
.fpr-baixa-tot { padding: 6px 2px; font-weight: 600; color: #1f3a68; }
.fpr-chq-modos { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 6px 8px; border: 1px solid #c9d3e0; border-radius: 3px; margin: 4px 0; background: #f7f9fc; }
.fpr-chq-modos label { display: inline-flex; align-items: center; gap: 4px; color: #1c2b44; cursor: pointer; }
.fpr-chq-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0; }
.fpr-chq-tot { font-weight: 600; color: #1f3a68; }
.fpr-canc-motivo { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.fpr-canc-motivo label { display: flex; flex-direction: column; gap: 2px; color: #1f3a68; flex: 1 1 200px; }
.fpr-multi-g { margin-top: 8px; }
