/* ---------- Financeiro · abas novas (prefixo fx-) ---------- */
/* Ícone de botão nunca encolhe quando o texto é longo */
.btn > svg { flex-shrink: 0; }
.fx-tabs { margin: -4px 0 18px; }
.fx-tabs button { display: inline-flex; align-items: center; gap: 7px; }
.fx-tabs button svg { width: 15px; height: 15px; }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.fx-body { display: grid; gap: var(--sp-5); }
.fx-body > .grid-12, .fx-body > .kpis { margin: 0; }

/* Categoria com cor */
.fx-cat { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px 0 8px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 500; white-space: nowrap;
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--tx); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.fx-cat i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.fin-cat__ic[style*="--c"] { background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }

/* Bom dia: o que pede atenção hoje */
.fx-today { display: grid; grid-template-columns: minmax(200px, 1.1fr) repeat(4, minmax(0, 1fr)); align-items: stretch; padding: 0; overflow: hidden; }
.fx-today__lead { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.fx-today__lead > div { display: grid; gap: 1px; }
.fx-today__lead b { font-size: var(--fs-md); font-weight: 600; }
.fx-today__lead .muted { font-size: var(--fs-xs); }
.fx-today__ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); flex: none; }
.fx-today__ic svg { width: 19px; height: 19px; }
.fx-today__it { display: flex; align-items: center; gap: 10px; padding: 14px 16px; text-align: left; border-left: 1px solid var(--line); transition: background var(--t-fast); min-width: 0; }
.fx-today__it:hover { background: var(--s2); }
.fx-today__it > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fx-today__it b { font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.fx-today__it small { font-size: var(--fs-2xs); color: var(--tx-3); line-height: 1.35; }
.fx-today__it > svg { width: 16px; height: 16px; color: var(--tx-4); flex: none; transition: transform var(--t-fast); }
.fx-today__it:hover > svg { transform: translateX(3px); color: var(--tx-2); }
.fx-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.fx-dot.warn { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.fx-dot.crit { background: var(--crit); box-shadow: 0 0 0 4px var(--crit-soft); }
.fx-dot.ok { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.fx-dot.info { background: var(--info); box-shadow: 0 0 0 4px var(--info-soft); }

/* De onde vem o que vamos receber */
.fx-orig { padding: 12px 20px 4px; display: grid; gap: 12px; }
.fx-orig__bar { display: flex; gap: 3px; height: 10px; border-radius: 8px; overflow: hidden; }
.fx-orig__bar i { display: block; height: 100%; width: var(--w); border-radius: 3px; transform-origin: left; animation: grow-x 1s var(--ease) both; animation-delay: calc(var(--d) + 200ms); }
.fx-orig__row { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.fx-orig__row > div { flex: 1; min-width: 0; display: grid; }
.fx-orig__row b { font-weight: 500; }
.fx-orig__row small { font-size: var(--fs-2xs); }
.fx-orig__row > b.num { font-weight: 600; white-space: nowrap; }
.fx-orig__ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.fx-orig__ic svg { width: 15px; height: 15px; }
.fin-note.fx-note-info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.fin-note.fx-note-info svg { color: var(--info); }

/* Conciliação larga */
.fx-cc-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-cc-wide .fin-cc-done { grid-column: 1 / -1; }
.fin-cc-card .fin-cc-foot { grid-template-columns: auto 1fr; align-items: center; }
.fin-cc-card .fin-cc-foot small { text-align: left; }

/* Barra de ferramentas e campos */
.fx-toolbar-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fx-seg-wrap { flex-wrap: wrap; }
.fx-hint { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-2xs); line-height: 1.4; }
.fx-hint svg { width: 13px; height: 13px; flex: none; margin-top: 1px; }
.fx-drop { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1.5px dashed var(--line-3); background: var(--bg-2); text-align: left; transition: border-color var(--t-fast), background var(--t-fast); }
.fx-drop:hover { border-color: var(--red-line); background: var(--s2); }
.fx-drop > svg { width: 20px; height: 20px; color: var(--tx-3); flex: none; }
.fx-drop > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fx-drop b { font-size: var(--fs-sm); font-weight: 500; }
.fx-drop small { font-size: var(--fs-2xs); }
.fx-drop.loading { opacity: .6; pointer-events: none; }
.fx-drop.done { border-style: solid; border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-soft); }
.fx-drop.done > svg { color: var(--ok); }
.fx-ro { height: 38px; display: flex; align-items: center; padding: 0 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); color: var(--tx-2); }
.fx-alert { margin: 16px 0 0; }
.fx-alert p { margin: 2px 0 0; color: var(--tx-2); font-size: var(--fs-xs); }
.fx-or { display: flex; align-items: center; gap: 10px; color: var(--tx-4); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .1em; }
.fx-or::before, .fx-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.fx-foot-note { display: flex; gap: 6px; align-items: flex-start; max-width: 46ch; font-size: var(--fs-2xs); line-height: 1.4; }
.fx-foot-note svg { width: 13px; height: 13px; flex: none; margin-top: 1px; }
.modal.fx-modal-wide { width: min(720px, calc(100vw - 32px)); }

/* Passos */
.fx-steps { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.fx-steps span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-pill); font-size: var(--fs-2xs); color: var(--tx-3); background: var(--s2); border: 1px solid var(--line); transition: all var(--t-med); }
.fx-steps span svg { width: 13px; height: 13px; }
.fx-steps span.on { color: var(--tx); background: var(--red-soft); border-color: var(--red-line); }
.fx-steps--inline { padding: 4px 20px 0; margin-bottom: 8px; }

/* Nota lida */
.fx-nota { margin-top: 18px; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg-2); animation: rise .45s var(--ease) both; }
.fx-nota__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.fx-nota__head > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fx-nota__head small { font-size: var(--fs-2xs); }
.fx-nota__head > b { font-size: var(--fs-lg); font-weight: 600; }
.fx-dups { margin-top: 14px; display: grid; gap: 6px; }
.fx-dups__h, .fx-dups__r { display: grid; grid-template-columns: 1fr 160px 140px; gap: 10px; align-items: center; }
.fx-dups__h { font-size: var(--fs-2xs); color: var(--tx-3); text-transform: uppercase; letter-spacing: .06em; padding: 0 2px; }
.fx-dups__r { animation: rise .4s var(--ease) both; animation-delay: calc(var(--i) * 80ms); }
.fx-dups__r .input { height: 36px; }
.fx-dups .r { text-align: right; }

/* Exportar */
.fx-fmts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fx-fmt { display: grid; justify-items: start; gap: 4px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg-2); text-align: left; transition: all var(--t-fast); }
.fx-fmt svg { width: 20px; height: 20px; color: var(--tx-3); }
.fx-fmt b { font-size: var(--fs-sm); font-weight: 600; }
.fx-fmt small { font-size: var(--fs-2xs); line-height: 1.35; }
.fx-fmt:hover { border-color: var(--line-3); }
.fx-fmt.on { border-color: var(--red-line); background: var(--red-soft); }
.fx-fmt.on svg { color: var(--red-tx); }

/* Pagamentos de hoje */
.fx-pays { padding: 8px 12px; display: grid; gap: 4px; }
.fx-pay { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 112px 128px; align-items: center; gap: 12px; padding: 10px 8px; border-radius: var(--r-md); transition: background var(--t-fast), opacity var(--t-med); }
.fx-pay:hover { background: var(--s2); }
.fx-pay.is-out { opacity: .45; }
.fx-pay.is-paid .fx-pay__v { color: var(--tx-3); text-decoration: line-through; }
.fx-pay__who { display: grid; gap: 1px; min-width: 0; }
.fx-pay__who b { font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-pay__who small { font-size: var(--fs-2xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-pay__meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; min-width: 0; overflow: hidden; }
.fx-pay__meta .fx-cat { flex: none; }
.fx-pay__onde { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-xs); color: var(--tx-2); white-space: nowrap; }
.fx-pay__onde i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.fx-pay__v { text-align: right; font-weight: 600; white-space: nowrap; }
.fx-pay__act { display: flex; justify-content: flex-end; }
.fx-pay__act small { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-2xs); }
.fx-pay__act small svg { width: 13px; height: 13px; color: var(--ok); }
.fx-check { position: relative; width: 22px; height: 22px; cursor: pointer; }
.fx-check input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.fx-check span { position: absolute; inset: 0; border-radius: 7px; border: 1.5px solid var(--line-3); display: grid; place-items: center; transition: all var(--t-fast); }
.fx-check span svg { width: 13px; height: 13px; color: #fff; opacity: 0; transform: scale(.6); transition: all var(--t-fast); }
.fx-check input:checked + span { background: var(--red); border-color: var(--red); }
.fx-check input:checked + span svg { opacity: 1; transform: none; }
.fx-check input:disabled + span { background: var(--ok); border-color: var(--ok); }
.fx-check input:disabled + span svg { opacity: 1; transform: none; }
.fx-check input:focus-visible + span { outline: 2px solid var(--red-line); outline-offset: 2px; }
.fx-pays__foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px 16px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.fx-pays__foot b { font-size: var(--fs-md); font-weight: 600; }

.fx-wa-card { display: flex; flex-direction: column; }
.fx-wa { margin: 6px 16px 12px; padding: 16px; border-radius: var(--r-md); background: var(--wa-soft); border: 1px solid color-mix(in srgb, var(--wa) 22%, transparent); flex: 1; display: grid; align-content: start; gap: 6px; }
.fx-wa__bubble { justify-self: end; max-width: 100%; padding: 10px 12px; border-radius: 12px 12px 2px 12px; background: var(--s1); border: 1px solid var(--line-2); font-size: var(--fs-xs); line-height: 1.55; color: var(--tx); box-shadow: var(--shadow-1); }
.fx-wa__meta { justify-self: end; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--tx-3); }
.fx-wa__meta svg { width: 13px; height: 13px; color: var(--tick); }
.fx-wa__act { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 0 16px; }
.fx-wa-card .fin-note { margin: 12px 16px 16px; }

/* Conferência do DDA */
.fx-dda { padding: 8px 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fx-dda__r { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-2); transition: opacity var(--t-med); }
.fx-dda__r > div:not(.fx-dda__act) { display: grid; gap: 2px; min-width: 0; }
.fx-dda__r small { font-size: var(--fs-2xs); }
.fx-dda__r b { font-weight: 500; font-size: var(--fs-sm); }
.fx-dda__r > b.num { font-weight: 600; white-space: nowrap; }
.fx-dda__ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.fx-dda__ic svg { width: 15px; height: 15px; }
.fx-dda__r.bad { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-soft); grid-column: 1 / -1; }
.fx-dda__r.bad .fx-dda__ic { background: var(--warn-soft); color: var(--warn); }
.fx-dda__r.is-out { opacity: .55; }
.fx-dda__act { display: flex; gap: 6px; }

.fx-pick { display: grid; gap: 6px; }
.fx-pick__i { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); text-align: left; transition: all var(--t-fast); }
.fx-pick__i:hover { border-color: var(--red-line); background: var(--red-soft); }
.fx-pick__i > div { display: grid; gap: 1px; min-width: 0; }
.fx-pick__i small { font-size: var(--fs-2xs); }
.fx-pick__i b { font-weight: 500; }

/* Boletos */
.fx-bol__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px 4px; }
.fx-bol__head .segmented button { display: inline-flex; align-items: center; gap: 6px; }
.fx-bol__head .segmented svg { width: 14px; height: 14px; }
.fx-bol__bank { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); }
.fx-bol__bank svg { width: 14px; height: 14px; }
.fx-bsum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 12px 20px 4px; }
.fx-bsum__i { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-2); text-align: left; transition: all var(--t-fast); }
.fx-bsum__i:hover { border-color: var(--line-3); }
.fx-bsum__i.on { border-color: var(--red-line); background: var(--red-soft); }
.fx-bsum__i > div { flex: 1; display: grid; gap: 1px; min-width: 0; }
.fx-bsum__i small { font-size: var(--fs-2xs); }
.fx-bsum__i b { font-size: var(--fs-md); font-weight: 600; white-space: nowrap; }
.fx-bsum__ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--s3); color: var(--tx-2); flex: none; }
.fx-bsum__ic svg { width: 16px; height: 16px; }
.fx-bsum__ic.ok { background: var(--ok-soft); color: var(--ok); }
.fx-bsum__ic.info { background: var(--info-soft); color: var(--info); }
.fx-bsum__ic.crit { background: var(--crit-soft); color: var(--crit); }
.fx-bchip-atrasado svg { color: var(--crit); }
.fx-bchip-liquidado svg { color: var(--ok); }
.fx-bchip-baixado svg { color: var(--info); }
.fx-legend { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-2xs); max-width: 60ch; line-height: 1.4; }
.fx-legend svg { width: 13px; height: 13px; flex: none; }
.fx-legend b { color: var(--tx-2); font-weight: 600; }
.fx-nn { font-size: 11px; }
.fx-ic-sm { width: 26px !important; height: 26px !important; font-size: 10px !important; }
.fx-strike { text-decoration: line-through; }
.fx-sub { font-size: var(--fs-2xs); margin-top: 3px; white-space: nowrap; }
.fx-acts { display: inline-flex; gap: 4px; justify-content: flex-end; }
.fx-acts .btn { padding: 0 9px; }
.fx-acts .fx-ib { width: 32px; padding: 0; justify-content: center; }
.fx-acts .fx-ib svg { margin: 0; }
.fx-nowrap { white-space: nowrap; }
.fx-bol .fin-tbl { min-width: 0; }
.fx-opts { display: grid; gap: 8px; }
.fx-opt { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg-2); text-align: left; transition: all var(--t-fast); }
.fx-opt b { font-size: var(--fs-sm); font-weight: 500; }
.fx-opt small { font-size: var(--fs-2xs); }
.fx-opt.on { border-color: var(--red-line); background: var(--red-soft); }
.fx-hist { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: var(--fs-sm); color: var(--tx-2); }
.fx-hist li::marker { color: var(--red-tx); }

/* Contratos */
.fx-kpis3 { grid-template-columns: repeat(3, 1fr); }
.fx-kpis3 .kpi__foot { align-items: center; }
.fx-k-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fx-k-head p { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-sm); }
.fx-k-head p svg { width: 15px; height: 15px; flex: none; }
.fx-ks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.fx-k { display: grid; gap: 16px; padding: 18px 20px; text-align: left; transition: transform var(--t-med) var(--ease), border-color var(--t-fast); }
.fx-k:hover { transform: translateY(-2px); border-color: var(--line-3); }
.fx-k__top { display: flex; align-items: flex-start; gap: 10px; }
.fx-k__top .dotc { margin-top: 6px; }
.fx-k__top > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fx-k__top b { font-size: var(--fs-md); font-weight: 600; }
.fx-k__top small { font-size: var(--fs-2xs); }
.fx-k__bars { display: grid; gap: 12px; }
.fx-k__lbl { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-xs); color: var(--tx-3); margin-bottom: 6px; }
.fx-k__lbl b { color: var(--tx); font-weight: 500; }
.fx-bar { height: 8px; border-radius: 8px; background: var(--s4); overflow: hidden; }
.fx-bar i { display: block; height: 100%; width: var(--w); border-radius: 8px; background: var(--ok); transform-origin: left; animation: grow-x 1s var(--ease) both; }
.fx-bar--time i { background: var(--tx-4); }
.fx-k__money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 0 0; border-top: 1px dashed var(--line-2); }
.fx-k__money > div { display: grid; gap: 1px; min-width: 0; }
.fx-k__money small { font-size: var(--fs-2xs); }
.fx-k__money b { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.fx-k__foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: var(--fs-2xs); color: var(--tx-2); }
.fx-k__foot span { display: inline-flex; align-items: center; gap: 5px; }
.fx-k__foot svg { width: 13px; height: 13px; }
.fx-k__go { margin-left: auto; color: var(--red-tx); font-weight: 500; font-size: var(--fs-xs); }
.fx-k:hover .fx-k__go svg { transform: translateX(3px); }
.fx-k__go svg { transition: transform var(--t-fast); }

.fx-kd { display: grid; gap: 10px; align-content: start; grid-auto-rows: max-content; }
.fx-kd .h4 { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; }
.fx-kd .h4 svg { width: 15px; height: 15px; color: var(--tx-3); }
.fx-kd .h4 small { font-weight: 400; }
.fx-kd__sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fx-kd__sum > div { padding: 10px 12px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.fx-kd__sum small { font-size: var(--fs-2xs); }
.fx-kd__sum b { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.fx-kd .fx-alert { margin: 4px 0 0; }
.fx-kd .table-wrap { height: auto; flex: none; min-height: 0; overflow-x: auto; overflow-y: visible; border: 1px solid var(--line); border-radius: var(--r-md); }
.fx-q__t { display: inline; font: inherit; }
.fx-kt th, .fx-kt td { padding: 8px 10px; font-size: var(--fs-xs); }
.fx-kos { display: grid; gap: 4px; }
.fx-kos > div { display: grid; grid-template-columns: minmax(90px, auto) minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); font-size: var(--fs-xs); }
.fx-kos > div > :nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-kos--nf > div { grid-template-columns: 76px 74px minmax(0, 1fr) auto; }
.fx-kos--nf > div > :nth-child(2) { overflow: visible; }
.fx-kos--nf > div > :nth-child(3) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-files { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-files span { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); font-size: var(--fs-xs); color: var(--tx-2); }
.fx-files svg { width: 14px; height: 14px; color: var(--red-tx); }
.fx-kd__note { display: flex; gap: 6px; align-items: center; font-size: var(--fs-2xs); margin-top: 10px; }
.fx-kd__note svg { width: 13px; height: 13px; }

/* Categorias */
.fx-cats { padding: 8px 12px; display: grid; gap: 2px; max-height: 470px; overflow-y: auto; }
.fx-cats__i { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); text-align: left; font-size: var(--fs-sm); transition: background var(--t-fast); }
.fx-cats__i i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.fx-cats__i span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-cats__i b { font-weight: 500; font-size: var(--fs-xs); color: var(--tx-2); }
.fx-cats__i:hover { background: var(--s2); }
.fx-cats__i.on { background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 3px 0 0 var(--c); }
.fx-cats__foot { display: flex; gap: 6px; align-items: center; padding: 10px 20px 16px; font-size: var(--fs-2xs); border-top: 1px solid var(--line); }
.fx-cats__foot svg { width: 13px; height: 13px; color: var(--ok); }
.fx-q { padding-bottom: 16px; }
.fx-q__cat { color: var(--c); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c) 45%, transparent); text-underline-offset: 4px; }
.fx-q__ans { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 8px 20px 4px; }
.fx-q__ans > b { font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -.02em; }
.fx-q__bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: end; height: 150px; padding: 12px 20px 0; }
.fx-q__bars > div { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; gap: 4px; height: 100%; }
.fx-q__bars i { align-self: end; width: 56%; height: var(--h); min-height: 4px; border-radius: 8px 8px 3px 3px; opacity: .35; transform-origin: bottom; animation: grow-y .9s var(--ease) both; transition: opacity var(--t-fast); }
.fx-q__bars > div.on i { opacity: 1; }
.fx-q__bars small { font-size: var(--fs-2xs); }
.fx-q__bars b { font-size: var(--fs-xs); font-weight: 500; }
.fx-q .h4 { padding: 0 20px; margin-top: 16px; }
.fx-q .fx-kos { padding: 0 20px; }
@keyframes grow-y { from { transform: scaleY(0); } }
.fx-sw { display: flex; gap: 6px; flex-wrap: wrap; }
.fx-sw button { width: 26px; height: 26px; border-radius: 8px; background: var(--c); border: 2px solid transparent; transition: transform var(--t-fast); }
.fx-sw button:hover { transform: scale(1.1); }
.fx-sw button.on { border-color: var(--tx); box-shadow: 0 0 0 2px var(--s1) inset; }
.fx-prev-cat { margin-top: 16px; display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); color: var(--tx-3); }

/* Responsivo */
@media (max-width: 1280px) {
  .fx-today { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-today__lead { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .fx-today__it:nth-child(even) { border-left: 0; }
  .fx-today__it { border-top: 1px solid var(--line); }
  .fx-ks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .fx-bsum, .fx-fmts { grid-template-columns: 1fr 1fr; }
  .fx-cc-wide, .fx-dda, .fx-ks, .fx-kpis3 { grid-template-columns: 1fr; }
  .fx-kd__sum { grid-template-columns: 1fr 1fr; }
  .fx-today { grid-template-columns: 1fr; }
  .fx-today__it { border-left: 0; }
  .fx-dups__h, .fx-dups__r { grid-template-columns: 1fr 1fr; }
  .fx-dups__h span:first-child, .fx-dups__r span { grid-column: 1 / -1; }
}

/* Tabela de contas: categoria quebra em duas linhas para caber a coluna de ação */
.fin-tbl .fx-cat { white-space: normal; height: auto; min-height: 24px; padding: 3px 10px 3px 8px; line-height: 1.3; max-width: 150px; }
.fin-tbl .fin-forn { min-width: 190px; }

/* Comissões da Gestão comercial: faixa do resumo do mês e selo nas contas a pagar */
.fx-com { display: grid; grid-template-columns: auto minmax(200px, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 14px 20px; }
.fx-com__ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--info-soft); color: var(--info); flex: none; }
.fx-com__ic svg { width: 18px; height: 18px; }
.fx-com__t, .fx-com__v { display: grid; gap: 2px; min-width: 0; }
.fx-com__t b { font-size: var(--fs-md); font-weight: 600; }
.fx-com__t small, .fx-com__v small { font-size: var(--fs-2xs); line-height: 1.35; }
.fx-com__v { padding-left: 18px; border-left: 1px solid var(--line); }
.fx-com__v b { font-size: var(--fs-lg); font-weight: 600; }
.fx-com__s { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fx-com__s .pill { white-space: nowrap; }
.fx-com-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; height: 18px; padding: 0 7px; border-radius: var(--r-pill); font-size: 10px; font-weight: 500; color: var(--info); background: var(--info-soft); white-space: nowrap; }
.fx-com-tag svg { width: 11px; height: 11px; flex-shrink: 0; }
@media (max-width: 1280px) {
  .fx-com { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); row-gap: 12px; }
  .fx-com__t { grid-column: 2 / -1; }
  .fx-com__v { grid-row: 2; grid-column: 2; padding-left: 0; border-left: 0; }
  .fx-com__v + .fx-com__v { grid-column: 3; padding-left: 18px; border-left: 1px solid var(--line); }
  .fx-com__s { grid-column: 2 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .fx-com { grid-template-columns: 1fr; gap: 12px; }
  .fx-com__t, .fx-com__v, .fx-com__v + .fx-com__v, .fx-com__s { grid-column: auto; grid-row: auto; padding-left: 0; border-left: 0; }
  .fx-com__s { flex-direction: column; align-items: flex-start; }
}

/* A3d · forma de pagamento do orçamento nas contas a receber das OS novas */
.cell-cli small.fin-cond { display: flex; align-items: flex-start; gap: 4px; margin-top: 2px; color: var(--tx-2); }
.fin-cond svg { width: 11px; height: 11px; flex: none; margin-top: 2px; color: var(--tx-3); }
