/* Hubfy · Campanhas no nível da UTMify: níveis, filtros, seleção e ações, colunas, comparativo, histórico,
   vendas não trackeadas e diagnóstico. Cor só em status e ganho/perda (e nas linhas do comparativo, para separar os itens). */

/* ---------- topo: níveis, drill-down, selo de rastreio e atualização ---------- */
.cp-topo { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.cp-niveis button { min-width: 84px; }
.cp-ir-grupo { display: inline-flex; gap: 6px; }
.cp-ir { gap: 4px; background: transparent; border: 1px solid var(--line); color: var(--text-2); font-weight: 560; }
.cp-ir:hover { background: var(--fill-1); color: var(--text); }
.cp-ir[aria-disabled="true"] { opacity: .5; cursor: default; }
.cp-ir[aria-disabled="true"]:hover { background: transparent; color: var(--text-2); }
.cp-ir .i { color: var(--text-3); }
.cp-ir-n { min-width: 18px; height: 18px; margin-left: 3px; padding: 0 5px; border-radius: 9px; background: var(--text); color: var(--card); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.cp-selo { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 560; white-space: nowrap; }
.cp-selo > i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gray); }
.cp-selo.ok > i { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); }
.cp-selo.alerta > i { background: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 20%, transparent); }
.cp-selo.alerta { color: var(--text); }
button.cp-selo:hover { background: var(--fill-1); }
.cp-selo.espera { color: var(--text-3); }
.cp-atualizar { gap: 6px; }
.cp-atualizar[data-dica]::after { top: calc(100% + 8px); right: 0; }

/* ---------- filtros ---------- */
.cp-filtros { gap: 8px; }
.cp-filtros .cp-busca { width: 240px; }
.cp-datas { display: inline-flex; align-items: center; gap: 6px; }
.cp-datas .input { width: 142px; }
.cp-ferr { display: inline-flex; gap: 2px; padding: 2px; border-radius: 11px; border: 1px solid var(--line); }
.cp-ferr .icone-btn { width: 30px; height: 30px; border-radius: 8px; }
.cp-ferr .icone-btn[data-dica]::after { top: calc(100% + 8px); right: 0; }

/* ---------- trilha do drill-down ---------- */
.cp-trilha { margin: -2px 0 12px -6px; gap: 6px; }
.cp-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 28px; padding: 0 4px 0 10px; border-radius: 9px; background: var(--fill-1); border: 1px solid var(--line); font-size: 12.5px; min-width: 0; }
.cp-chip small { font-size: 11.5px; color: var(--text-3); }
.cp-chip b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text); max-width: 320px; }
.cp-chip-x { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--text-3); }
.cp-chip-x:hover { background: var(--fill-2); color: var(--text); }

/* ---------- vendas não trackeadas (cartão) ---------- */
.cp-nt { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.cp-nt-ic { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange-ink); }
.cp-nt-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.cp-nt-txt b { font-size: 14px; font-weight: 650; color: var(--text); }
.cp-nt-v { margin-left: 6px; font-weight: 560; color: var(--text-3); }
.cp-nt-txt p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.cp-nt .btn { align-self: center; }

/* ---------- tabela: seleção, cabeçalho com fórmula, células editáveis ---------- */
.cp-check {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 16px; height: 16px; margin: 0;
  border: 1.5px solid var(--line-2); border-radius: 5px; background: transparent; cursor: pointer; transition: background .12s, border-color .12s;
}
.cp-check:hover { border-color: var(--text-3); }
.cp-check:checked, .cp-check[data-meio] { background: var(--text); border-color: var(--text); }
.cp-check:checked::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--card); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cp-check[data-meio]:not(:checked)::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6px; height: 2px; border-radius: 1px; background: var(--card); }
.cp-check:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tabela-camp th.c-nome .cp-n { gap: 12px; }
.cp-l.sel td, .cp-l.sel td.cp-nome { background: color-mix(in srgb, var(--text) 4.5%, var(--card)); }
.cp-l.sel:hover td, .cp-l.sel:hover td.cp-nome { background: color-mix(in srgb, var(--text) 6%, var(--card)); }
.th-in { display: inline-flex; align-items: center; gap: 3px; }
.tabela .num .th-in { flex-direction: row; }
.th-i { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--text-4); cursor: help; }
.th-i:hover { color: var(--text-2); }
.th-i .i { width: 12px; height: 12px; }
.tabela-camp th .th-i[data-dica]::after { top: calc(100% + 8px); right: -6px; width: max-content; max-width: 240px; white-space: normal; text-align: left; line-height: 1.35; font-weight: 500; }
.tabela-camp th.c-nome + th .th-i[data-dica]::after { right: auto; left: -6px; }
.tabela-camp thead th { vertical-align: middle; }
.tabela-camp td.num small, .tabela-camp td small { display: block; font-size: 11.5px; color: var(--text-3); }
.cp-px-sep { margin: 0 5px; font-style: normal; color: var(--text-4); }
.cp-edit { display: inline-flex; flex-direction: column; align-items: flex-end; position: relative; padding: 2px 18px 2px 6px; margin: -2px -6px -2px 0; border: 0; border-radius: 7px; background: none; color: inherit; font: inherit; text-align: right; cursor: pointer; }
.cp-edit > .i { position: absolute; right: 3px; top: 50%; translate: 0 -50%; color: var(--text-4); opacity: 0; transition: opacity .12s; }
.cp-edit:hover { background: var(--fill-2); }
.cp-edit:hover > .i, .cp-edit:focus-visible > .i { opacity: 1; }
.cp-edit small { font-size: 11.5px; color: var(--text-3); }
.cp-id { display: inline-flex; align-items: center; gap: 2px; font: 500 12px ui-monospace, "SF Mono", Menlo, monospace; color: var(--text-2); }
.cp-copiar { width: 24px; height: 24px; border-radius: 6px; opacity: .55; }
.cp-l:hover .cp-copiar { opacity: 1; }
.cp-conta-n { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); font-size: 12.5px; }
.tabela-camp td.c-conta { max-width: 190px; }
.tabela-camp td.c-pagamento, .tabela-camp td.c-bm { color: var(--text-2); }
.tabela-camp td.c-estrategia { color: var(--text-2); font-size: 12.5px; }

/* ---------- barra de ações da seleção (gruda no pé da tela; no celular vira folha) ---------- */
.cp-selbar {
  position: sticky; bottom: 16px; z-index: 30; justify-self: center; display: flex; align-items: center; gap: 8px;
  max-width: calc(100% - 8px); margin-top: 4px; padding: 7px 8px 7px 16px; border-radius: 16px;
  background: var(--vidro-forte); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--vidro-borda); box-shadow: inset 0 1px 0 var(--vidro-brilho), var(--sombra-flut);
  animation: cpSobe .22s var(--ease);
}
@keyframes cpSobe { from { opacity: 0; transform: translateY(12px); } }
.cp-sel-n { display: grid; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.cp-sel-n b { color: var(--text); font-weight: 700; }
.cp-sel-n small { font-size: 11px; color: var(--text-3); }
.cp-sel-limpar { color: var(--text-2); }
.cp-sel-sep { width: 1px; height: 22px; background: var(--line-2); }
.cp-sel-acoes { display: flex; gap: 4px; }
.cp-ac { gap: 6px; background: transparent; }
.cp-ac:hover { background: var(--fill-2); }
.cp-ac .i { color: var(--text-2); }

/* ---------- janela: personalizar colunas ---------- */
.modal-camp-colunas { width: min(780px, calc(100vw - 24px)); top: 7vh; max-height: 86vh; }
.cc-modal { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.modal > .form.cc-modal { overflow: hidden; }
.cc-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--text-3); }
.cc-busca { width: 100%; }
.cc-grupos { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -20px; padding: 0 20px; display: grid; gap: 16px; align-content: start; }
.cc-grupo header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cc-grupo h3 { margin: 0; font-size: 13px; font-weight: 650; }
.cc-n { font-size: 12px; color: var(--text-3); }
.cc-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.cc-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: background .12s; }
.cc-item:hover { background: var(--fill-1); }
.cc-item.on { background: var(--fill-1); border-color: var(--line); }
.cc-item input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 16px; height: 16px; margin: 1px 0 0; border: 1.5px solid var(--line-2); border-radius: 5px; cursor: pointer; }
.cc-item input:checked { background: var(--text); border-color: var(--text); }
.cc-item input:checked::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--card); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cc-item input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cc-txt { display: grid; gap: 1px; min-width: 0; }
.cc-txt b { font-size: 13px; font-weight: 590; color: var(--text); }
.cc-txt small { font-size: 11.5px; line-height: 1.35; color: var(--text-3); }
.cc-vazio { padding: 24px 0; text-align: center; color: var(--text-3); }
.cc-modal .form-acoes { align-items: center; padding-top: 4px; border-top: 1px solid var(--line); margin: 0 -20px; padding: 12px 20px 0; }

/* ---------- janela: ação na Meta ---------- */
.modal-camp-acao { width: min(540px, calc(100vw - 24px)); }
.ca-modal { display: grid; gap: 14px; }
.ca-lista { margin: 0; padding: 0; list-style: none; display: grid; border-radius: 12px; border: 1px solid var(--line); background: var(--fill-1); max-height: 240px; overflow-y: auto; }
.ca-lista li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; min-width: 0; }
.ca-lista li + li { border-top: 1px solid var(--line); }
.ca-lista li.fora { opacity: .55; }
.ca-nome { flex: 1; min-width: 0; display: grid; }
.ca-nome b { font-size: 13px; font-weight: 590; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-nome small { font-size: 12px; color: var(--text-3); }
.ca-lista li.com-erro .ca-nome small { color: var(--red-ink); }
.ca-resto { justify-content: center; font-size: 12px; color: var(--text-3); }
.ca-ad { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ca-ad b { color: var(--text); font-weight: 650; }
.ca-seta { display: inline-flex; color: var(--text-4); }
.ca-ok, .ca-erro { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.ca-ok { color: var(--green-ink); }
.ca-erro { color: var(--red-ink); }
.ca-campo .cs-valor { max-width: 220px; }
.ca-nota { margin: -4px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-3); }
.ca-perigo { display: flex; gap: 9px; margin: 0; padding: 10px 12px; border-radius: 11px; background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.ca-perigo .i { flex: none; margin-top: 1px; color: var(--red-ink); }
.ca-aviso { display: flex; align-items: flex-start; gap: 7px; margin: 0; font-size: 12px; line-height: 1.45; color: var(--text-3); }
.ca-aviso .i { flex: none; margin-top: 2px; }
.ca-destinos { display: flex; flex-wrap: wrap; gap: 6px; }
.ca-dest { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font-size: 13px; font-weight: 560; }
.ca-dest.on { border-color: var(--line-2); background: var(--fill-2); color: var(--text); }
.ca-dest[aria-disabled="true"] { opacity: .6; cursor: default; }
.ca-dest .tom { font-size: 10.5px; }
.ca-resumo { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 11px 12px; border-radius: 11px; font-size: 13px; line-height: 1.45; color: var(--text-2); background: var(--fill-1); }
.ca-resumo .i { flex: none; margin-top: 1px; }
.ca-resumo.tudo .i { color: var(--green-ink); }
.ca-resumo.parcial .i { color: var(--orange-ink); }
.ca-resumo b { color: var(--text); }

/* ---------- janela: comparativo ---------- */
.modal-camp-comparar { width: min(900px, calc(100vw - 24px)); top: 7vh; max-height: 86vh; }
.cmp-modal { display: grid; gap: 14px; }
.cmp-ctrl { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.cmp-ctrl .campo > span { font-size: 12px; }
.cmp-ctrl .seg [aria-disabled="true"] { opacity: .55; cursor: default; }
.cmp-ctrl .seg .tom { font-size: 10px; margin-left: 4px; }
.cmp-metricas { max-width: 100%; }
.cmp-leg { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }
.cmp-leg li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.cmp-leg li > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.cmp-leg li > b { font-weight: 650; font-variant-numeric: tabular-nums; }
.cmp-leg i, .cmp-tip i { flex: none; width: 10px; height: 3px; border-radius: 2px; background: var(--cor); }
.cmp-tip { display: flex; align-items: center; gap: 6px; font-size: 12px; min-width: 0; }
.cmp-tip span { flex: 1; min-width: 0; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.cmp-tip b { font-variant-numeric: tabular-nums; }

/* ---------- painel: histórico de alterações ---------- */
.hm-filtros { margin-bottom: 14px; }
.hm-lista { margin: 0; padding: 0; list-style: none; display: grid; }
.hm-dia { padding: 14px 0 6px; font-size: 12px; font-weight: 650; color: var(--text-3); }
.hm-dia:first-child { padding-top: 0; }
.hm { display: grid; grid-template-columns: 40px 24px minmax(0, 1fr); gap: 8px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.hm-h { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; padding-top: 3px; }
.hm-ic { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--fill-2); color: var(--text-2); }
.hm.erro .hm-ic { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red-ink); }
.hm-txt { display: grid; gap: 3px; min-width: 0; }
.hm-tit { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 13px; }
.hm-tit b { flex: none; font-weight: 650; }
.hm-obj { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.hm-meta { font-size: 11.5px; color: var(--text-3); }
.hm-meta .tom { font-size: 10.5px; }
.hm-mud { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hm-par { display: inline-flex; align-items: center; gap: 4px; }
.hm-mud .ca-seta { margin: 0 2px; }
.hm-para { color: var(--text); font-weight: 600; }
.hm-erro { font-size: 12.5px; line-height: 1.4; color: var(--red-ink); }

/* ---------- painel: vendas não trackeadas ---------- */
.nt-causas { margin: 0; padding: 0; list-style: none; counter-reset: nt; display: grid; border-radius: 13px; border: 1px solid var(--line); background: var(--fill-1); }
.nt-causas li { position: relative; display: grid; gap: 2px; padding: 10px 52px 10px 40px; counter-increment: nt; }
.nt-causas li + li { border-top: 1px solid var(--line); }
.nt-causas li::before { content: counter(nt); position: absolute; left: 12px; top: 10px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-2); font-size: 11px; font-weight: 650; color: var(--text-3); }
.nt-causas b { font-size: 13px; font-weight: 600; }
.nt-causas span { font-size: 12.5px; line-height: 1.45; color: var(--text-3); }
.nt-causas code { font: 500 12px ui-monospace, "SF Mono", Menlo, monospace; }
.nt-causas em { position: absolute; right: 12px; top: 10px; min-width: 24px; height: 20px; padding: 0 7px; border-radius: 10px; background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange-ink); font: 700 11.5px/20px var(--fonte); text-align: center; }
.nt-atalhos { margin-top: 10px; display: flex; gap: 8px; }
.nt-lista { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.nt-v { display: grid; gap: 8px; padding: 12px; border-radius: 13px; border: 1px solid var(--line); background: var(--fill-1); }
.nt-v-cab { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nt-v-h { flex: none; display: grid; justify-items: center; width: 42px; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.nt-v-h small { font-size: 11px; font-weight: 500; color: var(--text-3); }
.nt-v-txt { flex: 1; min-width: 0; display: grid; }
.nt-v-txt b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-v-txt small { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-v-valor { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.nt-v-causa { position: relative; margin: 0; padding-left: 14px; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.nt-v-causa > i { position: absolute; left: 0; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.nt-v-causa.nt-outra > i, .nt-v-causa.nt-visita > i { background: var(--gray); }
.nt-v-causa b { font-weight: 650; color: var(--text); }
.nt-utms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.nt-utm { display: grid; min-width: 0; }
.nt-utm small { font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.nt-utm code { font: 500 12px ui-monospace, "SF Mono", Menlo, monospace; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-ck { justify-self: start; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); text-decoration: none; }
.nt-ck:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- painel: diagnóstico de UTMs ---------- */
.dg-selos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dg-selos .tom { display: inline-flex; align-items: center; gap: 5px; }
.dg-res { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border-radius: 13px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.dg-res.ruim { background: color-mix(in srgb, var(--orange) 10%, transparent); }
.dg-res.ruim > b { font: 700 24px/1 var(--fonte-display); color: var(--orange-ink); }
.dg-res.bom { background: color-mix(in srgb, var(--green) 10%, transparent); }
.dg-res.bom .i { color: var(--green-ink); }
.dg-camp { margin-bottom: 16px; }
.dg-camp header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dg-camp-nome { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 650; }
.dg-camp ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.dg-camp li { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--fill-1); }
.dg-a-cab { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dg-a-cab b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.dg-a-cab .icone-btn { width: 26px; height: 26px; }
.dg-falta { display: flex; flex-wrap: wrap; gap: 4px; }
.dg-f { height: 20px; padding: 0 7px; border-radius: 6px; background: var(--fill-2); color: var(--text-2); font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; }
.dg-f.forte { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange-ink); }
.dg-tags { font: 500 11.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; color: var(--text-3); overflow-wrap: anywhere; }

/* ---------- olho mágico ---------- */
.privado :is(.cp-ir-n, .cp-sel-n b, .cc-n) { filter: blur(6px); user-select: none; }

/* ---------- telas menores ---------- */
@media (max-width: 760px) {
  .cp-topo { gap: 8px; }
  .cp-niveis { order: 1; width: 100%; }
  .cp-niveis button { flex: 1; min-width: 0; }
  .cp-ir-grupo { order: 3; width: 100%; }
  .cp-ir-grupo .cp-ir { flex: 1; }
  .cp-topo .flex { display: none; }
  .cp-selo { order: 2; }
  .cp-atualizar { order: 2; margin-left: auto; }
  .cp-filtros .cp-busca { width: 100%; order: 0; }
  .cp-filtros .flex { display: none; }
  .cp-datas { width: 100%; }
  .cp-datas label { flex: 1; }
  .cp-datas .input { width: 100%; }
  .cp-nt { flex-wrap: wrap; }
  .cp-nt .btn { margin-left: 42px; }
  .tabela-camp .cp-nome .cp-n { gap: 8px; }
  .cc-lista { grid-template-columns: minmax(0, 1fr); }
  .modal-camp-colunas, .modal-camp-comparar { top: auto; max-height: 92vh; }
}
@media (max-width: 640px) {
  .cp-longo, .cp-ir-grupo { display: none; }
  .cp-filtros .filtro { padding: 0 10px; }
  .cp-ferr { margin-left: auto; }
  .cp-nt { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .cp-nt .btn { grid-column: 2; justify-self: start; margin-left: 0; }
  /* Com seleção, a barra de ações cobre a barra de abas do celular (como o modo de seleção do iOS). */
  .cp-selbar { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: none; min-height: 62px; padding: 8px 8px 8px 16px; border-radius: 24px; }
  .cp-sel-sep, .cp-sel-limpar, .cp-ac-extra { display: none; }
  .cp-sel-n { min-width: 0; white-space: normal; line-height: 1.25; }
  .cp-sel-acoes { margin-left: auto; }
  .cp-ac > span { display: none; }
  .cp-ac { width: 36px; padding: 0; }
  .cp-ac.cp-mais { width: auto; padding: 0 12px; background: var(--fill-2); }
  .cp-ac.cp-mais > span { display: inline; }
  .nt-utms { grid-template-columns: minmax(0, 1fr); }
}
