/* Central › Financeiro — escopo .app-central. Celular: @container (max-width: 760px). */
.app-central { --kf-ent: var(--sz-success); --kf-sai: #ff7a45; --kf-hach: color-mix(in srgb, var(--sz-text-3) 55%, transparent); --kf-hach-bg: transparent; }

/* ---------- Abas ---------- */
.app-central .kf-abas { overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; flex-wrap: nowrap; }
.app-central .kf-abas::-webkit-scrollbar { display: none; }
.app-central .kf-abas button { white-space: nowrap; flex: none; }
.app-central .kf-corpo { min-height: 240px; }
.app-central .kf-fab { display: none; }

/* ---------- Barra de filtros ---------- */
.app-central .kf-barra { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 12px; }
.app-central .kf-barra-a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.app-central .kf-barra-t { font-size: 12.5px; }
.app-central .kf-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.app-central .kf-busca { min-width: 240px; width: 300px; }
.app-central .kf-sel-c { width: auto; min-width: 150px; }
.app-central .kf-filtros-bt.on { border-color: var(--sz-blue); color: var(--sz-text); }
.app-central .kf-nf { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--kp-neon); color: #0d2410; font-size: 11px; display: inline-grid; place-items: center; }
.app-central .kf-filtros { display: none; padding: 14px; margin-bottom: 12px; }
.app-central .kf-filtros.on { display: block; animation: fadeUp .18s var(--ease) both; }
.app-central .kf-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 12px; align-items: end; }
.app-central .kf-fgrid .label { font-size: 11.5px; font-weight: 600; color: var(--sz-text-3); text-transform: uppercase; letter-spacing: .04em; }
.app-central .kf-flimpa { justify-content: flex-end; }

/* ---------- Totais e lote ---------- */
.app-central .kf-tot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 12px; border-radius: var(--sz-radius); overflow: hidden; border: 1px solid var(--sz-border); background: var(--sz-border); }
.app-central .kf-tot > div { display: grid; gap: 2px; padding: 10px 14px; background: var(--sz-surface); }
.app-central .kf-tot small { font-size: 11.5px; color: var(--sz-text-3); }
.app-central .kf-tot b { font-size: 17px; font-weight: 750; }
.app-central .kf-tot .danger b { color: var(--sz-danger); }
.app-central .kf-tot .ok b { color: var(--sz-success); }
.app-central .kf-lote { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px;
  background: var(--sz-ink); color: var(--sz-bg); box-shadow: var(--sz-shadow-lg); animation: fadeUp .18s var(--ease) both; }
.app-central .kf-lote > span { flex: 1; font-size: 13px; }
.app-central .kf-lote .btn-ghost { color: inherit; }
.app-central .kf-selall { padding: 10px 16px; border-bottom: 1px solid var(--sz-border); width: 100%; }
.app-central .kf-mais { padding: 12px 16px; font-size: 12.5px; }

/* ---------- Lista de títulos ---------- */
.app-central .kf-lista { display: grid; }
.app-central .kf-li { position: relative; display: flex; align-items: center; gap: 4px; padding-right: 12px; border-bottom: 1px solid var(--sz-border); }
.app-central .kf-li:last-child { border-bottom: 0; }
.app-central .kf-li::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.app-central .kf-li.s-vencido::before { background: var(--sz-danger); }
.app-central .kf-li.s-cancelado { opacity: .55; }
.app-central .kf-li.s-cancelado .kf-li-t b { text-decoration: line-through; }
.app-central .kf-sel { display: grid; place-items: center; width: 40px; align-self: stretch; cursor: pointer; flex: none; }
.app-central .kf-sel input { width: 18px; height: 18px; accent-color: var(--sz-blue); }
.app-central .kf-li-main { flex: 1; min-width: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 6px 11px 14px;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 10px; }
.app-central .kf-sel + .kf-li-main { padding-left: 0; }
.app-central .kf-li-main:hover { background: var(--sz-surface-2); }
.app-central .kf-li-venc { display: grid; justify-items: center; padding: 5px 0; border-radius: 9px; background: var(--sz-surface-2); line-height: 1.15; }
.app-central .kf-li-venc b { font-size: 14px; font-variant-numeric: tabular-nums; }
.app-central .kf-li-venc small { font-size: 10.5px; color: var(--sz-text-3); }
.app-central .kf-li.s-vencido .kf-li-venc { background: var(--sz-danger-050); color: var(--sz-danger); }
.app-central .kf-li.s-pago .kf-li-venc { background: var(--sz-success-050); color: var(--sz-success); }
.app-central .kf-li-t { display: grid; gap: 2px; min-width: 0; }
.app-central .kf-li-t b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-central .kf-li-t small { font-size: 12px; color: var(--sz-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.app-central .kf-li-t small.kf-li-meta { color: var(--sz-text-3); font-size: 11.5px; }
.app-central .kf-li-meta .icon { width: 12px; height: 12px; }
.app-central .kf-parc { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--sz-surface-3); color: var(--sz-text-2); margin-left: 4px; }
.app-central .kf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; vertical-align: middle; margin-right: 2px; }
.app-central .kf-dot.lg { width: 12px; height: 12px; border-radius: 4px; }
.app-central .kf-li-v { display: grid; justify-items: end; gap: 3px; text-align: right; }
.app-central .kf-li-v > b { font-size: 15px; font-weight: 750; white-space: nowrap; }
.app-central .kf-li-v small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--sz-text-3); white-space: nowrap; }
.app-central .kf-late { color: var(--sz-danger); font-weight: 650; }
.app-central .kf-baixar { flex: none; }
.app-central .kf-baixar .icon { color: var(--sz-success); }

/* ---------- Formulários / modais ---------- */
.app-central .kf-form { display: grid; gap: 14px; }
.app-central .kf-seg-tipo label span { justify-content: center; white-space: nowrap; }
.app-central .kf-tipo-fixo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.app-central .kf-moeda span { order: -1; }
.app-central .kf-moeda .input { text-align: right; }
.app-central .kf-rep { gap: 10px; }
.app-central .kf-rep .fieldset-h { justify-content: flex-start; gap: 6px; }
.app-central .kf-rep .fieldset-h .icon { width: 15px; height: 15px; color: var(--sz-text-3); }
.app-central .kf-rep-h { display: block; padding-top: 22px; }
.app-central .kf-check { align-items: flex-start; }
.app-central .kf-check input { margin-top: 2px; flex: none; }
.app-central .kf-baixa-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--sz-surface-2); }
.app-central .kf-baixa-box > div { display: grid; gap: 3px; min-width: 0; }
.app-central .kf-baixa-box small { font-size: 12px; color: var(--sz-text-3); display: flex; gap: 6px; align-items: center; }
.app-central .kf-baixa-v { font-size: 20px; font-weight: 800; white-space: nowrap; }
.app-central .kf-total { display: flex; align-items: center; height: 38px; padding: 0 12px; border-radius: var(--sz-radius-sm); background: var(--sz-success-050); color: var(--sz-success); font-size: 16px; font-weight: 800; }
.app-central .kf-det { display: grid; gap: 14px; }
.app-central .kf-det-h { display: flex; justify-content: space-between; gap: 14px; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--kf-sai) 9%, var(--sz-surface-2)); }
.app-central .kf-det-h.t-receber { background: color-mix(in srgb, var(--kf-ent) 10%, var(--sz-surface-2)); }
.app-central .kf-det-h small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sz-text-3); }
.app-central .kf-det-h h3 { font-size: 17px; margin: 2px 0; }
.app-central .kf-det-v { display: grid; justify-items: end; gap: 4px; text-align: right; }
.app-central .kf-det-v b { font-size: 22px; font-weight: 800; white-space: nowrap; }
.app-central .kf-det-v small { font-size: 12px; color: var(--sz-text-3); text-transform: none; letter-spacing: 0; font-weight: 500; }
.app-central .kf-obs { white-space: pre-line; }
.app-central .kf-irmaos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; }
.app-central .kf-irmaos > b { width: 100%; }
.app-central .kf-irmao { display: grid; justify-items: center; padding: 5px 8px; border-radius: 9px; border: 1px solid var(--sz-border); background: var(--sz-surface-2); font-size: 11.5px; min-width: 64px; }
.app-central .kf-irmao em { font-style: normal; font-weight: 700; }
.app-central .kf-irmao small { color: var(--sz-text-3); }
.app-central .kf-irmao.s-pago { border-color: color-mix(in srgb, var(--sz-success) 40%, transparent); background: var(--sz-success-050); }
.app-central .kf-irmao.s-cancelado { opacity: .5; }
.app-central .kf-irmao.on { outline: 2px solid var(--sz-blue); }
.app-central .kf-hist summary { cursor: pointer; font-size: 13px; font-weight: 650; padding: 4px 0; }
.app-central .kf-hist > div { font-size: 12.5px; padding: 5px 0; border-bottom: 1px dashed var(--sz-border); }
.app-central .kf-cor { padding: 2px; height: 38px; cursor: pointer; }

/* ---------- Gráficos (SVG) ---------- */
.app-central .kf-chart { overflow-x: auto; padding: 12px 14px 6px; }
.app-central .kf-svg { display: block; width: 100%; height: auto; }
.app-central .kf-svg text { font-size: 11px; fill: var(--sz-text-3); font-family: inherit; }
.app-central .kf-grid line { stroke: var(--sz-border); stroke-width: 1; }
.app-central .kf-grid.zero line { stroke: var(--sz-text-3); stroke-dasharray: 3 3; }
.app-central .kf-hit { fill: transparent; }
.app-central .kf-col:hover .kf-hit, .app-central .kf-pt:hover .kf-hit { fill: color-mix(in srgb, var(--sz-text-3) 10%, transparent); }
.app-central .kf-col.atual .kf-hit { fill: color-mix(in srgb, var(--sz-blue) 8%, transparent); }
.app-central .kf-col.atual .kf-xl { fill: var(--sz-text); font-weight: 700; }
.app-central .kf-b.ent { fill: var(--kf-ent); }
.app-central .kf-b.sai { fill: var(--kf-sai); }
.app-central .kf-b.prev { fill-opacity: .35; stroke-width: 1.5; }
.app-central .kf-b.ent.prev { stroke: var(--kf-ent); }
.app-central .kf-b.sai.prev { stroke: var(--kf-sai); }
.app-central .kf-ln { fill: none; stroke: var(--sz-blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.app-central .kf-ln.proj { stroke-dasharray: 5 4; stroke: var(--sz-text-3); }
.app-central .kf-pt circle { fill: var(--sz-blue); stroke: var(--sz-surface); stroke-width: 2; }
.app-central .kf-pt.proj circle { fill: var(--sz-surface); stroke: var(--sz-text-3); }
.app-central .kf-pt.neg circle { fill: var(--sz-danger); }
.app-central .kf-pt.neg.proj circle { fill: var(--sz-surface); stroke: var(--sz-danger); }
.app-central .kf-neg-area { fill: color-mix(in srgb, var(--sz-danger) 7%, transparent); }
.app-central .kf-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--sz-text-2); }
.app-central .kf-leg span { display: inline-flex; align-items: center; gap: 6px; }
.app-central .kf-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.app-central .kf-leg i.ent { background: var(--kf-ent); }
.app-central .kf-leg i.sai { background: var(--kf-sai); }
.app-central .kf-leg i.prev { background: color-mix(in srgb, var(--sz-text-3) 30%, transparent); border: 1.5px solid var(--sz-text-3); }
.app-central .kf-leg i.ln { width: 16px; height: 2px; border-radius: 1px; background: var(--sz-blue); }
.app-central .kf-leg i.ln.proj { background: repeating-linear-gradient(90deg, var(--sz-text-3) 0 4px, transparent 4px 7px); }
.app-central .kf-chart-f { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.app-central .kf-fluxo-t tr.previsto td { color: var(--sz-text-2); }
.app-central .kf-fluxo-t tr.atual td { background: color-mix(in srgb, var(--sz-blue-050) 60%, transparent); }

/* ---------- DRE ---------- */
.app-central .kf-dre-wrap { max-height: 70vh; }
.app-central .kf-dre { min-width: 1080px; }
.app-central .kf-dre th, .app-central .kf-dre td { padding: 7px 9px; white-space: nowrap; font-size: 12.5px; }
.app-central .kf-dre thead th { position: sticky; top: 0; z-index: 2; background: var(--sz-surface-2); }
.app-central .kf-dre tbody th { position: sticky; left: 0; z-index: 1; background: var(--sz-surface); text-align: left; font-weight: 500; min-width: 230px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--sz-border); }
.app-central .kf-dre thead th:first-child { left: 0; z-index: 3; }
.app-central .kf-dre .fut { opacity: .6; }
.app-central .kf-dre tbody th { text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--sz-text); }
.app-central .kf-dre tbody th .kf-dot { margin-right: 6px; }
.app-central .kf-rec-g .pill, .app-central .kf-cat .grow .pill { justify-self: start; }
.app-central .kf-dre .tot { font-weight: 700; background: color-mix(in srgb, var(--sz-surface-2) 60%, transparent); }
.app-central .kf-dre-sec th { background: var(--sz-surface-2) !important; font-size: 11px !important; font-weight: 800 !important; text-transform: uppercase; letter-spacing: .08em; color: var(--sz-text-3); }
.app-central .kf-dre-g { cursor: pointer; }
.app-central .kf-dre-g th { font-weight: 700 !important; display: table-cell; }
.app-central .kf-dre-g th .icon { margin-right: 6px; color: var(--sz-text-3); vertical-align: -2px; }
.app-central .kf-dre-g:hover th, .app-central .kf-dre-g:hover td { background: var(--sz-surface-2); }
.app-central .kf-dre-g.auto th { color: var(--sz-ice-700); }
.app-central .kf-dre-l th { padding-left: 30px !important; color: var(--sz-text-2); }
.app-central .kf-dre-t th, .app-central .kf-dre-t td { font-weight: 800; border-top: 1px solid var(--sz-border-2); }
.app-central .kf-dre-t.res th, .app-central .kf-dre-t.res td { background: color-mix(in srgb, var(--kp-neon) 10%, var(--sz-surface)); font-size: 13px; }
.app-central .kf-dre-t.op th, .app-central .kf-dre-t.op td { font-weight: 650; color: var(--sz-text-2); }
.app-central .kf-auto-s { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.app-central .kf-nota { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--sz-text-3); padding: 10px 16px 14px; margin: 0; }
.app-central .kf-nota .icon { margin-top: 2px; flex: none; }
.app-central .kf-bal-g { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--sz-border); }
.app-central .kf-bal-c { background: var(--sz-surface); padding: 14px 18px; display: grid; gap: 4px; align-content: start; }
.app-central .kf-bal-c h4 { display: flex; justify-content: space-between; font-size: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--sz-border); margin-bottom: 4px; }
.app-central .kf-bal-l { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; }
.app-central .kf-bal-l.sub { padding-left: 14px; color: var(--sz-text-3); font-size: 12px; }
.app-central .kf-bal-pl { display: flex; justify-content: space-between; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--kp-neon) 10%, var(--sz-surface-2)); font-weight: 750; }

/* ---------- Visão geral ---------- */
.app-central .kf-visao-g { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.app-central button.kf-aviso-bt { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; align-items: center; }
.app-central button.kf-aviso-bt > .icon:last-child { color: var(--sz-danger); }
.app-central .kf-saldos { display: grid; padding: 6px 0; }
.app-central .kf-saldo { display: flex; align-items: center; gap: 12px; padding: 10px 18px; }
.app-central .kf-saldo .grow { display: grid; gap: 2px; }
.app-central .kf-saldo small { font-size: 11.5px; color: var(--sz-text-3); }
.app-central .kf-saldo > b { font-size: 15px; white-space: nowrap; }
.app-central .kf-saldo-t { display: block; height: 6px; border-radius: 4px; background: var(--sz-surface-3); overflow: hidden; margin-top: 4px; }
.app-central .kf-saldo-t i { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, var(--kp-forest), var(--kp-neon)); border-radius: 4px; animation: growX .7s var(--ease) both; transform-origin: left; }
.app-central .kf-saldo-t i.neg { background: var(--sz-danger); }
.app-central .kf-conta-ic, .app-central .kf-plat-ic, .app-central .kf-rec-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--sz-surface-2); color: var(--sz-text-2); flex: none; }
.app-central .kf-plat { display: flex; align-items: center; gap: 12px; margin: 4px 12px 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--sz-ice-500); background: color-mix(in srgb, var(--sz-ice) 50%, transparent); }
.app-central .kf-plat .grow { display: grid; gap: 2px; }
.app-central .kf-plat small { font-size: 11.5px; color: var(--sz-text-3); }
.app-central .kf-plat-ic { background: var(--sz-ice); color: var(--sz-ice-700); }

/* ---------- Recorrências ---------- */
.app-central .kf-recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.app-central .kf-rec { display: grid; gap: 12px; padding: 14px 16px; border-left: 4px solid var(--kf-sai); }
.app-central .kf-rec.t-receber { border-left-color: var(--kf-ent); }
.app-central .kf-rec.off { opacity: .65; }
.app-central .kf-rec-h { display: flex; gap: 10px; align-items: flex-start; }
.app-central .kf-rec-h .grow { display: grid; gap: 2px; }
.app-central .kf-rec-h small { font-size: 12px; color: var(--sz-text-3); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.app-central .kf-rec-ic { color: var(--kf-sai); }
.app-central .kf-rec.t-receber .kf-rec-ic { color: var(--kf-ent); }
.app-central .kf-rec-v { display: grid; justify-items: end; }
.app-central .kf-rec-v b { font-size: 16px; white-space: nowrap; }
.app-central .kf-rec-v small { font-size: 11.5px; color: var(--sz-text-3); }
.app-central .kf-rec-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.app-central .kf-rec-g > div { display: grid; gap: 2px; font-size: 12.5px; min-width: 0; }
.app-central .kf-rec-g small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--sz-text-3); }
.app-central .kf-rec-g > div:nth-child(5) { grid-column: span 2; }
.app-central .kf-rec-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--sz-border); }
.app-central .kf-rec-f small { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Categorias ---------- */
.app-central .kf-cats-g { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.app-central .kf-cat-g h4 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--sz-text-3); padding: 12px 18px 4px; }
.app-central .kf-cat { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 18px; border-bottom: 1px solid var(--sz-border); }
.app-central .kf-cat .grow { display: grid; gap: 1px; }
.app-central .kf-cat .grow b { font-size: 13.5px; }
.app-central .kf-cat small { font-size: 11.5px; color: var(--sz-text-3); }
.app-central .kf-cat.sub { padding-left: 42px; background: color-mix(in srgb, var(--sz-surface-2) 50%, transparent); }
.app-central .kf-cat.off { opacity: .55; }

/* ---------- Contas ---------- */
.app-central .kf-contas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.app-central .kf-conta { display: grid; gap: 10px; padding: 14px 16px; align-content: start; }
.app-central .kf-conta.off { opacity: .6; }
.app-central .kf-conta.tot { background: linear-gradient(135deg, var(--kp-forest), var(--kp-deep)); border-color: transparent; color: #fff; align-content: center; }
.app-central .kf-conta.tot small, .app-central .kf-conta.tot span { color: rgb(220 245 225 / 75%); font-size: 12.5px; }
.app-central .kf-conta.tot b { font-size: 28px; font-weight: 800; }
.app-central .kf-conta-h { display: flex; gap: 10px; align-items: center; }
.app-central .kf-conta-h .grow { display: grid; gap: 1px; }
.app-central .kf-conta-h small { font-size: 12px; color: var(--sz-text-3); }
.app-central .kf-conta-s { font-size: 24px; font-weight: 800; }
.app-central .kf-conta-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-central .kf-conta-g > div { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--sz-surface-2); font-size: 12.5px; min-width: 0; }
.app-central .kf-conta-g small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--sz-text-3); }
.app-central .kf-conta-g em { font-style: normal; color: var(--sz-text-3); font-size: 11px; }

/* ===================== Celular / janela estreita ===================== */
@container (max-width: 1100px) {
  .app-central .kf-visao-g, .app-central .kf-cats-g { grid-template-columns: 1fr; }
}
@container (max-width: 760px) {
  .app-central .kf-abas { margin: 0 -16px 12px; padding: 0 12px; position: sticky; top: 0; z-index: 7; background: var(--sz-bg); }
  .app-central .kf-abas button { padding: 12px 12px; font-size: 13.5px; }
  .app-central .page-act .btn { height: 44px; }
  .app-central .kf-barra { gap: 8px; }
  .app-central .kf-barra-a { width: 100%; margin-left: 0; flex-wrap: nowrap; }
  .app-central .kf-barra-a > * { flex: 1 1 auto; min-width: 0; }
  .app-central .kf-barra-a .btn { height: 42px; flex: 0 0 auto; }
  .app-central .kf-barra-a .btn.kf-ic span { display: none; }
  .app-central .kf-busca { width: auto; min-width: 0; }
  .app-central .kf-sel-c { min-width: 0; }
  .app-central .kf-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; width: calc(100% + 32px); }
  .app-central .kf-chips::-webkit-scrollbar { display: none; }
  .app-central .kf-chips .kc-chip { height: 36px; flex: none; font-size: 13px; }
  .app-central .kf-fgrid { grid-template-columns: 1fr 1fr; }
  .app-central .kf-fgrid .select, .app-central .kf-fgrid .input, .app-central .kf-barra .input, .app-central .kf-barra .select { height: 42px; font-size: 16px; }
  .app-central .kf-tot { grid-template-columns: 1fr 1fr; }
  .app-central .kf-tot b { font-size: 15px; }
  .app-central .kf-li { padding-right: 0; gap: 0; align-items: stretch; }
  .app-central .kf-li-main { grid-template-columns: 46px minmax(0, 1fr); gap: 4px 10px; padding: 12px 12px 12px 12px; }
  .app-central .kf-sel + .kf-li-main { padding-left: 0; }
  .app-central .kf-li-venc { grid-row: 1 / span 2; align-self: start; }
  .app-central .kf-li-v { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; justify-items: start; text-align: left; }
  .app-central .kf-li:has(.kf-baixar) .kf-li-v { padding-right: 104px; min-height: 40px; }
  .app-central .kf-li-v small { flex-wrap: wrap; white-space: normal; }
  .app-central .kf-li-t b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .app-central .kf-li-t small { white-space: normal; }
  .app-central .kf-sel { width: 38px; align-self: flex-start; padding-top: 16px; }
  .app-central .kf-baixar { position: absolute; right: 12px; bottom: 12px; height: 40px; padding: 0 14px; font-size: 13.5px; }
  .app-central .kf-lista-card, .app-central .kf-recs, .app-central .kf-contas + .card { margin-bottom: 8px; }
  .app-central .kf-fab { display: grid; place-items: center; position: sticky; float: right; bottom: 16px; margin: 12px 0 0; width: 56px; height: 56px; border-radius: 50%; border: 0; z-index: 8;
    background: var(--kp-neon); color: #0d2410; box-shadow: 0 8px 22px rgb(0 0 0 / 30%); cursor: pointer; }
  .app-central .kf-fab .icon { width: 26px; height: 26px; }
  .app-central .kf-rec-g { grid-template-columns: 1fr 1fr; }
  .app-central .kf-rec-g > div:nth-child(5) { grid-column: 1 / -1; }
  .app-central .kf-recs, .app-central .kf-contas { grid-template-columns: 1fr; }
  .app-central .kf-rec-f .btn, .app-central .kf-cat .btn { height: 38px; }
  .app-central .kf-bal-g { grid-template-columns: 1fr; }
  .app-central .kf-dre-wrap { max-height: none; }
  .app-central .kf-dre tbody th { min-width: 150px; max-width: 170px; white-space: normal; }
  .app-central .kf-auto-s .btn { white-space: normal; height: auto; min-height: 38px; padding: 6px 12px; }
  .app-central .kf-lote { flex-wrap: wrap; }
  .app-central .kf-lote > span { flex-basis: 100%; }
  .app-central .kf-lote .btn { flex: 1; height: 40px; }
  .app-central .kf-det-h { flex-direction: column; }
  .app-central .kf-det-v { justify-items: start; text-align: left; }
  /* Modais do financeiro: folha de baixo para cima, largura total e alvos grandes */
  .app-central .kf-form .form-grid { grid-template-columns: 1fr; }
  .app-central .kf-form .input, .app-central .kf-form .select, .app-central .kf-form .textarea { font-size: 16px; min-height: 44px; }
  .app-central .kf-form .seg-block label span { padding: 9px 6px; font-size: 13px; }
  .app-central .kf-rep-h { padding-top: 0; }
}
@container (max-width: 760px) {
  .modal-ov:has(.app-central .kf-modal) { padding: 0; place-items: end stretch; }
  .modal-ov:has(.app-central .kf-modal) .modal { width: 100%; max-height: 94%; border-radius: 20px 20px 0 0; }
  .modal-ov:has(.app-central .kf-modal) .modal-f { flex-wrap: wrap; padding-bottom: 18px; }
  .modal-ov:has(.app-central .kf-modal) .modal-f .btn { flex: 1 1 auto; height: 46px; }
  .modal-ov:has(.app-central .kf-modal) .modal-f .btn-primary { flex-basis: 100%; order: 9; }
}

/* Financeiro: extrato e estorno — listas que abrem vazias e só buscam no "Pesquisar" */
.app-central .kf-pesq { display: flex; flex-direction: column; gap: 12px; padding: 14px; margin-bottom: 12px; }
.app-central .kf-pesq .kf-fgrid { margin: 0; }
.app-central .kf-pesq .kf-f-busca { grid-column: span 2; }
.app-central .kf-pesq-a { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.app-central .kf-pesq-a .check { font-size: 13px; }
.app-central .kf-pag { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; border-top: 1px solid var(--sz-border); }
.app-central .kf-ext .kf-tot { margin: 0; padding: 12px 16px; }
.app-central .kf-ext .kf-nota { margin: 0 16px 8px; }
.app-central .kf-ext-t td, .app-central .kf-ext-t th { white-space: nowrap; }
.app-central .kf-ext-t td:nth-child(2) { white-space: normal; min-width: 220px; }
.app-central .kf-ext-t tr.kf-ext-link { cursor: pointer; }
.app-central .kf-ext-t tr.kf-ext-link:hover td { background: rgba(255,255,255,.03); }
.app-central .kf-ext-t tr.kf-ext-prev td { opacity: .78; font-style: italic; }
.app-central .kf-ext-t tr.kf-ext-ini td { background: rgba(255,255,255,.025); }
.app-central .kf-ext-t tfoot td { border-top: 2px solid var(--sz-border); }
.app-central .kf-hist-d { margin: 2px 0 6px; font-size: 12px; color: var(--sz-text-3); }
@media (max-width: 640px) {
  .app-central .kf-pesq .kf-f-busca { grid-column: auto; }
  .app-central .kf-pesq-a .btn-primary { flex: 1; justify-content: center; }
}