/* Site do administrador, identidade Pastilha (DBDetalhes). Cor é sempre informação; o que se clica é de tinta. */

@font-face {
  font-family: 'Nunito';
  src: url('/site/fontes/nunito-variavel.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('/site/fontes/dm-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --painel: #f1f2f7;
  --nav: #e4e7f0;
  --cartao: #ffffff;
  --poco: #f1f2f7;
  --poco-hover: #e3e6f0;
  --suave-fundo: #e4e7f0;
  --tinta: #1e2233;
  --tinta-2: #555b70;
  --contorno: #c9cedd;
  --fio: #dfe2ec;
  --tracejado: #7c8299;
  --botao: #1e2233;
  --botao-texto: #ffffff;
  --borda-cartao: transparent;
  --sombra-cartao: 0 1px 2px rgba(30, 34, 51, 0.06), 0 6px 16px rgba(30, 34, 51, 0.06);
  --sombra-atual: 0 1px 2px rgba(30, 34, 51, 0.1);

  --ok-fundo: #dcf2e4; --ok-texto: #17693f; --ok-ponto: #1b7f4c;
  --vence-fundo: #fdebc3; --vence-texto: #7a4700; --vence-ponto: #a86400;
  --vencido-fundo: #fbdfdb; --vencido-texto: #a3231b; --vencido-ponto: #cf3b30;
  --teste-fundo: #e8e2fb; --teste-texto: #5136b8; --teste-ponto: #6a4fe0;
  --neutro-fundo: #e4e7f0; --neutro-texto: #4c5266; --neutro-ponto: #6a7189;

  --s0-fundo: #dce8fc; --s0-texto: #1b5cc0; --s0-ponto: #2f7bea;
  --s1-fundo: #fadeee; --s1-texto: #a3246f; --s1-ponto: #d0489a;
  --s2-fundo: #d3efef; --s2-texto: #0a6f75; --s2-ponto: #12999f;
  --s3-fundo: #e9efc8; --s3-texto: #56660a; --s3-ponto: #84991a;
  --s4-fundo: #eeddf6; --s4-texto: #7a2e8f; --s4-ponto: #a447c2;
  --s5-fundo: #dde3ea; --s5-texto: #3b5068; --s5-ponto: #5a7591;
  --s6-fundo: #f3e3d6; --s6-texto: #8a4b1f; --s6-ponto: #b8682e;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='claro']) {
    color-scheme: dark;
    --painel: #15171f;
    --nav: #2a2e3c;
    --cartao: #1f222d;
    --poco: #2a2e3c;
    --poco-hover: #353a4b;
    --suave-fundo: #2a2e3c;
    --tinta: #eceef6;
    --tinta-2: #a9afc4;
    --contorno: #434960;
    --fio: #2f3445;
    --tracejado: #8b91a8;
    --botao: #eceef6;
    --botao-texto: #15171f;
    --borda-cartao: #2f3445;
    --sombra-cartao: 0 1px 2px rgba(0, 0, 0, 0.35);
    --sombra-atual: 0 1px 2px rgba(0, 0, 0, 0.4);
    --barra-fundo: #434960;

    --ok-fundo: #143524; --ok-texto: #86dca9; --ok-ponto: #4cc383;
    --vence-fundo: #3b2d0f; --vence-texto: #f6c56b; --vence-ponto: #e5a93a;
    --vencido-fundo: #421c19; --vencido-texto: #ffa298; --vencido-ponto: #f0695d;
    --teste-fundo: #2b2452; --teste-texto: #c0b3ff; --teste-ponto: #9480ff;
    --neutro-fundo: #2a2e3c; --neutro-texto: #bbc0d1; --neutro-ponto: #8b91a8;

    --s0-fundo: #172c50; --s0-texto: #9cc2ff; --s0-ponto: #5c9bf5;
    --s1-fundo: #431a36; --s1-texto: #f7a3d3; --s1-ponto: #e36ab2;
    --s2-fundo: #0e3538; --s2-texto: #79d8db; --s2-ponto: #35b9be;
    --s3-fundo: #2d3410; --s3-texto: #cbdb78; --s3-ponto: #a6bc3a;
    --s4-fundo: #3a1f45; --s4-texto: #e3b5f2; --s4-ponto: #c27bdb;
    --s5-fundo: #253140; --s5-texto: #b5c6da; --s5-ponto: #7f9ab8;
    --s6-fundo: #3c2a1c; --s6-texto: #f0c49f; --s6-ponto: #d18a52;
  }
}

:root[data-theme='escuro'] {
  color-scheme: dark;
  --painel: #15171f;
  --nav: #2a2e3c;
  --cartao: #1f222d;
  --poco: #2a2e3c;
  --poco-hover: #353a4b;
  --suave-fundo: #2a2e3c;
  --tinta: #eceef6;
  --tinta-2: #a9afc4;
  --contorno: #434960;
  --fio: #2f3445;
  --tracejado: #8b91a8;
  --botao: #eceef6;
  --botao-texto: #15171f;
  --borda-cartao: #2f3445;
  --sombra-cartao: 0 1px 2px rgba(0, 0, 0, 0.35);
  --sombra-atual: 0 1px 2px rgba(0, 0, 0, 0.4);
  --barra-fundo: #434960;

  --ok-fundo: #143524; --ok-texto: #86dca9; --ok-ponto: #4cc383;
  --vence-fundo: #3b2d0f; --vence-texto: #f6c56b; --vence-ponto: #e5a93a;
  --vencido-fundo: #421c19; --vencido-texto: #ffa298; --vencido-ponto: #f0695d;
  --teste-fundo: #2b2452; --teste-texto: #c0b3ff; --teste-ponto: #9480ff;
  --neutro-fundo: #2a2e3c; --neutro-texto: #bbc0d1; --neutro-ponto: #8b91a8;

  --s0-fundo: #172c50; --s0-texto: #9cc2ff; --s0-ponto: #5c9bf5;
  --s1-fundo: #431a36; --s1-texto: #f7a3d3; --s1-ponto: #e36ab2;
  --s2-fundo: #0e3538; --s2-texto: #79d8db; --s2-ponto: #35b9be;
  --s3-fundo: #2d3410; --s3-texto: #cbdb78; --s3-ponto: #a6bc3a;
  --s4-fundo: #3a1f45; --s4-texto: #e3b5f2; --s4-ponto: #c27bdb;
  --s5-fundo: #253140; --s5-texto: #b5c6da; --s5-ponto: #7f9ab8;
  --s6-fundo: #3c2a1c; --s6-texto: #f0c49f; --s6-ponto: #d18a52;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 500;
  color: var(--tinta);
  background: var(--painel);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font-family: inherit; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: 'DM Mono', ui-monospace, monospace; font-weight: 500; }

/* ---------- moldura ---------- */
.moldura { display: flex; min-height: 100vh; }
.nav {
  flex: 0 0 228px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 12px;
  background: var(--nav);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.marca { display: flex; align-items: center; gap: 9px; padding: 2px 10px 18px; }
.marca.marca-sem-folga { padding: 0; }
.marca-nome { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--tinta-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
a.nav-item:hover { background: var(--poco-hover); color: var(--tinta); }
.nav-item[aria-current='page'] { background: var(--cartao); box-shadow: var(--sombra-atual); color: var(--tinta); font-weight: 800; }
.nav-item.desligado { opacity: 0.62; cursor: default; }
.nav-breve { font-size: 11.5px; font-weight: 800; color: var(--tinta-2); white-space: nowrap; }
.nav-pe { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid var(--contorno); font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--tinta-2); display: flex; flex-direction: column; gap: 10px; }
.nav-pe strong { color: var(--tinta); font-weight: 800; }
.nav-botoes { display: flex; gap: 6px; flex-wrap: wrap; }
.nav .botao.discreto { background: var(--cartao); box-shadow: var(--sombra-atual); }
.nav .botao.discreto:hover { background: var(--poco-hover); }

.principal { flex: 1; min-width: 0; padding: 30px 36px 44px; }
.conteudo { max-width: 1240px; margin: 0 auto; }

/* ---------- topo da página ---------- */
.topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 4px; flex-wrap: wrap; }
.topo h1 { margin: 0; font-size: 32px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.topo p { margin: 6px 0 0; font-size: 15px; color: var(--tinta-2); }
.topo-dir { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.topo-controles { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.atualizado { margin: 0; font-size: 13px; font-weight: 600; color: var(--tinta-2); }
.seletor-mes { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--suave-fundo); }
.seletor-mes button { height: 30px; min-width: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--tinta); font-size: 13px; font-weight: 700; cursor: pointer; }
.seletor-mes button:hover:not(:disabled) { background: var(--cartao); }
.seletor-mes button:disabled { opacity: 0.4; cursor: default; }
.seletor-mes .mes-nome { min-width: 128px; font-weight: 800; text-align: center; }
.selo-demo { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 9px; border-radius: 999px; background: var(--teste-fundo); color: var(--teste-texto); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.selo-demo::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teste-ponto); }

/* ---------- cartões e faixas ---------- */
.cartao { border: 1px solid var(--borda-cartao); border-radius: 20px; background: var(--cartao); box-shadow: var(--sombra-cartao); }
.rotulo-faixa { margin: 22px 0 8px 4px; font-size: 13px; font-weight: 800; color: var(--tinta-2); }
.secao { margin-top: 28px; }
.secao > h2 { margin: 0 0 10px 4px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.grade-topo { display: grid; grid-template-columns: minmax(0, 1fr) 256px; gap: 24px; }
.faixa { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.faixa > div { padding: 16px 18px; min-width: 0; }
.faixa > div + div { border-left: 1px solid var(--fio); }
.faixa dt { font-size: 13px; font-weight: 600; color: var(--tinta-2); }
.faixa { container-type: inline-size; }
.faixa .valor { margin: 2px 0 0; font-size: 26px; font-size: clamp(19px, 3.3cqi, 26px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.faixa .nota { margin: 4px 0 0; display: flex; gap: 6px; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--tinta-2); }
.nota.forte { font-weight: 700; }
.ponto { width: 8px; height: 8px; flex: none; margin-top: 5px; border-radius: 50%; }
.t-ok { color: var(--ok-texto); } .p-ok { background: var(--ok-ponto); }
.t-vence { color: var(--vence-texto); } .p-vence { background: var(--vence-ponto); }
.t-vencido { color: var(--vencido-texto); } .p-vencido { background: var(--vencido-ponto); }
.t-teste { color: var(--teste-texto); } .p-teste { background: var(--teste-ponto); }
.t-neutro { color: var(--tinta-2); } .p-neutro { background: var(--neutro-ponto); }
.nao-medido { font-size: 12.5px; font-weight: 700; color: var(--tinta-2); font-style: italic; }

/* ---------- pendências ---------- */
.pendencias { padding: 4px 16px 12px; }
.pendencias ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; line-height: 1.4; }
.pendencias li { display: flex; gap: 9px; padding: 10px 0; }
.pendencias li + li { border-top: 1px solid var(--fio); }
.pendencias li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.pendencias strong { font-weight: 800; }
.pendencias .sub { color: var(--tinta-2); }
.pendencias .mais { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: var(--tinta-2); }
.vazio-curto { margin: 12px 0 4px; font-size: 13.5px; color: var(--tinta-2); }

/* ---------- gráfico de meses ---------- */
.meses { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; padding: 20px; }
.barras { display: grid; gap: 14px; align-items: end; height: 212px; border-bottom: 1.5px solid var(--contorno); }
.barra-col { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
.barra-rotulo { font-size: 12.5px; font-weight: 700; text-align: center; margin-bottom: 5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.barra-fat { border-radius: 10px 10px 0 0; background: var(--barra-fundo, var(--suave-fundo)); display: flex; align-items: flex-end; }
.barra-luc { width: 100%; border-radius: 10px 10px 0 0; background: var(--tinta); }
.barra-parcial { box-sizing: border-box; border: 1.5px dashed var(--tracejado); border-bottom: 0; border-radius: 10px 10px 0 0; display: flex; align-items: flex-end; }
.barra-hachura { width: 100%; border-radius: 8px 8px 0 0; background: repeating-linear-gradient(135deg, var(--tinta) 0 3px, transparent 3px 7px); }
.barras-meses { display: grid; gap: 14px; margin-top: 8px; font-size: 13px; font-weight: 600; text-align: center; color: var(--tinta-2); }
.pilula-mes { display: inline-block; padding: 0 9px; border-radius: 999px; background: var(--tinta); color: var(--painel); font-weight: 800; }
.legenda { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--tinta-2); }
.legenda i { display: inline-block; width: 12px; height: 12px; margin-right: 5px; border-radius: 4px; vertical-align: -1px; }
.legenda .l-fat { background: var(--barra-fundo, var(--suave-fundo)); }
.legenda .l-luc { background: var(--tinta); }
.legenda .l-parc { border: 1.5px dashed var(--tracejado); }
.legenda span { white-space: nowrap; margin-right: 10px; }

/* ---------- tabelas ---------- */
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tabela th, .tabela td { white-space: nowrap; }
.tabela thead th { padding: 6px 0 8px; font-size: 12.5px; font-weight: 800; color: var(--tinta-2); text-align: right; }
.tabela thead th:first-child { text-align: left; }
.tabela thead th.th-conv { white-space: normal; min-width: 0; max-width: 6em; line-height: 1.2; vertical-align: bottom; }
/* Respiro entre colunas: sem isto os títulos encostavam um no outro nas tabelas estreitas (print do dono, 11/11/2026). */
.tabela th + th, .tabela th + td, .tabela td + td { padding-left: 14px; }
.tabela thead tr { border-bottom: 1px solid var(--contorno); }
.tabela tbody th { padding: 9px 0; text-align: left; font-weight: 600; }
.tabela tbody td { padding: 9px 0; text-align: right; }
.tabela tbody tr + tr { border-top: 1px solid var(--fio); }
.tabela tr.destaque th, .tabela tr.destaque td { font-weight: 800; }
.tabela-nota { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--tinta-2); }

.rolagem { overflow-x: auto; }
.tabela-larga { padding: 6px 6px 4px; overflow: hidden; }
.tabela-larga .tabela thead th { padding: 10px 14px; }
.tabela-larga .tabela tbody th { padding: 12px 14px 12px 16px; font-weight: 800; }
.tabela-larga .tabela tbody td { padding: 12px 14px; }
.tabela-larga .tabela tbody tr { border-top: 1px solid var(--fio); }
.tabela-larga .tabela tbody tr.total { border-top: 1px solid var(--contorno); }
.tabela-larga .tabela tbody tr.total th, .tabela-larga .tabela tbody tr.total td { font-weight: 800; }
td.forte { font-weight: 800; }
td.c-vence { color: var(--vence-texto); font-weight: 800; }
td.c-vencido { color: var(--vencido-texto); font-weight: 800; }
.th-ponto { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; }
.rodape-tabela { padding: 8px 16px 12px; font-size: 13px; line-height: 1.5; color: var(--tinta-2); border-top: 1px solid var(--fio); }

/* selo de servidor */
.chip-srv { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 9px; border-radius: 999px; font-size: 13.5px; font-weight: 800; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.chip-srv::before { content: ''; width: 9px; height: 9px; flex: none; border-radius: 3px; background: var(--srv-ponto); }
.chip-srv { background: var(--srv-fundo); color: var(--srv-texto); }
.chip-srv.neutro { --srv-fundo: var(--neutro-fundo); --srv-texto: var(--tinta); --srv-ponto: var(--neutro-ponto); }
.chip-obs { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--tinta-2); }

/* ---------- funil ---------- */
.funil { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 18px 20px 20px; }
.funil-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; }
.funil-linha strong { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.funil-trilho { height: 12px; margin-top: 7px; border-radius: 999px; background: var(--suave-fundo); overflow: hidden; }
.funil-trilho.vazio { background: transparent; border: 1.5px dashed var(--contorno); }
.funil-trilho div { height: 100%; border-radius: 999px; }
.funil-nota { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--tinta-2); }

/* ---------- botões ---------- */
.botao { height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--botao); color: var(--botao-texto); font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.botao.discreto { height: 34px; padding: 0 12px; background: var(--suave-fundo); color: var(--tinta); font-size: 13px; font-weight: 700; }
.botao.discreto:hover { background: var(--poco-hover); }
.botao:disabled { opacity: 0.55; cursor: default; }
.botao:focus-visible, .seletor-mes button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--s0-ponto); outline-offset: 2px; }

/* ---------- telas de estado ---------- */
.centro { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.caixa { width: 100%; max-width: 400px; padding: 28px; }
.caixa h1 { margin: 14px 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.caixa p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.5; color: var(--tinta-2); }
.campo { display: block; margin-bottom: 12px; }
.campo span { display: block; margin-bottom: 5px; font-size: 12.5px; font-weight: 600; color: var(--tinta-2); }
.campo input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid transparent; border-radius: 12px; background: var(--poco); color: var(--tinta); font-size: 15px; }
.campo input:hover { background: var(--poco-hover); }
.erro-form { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--vencido-fundo); color: var(--vencido-texto); font-size: 13.5px; font-weight: 700; }
.estado { padding: 40px 24px; text-align: center; }
.estado h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.estado p { margin: 0 0 16px; font-size: 14px; color: var(--tinta-2); }
.carregando .esqueleto { height: 92px; border-radius: 20px; background: var(--cartao); opacity: 0.7; animation: pulsa 1.4s ease-in-out infinite; }
.carregando .esqueleto + .esqueleto { margin-top: 18px; }
@keyframes pulsa { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .carregando .esqueleto { animation: none; } }

/* ---------- financeiro ---------- */
.dias { display: grid; gap: 3px; align-items: end; height: 150px; border-bottom: 1.5px solid var(--contorno); }
.dia-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.dia-barra { border-radius: 4px 4px 0 0; background: var(--tinta); min-height: 0; }
.dia-barra.hoje { background: repeating-linear-gradient(135deg, var(--tinta) 0 3px, transparent 3px 6px); border: 1.5px solid var(--tinta); border-bottom: 0; }
.dias-eixo { display: grid; gap: 3px; margin-top: 6px; font-size: 11.5px; font-weight: 600; color: var(--tinta-2); text-align: center; }
.duas-colunas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.bloco { padding: 18px 20px; }
.bloco h3 { margin: 0 0 10px; font-size: 15px; font-weight: 800; }

/* ---------- régua ---------- */
.aviso-sombra { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 20px; background: var(--teste-fundo); color: var(--teste-texto); font-size: 14px; line-height: 1.5; font-weight: 600; }
.aviso-sombra strong { font-weight: 800; }
.aviso-sombra .ponto { margin-top: 7px; background: var(--teste-ponto); }
.jornada { padding: 0 20px; }
.jornada + .jornada { border-top: 1px solid var(--fio); }
.jornada summary { list-style: none; display: grid; grid-template-columns: 210px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 0; cursor: pointer; }
.jornada summary::-webkit-details-marker { display: none; }
.jornada .quando { font-size: 13px; font-weight: 700; color: var(--tinta-2); }
.jornada .nome { font-size: 15px; font-weight: 800; }
.jornada .qtd { font-size: 12.5px; font-weight: 600; color: var(--tinta-2); white-space: nowrap; }
.jornada .seta { width: 20px; text-align: center; color: var(--tinta-2); transition: transform 0.15s; }
.jornada[open] .seta { transform: rotate(90deg); }
.selo { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.selo::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.selo.teste { background: var(--teste-fundo); color: var(--teste-texto); }
.selo.vence { background: var(--vence-fundo); color: var(--vence-texto); }
.selo.neutro { background: var(--neutro-fundo); color: var(--neutro-texto); }
.selo.ok { background: var(--ok-fundo); color: var(--ok-texto); }
.selo.vencido { background: var(--vencido-fundo); color: var(--vencido-texto); }
.variacoes { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.variacoes li { padding: 10px 12px; border-radius: 12px; background: var(--poco); font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.variacoes .caso { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 800; color: var(--tinta-2); }
.variacoes li.inativa { opacity: 0.55; }
.hoje-regua { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- telas menores ---------- */
@media (max-width: 1180px) {
  .principal { padding: 26px 24px 40px; }
  .grade-topo { grid-template-columns: minmax(0, 1fr); }
  .meses { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .moldura { flex-direction: column; }
  .nav { position: static; height: auto; flex: none; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; }
  .marca { padding: 0 10px 0 4px; }
  .nav-item { min-height: 36px; font-size: 14px; }
  .nav-item.desligado { display: none; }
  .nav-pe { margin: 0 0 0 auto; padding: 0; border: 0; flex-direction: row; align-items: center; }
  .nav-pe .quem { display: none; }
  .principal { padding: 20px 16px 36px; }
  .faixa { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faixa > div:nth-child(3) { border-left: 0; }
  .faixa > div:nth-child(n + 3) { border-top: 1px solid var(--fio); }
  .funil, .duas-colunas, .hoje-regua { grid-template-columns: minmax(0, 1fr); }
  .jornada summary { grid-template-columns: minmax(0, 1fr) auto; }
  .jornada .quando { grid-column: 1 / -1; }
  .jornada .qtd, .jornada .seta { display: none; }
}

/* ---------- clientes e pendências ---------- */
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.filtros { margin-top: 22px; padding: 16px 18px 18px; display: grid; gap: 14px; }
.filtros-linha { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; }
.busca { position: relative; flex: 1 1 320px; min-width: 240px; }
.busca svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--tinta-2); pointer-events: none; }
.busca input { width: 100%; height: 42px; padding: 0 12px 0 40px; border: 1px solid transparent; border-radius: 12px; background: var(--poco); color: var(--tinta); font-size: 15px; }
.busca input::placeholder { color: var(--tinta-2); opacity: 1; }
.busca input:hover, .campo-sel select:hover { background: var(--poco-hover); }
.campo-sel span { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; color: var(--tinta-2); }
.campo-sel select { height: 42px; max-width: 240px; padding: 0 10px; border: 1px solid transparent; border-radius: 12px; background: var(--poco); color: var(--tinta); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.botao.alto { height: 42px; }
.check { display: inline-flex; align-items: center; gap: 8px; height: 42px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--botao); cursor: pointer; }
.busca input:focus-visible, .campo-sel select:focus-visible, .check input:focus-visible, .chip:focus-visible, .link-nome:focus-visible, .fechar:focus-visible { outline: 2px solid var(--s0-ponto); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px; border: 0; border-radius: 999px; background: var(--suave-fundo); color: var(--tinta); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.chip:hover { background: var(--poco-hover); }
.chip[aria-pressed='true'] { background: var(--botao); color: var(--botao-texto); }
.chip .n { font-weight: 800; font-variant-numeric: tabular-nums; opacity: 0.8; }
.chip .ponto { margin: 0; }

.lista-cli { margin-top: 16px; padding: 6px 6px 0; overflow: hidden; }
#c-lista { transition: opacity 0.12s; }
#c-lista > .estado { margin-top: 16px; }
#c-lista.ocupada { opacity: 0.55; pointer-events: none; }
.tabela-cli { table-layout: auto; }
.tabela-cli thead th { padding: 10px 10px; }
.tabela-cli tbody th, .tabela-cli tbody td { padding: 12px 10px; }
.tabela-cli tbody th { font-weight: 800; }
.tabela-cli tbody tr + tr { border-top: 1px solid var(--fio); }
.tabela th.e, .tabela td.e { text-align: left; }
.tabela td.quebra { white-space: normal; min-width: 240px; max-width: 460px; }
.linha-cli.clicavel { cursor: pointer; }
.linha-cli.clicavel:hover { background: var(--poco); }
.cel-nome { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.link-nome { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 800; text-align: left; cursor: pointer; min-width: 0; }
.link-nome:hover .nome-cli { text-decoration: underline; text-underline-offset: 3px; }
.nome-cli { display: block; max-width: clamp(110px, 12vw, 300px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marca-pend { margin-top: 0; flex: none; }
.plano-cli { display: block; max-width: clamp(90px, 9vw, 260px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabela-cli .chip-srv { max-width: clamp(100px, 9vw, 200px); }
.titulo-pend { display: block; font-weight: 700; }
.sub-pend { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--tinta-2); }
.paginacao { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px -6px 0; padding: 12px 20px 14px; border-top: 1px solid var(--fio); font-size: 13.5px; font-weight: 600; color: var(--tinta-2); }
.paginacao .botoes { display: inline-flex; align-items: center; gap: 10px; }
.nota-leitura { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 14px 18px; border-radius: 20px; background: var(--suave-fundo); font-size: 14px; line-height: 1.5; color: var(--tinta); }
.nota-leitura .ponto { margin-top: 7px; }
.nota-leitura strong { font-weight: 800; }

/* ---------- painel lateral da ficha ---------- */
html.painel-aberto body { overflow: hidden; }
.painel-fundo { position: fixed; inset: 0; z-index: 30; background: rgba(21, 23, 31, 0.4); }
.painel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 31; width: min(500px, 100vw); display: flex; flex-direction: column; background: var(--cartao); border-left: 1px solid var(--contorno); box-shadow: -10px 0 36px rgba(21, 23, 31, 0.22); animation: painel-entra 0.18s ease-out; }
@keyframes painel-entra { from { transform: translateX(28px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .painel { animation: none; } }
.painel-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--fio); }
.painel-rotulo { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; color: var(--tinta-2); }
.painel-topo h2 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.fechar { width: 38px; height: 38px; flex: none; border: 0; border-radius: 50%; background: var(--suave-fundo); color: var(--tinta); font-size: 22px; line-height: 1; cursor: pointer; }
.fechar:hover { background: var(--poco-hover); }
.painel-corpo { flex: 1; overflow-y: auto; padding: 4px 22px 28px; }
.painel h3 { margin: 24px 0 8px; font-size: 13px; font-weight: 800; color: var(--tinta-2); }
.painel h3.primeiro { margin-top: 18px; }
.grade-num { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--fio); border-radius: 16px; overflow: hidden; }
.grade-num > div { padding: 14px 16px; min-width: 0; }
.grade-num > div:nth-child(even) { border-left: 1px solid var(--fio); }
.grade-num > div:nth-child(n + 3) { border-top: 1px solid var(--fio); }
.grade-num dt { font-size: 13px; font-weight: 600; color: var(--tinta-2); }
.grade-num dd { margin: 0; }
.grade-num .valor { margin-top: 2px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.grade-num .nota { margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--tinta-2); }
.painel-nota { margin: 10px 0 0 2px; font-size: 13px; font-weight: 600; color: var(--tinta-2); }
.painel-rodape { margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--fio); font-size: 13px; line-height: 1.5; color: var(--tinta-2); }
.assin { padding: 14px 0; }
.assin + .assin { border-top: 1px solid var(--fio); }
.assin:first-of-type { padding-top: 4px; }
.assin-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.assin-topo strong { font-weight: 800; overflow-wrap: anywhere; }
.assin-meta { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin: 10px 0 12px; font-size: 13.5px; font-weight: 600; color: var(--tinta-2); }
.assin-meta span:empty { display: none; }
.acesso { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--poco); }
.acesso-tela + .acesso-tela { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--fio); }
.acesso-titulo { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; color: var(--tinta-2); }
.acesso-dl { margin: 0; display: grid; gap: 4px; }
.acesso-dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.acesso-dl dt { font-size: 13px; color: var(--tinta-2); }
.acesso-dl dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; user-select: all; }
.acesso-nota { margin: 10px 0 0; font-size: 12px; color: var(--tinta-2); }
.tabela-pag { font-size: 13.5px; }
.tabela-pag thead th { padding: 6px 8px 8px 0; }
.tabela-pag tbody th, .tabela-pag tbody td { padding: 8px 8px 8px 0; white-space: nowrap; }
.tabela-pag tbody th { font-weight: 600; }
.tabela-pag th:last-child, .tabela-pag td:last-child { padding-right: 0; }
.pend-painel { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.4; }
.pend-painel li { display: flex; gap: 9px; padding: 8px 0; }
.pend-painel li + li { border-top: 1px solid var(--fio); }
.pend-painel .ponto { margin-top: 6px; }
.pend-painel strong { font-weight: 800; }
.sub { color: var(--tinta-2); }
.fones { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.8; }

@media (max-width: 900px) {
  .filtros-linha { align-items: stretch; }
  .campo-sel select { max-width: none; width: 100%; }
  .campo-sel { flex: 1 1 160px; }
  .painel { width: 100vw; }
  .acesso-dl > div { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- régua: conferência da simulação ---------- */
.tabela-conf thead th { white-space: normal; vertical-align: bottom; line-height: 1.25; }
.tabela-conf thead th:not(.e) { min-width: 86px; }
.tabela-conf tbody td { vertical-align: middle; }
.tabela-conf td.quebra { white-space: normal; min-width: 180px; }
.tabela-conf tr.aberta { background: var(--poco); }
.conf-zero { color: var(--tinta-2); opacity: 0.75; }
.conf-dia { margin-top: 14px; padding: 18px 20px; border: 1px solid var(--borda-cartao); border-radius: 20px; background: var(--cartao); box-shadow: var(--sombra-cartao); }
.conf-dia h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.conf-frase { margin: 0 0 6px; font-size: 14.5px; font-weight: 700; line-height: 1.5; }
@media (max-width: 900px) {
  .conf-dia { padding: 16px; }
}
/* No celular a tabela mostra o que pede olho (bateu e os dois "investigar") e a situação; o resto fica no detalhe do dia. */
@media (max-width: 600px) {
  .tabela-conf:not(.tabela-conf-casos) thead th:nth-child(3), .tabela-conf:not(.tabela-conf-casos) tbody td:nth-child(3),
  .tabela-conf:not(.tabela-conf-casos) thead th:nth-child(6), .tabela-conf:not(.tabela-conf-casos) tbody td:nth-child(6),
  .tabela-conf:not(.tabela-conf-casos) thead th:nth-child(7), .tabela-conf:not(.tabela-conf-casos) tbody td:nth-child(7) { display: none; }
}
.conf-dia .tabela th, .conf-dia .tabela td { padding-right: 16px; }
.conf-dia .tabela th:last-child, .conf-dia .tabela td:last-child { padding-right: 0; }

/* ---------- a receber (fiado) ---------- */
.faixa .valor.v-vence { color: var(--vence-texto); }
.faixa .valor.v-vencido { color: var(--vencido-texto); }
.lista-receber { margin-top: 14px; }
.estado-receber { padding: 28px 24px; }
.estado-receber p { margin: 0 auto; max-width: 520px; }
.marcas-fiado { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.marca-fiado { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--neutro-fundo); color: var(--neutro-texto); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.linha-receber { margin-top: 22px; }
.linha-receber a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.painel-deve { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--suave-fundo); font-size: 14px; font-weight: 800; line-height: 1.4; }
.painel-deve .ponto { margin-top: 6px; flex: none; }
.sit-celular { display: none; }
@media (max-width: 700px) {
  .lista-receber .col-sit { display: none; }
  .lista-receber .sit-celular { display: block; margin-top: 6px; }
  .lista-receber .tabela-cli tbody th, .lista-receber .tabela-cli tbody td { padding: 12px 8px; }
  .lista-receber .nome-cli { white-space: normal; }
}
@media (max-width: 700px) {
  .lista-receber .tabela-cli tbody th { white-space: normal; }
  .lista-receber .cel-nome { white-space: normal; }
  .lista-receber .marca-fiado { height: auto; min-height: 20px; padding: 2px 8px; white-space: normal; line-height: 1.25; }
}

/* ---------- custo de migração ---------- */
.faixa > .faixa-linha { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--fio); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 14px 18px; }
.faixa-linha dt { font-size: 13px; font-weight: 600; color: var(--tinta-2); }
.faixa-linha .valor-linha { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.faixa-linha .qtd-linha { font-size: 13px; font-weight: 600; color: var(--tinta-2); }
.faixa-linha .nota-linha { margin: 0; flex: 1 1 260px; font-size: 13px; line-height: 1.4; color: var(--tinta-2); }
.sub-migracao { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 600; color: var(--tinta-2); white-space: nowrap; }

/* ---------- Produtos e planos (fatia 5, 13/11/2026; public/site/produtos.js) ---------- */
.pp-titulo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 6px 0 12px; }
.pp-titulo h2 { margin: 0; font-size: 20px; }
.pp-sub { font-size: 12.5px; font-weight: 600; color: var(--tinta-2); }
.pp-cartao { padding: 18px 20px; margin-bottom: 24px; min-width: 0; }
.pp-duas .pp-cartao { margin-bottom: 0; }
.pp-duas { margin-bottom: 24px; }
.pp-cab { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; }
.pp-cab h3 { margin: 0; font-size: 16px; }
.pp-grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.pp-in { height: 38px; padding: 0 10px; border: 1px solid transparent; border-radius: 10px; background: var(--poco); color: var(--tinta); font-size: 14px; font-family: inherit; }
.pp-in:hover { background: var(--poco-hover); }
.pp-in:focus-visible { outline: 2px solid var(--s0-ponto); outline-offset: 2px; }
.pp-in[readonly] { opacity: 0.75; cursor: not-allowed; }
.campo .pp-in { width: 100%; }
.pp-tabela td, .pp-tabela th { vertical-align: top; }
.pp-nome { width: 100%; min-width: 210px; font-weight: 700; }
.pp-tabela .pp-sub { display: block; margin-top: 4px; font-weight: 500; }
.pp-periodo { display: inline-flex; gap: 6px; }
.pp-num { width: 70px; }
.pp-valor { width: 100px; }
.pp-check { height: 38px; }
.pp-acoes { white-space: nowrap; }
.pp-acoes .botao + .botao { margin-left: 6px; }
.pp-inativo .pp-nome, .pp-inativo .pp-in { opacity: 0.6; }
.pp-novo th, .pp-novo td { padding-top: 14px; }
.pp-mais { margin-top: 12px; }
.pp-msg { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 700; }
.pp-ok { background: var(--ok-fundo); color: var(--ok-texto); }
.pp-erro { background: var(--vencido-fundo); color: var(--vencido-texto); }
@media (max-width: 720px) {
  .pp-grade { grid-template-columns: minmax(0, 1fr); }
  .pp-cartao { padding: 16px; }
}
@media (max-width: 720px) {
  .pp-tabela thead { display: none; }
  .pp-tabela, .pp-tabela tbody, .pp-tabela tr, .pp-tabela th, .pp-tabela td { display: block; width: 100%; }
  .pp-tabela tr { padding: 10px 0; border-bottom: 1px solid var(--poco); }
  .pp-tabela th, .pp-tabela td { padding: 4px 0; border: 0; }
  .pp-nome { min-width: 0; }
  .pp-acoes { white-space: normal; }
}

/* ---------- Serviços e segmentos (12/11/2026, public/site/servicos.js) ----------
   Respiro igual: 12px entre campos e linhas, 24px entre blocos, o mesmo das pp-. */
.sg-barra { display: flex; justify-content: flex-end; margin: 18px 0 12px; }
.sg-novo { padding: 18px 20px; margin-bottom: 24px; }
.sg-sub { margin: 12px 0; font-size: 14px; }
.sg-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 12px; }
.sg-cartao { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; border: 1px solid var(--fio); border-radius: 14px; background: var(--poco); color: var(--tinta); font: inherit; text-align: left; cursor: pointer; }
.sg-cartao:hover { background: var(--poco-hover); }
.sg-cartao:focus-visible { outline: 2px solid var(--s0-ponto); outline-offset: 2px; }
.sg-cartao-novo { border-style: dashed; border-color: var(--tracejado); background: transparent; }
.sg-icone { font-size: 22px; line-height: 1; }
.sg-desc { font-size: 12.5px; color: var(--tinta-2); }
.sg-selo { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--s0-fundo); color: var(--s0-texto); font-size: 11px; font-weight: 700; }
.sg-ints { display: grid; gap: 12px; margin-bottom: 12px; }
.sg-int { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--poco); }
.sg-int.ligado { background: var(--ok-fundo); }
.sg-int-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: pointer; }
.sg-int-texto span { font-size: 12.5px; color: var(--tinta-2); }
.sg-int.ligado .sg-int-texto span { color: var(--ok-texto); }
.sg-chave { flex: none; width: 20px; height: 20px; accent-color: var(--botao); cursor: pointer; }
.sg-escolha { flex: none; max-width: 52%; }
.sg-campos { display: grid; gap: 12px; margin: 0 0 12px; padding: 0; list-style: none; }
.sg-campo { display: grid; gap: 12px; padding: 12px; border-radius: 12px; background: var(--poco); }
.sg-campo .pp-in { background: var(--cartao); }
.sg-campo-linha { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; }
.sg-campo-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sg-campo-acoes .check { height: 34px; }
.sg-mover { display: inline-flex; gap: 6px; margin-left: auto; }
.sg-opcoes { margin-bottom: 0; }
textarea.pp-in { height: auto; min-height: 120px; padding: 10px; line-height: 1.45; resize: vertical; }
.sg-opcoes textarea { min-height: 0; padding: 8px 10px; }
.sg-acrescentar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.sg-botoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
@media (max-width: 720px) {
  .sg-novo { padding: 16px; }
  .sg-campo-linha { grid-template-columns: minmax(0, 1fr); }
  .sg-int { flex-wrap: wrap; }
  .sg-escolha { max-width: 100%; width: 100%; }
  .sg-mover { margin-left: 0; }
}

/* Ponto da loja no menu (pedidos novos e Pix a conferir): public/site/loja.js pontoDoMenu */
.nav-ponto { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px; border-radius: 999px; background: var(--vence-fundo); color: var(--vence-texto); box-shadow: inset 0 0 0 1px var(--vence-ponto); font-size: 11.5px; font-weight: 800; line-height: 1; vertical-align: 1px; font-variant-numeric: tabular-nums; }
.barra-item { position: relative; }
.barra-item .nav-ponto { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; }

/* B5: no celular as tabelas por mês mostram os 3 meses mais novos; o botão abre os outros. No computador a tabela segue inteira. */
.ver-meses { display: none; margin: 10px 0 0; }
@media (max-width: 720px) {
  .ver-meses { display: inline-flex; }
  .meses-recolhiveis:not(.mostra-tudo) .mes-antigo { display: none !important; }
}
