:root {
  /* Identidade visual NOC ON */
  --noc-cinza: #414042;   /* principal: C0 M0 Y0 K90 */
  --noc-verde: #00a77e;   /* principal: C100 M0 Y70 K0 */
  --noc-lima: #bfd730;    /* auxiliar: C30 M0 Y100 K0 */

  --fundo: #f4f7f5;
  --cartao: #ffffff;
  --texto: #2f2f31;
  --sutil: #5f6062;
  --borda: #e1e7e3;
  --primaria: #007a5c;        /* verde NOC escurecido: texto branco legível nos botões */
  --primaria-escura: #00664d;
  --acento: var(--noc-lima);
  --ok: #007a5c;
  --medio: #b26b00;
  --ruim: #c83c3c;
  --ok-fundo: #e3f5ee;
  --aviso-fundo: #f6f9dc;
  --erro-fundo: #fdecec;
  --raio: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--primaria); }
h1 { color: var(--noc-cinza); font-size: 1.55rem; line-height: 1.25; margin: .2rem 0 .6rem; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 .7rem; }
.cartao > h2:first-child, .cartao > h1:first-child { margin-top: 0; }
code { background: #edf3ef; padding: .1rem .35rem; border-radius: 5px; font-size: .92em; }

.topo { background: #fff; border-bottom: 4px solid var(--noc-verde); }
.topo-in { max-width: 1120px; margin: 0 auto; padding: .7rem 16px; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center; justify-content: space-between; }
.marca { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--noc-cinza); }
.marca img { height: 58px; width: auto; display: block; }
.marca-sub { font-weight: 700; font-size: 1.05rem; color: var(--noc-cinza); padding-left: .8rem; border-left: 2px solid var(--noc-lima); line-height: 1.2; position: relative; top: 7px; } /* alinha com o texto "Noc ON", que fica abaixo do centro do logo */
.topo nav { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.topo nav a { color: var(--noc-cinza); text-decoration: none; font-weight: 600; }
.topo nav a:hover { color: var(--primaria); text-decoration: underline; text-decoration-color: var(--noc-lima); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.conteudo { max-width: 1120px; margin: 0 auto; padding: 1.5rem 16px 3rem; }
.rodape { text-align: center; color: var(--sutil); font-size: .82rem; padding: 1rem 16px 2rem; }

.cartao { background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1.4rem; margin-bottom: 1.2rem; box-shadow: 0 1px 2px rgba(20, 30, 60, .04); }
.cartao.estreito, .cartao.login { max-width: 460px; margin-left: auto; margin-right: auto; }
.cartao.login { margin-top: 2rem; }
.cartao.destaque { border-color: var(--noc-verde); border-width: 2px; }
.grade { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.2rem; align-items: start; }
.grade > .cartao { margin-bottom: 0; }
.grade + .cartao, .grade + section { margin-top: 1.2rem; }
.sutil { color: var(--sutil); }
.pequeno { font-size: .86rem; }

label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 1rem; }
input, select, textarea { display: block; width: 100%; margin-top: .35rem; font: inherit; font-weight: 400; color: var(--texto); background: #fff; border: 1px solid #cfd4e0; border-radius: 10px; padding: .65rem .8rem; }
input[type=file] { padding: .5rem; }
textarea { resize: vertical; font-family: Merriweather, Georgia, serif; font-size: .98rem; line-height: 1.75; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primaria); outline-offset: 1px; border-color: var(--primaria); }
.linha-form { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.botao { display: inline-block; border: 0; border-radius: 10px; background: var(--primaria); color: #fff; font: inherit; font-weight: 600; padding: .7rem 1.3rem; cursor: pointer; text-decoration: none; }
.botao:hover { background: var(--primaria-escura); }
.botao:disabled { opacity: .6; cursor: wait; }
.botao-sec { background: #edf3ef; color: var(--texto); }
.botao-sec:hover { background: #dfe9e3; }
.link { background: none; border: 0; padding: 0; color: var(--primaria); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: underline; }
.link.perigo { color: var(--ruim); }

.alerta { border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; }
.alerta-ok { background: var(--ok-fundo); }
.alerta-aviso { background: var(--aviso-fundo); }
.alerta-erro { background: var(--erro-fundo); }

.historico { list-style: none; margin: 0; padding: 0; }
.historico li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .75rem 0; border-top: 1px solid var(--borda); }
.historico li:first-child { border-top: 0; }
.historico a { text-decoration: none; color: inherit; min-width: 0; }
.h-tema { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.h-meta { display: block; color: var(--sutil); font-size: .84rem; }
.nota { font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.nota small { font-size: .7em; font-weight: 500; color: var(--sutil); }
.nota-alta { color: var(--ok); }
.nota-media { color: var(--medio); }
.nota-baixa { color: var(--ruim); }
.selo { display: inline-block; background: #edf3ef; color: var(--sutil); font-size: .8rem; font-weight: 600; padding: .15rem .55rem; border-radius: 99px; white-space: nowrap; }
.selo-erro { background: var(--erro-fundo); color: var(--ruim); }

.cab-redacao { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.nota-grande { font-size: 2.6rem; font-weight: 700; line-height: 1; text-align: right; white-space: nowrap; }
.nota-grande small { font-size: .4em; color: var(--sutil); font-weight: 500; }
.resumo { font-size: 1.05rem; background: #f3faf7; border-left: 4px solid var(--noc-verde); padding: .9rem 1rem; border-radius: 0 10px 10px 0; }
.estado { text-align: center; padding: 1.5rem 0; }
.giro { width: 38px; height: 38px; margin: 0 auto .8rem; border: 4px solid #dcefe7; border-top-color: var(--noc-verde); border-radius: 50%; animation: giro 1s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }

.criterios { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.criterio { border: 1px solid var(--borda); border-radius: 12px; padding: 1rem; }
.criterio p { margin: .5rem 0 0; }
.criterio-topo { display: flex; justify-content: space-between; gap: .5rem; }
.criterio-nota { font-weight: 700; }
.barra { height: 8px; background: #e6eee9; border-radius: 99px; margin-top: .5rem; overflow: hidden; }
.barra-in { height: 100%; border-radius: 99px; }
.barra-in.nota-alta { background: var(--ok); }
.barra-in.nota-media { background: var(--medio); }
.barra-in.nota-baixa { background: var(--ruim); }

.duas-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.lista-ok li::marker { color: var(--ok); }
.lista-melhorar li::marker { color: var(--medio); }
.duas-colunas li { margin-bottom: .4rem; }
.trechos { display: grid; gap: .8rem; }
.trecho { border: 1px solid var(--borda); border-radius: 12px; padding: .9rem 1rem; }
.trecho p { margin: .3rem 0; }
.trecho-original { font-family: Merriweather, Georgia, serif; background: var(--erro-fundo); padding: .4rem .6rem; border-radius: 8px; }
.trecho-sugestao { background: var(--ok-fundo); padding: .4rem .6rem; border-radius: 8px; }
.proximo { margin-top: 1.4rem; background: var(--aviso-fundo); border-left: 4px solid var(--noc-lima); border-radius: 10px; padding: .9rem 1rem; }
.texto-redacao { font-family: Merriweather, Georgia, serif; line-height: 1.85; white-space: normal; overflow-wrap: anywhere; }

.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.2rem; }
.numero { background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1rem 1.2rem; }
.numero strong { color: var(--primaria); display: block; font-size: 1.8rem; line-height: 1.1; }
.numero span { color: var(--sutil); font-size: .88rem; }
.filtros { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.filtros input, .filtros select { width: auto; flex: 1 1 200px; margin: 0; }
.tabela-rolagem { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--borda); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--sutil); }
tr.inativo td { opacity: .55; }
.acoes { white-space: nowrap; }
.acoes form { display: inline; margin-left: .6rem; }

@media (max-width: 820px) {
  .grade, .duas-colunas { grid-template-columns: 1fr; }
  .grade > .cartao { margin-bottom: 0; }
  .numeros { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
  .numero { padding: .7rem; }
  .numero strong { font-size: 1.35rem; }
  .cartao { padding: 1.1rem; }
  .cab-redacao { flex-direction: column; }
  .nota-grande { text-align: left; }
  .criterios { grid-template-columns: 1fr; }
}

.politica { max-width: 820px; margin-left: auto; margin-right: auto; }
.politica ul { padding-left: 1.3rem; }
.politica li { margin-bottom: .35rem; }
.rodape a { color: var(--sutil); }
.selo-revisada { display: block; margin-top: .4rem; background: var(--ok-fundo); color: var(--ok); font-size: .75rem; text-align: center; }
.argumento { background: #f3faf7; border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; }
.resultado-revisao { font-size: 1.08rem; }
tr.mudou td { background: var(--ok-fundo); }

/* Envio por foto */
[hidden] { display: none !important; }
.abas { display: flex; gap: .4rem; background: #edf3ef; padding: .3rem; border-radius: 12px; margin-bottom: 1.1rem; }
.aba { flex: 1; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--sutil); padding: .6rem .5rem; border-radius: 9px; cursor: pointer; }
.aba.ativa { background: #fff; color: var(--primaria); box-shadow: 0 1px 3px rgba(20, 30, 60, .12); }
.previas { display: flex; flex-wrap: wrap; gap: .6rem; margin: -.4rem 0 .8rem; }
.previas figure { margin: 0; width: 96px; }
.previas img { width: 96px; height: 128px; object-fit: cover; border-radius: 8px; border: 1px solid var(--borda); display: block; }
.previas figcaption { font-size: .78rem; color: var(--sutil); text-align: center; margin-top: .2rem; }
.dicas { margin: 0 0 1rem; padding-left: 1.1rem; }
.dicas li { margin-bottom: .2rem; }
.selo-acao { background: var(--noc-lima); color: var(--noc-cinza); }
.conferir { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.conferir-fotos img, .fotos-redacao img { width: 100%; border-radius: 10px; border: 1px solid var(--borda); display: block; margin-bottom: .6rem; }
.conferir-fotos { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
.fotos-redacao { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.transcricao-original { margin-top: 1.2rem; background: var(--aviso-fundo); border-radius: 10px; padding: .8rem 1rem; }
.transcricao-original summary { cursor: pointer; font-weight: 600; }
@media (max-width: 820px) {
  .conferir { grid-template-columns: 1fr; }
  .conferir-fotos { position: static; max-height: none; }
}

@media (max-width: 560px) {
  .marca img { height: 40px; }
  .marca-sub { font-size: .92rem; padding-left: .6rem; top: 5px; }
}

/* Conferência da transcrição: trechos a verificar */
.editor { min-height: 22rem; max-height: 70vh; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-family: Merriweather, Georgia, serif; font-size: .98rem; line-height: 1.9; border: 1px solid #cfd8d2; border-radius: 10px; padding: .8rem 1rem; background: #fff; margin: .4rem 0 1rem; }
.editor:focus { outline: 2px solid var(--primaria); outline-offset: 1px; }
.editor-topo { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .93rem; }
.pendentes { font-size: .85rem; font-weight: 700; color: var(--ruim); background: var(--erro-fundo); padding: .15rem .6rem; border-radius: 99px; }
.pendentes.ok { color: var(--ok); background: var(--ok-fundo); }
.trecho { border-radius: 4px; padding: 0 .12em; cursor: pointer; transition: background .15s; }
.trecho.duvida { background: #fde2e2; color: #a61b1b; box-shadow: inset 0 -2px 0 #d64545; }
.trecho.ilegivel { background: #d64545; color: #fff; font-family: Inter, system-ui, sans-serif; font-size: .85em; font-weight: 700; }
.trecho.conferido { background: var(--ok-fundo); color: inherit; box-shadow: inset 0 -2px 0 var(--noc-verde); cursor: text; }
.trecho.exemplo { cursor: default; }
.texto-redacao .trecho { cursor: default; }
.botao:disabled { background: #9fb3aa; }
.rejeicao { text-align: left; max-width: 640px; margin: 0 auto 1rem; background: var(--erro-fundo); border-left: 4px solid var(--ruim); border-radius: 0 10px 10px 0; padding: .9rem 1.1rem; line-height: 1.7; }
.fotos-mini { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); max-width: 640px; margin: 1rem auto 0; }

/* Temas da semana */
.sem-tema { background: var(--aviso-fundo); border-left: 4px solid var(--noc-lima); border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; }
.sem-tema p { margin: .5rem 0 0; }
.temas-abertos { border: 0; padding: 0; margin: 0 0 1rem; }
.temas-abertos legend { font-weight: 600; font-size: .93rem; margin-bottom: .4rem; padding: 0; }
.tema-card { display: flex; gap: .7rem; align-items: flex-start; border: 1px solid var(--borda); border-radius: 12px; padding: .8rem 1rem; margin: 0 0 .6rem; font-weight: 400; cursor: pointer; background: #fff; }
.tema-card:has(input:checked) { border-color: var(--noc-verde); box-shadow: 0 0 0 2px var(--ok-fundo); }
.tema-card.unico { cursor: default; border-left: 4px solid var(--noc-verde); }
.tema-card input[type=radio] { width: auto; margin-top: .3rem; accent-color: var(--primaria); }
.tema-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.tema-titulo { font-weight: 700; font-size: 1.05rem; color: var(--noc-cinza); }
.tema-meta { font-size: .86rem; color: var(--sutil); }
.proposta { margin-top: .4rem; font-size: .92rem; }
.proposta summary { cursor: pointer; color: var(--primaria); font-weight: 600; }
.proposta div { margin-top: .5rem; padding: .7rem .9rem; background: #f3faf7; border-radius: 8px; line-height: 1.65; max-height: 50vh; overflow-y: auto; }
.lista-temas { list-style: none; margin: 0; padding: 0; }
.lista-temas li { display: flex; flex-direction: column; gap: .2rem; padding: .85rem 0; border-top: 1px solid var(--borda); }
.lista-temas li:first-child { border-top: 0; padding-top: 0; }
.lista-temas .acoes { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .2rem; }
.lista-temas .acoes form { margin: 0; }
.tema-cab { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.selo-aberto { background: var(--ok-fundo); color: var(--ok); }
.selo-agendado { background: var(--aviso-fundo); color: #6b6f00; }
.selo-encerrado { background: #eceeed; color: var(--sutil); }
.linha-form h1 { margin: 0; }
.topo nav a + a { margin-left: 0; }

/* Coordenação: abas, turmas, lote */
.admin-abas { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 2px solid var(--borda); margin: 0 0 1.3rem; }
.admin-abas a { padding: .65rem 1.1rem; text-decoration: none; color: var(--sutil); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.admin-abas a:hover { color: var(--primaria); }
.admin-abas a.ativa { color: var(--primaria); border-bottom-color: var(--noc-verde); }
.modos, .turmas-escolha { border: 0; padding: 0; margin: 0 0 1rem; }
.modos legend, .turmas-escolha legend { font-weight: 600; font-size: .93rem; margin-bottom: .4rem; padding: 0; }
.modo-card { display: flex; gap: .7rem; align-items: flex-start; border: 1px solid var(--borda); border-radius: 12px; padding: .75rem .9rem; margin-bottom: .5rem; font-weight: 400; cursor: pointer; }
.modo-card:has(input:checked) { border-color: var(--noc-verde); box-shadow: 0 0 0 2px var(--ok-fundo); }
.modo-card input { width: auto; margin-top: .25rem; accent-color: var(--primaria); }
.modo-card > span { display: flex; flex-direction: column; gap: .15rem; }
label.check { display: flex; align-items: center; gap: .5rem; font-weight: 400; margin-bottom: .5rem; }
label.check input { width: auto; margin: 0; accent-color: var(--primaria); }
.lista-turmas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .1rem .8rem; padding: .6rem .8rem; border: 1px solid var(--borda); border-radius: 10px; }
.lista-turmas.desativada { opacity: .45; }
.lote { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: #f3faf7; border-radius: 10px; padding: .6rem .8rem; margin-bottom: .8rem; }
.lote select { width: auto; margin: 0; flex: 0 1 240px; }
.lote #n-sel { flex: 1 1 100%; }
td input[type=checkbox], th input[type=checkbox] { width: auto; margin: 0; accent-color: var(--primaria); }
.selo-livre { background: var(--noc-lima); color: var(--noc-cinza); }
.livre-campos { display: block; margin-top: .6rem; }
.livre-campos label { margin-bottom: .6rem; }
.filtro-inline select { margin: 0; width: auto; }
.linha-form h2 { margin: 0; }
li.inativo { opacity: .6; }
@media (min-width: 821px) { .lote #n-sel { flex: 0 0 auto; margin-right: auto; } }
.lista-temas .acoes { align-items: baseline; }
.lista-temas .acoes .link, .lista-temas .acoes a { font-size: .88rem; line-height: 1.4; }

/* Tipo de turma */
.tipos { display: flex; flex-wrap: wrap; gap: .5rem; }
.tipo-opcao { display: flex; align-items: center; gap: .45rem; border: 1px solid var(--borda); border-radius: 99px; padding: .45rem .9rem; margin: 0; font-weight: 600; cursor: pointer; }
.tipo-opcao:has(input:checked) { border-color: var(--noc-verde); background: var(--ok-fundo); color: var(--primaria); }
.tipo-opcao input { width: auto; margin: 0; accent-color: var(--primaria); }
.bloco-tipo { border-left: 3px solid var(--noc-lima); padding: .2rem 0 .1rem .9rem; margin: -.2rem 0 1rem; }
.sub-bloco { background: #f7faf8; border-radius: 10px; padding: .8rem .9rem .1rem; margin-bottom: .8rem; }
.selo-tipo-noc_on { background: #e6f4ef; color: var(--primaria); }
.selo-tipo-presencial { background: #eceeed; color: var(--noc-cinza); }
.selo-tipo-parceira { background: #f0f5d4; color: #5b6600; }
.cartao h3 { font-size: 1rem; margin: 1.4rem 0 .6rem; }

/* PDF dos temas */
.visor-pdf { margin-top: 1rem; background: #e9eeeb; border-radius: 10px; padding: .6rem; }
.visor-pdf .pagina-pdf { display: block; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); margin: 0 auto .6rem; border-radius: 2px; }
.visor-iframe { width: 100%; height: 80vh; border: 0; background: #fff; border-radius: 6px; }
.anexo-link { display: inline-flex; gap: .8rem; flex-wrap: wrap; margin-top: .35rem; font-size: .9rem; font-weight: 600; }
.anexo-atual { background: #f3faf7; border-radius: 8px; padding: .6rem .8rem; }
.anexo-atual label.check { margin: .4rem 0 .2rem; }

/* Dashboard */
.filtros-dash { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .2rem .8rem; background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1rem 1.1rem .2rem; margin-bottom: 1.2rem; }
.filtros-dash label { font-size: .82rem; margin-bottom: .8rem; }
.filtros-dash input, .filtros-dash select { padding: .5rem .6rem; font-size: .9rem; }
.filtros-dash label.dest { color: var(--primaria); }
.filtros-acoes { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.numeros-4 { grid-template-columns: repeat(4, 1fr); }
.barras { display: flex; flex-direction: column; gap: .15rem; margin-top: .6rem; }
.barra-linha { display: grid; grid-template-columns: minmax(120px, 30%) 1fr 92px; gap: .8rem; align-items: center; padding: .35rem .3rem; border-radius: 8px; }
.barra-linha:hover { background: #f3faf7; }
.barra-rotulo { font-size: .9rem; color: var(--texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra-trilho { position: relative; height: 14px; background: #edf1ef; border-radius: 4px; }
.barra-valor { position: absolute; left: 0; top: 0; bottom: 0; background: var(--noc-verde); border-radius: 0 4px 4px 0; }
.barra-media { position: absolute; top: -4px; bottom: -4px; border-left: 2px dashed var(--noc-cinza); opacity: .55; }
.barra-num { font-weight: 700; font-size: .95rem; color: var(--texto); text-align: right; white-space: nowrap; }
.barra-num small { display: block; font-weight: 400; font-size: .75rem; color: var(--sutil); }
.grafico-linha svg { width: 100%; height: auto; display: block; }
.grafico-linha .grade-linha { stroke: #e6ebe8; stroke-width: 1; }
.grafico-linha .eixo { fill: var(--sutil); font-size: 12px; font-family: Inter, system-ui, sans-serif; }
.grafico-linha .serie { fill: none; stroke: var(--noc-verde); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.grafico-linha circle { fill: var(--noc-verde); stroke: #fff; stroke-width: 2; }
.grafico-linha .alvo { fill: transparent; }
.grafico-linha .ponto:hover circle { r: 6.5; }
.grafico-linha .rotulo-final { fill: var(--texto); font-size: 13px; font-weight: 700; font-family: Inter, system-ui, sans-serif; }
.tabela-dash td, .tabela-dash th { text-align: center; white-space: nowrap; }
.tabela-dash td:first-child, .tabela-dash th:first-child { text-align: left; white-space: normal; }
.celula-calor { font-weight: 600; border: 2px solid #fff; border-radius: 6px; }
.linha-total td { border-top: 2px solid var(--borda); font-weight: 600; background: #f7faf8; }
.destaque-dash { margin: 1rem 0 0; background: var(--aviso-fundo); border-left: 4px solid var(--noc-lima); border-radius: 0 10px 10px 0; padding: .7rem 1rem; }
@media (max-width: 820px) {
  .numeros-4 { grid-template-columns: 1fr 1fr; }
  .barra-linha { grid-template-columns: 1fr 70px; }
  .barra-rotulo { grid-column: 1 / -1; white-space: normal; }
}
.lista-temas .acoes { gap: .35rem .9rem; }
.lista-temas .acoes form { margin-left: 0; }

/* Acesso dos colaboradores */
.acesso { border: 1px solid var(--borda); border-radius: 12px; padding: .9rem 1rem .4rem; margin: 0 0 1rem; }
.acesso legend { font-weight: 700; font-size: .93rem; padding: 0 .3rem; }
.acesso-escopos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem 1rem; margin-top: .6rem; }
.acesso-escopos > div { display: flex; flex-direction: column; gap: .1rem; }
.acesso-escopos strong { margin-bottom: .3rem; color: var(--noc-cinza); }
.acesso:has(input[name=acesso_total][value="1"]:checked) .acesso-escopos { opacity: .4; pointer-events: none; }
.selo-colab { display: inline-block; margin-top: .25rem; background: #eef2fb; color: #2d3f73; white-space: normal; }
.botao-perigo { background: var(--ruim); color: #fff; }
.botao-perigo:hover { filter: brightness(.92); }
.matriz th, .matriz td { vertical-align: middle; }
.matriz .centro { text-align: center; }
.matriz input[type=checkbox] { width: auto; accent-color: var(--primaria); }
.matriz input:disabled { opacity: .4; }
.matriz tr.modulo td { background: #f3f7f5; font-weight: 700; color: var(--noc-cinza); font-size: .85rem; text-transform: uppercase; letter-spacing: .02em; }
.selo-pratica { background: var(--primaria); color: #fff; margin-right: .2rem; }
/* Escolha do tema em cards (passo 1) */
.temas-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; margin-top: .6rem; }
.tema-escolha { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.1rem; border: 2px solid var(--borda); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tema-escolha:hover, .tema-escolha:focus-visible { border-color: var(--primaria); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.tema-escolha.tema-feito { background: #f7fbf9; }
.te-topo { display: flex; gap: .35rem; flex-wrap: wrap; }
.te-pratica, .te-banca { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .15rem .55rem; border-radius: 99px; }
.te-pratica { background: var(--noc-cinza, #414042); color: #fff; }
.te-banca { background: var(--primaria); color: #fff; }
.tema-escolha-livre .te-banca { background: #6b5bd2; }
.te-titulo { font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.te-prazo { font-size: .88rem; color: var(--sutil); }
.te-urgente { color: #c0392b; font-weight: 700; }
.te-feito { font-size: .85rem; color: #1e7e4f; font-weight: 600; }
.te-acao { margin-top: auto; padding-top: .3rem; font-weight: 700; color: var(--primaria); }
.tema-escolhido { background: #f3faf7; border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; }
.tema-escolhido .tema-meta { margin: 0 0 .4rem; }
.tema-escolhido .proposta div { background: #fff; }
.passo-envio { font-size: 1rem; margin: 1rem 0 .5rem; }
.livre-campos { display: block; margin-bottom: .6rem; }
.tema-agendado { background: #f6f7f7; border-style: dashed; cursor: default; }
.tema-agendado:hover { transform: none; box-shadow: none; border-color: var(--borda); }
.te-agendado { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .15rem .55rem; border-radius: 99px; background: #b98900; color: #fff; }
.tema-agendado .te-titulo { color: var(--sutil); }

.limite-box { display: flex; flex-direction: column; gap: .35rem; border: 1px solid var(--borda); border-radius: 12px; padding: .8rem .9rem; margin: .4rem 0 1rem; }
.limite-passo { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.limite-passo input { width: 7rem; text-align: center; margin: 0; }
.limite-passo .botao { padding: .45rem .9rem; font-size: 1.1rem; line-height: 1; }
.cronometro { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--primaria); margin: .2rem 0 .4rem; }
.cronometro.passou { color: var(--sutil); font-size: 1.4rem; }
#cronometro-msg { max-width: 34rem; margin: 0 auto; }
/* Miniatura do PDF dos textos motivadores */
.mini-pdf { border: 1px solid var(--borda); border-radius: 12px; background: #fff; margin: .5rem 0 .7rem; overflow: hidden; }
.mini-pdf-barra { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .55rem .8rem; border-bottom: 1px solid var(--borda); font-size: .92rem; }
.mini-pdf-acoes { display: flex; gap: .9rem; }
.mini-pdf-acoes a { font-weight: 600; font-size: .88rem; }
.mini-pdf-paginas { max-height: 420px; overflow-y: auto; padding: 8px; background: #eef2f0; display: flex; flex-direction: column; gap: 8px; }
.mini-pdf-paginas p { margin: 0; text-align: center; }
.mini-pdf-pagina { width: 100%; height: auto; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); border-radius: 4px; }
.mini-pdf-iframe { width: 100%; height: 400px; border: 0; }
@media (max-width: 640px) { .mini-pdf-paginas { max-height: 60vh; } }
/* Notificações */
.notif-item { display: flex; flex-direction: column; gap: .35rem; padding: .9rem 0; border-bottom: 1px solid var(--borda); }
.notif-item:last-of-type { margin-bottom: 1rem; }
.notif-item label { margin: 0; }
.notif-previa { background: #dcf8c6; border-radius: 10px 10px 10px 2px; padding: .55rem .8rem; font-size: .9rem; max-width: 34rem; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
pre.codigo { background: #f3f5f4; border-radius: 8px; padding: .6rem .8rem; font-size: .8rem; white-space: pre-wrap; word-break: break-all; }
