/* Cartão corporativo (Indicadores → Operações), desenho aprovado em 06/11/2026 (prévia em artifact).
   Mais leve que o resto do portal: pesos até 600, profundidade por tom (fundo levemente tingido, sombra quase nula),
   números tabulares e cor de situação só onde há situação. Tudo sob .ccp; os tons que o DS não tem ficam aqui. */
.ccp {
  --ccp-tinta: #f2f8f4;        /* verde quase branco: passo atual, linha em hover */
  --ccp-linha: #edf1ee;        /* separador de linhas de tabela */
  --ccp-sombra: 0 1px 2px rgba(23, 35, 28, .05), 0 4px 14px rgba(23, 35, 28, .05);
  display: grid; gap: 18px; color: var(--ff-text); font-variant-numeric: tabular-nums;
}
.ccp h2, .ccp h3 { margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.ccp-num { font-variant-numeric: tabular-nums; }
.ccp-mut { color: var(--ff-text-muted); font-weight: 400; }
.ccp-s { display: block; font-size: 12px; color: var(--ff-text-muted); font-weight: 400; }
.ccp-p { font-size: 12.5px; }
.ccp-nota { font-size: 12px; color: var(--ff-text-muted); margin: 0; }
.ccp-vazio { color: var(--ff-text-muted); padding: 14px 8px; margin: 0; }
.ccp-vazio.ccp-bom { color: var(--ff-green-dark); font-weight: 600; }
.ccp-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ccp :focus-visible { outline: 2px solid var(--ff-green); outline-offset: 2px; border-radius: 6px; }
.ccp-sobe { color: var(--ff-red); } .ccp-desce { color: var(--ff-green); }
.ccp-ruim { color: var(--ff-red); font-weight: 600; }

/* topo */
.ccp-topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ccp-trilha { font-size: 12px; color: var(--ff-text-muted); margin-bottom: 2px; }
.ccp-h1 { font-size: 26px; font-weight: 600; }
.ccp-sub { margin: 4px 0 0; color: var(--ff-text-muted); font-size: 13px; }
.ccp-topo-ctl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ccp-mes select, .ccp-ordem select { font: inherit; border: 1px solid var(--ff-border); background: var(--ff-white); border-radius: 999px; padding: 7px 14px; font-weight: 500; color: var(--ff-text); cursor: pointer; }
.ccp-ordem { font-size: 12.5px; color: var(--ff-text-muted); display: inline-flex; gap: 8px; align-items: center; }
.ccp-ordem select { padding: 5px 12px; }
.ccp-selo { font-size: 12px; color: var(--ff-text-muted); display: inline-flex; align-items: center; gap: 6px; }
.ccp-selo i { width: 7px; height: 7px; border-radius: 50%; background: var(--ff-green); display: inline-block; }

/* ciclo do mês */
.ccp-ciclo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--ff-white); border-radius: 12px; box-shadow: var(--ccp-sombra); overflow: hidden; }
.ccp-passo { padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.ccp-passo + .ccp-passo { border-left: 1px solid var(--ff-border); }
.ccp-passo.ccp-atual { background: var(--ccp-tinta); }
.ccp-etq { font-size: 11.5px; font-weight: 600; color: var(--ff-green); letter-spacing: .04em; text-transform: uppercase; }
.ccp-passo h3 { font-size: 16px; font-weight: 600; }
.ccp-passo p { margin: 0; font-size: 13px; color: var(--ff-text-muted); }
.ccp-est { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ccp-est b { font-size: 21px; font-weight: 600; }
.ccp-est span { font-size: 12.5px; color: var(--ff-text-muted); }
.ccp-barra { height: 6px; border-radius: 999px; background: var(--ff-green-light); overflow: hidden; margin-top: 4px; }
.ccp-barra span { display: block; height: 100%; background: var(--ff-green); border-radius: 999px; }
.ccp-passo .ccp-btn { justify-self: start; margin-top: 6px; }

/* abas */
.ccp-abas { display: flex; gap: 4px; overflow-x: auto; background: var(--ff-white); padding: 5px; border-radius: 999px; box-shadow: var(--ccp-sombra); position: sticky; top: 0; z-index: 5; scrollbar-width: none; }
.ccp-abas::-webkit-scrollbar { display: none; }
.ccp-aba { border: 0; background: none; padding: 8px 16px; border-radius: 999px; white-space: nowrap; cursor: pointer; color: var(--ff-text-muted); font: inherit; font-weight: 500; transition: background-color .15s, color .15s; }
.ccp-aba:hover { color: var(--ff-text); }
.ccp-aba[aria-selected="true"] { background: var(--ff-green); color: var(--ff-white); }
.ccp-ct { font-size: 11px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--ff-red-light); color: var(--ff-red); }
.ccp-aba[aria-selected="true"] .ccp-ct { background: rgba(255, 255, 255, .22); color: var(--ff-white); }
.ccp-corpo { display: grid; gap: 18px; }

/* blocos e números */
.ccp-bloco { background: var(--ff-white); border-radius: 12px; box-shadow: var(--ccp-sombra); padding: 20px; display: grid; gap: 14px; min-width: 0; align-content: start; }
.ccp-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; }
.ccp-cab h3 { font-size: 16.5px; font-weight: 600; }
.ccp-cab p { margin: 0; font-size: 13px; color: var(--ff-text-muted); max-width: 72ch; }
.ccp-linha { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.ccp-grade2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.ccp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ccp-kpi { background: var(--ff-white); border-radius: 12px; box-shadow: var(--ccp-sombra); padding: 16px 18px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.ccp-r { font-size: 12.5px; color: var(--ff-text-muted); font-weight: 500; }
.ccp-v { font-size: 25px; font-weight: 500; letter-spacing: -.01em; }
.ccp-mini .ccp-v { font-size: 19px; }

/* selos de situação */
.ccp-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.ccp-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ccp-ok { background: var(--ff-green-light); color: var(--ff-green-dark); }
.ccp-at { background: var(--ff-amber-bg); color: var(--ff-amber-fg); }
.ccp-cr { background: var(--ff-red-light); color: var(--ff-red); }
.ccp-in { background: var(--ff-blue-bg); color: var(--ff-blue-fg); }
.ccp-nt { background: var(--ff-bg); color: var(--ff-text-muted); }

/* botões e filtros */
.ccp-btn { font: inherit; font-size: 13px; font-weight: 500; border: 1px solid var(--ff-border); background: var(--ff-white); color: var(--ff-text); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: transform .12s, border-color .15s, background-color .15s; justify-self: start; }
.ccp-btn:hover { border-color: var(--ff-green); transform: translateY(-1px); }
.ccp-btn:active { transform: none; }
.ccp-btn.ccp-pri { background: var(--ff-green); border-color: var(--ff-green); color: var(--ff-white); }
.ccp-btn.ccp-pri:hover { background: var(--ff-green-dark); }
.ccp-link { font: inherit; border: 0; background: none; padding: 0; color: var(--ff-text); font-weight: 500; cursor: pointer; text-align: left; }
.ccp-link:hover { color: var(--ff-green); text-decoration: underline; }
.ccp-filtros { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ccp-filtro { font: inherit; font-size: 12.5px; border: 1px solid var(--ff-border); background: var(--ff-white); color: var(--ff-text); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.ccp-filtro[aria-pressed="true"] { background: var(--ff-text); color: var(--ff-white); border-color: var(--ff-text); }
.ccp-filtro[aria-pressed="true"] .ccp-mut { color: rgba(255, 255, 255, .7); }
.ccp-busca input { font: inherit; font-size: 13px; border: 1px solid var(--ff-border); background: var(--ff-white); color: var(--ff-text); border-radius: 999px; padding: 7px 14px; min-width: 240px; }
.ccp-busca input:focus { outline: none; border-color: var(--ff-green); }
@media (max-width: 640px) { .ccp-busca, .ccp-busca input { width: 100%; min-width: 0; } }
/* checklist da virada: pontinhos na tabela e lista no painel da loja */
.ccp-pontos { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ccp-pontos i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ccp-pontos i.ok { background: var(--ff-green); } .ccp-pontos i.pend { background: var(--ff-amber-bar); } .ccp-pontos i.sem { background: var(--ff-border); }
.ccp-pontos b { font-size: 12px; font-weight: 600; color: var(--ff-text-muted); margin-left: 4px; }
.ccp-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ccp-check li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13.5px; }
.ccp-check li i { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 700; margin-top: 1px; }
.ccp-check li.ok i { background: var(--ff-green-light); color: var(--ff-green-dark); } .ccp-check li.ok i::before { content: "✓"; }
.ccp-check li.pend i { background: var(--ff-amber-bg); color: var(--ff-amber-fg); } .ccp-check li.pend i::before { content: "!"; }
.ccp-check li.sem i { background: var(--ff-bg); color: var(--ff-text-muted); } .ccp-check li.sem i::before { content: "–"; }
.ccp-check b { font-weight: 600; }
.ccp-visto { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.ccp-visto input { accent-color: var(--ff-green); width: 16px; height: 16px; }
.ccp-visto-g { font-size: 14px; font-weight: 500; }
.ccp-rev { padding-block: 14px; gap: 2px; }

/* tabelas */
.ccp-rola { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.ccp-tab { border-collapse: collapse; width: 100%; font-size: 13px; }
.ccp-tab th { text-align: left; font-size: 11.5px; font-weight: 500; color: var(--ff-text-muted); padding: 8px 10px; border-bottom: 1px solid var(--ff-border); white-space: nowrap; }
.ccp-tab td { padding: 10px; border-bottom: 1px solid var(--ccp-linha); vertical-align: middle; }
.ccp-tab tbody tr:last-child td { border-bottom: 0; }
.ccp-tab .ccp-n, .ccp-fx .ccp-n { text-align: right; }
.ccp-tab td.ccp-num { white-space: nowrap; }
.ccp-quando { white-space: nowrap; }
.ccp-etapas { font-size: 12px; min-width: 180px; }
.ccp-loja { font-weight: 500; white-space: nowrap; }
tr.ccp-clic { cursor: pointer; transition: background-color .12s; }
tr.ccp-clic:hover td { background: var(--ccp-tinta); }

/* mapa loja × mês */
.ccp-mapa td.ccp-c { text-align: center; font-size: 12.5px; border-bottom: 2px solid var(--ff-white); border-left: 2px solid var(--ff-white); border-radius: 6px; }
.ccp-c-ok1 { background: rgba(26, 122, 74, .10); } .ccp-c-ok2 { background: rgba(26, 122, 74, .17); }
.ccp-c-ok3 { background: rgba(26, 122, 74, .25); } .ccp-c-ok4 { background: rgba(26, 122, 74, .34); }
.ccp-c-zero { background: var(--ff-bg); color: var(--ff-text-muted); }
.ccp-c-at { background: #fbe7c8; color: #7a4405; }
.ccp-c-cr { background: #f8d9d6; color: #8f2420; }
.ccp-c-atual { background: #f7f9f8; outline: 1px dashed var(--ff-border); outline-offset: -3px; }
.ccp-c-vazio { background: transparent; }
.ccp-lg { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ff-text-muted); align-items: center; }
.ccp-lg span { display: inline-flex; gap: 6px; align-items: center; }
.ccp-lg i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.ccp-spark { display: block; }
.ccp-spark-base { stroke: var(--ff-border); stroke-dasharray: 3 3; }
.ccp-spark-l { fill: none; stroke: var(--ff-green); stroke-width: 1.6; }
.ccp-spark-p { fill: var(--ff-green); }

/* barras horizontais */
.ccp-bars { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; align-content: start; }
.ccp-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 13px; }
.ccp-bars .ccp-t { grid-column: 1 / -1; height: 8px; background: var(--ff-bg); border-radius: 999px; overflow: hidden; }
.ccp-bars .ccp-t span { display: block; height: 100%; background: var(--ff-green); border-radius: 999px; opacity: .85; }

/* pontos de atenção */
.ccp-alertas { display: grid; gap: 8px; }
.ccp-alerta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 12px 14px; border-radius: 8px; background: var(--ff-bg); }
.ccp-alerta .ccp-q { font-weight: 600; font-size: 18px; min-width: 22px; }
.ccp-alerta b { font-weight: 600; } .ccp-alerta p { margin: 2px 0 0; font-size: 12.5px; color: var(--ff-text-muted); }
.ccp-al-cr .ccp-q, .ccp-al-cr b { color: var(--ff-red); }
.ccp-al-at .ccp-q, .ccp-al-at b { color: var(--ff-amber-fg); }

/* blocos do que depositar na carteira e do que creditar no cartão */
.ccp-acoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .ccp-acoes { grid-template-columns: 1fr; } }
.ccp-acao { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; background: var(--ccp-tinta); border-radius: 8px; padding: 16px 18px; }
.ccp-acao p { margin: 2px 0 0; color: var(--ff-text-muted); font-size: 13px; }

/* painel da loja */
.ccp-veu { position: fixed; inset: 0; background: rgba(23, 35, 28, .32); z-index: 900; opacity: 0; transition: opacity .2s; }
.ccp-veu.aberto { opacity: 1; }
.ccp-painel { position: fixed; top: 0; right: 0; bottom: 0; width: min(780px, 100%); background: var(--ff-bg); z-index: 901; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .25s ease; display: grid; gap: 14px; align-content: start; color: var(--ff-text); font-variant-numeric: tabular-nums;
  padding: max(18px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) max(28px, env(safe-area-inset-bottom, 0px)) 18px; }
.ccp-painel.aberto { transform: none; }
.ccp-painel-cab { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ccp-painel-cab .ccp-h1 { font-size: 22px; margin: 2px 0 6px; }
.ccp-fechar { border: 0; background: var(--ff-white); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; box-shadow: var(--ccp-sombra); font-size: 20px; line-height: 1; flex: none; color: var(--ff-text); }
.ccp-painel .ccp-bloco, .ccp-painel .ccp-kpi { box-shadow: 0 1px 2px rgba(23, 35, 28, .05); }
.ccp-painel .ccp-cab h3 { font-size: 15.5px; }
/* mês a mês */
.ccp-colunas { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 200px; position: relative; }
.ccp-base { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--ff-amber-fg); pointer-events: none; }
.ccp-base span { position: absolute; right: 0; top: -18px; font-size: 11.5px; color: var(--ff-amber-fg); }
.ccp-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.ccp-pista { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-height: 0; gap: 2px; }
.ccp-vl, .ccp-ms { font-size: 11.5px; color: var(--ff-text-muted); }
.ccp-ms { height: 18px; }
.ccp-br { width: 70%; max-width: 40px; border-radius: 5px 5px 2px 2px; background: var(--ff-green); }
.ccp-br.acima { background: var(--ff-amber-bar); } .ccp-br.atual { background: #cfe6d8; }
/* fluxo do mês */
.ccp-fluxo { display: grid; }
.ccp-fx { display: grid; grid-template-columns: 92px minmax(0, 1fr) 100px 100px 104px 104px; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--ccp-linha); font-size: 13px; }
.ccp-fx:last-child { border-bottom: 0; }
.ccp-fx-cab { font-size: 11.5px; color: var(--ff-text-muted); font-weight: 500; border-bottom-color: var(--ff-border); padding-block: 6px; }
.ccp-fx-ini { color: var(--ff-text-muted); }
.ccp-fx .ccp-n { text-align: right; white-space: nowrap; }
.ccp-fx .ccp-mais { color: var(--ff-green); }
.ccp-fx .ccp-rot { display: none; }
.ccp-ev { display: inline-flex; align-items: center; gap: 8px; }
.ccp-ev i { width: 8px; height: 8px; border-radius: 2px; flex: none; }

@media (max-width: 900px) {
  .ccp-ciclo { grid-template-columns: 1fr; }
  .ccp-passo + .ccp-passo { border-left: 0; border-top: 1px solid var(--ff-border); }
  .ccp-grade2 { grid-template-columns: 1fr; }
  .ccp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* tabelas que viram cartão no celular (.rtable do app.css): só aparecem no tamanho certo */
.ccp-so-cel { display: none; }
@media (max-width: 768px) {
  .ccp-rola:has(> table.ccp-rt) { overflow-x: visible; margin: 0; padding: 0; }
  table.rtable.ccp-rt { min-width: 0; }
  table.rtable.ccp-rt td { white-space: normal; }
  table.rtable.ccp-rt td:first-child { justify-content: flex-start; font-weight: 600; font-size: 14px; }
  table.rtable.ccp-rt td > span { text-align: right; }
  table.rtable.ccp-rt td:first-child > span { text-align: left; }
  table.rtable.ccp-rt .ccp-so-desk { display: none; }
  table.rtable.ccp-rt .ccp-so-cel { display: inline; }
  table.rtable.ccp-rt .ccp-etapas { min-width: 0; }
}
@media (max-width: 640px) {
  .ccp-h1 { font-size: 22px; }
  .ccp-acao { grid-template-columns: 1fr; }
  .ccp-v { font-size: 21px; }
  .ccp-colunas { gap: 3px; }
  .ccp-vl { font-size: 10px; }
  .ccp-fx-cab { display: none; }
  .ccp-fx { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3px 12px; padding: 11px 2px; }
  .ccp-fx .ccp-quando { grid-column: 1 / -1; font-size: 12px; color: var(--ff-text-muted); }
  .ccp-fx .ccp-e { grid-column: 1 / -1; font-weight: 500; }
  .ccp-fx .ccp-n { text-align: left; font-size: 12.5px; }
  .ccp-fx .ccp-rot { display: inline; color: var(--ff-text-muted); margin-right: 4px; }
  .ccp-fx .ccp-vz { display: none; }
}
/* fila de conferência: o que o gerente lançou e o que chama atenção */
.ccp-cat { display: block; font-weight: 500; font-size: 13px; }
.ccp-coment { font-style: italic; overflow-wrap: anywhere; }
.ccp-als { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ccp-chip.ccp-chip-p { font-size: 11px; padding: 1px 7px; gap: 4px; }
.ccp-prog { display: grid; grid-template-columns: minmax(60px, 140px) auto; gap: 8px; align-items: center; }
.ccp-prog .ccp-barra { margin-top: 0; }
/* carteiras: quando depositar */
.ccp-quandos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ccp-quandos li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; font-size: 13.5px; padding-bottom: 10px; border-bottom: 1px solid var(--ccp-linha, #edf1ee); }
.ccp-quandos li:last-child { border-bottom: 0; padding-bottom: 0; }
.ccp-quandos b { font-weight: 600; }
.ccp-quandos .ccp-agora b { color: var(--ff-red); }
@media (max-width: 640px) {
  .ccp-quandos li { grid-template-columns: 1fr; gap: 2px; }
  .ccp-prog { grid-template-columns: minmax(60px, 1fr) auto; }
}
@media (prefers-reduced-motion: reduce) { .ccp *, .ccp-painel, .ccp-veu { transition: none !important; } }
